// generated from terraform resource schema import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; /** * AWS Managed Message Queue */ export interface MqConfigurationConfig extends cdktf.TerraformMetaArguments { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/mq_configuration.html#authentication_strategy MqConfiguration#authentication_strategy} */ readonly authenticationStrategy?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/mq_configuration.html#data MqConfiguration#data} */ readonly data: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/mq_configuration.html#description MqConfiguration#description} */ readonly description?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/mq_configuration.html#engine_type MqConfiguration#engine_type} */ readonly engineType: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/mq_configuration.html#engine_version MqConfiguration#engine_version} */ readonly engineVersion: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/mq_configuration.html#name MqConfiguration#name} */ readonly name: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/mq_configuration.html#tags MqConfiguration#tags} */ readonly tags?: { [key: string]: string } | cdktf.IResolvable; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/mq_configuration.html#tags_all MqConfiguration#tags_all} */ readonly tagsAll?: { [key: string]: string } | cdktf.IResolvable; } /** * Represents a {@link https://www.terraform.io/docs/providers/aws/r/mq_configuration.html aws_mq_configuration} */ export class MqConfiguration extends cdktf.TerraformResource { // ================= // STATIC PROPERTIES // ================= public static readonly tfResourceType: string = "aws_mq_configuration"; // =========== // INITIALIZER // =========== /** * Create a new {@link https://www.terraform.io/docs/providers/aws/r/mq_configuration.html aws_mq_configuration} 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 MqConfigurationConfig */ public constructor(scope: Construct, id: string, config: MqConfigurationConfig) { super(scope, id, { terraformResourceType: 'aws_mq_configuration', terraformGeneratorMetadata: { providerName: 'aws' }, provider: config.provider, dependsOn: config.dependsOn, count: config.count, lifecycle: config.lifecycle }); this._authenticationStrategy = config.authenticationStrategy; this._data = config.data; this._description = config.description; this._engineType = config.engineType; this._engineVersion = config.engineVersion; this._name = config.name; this._tags = config.tags; this._tagsAll = config.tagsAll; } // ========== // ATTRIBUTES // ========== // arn - computed: true, optional: false, required: false public get arn() { return this.getStringAttribute('arn'); } // authentication_strategy - computed: true, optional: true, required: false private _authenticationStrategy?: string; public get authenticationStrategy() { return this.getStringAttribute('authentication_strategy'); } public set authenticationStrategy(value: string) { this._authenticationStrategy = value; } public resetAuthenticationStrategy() { this._authenticationStrategy = undefined; } // Temporarily expose input value. Use with caution. public get authenticationStrategyInput() { return this._authenticationStrategy; } // data - computed: false, optional: false, required: true private _data?: string; public get data() { return this.getStringAttribute('data'); } public set data(value: string) { this._data = value; } // Temporarily expose input value. Use with caution. public get dataInput() { return this._data; } // description - computed: false, optional: true, required: false private _description?: string; public get description() { return this.getStringAttribute('description'); } public set description(value: string) { this._description = value; } public resetDescription() { this._description = undefined; } // Temporarily expose input value. Use with caution. public get descriptionInput() { return this._description; } // engine_type - computed: false, optional: false, required: true private _engineType?: string; public get engineType() { return this.getStringAttribute('engine_type'); } public set engineType(value: string) { this._engineType = value; } // Temporarily expose input value. Use with caution. public get engineTypeInput() { return this._engineType; } // engine_version - computed: false, optional: false, required: true private _engineVersion?: string; public get engineVersion() { return this.getStringAttribute('engine_version'); } public set engineVersion(value: string) { this._engineVersion = value; } // Temporarily expose input value. Use with caution. public get engineVersionInput() { return this._engineVersion; } // id - computed: true, optional: true, required: false public get id() { return this.getStringAttribute('id'); } // latest_revision - computed: true, optional: false, required: false public get latestRevision() { return this.getNumberAttribute('latest_revision'); } // name - computed: false, optional: false, required: true private _name?: string; public get name() { return this.getStringAttribute('name'); } public set name(value: string) { this._name = value; } // Temporarily expose input value. Use with caution. public get nameInput() { return this._name; } // tags - computed: false, optional: true, required: false private _tags?: { [key: string]: string } | cdktf.IResolvable; public get tags() { // Getting the computed value is not yet implemented return this.interpolationForAttribute('tags') as any; } public set tags(value: { [key: string]: string } | cdktf.IResolvable) { this._tags = value; } public resetTags() { this._tags = undefined; } // Temporarily expose input value. Use with caution. public get tagsInput() { return this._tags; } // tags_all - computed: true, optional: true, required: false private _tagsAll?: { [key: string]: string } | cdktf.IResolvable; public get tagsAll() { // Getting the computed value is not yet implemented return this.interpolationForAttribute('tags_all') as any; } public set tagsAll(value: { [key: string]: string } | cdktf.IResolvable) { this._tagsAll = value; } public resetTagsAll() { this._tagsAll = undefined; } // Temporarily expose input value. Use with caution. public get tagsAllInput() { return this._tagsAll; } // ========= // SYNTHESIS // ========= protected synthesizeAttributes(): { [name: string]: any } { return { authentication_strategy: cdktf.stringToTerraform(this._authenticationStrategy), data: cdktf.stringToTerraform(this._data), description: cdktf.stringToTerraform(this._description), engine_type: cdktf.stringToTerraform(this._engineType), engine_version: cdktf.stringToTerraform(this._engineVersion), name: cdktf.stringToTerraform(this._name), tags: cdktf.hashMapper(cdktf.anyToTerraform)(this._tags), tags_all: cdktf.hashMapper(cdktf.anyToTerraform)(this._tagsAll), }; } }