// generated from terraform resource schema
import * as cdktf from 'cdktf';
/**
* Represents a {@link https://www.terraform.io/docs/providers/aws/r/cognito_user aws_cognito_user}
*/
export class CognitoUser extends cdktf.TerraformResource {
    // =================
    // STATIC PROPERTIES
    // =================
    static tfResourceType = "aws_cognito_user";
    // ===========
    // INITIALIZER
    // ===========
    /**
    * Create a new {@link https://www.terraform.io/docs/providers/aws/r/cognito_user aws_cognito_user} 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 CognitoUserConfig
    */
    constructor(scope, id, config) {
        super(scope, id, {
            terraformResourceType: 'aws_cognito_user',
            terraformGeneratorMetadata: {
                providerName: 'aws'
            },
            provider: config.provider,
            dependsOn: config.dependsOn,
            count: config.count,
            lifecycle: config.lifecycle
        });
        this._attributes = config.attributes;
        this._clientMetadata = config.clientMetadata;
        this._desiredDeliveryMediums = config.desiredDeliveryMediums;
        this._enabled = config.enabled;
        this._forceAliasCreation = config.forceAliasCreation;
        this._messageAction = config.messageAction;
        this._password = config.password;
        this._temporaryPassword = config.temporaryPassword;
        this._userPoolId = config.userPoolId;
        this._username = config.username;
        this._validationData = config.validationData;
    }
    // ==========
    // ATTRIBUTES
    // ==========
    // attributes - computed: false, optional: true, required: false
    _attributes;
    get attributes() {
        return this.getStringMapAttribute('attributes');
    }
    set attributes(value) {
        this._attributes = value;
    }
    resetAttributes() {
        this._attributes = undefined;
    }
    // Temporarily expose input value. Use with caution.
    get attributesInput() {
        return this._attributes;
    }
    // client_metadata - computed: false, optional: true, required: false
    _clientMetadata;
    get clientMetadata() {
        return this.getStringMapAttribute('client_metadata');
    }
    set clientMetadata(value) {
        this._clientMetadata = value;
    }
    resetClientMetadata() {
        this._clientMetadata = undefined;
    }
    // Temporarily expose input value. Use with caution.
    get clientMetadataInput() {
        return this._clientMetadata;
    }
    // creation_date - computed: true, optional: false, required: false
    get creationDate() {
        return this.getStringAttribute('creation_date');
    }
    // desired_delivery_mediums - computed: false, optional: true, required: false
    _desiredDeliveryMediums;
    get desiredDeliveryMediums() {
        return cdktf.Fn.tolist(this.getListAttribute('desired_delivery_mediums'));
    }
    set desiredDeliveryMediums(value) {
        this._desiredDeliveryMediums = value;
    }
    resetDesiredDeliveryMediums() {
        this._desiredDeliveryMediums = undefined;
    }
    // Temporarily expose input value. Use with caution.
    get desiredDeliveryMediumsInput() {
        return this._desiredDeliveryMediums;
    }
    // enabled - computed: false, optional: true, required: false
    _enabled;
    get enabled() {
        return this.getBooleanAttribute('enabled');
    }
    set enabled(value) {
        this._enabled = value;
    }
    resetEnabled() {
        this._enabled = undefined;
    }
    // Temporarily expose input value. Use with caution.
    get enabledInput() {
        return this._enabled;
    }
    // force_alias_creation - computed: false, optional: true, required: false
    _forceAliasCreation;
    get forceAliasCreation() {
        return this.getBooleanAttribute('force_alias_creation');
    }
    set forceAliasCreation(value) {
        this._forceAliasCreation = value;
    }
    resetForceAliasCreation() {
        this._forceAliasCreation = undefined;
    }
    // Temporarily expose input value. Use with caution.
    get forceAliasCreationInput() {
        return this._forceAliasCreation;
    }
    // id - computed: true, optional: true, required: false
    get id() {
        return this.getStringAttribute('id');
    }
    // last_modified_date - computed: true, optional: false, required: false
    get lastModifiedDate() {
        return this.getStringAttribute('last_modified_date');
    }
    // message_action - computed: false, optional: true, required: false
    _messageAction;
    get messageAction() {
        return this.getStringAttribute('message_action');
    }
    set messageAction(value) {
        this._messageAction = value;
    }
    resetMessageAction() {
        this._messageAction = undefined;
    }
    // Temporarily expose input value. Use with caution.
    get messageActionInput() {
        return this._messageAction;
    }
    // mfa_setting_list - computed: true, optional: false, required: false
    get mfaSettingList() {
        return cdktf.Fn.tolist(this.getListAttribute('mfa_setting_list'));
    }
    // password - computed: false, optional: true, required: false
    _password;
    get password() {
        return this.getStringAttribute('password');
    }
    set password(value) {
        this._password = value;
    }
    resetPassword() {
        this._password = undefined;
    }
    // Temporarily expose input value. Use with caution.
    get passwordInput() {
        return this._password;
    }
    // preferred_mfa_setting - computed: true, optional: false, required: false
    get preferredMfaSetting() {
        return this.getStringAttribute('preferred_mfa_setting');
    }
    // status - computed: true, optional: false, required: false
    get status() {
        return this.getStringAttribute('status');
    }
    // sub - computed: true, optional: false, required: false
    get sub() {
        return this.getStringAttribute('sub');
    }
    // temporary_password - computed: false, optional: true, required: false
    _temporaryPassword;
    get temporaryPassword() {
        return this.getStringAttribute('temporary_password');
    }
    set temporaryPassword(value) {
        this._temporaryPassword = value;
    }
    resetTemporaryPassword() {
        this._temporaryPassword = undefined;
    }
    // Temporarily expose input value. Use with caution.
    get temporaryPasswordInput() {
        return this._temporaryPassword;
    }
    // user_pool_id - computed: false, optional: false, required: true
    _userPoolId;
    get userPoolId() {
        return this.getStringAttribute('user_pool_id');
    }
    set userPoolId(value) {
        this._userPoolId = value;
    }
    // Temporarily expose input value. Use with caution.
    get userPoolIdInput() {
        return this._userPoolId;
    }
    // username - computed: false, optional: false, required: true
    _username;
    get username() {
        return this.getStringAttribute('username');
    }
    set username(value) {
        this._username = value;
    }
    // Temporarily expose input value. Use with caution.
    get usernameInput() {
        return this._username;
    }
    // validation_data - computed: false, optional: true, required: false
    _validationData;
    get validationData() {
        return this.getStringMapAttribute('validation_data');
    }
    set validationData(value) {
        this._validationData = value;
    }
    resetValidationData() {
        this._validationData = undefined;
    }
    // Temporarily expose input value. Use with caution.
    get validationDataInput() {
        return this._validationData;
    }
    // =========
    // SYNTHESIS
    // =========
    synthesizeAttributes() {
        return {
            attributes: cdktf.hashMapper(cdktf.stringToTerraform)(this._attributes),
            client_metadata: cdktf.hashMapper(cdktf.stringToTerraform)(this._clientMetadata),
            desired_delivery_mediums: cdktf.listMapper(cdktf.stringToTerraform)(this._desiredDeliveryMediums),
            enabled: cdktf.booleanToTerraform(this._enabled),
            force_alias_creation: cdktf.booleanToTerraform(this._forceAliasCreation),
            message_action: cdktf.stringToTerraform(this._messageAction),
            password: cdktf.stringToTerraform(this._password),
            temporary_password: cdktf.stringToTerraform(this._temporaryPassword),
            user_pool_id: cdktf.stringToTerraform(this._userPoolId),
            username: cdktf.stringToTerraform(this._username),
            validation_data: cdktf.hashMapper(cdktf.stringToTerraform)(this._validationData),
        };
    }
}
//# sourceMappingURL=cognito-user.js.map