UNPKG

@cdktf/provider-aws

Version:

Prebuilt aws Provider for Terraform CDK (cdktf)

1,097 lines 163 kB
"use strict"; var _a, _b, _c, _d, _e, _f, _g; Object.defineProperty(exports, "__esModule", { value: true }); exports.CognitoManagedUserPoolClient = exports.CognitoManagedUserPoolClientTokenValidityUnitsList = exports.CognitoManagedUserPoolClientTokenValidityUnitsOutputReference = exports.CognitoManagedUserPoolClientRefreshTokenRotationList = exports.CognitoManagedUserPoolClientRefreshTokenRotationOutputReference = exports.CognitoManagedUserPoolClientAnalyticsConfigurationList = exports.CognitoManagedUserPoolClientAnalyticsConfigurationOutputReference = void 0; exports.cognitoManagedUserPoolClientAnalyticsConfigurationToTerraform = cognitoManagedUserPoolClientAnalyticsConfigurationToTerraform; exports.cognitoManagedUserPoolClientAnalyticsConfigurationToHclTerraform = cognitoManagedUserPoolClientAnalyticsConfigurationToHclTerraform; exports.cognitoManagedUserPoolClientRefreshTokenRotationToTerraform = cognitoManagedUserPoolClientRefreshTokenRotationToTerraform; exports.cognitoManagedUserPoolClientRefreshTokenRotationToHclTerraform = cognitoManagedUserPoolClientRefreshTokenRotationToHclTerraform; exports.cognitoManagedUserPoolClientTokenValidityUnitsToTerraform = cognitoManagedUserPoolClientTokenValidityUnitsToTerraform; exports.cognitoManagedUserPoolClientTokenValidityUnitsToHclTerraform = cognitoManagedUserPoolClientTokenValidityUnitsToHclTerraform; const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti"); const cdktf = require("cdktf"); function cognitoManagedUserPoolClientAnalyticsConfigurationToTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { application_arn: cdktf.stringToTerraform(struct.applicationArn), application_id: cdktf.stringToTerraform(struct.applicationId), external_id: cdktf.stringToTerraform(struct.externalId), role_arn: cdktf.stringToTerraform(struct.roleArn), user_data_shared: cdktf.booleanToTerraform(struct.userDataShared), }; } function cognitoManagedUserPoolClientAnalyticsConfigurationToHclTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } const attrs = { application_arn: { value: cdktf.stringToHclTerraform(struct.applicationArn), isBlock: false, type: "simple", storageClassType: "string", }, application_id: { value: cdktf.stringToHclTerraform(struct.applicationId), isBlock: false, type: "simple", storageClassType: "string", }, external_id: { value: cdktf.stringToHclTerraform(struct.externalId), isBlock: false, type: "simple", storageClassType: "string", }, role_arn: { value: cdktf.stringToHclTerraform(struct.roleArn), isBlock: false, type: "simple", storageClassType: "string", }, user_data_shared: { value: cdktf.booleanToHclTerraform(struct.userDataShared), isBlock: false, type: "simple", storageClassType: "boolean", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class CognitoManagedUserPoolClientAnalyticsConfigurationOutputReference extends cdktf.ComplexObject { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param complexObjectIndex the index of this item in the list * @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index) */ constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) { super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex); this.isEmptyObject = false; } get internalValue() { if (this.resolvableValue) { return this.resolvableValue; } let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._applicationArn !== undefined) { hasAnyValues = true; internalValueResult.applicationArn = this._applicationArn; } if (this._applicationId !== undefined) { hasAnyValues = true; internalValueResult.applicationId = this._applicationId; } if (this._externalId !== undefined) { hasAnyValues = true; internalValueResult.externalId = this._externalId; } if (this._roleArn !== undefined) { hasAnyValues = true; internalValueResult.roleArn = this._roleArn; } if (this._userDataShared !== undefined) { hasAnyValues = true; internalValueResult.userDataShared = this._userDataShared; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._applicationArn = undefined; this._applicationId = undefined; this._externalId = undefined; this._roleArn = undefined; this._userDataShared = undefined; } else if (cdktf.Tokenization.isResolvable(value)) { this.isEmptyObject = false; this.resolvableValue = value; } else { this.isEmptyObject = Object.keys(value).length === 0; this.resolvableValue = undefined; this._applicationArn = value.applicationArn; this._applicationId = value.applicationId; this._externalId = value.externalId; this._roleArn = value.roleArn; this._userDataShared = value.userDataShared; } } get applicationArn() { return this.getStringAttribute('application_arn'); } set applicationArn(value) { this._applicationArn = value; } resetApplicationArn() { this._applicationArn = undefined; } // Temporarily expose input value. Use with caution. get applicationArnInput() { return this._applicationArn; } get applicationId() { return this.getStringAttribute('application_id'); } set applicationId(value) { this._applicationId = value; } resetApplicationId() { this._applicationId = undefined; } // Temporarily expose input value. Use with caution. get applicationIdInput() { return this._applicationId; } get externalId() { return this.getStringAttribute('external_id'); } set externalId(value) { this._externalId = value; } resetExternalId() { this._externalId = undefined; } // Temporarily expose input value. Use with caution. get externalIdInput() { return this._externalId; } get roleArn() { return this.getStringAttribute('role_arn'); } set roleArn(value) { this._roleArn = value; } resetRoleArn() { this._roleArn = undefined; } // Temporarily expose input value. Use with caution. get roleArnInput() { return this._roleArn; } get userDataShared() { return this.getBooleanAttribute('user_data_shared'); } set userDataShared(value) { this._userDataShared = value; } resetUserDataShared() { this._userDataShared = undefined; } // Temporarily expose input value. Use with caution. get userDataSharedInput() { return this._userDataShared; } } exports.CognitoManagedUserPoolClientAnalyticsConfigurationOutputReference = CognitoManagedUserPoolClientAnalyticsConfigurationOutputReference; _a = JSII_RTTI_SYMBOL_1; CognitoManagedUserPoolClientAnalyticsConfigurationOutputReference[_a] = { fqn: "@cdktf/provider-aws.cognitoManagedUserPoolClient.CognitoManagedUserPoolClientAnalyticsConfigurationOutputReference", version: "21.22.1" }; class CognitoManagedUserPoolClientAnalyticsConfigurationList extends cdktf.ComplexList { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index) */ constructor(terraformResource, terraformAttribute, wrapsSet) { super(terraformResource, terraformAttribute, wrapsSet); this.terraformResource = terraformResource; this.terraformAttribute = terraformAttribute; this.wrapsSet = wrapsSet; } /** * @param index the index of the item to return */ get(index) { return new CognitoManagedUserPoolClientAnalyticsConfigurationOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.CognitoManagedUserPoolClientAnalyticsConfigurationList = CognitoManagedUserPoolClientAnalyticsConfigurationList; _b = JSII_RTTI_SYMBOL_1; CognitoManagedUserPoolClientAnalyticsConfigurationList[_b] = { fqn: "@cdktf/provider-aws.cognitoManagedUserPoolClient.CognitoManagedUserPoolClientAnalyticsConfigurationList", version: "21.22.1" }; function cognitoManagedUserPoolClientRefreshTokenRotationToTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { feature: cdktf.stringToTerraform(struct.feature), retry_grace_period_seconds: cdktf.numberToTerraform(struct.retryGracePeriodSeconds), }; } function cognitoManagedUserPoolClientRefreshTokenRotationToHclTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } const attrs = { feature: { value: cdktf.stringToHclTerraform(struct.feature), isBlock: false, type: "simple", storageClassType: "string", }, retry_grace_period_seconds: { value: cdktf.numberToHclTerraform(struct.retryGracePeriodSeconds), isBlock: false, type: "simple", storageClassType: "number", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class CognitoManagedUserPoolClientRefreshTokenRotationOutputReference extends cdktf.ComplexObject { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param complexObjectIndex the index of this item in the list * @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index) */ constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) { super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex); this.isEmptyObject = false; } get internalValue() { if (this.resolvableValue) { return this.resolvableValue; } let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._feature !== undefined) { hasAnyValues = true; internalValueResult.feature = this._feature; } if (this._retryGracePeriodSeconds !== undefined) { hasAnyValues = true; internalValueResult.retryGracePeriodSeconds = this._retryGracePeriodSeconds; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._feature = undefined; this._retryGracePeriodSeconds = undefined; } else if (cdktf.Tokenization.isResolvable(value)) { this.isEmptyObject = false; this.resolvableValue = value; } else { this.isEmptyObject = Object.keys(value).length === 0; this.resolvableValue = undefined; this._feature = value.feature; this._retryGracePeriodSeconds = value.retryGracePeriodSeconds; } } get feature() { return this.getStringAttribute('feature'); } set feature(value) { this._feature = value; } // Temporarily expose input value. Use with caution. get featureInput() { return this._feature; } get retryGracePeriodSeconds() { return this.getNumberAttribute('retry_grace_period_seconds'); } set retryGracePeriodSeconds(value) { this._retryGracePeriodSeconds = value; } resetRetryGracePeriodSeconds() { this._retryGracePeriodSeconds = undefined; } // Temporarily expose input value. Use with caution. get retryGracePeriodSecondsInput() { return this._retryGracePeriodSeconds; } } exports.CognitoManagedUserPoolClientRefreshTokenRotationOutputReference = CognitoManagedUserPoolClientRefreshTokenRotationOutputReference; _c = JSII_RTTI_SYMBOL_1; CognitoManagedUserPoolClientRefreshTokenRotationOutputReference[_c] = { fqn: "@cdktf/provider-aws.cognitoManagedUserPoolClient.CognitoManagedUserPoolClientRefreshTokenRotationOutputReference", version: "21.22.1" }; class CognitoManagedUserPoolClientRefreshTokenRotationList extends cdktf.ComplexList { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index) */ constructor(terraformResource, terraformAttribute, wrapsSet) { super(terraformResource, terraformAttribute, wrapsSet); this.terraformResource = terraformResource; this.terraformAttribute = terraformAttribute; this.wrapsSet = wrapsSet; } /** * @param index the index of the item to return */ get(index) { return new CognitoManagedUserPoolClientRefreshTokenRotationOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.CognitoManagedUserPoolClientRefreshTokenRotationList = CognitoManagedUserPoolClientRefreshTokenRotationList; _d = JSII_RTTI_SYMBOL_1; CognitoManagedUserPoolClientRefreshTokenRotationList[_d] = { fqn: "@cdktf/provider-aws.cognitoManagedUserPoolClient.CognitoManagedUserPoolClientRefreshTokenRotationList", version: "21.22.1" }; function cognitoManagedUserPoolClientTokenValidityUnitsToTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { access_token: cdktf.stringToTerraform(struct.accessToken), id_token: cdktf.stringToTerraform(struct.idToken), refresh_token: cdktf.stringToTerraform(struct.refreshToken), }; } function cognitoManagedUserPoolClientTokenValidityUnitsToHclTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } const attrs = { access_token: { value: cdktf.stringToHclTerraform(struct.accessToken), isBlock: false, type: "simple", storageClassType: "string", }, id_token: { value: cdktf.stringToHclTerraform(struct.idToken), isBlock: false, type: "simple", storageClassType: "string", }, refresh_token: { value: cdktf.stringToHclTerraform(struct.refreshToken), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class CognitoManagedUserPoolClientTokenValidityUnitsOutputReference extends cdktf.ComplexObject { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param complexObjectIndex the index of this item in the list * @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index) */ constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) { super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex); this.isEmptyObject = false; } get internalValue() { if (this.resolvableValue) { return this.resolvableValue; } let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._accessToken !== undefined) { hasAnyValues = true; internalValueResult.accessToken = this._accessToken; } if (this._idToken !== undefined) { hasAnyValues = true; internalValueResult.idToken = this._idToken; } if (this._refreshToken !== undefined) { hasAnyValues = true; internalValueResult.refreshToken = this._refreshToken; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._accessToken = undefined; this._idToken = undefined; this._refreshToken = undefined; } else if (cdktf.Tokenization.isResolvable(value)) { this.isEmptyObject = false; this.resolvableValue = value; } else { this.isEmptyObject = Object.keys(value).length === 0; this.resolvableValue = undefined; this._accessToken = value.accessToken; this._idToken = value.idToken; this._refreshToken = value.refreshToken; } } get accessToken() { return this.getStringAttribute('access_token'); } set accessToken(value) { this._accessToken = value; } resetAccessToken() { this._accessToken = undefined; } // Temporarily expose input value. Use with caution. get accessTokenInput() { return this._accessToken; } get idToken() { return this.getStringAttribute('id_token'); } set idToken(value) { this._idToken = value; } resetIdToken() { this._idToken = undefined; } // Temporarily expose input value. Use with caution. get idTokenInput() { return this._idToken; } get refreshToken() { return this.getStringAttribute('refresh_token'); } set refreshToken(value) { this._refreshToken = value; } resetRefreshToken() { this._refreshToken = undefined; } // Temporarily expose input value. Use with caution. get refreshTokenInput() { return this._refreshToken; } } exports.CognitoManagedUserPoolClientTokenValidityUnitsOutputReference = CognitoManagedUserPoolClientTokenValidityUnitsOutputReference; _e = JSII_RTTI_SYMBOL_1; CognitoManagedUserPoolClientTokenValidityUnitsOutputReference[_e] = { fqn: "@cdktf/provider-aws.cognitoManagedUserPoolClient.CognitoManagedUserPoolClientTokenValidityUnitsOutputReference", version: "21.22.1" }; class CognitoManagedUserPoolClientTokenValidityUnitsList extends cdktf.ComplexList { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index) */ constructor(terraformResource, terraformAttribute, wrapsSet) { super(terraformResource, terraformAttribute, wrapsSet); this.terraformResource = terraformResource; this.terraformAttribute = terraformAttribute; this.wrapsSet = wrapsSet; } /** * @param index the index of the item to return */ get(index) { return new CognitoManagedUserPoolClientTokenValidityUnitsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.CognitoManagedUserPoolClientTokenValidityUnitsList = CognitoManagedUserPoolClientTokenValidityUnitsList; _f = JSII_RTTI_SYMBOL_1; CognitoManagedUserPoolClientTokenValidityUnitsList[_f] = { fqn: "@cdktf/provider-aws.cognitoManagedUserPoolClient.CognitoManagedUserPoolClientTokenValidityUnitsList", version: "21.22.1" }; /** * Represents a {@link https://registry.terraform.io/providers/hashicorp/aws/6.25.0/docs/resources/cognito_managed_user_pool_client aws_cognito_managed_user_pool_client} */ class CognitoManagedUserPoolClient extends cdktf.TerraformResource { // ============== // STATIC Methods // ============== /** * Generates CDKTF code for importing a CognitoManagedUserPoolClient resource upon running "cdktf plan <stack-name>" * @param scope The scope in which to define this construct * @param importToId The construct id used in the generated config for the CognitoManagedUserPoolClient to import * @param importFromId The id of the existing CognitoManagedUserPoolClient that should be imported. Refer to the {@link https://registry.terraform.io/providers/hashicorp/aws/6.25.0/docs/resources/cognito_managed_user_pool_client#import import section} in the documentation of this resource for the id to use * @param provider? Optional instance of the provider where the CognitoManagedUserPoolClient to import is found */ static generateConfigForImport(scope, importToId, importFromId, provider) { return new cdktf.ImportableResource(scope, importToId, { terraformResourceType: "aws_cognito_managed_user_pool_client", importId: importFromId, provider }); } // =========== // INITIALIZER // =========== /** * Create a new {@link https://registry.terraform.io/providers/hashicorp/aws/6.25.0/docs/resources/cognito_managed_user_pool_client aws_cognito_managed_user_pool_client} 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 CognitoManagedUserPoolClientConfig */ constructor(scope, id, config) { super(scope, id, { terraformResourceType: 'aws_cognito_managed_user_pool_client', terraformGeneratorMetadata: { providerName: 'aws', providerVersion: '6.25.0', providerVersionConstraint: '~> 6.0' }, provider: config.provider, dependsOn: config.dependsOn, count: config.count, lifecycle: config.lifecycle, provisioners: config.provisioners, connection: config.connection, forEach: config.forEach }); // analytics_configuration - computed: false, optional: true, required: false this._analyticsConfiguration = new CognitoManagedUserPoolClientAnalyticsConfigurationList(this, "analytics_configuration", false); // refresh_token_rotation - computed: false, optional: true, required: false this._refreshTokenRotation = new CognitoManagedUserPoolClientRefreshTokenRotationList(this, "refresh_token_rotation", false); // token_validity_units - computed: false, optional: true, required: false this._tokenValidityUnits = new CognitoManagedUserPoolClientTokenValidityUnitsList(this, "token_validity_units", false); this._accessTokenValidity = config.accessTokenValidity; this._allowedOauthFlows = config.allowedOauthFlows; this._allowedOauthFlowsUserPoolClient = config.allowedOauthFlowsUserPoolClient; this._allowedOauthScopes = config.allowedOauthScopes; this._authSessionValidity = config.authSessionValidity; this._callbackUrls = config.callbackUrls; this._defaultRedirectUri = config.defaultRedirectUri; this._enablePropagateAdditionalUserContextData = config.enablePropagateAdditionalUserContextData; this._enableTokenRevocation = config.enableTokenRevocation; this._explicitAuthFlows = config.explicitAuthFlows; this._idTokenValidity = config.idTokenValidity; this._logoutUrls = config.logoutUrls; this._namePattern = config.namePattern; this._namePrefix = config.namePrefix; this._preventUserExistenceErrors = config.preventUserExistenceErrors; this._readAttributes = config.readAttributes; this._refreshTokenValidity = config.refreshTokenValidity; this._region = config.region; this._supportedIdentityProviders = config.supportedIdentityProviders; this._userPoolId = config.userPoolId; this._writeAttributes = config.writeAttributes; this._analyticsConfiguration.internalValue = config.analyticsConfiguration; this._refreshTokenRotation.internalValue = config.refreshTokenRotation; this._tokenValidityUnits.internalValue = config.tokenValidityUnits; } get accessTokenValidity() { return this.getNumberAttribute('access_token_validity'); } set accessTokenValidity(value) { this._accessTokenValidity = value; } resetAccessTokenValidity() { this._accessTokenValidity = undefined; } // Temporarily expose input value. Use with caution. get accessTokenValidityInput() { return this._accessTokenValidity; } get allowedOauthFlows() { return cdktf.Fn.tolist(this.getListAttribute('allowed_oauth_flows')); } set allowedOauthFlows(value) { this._allowedOauthFlows = value; } resetAllowedOauthFlows() { this._allowedOauthFlows = undefined; } // Temporarily expose input value. Use with caution. get allowedOauthFlowsInput() { return this._allowedOauthFlows; } get allowedOauthFlowsUserPoolClient() { return this.getBooleanAttribute('allowed_oauth_flows_user_pool_client'); } set allowedOauthFlowsUserPoolClient(value) { this._allowedOauthFlowsUserPoolClient = value; } resetAllowedOauthFlowsUserPoolClient() { this._allowedOauthFlowsUserPoolClient = undefined; } // Temporarily expose input value. Use with caution. get allowedOauthFlowsUserPoolClientInput() { return this._allowedOauthFlowsUserPoolClient; } get allowedOauthScopes() { return cdktf.Fn.tolist(this.getListAttribute('allowed_oauth_scopes')); } set allowedOauthScopes(value) { this._allowedOauthScopes = value; } resetAllowedOauthScopes() { this._allowedOauthScopes = undefined; } // Temporarily expose input value. Use with caution. get allowedOauthScopesInput() { return this._allowedOauthScopes; } get authSessionValidity() { return this.getNumberAttribute('auth_session_validity'); } set authSessionValidity(value) { this._authSessionValidity = value; } resetAuthSessionValidity() { this._authSessionValidity = undefined; } // Temporarily expose input value. Use with caution. get authSessionValidityInput() { return this._authSessionValidity; } get callbackUrls() { return cdktf.Fn.tolist(this.getListAttribute('callback_urls')); } set callbackUrls(value) { this._callbackUrls = value; } resetCallbackUrls() { this._callbackUrls = undefined; } // Temporarily expose input value. Use with caution. get callbackUrlsInput() { return this._callbackUrls; } // client_secret - computed: true, optional: false, required: false get clientSecret() { return this.getStringAttribute('client_secret'); } get defaultRedirectUri() { return this.getStringAttribute('default_redirect_uri'); } set defaultRedirectUri(value) { this._defaultRedirectUri = value; } resetDefaultRedirectUri() { this._defaultRedirectUri = undefined; } // Temporarily expose input value. Use with caution. get defaultRedirectUriInput() { return this._defaultRedirectUri; } get enablePropagateAdditionalUserContextData() { return this.getBooleanAttribute('enable_propagate_additional_user_context_data'); } set enablePropagateAdditionalUserContextData(value) { this._enablePropagateAdditionalUserContextData = value; } resetEnablePropagateAdditionalUserContextData() { this._enablePropagateAdditionalUserContextData = undefined; } // Temporarily expose input value. Use with caution. get enablePropagateAdditionalUserContextDataInput() { return this._enablePropagateAdditionalUserContextData; } get enableTokenRevocation() { return this.getBooleanAttribute('enable_token_revocation'); } set enableTokenRevocation(value) { this._enableTokenRevocation = value; } resetEnableTokenRevocation() { this._enableTokenRevocation = undefined; } // Temporarily expose input value. Use with caution. get enableTokenRevocationInput() { return this._enableTokenRevocation; } get explicitAuthFlows() { return cdktf.Fn.tolist(this.getListAttribute('explicit_auth_flows')); } set explicitAuthFlows(value) { this._explicitAuthFlows = value; } resetExplicitAuthFlows() { this._explicitAuthFlows = undefined; } // Temporarily expose input value. Use with caution. get explicitAuthFlowsInput() { return this._explicitAuthFlows; } // id - computed: true, optional: false, required: false get id() { return this.getStringAttribute('id'); } get idTokenValidity() { return this.getNumberAttribute('id_token_validity'); } set idTokenValidity(value) { this._idTokenValidity = value; } resetIdTokenValidity() { this._idTokenValidity = undefined; } // Temporarily expose input value. Use with caution. get idTokenValidityInput() { return this._idTokenValidity; } get logoutUrls() { return cdktf.Fn.tolist(this.getListAttribute('logout_urls')); } set logoutUrls(value) { this._logoutUrls = value; } resetLogoutUrls() { this._logoutUrls = undefined; } // Temporarily expose input value. Use with caution. get logoutUrlsInput() { return this._logoutUrls; } // name - computed: true, optional: false, required: false get name() { return this.getStringAttribute('name'); } get namePattern() { return this.getStringAttribute('name_pattern'); } set namePattern(value) { this._namePattern = value; } resetNamePattern() { this._namePattern = undefined; } // Temporarily expose input value. Use with caution. get namePatternInput() { return this._namePattern; } get namePrefix() { return this.getStringAttribute('name_prefix'); } set namePrefix(value) { this._namePrefix = value; } resetNamePrefix() { this._namePrefix = undefined; } // Temporarily expose input value. Use with caution. get namePrefixInput() { return this._namePrefix; } get preventUserExistenceErrors() { return this.getStringAttribute('prevent_user_existence_errors'); } set preventUserExistenceErrors(value) { this._preventUserExistenceErrors = value; } resetPreventUserExistenceErrors() { this._preventUserExistenceErrors = undefined; } // Temporarily expose input value. Use with caution. get preventUserExistenceErrorsInput() { return this._preventUserExistenceErrors; } get readAttributes() { return cdktf.Fn.tolist(this.getListAttribute('read_attributes')); } set readAttributes(value) { this._readAttributes = value; } resetReadAttributes() { this._readAttributes = undefined; } // Temporarily expose input value. Use with caution. get readAttributesInput() { return this._readAttributes; } get refreshTokenValidity() { return this.getNumberAttribute('refresh_token_validity'); } set refreshTokenValidity(value) { this._refreshTokenValidity = value; } resetRefreshTokenValidity() { this._refreshTokenValidity = undefined; } // Temporarily expose input value. Use with caution. get refreshTokenValidityInput() { return this._refreshTokenValidity; } get region() { return this.getStringAttribute('region'); } set region(value) { this._region = value; } resetRegion() { this._region = undefined; } // Temporarily expose input value. Use with caution. get regionInput() { return this._region; } get supportedIdentityProviders() { return cdktf.Fn.tolist(this.getListAttribute('supported_identity_providers')); } set supportedIdentityProviders(value) { this._supportedIdentityProviders = value; } resetSupportedIdentityProviders() { this._supportedIdentityProviders = undefined; } // Temporarily expose input value. Use with caution. get supportedIdentityProvidersInput() { return this._supportedIdentityProviders; } 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; } get writeAttributes() { return cdktf.Fn.tolist(this.getListAttribute('write_attributes')); } set writeAttributes(value) { this._writeAttributes = value; } resetWriteAttributes() { this._writeAttributes = undefined; } // Temporarily expose input value. Use with caution. get writeAttributesInput() { return this._writeAttributes; } get analyticsConfiguration() { return this._analyticsConfiguration; } putAnalyticsConfiguration(value) { this._analyticsConfiguration.internalValue = value; } resetAnalyticsConfiguration() { this._analyticsConfiguration.internalValue = undefined; } // Temporarily expose input value. Use with caution. get analyticsConfigurationInput() { return this._analyticsConfiguration.internalValue; } get refreshTokenRotation() { return this._refreshTokenRotation; } putRefreshTokenRotation(value) { this._refreshTokenRotation.internalValue = value; } resetRefreshTokenRotation() { this._refreshTokenRotation.internalValue = undefined; } // Temporarily expose input value. Use with caution. get refreshTokenRotationInput() { return this._refreshTokenRotation.internalValue; } get tokenValidityUnits() { return this._tokenValidityUnits; } putTokenValidityUnits(value) { this._tokenValidityUnits.internalValue = value; } resetTokenValidityUnits() { this._tokenValidityUnits.internalValue = undefined; } // Temporarily expose input value. Use with caution. get tokenValidityUnitsInput() { return this._tokenValidityUnits.internalValue; } // ========= // SYNTHESIS // ========= synthesizeAttributes() { return { access_token_validity: cdktf.numberToTerraform(this._accessTokenValidity), allowed_oauth_flows: cdktf.listMapper(cdktf.stringToTerraform, false)(this._allowedOauthFlows), allowed_oauth_flows_user_pool_client: cdktf.booleanToTerraform(this._allowedOauthFlowsUserPoolClient), allowed_oauth_scopes: cdktf.listMapper(cdktf.stringToTerraform, false)(this._allowedOauthScopes), auth_session_validity: cdktf.numberToTerraform(this._authSessionValidity), callback_urls: cdktf.listMapper(cdktf.stringToTerraform, false)(this._callbackUrls), default_redirect_uri: cdktf.stringToTerraform(this._defaultRedirectUri), enable_propagate_additional_user_context_data: cdktf.booleanToTerraform(this._enablePropagateAdditionalUserContextData), enable_token_revocation: cdktf.booleanToTerraform(this._enableTokenRevocation), explicit_auth_flows: cdktf.listMapper(cdktf.stringToTerraform, false)(this._explicitAuthFlows), id_token_validity: cdktf.numberToTerraform(this._idTokenValidity), logout_urls: cdktf.listMapper(cdktf.stringToTerraform, false)(this._logoutUrls), name_pattern: cdktf.stringToTerraform(this._namePattern), name_prefix: cdktf.stringToTerraform(this._namePrefix), prevent_user_existence_errors: cdktf.stringToTerraform(this._preventUserExistenceErrors), read_attributes: cdktf.listMapper(cdktf.stringToTerraform, false)(this._readAttributes), refresh_token_validity: cdktf.numberToTerraform(this._refreshTokenValidity), region: cdktf.stringToTerraform(this._region), supported_identity_providers: cdktf.listMapper(cdktf.stringToTerraform, false)(this._supportedIdentityProviders), user_pool_id: cdktf.stringToTerraform(this._userPoolId), write_attributes: cdktf.listMapper(cdktf.stringToTerraform, false)(this._writeAttributes), analytics_configuration: cdktf.listMapper(cognitoManagedUserPoolClientAnalyticsConfigurationToTerraform, true)(this._analyticsConfiguration.internalValue), refresh_token_rotation: cdktf.listMapper(cognitoManagedUserPoolClientRefreshTokenRotationToTerraform, true)(this._refreshTokenRotation.internalValue), token_validity_units: cdktf.listMapper(cognitoManagedUserPoolClientTokenValidityUnitsToTerraform, true)(this._tokenValidityUnits.internalValue), }; } synthesizeHclAttributes() { const attrs = { access_token_validity: { value: cdktf.numberToHclTerraform(this._accessTokenValidity), isBlock: false, type: "simple", storageClassType: "number", }, allowed_oauth_flows: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(this._allowedOauthFlows), isBlock: false, type: "set", storageClassType: "stringList", }, allowed_oauth_flows_user_pool_client: { value: cdktf.booleanToHclTerraform(this._allowedOauthFlowsUserPoolClient), isBlock: false, type: "simple", storageClassType: "boolean", }, allowed_oauth_scopes: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(this._allowedOauthScopes), isBlock: false, type: "set", storageClassType: "stringList", }, auth_session_validity: { value: cdktf.numberToHclTerraform(this._authSessionValidity), isBlock: false, type: "simple", storageClassType: "number", }, callback_urls: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(this._callbackUrls), isBlock: false, type: "set", storageClassType: "stringList", }, default_redirect_uri: { value: cdktf.stringToHclTerraform(this._defaultRedirectUri), isBlock: false, type: "simple", storageClassType: "string", }, enable_propagate_additional_user_context_data: { value: cdktf.booleanToHclTerraform(this._enablePropagateAdditionalUserContextData), isBlock: false, type: "simple", storageClassType: "boolean", }, enable_token_revocation: { value: cdktf.booleanToHclTerraform(this._enableTokenRevocation), isBlock: false, type: "simple", storageClassType: "boolean", }, explicit_auth_flows: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(this._explicitAuthFlows), isBlock: false, type: "set", storageClassType: "stringList", }, id_token_validity: { value: cdktf.numberToHclTerraform(this._idTokenValidity), isBlock: false, type: "simple", storageClassType: "number", }, logout_urls: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(this._logoutUrls), isBlock: false, type: "set", storageClassType: "stringList", }, name_pattern: { value: cdktf.stringToHclTerraform(this._namePattern), isBlock: false, type: "simple", storageClassType: "string", }, name_prefix: { value: cdktf.stringToHclTerraform(this._namePrefix), isBlock: false, type: "simple", storageClassType: "string", }, prevent_user_existence_errors: { value: cdktf.stringToHclTerraform(this._preventUserExistenceErrors), isBlock: false, type: "simple", storageClassType: "string", }, read_attributes: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(this._readAttributes), isBlock: false, type: "set", storageClassType: "stringList", }, refresh_token_validity: { value: cdktf.numberToHclTerraform(this._refreshTokenValidity), isBlock: false, type: "simple", storageClassType: "number", }, region: { value: cdktf.stringToHclTerraform(this._region), isBlock: false, type: "simple", storageClassType: "string", }, supported_identity_providers: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(this._supportedIdentityProviders), isBlock: false, type: "set", storageClassType: "stringList", }, user_pool_id: { value: cdktf.stringToHclTerraform(this._userPoolId), isBlock: false, type: "simple", storageClassType: "string", }, write_attributes: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(this._writeAttributes), isBlock: false, type: "set", storageClassType: "stringList", }, analytics_configuration: { value: cdktf.listMapperHcl(cognitoManagedUserPoolClientAnalyticsConfigurationToHclTerraform, true)(this._analyticsConfiguration.internalValue), isBlock: true, type: "list", storageClassType: "CognitoManagedUserPoolClientAnalyticsConfigurationList", }, refresh_token_rotation: { value: cdktf.listMapperHcl(cognitoManagedUserPoolClientRefreshTokenRotationToHclTerraform, true)(this._refreshTokenRotation.internalValue), isBlock: true, type: "list", storageClassType: "CognitoManagedUserPoolClientRefreshTokenRotationList", }, token_validity_units: { value: cdktf.listMapperHcl(cognitoManagedUserPoolClientTokenValidityUnitsToHclTerraform, true)(this._tokenValidityUnits.internalValue), isBlock: true, type: "list", storageClassType: "CognitoManagedUserPoolClientTokenValidityUnitsList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } } exports.CognitoManagedUserPoolClient = CognitoManagedUserPoolClient; _g = JSII_RTTI_SYMBOL_1; CognitoManagedUserPoolClient[_g] = { fqn: "@cdktf/provider-aws.cognitoManagedUserPoolClient.CognitoManagedUserPoolClient", version: "21.22.1" }; // ================= // STATIC PROPERTIES // ================= CognitoManagedUserPoolClient.tfResourceType = "aws_cognito_managed_user_pool_client"; //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvY29nbml0by1tYW5hZ2VkLXVzZXItcG9vbC1jbGllbnQvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQThJQSxzSUFZQztBQUdELDRJQXdDQztBQXFMRCxrSUFTQztBQUdELHdJQXNCQztBQW9IRCw4SEFVQztBQUdELG9JQTRCQzs7QUFoakJELCtCQUErQjtBQXFJL0IsU0FBZ0IsNkRBQTZELENBQUMsTUFBK0U7SUFDM0osSUFBSSxDQUFDLEtBQUssQ0FBQyxVQUFVLENBQUMsTUFBTSxDQUFDLElBQUksS0FBSyxDQUFDLFlBQVksQ0FBQyxZQUFZLENBQUMsT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