// generated from terraform resource schema import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; /** * Amazon Chime */ export interface ChimeVoiceConnectorTerminationConfig extends cdktf.TerraformMetaArguments { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/chime_voice_connector_termination.html#calling_regions ChimeVoiceConnectorTermination#calling_regions} */ readonly callingRegions: string[]; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/chime_voice_connector_termination.html#cidr_allow_list ChimeVoiceConnectorTermination#cidr_allow_list} */ readonly cidrAllowList: string[]; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/chime_voice_connector_termination.html#cps_limit ChimeVoiceConnectorTermination#cps_limit} */ readonly cpsLimit?: number; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/chime_voice_connector_termination.html#default_phone_number ChimeVoiceConnectorTermination#default_phone_number} */ readonly defaultPhoneNumber?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/chime_voice_connector_termination.html#disabled ChimeVoiceConnectorTermination#disabled} */ readonly disabled?: boolean | cdktf.IResolvable; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/chime_voice_connector_termination.html#voice_connector_id ChimeVoiceConnectorTermination#voice_connector_id} */ readonly voiceConnectorId: string; } /** * Represents a {@link https://www.terraform.io/docs/providers/aws/r/chime_voice_connector_termination.html aws_chime_voice_connector_termination} */ export class ChimeVoiceConnectorTermination extends cdktf.TerraformResource { // ================= // STATIC PROPERTIES // ================= public static readonly tfResourceType: string = "aws_chime_voice_connector_termination"; // =========== // INITIALIZER // =========== /** * Create a new {@link https://www.terraform.io/docs/providers/aws/r/chime_voice_connector_termination.html aws_chime_voice_connector_termination} 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 ChimeVoiceConnectorTerminationConfig */ public constructor(scope: Construct, id: string, config: ChimeVoiceConnectorTerminationConfig) { super(scope, id, { terraformResourceType: 'aws_chime_voice_connector_termination', terraformGeneratorMetadata: { providerName: 'aws' }, provider: config.provider, dependsOn: config.dependsOn, count: config.count, lifecycle: config.lifecycle }); this._callingRegions = config.callingRegions; this._cidrAllowList = config.cidrAllowList; this._cpsLimit = config.cpsLimit; this._defaultPhoneNumber = config.defaultPhoneNumber; this._disabled = config.disabled; this._voiceConnectorId = config.voiceConnectorId; } // ========== // ATTRIBUTES // ========== // calling_regions - computed: false, optional: false, required: true private _callingRegions?: string[]; public get callingRegions() { return this.getListAttribute('calling_regions'); } public set callingRegions(value: string[]) { this._callingRegions = value; } // Temporarily expose input value. Use with caution. public get callingRegionsInput() { return this._callingRegions; } // cidr_allow_list - computed: false, optional: false, required: true private _cidrAllowList?: string[]; public get cidrAllowList() { return this.getListAttribute('cidr_allow_list'); } public set cidrAllowList(value: string[]) { this._cidrAllowList = value; } // Temporarily expose input value. Use with caution. public get cidrAllowListInput() { return this._cidrAllowList; } // cps_limit - computed: false, optional: true, required: false private _cpsLimit?: number; public get cpsLimit() { return this.getNumberAttribute('cps_limit'); } public set cpsLimit(value: number) { this._cpsLimit = value; } public resetCpsLimit() { this._cpsLimit = undefined; } // Temporarily expose input value. Use with caution. public get cpsLimitInput() { return this._cpsLimit; } // default_phone_number - computed: false, optional: true, required: false private _defaultPhoneNumber?: string; public get defaultPhoneNumber() { return this.getStringAttribute('default_phone_number'); } public set defaultPhoneNumber(value: string) { this._defaultPhoneNumber = value; } public resetDefaultPhoneNumber() { this._defaultPhoneNumber = undefined; } // Temporarily expose input value. Use with caution. public get defaultPhoneNumberInput() { return this._defaultPhoneNumber; } // disabled - computed: false, optional: true, required: false private _disabled?: boolean | cdktf.IResolvable; public get disabled() { return this.getBooleanAttribute('disabled') as any; } public set disabled(value: boolean | cdktf.IResolvable) { this._disabled = value; } public resetDisabled() { this._disabled = undefined; } // Temporarily expose input value. Use with caution. public get disabledInput() { return this._disabled; } // id - computed: true, optional: true, required: false public get id() { return this.getStringAttribute('id'); } // voice_connector_id - computed: false, optional: false, required: true private _voiceConnectorId?: string; public get voiceConnectorId() { return this.getStringAttribute('voice_connector_id'); } public set voiceConnectorId(value: string) { this._voiceConnectorId = value; } // Temporarily expose input value. Use with caution. public get voiceConnectorIdInput() { return this._voiceConnectorId; } // ========= // SYNTHESIS // ========= protected synthesizeAttributes(): { [name: string]: any } { return { calling_regions: cdktf.listMapper(cdktf.stringToTerraform)(this._callingRegions), cidr_allow_list: cdktf.listMapper(cdktf.stringToTerraform)(this._cidrAllowList), cps_limit: cdktf.numberToTerraform(this._cpsLimit), default_phone_number: cdktf.stringToTerraform(this._defaultPhoneNumber), disabled: cdktf.booleanToTerraform(this._disabled), voice_connector_id: cdktf.stringToTerraform(this._voiceConnectorId), }; } }