// generated from terraform resource schema import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; /** * AWS Amplify */ export interface AmplifyBackendEnvironmentConfig extends cdktf.TerraformMetaArguments { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/amplify_backend_environment.html#app_id AmplifyBackendEnvironment#app_id} */ readonly appId: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/amplify_backend_environment.html#deployment_artifacts AmplifyBackendEnvironment#deployment_artifacts} */ readonly deploymentArtifacts?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/amplify_backend_environment.html#environment_name AmplifyBackendEnvironment#environment_name} */ readonly environmentName: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/amplify_backend_environment.html#stack_name AmplifyBackendEnvironment#stack_name} */ readonly stackName?: string; } /** * Represents a {@link https://www.terraform.io/docs/providers/aws/r/amplify_backend_environment.html aws_amplify_backend_environment} */ export class AmplifyBackendEnvironment extends cdktf.TerraformResource { // ================= // STATIC PROPERTIES // ================= public static readonly tfResourceType: string = "aws_amplify_backend_environment"; // =========== // INITIALIZER // =========== /** * Create a new {@link https://www.terraform.io/docs/providers/aws/r/amplify_backend_environment.html aws_amplify_backend_environment} 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 AmplifyBackendEnvironmentConfig */ public constructor(scope: Construct, id: string, config: AmplifyBackendEnvironmentConfig) { super(scope, id, { terraformResourceType: 'aws_amplify_backend_environment', terraformGeneratorMetadata: { providerName: 'aws' }, provider: config.provider, dependsOn: config.dependsOn, count: config.count, lifecycle: config.lifecycle }); this._appId = config.appId; this._deploymentArtifacts = config.deploymentArtifacts; this._environmentName = config.environmentName; this._stackName = config.stackName; } // ========== // ATTRIBUTES // ========== // app_id - computed: false, optional: false, required: true private _appId?: string; public get appId() { return this.getStringAttribute('app_id'); } public set appId(value: string) { this._appId = value; } // Temporarily expose input value. Use with caution. public get appIdInput() { return this._appId; } // arn - computed: true, optional: false, required: false public get arn() { return this.getStringAttribute('arn'); } // deployment_artifacts - computed: true, optional: true, required: false private _deploymentArtifacts?: string; public get deploymentArtifacts() { return this.getStringAttribute('deployment_artifacts'); } public set deploymentArtifacts(value: string) { this._deploymentArtifacts = value; } public resetDeploymentArtifacts() { this._deploymentArtifacts = undefined; } // Temporarily expose input value. Use with caution. public get deploymentArtifactsInput() { return this._deploymentArtifacts; } // environment_name - computed: false, optional: false, required: true private _environmentName?: string; public get environmentName() { return this.getStringAttribute('environment_name'); } public set environmentName(value: string) { this._environmentName = value; } // Temporarily expose input value. Use with caution. public get environmentNameInput() { return this._environmentName; } // id - computed: true, optional: true, required: false public get id() { return this.getStringAttribute('id'); } // stack_name - computed: true, optional: true, required: false private _stackName?: string; public get stackName() { return this.getStringAttribute('stack_name'); } public set stackName(value: string) { this._stackName = value; } public resetStackName() { this._stackName = undefined; } // Temporarily expose input value. Use with caution. public get stackNameInput() { return this._stackName; } // ========= // SYNTHESIS // ========= protected synthesizeAttributes(): { [name: string]: any } { return { app_id: cdktf.stringToTerraform(this._appId), deployment_artifacts: cdktf.stringToTerraform(this._deploymentArtifacts), environment_name: cdktf.stringToTerraform(this._environmentName), stack_name: cdktf.stringToTerraform(this._stackName), }; } }