// generated from terraform resource schema import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; /** * App Mesh */ export interface AppmeshVirtualGatewayConfig extends cdktf.TerraformMetaArguments { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/appmesh_virtual_gateway.html#mesh_name AppmeshVirtualGateway#mesh_name} */ readonly meshName: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/appmesh_virtual_gateway.html#mesh_owner AppmeshVirtualGateway#mesh_owner} */ readonly meshOwner?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/appmesh_virtual_gateway.html#name AppmeshVirtualGateway#name} */ readonly name: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/appmesh_virtual_gateway.html#tags AppmeshVirtualGateway#tags} */ readonly tags?: { [key: string]: string } | cdktf.IResolvable; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/appmesh_virtual_gateway.html#tags_all AppmeshVirtualGateway#tags_all} */ readonly tagsAll?: { [key: string]: string } | cdktf.IResolvable; /** * spec block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/appmesh_virtual_gateway.html#spec AppmeshVirtualGateway#spec} */ readonly spec: AppmeshVirtualGatewaySpec; } export interface AppmeshVirtualGatewaySpecBackendDefaultsClientPolicyTlsCertificateFile { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/appmesh_virtual_gateway.html#certificate_chain AppmeshVirtualGateway#certificate_chain} */ readonly certificateChain: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/appmesh_virtual_gateway.html#private_key AppmeshVirtualGateway#private_key} */ readonly privateKey: string; } export function appmeshVirtualGatewaySpecBackendDefaultsClientPolicyTlsCertificateFileToTerraform(struct?: AppmeshVirtualGatewaySpecBackendDefaultsClientPolicyTlsCertificateFileOutputReference | AppmeshVirtualGatewaySpecBackendDefaultsClientPolicyTlsCertificateFile): any { if (!cdktf.canInspect(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { certificate_chain: cdktf.stringToTerraform(struct!.certificateChain), private_key: cdktf.stringToTerraform(struct!.privateKey), } } export class AppmeshVirtualGatewaySpecBackendDefaultsClientPolicyTlsCertificateFileOutputReference extends cdktf.ComplexObject { private isEmptyObject = false; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param isSingleItem True if this is a block, false if it's a list */ public constructor(terraformResource: cdktf.ITerraformResource, terraformAttribute: string, isSingleItem: boolean) { super(terraformResource, terraformAttribute, isSingleItem); } public get internalValue(): AppmeshVirtualGatewaySpecBackendDefaultsClientPolicyTlsCertificateFile | undefined { let hasAnyValues = this.isEmptyObject; const internalValueResult: any = {}; if (this._certificateChain !== undefined) { hasAnyValues = true; internalValueResult.certificateChain = this._certificateChain; } if (this._privateKey !== undefined) { hasAnyValues = true; internalValueResult.privateKey = this._privateKey; } return hasAnyValues ? internalValueResult : undefined; } public set internalValue(value: AppmeshVirtualGatewaySpecBackendDefaultsClientPolicyTlsCertificateFile | undefined) { if (value === undefined) { this.isEmptyObject = false; this._certificateChain = undefined; this._privateKey = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._certificateChain = value.certificateChain; this._privateKey = value.privateKey; } } // certificate_chain - computed: false, optional: false, required: true private _certificateChain?: string; public get certificateChain() { return this.getStringAttribute('certificate_chain'); } public set certificateChain(value: string) { this._certificateChain = value; } // Temporarily expose input value. Use with caution. public get certificateChainInput() { return this._certificateChain; } // private_key - computed: false, optional: false, required: true private _privateKey?: string; public get privateKey() { return this.getStringAttribute('private_key'); } public set privateKey(value: string) { this._privateKey = value; } // Temporarily expose input value. Use with caution. public get privateKeyInput() { return this._privateKey; } } export interface AppmeshVirtualGatewaySpecBackendDefaultsClientPolicyTlsCertificateSds { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/appmesh_virtual_gateway.html#secret_name AppmeshVirtualGateway#secret_name} */ readonly secretName: string; } export function appmeshVirtualGatewaySpecBackendDefaultsClientPolicyTlsCertificateSdsToTerraform(struct?: AppmeshVirtualGatewaySpecBackendDefaultsClientPolicyTlsCertificateSdsOutputReference | AppmeshVirtualGatewaySpecBackendDefaultsClientPolicyTlsCertificateSds): any { if (!cdktf.canInspect(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { secret_name: cdktf.stringToTerraform(struct!.secretName), } } export class AppmeshVirtualGatewaySpecBackendDefaultsClientPolicyTlsCertificateSdsOutputReference extends cdktf.ComplexObject { private isEmptyObject = false; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param isSingleItem True if this is a block, false if it's a list */ public constructor(terraformResource: cdktf.ITerraformResource, terraformAttribute: string, isSingleItem: boolean) { super(terraformResource, terraformAttribute, isSingleItem); } public get internalValue(): AppmeshVirtualGatewaySpecBackendDefaultsClientPolicyTlsCertificateSds | undefined { let hasAnyValues = this.isEmptyObject; const internalValueResult: any = {}; if (this._secretName !== undefined) { hasAnyValues = true; internalValueResult.secretName = this._secretName; } return hasAnyValues ? internalValueResult : undefined; } public set internalValue(value: AppmeshVirtualGatewaySpecBackendDefaultsClientPolicyTlsCertificateSds | undefined) { if (value === undefined) { this.isEmptyObject = false; this._secretName = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._secretName = value.secretName; } } // secret_name - computed: false, optional: false, required: true private _secretName?: string; public get secretName() { return this.getStringAttribute('secret_name'); } public set secretName(value: string) { this._secretName = value; } // Temporarily expose input value. Use with caution. public get secretNameInput() { return this._secretName; } } export interface AppmeshVirtualGatewaySpecBackendDefaultsClientPolicyTlsCertificate { /** * file block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/appmesh_virtual_gateway.html#file AppmeshVirtualGateway#file} */ readonly file?: AppmeshVirtualGatewaySpecBackendDefaultsClientPolicyTlsCertificateFile; /** * sds block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/appmesh_virtual_gateway.html#sds AppmeshVirtualGateway#sds} */ readonly sds?: AppmeshVirtualGatewaySpecBackendDefaultsClientPolicyTlsCertificateSds; } export function appmeshVirtualGatewaySpecBackendDefaultsClientPolicyTlsCertificateToTerraform(struct?: AppmeshVirtualGatewaySpecBackendDefaultsClientPolicyTlsCertificateOutputReference | AppmeshVirtualGatewaySpecBackendDefaultsClientPolicyTlsCertificate): any { if (!cdktf.canInspect(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { file: appmeshVirtualGatewaySpecBackendDefaultsClientPolicyTlsCertificateFileToTerraform(struct!.file), sds: appmeshVirtualGatewaySpecBackendDefaultsClientPolicyTlsCertificateSdsToTerraform(struct!.sds), } } export class AppmeshVirtualGatewaySpecBackendDefaultsClientPolicyTlsCertificateOutputReference extends cdktf.ComplexObject { private isEmptyObject = false; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param isSingleItem True if this is a block, false if it's a list */ public constructor(terraformResource: cdktf.ITerraformResource, terraformAttribute: string, isSingleItem: boolean) { super(terraformResource, terraformAttribute, isSingleItem); } public get internalValue(): AppmeshVirtualGatewaySpecBackendDefaultsClientPolicyTlsCertificate | undefined { let hasAnyValues = this.isEmptyObject; const internalValueResult: any = {}; if (this._file?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.file = this._file?.internalValue; } if (this._sds?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.sds = this._sds?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } public set internalValue(value: AppmeshVirtualGatewaySpecBackendDefaultsClientPolicyTlsCertificate | undefined) { if (value === undefined) { this.isEmptyObject = false; this._file.internalValue = undefined; this._sds.internalValue = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._file.internalValue = value.file; this._sds.internalValue = value.sds; } } // file - computed: false, optional: true, required: false private _file = new AppmeshVirtualGatewaySpecBackendDefaultsClientPolicyTlsCertificateFileOutputReference(this as any, "file", true); public get file() { return this._file; } public putFile(value: AppmeshVirtualGatewaySpecBackendDefaultsClientPolicyTlsCertificateFile) { this._file.internalValue = value; } public resetFile() { this._file.internalValue = undefined; } // Temporarily expose input value. Use with caution. public get fileInput() { return this._file.internalValue; } // sds - computed: false, optional: true, required: false private _sds = new AppmeshVirtualGatewaySpecBackendDefaultsClientPolicyTlsCertificateSdsOutputReference(this as any, "sds", true); public get sds() { return this._sds; } public putSds(value: AppmeshVirtualGatewaySpecBackendDefaultsClientPolicyTlsCertificateSds) { this._sds.internalValue = value; } public resetSds() { this._sds.internalValue = undefined; } // Temporarily expose input value. Use with caution. public get sdsInput() { return this._sds.internalValue; } } export interface AppmeshVirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationSubjectAlternativeNamesMatch { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/appmesh_virtual_gateway.html#exact AppmeshVirtualGateway#exact} */ readonly exact: string[]; } export function appmeshVirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationSubjectAlternativeNamesMatchToTerraform(struct?: AppmeshVirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationSubjectAlternativeNamesMatchOutputReference | AppmeshVirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationSubjectAlternativeNamesMatch): any { if (!cdktf.canInspect(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { exact: cdktf.listMapper(cdktf.stringToTerraform)(struct!.exact), } } export class AppmeshVirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationSubjectAlternativeNamesMatchOutputReference extends cdktf.ComplexObject { private isEmptyObject = false; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param isSingleItem True if this is a block, false if it's a list */ public constructor(terraformResource: cdktf.ITerraformResource, terraformAttribute: string, isSingleItem: boolean) { super(terraformResource, terraformAttribute, isSingleItem); } public get internalValue(): AppmeshVirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationSubjectAlternativeNamesMatch | undefined { let hasAnyValues = this.isEmptyObject; const internalValueResult: any = {}; if (this._exact !== undefined) { hasAnyValues = true; internalValueResult.exact = this._exact; } return hasAnyValues ? internalValueResult : undefined; } public set internalValue(value: AppmeshVirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationSubjectAlternativeNamesMatch | undefined) { if (value === undefined) { this.isEmptyObject = false; this._exact = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._exact = value.exact; } } // exact - computed: false, optional: false, required: true private _exact?: string[]; public get exact() { return this.getListAttribute('exact'); } public set exact(value: string[]) { this._exact = value; } // Temporarily expose input value. Use with caution. public get exactInput() { return this._exact; } } export interface AppmeshVirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationSubjectAlternativeNames { /** * match block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/appmesh_virtual_gateway.html#match AppmeshVirtualGateway#match} */ readonly match: AppmeshVirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationSubjectAlternativeNamesMatch; } export function appmeshVirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationSubjectAlternativeNamesToTerraform(struct?: AppmeshVirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationSubjectAlternativeNamesOutputReference | AppmeshVirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationSubjectAlternativeNames): any { if (!cdktf.canInspect(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { match: appmeshVirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationSubjectAlternativeNamesMatchToTerraform(struct!.match), } } export class AppmeshVirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationSubjectAlternativeNamesOutputReference extends cdktf.ComplexObject { private isEmptyObject = false; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param isSingleItem True if this is a block, false if it's a list */ public constructor(terraformResource: cdktf.ITerraformResource, terraformAttribute: string, isSingleItem: boolean) { super(terraformResource, terraformAttribute, isSingleItem); } public get internalValue(): AppmeshVirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationSubjectAlternativeNames | undefined { let hasAnyValues = this.isEmptyObject; const internalValueResult: any = {}; if (this._match?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.match = this._match?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } public set internalValue(value: AppmeshVirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationSubjectAlternativeNames | undefined) { if (value === undefined) { this.isEmptyObject = false; this._match.internalValue = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._match.internalValue = value.match; } } // match - computed: false, optional: false, required: true private _match = new AppmeshVirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationSubjectAlternativeNamesMatchOutputReference(this as any, "match", true); public get match() { return this._match; } public putMatch(value: AppmeshVirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationSubjectAlternativeNamesMatch) { this._match.internalValue = value; } // Temporarily expose input value. Use with caution. public get matchInput() { return this._match.internalValue; } } export interface AppmeshVirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationTrustAcm { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/appmesh_virtual_gateway.html#certificate_authority_arns AppmeshVirtualGateway#certificate_authority_arns} */ readonly certificateAuthorityArns: string[]; } export function appmeshVirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationTrustAcmToTerraform(struct?: AppmeshVirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationTrustAcmOutputReference | AppmeshVirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationTrustAcm): any { if (!cdktf.canInspect(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { certificate_authority_arns: cdktf.listMapper(cdktf.stringToTerraform)(struct!.certificateAuthorityArns), } } export class AppmeshVirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationTrustAcmOutputReference extends cdktf.ComplexObject { private isEmptyObject = false; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param isSingleItem True if this is a block, false if it's a list */ public constructor(terraformResource: cdktf.ITerraformResource, terraformAttribute: string, isSingleItem: boolean) { super(terraformResource, terraformAttribute, isSingleItem); } public get internalValue(): AppmeshVirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationTrustAcm | undefined { let hasAnyValues = this.isEmptyObject; const internalValueResult: any = {}; if (this._certificateAuthorityArns !== undefined) { hasAnyValues = true; internalValueResult.certificateAuthorityArns = this._certificateAuthorityArns; } return hasAnyValues ? internalValueResult : undefined; } public set internalValue(value: AppmeshVirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationTrustAcm | undefined) { if (value === undefined) { this.isEmptyObject = false; this._certificateAuthorityArns = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._certificateAuthorityArns = value.certificateAuthorityArns; } } // certificate_authority_arns - computed: false, optional: false, required: true private _certificateAuthorityArns?: string[]; public get certificateAuthorityArns() { return this.getListAttribute('certificate_authority_arns'); } public set certificateAuthorityArns(value: string[]) { this._certificateAuthorityArns = value; } // Temporarily expose input value. Use with caution. public get certificateAuthorityArnsInput() { return this._certificateAuthorityArns; } } export interface AppmeshVirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationTrustFile { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/appmesh_virtual_gateway.html#certificate_chain AppmeshVirtualGateway#certificate_chain} */ readonly certificateChain: string; } export function appmeshVirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationTrustFileToTerraform(struct?: AppmeshVirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationTrustFileOutputReference | AppmeshVirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationTrustFile): any { if (!cdktf.canInspect(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { certificate_chain: cdktf.stringToTerraform(struct!.certificateChain), } } export class AppmeshVirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationTrustFileOutputReference extends cdktf.ComplexObject { private isEmptyObject = false; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param isSingleItem True if this is a block, false if it's a list */ public constructor(terraformResource: cdktf.ITerraformResource, terraformAttribute: string, isSingleItem: boolean) { super(terraformResource, terraformAttribute, isSingleItem); } public get internalValue(): AppmeshVirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationTrustFile | undefined { let hasAnyValues = this.isEmptyObject; const internalValueResult: any = {}; if (this._certificateChain !== undefined) { hasAnyValues = true; internalValueResult.certificateChain = this._certificateChain; } return hasAnyValues ? internalValueResult : undefined; } public set internalValue(value: AppmeshVirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationTrustFile | undefined) { if (value === undefined) { this.isEmptyObject = false; this._certificateChain = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._certificateChain = value.certificateChain; } } // certificate_chain - computed: false, optional: false, required: true private _certificateChain?: string; public get certificateChain() { return this.getStringAttribute('certificate_chain'); } public set certificateChain(value: string) { this._certificateChain = value; } // Temporarily expose input value. Use with caution. public get certificateChainInput() { return this._certificateChain; } } export interface AppmeshVirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationTrustSds { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/appmesh_virtual_gateway.html#secret_name AppmeshVirtualGateway#secret_name} */ readonly secretName: string; } export function appmeshVirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationTrustSdsToTerraform(struct?: AppmeshVirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationTrustSdsOutputReference | AppmeshVirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationTrustSds): any { if (!cdktf.canInspect(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { secret_name: cdktf.stringToTerraform(struct!.secretName), } } export class AppmeshVirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationTrustSdsOutputReference extends cdktf.ComplexObject { private isEmptyObject = false; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param isSingleItem True if this is a block, false if it's a list */ public constructor(terraformResource: cdktf.ITerraformResource, terraformAttribute: string, isSingleItem: boolean) { super(terraformResource, terraformAttribute, isSingleItem); } public get internalValue(): AppmeshVirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationTrustSds | undefined { let hasAnyValues = this.isEmptyObject; const internalValueResult: any = {}; if (this._secretName !== undefined) { hasAnyValues = true; internalValueResult.secretName = this._secretName; } return hasAnyValues ? internalValueResult : undefined; } public set internalValue(value: AppmeshVirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationTrustSds | undefined) { if (value === undefined) { this.isEmptyObject = false; this._secretName = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._secretName = value.secretName; } } // secret_name - computed: false, optional: false, required: true private _secretName?: string; public get secretName() { return this.getStringAttribute('secret_name'); } public set secretName(value: string) { this._secretName = value; } // Temporarily expose input value. Use with caution. public get secretNameInput() { return this._secretName; } } export interface AppmeshVirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationTrust { /** * acm block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/appmesh_virtual_gateway.html#acm AppmeshVirtualGateway#acm} */ readonly acm?: AppmeshVirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationTrustAcm; /** * file block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/appmesh_virtual_gateway.html#file AppmeshVirtualGateway#file} */ readonly file?: AppmeshVirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationTrustFile; /** * sds block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/appmesh_virtual_gateway.html#sds AppmeshVirtualGateway#sds} */ readonly sds?: AppmeshVirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationTrustSds; } export function appmeshVirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationTrustToTerraform(struct?: AppmeshVirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationTrustOutputReference | AppmeshVirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationTrust): any { if (!cdktf.canInspect(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { acm: appmeshVirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationTrustAcmToTerraform(struct!.acm), file: appmeshVirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationTrustFileToTerraform(struct!.file), sds: appmeshVirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationTrustSdsToTerraform(struct!.sds), } } export class AppmeshVirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationTrustOutputReference extends cdktf.ComplexObject { private isEmptyObject = false; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param isSingleItem True if this is a block, false if it's a list */ public constructor(terraformResource: cdktf.ITerraformResource, terraformAttribute: string, isSingleItem: boolean) { super(terraformResource, terraformAttribute, isSingleItem); } public get internalValue(): AppmeshVirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationTrust | undefined { let hasAnyValues = this.isEmptyObject; const internalValueResult: any = {}; if (this._acm?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.acm = this._acm?.internalValue; } if (this._file?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.file = this._file?.internalValue; } if (this._sds?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.sds = this._sds?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } public set internalValue(value: AppmeshVirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationTrust | undefined) { if (value === undefined) { this.isEmptyObject = false; this._acm.internalValue = undefined; this._file.internalValue = undefined; this._sds.internalValue = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._acm.internalValue = value.acm; this._file.internalValue = value.file; this._sds.internalValue = value.sds; } } // acm - computed: false, optional: true, required: false private _acm = new AppmeshVirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationTrustAcmOutputReference(this as any, "acm", true); public get acm() { return this._acm; } public putAcm(value: AppmeshVirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationTrustAcm) { this._acm.internalValue = value; } public resetAcm() { this._acm.internalValue = undefined; } // Temporarily expose input value. Use with caution. public get acmInput() { return this._acm.internalValue; } // file - computed: false, optional: true, required: false private _file = new AppmeshVirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationTrustFileOutputReference(this as any, "file", true); public get file() { return this._file; } public putFile(value: AppmeshVirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationTrustFile) { this._file.internalValue = value; } public resetFile() { this._file.internalValue = undefined; } // Temporarily expose input value. Use with caution. public get fileInput() { return this._file.internalValue; } // sds - computed: false, optional: true, required: false private _sds = new AppmeshVirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationTrustSdsOutputReference(this as any, "sds", true); public get sds() { return this._sds; } public putSds(value: AppmeshVirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationTrustSds) { this._sds.internalValue = value; } public resetSds() { this._sds.internalValue = undefined; } // Temporarily expose input value. Use with caution. public get sdsInput() { return this._sds.internalValue; } } export interface AppmeshVirtualGatewaySpecBackendDefaultsClientPolicyTlsValidation { /** * subject_alternative_names block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/appmesh_virtual_gateway.html#subject_alternative_names AppmeshVirtualGateway#subject_alternative_names} */ readonly subjectAlternativeNames?: AppmeshVirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationSubjectAlternativeNames; /** * trust block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/appmesh_virtual_gateway.html#trust AppmeshVirtualGateway#trust} */ readonly trust: AppmeshVirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationTrust; } export function appmeshVirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationToTerraform(struct?: AppmeshVirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationOutputReference | AppmeshVirtualGatewaySpecBackendDefaultsClientPolicyTlsValidation): any { if (!cdktf.canInspect(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { subject_alternative_names: appmeshVirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationSubjectAlternativeNamesToTerraform(struct!.subjectAlternativeNames), trust: appmeshVirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationTrustToTerraform(struct!.trust), } } export class AppmeshVirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationOutputReference extends cdktf.ComplexObject { private isEmptyObject = false; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param isSingleItem True if this is a block, false if it's a list */ public constructor(terraformResource: cdktf.ITerraformResource, terraformAttribute: string, isSingleItem: boolean) { super(terraformResource, terraformAttribute, isSingleItem); } public get internalValue(): AppmeshVirtualGatewaySpecBackendDefaultsClientPolicyTlsValidation | undefined { let hasAnyValues = this.isEmptyObject; const internalValueResult: any = {}; if (this._subjectAlternativeNames?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.subjectAlternativeNames = this._subjectAlternativeNames?.internalValue; } if (this._trust?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.trust = this._trust?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } public set internalValue(value: AppmeshVirtualGatewaySpecBackendDefaultsClientPolicyTlsValidation | undefined) { if (value === undefined) { this.isEmptyObject = false; this._subjectAlternativeNames.internalValue = undefined; this._trust.internalValue = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._subjectAlternativeNames.internalValue = value.subjectAlternativeNames; this._trust.internalValue = value.trust; } } // subject_alternative_names - computed: false, optional: true, required: false private _subjectAlternativeNames = new AppmeshVirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationSubjectAlternativeNamesOutputReference(this as any, "subject_alternative_names", true); public get subjectAlternativeNames() { return this._subjectAlternativeNames; } public putSubjectAlternativeNames(value: AppmeshVirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationSubjectAlternativeNames) { this._subjectAlternativeNames.internalValue = value; } public resetSubjectAlternativeNames() { this._subjectAlternativeNames.internalValue = undefined; } // Temporarily expose input value. Use with caution. public get subjectAlternativeNamesInput() { return this._subjectAlternativeNames.internalValue; } // trust - computed: false, optional: false, required: true private _trust = new AppmeshVirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationTrustOutputReference(this as any, "trust", true); public get trust() { return this._trust; } public putTrust(value: AppmeshVirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationTrust) { this._trust.internalValue = value; } // Temporarily expose input value. Use with caution. public get trustInput() { return this._trust.internalValue; } } export interface AppmeshVirtualGatewaySpecBackendDefaultsClientPolicyTls { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/appmesh_virtual_gateway.html#enforce AppmeshVirtualGateway#enforce} */ readonly enforce?: boolean | cdktf.IResolvable; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/appmesh_virtual_gateway.html#ports AppmeshVirtualGateway#ports} */ readonly ports?: number[]; /** * certificate block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/appmesh_virtual_gateway.html#certificate AppmeshVirtualGateway#certificate} */ readonly certificate?: AppmeshVirtualGatewaySpecBackendDefaultsClientPolicyTlsCertificate; /** * validation block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/appmesh_virtual_gateway.html#validation AppmeshVirtualGateway#validation} */ readonly validation: AppmeshVirtualGatewaySpecBackendDefaultsClientPolicyTlsValidation; } export function appmeshVirtualGatewaySpecBackendDefaultsClientPolicyTlsToTerraform(struct?: AppmeshVirtualGatewaySpecBackendDefaultsClientPolicyTlsOutputReference | AppmeshVirtualGatewaySpecBackendDefaultsClientPolicyTls): any { if (!cdktf.canInspect(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { enforce: cdktf.booleanToTerraform(struct!.enforce), ports: cdktf.listMapper(cdktf.numberToTerraform)(struct!.ports), certificate: appmeshVirtualGatewaySpecBackendDefaultsClientPolicyTlsCertificateToTerraform(struct!.certificate), validation: appmeshVirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationToTerraform(struct!.validation), } } export class AppmeshVirtualGatewaySpecBackendDefaultsClientPolicyTlsOutputReference extends cdktf.ComplexObject { private isEmptyObject = false; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param isSingleItem True if this is a block, false if it's a list */ public constructor(terraformResource: cdktf.ITerraformResource, terraformAttribute: string, isSingleItem: boolean) { super(terraformResource, terraformAttribute, isSingleItem); } public get internalValue(): AppmeshVirtualGatewaySpecBackendDefaultsClientPolicyTls | undefined { let hasAnyValues = this.isEmptyObject; const internalValueResult: any = {}; if (this._enforce !== undefined) { hasAnyValues = true; internalValueResult.enforce = this._enforce; } if (this._ports !== undefined) { hasAnyValues = true; internalValueResult.ports = this._ports; } if (this._certificate?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.certificate = this._certificate?.internalValue; } if (this._validation?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.validation = this._validation?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } public set internalValue(value: AppmeshVirtualGatewaySpecBackendDefaultsClientPolicyTls | undefined) { if (value === undefined) { this.isEmptyObject = false; this._enforce = undefined; this._ports = undefined; this._certificate.internalValue = undefined; this._validation.internalValue = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._enforce = value.enforce; this._ports = value.ports; this._certificate.internalValue = value.certificate; this._validation.internalValue = value.validation; } } // enforce - computed: false, optional: true, required: false private _enforce?: boolean | cdktf.IResolvable; public get enforce() { return this.getBooleanAttribute('enforce') as any; } public set enforce(value: boolean | cdktf.IResolvable) { this._enforce = value; } public resetEnforce() { this._enforce = undefined; } // Temporarily expose input value. Use with caution. public get enforceInput() { return this._enforce; } // ports - computed: false, optional: true, required: false private _ports?: number[]; public get ports() { // Getting the computed value is not yet implemented return this.interpolationForAttribute('ports') as any; } public set ports(value: number[]) { this._ports = value; } public resetPorts() { this._ports = undefined; } // Temporarily expose input value. Use with caution. public get portsInput() { return this._ports; } // certificate - computed: false, optional: true, required: false private _certificate = new AppmeshVirtualGatewaySpecBackendDefaultsClientPolicyTlsCertificateOutputReference(this as any, "certificate", true); public get certificate() { return this._certificate; } public putCertificate(value: AppmeshVirtualGatewaySpecBackendDefaultsClientPolicyTlsCertificate) { this._certificate.internalValue = value; } public resetCertificate() { this._certificate.internalValue = undefined; } // Temporarily expose input value. Use with caution. public get certificateInput() { return this._certificate.internalValue; } // validation - computed: false, optional: false, required: true private _validation = new AppmeshVirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationOutputReference(this as any, "validation", true); public get validation() { return this._validation; } public putValidation(value: AppmeshVirtualGatewaySpecBackendDefaultsClientPolicyTlsValidation) { this._validation.internalValue = value; } // Temporarily expose input value. Use with caution. public get validationInput() { return this._validation.internalValue; } } export interface AppmeshVirtualGatewaySpecBackendDefaultsClientPolicy { /** * tls block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/appmesh_virtual_gateway.html#tls AppmeshVirtualGateway#tls} */ readonly tls?: AppmeshVirtualGatewaySpecBackendDefaultsClientPolicyTls; } export function appmeshVirtualGatewaySpecBackendDefaultsClientPolicyToTerraform(struct?: AppmeshVirtualGatewaySpecBackendDefaultsClientPolicyOutputReference | AppmeshVirtualGatewaySpecBackendDefaultsClientPolicy): any { if (!cdktf.canInspect(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { tls: appmeshVirtualGatewaySpecBackendDefaultsClientPolicyTlsToTerraform(struct!.tls), } } export class AppmeshVirtualGatewaySpecBackendDefaultsClientPolicyOutputReference extends cdktf.ComplexObject { private isEmptyObject = false; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param isSingleItem True if this is a block, false if it's a list */ public constructor(terraformResource: cdktf.ITerraformResource, terraformAttribute: string, isSingleItem: boolean) { super(terraformResource, terraformAttribute, isSingleItem); } public get internalValue(): AppmeshVirtualGatewaySpecBackendDefaultsClientPolicy | undefined { let hasAnyValues = this.isEmptyObject; const internalValueResult: any = {}; if (this._tls?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.tls = this._tls?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } public set internalValue(value: AppmeshVirtualGatewaySpecBackendDefaultsClientPolicy | undefined) { if (value === undefined) { this.isEmptyObject = false; this._tls.internalValue = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._tls.internalValue = value.tls; } } // tls - computed: false, optional: true, required: false private _tls = new AppmeshVirtualGatewaySpecBackendDefaultsClientPolicyTlsOutputReference(this as any, "tls", true); public get tls() { return this._tls; } public putTls(value: AppmeshVirtualGatewaySpecBackendDefaultsClientPolicyTls) { this._tls.internalValue = value; } public resetTls() { this._tls.internalValue = undefined; } // Temporarily expose input value. Use with caution. public get tlsInput() { return this._tls.internalValue; } } export interface AppmeshVirtualGatewaySpecBackendDefaults { /** * client_policy block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/appmesh_virtual_gateway.html#client_policy AppmeshVirtualGateway#client_policy} */ readonly clientPolicy?: AppmeshVirtualGatewaySpecBackendDefaultsClientPolicy; } export function appmeshVirtualGatewaySpecBackendDefaultsToTerraform(struct?: AppmeshVirtualGatewaySpecBackendDefaultsOutputReference | AppmeshVirtualGatewaySpecBackendDefaults): any { if (!cdktf.canInspect(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { client_policy: appmeshVirtualGatewaySpecBackendDefaultsClientPolicyToTerraform(struct!.clientPolicy), } } export class AppmeshVirtualGatewaySpecBackendDefaultsOutputReference extends cdktf.ComplexObject { private isEmptyObject = false; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param isSingleItem True if this is a block, false if it's a list */ public constructor(terraformResource: cdktf.ITerraformResource, terraformAttribute: string, isSingleItem: boolean) { super(terraformResource, terraformAttribute, isSingleItem); } public get internalValue(): AppmeshVirtualGatewaySpecBackendDefaults | undefined { let hasAnyValues = this.isEmptyObject; const internalValueResult: any = {}; if (this._clientPolicy?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.clientPolicy = this._clientPolicy?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } public set internalValue(value: AppmeshVirtualGatewaySpecBackendDefaults | undefined) { if (value === undefined) { this.isEmptyObject = false; this._clientPolicy.internalValue = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._clientPolicy.internalValue = value.clientPolicy; } } // client_policy - computed: false, optional: true, required: false private _clientPolicy = new AppmeshVirtualGatewaySpecBackendDefaultsClientPolicyOutputReference(this as any, "client_policy", true); public get clientPolicy() { return this._clientPolicy; } public putClientPolicy(value: AppmeshVirtualGatewaySpecBackendDefaultsClientPolicy) { this._clientPolicy.internalValue = value; } public resetClientPolicy() { this._clientPolicy.internalValue = undefined; } // Temporarily expose input value. Use with caution. public get clientPolicyInput() { return this._clientPolicy.internalValue; } } export interface AppmeshVirtualGatewaySpecListenerConnectionPoolGrpc { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/appmesh_virtual_gateway.html#max_requests AppmeshVirtualGateway#max_requests} */ readonly maxRequests: number; } export function appmeshVirtualGatewaySpecListenerConnectionPoolGrpcToTerraform(struct?: AppmeshVirtualGatewaySpecListenerConnectionPoolGrpcOutputReference | AppmeshVirtualGatewaySpecListenerConnectionPoolGrpc): any { if (!cdktf.canInspect(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { max_requests: cdktf.numberToTerraform(struct!.maxRequests), } } export class AppmeshVirtualGatewaySpecListenerConnectionPoolGrpcOutputReference extends cdktf.ComplexObject { private isEmptyObject = false; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param isSingleItem True if this is a block, false if it's a list */ public constructor(terraformResource: cdktf.ITerraformResource, terraformAttribute: string, isSingleItem: boolean) { super(terraformResource, terraformAttribute, isSingleItem); } public get internalValue(): AppmeshVirtualGatewaySpecListenerConnectionPoolGrpc | undefined { let hasAnyValues = this.isEmptyObject; const internalValueResult: any = {}; if (this._maxRequests !== undefined) { hasAnyValues = true; internalValueResult.maxRequests = this._maxRequests; } return hasAnyValues ? internalValueResult : undefined; } public set internalValue(value: AppmeshVirtualGatewaySpecListenerConnectionPoolGrpc | undefined) { if (value === undefined) { this.isEmptyObject = false; this._maxRequests = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._maxRequests = value.maxRequests; } } // max_requests - computed: false, optional: false, required: true private _maxRequests?: number; public get maxRequests() { return this.getNumberAttribute('max_requests'); } public set maxRequests(value: number) { this._maxRequests = value; } // Temporarily expose input value. Use with caution. public get maxRequestsInput() { return this._maxRequests; } } export interface AppmeshVirtualGatewaySpecListenerConnectionPoolHttp { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/appmesh_virtual_gateway.html#max_connections AppmeshVirtualGateway#max_connections} */ readonly maxConnections: number; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/appmesh_virtual_gateway.html#max_pending_requests AppmeshVirtualGateway#max_pending_requests} */ readonly maxPendingRequests?: number; } export function appmeshVirtualGatewaySpecListenerConnectionPoolHttpToTerraform(struct?: AppmeshVirtualGatewaySpecListenerConnectionPoolHttpOutputReference | AppmeshVirtualGatewaySpecListenerConnectionPoolHttp): any { if (!cdktf.canInspect(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { max_connections: cdktf.numberToTerraform(struct!.maxConnections), max_pending_requests: cdktf.numberToTerraform(struct!.maxPendingRequests), } } export class AppmeshVirtualGatewaySpecListenerConnectionPoolHttpOutputReference extends cdktf.ComplexObject { private isEmptyObject = false; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param isSingleItem True if this is a block, false if it's a list */ public constructor(terraformResource: cdktf.ITerraformResource, terraformAttribute: string, isSingleItem: boolean) { super(terraformResource, terraformAttribute, isSingleItem); } public get internalValue(): AppmeshVirtualGatewaySpecListenerConnectionPoolHttp | undefined { let hasAnyValues = this.isEmptyObject; const internalValueResult: any = {}; if (this._maxConnections !== undefined) { hasAnyValues = true; internalValueResult.maxConnections = this._maxConnections; } if (this._maxPendingRequests !== undefined) { hasAnyValues = true; internalValueResult.maxPendingRequests = this._maxPendingRequests; } return hasAnyValues ? internalValueResult : undefined; } public set internalValue(value: AppmeshVirtualGatewaySpecListenerConnectionPoolHttp | undefined) { if (value === undefined) { this.isEmptyObject = false; this._maxConnections = undefined; this._maxPendingRequests = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._maxConnections = value.maxConnections; this._maxPendingRequests = value.maxPendingRequests; } } // max_connections - computed: false, optional: false, required: true private _maxConnections?: number; public get maxConnections() { return this.getNumberAttribute('max_connections'); } public set maxConnections(value: number) { this._maxConnections = value; } // Temporarily expose input value. Use with caution. public get maxConnectionsInput() { return this._maxConnections; } // max_pending_requests - computed: false, optional: true, required: false private _maxPendingRequests?: number; public get maxPendingRequests() { return this.getNumberAttribute('max_pending_requests'); } public set maxPendingRequests(value: number) { this._maxPendingRequests = value; } public resetMaxPendingRequests() { this._maxPendingRequests = undefined; } // Temporarily expose input value. Use with caution. public get maxPendingRequestsInput() { return this._maxPendingRequests; } } export interface AppmeshVirtualGatewaySpecListenerConnectionPoolHttp2 { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/appmesh_virtual_gateway.html#max_requests AppmeshVirtualGateway#max_requests} */ readonly maxRequests: number; } export function appmeshVirtualGatewaySpecListenerConnectionPoolHttp2ToTerraform(struct?: AppmeshVirtualGatewaySpecListenerConnectionPoolHttp2OutputReference | AppmeshVirtualGatewaySpecListenerConnectionPoolHttp2): any { if (!cdktf.canInspect(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { max_requests: cdktf.numberToTerraform(struct!.maxRequests), } } export class AppmeshVirtualGatewaySpecListenerConnectionPoolHttp2OutputReference extends cdktf.ComplexObject { private isEmptyObject = false; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param isSingleItem True if this is a block, false if it's a list */ public constructor(terraformResource: cdktf.ITerraformResource, terraformAttribute: string, isSingleItem: boolean) { super(terraformResource, terraformAttribute, isSingleItem); } public get internalValue(): AppmeshVirtualGatewaySpecListenerConnectionPoolHttp2 | undefined { let hasAnyValues = this.isEmptyObject; const internalValueResult: any = {}; if (this._maxRequests !== undefined) { hasAnyValues = true; internalValueResult.maxRequests = this._maxRequests; } return hasAnyValues ? internalValueResult : undefined; } public set internalValue(value: AppmeshVirtualGatewaySpecListenerConnectionPoolHttp2 | undefined) { if (value === undefined) { this.isEmptyObject = false; this._maxRequests = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._maxRequests = value.maxRequests; } } // max_requests - computed: false, optional: false, required: true private _maxRequests?: number; public get maxRequests() { return this.getNumberAttribute('max_requests'); } public set maxRequests(value: number) { this._maxRequests = value; } // Temporarily expose input value. Use with caution. public get maxRequestsInput() { return this._maxRequests; } } export interface AppmeshVirtualGatewaySpecListenerConnectionPool { /** * grpc block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/appmesh_virtual_gateway.html#grpc AppmeshVirtualGateway#grpc} */ readonly grpc?: AppmeshVirtualGatewaySpecListenerConnectionPoolGrpc; /** * http block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/appmesh_virtual_gateway.html#http AppmeshVirtualGateway#http} */ readonly http?: AppmeshVirtualGatewaySpecListenerConnectionPoolHttp; /** * http2 block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/appmesh_virtual_gateway.html#http2 AppmeshVirtualGateway#http2} */ readonly http2?: AppmeshVirtualGatewaySpecListenerConnectionPoolHttp2; } export function appmeshVirtualGatewaySpecListenerConnectionPoolToTerraform(struct?: AppmeshVirtualGatewaySpecListenerConnectionPoolOutputReference | AppmeshVirtualGatewaySpecListenerConnectionPool): any { if (!cdktf.canInspect(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { grpc: appmeshVirtualGatewaySpecListenerConnectionPoolGrpcToTerraform(struct!.grpc), http: appmeshVirtualGatewaySpecListenerConnectionPoolHttpToTerraform(struct!.http), http2: appmeshVirtualGatewaySpecListenerConnectionPoolHttp2ToTerraform(struct!.http2), } } export class AppmeshVirtualGatewaySpecListenerConnectionPoolOutputReference extends cdktf.ComplexObject { private isEmptyObject = false; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param isSingleItem True if this is a block, false if it's a list */ public constructor(terraformResource: cdktf.ITerraformResource, terraformAttribute: string, isSingleItem: boolean) { super(terraformResource, terraformAttribute, isSingleItem); } public get internalValue(): AppmeshVirtualGatewaySpecListenerConnectionPool | undefined { let hasAnyValues = this.isEmptyObject; const internalValueResult: any = {}; if (this._grpc?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.grpc = this._grpc?.internalValue; } if (this._http?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.http = this._http?.internalValue; } if (this._http2?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.http2 = this._http2?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } public set internalValue(value: AppmeshVirtualGatewaySpecListenerConnectionPool | undefined) { if (value === undefined) { this.isEmptyObject = false; this._grpc.internalValue = undefined; this._http.internalValue = undefined; this._http2.internalValue = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._grpc.internalValue = value.grpc; this._http.internalValue = value.http; this._http2.internalValue = value.http2; } } // grpc - computed: false, optional: true, required: false private _grpc = new AppmeshVirtualGatewaySpecListenerConnectionPoolGrpcOutputReference(this as any, "grpc", true); public get grpc() { return this._grpc; } public putGrpc(value: AppmeshVirtualGatewaySpecListenerConnectionPoolGrpc) { this._grpc.internalValue = value; } public resetGrpc() { this._grpc.internalValue = undefined; } // Temporarily expose input value. Use with caution. public get grpcInput() { return this._grpc.internalValue; } // http - computed: false, optional: true, required: false private _http = new AppmeshVirtualGatewaySpecListenerConnectionPoolHttpOutputReference(this as any, "http", true); public get http() { return this._http; } public putHttp(value: AppmeshVirtualGatewaySpecListenerConnectionPoolHttp) { this._http.internalValue = value; } public resetHttp() { this._http.internalValue = undefined; } // Temporarily expose input value. Use with caution. public get httpInput() { return this._http.internalValue; } // http2 - computed: false, optional: true, required: false private _http2 = new AppmeshVirtualGatewaySpecListenerConnectionPoolHttp2OutputReference(this as any, "http2", true); public get http2() { return this._http2; } public putHttp2(value: AppmeshVirtualGatewaySpecListenerConnectionPoolHttp2) { this._http2.internalValue = value; } public resetHttp2() { this._http2.internalValue = undefined; } // Temporarily expose input value. Use with caution. public get http2Input() { return this._http2.internalValue; } } export interface AppmeshVirtualGatewaySpecListenerHealthCheck { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/appmesh_virtual_gateway.html#healthy_threshold AppmeshVirtualGateway#healthy_threshold} */ readonly healthyThreshold: number; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/appmesh_virtual_gateway.html#interval_millis AppmeshVirtualGateway#interval_millis} */ readonly intervalMillis: number; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/appmesh_virtual_gateway.html#path AppmeshVirtualGateway#path} */ readonly path?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/appmesh_virtual_gateway.html#port AppmeshVirtualGateway#port} */ readonly port?: number; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/appmesh_virtual_gateway.html#protocol AppmeshVirtualGateway#protocol} */ readonly protocol: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/appmesh_virtual_gateway.html#timeout_millis AppmeshVirtualGateway#timeout_millis} */ readonly timeoutMillis: number; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/appmesh_virtual_gateway.html#unhealthy_threshold AppmeshVirtualGateway#unhealthy_threshold} */ readonly unhealthyThreshold: number; } export function appmeshVirtualGatewaySpecListenerHealthCheckToTerraform(struct?: AppmeshVirtualGatewaySpecListenerHealthCheckOutputReference | AppmeshVirtualGatewaySpecListenerHealthCheck): any { if (!cdktf.canInspect(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { healthy_threshold: cdktf.numberToTerraform(struct!.healthyThreshold), interval_millis: cdktf.numberToTerraform(struct!.intervalMillis), path: cdktf.stringToTerraform(struct!.path), port: cdktf.numberToTerraform(struct!.port), protocol: cdktf.stringToTerraform(struct!.protocol), timeout_millis: cdktf.numberToTerraform(struct!.timeoutMillis), unhealthy_threshold: cdktf.numberToTerraform(struct!.unhealthyThreshold), } } export class AppmeshVirtualGatewaySpecListenerHealthCheckOutputReference extends cdktf.ComplexObject { private isEmptyObject = false; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param isSingleItem True if this is a block, false if it's a list */ public constructor(terraformResource: cdktf.ITerraformResource, terraformAttribute: string, isSingleItem: boolean) { super(terraformResource, terraformAttribute, isSingleItem); } public get internalValue(): AppmeshVirtualGatewaySpecListenerHealthCheck | undefined { let hasAnyValues = this.isEmptyObject; const internalValueResult: any = {}; if (this._healthyThreshold !== undefined) { hasAnyValues = true; internalValueResult.healthyThreshold = this._healthyThreshold; } if (this._intervalMillis !== undefined) { hasAnyValues = true; internalValueResult.intervalMillis = this._intervalMillis; } if (this._path !== undefined) { hasAnyValues = true; internalValueResult.path = this._path; } if (this._port !== undefined) { hasAnyValues = true; internalValueResult.port = this._port; } if (this._protocol !== undefined) { hasAnyValues = true; internalValueResult.protocol = this._protocol; } if (this._timeoutMillis !== undefined) { hasAnyValues = true; internalValueResult.timeoutMillis = this._timeoutMillis; } if (this._unhealthyThreshold !== undefined) { hasAnyValues = true; internalValueResult.unhealthyThreshold = this._unhealthyThreshold; } return hasAnyValues ? internalValueResult : undefined; } public set internalValue(value: AppmeshVirtualGatewaySpecListenerHealthCheck | undefined) { if (value === undefined) { this.isEmptyObject = false; this._healthyThreshold = undefined; this._intervalMillis = undefined; this._path = undefined; this._port = undefined; this._protocol = undefined; this._timeoutMillis = undefined; this._unhealthyThreshold = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._healthyThreshold = value.healthyThreshold; this._intervalMillis = value.intervalMillis; this._path = value.path; this._port = value.port; this._protocol = value.protocol; this._timeoutMillis = value.timeoutMillis; this._unhealthyThreshold = value.unhealthyThreshold; } } // healthy_threshold - computed: false, optional: false, required: true private _healthyThreshold?: number; public get healthyThreshold() { return this.getNumberAttribute('healthy_threshold'); } public set healthyThreshold(value: number) { this._healthyThreshold = value; } // Temporarily expose input value. Use with caution. public get healthyThresholdInput() { return this._healthyThreshold; } // interval_millis - computed: false, optional: false, required: true private _intervalMillis?: number; public get intervalMillis() { return this.getNumberAttribute('interval_millis'); } public set intervalMillis(value: number) { this._intervalMillis = value; } // Temporarily expose input value. Use with caution. public get intervalMillisInput() { return this._intervalMillis; } // path - computed: false, optional: true, required: false private _path?: string; public get path() { return this.getStringAttribute('path'); } public set path(value: string) { this._path = value; } public resetPath() { this._path = undefined; } // Temporarily expose input value. Use with caution. public get pathInput() { return this._path; } // port - computed: true, optional: true, required: false private _port?: number; public get port() { return this.getNumberAttribute('port'); } public set port(value: number) { this._port = value; } public resetPort() { this._port = undefined; } // Temporarily expose input value. Use with caution. public get portInput() { return this._port; } // protocol - computed: false, optional: false, required: true private _protocol?: string; public get protocol() { return this.getStringAttribute('protocol'); } public set protocol(value: string) { this._protocol = value; } // Temporarily expose input value. Use with caution. public get protocolInput() { return this._protocol; } // timeout_millis - computed: false, optional: false, required: true private _timeoutMillis?: number; public get timeoutMillis() { return this.getNumberAttribute('timeout_millis'); } public set timeoutMillis(value: number) { this._timeoutMillis = value; } // Temporarily expose input value. Use with caution. public get timeoutMillisInput() { return this._timeoutMillis; } // unhealthy_threshold - computed: false, optional: false, required: true private _unhealthyThreshold?: number; public get unhealthyThreshold() { return this.getNumberAttribute('unhealthy_threshold'); } public set unhealthyThreshold(value: number) { this._unhealthyThreshold = value; } // Temporarily expose input value. Use with caution. public get unhealthyThresholdInput() { return this._unhealthyThreshold; } } export interface AppmeshVirtualGatewaySpecListenerPortMapping { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/appmesh_virtual_gateway.html#port AppmeshVirtualGateway#port} */ readonly port: number; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/appmesh_virtual_gateway.html#protocol AppmeshVirtualGateway#protocol} */ readonly protocol: string; } export function appmeshVirtualGatewaySpecListenerPortMappingToTerraform(struct?: AppmeshVirtualGatewaySpecListenerPortMappingOutputReference | AppmeshVirtualGatewaySpecListenerPortMapping): any { if (!cdktf.canInspect(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { port: cdktf.numberToTerraform(struct!.port), protocol: cdktf.stringToTerraform(struct!.protocol), } } export class AppmeshVirtualGatewaySpecListenerPortMappingOutputReference extends cdktf.ComplexObject { private isEmptyObject = false; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param isSingleItem True if this is a block, false if it's a list */ public constructor(terraformResource: cdktf.ITerraformResource, terraformAttribute: string, isSingleItem: boolean) { super(terraformResource, terraformAttribute, isSingleItem); } public get internalValue(): AppmeshVirtualGatewaySpecListenerPortMapping | undefined { let hasAnyValues = this.isEmptyObject; const internalValueResult: any = {}; if (this._port !== undefined) { hasAnyValues = true; internalValueResult.port = this._port; } if (this._protocol !== undefined) { hasAnyValues = true; internalValueResult.protocol = this._protocol; } return hasAnyValues ? internalValueResult : undefined; } public set internalValue(value: AppmeshVirtualGatewaySpecListenerPortMapping | undefined) { if (value === undefined) { this.isEmptyObject = false; this._port = undefined; this._protocol = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._port = value.port; this._protocol = value.protocol; } } // port - computed: false, optional: false, required: true private _port?: number; public get port() { return this.getNumberAttribute('port'); } public set port(value: number) { this._port = value; } // Temporarily expose input value. Use with caution. public get portInput() { return this._port; } // protocol - computed: false, optional: false, required: true private _protocol?: string; public get protocol() { return this.getStringAttribute('protocol'); } public set protocol(value: string) { this._protocol = value; } // Temporarily expose input value. Use with caution. public get protocolInput() { return this._protocol; } } export interface AppmeshVirtualGatewaySpecListenerTlsCertificateAcm { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/appmesh_virtual_gateway.html#certificate_arn AppmeshVirtualGateway#certificate_arn} */ readonly certificateArn: string; } export function appmeshVirtualGatewaySpecListenerTlsCertificateAcmToTerraform(struct?: AppmeshVirtualGatewaySpecListenerTlsCertificateAcmOutputReference | AppmeshVirtualGatewaySpecListenerTlsCertificateAcm): any { if (!cdktf.canInspect(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { certificate_arn: cdktf.stringToTerraform(struct!.certificateArn), } } export class AppmeshVirtualGatewaySpecListenerTlsCertificateAcmOutputReference extends cdktf.ComplexObject { private isEmptyObject = false; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param isSingleItem True if this is a block, false if it's a list */ public constructor(terraformResource: cdktf.ITerraformResource, terraformAttribute: string, isSingleItem: boolean) { super(terraformResource, terraformAttribute, isSingleItem); } public get internalValue(): AppmeshVirtualGatewaySpecListenerTlsCertificateAcm | undefined { let hasAnyValues = this.isEmptyObject; const internalValueResult: any = {}; if (this._certificateArn !== undefined) { hasAnyValues = true; internalValueResult.certificateArn = this._certificateArn; } return hasAnyValues ? internalValueResult : undefined; } public set internalValue(value: AppmeshVirtualGatewaySpecListenerTlsCertificateAcm | undefined) { if (value === undefined) { this.isEmptyObject = false; this._certificateArn = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._certificateArn = value.certificateArn; } } // certificate_arn - computed: false, optional: false, required: true private _certificateArn?: string; public get certificateArn() { return this.getStringAttribute('certificate_arn'); } public set certificateArn(value: string) { this._certificateArn = value; } // Temporarily expose input value. Use with caution. public get certificateArnInput() { return this._certificateArn; } } export interface AppmeshVirtualGatewaySpecListenerTlsCertificateFile { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/appmesh_virtual_gateway.html#certificate_chain AppmeshVirtualGateway#certificate_chain} */ readonly certificateChain: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/appmesh_virtual_gateway.html#private_key AppmeshVirtualGateway#private_key} */ readonly privateKey: string; } export function appmeshVirtualGatewaySpecListenerTlsCertificateFileToTerraform(struct?: AppmeshVirtualGatewaySpecListenerTlsCertificateFileOutputReference | AppmeshVirtualGatewaySpecListenerTlsCertificateFile): any { if (!cdktf.canInspect(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { certificate_chain: cdktf.stringToTerraform(struct!.certificateChain), private_key: cdktf.stringToTerraform(struct!.privateKey), } } export class AppmeshVirtualGatewaySpecListenerTlsCertificateFileOutputReference extends cdktf.ComplexObject { private isEmptyObject = false; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param isSingleItem True if this is a block, false if it's a list */ public constructor(terraformResource: cdktf.ITerraformResource, terraformAttribute: string, isSingleItem: boolean) { super(terraformResource, terraformAttribute, isSingleItem); } public get internalValue(): AppmeshVirtualGatewaySpecListenerTlsCertificateFile | undefined { let hasAnyValues = this.isEmptyObject; const internalValueResult: any = {}; if (this._certificateChain !== undefined) { hasAnyValues = true; internalValueResult.certificateChain = this._certificateChain; } if (this._privateKey !== undefined) { hasAnyValues = true; internalValueResult.privateKey = this._privateKey; } return hasAnyValues ? internalValueResult : undefined; } public set internalValue(value: AppmeshVirtualGatewaySpecListenerTlsCertificateFile | undefined) { if (value === undefined) { this.isEmptyObject = false; this._certificateChain = undefined; this._privateKey = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._certificateChain = value.certificateChain; this._privateKey = value.privateKey; } } // certificate_chain - computed: false, optional: false, required: true private _certificateChain?: string; public get certificateChain() { return this.getStringAttribute('certificate_chain'); } public set certificateChain(value: string) { this._certificateChain = value; } // Temporarily expose input value. Use with caution. public get certificateChainInput() { return this._certificateChain; } // private_key - computed: false, optional: false, required: true private _privateKey?: string; public get privateKey() { return this.getStringAttribute('private_key'); } public set privateKey(value: string) { this._privateKey = value; } // Temporarily expose input value. Use with caution. public get privateKeyInput() { return this._privateKey; } } export interface AppmeshVirtualGatewaySpecListenerTlsCertificateSds { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/appmesh_virtual_gateway.html#secret_name AppmeshVirtualGateway#secret_name} */ readonly secretName: string; } export function appmeshVirtualGatewaySpecListenerTlsCertificateSdsToTerraform(struct?: AppmeshVirtualGatewaySpecListenerTlsCertificateSdsOutputReference | AppmeshVirtualGatewaySpecListenerTlsCertificateSds): any { if (!cdktf.canInspect(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { secret_name: cdktf.stringToTerraform(struct!.secretName), } } export class AppmeshVirtualGatewaySpecListenerTlsCertificateSdsOutputReference extends cdktf.ComplexObject { private isEmptyObject = false; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param isSingleItem True if this is a block, false if it's a list */ public constructor(terraformResource: cdktf.ITerraformResource, terraformAttribute: string, isSingleItem: boolean) { super(terraformResource, terraformAttribute, isSingleItem); } public get internalValue(): AppmeshVirtualGatewaySpecListenerTlsCertificateSds | undefined { let hasAnyValues = this.isEmptyObject; const internalValueResult: any = {}; if (this._secretName !== undefined) { hasAnyValues = true; internalValueResult.secretName = this._secretName; } return hasAnyValues ? internalValueResult : undefined; } public set internalValue(value: AppmeshVirtualGatewaySpecListenerTlsCertificateSds | undefined) { if (value === undefined) { this.isEmptyObject = false; this._secretName = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._secretName = value.secretName; } } // secret_name - computed: false, optional: false, required: true private _secretName?: string; public get secretName() { return this.getStringAttribute('secret_name'); } public set secretName(value: string) { this._secretName = value; } // Temporarily expose input value. Use with caution. public get secretNameInput() { return this._secretName; } } export interface AppmeshVirtualGatewaySpecListenerTlsCertificate { /** * acm block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/appmesh_virtual_gateway.html#acm AppmeshVirtualGateway#acm} */ readonly acm?: AppmeshVirtualGatewaySpecListenerTlsCertificateAcm; /** * file block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/appmesh_virtual_gateway.html#file AppmeshVirtualGateway#file} */ readonly file?: AppmeshVirtualGatewaySpecListenerTlsCertificateFile; /** * sds block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/appmesh_virtual_gateway.html#sds AppmeshVirtualGateway#sds} */ readonly sds?: AppmeshVirtualGatewaySpecListenerTlsCertificateSds; } export function appmeshVirtualGatewaySpecListenerTlsCertificateToTerraform(struct?: AppmeshVirtualGatewaySpecListenerTlsCertificateOutputReference | AppmeshVirtualGatewaySpecListenerTlsCertificate): any { if (!cdktf.canInspect(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { acm: appmeshVirtualGatewaySpecListenerTlsCertificateAcmToTerraform(struct!.acm), file: appmeshVirtualGatewaySpecListenerTlsCertificateFileToTerraform(struct!.file), sds: appmeshVirtualGatewaySpecListenerTlsCertificateSdsToTerraform(struct!.sds), } } export class AppmeshVirtualGatewaySpecListenerTlsCertificateOutputReference extends cdktf.ComplexObject { private isEmptyObject = false; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param isSingleItem True if this is a block, false if it's a list */ public constructor(terraformResource: cdktf.ITerraformResource, terraformAttribute: string, isSingleItem: boolean) { super(terraformResource, terraformAttribute, isSingleItem); } public get internalValue(): AppmeshVirtualGatewaySpecListenerTlsCertificate | undefined { let hasAnyValues = this.isEmptyObject; const internalValueResult: any = {}; if (this._acm?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.acm = this._acm?.internalValue; } if (this._file?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.file = this._file?.internalValue; } if (this._sds?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.sds = this._sds?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } public set internalValue(value: AppmeshVirtualGatewaySpecListenerTlsCertificate | undefined) { if (value === undefined) { this.isEmptyObject = false; this._acm.internalValue = undefined; this._file.internalValue = undefined; this._sds.internalValue = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._acm.internalValue = value.acm; this._file.internalValue = value.file; this._sds.internalValue = value.sds; } } // acm - computed: false, optional: true, required: false private _acm = new AppmeshVirtualGatewaySpecListenerTlsCertificateAcmOutputReference(this as any, "acm", true); public get acm() { return this._acm; } public putAcm(value: AppmeshVirtualGatewaySpecListenerTlsCertificateAcm) { this._acm.internalValue = value; } public resetAcm() { this._acm.internalValue = undefined; } // Temporarily expose input value. Use with caution. public get acmInput() { return this._acm.internalValue; } // file - computed: false, optional: true, required: false private _file = new AppmeshVirtualGatewaySpecListenerTlsCertificateFileOutputReference(this as any, "file", true); public get file() { return this._file; } public putFile(value: AppmeshVirtualGatewaySpecListenerTlsCertificateFile) { this._file.internalValue = value; } public resetFile() { this._file.internalValue = undefined; } // Temporarily expose input value. Use with caution. public get fileInput() { return this._file.internalValue; } // sds - computed: false, optional: true, required: false private _sds = new AppmeshVirtualGatewaySpecListenerTlsCertificateSdsOutputReference(this as any, "sds", true); public get sds() { return this._sds; } public putSds(value: AppmeshVirtualGatewaySpecListenerTlsCertificateSds) { this._sds.internalValue = value; } public resetSds() { this._sds.internalValue = undefined; } // Temporarily expose input value. Use with caution. public get sdsInput() { return this._sds.internalValue; } } export interface AppmeshVirtualGatewaySpecListenerTlsValidationSubjectAlternativeNamesMatch { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/appmesh_virtual_gateway.html#exact AppmeshVirtualGateway#exact} */ readonly exact: string[]; } export function appmeshVirtualGatewaySpecListenerTlsValidationSubjectAlternativeNamesMatchToTerraform(struct?: AppmeshVirtualGatewaySpecListenerTlsValidationSubjectAlternativeNamesMatchOutputReference | AppmeshVirtualGatewaySpecListenerTlsValidationSubjectAlternativeNamesMatch): any { if (!cdktf.canInspect(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { exact: cdktf.listMapper(cdktf.stringToTerraform)(struct!.exact), } } export class AppmeshVirtualGatewaySpecListenerTlsValidationSubjectAlternativeNamesMatchOutputReference extends cdktf.ComplexObject { private isEmptyObject = false; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param isSingleItem True if this is a block, false if it's a list */ public constructor(terraformResource: cdktf.ITerraformResource, terraformAttribute: string, isSingleItem: boolean) { super(terraformResource, terraformAttribute, isSingleItem); } public get internalValue(): AppmeshVirtualGatewaySpecListenerTlsValidationSubjectAlternativeNamesMatch | undefined { let hasAnyValues = this.isEmptyObject; const internalValueResult: any = {}; if (this._exact !== undefined) { hasAnyValues = true; internalValueResult.exact = this._exact; } return hasAnyValues ? internalValueResult : undefined; } public set internalValue(value: AppmeshVirtualGatewaySpecListenerTlsValidationSubjectAlternativeNamesMatch | undefined) { if (value === undefined) { this.isEmptyObject = false; this._exact = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._exact = value.exact; } } // exact - computed: false, optional: false, required: true private _exact?: string[]; public get exact() { return this.getListAttribute('exact'); } public set exact(value: string[]) { this._exact = value; } // Temporarily expose input value. Use with caution. public get exactInput() { return this._exact; } } export interface AppmeshVirtualGatewaySpecListenerTlsValidationSubjectAlternativeNames { /** * match block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/appmesh_virtual_gateway.html#match AppmeshVirtualGateway#match} */ readonly match: AppmeshVirtualGatewaySpecListenerTlsValidationSubjectAlternativeNamesMatch; } export function appmeshVirtualGatewaySpecListenerTlsValidationSubjectAlternativeNamesToTerraform(struct?: AppmeshVirtualGatewaySpecListenerTlsValidationSubjectAlternativeNamesOutputReference | AppmeshVirtualGatewaySpecListenerTlsValidationSubjectAlternativeNames): any { if (!cdktf.canInspect(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { match: appmeshVirtualGatewaySpecListenerTlsValidationSubjectAlternativeNamesMatchToTerraform(struct!.match), } } export class AppmeshVirtualGatewaySpecListenerTlsValidationSubjectAlternativeNamesOutputReference extends cdktf.ComplexObject { private isEmptyObject = false; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param isSingleItem True if this is a block, false if it's a list */ public constructor(terraformResource: cdktf.ITerraformResource, terraformAttribute: string, isSingleItem: boolean) { super(terraformResource, terraformAttribute, isSingleItem); } public get internalValue(): AppmeshVirtualGatewaySpecListenerTlsValidationSubjectAlternativeNames | undefined { let hasAnyValues = this.isEmptyObject; const internalValueResult: any = {}; if (this._match?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.match = this._match?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } public set internalValue(value: AppmeshVirtualGatewaySpecListenerTlsValidationSubjectAlternativeNames | undefined) { if (value === undefined) { this.isEmptyObject = false; this._match.internalValue = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._match.internalValue = value.match; } } // match - computed: false, optional: false, required: true private _match = new AppmeshVirtualGatewaySpecListenerTlsValidationSubjectAlternativeNamesMatchOutputReference(this as any, "match", true); public get match() { return this._match; } public putMatch(value: AppmeshVirtualGatewaySpecListenerTlsValidationSubjectAlternativeNamesMatch) { this._match.internalValue = value; } // Temporarily expose input value. Use with caution. public get matchInput() { return this._match.internalValue; } } export interface AppmeshVirtualGatewaySpecListenerTlsValidationTrustFile { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/appmesh_virtual_gateway.html#certificate_chain AppmeshVirtualGateway#certificate_chain} */ readonly certificateChain: string; } export function appmeshVirtualGatewaySpecListenerTlsValidationTrustFileToTerraform(struct?: AppmeshVirtualGatewaySpecListenerTlsValidationTrustFileOutputReference | AppmeshVirtualGatewaySpecListenerTlsValidationTrustFile): any { if (!cdktf.canInspect(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { certificate_chain: cdktf.stringToTerraform(struct!.certificateChain), } } export class AppmeshVirtualGatewaySpecListenerTlsValidationTrustFileOutputReference extends cdktf.ComplexObject { private isEmptyObject = false; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param isSingleItem True if this is a block, false if it's a list */ public constructor(terraformResource: cdktf.ITerraformResource, terraformAttribute: string, isSingleItem: boolean) { super(terraformResource, terraformAttribute, isSingleItem); } public get internalValue(): AppmeshVirtualGatewaySpecListenerTlsValidationTrustFile | undefined { let hasAnyValues = this.isEmptyObject; const internalValueResult: any = {}; if (this._certificateChain !== undefined) { hasAnyValues = true; internalValueResult.certificateChain = this._certificateChain; } return hasAnyValues ? internalValueResult : undefined; } public set internalValue(value: AppmeshVirtualGatewaySpecListenerTlsValidationTrustFile | undefined) { if (value === undefined) { this.isEmptyObject = false; this._certificateChain = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._certificateChain = value.certificateChain; } } // certificate_chain - computed: false, optional: false, required: true private _certificateChain?: string; public get certificateChain() { return this.getStringAttribute('certificate_chain'); } public set certificateChain(value: string) { this._certificateChain = value; } // Temporarily expose input value. Use with caution. public get certificateChainInput() { return this._certificateChain; } } export interface AppmeshVirtualGatewaySpecListenerTlsValidationTrustSds { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/appmesh_virtual_gateway.html#secret_name AppmeshVirtualGateway#secret_name} */ readonly secretName: string; } export function appmeshVirtualGatewaySpecListenerTlsValidationTrustSdsToTerraform(struct?: AppmeshVirtualGatewaySpecListenerTlsValidationTrustSdsOutputReference | AppmeshVirtualGatewaySpecListenerTlsValidationTrustSds): any { if (!cdktf.canInspect(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { secret_name: cdktf.stringToTerraform(struct!.secretName), } } export class AppmeshVirtualGatewaySpecListenerTlsValidationTrustSdsOutputReference extends cdktf.ComplexObject { private isEmptyObject = false; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param isSingleItem True if this is a block, false if it's a list */ public constructor(terraformResource: cdktf.ITerraformResource, terraformAttribute: string, isSingleItem: boolean) { super(terraformResource, terraformAttribute, isSingleItem); } public get internalValue(): AppmeshVirtualGatewaySpecListenerTlsValidationTrustSds | undefined { let hasAnyValues = this.isEmptyObject; const internalValueResult: any = {}; if (this._secretName !== undefined) { hasAnyValues = true; internalValueResult.secretName = this._secretName; } return hasAnyValues ? internalValueResult : undefined; } public set internalValue(value: AppmeshVirtualGatewaySpecListenerTlsValidationTrustSds | undefined) { if (value === undefined) { this.isEmptyObject = false; this._secretName = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._secretName = value.secretName; } } // secret_name - computed: false, optional: false, required: true private _secretName?: string; public get secretName() { return this.getStringAttribute('secret_name'); } public set secretName(value: string) { this._secretName = value; } // Temporarily expose input value. Use with caution. public get secretNameInput() { return this._secretName; } } export interface AppmeshVirtualGatewaySpecListenerTlsValidationTrust { /** * file block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/appmesh_virtual_gateway.html#file AppmeshVirtualGateway#file} */ readonly file?: AppmeshVirtualGatewaySpecListenerTlsValidationTrustFile; /** * sds block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/appmesh_virtual_gateway.html#sds AppmeshVirtualGateway#sds} */ readonly sds?: AppmeshVirtualGatewaySpecListenerTlsValidationTrustSds; } export function appmeshVirtualGatewaySpecListenerTlsValidationTrustToTerraform(struct?: AppmeshVirtualGatewaySpecListenerTlsValidationTrustOutputReference | AppmeshVirtualGatewaySpecListenerTlsValidationTrust): any { if (!cdktf.canInspect(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { file: appmeshVirtualGatewaySpecListenerTlsValidationTrustFileToTerraform(struct!.file), sds: appmeshVirtualGatewaySpecListenerTlsValidationTrustSdsToTerraform(struct!.sds), } } export class AppmeshVirtualGatewaySpecListenerTlsValidationTrustOutputReference extends cdktf.ComplexObject { private isEmptyObject = false; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param isSingleItem True if this is a block, false if it's a list */ public constructor(terraformResource: cdktf.ITerraformResource, terraformAttribute: string, isSingleItem: boolean) { super(terraformResource, terraformAttribute, isSingleItem); } public get internalValue(): AppmeshVirtualGatewaySpecListenerTlsValidationTrust | undefined { let hasAnyValues = this.isEmptyObject; const internalValueResult: any = {}; if (this._file?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.file = this._file?.internalValue; } if (this._sds?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.sds = this._sds?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } public set internalValue(value: AppmeshVirtualGatewaySpecListenerTlsValidationTrust | undefined) { if (value === undefined) { this.isEmptyObject = false; this._file.internalValue = undefined; this._sds.internalValue = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._file.internalValue = value.file; this._sds.internalValue = value.sds; } } // file - computed: false, optional: true, required: false private _file = new AppmeshVirtualGatewaySpecListenerTlsValidationTrustFileOutputReference(this as any, "file", true); public get file() { return this._file; } public putFile(value: AppmeshVirtualGatewaySpecListenerTlsValidationTrustFile) { this._file.internalValue = value; } public resetFile() { this._file.internalValue = undefined; } // Temporarily expose input value. Use with caution. public get fileInput() { return this._file.internalValue; } // sds - computed: false, optional: true, required: false private _sds = new AppmeshVirtualGatewaySpecListenerTlsValidationTrustSdsOutputReference(this as any, "sds", true); public get sds() { return this._sds; } public putSds(value: AppmeshVirtualGatewaySpecListenerTlsValidationTrustSds) { this._sds.internalValue = value; } public resetSds() { this._sds.internalValue = undefined; } // Temporarily expose input value. Use with caution. public get sdsInput() { return this._sds.internalValue; } } export interface AppmeshVirtualGatewaySpecListenerTlsValidation { /** * subject_alternative_names block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/appmesh_virtual_gateway.html#subject_alternative_names AppmeshVirtualGateway#subject_alternative_names} */ readonly subjectAlternativeNames?: AppmeshVirtualGatewaySpecListenerTlsValidationSubjectAlternativeNames; /** * trust block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/appmesh_virtual_gateway.html#trust AppmeshVirtualGateway#trust} */ readonly trust: AppmeshVirtualGatewaySpecListenerTlsValidationTrust; } export function appmeshVirtualGatewaySpecListenerTlsValidationToTerraform(struct?: AppmeshVirtualGatewaySpecListenerTlsValidationOutputReference | AppmeshVirtualGatewaySpecListenerTlsValidation): any { if (!cdktf.canInspect(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { subject_alternative_names: appmeshVirtualGatewaySpecListenerTlsValidationSubjectAlternativeNamesToTerraform(struct!.subjectAlternativeNames), trust: appmeshVirtualGatewaySpecListenerTlsValidationTrustToTerraform(struct!.trust), } } export class AppmeshVirtualGatewaySpecListenerTlsValidationOutputReference extends cdktf.ComplexObject { private isEmptyObject = false; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param isSingleItem True if this is a block, false if it's a list */ public constructor(terraformResource: cdktf.ITerraformResource, terraformAttribute: string, isSingleItem: boolean) { super(terraformResource, terraformAttribute, isSingleItem); } public get internalValue(): AppmeshVirtualGatewaySpecListenerTlsValidation | undefined { let hasAnyValues = this.isEmptyObject; const internalValueResult: any = {}; if (this._subjectAlternativeNames?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.subjectAlternativeNames = this._subjectAlternativeNames?.internalValue; } if (this._trust?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.trust = this._trust?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } public set internalValue(value: AppmeshVirtualGatewaySpecListenerTlsValidation | undefined) { if (value === undefined) { this.isEmptyObject = false; this._subjectAlternativeNames.internalValue = undefined; this._trust.internalValue = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._subjectAlternativeNames.internalValue = value.subjectAlternativeNames; this._trust.internalValue = value.trust; } } // subject_alternative_names - computed: false, optional: true, required: false private _subjectAlternativeNames = new AppmeshVirtualGatewaySpecListenerTlsValidationSubjectAlternativeNamesOutputReference(this as any, "subject_alternative_names", true); public get subjectAlternativeNames() { return this._subjectAlternativeNames; } public putSubjectAlternativeNames(value: AppmeshVirtualGatewaySpecListenerTlsValidationSubjectAlternativeNames) { this._subjectAlternativeNames.internalValue = value; } public resetSubjectAlternativeNames() { this._subjectAlternativeNames.internalValue = undefined; } // Temporarily expose input value. Use with caution. public get subjectAlternativeNamesInput() { return this._subjectAlternativeNames.internalValue; } // trust - computed: false, optional: false, required: true private _trust = new AppmeshVirtualGatewaySpecListenerTlsValidationTrustOutputReference(this as any, "trust", true); public get trust() { return this._trust; } public putTrust(value: AppmeshVirtualGatewaySpecListenerTlsValidationTrust) { this._trust.internalValue = value; } // Temporarily expose input value. Use with caution. public get trustInput() { return this._trust.internalValue; } } export interface AppmeshVirtualGatewaySpecListenerTls { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/appmesh_virtual_gateway.html#mode AppmeshVirtualGateway#mode} */ readonly mode: string; /** * certificate block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/appmesh_virtual_gateway.html#certificate AppmeshVirtualGateway#certificate} */ readonly certificate: AppmeshVirtualGatewaySpecListenerTlsCertificate; /** * validation block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/appmesh_virtual_gateway.html#validation AppmeshVirtualGateway#validation} */ readonly validation?: AppmeshVirtualGatewaySpecListenerTlsValidation; } export function appmeshVirtualGatewaySpecListenerTlsToTerraform(struct?: AppmeshVirtualGatewaySpecListenerTlsOutputReference | AppmeshVirtualGatewaySpecListenerTls): any { if (!cdktf.canInspect(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { mode: cdktf.stringToTerraform(struct!.mode), certificate: appmeshVirtualGatewaySpecListenerTlsCertificateToTerraform(struct!.certificate), validation: appmeshVirtualGatewaySpecListenerTlsValidationToTerraform(struct!.validation), } } export class AppmeshVirtualGatewaySpecListenerTlsOutputReference extends cdktf.ComplexObject { private isEmptyObject = false; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param isSingleItem True if this is a block, false if it's a list */ public constructor(terraformResource: cdktf.ITerraformResource, terraformAttribute: string, isSingleItem: boolean) { super(terraformResource, terraformAttribute, isSingleItem); } public get internalValue(): AppmeshVirtualGatewaySpecListenerTls | undefined { let hasAnyValues = this.isEmptyObject; const internalValueResult: any = {}; if (this._mode !== undefined) { hasAnyValues = true; internalValueResult.mode = this._mode; } if (this._certificate?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.certificate = this._certificate?.internalValue; } if (this._validation?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.validation = this._validation?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } public set internalValue(value: AppmeshVirtualGatewaySpecListenerTls | undefined) { if (value === undefined) { this.isEmptyObject = false; this._mode = undefined; this._certificate.internalValue = undefined; this._validation.internalValue = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._mode = value.mode; this._certificate.internalValue = value.certificate; this._validation.internalValue = value.validation; } } // mode - computed: false, optional: false, required: true private _mode?: string; public get mode() { return this.getStringAttribute('mode'); } public set mode(value: string) { this._mode = value; } // Temporarily expose input value. Use with caution. public get modeInput() { return this._mode; } // certificate - computed: false, optional: false, required: true private _certificate = new AppmeshVirtualGatewaySpecListenerTlsCertificateOutputReference(this as any, "certificate", true); public get certificate() { return this._certificate; } public putCertificate(value: AppmeshVirtualGatewaySpecListenerTlsCertificate) { this._certificate.internalValue = value; } // Temporarily expose input value. Use with caution. public get certificateInput() { return this._certificate.internalValue; } // validation - computed: false, optional: true, required: false private _validation = new AppmeshVirtualGatewaySpecListenerTlsValidationOutputReference(this as any, "validation", true); public get validation() { return this._validation; } public putValidation(value: AppmeshVirtualGatewaySpecListenerTlsValidation) { this._validation.internalValue = value; } public resetValidation() { this._validation.internalValue = undefined; } // Temporarily expose input value. Use with caution. public get validationInput() { return this._validation.internalValue; } } export interface AppmeshVirtualGatewaySpecListener { /** * connection_pool block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/appmesh_virtual_gateway.html#connection_pool AppmeshVirtualGateway#connection_pool} */ readonly connectionPool?: AppmeshVirtualGatewaySpecListenerConnectionPool; /** * health_check block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/appmesh_virtual_gateway.html#health_check AppmeshVirtualGateway#health_check} */ readonly healthCheck?: AppmeshVirtualGatewaySpecListenerHealthCheck; /** * port_mapping block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/appmesh_virtual_gateway.html#port_mapping AppmeshVirtualGateway#port_mapping} */ readonly portMapping: AppmeshVirtualGatewaySpecListenerPortMapping; /** * tls block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/appmesh_virtual_gateway.html#tls AppmeshVirtualGateway#tls} */ readonly tls?: AppmeshVirtualGatewaySpecListenerTls; } export function appmeshVirtualGatewaySpecListenerToTerraform(struct?: AppmeshVirtualGatewaySpecListenerOutputReference | AppmeshVirtualGatewaySpecListener): any { if (!cdktf.canInspect(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { connection_pool: appmeshVirtualGatewaySpecListenerConnectionPoolToTerraform(struct!.connectionPool), health_check: appmeshVirtualGatewaySpecListenerHealthCheckToTerraform(struct!.healthCheck), port_mapping: appmeshVirtualGatewaySpecListenerPortMappingToTerraform(struct!.portMapping), tls: appmeshVirtualGatewaySpecListenerTlsToTerraform(struct!.tls), } } export class AppmeshVirtualGatewaySpecListenerOutputReference extends cdktf.ComplexObject { private isEmptyObject = false; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param isSingleItem True if this is a block, false if it's a list */ public constructor(terraformResource: cdktf.ITerraformResource, terraformAttribute: string, isSingleItem: boolean) { super(terraformResource, terraformAttribute, isSingleItem); } public get internalValue(): AppmeshVirtualGatewaySpecListener | undefined { let hasAnyValues = this.isEmptyObject; const internalValueResult: any = {}; if (this._connectionPool?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.connectionPool = this._connectionPool?.internalValue; } if (this._healthCheck?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.healthCheck = this._healthCheck?.internalValue; } if (this._portMapping?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.portMapping = this._portMapping?.internalValue; } if (this._tls?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.tls = this._tls?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } public set internalValue(value: AppmeshVirtualGatewaySpecListener | undefined) { if (value === undefined) { this.isEmptyObject = false; this._connectionPool.internalValue = undefined; this._healthCheck.internalValue = undefined; this._portMapping.internalValue = undefined; this._tls.internalValue = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._connectionPool.internalValue = value.connectionPool; this._healthCheck.internalValue = value.healthCheck; this._portMapping.internalValue = value.portMapping; this._tls.internalValue = value.tls; } } // connection_pool - computed: false, optional: true, required: false private _connectionPool = new AppmeshVirtualGatewaySpecListenerConnectionPoolOutputReference(this as any, "connection_pool", true); public get connectionPool() { return this._connectionPool; } public putConnectionPool(value: AppmeshVirtualGatewaySpecListenerConnectionPool) { this._connectionPool.internalValue = value; } public resetConnectionPool() { this._connectionPool.internalValue = undefined; } // Temporarily expose input value. Use with caution. public get connectionPoolInput() { return this._connectionPool.internalValue; } // health_check - computed: false, optional: true, required: false private _healthCheck = new AppmeshVirtualGatewaySpecListenerHealthCheckOutputReference(this as any, "health_check", true); public get healthCheck() { return this._healthCheck; } public putHealthCheck(value: AppmeshVirtualGatewaySpecListenerHealthCheck) { this._healthCheck.internalValue = value; } public resetHealthCheck() { this._healthCheck.internalValue = undefined; } // Temporarily expose input value. Use with caution. public get healthCheckInput() { return this._healthCheck.internalValue; } // port_mapping - computed: false, optional: false, required: true private _portMapping = new AppmeshVirtualGatewaySpecListenerPortMappingOutputReference(this as any, "port_mapping", true); public get portMapping() { return this._portMapping; } public putPortMapping(value: AppmeshVirtualGatewaySpecListenerPortMapping) { this._portMapping.internalValue = value; } // Temporarily expose input value. Use with caution. public get portMappingInput() { return this._portMapping.internalValue; } // tls - computed: false, optional: true, required: false private _tls = new AppmeshVirtualGatewaySpecListenerTlsOutputReference(this as any, "tls", true); public get tls() { return this._tls; } public putTls(value: AppmeshVirtualGatewaySpecListenerTls) { this._tls.internalValue = value; } public resetTls() { this._tls.internalValue = undefined; } // Temporarily expose input value. Use with caution. public get tlsInput() { return this._tls.internalValue; } } export interface AppmeshVirtualGatewaySpecLoggingAccessLogFile { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/appmesh_virtual_gateway.html#path AppmeshVirtualGateway#path} */ readonly path: string; } export function appmeshVirtualGatewaySpecLoggingAccessLogFileToTerraform(struct?: AppmeshVirtualGatewaySpecLoggingAccessLogFileOutputReference | AppmeshVirtualGatewaySpecLoggingAccessLogFile): any { if (!cdktf.canInspect(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { path: cdktf.stringToTerraform(struct!.path), } } export class AppmeshVirtualGatewaySpecLoggingAccessLogFileOutputReference extends cdktf.ComplexObject { private isEmptyObject = false; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param isSingleItem True if this is a block, false if it's a list */ public constructor(terraformResource: cdktf.ITerraformResource, terraformAttribute: string, isSingleItem: boolean) { super(terraformResource, terraformAttribute, isSingleItem); } public get internalValue(): AppmeshVirtualGatewaySpecLoggingAccessLogFile | undefined { let hasAnyValues = this.isEmptyObject; const internalValueResult: any = {}; if (this._path !== undefined) { hasAnyValues = true; internalValueResult.path = this._path; } return hasAnyValues ? internalValueResult : undefined; } public set internalValue(value: AppmeshVirtualGatewaySpecLoggingAccessLogFile | undefined) { if (value === undefined) { this.isEmptyObject = false; this._path = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._path = value.path; } } // path - computed: false, optional: false, required: true private _path?: string; public get path() { return this.getStringAttribute('path'); } public set path(value: string) { this._path = value; } // Temporarily expose input value. Use with caution. public get pathInput() { return this._path; } } export interface AppmeshVirtualGatewaySpecLoggingAccessLog { /** * file block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/appmesh_virtual_gateway.html#file AppmeshVirtualGateway#file} */ readonly file?: AppmeshVirtualGatewaySpecLoggingAccessLogFile; } export function appmeshVirtualGatewaySpecLoggingAccessLogToTerraform(struct?: AppmeshVirtualGatewaySpecLoggingAccessLogOutputReference | AppmeshVirtualGatewaySpecLoggingAccessLog): any { if (!cdktf.canInspect(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { file: appmeshVirtualGatewaySpecLoggingAccessLogFileToTerraform(struct!.file), } } export class AppmeshVirtualGatewaySpecLoggingAccessLogOutputReference extends cdktf.ComplexObject { private isEmptyObject = false; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param isSingleItem True if this is a block, false if it's a list */ public constructor(terraformResource: cdktf.ITerraformResource, terraformAttribute: string, isSingleItem: boolean) { super(terraformResource, terraformAttribute, isSingleItem); } public get internalValue(): AppmeshVirtualGatewaySpecLoggingAccessLog | undefined { let hasAnyValues = this.isEmptyObject; const internalValueResult: any = {}; if (this._file?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.file = this._file?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } public set internalValue(value: AppmeshVirtualGatewaySpecLoggingAccessLog | undefined) { if (value === undefined) { this.isEmptyObject = false; this._file.internalValue = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._file.internalValue = value.file; } } // file - computed: false, optional: true, required: false private _file = new AppmeshVirtualGatewaySpecLoggingAccessLogFileOutputReference(this as any, "file", true); public get file() { return this._file; } public putFile(value: AppmeshVirtualGatewaySpecLoggingAccessLogFile) { this._file.internalValue = value; } public resetFile() { this._file.internalValue = undefined; } // Temporarily expose input value. Use with caution. public get fileInput() { return this._file.internalValue; } } export interface AppmeshVirtualGatewaySpecLogging { /** * access_log block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/appmesh_virtual_gateway.html#access_log AppmeshVirtualGateway#access_log} */ readonly accessLog?: AppmeshVirtualGatewaySpecLoggingAccessLog; } export function appmeshVirtualGatewaySpecLoggingToTerraform(struct?: AppmeshVirtualGatewaySpecLoggingOutputReference | AppmeshVirtualGatewaySpecLogging): any { if (!cdktf.canInspect(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { access_log: appmeshVirtualGatewaySpecLoggingAccessLogToTerraform(struct!.accessLog), } } export class AppmeshVirtualGatewaySpecLoggingOutputReference extends cdktf.ComplexObject { private isEmptyObject = false; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param isSingleItem True if this is a block, false if it's a list */ public constructor(terraformResource: cdktf.ITerraformResource, terraformAttribute: string, isSingleItem: boolean) { super(terraformResource, terraformAttribute, isSingleItem); } public get internalValue(): AppmeshVirtualGatewaySpecLogging | undefined { let hasAnyValues = this.isEmptyObject; const internalValueResult: any = {}; if (this._accessLog?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.accessLog = this._accessLog?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } public set internalValue(value: AppmeshVirtualGatewaySpecLogging | undefined) { if (value === undefined) { this.isEmptyObject = false; this._accessLog.internalValue = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._accessLog.internalValue = value.accessLog; } } // access_log - computed: false, optional: true, required: false private _accessLog = new AppmeshVirtualGatewaySpecLoggingAccessLogOutputReference(this as any, "access_log", true); public get accessLog() { return this._accessLog; } public putAccessLog(value: AppmeshVirtualGatewaySpecLoggingAccessLog) { this._accessLog.internalValue = value; } public resetAccessLog() { this._accessLog.internalValue = undefined; } // Temporarily expose input value. Use with caution. public get accessLogInput() { return this._accessLog.internalValue; } } export interface AppmeshVirtualGatewaySpec { /** * backend_defaults block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/appmesh_virtual_gateway.html#backend_defaults AppmeshVirtualGateway#backend_defaults} */ readonly backendDefaults?: AppmeshVirtualGatewaySpecBackendDefaults; /** * listener block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/appmesh_virtual_gateway.html#listener AppmeshVirtualGateway#listener} */ readonly listener: AppmeshVirtualGatewaySpecListener; /** * logging block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/appmesh_virtual_gateway.html#logging AppmeshVirtualGateway#logging} */ readonly logging?: AppmeshVirtualGatewaySpecLogging; } export function appmeshVirtualGatewaySpecToTerraform(struct?: AppmeshVirtualGatewaySpecOutputReference | AppmeshVirtualGatewaySpec): any { if (!cdktf.canInspect(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { backend_defaults: appmeshVirtualGatewaySpecBackendDefaultsToTerraform(struct!.backendDefaults), listener: appmeshVirtualGatewaySpecListenerToTerraform(struct!.listener), logging: appmeshVirtualGatewaySpecLoggingToTerraform(struct!.logging), } } export class AppmeshVirtualGatewaySpecOutputReference extends cdktf.ComplexObject { private isEmptyObject = false; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param isSingleItem True if this is a block, false if it's a list */ public constructor(terraformResource: cdktf.ITerraformResource, terraformAttribute: string, isSingleItem: boolean) { super(terraformResource, terraformAttribute, isSingleItem); } public get internalValue(): AppmeshVirtualGatewaySpec | undefined { let hasAnyValues = this.isEmptyObject; const internalValueResult: any = {}; if (this._backendDefaults?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.backendDefaults = this._backendDefaults?.internalValue; } if (this._listener?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.listener = this._listener?.internalValue; } if (this._logging?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.logging = this._logging?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } public set internalValue(value: AppmeshVirtualGatewaySpec | undefined) { if (value === undefined) { this.isEmptyObject = false; this._backendDefaults.internalValue = undefined; this._listener.internalValue = undefined; this._logging.internalValue = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._backendDefaults.internalValue = value.backendDefaults; this._listener.internalValue = value.listener; this._logging.internalValue = value.logging; } } // backend_defaults - computed: false, optional: true, required: false private _backendDefaults = new AppmeshVirtualGatewaySpecBackendDefaultsOutputReference(this as any, "backend_defaults", true); public get backendDefaults() { return this._backendDefaults; } public putBackendDefaults(value: AppmeshVirtualGatewaySpecBackendDefaults) { this._backendDefaults.internalValue = value; } public resetBackendDefaults() { this._backendDefaults.internalValue = undefined; } // Temporarily expose input value. Use with caution. public get backendDefaultsInput() { return this._backendDefaults.internalValue; } // listener - computed: false, optional: false, required: true private _listener = new AppmeshVirtualGatewaySpecListenerOutputReference(this as any, "listener", true); public get listener() { return this._listener; } public putListener(value: AppmeshVirtualGatewaySpecListener) { this._listener.internalValue = value; } // Temporarily expose input value. Use with caution. public get listenerInput() { return this._listener.internalValue; } // logging - computed: false, optional: true, required: false private _logging = new AppmeshVirtualGatewaySpecLoggingOutputReference(this as any, "logging", true); public get logging() { return this._logging; } public putLogging(value: AppmeshVirtualGatewaySpecLogging) { this._logging.internalValue = value; } public resetLogging() { this._logging.internalValue = undefined; } // Temporarily expose input value. Use with caution. public get loggingInput() { return this._logging.internalValue; } } /** * Represents a {@link https://www.terraform.io/docs/providers/aws/r/appmesh_virtual_gateway.html aws_appmesh_virtual_gateway} */ export class AppmeshVirtualGateway extends cdktf.TerraformResource { // ================= // STATIC PROPERTIES // ================= public static readonly tfResourceType: string = "aws_appmesh_virtual_gateway"; // =========== // INITIALIZER // =========== /** * Create a new {@link https://www.terraform.io/docs/providers/aws/r/appmesh_virtual_gateway.html aws_appmesh_virtual_gateway} 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 AppmeshVirtualGatewayConfig */ public constructor(scope: Construct, id: string, config: AppmeshVirtualGatewayConfig) { super(scope, id, { terraformResourceType: 'aws_appmesh_virtual_gateway', terraformGeneratorMetadata: { providerName: 'aws' }, provider: config.provider, dependsOn: config.dependsOn, count: config.count, lifecycle: config.lifecycle }); this._meshName = config.meshName; this._meshOwner = config.meshOwner; this._name = config.name; this._tags = config.tags; this._tagsAll = config.tagsAll; this._spec.internalValue = config.spec; } // ========== // ATTRIBUTES // ========== // arn - computed: true, optional: false, required: false public get arn() { return this.getStringAttribute('arn'); } // created_date - computed: true, optional: false, required: false public get createdDate() { return this.getStringAttribute('created_date'); } // id - computed: true, optional: true, required: false public get id() { return this.getStringAttribute('id'); } // last_updated_date - computed: true, optional: false, required: false public get lastUpdatedDate() { return this.getStringAttribute('last_updated_date'); } // mesh_name - computed: false, optional: false, required: true private _meshName?: string; public get meshName() { return this.getStringAttribute('mesh_name'); } public set meshName(value: string) { this._meshName = value; } // Temporarily expose input value. Use with caution. public get meshNameInput() { return this._meshName; } // mesh_owner - computed: true, optional: true, required: false private _meshOwner?: string; public get meshOwner() { return this.getStringAttribute('mesh_owner'); } public set meshOwner(value: string) { this._meshOwner = value; } public resetMeshOwner() { this._meshOwner = undefined; } // Temporarily expose input value. Use with caution. public get meshOwnerInput() { return this._meshOwner; } // 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; } // resource_owner - computed: true, optional: false, required: false public get resourceOwner() { return this.getStringAttribute('resource_owner'); } // 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; } // spec - computed: false, optional: false, required: true private _spec = new AppmeshVirtualGatewaySpecOutputReference(this as any, "spec", true); public get spec() { return this._spec; } public putSpec(value: AppmeshVirtualGatewaySpec) { this._spec.internalValue = value; } // Temporarily expose input value. Use with caution. public get specInput() { return this._spec.internalValue; } // ========= // SYNTHESIS // ========= protected synthesizeAttributes(): { [name: string]: any } { return { mesh_name: cdktf.stringToTerraform(this._meshName), mesh_owner: cdktf.stringToTerraform(this._meshOwner), name: cdktf.stringToTerraform(this._name), tags: cdktf.hashMapper(cdktf.anyToTerraform)(this._tags), tags_all: cdktf.hashMapper(cdktf.anyToTerraform)(this._tagsAll), spec: appmeshVirtualGatewaySpecToTerraform(this._spec.internalValue), }; } }