// generated from terraform resource schema import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; /** * AWS Cognito */ export interface CognitoUserPoolDomainConfig extends cdktf.TerraformMetaArguments { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cognito_user_pool_domain.html#certificate_arn CognitoUserPoolDomain#certificate_arn} */ readonly certificateArn?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cognito_user_pool_domain.html#domain CognitoUserPoolDomain#domain} */ readonly domain: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cognito_user_pool_domain.html#user_pool_id CognitoUserPoolDomain#user_pool_id} */ readonly userPoolId: string; } /** * Represents a {@link https://www.terraform.io/docs/providers/aws/r/cognito_user_pool_domain.html aws_cognito_user_pool_domain} */ export class CognitoUserPoolDomain extends cdktf.TerraformResource { // ================= // STATIC PROPERTIES // ================= public static readonly tfResourceType: string = "aws_cognito_user_pool_domain"; // =========== // INITIALIZER // =========== /** * Create a new {@link https://www.terraform.io/docs/providers/aws/r/cognito_user_pool_domain.html aws_cognito_user_pool_domain} 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 CognitoUserPoolDomainConfig */ public constructor(scope: Construct, id: string, config: CognitoUserPoolDomainConfig) { super(scope, id, { terraformResourceType: 'aws_cognito_user_pool_domain', terraformGeneratorMetadata: { providerName: 'aws' }, provider: config.provider, dependsOn: config.dependsOn, count: config.count, lifecycle: config.lifecycle }); this._certificateArn = config.certificateArn; this._domain = config.domain; this._userPoolId = config.userPoolId; } // ========== // ATTRIBUTES // ========== // aws_account_id - computed: true, optional: false, required: false public get awsAccountId() { return this.getStringAttribute('aws_account_id'); } // certificate_arn - computed: false, optional: true, required: false private _certificateArn?: string; public get certificateArn() { return this.getStringAttribute('certificate_arn'); } public set certificateArn(value: string) { this._certificateArn = value; } public resetCertificateArn() { this._certificateArn = undefined; } // Temporarily expose input value. Use with caution. public get certificateArnInput() { return this._certificateArn; } // cloudfront_distribution_arn - computed: true, optional: false, required: false public get cloudfrontDistributionArn() { return this.getStringAttribute('cloudfront_distribution_arn'); } // domain - computed: false, optional: false, required: true private _domain?: string; public get domain() { return this.getStringAttribute('domain'); } public set domain(value: string) { this._domain = value; } // Temporarily expose input value. Use with caution. public get domainInput() { return this._domain; } // id - computed: true, optional: true, required: false public get id() { return this.getStringAttribute('id'); } // s3_bucket - computed: true, optional: false, required: false public get s3Bucket() { return this.getStringAttribute('s3_bucket'); } // user_pool_id - computed: false, optional: false, required: true private _userPoolId?: string; public get userPoolId() { return this.getStringAttribute('user_pool_id'); } public set userPoolId(value: string) { this._userPoolId = value; } // Temporarily expose input value. Use with caution. public get userPoolIdInput() { return this._userPoolId; } // version - computed: true, optional: false, required: false public get version() { return this.getStringAttribute('version'); } // ========= // SYNTHESIS // ========= protected synthesizeAttributes(): { [name: string]: any } { return { certificate_arn: cdktf.stringToTerraform(this._certificateArn), domain: cdktf.stringToTerraform(this._domain), user_pool_id: cdktf.stringToTerraform(this._userPoolId), }; } }