// generated from terraform resource schema
import * as cdktf from 'cdktf';
export class OrganizationsOrganizationAccounts extends cdktf.ComplexComputedList {
    // arn - computed: true, optional: false, required: false
    get arn() {
        return this.getStringAttribute('arn');
    }
    // email - computed: true, optional: false, required: false
    get email() {
        return this.getStringAttribute('email');
    }
    // id - computed: true, optional: false, required: false
    get id() {
        return this.getStringAttribute('id');
    }
    // name - computed: true, optional: false, required: false
    get name() {
        return this.getStringAttribute('name');
    }
    // status - computed: true, optional: false, required: false
    get status() {
        return this.getStringAttribute('status');
    }
}
export class OrganizationsOrganizationNonMasterAccounts extends cdktf.ComplexComputedList {
    // arn - computed: true, optional: false, required: false
    get arn() {
        return this.getStringAttribute('arn');
    }
    // email - computed: true, optional: false, required: false
    get email() {
        return this.getStringAttribute('email');
    }
    // id - computed: true, optional: false, required: false
    get id() {
        return this.getStringAttribute('id');
    }
    // name - computed: true, optional: false, required: false
    get name() {
        return this.getStringAttribute('name');
    }
    // status - computed: true, optional: false, required: false
    get status() {
        return this.getStringAttribute('status');
    }
}
export class OrganizationsOrganizationRootsPolicyTypes extends cdktf.ComplexComputedList {
    // status - computed: true, optional: false, required: false
    get status() {
        return this.getStringAttribute('status');
    }
    // type - computed: true, optional: false, required: false
    get type() {
        return this.getStringAttribute('type');
    }
}
export class OrganizationsOrganizationRoots extends cdktf.ComplexComputedList {
    // arn - computed: true, optional: false, required: false
    get arn() {
        return this.getStringAttribute('arn');
    }
    // id - computed: true, optional: false, required: false
    get id() {
        return this.getStringAttribute('id');
    }
    // name - computed: true, optional: false, required: false
    get name() {
        return this.getStringAttribute('name');
    }
    // policy_types - computed: true, optional: false, required: false
    get policyTypes() {
        // Getting the computed value is not yet implemented
        return this.interpolationForAttribute('policy_types');
    }
}
/**
* Represents a {@link https://www.terraform.io/docs/providers/aws/r/organizations_organization aws_organizations_organization}
*/
export class OrganizationsOrganization extends cdktf.TerraformResource {
    // =================
    // STATIC PROPERTIES
    // =================
    static tfResourceType = "aws_organizations_organization";
    // ===========
    // INITIALIZER
    // ===========
    /**
    * Create a new {@link https://www.terraform.io/docs/providers/aws/r/organizations_organization aws_organizations_organization} Resource
    *
    * @param scope The scope in which to define this construct
    * @param id The scoped construct ID. Must be unique amongst siblings in the same scope
    * @param options OrganizationsOrganizationConfig = {}
    */
    constructor(scope, id, config = {}) {
        super(scope, id, {
            terraformResourceType: 'aws_organizations_organization',
            terraformGeneratorMetadata: {
                providerName: 'aws'
            },
            provider: config.provider,
            dependsOn: config.dependsOn,
            count: config.count,
            lifecycle: config.lifecycle
        });
        this._awsServiceAccessPrincipals = config.awsServiceAccessPrincipals;
        this._enabledPolicyTypes = config.enabledPolicyTypes;
        this._featureSet = config.featureSet;
    }
    // ==========
    // ATTRIBUTES
    // ==========
    // accounts - computed: true, optional: false, required: false
    accounts(index) {
        return new OrganizationsOrganizationAccounts(this, 'accounts', index, false);
    }
    // arn - computed: true, optional: false, required: false
    get arn() {
        return this.getStringAttribute('arn');
    }
    // aws_service_access_principals - computed: false, optional: true, required: false
    _awsServiceAccessPrincipals;
    get awsServiceAccessPrincipals() {
        return cdktf.Fn.tolist(this.getListAttribute('aws_service_access_principals'));
    }
    set awsServiceAccessPrincipals(value) {
        this._awsServiceAccessPrincipals = value;
    }
    resetAwsServiceAccessPrincipals() {
        this._awsServiceAccessPrincipals = undefined;
    }
    // Temporarily expose input value. Use with caution.
    get awsServiceAccessPrincipalsInput() {
        return this._awsServiceAccessPrincipals;
    }
    // enabled_policy_types - computed: false, optional: true, required: false
    _enabledPolicyTypes;
    get enabledPolicyTypes() {
        return cdktf.Fn.tolist(this.getListAttribute('enabled_policy_types'));
    }
    set enabledPolicyTypes(value) {
        this._enabledPolicyTypes = value;
    }
    resetEnabledPolicyTypes() {
        this._enabledPolicyTypes = undefined;
    }
    // Temporarily expose input value. Use with caution.
    get enabledPolicyTypesInput() {
        return this._enabledPolicyTypes;
    }
    // feature_set - computed: false, optional: true, required: false
    _featureSet;
    get featureSet() {
        return this.getStringAttribute('feature_set');
    }
    set featureSet(value) {
        this._featureSet = value;
    }
    resetFeatureSet() {
        this._featureSet = undefined;
    }
    // Temporarily expose input value. Use with caution.
    get featureSetInput() {
        return this._featureSet;
    }
    // id - computed: true, optional: true, required: false
    get id() {
        return this.getStringAttribute('id');
    }
    // master_account_arn - computed: true, optional: false, required: false
    get masterAccountArn() {
        return this.getStringAttribute('master_account_arn');
    }
    // master_account_email - computed: true, optional: false, required: false
    get masterAccountEmail() {
        return this.getStringAttribute('master_account_email');
    }
    // master_account_id - computed: true, optional: false, required: false
    get masterAccountId() {
        return this.getStringAttribute('master_account_id');
    }
    // non_master_accounts - computed: true, optional: false, required: false
    nonMasterAccounts(index) {
        return new OrganizationsOrganizationNonMasterAccounts(this, 'non_master_accounts', index, false);
    }
    // roots - computed: true, optional: false, required: false
    roots(index) {
        return new OrganizationsOrganizationRoots(this, 'roots', index, false);
    }
    // =========
    // SYNTHESIS
    // =========
    synthesizeAttributes() {
        return {
            aws_service_access_principals: cdktf.listMapper(cdktf.stringToTerraform)(this._awsServiceAccessPrincipals),
            enabled_policy_types: cdktf.listMapper(cdktf.stringToTerraform)(this._enabledPolicyTypes),
            feature_set: cdktf.stringToTerraform(this._featureSet),
        };
    }
}
//# sourceMappingURL=organizations-organization.js.map