// https://www.terraform.io/docs/providers/aws/d/cloudcontrolapi_resource.html // generated from terraform resource schema import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; // Configuration export interface DataAwsCloudcontrolapiResourceConfig extends cdktf.TerraformMetaArguments { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/d/cloudcontrolapi_resource.html#identifier DataAwsCloudcontrolapiResource#identifier} */ readonly identifier: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/d/cloudcontrolapi_resource.html#role_arn DataAwsCloudcontrolapiResource#role_arn} */ readonly roleArn?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/d/cloudcontrolapi_resource.html#type_name DataAwsCloudcontrolapiResource#type_name} */ readonly typeName: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/d/cloudcontrolapi_resource.html#type_version_id DataAwsCloudcontrolapiResource#type_version_id} */ readonly typeVersionId?: string; } /** * Represents a {@link https://www.terraform.io/docs/providers/aws/d/cloudcontrolapi_resource.html aws_cloudcontrolapi_resource} */ export class DataAwsCloudcontrolapiResource extends cdktf.TerraformDataSource { // ================= // STATIC PROPERTIES // ================= public static readonly tfResourceType: string = "aws_cloudcontrolapi_resource"; // =========== // INITIALIZER // =========== /** * Create a new {@link https://www.terraform.io/docs/providers/aws/d/cloudcontrolapi_resource.html aws_cloudcontrolapi_resource} 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 DataAwsCloudcontrolapiResourceConfig */ public constructor(scope: Construct, id: string, config: DataAwsCloudcontrolapiResourceConfig) { super(scope, id, { terraformResourceType: 'aws_cloudcontrolapi_resource', terraformGeneratorMetadata: { providerName: 'aws' }, provider: config.provider, dependsOn: config.dependsOn, count: config.count, lifecycle: config.lifecycle }); this._identifier = config.identifier; this._roleArn = config.roleArn; this._typeName = config.typeName; this._typeVersionId = config.typeVersionId; } // ========== // ATTRIBUTES // ========== // id - computed: true, optional: true, required: false public get id() { return this.getStringAttribute('id'); } // identifier - computed: false, optional: false, required: true private _identifier?: string; public get identifier() { return this.getStringAttribute('identifier'); } public set identifier(value: string) { this._identifier = value; } // Temporarily expose input value. Use with caution. public get identifierInput() { return this._identifier; } // properties - computed: true, optional: false, required: false public get properties() { return this.getStringAttribute('properties'); } // role_arn - computed: false, optional: true, required: false private _roleArn?: string; public get roleArn() { return this.getStringAttribute('role_arn'); } public set roleArn(value: string) { this._roleArn = value; } public resetRoleArn() { this._roleArn = undefined; } // Temporarily expose input value. Use with caution. public get roleArnInput() { return this._roleArn; } // type_name - computed: false, optional: false, required: true private _typeName?: string; public get typeName() { return this.getStringAttribute('type_name'); } public set typeName(value: string) { this._typeName = value; } // Temporarily expose input value. Use with caution. public get typeNameInput() { return this._typeName; } // type_version_id - computed: false, optional: true, required: false private _typeVersionId?: string; public get typeVersionId() { return this.getStringAttribute('type_version_id'); } public set typeVersionId(value: string) { this._typeVersionId = value; } public resetTypeVersionId() { this._typeVersionId = undefined; } // Temporarily expose input value. Use with caution. public get typeVersionIdInput() { return this._typeVersionId; } // ========= // SYNTHESIS // ========= protected synthesizeAttributes(): { [name: string]: any } { return { identifier: cdktf.stringToTerraform(this._identifier), role_arn: cdktf.stringToTerraform(this._roleArn), type_name: cdktf.stringToTerraform(this._typeName), type_version_id: cdktf.stringToTerraform(this._typeVersionId), }; } }