// generated from terraform resource schema
import * as cdktf from 'cdktf';
export class DataAwsCognitoUserPoolClientAnalyticsConfiguration extends cdktf.ComplexComputedList {
    // application_arn - computed: true, optional: false, required: false
    get applicationArn() {
        return this.getStringAttribute('application_arn');
    }
    // application_id - computed: true, optional: false, required: false
    get applicationId() {
        return this.getStringAttribute('application_id');
    }
    // external_id - computed: true, optional: false, required: false
    get externalId() {
        return this.getStringAttribute('external_id');
    }
    // role_arn - computed: true, optional: false, required: false
    get roleArn() {
        return this.getStringAttribute('role_arn');
    }
    // user_data_shared - computed: true, optional: false, required: false
    get userDataShared() {
        return this.getBooleanAttribute('user_data_shared');
    }
}
export class DataAwsCognitoUserPoolClientTokenValidityUnits extends cdktf.ComplexComputedList {
    // access_token - computed: true, optional: false, required: false
    get accessToken() {
        return this.getStringAttribute('access_token');
    }
    // id_token - computed: true, optional: false, required: false
    get idToken() {
        return this.getStringAttribute('id_token');
    }
    // refresh_token - computed: true, optional: false, required: false
    get refreshToken() {
        return this.getStringAttribute('refresh_token');
    }
}
/**
* Represents a {@link https://www.terraform.io/docs/providers/aws/d/cognito_user_pool_client aws_cognito_user_pool_client}
*/
export class DataAwsCognitoUserPoolClient extends cdktf.TerraformDataSource {
    // =================
    // STATIC PROPERTIES
    // =================
    static tfResourceType = "aws_cognito_user_pool_client";
    // ===========
    // INITIALIZER
    // ===========
    /**
    * Create a new {@link https://www.terraform.io/docs/providers/aws/d/cognito_user_pool_client aws_cognito_user_pool_client} Data Source
    *
    * @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 DataAwsCognitoUserPoolClientConfig
    */
    constructor(scope, id, config) {
        super(scope, id, {
            terraformResourceType: 'aws_cognito_user_pool_client',
            terraformGeneratorMetadata: {
                providerName: 'aws'
            },
            provider: config.provider,
            dependsOn: config.dependsOn,
            count: config.count,
            lifecycle: config.lifecycle
        });
        this._clientId = config.clientId;
        this._userPoolId = config.userPoolId;
    }
    // ==========
    // ATTRIBUTES
    // ==========
    // access_token_validity - computed: true, optional: false, required: false
    get accessTokenValidity() {
        return this.getNumberAttribute('access_token_validity');
    }
    // allowed_oauth_flows - computed: true, optional: false, required: false
    get allowedOauthFlows() {
        return cdktf.Fn.tolist(this.getListAttribute('allowed_oauth_flows'));
    }
    // allowed_oauth_flows_user_pool_client - computed: true, optional: false, required: false
    get allowedOauthFlowsUserPoolClient() {
        return this.getBooleanAttribute('allowed_oauth_flows_user_pool_client');
    }
    // allowed_oauth_scopes - computed: true, optional: false, required: false
    get allowedOauthScopes() {
        return cdktf.Fn.tolist(this.getListAttribute('allowed_oauth_scopes'));
    }
    // analytics_configuration - computed: true, optional: false, required: false
    analyticsConfiguration(index) {
        return new DataAwsCognitoUserPoolClientAnalyticsConfiguration(this, 'analytics_configuration', index, false);
    }
    // callback_urls - computed: true, optional: false, required: false
    get callbackUrls() {
        return cdktf.Fn.tolist(this.getListAttribute('callback_urls'));
    }
    // client_id - computed: false, optional: false, required: true
    _clientId;
    get clientId() {
        return this.getStringAttribute('client_id');
    }
    set clientId(value) {
        this._clientId = value;
    }
    // Temporarily expose input value. Use with caution.
    get clientIdInput() {
        return this._clientId;
    }
    // client_secret - computed: true, optional: false, required: false
    get clientSecret() {
        return this.getStringAttribute('client_secret');
    }
    // default_redirect_uri - computed: true, optional: false, required: false
    get defaultRedirectUri() {
        return this.getStringAttribute('default_redirect_uri');
    }
    // enable_token_revocation - computed: true, optional: false, required: false
    get enableTokenRevocation() {
        return this.getBooleanAttribute('enable_token_revocation');
    }
    // explicit_auth_flows - computed: true, optional: false, required: false
    get explicitAuthFlows() {
        return cdktf.Fn.tolist(this.getListAttribute('explicit_auth_flows'));
    }
    // generate_secret - computed: true, optional: false, required: false
    get generateSecret() {
        return this.getBooleanAttribute('generate_secret');
    }
    // id - computed: true, optional: true, required: false
    get id() {
        return this.getStringAttribute('id');
    }
    // id_token_validity - computed: true, optional: false, required: false
    get idTokenValidity() {
        return this.getNumberAttribute('id_token_validity');
    }
    // logout_urls - computed: true, optional: false, required: false
    get logoutUrls() {
        return cdktf.Fn.tolist(this.getListAttribute('logout_urls'));
    }
    // name - computed: true, optional: false, required: false
    get name() {
        return this.getStringAttribute('name');
    }
    // prevent_user_existence_errors - computed: true, optional: false, required: false
    get preventUserExistenceErrors() {
        return this.getStringAttribute('prevent_user_existence_errors');
    }
    // read_attributes - computed: true, optional: false, required: false
    get readAttributes() {
        return cdktf.Fn.tolist(this.getListAttribute('read_attributes'));
    }
    // refresh_token_validity - computed: true, optional: false, required: false
    get refreshTokenValidity() {
        return this.getNumberAttribute('refresh_token_validity');
    }
    // supported_identity_providers - computed: true, optional: false, required: false
    get supportedIdentityProviders() {
        return cdktf.Fn.tolist(this.getListAttribute('supported_identity_providers'));
    }
    // token_validity_units - computed: true, optional: false, required: false
    tokenValidityUnits(index) {
        return new DataAwsCognitoUserPoolClientTokenValidityUnits(this, 'token_validity_units', index, false);
    }
    // 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;
    }
    // write_attributes - computed: true, optional: false, required: false
    get writeAttributes() {
        return cdktf.Fn.tolist(this.getListAttribute('write_attributes'));
    }
    // =========
    // SYNTHESIS
    // =========
    synthesizeAttributes() {
        return {
            client_id: cdktf.stringToTerraform(this._clientId),
            user_pool_id: cdktf.stringToTerraform(this._userPoolId),
        };
    }
}
//# sourceMappingURL=data-aws-cognito-user-pool-client.js.map