// generated from terraform resource schema import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; /** * AWS CloudFront */ export interface CloudfrontDistributionConfig extends cdktf.TerraformMetaArguments { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudfront_distribution.html#aliases CloudfrontDistribution#aliases} */ readonly aliases?: string[]; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudfront_distribution.html#comment CloudfrontDistribution#comment} */ readonly comment?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudfront_distribution.html#default_root_object CloudfrontDistribution#default_root_object} */ readonly defaultRootObject?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudfront_distribution.html#enabled CloudfrontDistribution#enabled} */ readonly enabled: boolean | cdktf.IResolvable; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudfront_distribution.html#http_version CloudfrontDistribution#http_version} */ readonly httpVersion?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudfront_distribution.html#is_ipv6_enabled CloudfrontDistribution#is_ipv6_enabled} */ readonly isIpv6Enabled?: boolean | cdktf.IResolvable; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudfront_distribution.html#price_class CloudfrontDistribution#price_class} */ readonly priceClass?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudfront_distribution.html#retain_on_delete CloudfrontDistribution#retain_on_delete} */ readonly retainOnDelete?: boolean | cdktf.IResolvable; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudfront_distribution.html#tags CloudfrontDistribution#tags} */ readonly tags?: { [key: string]: string } | cdktf.IResolvable; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudfront_distribution.html#tags_all CloudfrontDistribution#tags_all} */ readonly tagsAll?: { [key: string]: string } | cdktf.IResolvable; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudfront_distribution.html#wait_for_deployment CloudfrontDistribution#wait_for_deployment} */ readonly waitForDeployment?: boolean | cdktf.IResolvable; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudfront_distribution.html#web_acl_id CloudfrontDistribution#web_acl_id} */ readonly webAclId?: string; /** * custom_error_response block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudfront_distribution.html#custom_error_response CloudfrontDistribution#custom_error_response} */ readonly customErrorResponse?: CloudfrontDistributionCustomErrorResponse[]; /** * default_cache_behavior block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudfront_distribution.html#default_cache_behavior CloudfrontDistribution#default_cache_behavior} */ readonly defaultCacheBehavior: CloudfrontDistributionDefaultCacheBehavior; /** * logging_config block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudfront_distribution.html#logging_config CloudfrontDistribution#logging_config} */ readonly loggingConfig?: CloudfrontDistributionLoggingConfig; /** * ordered_cache_behavior block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudfront_distribution.html#ordered_cache_behavior CloudfrontDistribution#ordered_cache_behavior} */ readonly orderedCacheBehavior?: CloudfrontDistributionOrderedCacheBehavior[]; /** * origin block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudfront_distribution.html#origin CloudfrontDistribution#origin} */ readonly origin: CloudfrontDistributionOrigin[]; /** * origin_group block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudfront_distribution.html#origin_group CloudfrontDistribution#origin_group} */ readonly originGroup?: CloudfrontDistributionOriginGroup[]; /** * restrictions block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudfront_distribution.html#restrictions CloudfrontDistribution#restrictions} */ readonly restrictions: CloudfrontDistributionRestrictions; /** * viewer_certificate block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudfront_distribution.html#viewer_certificate CloudfrontDistribution#viewer_certificate} */ readonly viewerCertificate: CloudfrontDistributionViewerCertificate; } export class CloudfrontDistributionTrustedKeyGroupsItems extends cdktf.ComplexComputedList { // key_group_id - computed: true, optional: false, required: false public get keyGroupId() { return this.getStringAttribute('key_group_id'); } // key_pair_ids - computed: true, optional: false, required: false public get keyPairIds() { return this.getListAttribute('key_pair_ids'); } } export class CloudfrontDistributionTrustedKeyGroups extends cdktf.ComplexComputedList { // enabled - computed: true, optional: false, required: false public get enabled() { return this.getBooleanAttribute('enabled') as any; } // items - computed: true, optional: false, required: false public get items() { // Getting the computed value is not yet implemented return this.interpolationForAttribute('items') as any; } } export class CloudfrontDistributionTrustedSignersItems extends cdktf.ComplexComputedList { // aws_account_number - computed: true, optional: false, required: false public get awsAccountNumber() { return this.getStringAttribute('aws_account_number'); } // key_pair_ids - computed: true, optional: false, required: false public get keyPairIds() { return this.getListAttribute('key_pair_ids'); } } export class CloudfrontDistributionTrustedSigners extends cdktf.ComplexComputedList { // enabled - computed: true, optional: false, required: false public get enabled() { return this.getBooleanAttribute('enabled') as any; } // items - computed: true, optional: false, required: false public get items() { // Getting the computed value is not yet implemented return this.interpolationForAttribute('items') as any; } } export interface CloudfrontDistributionCustomErrorResponse { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudfront_distribution.html#error_caching_min_ttl CloudfrontDistribution#error_caching_min_ttl} */ readonly errorCachingMinTtl?: number; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudfront_distribution.html#error_code CloudfrontDistribution#error_code} */ readonly errorCode: number; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudfront_distribution.html#response_code CloudfrontDistribution#response_code} */ readonly responseCode?: number; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudfront_distribution.html#response_page_path CloudfrontDistribution#response_page_path} */ readonly responsePagePath?: string; } export function cloudfrontDistributionCustomErrorResponseToTerraform(struct?: CloudfrontDistributionCustomErrorResponse): 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 { error_caching_min_ttl: cdktf.numberToTerraform(struct!.errorCachingMinTtl), error_code: cdktf.numberToTerraform(struct!.errorCode), response_code: cdktf.numberToTerraform(struct!.responseCode), response_page_path: cdktf.stringToTerraform(struct!.responsePagePath), } } export interface CloudfrontDistributionDefaultCacheBehaviorForwardedValuesCookies { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudfront_distribution.html#forward CloudfrontDistribution#forward} */ readonly forward: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudfront_distribution.html#whitelisted_names CloudfrontDistribution#whitelisted_names} */ readonly whitelistedNames?: string[]; } export function cloudfrontDistributionDefaultCacheBehaviorForwardedValuesCookiesToTerraform(struct?: CloudfrontDistributionDefaultCacheBehaviorForwardedValuesCookiesOutputReference | CloudfrontDistributionDefaultCacheBehaviorForwardedValuesCookies): 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 { forward: cdktf.stringToTerraform(struct!.forward), whitelisted_names: cdktf.listMapper(cdktf.stringToTerraform)(struct!.whitelistedNames), } } export class CloudfrontDistributionDefaultCacheBehaviorForwardedValuesCookiesOutputReference 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(): CloudfrontDistributionDefaultCacheBehaviorForwardedValuesCookies | undefined { let hasAnyValues = this.isEmptyObject; const internalValueResult: any = {}; if (this._forward !== undefined) { hasAnyValues = true; internalValueResult.forward = this._forward; } if (this._whitelistedNames !== undefined) { hasAnyValues = true; internalValueResult.whitelistedNames = this._whitelistedNames; } return hasAnyValues ? internalValueResult : undefined; } public set internalValue(value: CloudfrontDistributionDefaultCacheBehaviorForwardedValuesCookies | undefined) { if (value === undefined) { this.isEmptyObject = false; this._forward = undefined; this._whitelistedNames = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._forward = value.forward; this._whitelistedNames = value.whitelistedNames; } } // forward - computed: false, optional: false, required: true private _forward?: string; public get forward() { return this.getStringAttribute('forward'); } public set forward(value: string) { this._forward = value; } // Temporarily expose input value. Use with caution. public get forwardInput() { return this._forward; } // whitelisted_names - computed: true, optional: true, required: false private _whitelistedNames?: string[]; public get whitelistedNames() { return this.getListAttribute('whitelisted_names'); } public set whitelistedNames(value: string[]) { this._whitelistedNames = value; } public resetWhitelistedNames() { this._whitelistedNames = undefined; } // Temporarily expose input value. Use with caution. public get whitelistedNamesInput() { return this._whitelistedNames; } } export interface CloudfrontDistributionDefaultCacheBehaviorForwardedValues { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudfront_distribution.html#headers CloudfrontDistribution#headers} */ readonly headers?: string[]; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudfront_distribution.html#query_string CloudfrontDistribution#query_string} */ readonly queryString: boolean | cdktf.IResolvable; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudfront_distribution.html#query_string_cache_keys CloudfrontDistribution#query_string_cache_keys} */ readonly queryStringCacheKeys?: string[]; /** * cookies block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudfront_distribution.html#cookies CloudfrontDistribution#cookies} */ readonly cookies: CloudfrontDistributionDefaultCacheBehaviorForwardedValuesCookies; } export function cloudfrontDistributionDefaultCacheBehaviorForwardedValuesToTerraform(struct?: CloudfrontDistributionDefaultCacheBehaviorForwardedValuesOutputReference | CloudfrontDistributionDefaultCacheBehaviorForwardedValues): 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 { headers: cdktf.listMapper(cdktf.stringToTerraform)(struct!.headers), query_string: cdktf.booleanToTerraform(struct!.queryString), query_string_cache_keys: cdktf.listMapper(cdktf.stringToTerraform)(struct!.queryStringCacheKeys), cookies: cloudfrontDistributionDefaultCacheBehaviorForwardedValuesCookiesToTerraform(struct!.cookies), } } export class CloudfrontDistributionDefaultCacheBehaviorForwardedValuesOutputReference 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(): CloudfrontDistributionDefaultCacheBehaviorForwardedValues | undefined { let hasAnyValues = this.isEmptyObject; const internalValueResult: any = {}; if (this._headers !== undefined) { hasAnyValues = true; internalValueResult.headers = this._headers; } if (this._queryString !== undefined) { hasAnyValues = true; internalValueResult.queryString = this._queryString; } if (this._queryStringCacheKeys !== undefined) { hasAnyValues = true; internalValueResult.queryStringCacheKeys = this._queryStringCacheKeys; } if (this._cookies?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.cookies = this._cookies?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } public set internalValue(value: CloudfrontDistributionDefaultCacheBehaviorForwardedValues | undefined) { if (value === undefined) { this.isEmptyObject = false; this._headers = undefined; this._queryString = undefined; this._queryStringCacheKeys = undefined; this._cookies.internalValue = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._headers = value.headers; this._queryString = value.queryString; this._queryStringCacheKeys = value.queryStringCacheKeys; this._cookies.internalValue = value.cookies; } } // headers - computed: true, optional: true, required: false private _headers?: string[]; public get headers() { return this.getListAttribute('headers'); } public set headers(value: string[]) { this._headers = value; } public resetHeaders() { this._headers = undefined; } // Temporarily expose input value. Use with caution. public get headersInput() { return this._headers; } // query_string - computed: false, optional: false, required: true private _queryString?: boolean | cdktf.IResolvable; public get queryString() { return this.getBooleanAttribute('query_string') as any; } public set queryString(value: boolean | cdktf.IResolvable) { this._queryString = value; } // Temporarily expose input value. Use with caution. public get queryStringInput() { return this._queryString; } // query_string_cache_keys - computed: true, optional: true, required: false private _queryStringCacheKeys?: string[]; public get queryStringCacheKeys() { return this.getListAttribute('query_string_cache_keys'); } public set queryStringCacheKeys(value: string[]) { this._queryStringCacheKeys = value; } public resetQueryStringCacheKeys() { this._queryStringCacheKeys = undefined; } // Temporarily expose input value. Use with caution. public get queryStringCacheKeysInput() { return this._queryStringCacheKeys; } // cookies - computed: false, optional: false, required: true private _cookies = new CloudfrontDistributionDefaultCacheBehaviorForwardedValuesCookiesOutputReference(this as any, "cookies", true); public get cookies() { return this._cookies; } public putCookies(value: CloudfrontDistributionDefaultCacheBehaviorForwardedValuesCookies) { this._cookies.internalValue = value; } // Temporarily expose input value. Use with caution. public get cookiesInput() { return this._cookies.internalValue; } } export interface CloudfrontDistributionDefaultCacheBehaviorFunctionAssociation { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudfront_distribution.html#event_type CloudfrontDistribution#event_type} */ readonly eventType: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudfront_distribution.html#function_arn CloudfrontDistribution#function_arn} */ readonly functionArn: string; } export function cloudfrontDistributionDefaultCacheBehaviorFunctionAssociationToTerraform(struct?: CloudfrontDistributionDefaultCacheBehaviorFunctionAssociation): 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 { event_type: cdktf.stringToTerraform(struct!.eventType), function_arn: cdktf.stringToTerraform(struct!.functionArn), } } export interface CloudfrontDistributionDefaultCacheBehaviorLambdaFunctionAssociation { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudfront_distribution.html#event_type CloudfrontDistribution#event_type} */ readonly eventType: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudfront_distribution.html#include_body CloudfrontDistribution#include_body} */ readonly includeBody?: boolean | cdktf.IResolvable; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudfront_distribution.html#lambda_arn CloudfrontDistribution#lambda_arn} */ readonly lambdaArn: string; } export function cloudfrontDistributionDefaultCacheBehaviorLambdaFunctionAssociationToTerraform(struct?: CloudfrontDistributionDefaultCacheBehaviorLambdaFunctionAssociation): 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 { event_type: cdktf.stringToTerraform(struct!.eventType), include_body: cdktf.booleanToTerraform(struct!.includeBody), lambda_arn: cdktf.stringToTerraform(struct!.lambdaArn), } } export interface CloudfrontDistributionDefaultCacheBehavior { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudfront_distribution.html#allowed_methods CloudfrontDistribution#allowed_methods} */ readonly allowedMethods: string[]; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudfront_distribution.html#cache_policy_id CloudfrontDistribution#cache_policy_id} */ readonly cachePolicyId?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudfront_distribution.html#cached_methods CloudfrontDistribution#cached_methods} */ readonly cachedMethods: string[]; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudfront_distribution.html#compress CloudfrontDistribution#compress} */ readonly compress?: boolean | cdktf.IResolvable; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudfront_distribution.html#default_ttl CloudfrontDistribution#default_ttl} */ readonly defaultTtl?: number; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudfront_distribution.html#field_level_encryption_id CloudfrontDistribution#field_level_encryption_id} */ readonly fieldLevelEncryptionId?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudfront_distribution.html#max_ttl CloudfrontDistribution#max_ttl} */ readonly maxTtl?: number; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudfront_distribution.html#min_ttl CloudfrontDistribution#min_ttl} */ readonly minTtl?: number; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudfront_distribution.html#origin_request_policy_id CloudfrontDistribution#origin_request_policy_id} */ readonly originRequestPolicyId?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudfront_distribution.html#realtime_log_config_arn CloudfrontDistribution#realtime_log_config_arn} */ readonly realtimeLogConfigArn?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudfront_distribution.html#response_headers_policy_id CloudfrontDistribution#response_headers_policy_id} */ readonly responseHeadersPolicyId?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudfront_distribution.html#smooth_streaming CloudfrontDistribution#smooth_streaming} */ readonly smoothStreaming?: boolean | cdktf.IResolvable; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudfront_distribution.html#target_origin_id CloudfrontDistribution#target_origin_id} */ readonly targetOriginId: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudfront_distribution.html#trusted_key_groups CloudfrontDistribution#trusted_key_groups} */ readonly trustedKeyGroups?: string[]; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudfront_distribution.html#trusted_signers CloudfrontDistribution#trusted_signers} */ readonly trustedSigners?: string[]; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudfront_distribution.html#viewer_protocol_policy CloudfrontDistribution#viewer_protocol_policy} */ readonly viewerProtocolPolicy: string; /** * forwarded_values block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudfront_distribution.html#forwarded_values CloudfrontDistribution#forwarded_values} */ readonly forwardedValues?: CloudfrontDistributionDefaultCacheBehaviorForwardedValues; /** * function_association block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudfront_distribution.html#function_association CloudfrontDistribution#function_association} */ readonly functionAssociation?: CloudfrontDistributionDefaultCacheBehaviorFunctionAssociation[]; /** * lambda_function_association block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudfront_distribution.html#lambda_function_association CloudfrontDistribution#lambda_function_association} */ readonly lambdaFunctionAssociation?: CloudfrontDistributionDefaultCacheBehaviorLambdaFunctionAssociation[]; } export function cloudfrontDistributionDefaultCacheBehaviorToTerraform(struct?: CloudfrontDistributionDefaultCacheBehaviorOutputReference | CloudfrontDistributionDefaultCacheBehavior): 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 { allowed_methods: cdktf.listMapper(cdktf.stringToTerraform)(struct!.allowedMethods), cache_policy_id: cdktf.stringToTerraform(struct!.cachePolicyId), cached_methods: cdktf.listMapper(cdktf.stringToTerraform)(struct!.cachedMethods), compress: cdktf.booleanToTerraform(struct!.compress), default_ttl: cdktf.numberToTerraform(struct!.defaultTtl), field_level_encryption_id: cdktf.stringToTerraform(struct!.fieldLevelEncryptionId), max_ttl: cdktf.numberToTerraform(struct!.maxTtl), min_ttl: cdktf.numberToTerraform(struct!.minTtl), origin_request_policy_id: cdktf.stringToTerraform(struct!.originRequestPolicyId), realtime_log_config_arn: cdktf.stringToTerraform(struct!.realtimeLogConfigArn), response_headers_policy_id: cdktf.stringToTerraform(struct!.responseHeadersPolicyId), smooth_streaming: cdktf.booleanToTerraform(struct!.smoothStreaming), target_origin_id: cdktf.stringToTerraform(struct!.targetOriginId), trusted_key_groups: cdktf.listMapper(cdktf.stringToTerraform)(struct!.trustedKeyGroups), trusted_signers: cdktf.listMapper(cdktf.stringToTerraform)(struct!.trustedSigners), viewer_protocol_policy: cdktf.stringToTerraform(struct!.viewerProtocolPolicy), forwarded_values: cloudfrontDistributionDefaultCacheBehaviorForwardedValuesToTerraform(struct!.forwardedValues), function_association: cdktf.listMapper(cloudfrontDistributionDefaultCacheBehaviorFunctionAssociationToTerraform)(struct!.functionAssociation), lambda_function_association: cdktf.listMapper(cloudfrontDistributionDefaultCacheBehaviorLambdaFunctionAssociationToTerraform)(struct!.lambdaFunctionAssociation), } } export class CloudfrontDistributionDefaultCacheBehaviorOutputReference 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(): CloudfrontDistributionDefaultCacheBehavior | undefined { let hasAnyValues = this.isEmptyObject; const internalValueResult: any = {}; if (this._allowedMethods !== undefined) { hasAnyValues = true; internalValueResult.allowedMethods = this._allowedMethods; } if (this._cachePolicyId !== undefined) { hasAnyValues = true; internalValueResult.cachePolicyId = this._cachePolicyId; } if (this._cachedMethods !== undefined) { hasAnyValues = true; internalValueResult.cachedMethods = this._cachedMethods; } if (this._compress !== undefined) { hasAnyValues = true; internalValueResult.compress = this._compress; } if (this._defaultTtl !== undefined) { hasAnyValues = true; internalValueResult.defaultTtl = this._defaultTtl; } if (this._fieldLevelEncryptionId !== undefined) { hasAnyValues = true; internalValueResult.fieldLevelEncryptionId = this._fieldLevelEncryptionId; } if (this._maxTtl !== undefined) { hasAnyValues = true; internalValueResult.maxTtl = this._maxTtl; } if (this._minTtl !== undefined) { hasAnyValues = true; internalValueResult.minTtl = this._minTtl; } if (this._originRequestPolicyId !== undefined) { hasAnyValues = true; internalValueResult.originRequestPolicyId = this._originRequestPolicyId; } if (this._realtimeLogConfigArn !== undefined) { hasAnyValues = true; internalValueResult.realtimeLogConfigArn = this._realtimeLogConfigArn; } if (this._responseHeadersPolicyId !== undefined) { hasAnyValues = true; internalValueResult.responseHeadersPolicyId = this._responseHeadersPolicyId; } if (this._smoothStreaming !== undefined) { hasAnyValues = true; internalValueResult.smoothStreaming = this._smoothStreaming; } if (this._targetOriginId !== undefined) { hasAnyValues = true; internalValueResult.targetOriginId = this._targetOriginId; } if (this._trustedKeyGroups !== undefined) { hasAnyValues = true; internalValueResult.trustedKeyGroups = this._trustedKeyGroups; } if (this._trustedSigners !== undefined) { hasAnyValues = true; internalValueResult.trustedSigners = this._trustedSigners; } if (this._viewerProtocolPolicy !== undefined) { hasAnyValues = true; internalValueResult.viewerProtocolPolicy = this._viewerProtocolPolicy; } if (this._forwardedValues?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.forwardedValues = this._forwardedValues?.internalValue; } if (this._functionAssociation !== undefined) { hasAnyValues = true; internalValueResult.functionAssociation = this._functionAssociation; } if (this._lambdaFunctionAssociation !== undefined) { hasAnyValues = true; internalValueResult.lambdaFunctionAssociation = this._lambdaFunctionAssociation; } return hasAnyValues ? internalValueResult : undefined; } public set internalValue(value: CloudfrontDistributionDefaultCacheBehavior | undefined) { if (value === undefined) { this.isEmptyObject = false; this._allowedMethods = undefined; this._cachePolicyId = undefined; this._cachedMethods = undefined; this._compress = undefined; this._defaultTtl = undefined; this._fieldLevelEncryptionId = undefined; this._maxTtl = undefined; this._minTtl = undefined; this._originRequestPolicyId = undefined; this._realtimeLogConfigArn = undefined; this._responseHeadersPolicyId = undefined; this._smoothStreaming = undefined; this._targetOriginId = undefined; this._trustedKeyGroups = undefined; this._trustedSigners = undefined; this._viewerProtocolPolicy = undefined; this._forwardedValues.internalValue = undefined; this._functionAssociation = undefined; this._lambdaFunctionAssociation = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._allowedMethods = value.allowedMethods; this._cachePolicyId = value.cachePolicyId; this._cachedMethods = value.cachedMethods; this._compress = value.compress; this._defaultTtl = value.defaultTtl; this._fieldLevelEncryptionId = value.fieldLevelEncryptionId; this._maxTtl = value.maxTtl; this._minTtl = value.minTtl; this._originRequestPolicyId = value.originRequestPolicyId; this._realtimeLogConfigArn = value.realtimeLogConfigArn; this._responseHeadersPolicyId = value.responseHeadersPolicyId; this._smoothStreaming = value.smoothStreaming; this._targetOriginId = value.targetOriginId; this._trustedKeyGroups = value.trustedKeyGroups; this._trustedSigners = value.trustedSigners; this._viewerProtocolPolicy = value.viewerProtocolPolicy; this._forwardedValues.internalValue = value.forwardedValues; this._functionAssociation = value.functionAssociation; this._lambdaFunctionAssociation = value.lambdaFunctionAssociation; } } // allowed_methods - computed: false, optional: false, required: true private _allowedMethods?: string[]; public get allowedMethods() { return this.getListAttribute('allowed_methods'); } public set allowedMethods(value: string[]) { this._allowedMethods = value; } // Temporarily expose input value. Use with caution. public get allowedMethodsInput() { return this._allowedMethods; } // cache_policy_id - computed: false, optional: true, required: false private _cachePolicyId?: string; public get cachePolicyId() { return this.getStringAttribute('cache_policy_id'); } public set cachePolicyId(value: string) { this._cachePolicyId = value; } public resetCachePolicyId() { this._cachePolicyId = undefined; } // Temporarily expose input value. Use with caution. public get cachePolicyIdInput() { return this._cachePolicyId; } // cached_methods - computed: false, optional: false, required: true private _cachedMethods?: string[]; public get cachedMethods() { return this.getListAttribute('cached_methods'); } public set cachedMethods(value: string[]) { this._cachedMethods = value; } // Temporarily expose input value. Use with caution. public get cachedMethodsInput() { return this._cachedMethods; } // compress - computed: false, optional: true, required: false private _compress?: boolean | cdktf.IResolvable; public get compress() { return this.getBooleanAttribute('compress') as any; } public set compress(value: boolean | cdktf.IResolvable) { this._compress = value; } public resetCompress() { this._compress = undefined; } // Temporarily expose input value. Use with caution. public get compressInput() { return this._compress; } // default_ttl - computed: true, optional: true, required: false private _defaultTtl?: number; public get defaultTtl() { return this.getNumberAttribute('default_ttl'); } public set defaultTtl(value: number) { this._defaultTtl = value; } public resetDefaultTtl() { this._defaultTtl = undefined; } // Temporarily expose input value. Use with caution. public get defaultTtlInput() { return this._defaultTtl; } // field_level_encryption_id - computed: false, optional: true, required: false private _fieldLevelEncryptionId?: string; public get fieldLevelEncryptionId() { return this.getStringAttribute('field_level_encryption_id'); } public set fieldLevelEncryptionId(value: string) { this._fieldLevelEncryptionId = value; } public resetFieldLevelEncryptionId() { this._fieldLevelEncryptionId = undefined; } // Temporarily expose input value. Use with caution. public get fieldLevelEncryptionIdInput() { return this._fieldLevelEncryptionId; } // max_ttl - computed: true, optional: true, required: false private _maxTtl?: number; public get maxTtl() { return this.getNumberAttribute('max_ttl'); } public set maxTtl(value: number) { this._maxTtl = value; } public resetMaxTtl() { this._maxTtl = undefined; } // Temporarily expose input value. Use with caution. public get maxTtlInput() { return this._maxTtl; } // min_ttl - computed: false, optional: true, required: false private _minTtl?: number; public get minTtl() { return this.getNumberAttribute('min_ttl'); } public set minTtl(value: number) { this._minTtl = value; } public resetMinTtl() { this._minTtl = undefined; } // Temporarily expose input value. Use with caution. public get minTtlInput() { return this._minTtl; } // origin_request_policy_id - computed: false, optional: true, required: false private _originRequestPolicyId?: string; public get originRequestPolicyId() { return this.getStringAttribute('origin_request_policy_id'); } public set originRequestPolicyId(value: string) { this._originRequestPolicyId = value; } public resetOriginRequestPolicyId() { this._originRequestPolicyId = undefined; } // Temporarily expose input value. Use with caution. public get originRequestPolicyIdInput() { return this._originRequestPolicyId; } // realtime_log_config_arn - computed: false, optional: true, required: false private _realtimeLogConfigArn?: string; public get realtimeLogConfigArn() { return this.getStringAttribute('realtime_log_config_arn'); } public set realtimeLogConfigArn(value: string) { this._realtimeLogConfigArn = value; } public resetRealtimeLogConfigArn() { this._realtimeLogConfigArn = undefined; } // Temporarily expose input value. Use with caution. public get realtimeLogConfigArnInput() { return this._realtimeLogConfigArn; } // response_headers_policy_id - computed: false, optional: true, required: false private _responseHeadersPolicyId?: string; public get responseHeadersPolicyId() { return this.getStringAttribute('response_headers_policy_id'); } public set responseHeadersPolicyId(value: string) { this._responseHeadersPolicyId = value; } public resetResponseHeadersPolicyId() { this._responseHeadersPolicyId = undefined; } // Temporarily expose input value. Use with caution. public get responseHeadersPolicyIdInput() { return this._responseHeadersPolicyId; } // smooth_streaming - computed: false, optional: true, required: false private _smoothStreaming?: boolean | cdktf.IResolvable; public get smoothStreaming() { return this.getBooleanAttribute('smooth_streaming') as any; } public set smoothStreaming(value: boolean | cdktf.IResolvable) { this._smoothStreaming = value; } public resetSmoothStreaming() { this._smoothStreaming = undefined; } // Temporarily expose input value. Use with caution. public get smoothStreamingInput() { return this._smoothStreaming; } // target_origin_id - computed: false, optional: false, required: true private _targetOriginId?: string; public get targetOriginId() { return this.getStringAttribute('target_origin_id'); } public set targetOriginId(value: string) { this._targetOriginId = value; } // Temporarily expose input value. Use with caution. public get targetOriginIdInput() { return this._targetOriginId; } // trusted_key_groups - computed: true, optional: true, required: false private _trustedKeyGroups?: string[]; public get trustedKeyGroups() { return this.getListAttribute('trusted_key_groups'); } public set trustedKeyGroups(value: string[]) { this._trustedKeyGroups = value; } public resetTrustedKeyGroups() { this._trustedKeyGroups = undefined; } // Temporarily expose input value. Use with caution. public get trustedKeyGroupsInput() { return this._trustedKeyGroups; } // trusted_signers - computed: true, optional: true, required: false private _trustedSigners?: string[]; public get trustedSigners() { return this.getListAttribute('trusted_signers'); } public set trustedSigners(value: string[]) { this._trustedSigners = value; } public resetTrustedSigners() { this._trustedSigners = undefined; } // Temporarily expose input value. Use with caution. public get trustedSignersInput() { return this._trustedSigners; } // viewer_protocol_policy - computed: false, optional: false, required: true private _viewerProtocolPolicy?: string; public get viewerProtocolPolicy() { return this.getStringAttribute('viewer_protocol_policy'); } public set viewerProtocolPolicy(value: string) { this._viewerProtocolPolicy = value; } // Temporarily expose input value. Use with caution. public get viewerProtocolPolicyInput() { return this._viewerProtocolPolicy; } // forwarded_values - computed: false, optional: true, required: false private _forwardedValues = new CloudfrontDistributionDefaultCacheBehaviorForwardedValuesOutputReference(this as any, "forwarded_values", true); public get forwardedValues() { return this._forwardedValues; } public putForwardedValues(value: CloudfrontDistributionDefaultCacheBehaviorForwardedValues) { this._forwardedValues.internalValue = value; } public resetForwardedValues() { this._forwardedValues.internalValue = undefined; } // Temporarily expose input value. Use with caution. public get forwardedValuesInput() { return this._forwardedValues.internalValue; } // function_association - computed: false, optional: true, required: false private _functionAssociation?: CloudfrontDistributionDefaultCacheBehaviorFunctionAssociation[]; public get functionAssociation() { // Getting the computed value is not yet implemented return this.interpolationForAttribute('function_association') as any; } public set functionAssociation(value: CloudfrontDistributionDefaultCacheBehaviorFunctionAssociation[]) { this._functionAssociation = value; } public resetFunctionAssociation() { this._functionAssociation = undefined; } // Temporarily expose input value. Use with caution. public get functionAssociationInput() { return this._functionAssociation; } // lambda_function_association - computed: false, optional: true, required: false private _lambdaFunctionAssociation?: CloudfrontDistributionDefaultCacheBehaviorLambdaFunctionAssociation[]; public get lambdaFunctionAssociation() { // Getting the computed value is not yet implemented return this.interpolationForAttribute('lambda_function_association') as any; } public set lambdaFunctionAssociation(value: CloudfrontDistributionDefaultCacheBehaviorLambdaFunctionAssociation[]) { this._lambdaFunctionAssociation = value; } public resetLambdaFunctionAssociation() { this._lambdaFunctionAssociation = undefined; } // Temporarily expose input value. Use with caution. public get lambdaFunctionAssociationInput() { return this._lambdaFunctionAssociation; } } export interface CloudfrontDistributionLoggingConfig { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudfront_distribution.html#bucket CloudfrontDistribution#bucket} */ readonly bucket: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudfront_distribution.html#include_cookies CloudfrontDistribution#include_cookies} */ readonly includeCookies?: boolean | cdktf.IResolvable; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudfront_distribution.html#prefix CloudfrontDistribution#prefix} */ readonly prefix?: string; } export function cloudfrontDistributionLoggingConfigToTerraform(struct?: CloudfrontDistributionLoggingConfigOutputReference | CloudfrontDistributionLoggingConfig): 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 { bucket: cdktf.stringToTerraform(struct!.bucket), include_cookies: cdktf.booleanToTerraform(struct!.includeCookies), prefix: cdktf.stringToTerraform(struct!.prefix), } } export class CloudfrontDistributionLoggingConfigOutputReference 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(): CloudfrontDistributionLoggingConfig | undefined { let hasAnyValues = this.isEmptyObject; const internalValueResult: any = {}; if (this._bucket !== undefined) { hasAnyValues = true; internalValueResult.bucket = this._bucket; } if (this._includeCookies !== undefined) { hasAnyValues = true; internalValueResult.includeCookies = this._includeCookies; } if (this._prefix !== undefined) { hasAnyValues = true; internalValueResult.prefix = this._prefix; } return hasAnyValues ? internalValueResult : undefined; } public set internalValue(value: CloudfrontDistributionLoggingConfig | undefined) { if (value === undefined) { this.isEmptyObject = false; this._bucket = undefined; this._includeCookies = undefined; this._prefix = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._bucket = value.bucket; this._includeCookies = value.includeCookies; this._prefix = value.prefix; } } // bucket - computed: false, optional: false, required: true private _bucket?: string; public get bucket() { return this.getStringAttribute('bucket'); } public set bucket(value: string) { this._bucket = value; } // Temporarily expose input value. Use with caution. public get bucketInput() { return this._bucket; } // include_cookies - computed: false, optional: true, required: false private _includeCookies?: boolean | cdktf.IResolvable; public get includeCookies() { return this.getBooleanAttribute('include_cookies') as any; } public set includeCookies(value: boolean | cdktf.IResolvable) { this._includeCookies = value; } public resetIncludeCookies() { this._includeCookies = undefined; } // Temporarily expose input value. Use with caution. public get includeCookiesInput() { return this._includeCookies; } // prefix - computed: false, optional: true, required: false private _prefix?: string; public get prefix() { return this.getStringAttribute('prefix'); } public set prefix(value: string) { this._prefix = value; } public resetPrefix() { this._prefix = undefined; } // Temporarily expose input value. Use with caution. public get prefixInput() { return this._prefix; } } export interface CloudfrontDistributionOrderedCacheBehaviorForwardedValuesCookies { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudfront_distribution.html#forward CloudfrontDistribution#forward} */ readonly forward: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudfront_distribution.html#whitelisted_names CloudfrontDistribution#whitelisted_names} */ readonly whitelistedNames?: string[]; } export function cloudfrontDistributionOrderedCacheBehaviorForwardedValuesCookiesToTerraform(struct?: CloudfrontDistributionOrderedCacheBehaviorForwardedValuesCookiesOutputReference | CloudfrontDistributionOrderedCacheBehaviorForwardedValuesCookies): 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 { forward: cdktf.stringToTerraform(struct!.forward), whitelisted_names: cdktf.listMapper(cdktf.stringToTerraform)(struct!.whitelistedNames), } } export class CloudfrontDistributionOrderedCacheBehaviorForwardedValuesCookiesOutputReference 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(): CloudfrontDistributionOrderedCacheBehaviorForwardedValuesCookies | undefined { let hasAnyValues = this.isEmptyObject; const internalValueResult: any = {}; if (this._forward !== undefined) { hasAnyValues = true; internalValueResult.forward = this._forward; } if (this._whitelistedNames !== undefined) { hasAnyValues = true; internalValueResult.whitelistedNames = this._whitelistedNames; } return hasAnyValues ? internalValueResult : undefined; } public set internalValue(value: CloudfrontDistributionOrderedCacheBehaviorForwardedValuesCookies | undefined) { if (value === undefined) { this.isEmptyObject = false; this._forward = undefined; this._whitelistedNames = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._forward = value.forward; this._whitelistedNames = value.whitelistedNames; } } // forward - computed: false, optional: false, required: true private _forward?: string; public get forward() { return this.getStringAttribute('forward'); } public set forward(value: string) { this._forward = value; } // Temporarily expose input value. Use with caution. public get forwardInput() { return this._forward; } // whitelisted_names - computed: false, optional: true, required: false private _whitelistedNames?: string[]; public get whitelistedNames() { return this.getListAttribute('whitelisted_names'); } public set whitelistedNames(value: string[]) { this._whitelistedNames = value; } public resetWhitelistedNames() { this._whitelistedNames = undefined; } // Temporarily expose input value. Use with caution. public get whitelistedNamesInput() { return this._whitelistedNames; } } export interface CloudfrontDistributionOrderedCacheBehaviorForwardedValues { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudfront_distribution.html#headers CloudfrontDistribution#headers} */ readonly headers?: string[]; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudfront_distribution.html#query_string CloudfrontDistribution#query_string} */ readonly queryString: boolean | cdktf.IResolvable; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudfront_distribution.html#query_string_cache_keys CloudfrontDistribution#query_string_cache_keys} */ readonly queryStringCacheKeys?: string[]; /** * cookies block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudfront_distribution.html#cookies CloudfrontDistribution#cookies} */ readonly cookies: CloudfrontDistributionOrderedCacheBehaviorForwardedValuesCookies; } export function cloudfrontDistributionOrderedCacheBehaviorForwardedValuesToTerraform(struct?: CloudfrontDistributionOrderedCacheBehaviorForwardedValuesOutputReference | CloudfrontDistributionOrderedCacheBehaviorForwardedValues): 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 { headers: cdktf.listMapper(cdktf.stringToTerraform)(struct!.headers), query_string: cdktf.booleanToTerraform(struct!.queryString), query_string_cache_keys: cdktf.listMapper(cdktf.stringToTerraform)(struct!.queryStringCacheKeys), cookies: cloudfrontDistributionOrderedCacheBehaviorForwardedValuesCookiesToTerraform(struct!.cookies), } } export class CloudfrontDistributionOrderedCacheBehaviorForwardedValuesOutputReference 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(): CloudfrontDistributionOrderedCacheBehaviorForwardedValues | undefined { let hasAnyValues = this.isEmptyObject; const internalValueResult: any = {}; if (this._headers !== undefined) { hasAnyValues = true; internalValueResult.headers = this._headers; } if (this._queryString !== undefined) { hasAnyValues = true; internalValueResult.queryString = this._queryString; } if (this._queryStringCacheKeys !== undefined) { hasAnyValues = true; internalValueResult.queryStringCacheKeys = this._queryStringCacheKeys; } if (this._cookies?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.cookies = this._cookies?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } public set internalValue(value: CloudfrontDistributionOrderedCacheBehaviorForwardedValues | undefined) { if (value === undefined) { this.isEmptyObject = false; this._headers = undefined; this._queryString = undefined; this._queryStringCacheKeys = undefined; this._cookies.internalValue = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._headers = value.headers; this._queryString = value.queryString; this._queryStringCacheKeys = value.queryStringCacheKeys; this._cookies.internalValue = value.cookies; } } // headers - computed: true, optional: true, required: false private _headers?: string[]; public get headers() { return this.getListAttribute('headers'); } public set headers(value: string[]) { this._headers = value; } public resetHeaders() { this._headers = undefined; } // Temporarily expose input value. Use with caution. public get headersInput() { return this._headers; } // query_string - computed: false, optional: false, required: true private _queryString?: boolean | cdktf.IResolvable; public get queryString() { return this.getBooleanAttribute('query_string') as any; } public set queryString(value: boolean | cdktf.IResolvable) { this._queryString = value; } // Temporarily expose input value. Use with caution. public get queryStringInput() { return this._queryString; } // query_string_cache_keys - computed: true, optional: true, required: false private _queryStringCacheKeys?: string[]; public get queryStringCacheKeys() { return this.getListAttribute('query_string_cache_keys'); } public set queryStringCacheKeys(value: string[]) { this._queryStringCacheKeys = value; } public resetQueryStringCacheKeys() { this._queryStringCacheKeys = undefined; } // Temporarily expose input value. Use with caution. public get queryStringCacheKeysInput() { return this._queryStringCacheKeys; } // cookies - computed: false, optional: false, required: true private _cookies = new CloudfrontDistributionOrderedCacheBehaviorForwardedValuesCookiesOutputReference(this as any, "cookies", true); public get cookies() { return this._cookies; } public putCookies(value: CloudfrontDistributionOrderedCacheBehaviorForwardedValuesCookies) { this._cookies.internalValue = value; } // Temporarily expose input value. Use with caution. public get cookiesInput() { return this._cookies.internalValue; } } export interface CloudfrontDistributionOrderedCacheBehaviorFunctionAssociation { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudfront_distribution.html#event_type CloudfrontDistribution#event_type} */ readonly eventType: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudfront_distribution.html#function_arn CloudfrontDistribution#function_arn} */ readonly functionArn: string; } export function cloudfrontDistributionOrderedCacheBehaviorFunctionAssociationToTerraform(struct?: CloudfrontDistributionOrderedCacheBehaviorFunctionAssociation): 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 { event_type: cdktf.stringToTerraform(struct!.eventType), function_arn: cdktf.stringToTerraform(struct!.functionArn), } } export interface CloudfrontDistributionOrderedCacheBehaviorLambdaFunctionAssociation { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudfront_distribution.html#event_type CloudfrontDistribution#event_type} */ readonly eventType: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudfront_distribution.html#include_body CloudfrontDistribution#include_body} */ readonly includeBody?: boolean | cdktf.IResolvable; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudfront_distribution.html#lambda_arn CloudfrontDistribution#lambda_arn} */ readonly lambdaArn: string; } export function cloudfrontDistributionOrderedCacheBehaviorLambdaFunctionAssociationToTerraform(struct?: CloudfrontDistributionOrderedCacheBehaviorLambdaFunctionAssociation): 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 { event_type: cdktf.stringToTerraform(struct!.eventType), include_body: cdktf.booleanToTerraform(struct!.includeBody), lambda_arn: cdktf.stringToTerraform(struct!.lambdaArn), } } export interface CloudfrontDistributionOrderedCacheBehavior { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudfront_distribution.html#allowed_methods CloudfrontDistribution#allowed_methods} */ readonly allowedMethods: string[]; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudfront_distribution.html#cache_policy_id CloudfrontDistribution#cache_policy_id} */ readonly cachePolicyId?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudfront_distribution.html#cached_methods CloudfrontDistribution#cached_methods} */ readonly cachedMethods: string[]; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudfront_distribution.html#compress CloudfrontDistribution#compress} */ readonly compress?: boolean | cdktf.IResolvable; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudfront_distribution.html#default_ttl CloudfrontDistribution#default_ttl} */ readonly defaultTtl?: number; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudfront_distribution.html#field_level_encryption_id CloudfrontDistribution#field_level_encryption_id} */ readonly fieldLevelEncryptionId?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudfront_distribution.html#max_ttl CloudfrontDistribution#max_ttl} */ readonly maxTtl?: number; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudfront_distribution.html#min_ttl CloudfrontDistribution#min_ttl} */ readonly minTtl?: number; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudfront_distribution.html#origin_request_policy_id CloudfrontDistribution#origin_request_policy_id} */ readonly originRequestPolicyId?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudfront_distribution.html#path_pattern CloudfrontDistribution#path_pattern} */ readonly pathPattern: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudfront_distribution.html#realtime_log_config_arn CloudfrontDistribution#realtime_log_config_arn} */ readonly realtimeLogConfigArn?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudfront_distribution.html#response_headers_policy_id CloudfrontDistribution#response_headers_policy_id} */ readonly responseHeadersPolicyId?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudfront_distribution.html#smooth_streaming CloudfrontDistribution#smooth_streaming} */ readonly smoothStreaming?: boolean | cdktf.IResolvable; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudfront_distribution.html#target_origin_id CloudfrontDistribution#target_origin_id} */ readonly targetOriginId: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudfront_distribution.html#trusted_key_groups CloudfrontDistribution#trusted_key_groups} */ readonly trustedKeyGroups?: string[]; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudfront_distribution.html#trusted_signers CloudfrontDistribution#trusted_signers} */ readonly trustedSigners?: string[]; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudfront_distribution.html#viewer_protocol_policy CloudfrontDistribution#viewer_protocol_policy} */ readonly viewerProtocolPolicy: string; /** * forwarded_values block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudfront_distribution.html#forwarded_values CloudfrontDistribution#forwarded_values} */ readonly forwardedValues?: CloudfrontDistributionOrderedCacheBehaviorForwardedValues; /** * function_association block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudfront_distribution.html#function_association CloudfrontDistribution#function_association} */ readonly functionAssociation?: CloudfrontDistributionOrderedCacheBehaviorFunctionAssociation[]; /** * lambda_function_association block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudfront_distribution.html#lambda_function_association CloudfrontDistribution#lambda_function_association} */ readonly lambdaFunctionAssociation?: CloudfrontDistributionOrderedCacheBehaviorLambdaFunctionAssociation[]; } export function cloudfrontDistributionOrderedCacheBehaviorToTerraform(struct?: CloudfrontDistributionOrderedCacheBehavior): 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 { allowed_methods: cdktf.listMapper(cdktf.stringToTerraform)(struct!.allowedMethods), cache_policy_id: cdktf.stringToTerraform(struct!.cachePolicyId), cached_methods: cdktf.listMapper(cdktf.stringToTerraform)(struct!.cachedMethods), compress: cdktf.booleanToTerraform(struct!.compress), default_ttl: cdktf.numberToTerraform(struct!.defaultTtl), field_level_encryption_id: cdktf.stringToTerraform(struct!.fieldLevelEncryptionId), max_ttl: cdktf.numberToTerraform(struct!.maxTtl), min_ttl: cdktf.numberToTerraform(struct!.minTtl), origin_request_policy_id: cdktf.stringToTerraform(struct!.originRequestPolicyId), path_pattern: cdktf.stringToTerraform(struct!.pathPattern), realtime_log_config_arn: cdktf.stringToTerraform(struct!.realtimeLogConfigArn), response_headers_policy_id: cdktf.stringToTerraform(struct!.responseHeadersPolicyId), smooth_streaming: cdktf.booleanToTerraform(struct!.smoothStreaming), target_origin_id: cdktf.stringToTerraform(struct!.targetOriginId), trusted_key_groups: cdktf.listMapper(cdktf.stringToTerraform)(struct!.trustedKeyGroups), trusted_signers: cdktf.listMapper(cdktf.stringToTerraform)(struct!.trustedSigners), viewer_protocol_policy: cdktf.stringToTerraform(struct!.viewerProtocolPolicy), forwarded_values: cloudfrontDistributionOrderedCacheBehaviorForwardedValuesToTerraform(struct!.forwardedValues), function_association: cdktf.listMapper(cloudfrontDistributionOrderedCacheBehaviorFunctionAssociationToTerraform)(struct!.functionAssociation), lambda_function_association: cdktf.listMapper(cloudfrontDistributionOrderedCacheBehaviorLambdaFunctionAssociationToTerraform)(struct!.lambdaFunctionAssociation), } } export interface CloudfrontDistributionOriginCustomHeader { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudfront_distribution.html#name CloudfrontDistribution#name} */ readonly name: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudfront_distribution.html#value CloudfrontDistribution#value} */ readonly value: string; } export function cloudfrontDistributionOriginCustomHeaderToTerraform(struct?: CloudfrontDistributionOriginCustomHeader): 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 { name: cdktf.stringToTerraform(struct!.name), value: cdktf.stringToTerraform(struct!.value), } } export interface CloudfrontDistributionOriginCustomOriginConfig { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudfront_distribution.html#http_port CloudfrontDistribution#http_port} */ readonly httpPort: number; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudfront_distribution.html#https_port CloudfrontDistribution#https_port} */ readonly httpsPort: number; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudfront_distribution.html#origin_keepalive_timeout CloudfrontDistribution#origin_keepalive_timeout} */ readonly originKeepaliveTimeout?: number; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudfront_distribution.html#origin_protocol_policy CloudfrontDistribution#origin_protocol_policy} */ readonly originProtocolPolicy: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudfront_distribution.html#origin_read_timeout CloudfrontDistribution#origin_read_timeout} */ readonly originReadTimeout?: number; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudfront_distribution.html#origin_ssl_protocols CloudfrontDistribution#origin_ssl_protocols} */ readonly originSslProtocols: string[]; } export function cloudfrontDistributionOriginCustomOriginConfigToTerraform(struct?: CloudfrontDistributionOriginCustomOriginConfigOutputReference | CloudfrontDistributionOriginCustomOriginConfig): 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 { http_port: cdktf.numberToTerraform(struct!.httpPort), https_port: cdktf.numberToTerraform(struct!.httpsPort), origin_keepalive_timeout: cdktf.numberToTerraform(struct!.originKeepaliveTimeout), origin_protocol_policy: cdktf.stringToTerraform(struct!.originProtocolPolicy), origin_read_timeout: cdktf.numberToTerraform(struct!.originReadTimeout), origin_ssl_protocols: cdktf.listMapper(cdktf.stringToTerraform)(struct!.originSslProtocols), } } export class CloudfrontDistributionOriginCustomOriginConfigOutputReference 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(): CloudfrontDistributionOriginCustomOriginConfig | undefined { let hasAnyValues = this.isEmptyObject; const internalValueResult: any = {}; if (this._httpPort !== undefined) { hasAnyValues = true; internalValueResult.httpPort = this._httpPort; } if (this._httpsPort !== undefined) { hasAnyValues = true; internalValueResult.httpsPort = this._httpsPort; } if (this._originKeepaliveTimeout !== undefined) { hasAnyValues = true; internalValueResult.originKeepaliveTimeout = this._originKeepaliveTimeout; } if (this._originProtocolPolicy !== undefined) { hasAnyValues = true; internalValueResult.originProtocolPolicy = this._originProtocolPolicy; } if (this._originReadTimeout !== undefined) { hasAnyValues = true; internalValueResult.originReadTimeout = this._originReadTimeout; } if (this._originSslProtocols !== undefined) { hasAnyValues = true; internalValueResult.originSslProtocols = this._originSslProtocols; } return hasAnyValues ? internalValueResult : undefined; } public set internalValue(value: CloudfrontDistributionOriginCustomOriginConfig | undefined) { if (value === undefined) { this.isEmptyObject = false; this._httpPort = undefined; this._httpsPort = undefined; this._originKeepaliveTimeout = undefined; this._originProtocolPolicy = undefined; this._originReadTimeout = undefined; this._originSslProtocols = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._httpPort = value.httpPort; this._httpsPort = value.httpsPort; this._originKeepaliveTimeout = value.originKeepaliveTimeout; this._originProtocolPolicy = value.originProtocolPolicy; this._originReadTimeout = value.originReadTimeout; this._originSslProtocols = value.originSslProtocols; } } // http_port - computed: false, optional: false, required: true private _httpPort?: number; public get httpPort() { return this.getNumberAttribute('http_port'); } public set httpPort(value: number) { this._httpPort = value; } // Temporarily expose input value. Use with caution. public get httpPortInput() { return this._httpPort; } // https_port - computed: false, optional: false, required: true private _httpsPort?: number; public get httpsPort() { return this.getNumberAttribute('https_port'); } public set httpsPort(value: number) { this._httpsPort = value; } // Temporarily expose input value. Use with caution. public get httpsPortInput() { return this._httpsPort; } // origin_keepalive_timeout - computed: false, optional: true, required: false private _originKeepaliveTimeout?: number; public get originKeepaliveTimeout() { return this.getNumberAttribute('origin_keepalive_timeout'); } public set originKeepaliveTimeout(value: number) { this._originKeepaliveTimeout = value; } public resetOriginKeepaliveTimeout() { this._originKeepaliveTimeout = undefined; } // Temporarily expose input value. Use with caution. public get originKeepaliveTimeoutInput() { return this._originKeepaliveTimeout; } // origin_protocol_policy - computed: false, optional: false, required: true private _originProtocolPolicy?: string; public get originProtocolPolicy() { return this.getStringAttribute('origin_protocol_policy'); } public set originProtocolPolicy(value: string) { this._originProtocolPolicy = value; } // Temporarily expose input value. Use with caution. public get originProtocolPolicyInput() { return this._originProtocolPolicy; } // origin_read_timeout - computed: false, optional: true, required: false private _originReadTimeout?: number; public get originReadTimeout() { return this.getNumberAttribute('origin_read_timeout'); } public set originReadTimeout(value: number) { this._originReadTimeout = value; } public resetOriginReadTimeout() { this._originReadTimeout = undefined; } // Temporarily expose input value. Use with caution. public get originReadTimeoutInput() { return this._originReadTimeout; } // origin_ssl_protocols - computed: false, optional: false, required: true private _originSslProtocols?: string[]; public get originSslProtocols() { return this.getListAttribute('origin_ssl_protocols'); } public set originSslProtocols(value: string[]) { this._originSslProtocols = value; } // Temporarily expose input value. Use with caution. public get originSslProtocolsInput() { return this._originSslProtocols; } } export interface CloudfrontDistributionOriginOriginShield { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudfront_distribution.html#enabled CloudfrontDistribution#enabled} */ readonly enabled: boolean | cdktf.IResolvable; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudfront_distribution.html#origin_shield_region CloudfrontDistribution#origin_shield_region} */ readonly originShieldRegion: string; } export function cloudfrontDistributionOriginOriginShieldToTerraform(struct?: CloudfrontDistributionOriginOriginShieldOutputReference | CloudfrontDistributionOriginOriginShield): 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 { enabled: cdktf.booleanToTerraform(struct!.enabled), origin_shield_region: cdktf.stringToTerraform(struct!.originShieldRegion), } } export class CloudfrontDistributionOriginOriginShieldOutputReference 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(): CloudfrontDistributionOriginOriginShield | undefined { let hasAnyValues = this.isEmptyObject; const internalValueResult: any = {}; if (this._enabled !== undefined) { hasAnyValues = true; internalValueResult.enabled = this._enabled; } if (this._originShieldRegion !== undefined) { hasAnyValues = true; internalValueResult.originShieldRegion = this._originShieldRegion; } return hasAnyValues ? internalValueResult : undefined; } public set internalValue(value: CloudfrontDistributionOriginOriginShield | undefined) { if (value === undefined) { this.isEmptyObject = false; this._enabled = undefined; this._originShieldRegion = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._enabled = value.enabled; this._originShieldRegion = value.originShieldRegion; } } // enabled - computed: false, optional: false, required: true private _enabled?: boolean | cdktf.IResolvable; public get enabled() { return this.getBooleanAttribute('enabled') as any; } public set enabled(value: boolean | cdktf.IResolvable) { this._enabled = value; } // Temporarily expose input value. Use with caution. public get enabledInput() { return this._enabled; } // origin_shield_region - computed: false, optional: false, required: true private _originShieldRegion?: string; public get originShieldRegion() { return this.getStringAttribute('origin_shield_region'); } public set originShieldRegion(value: string) { this._originShieldRegion = value; } // Temporarily expose input value. Use with caution. public get originShieldRegionInput() { return this._originShieldRegion; } } export interface CloudfrontDistributionOriginS3OriginConfig { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudfront_distribution.html#origin_access_identity CloudfrontDistribution#origin_access_identity} */ readonly originAccessIdentity: string; } export function cloudfrontDistributionOriginS3OriginConfigToTerraform(struct?: CloudfrontDistributionOriginS3OriginConfigOutputReference | CloudfrontDistributionOriginS3OriginConfig): 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 { origin_access_identity: cdktf.stringToTerraform(struct!.originAccessIdentity), } } export class CloudfrontDistributionOriginS3OriginConfigOutputReference 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(): CloudfrontDistributionOriginS3OriginConfig | undefined { let hasAnyValues = this.isEmptyObject; const internalValueResult: any = {}; if (this._originAccessIdentity !== undefined) { hasAnyValues = true; internalValueResult.originAccessIdentity = this._originAccessIdentity; } return hasAnyValues ? internalValueResult : undefined; } public set internalValue(value: CloudfrontDistributionOriginS3OriginConfig | undefined) { if (value === undefined) { this.isEmptyObject = false; this._originAccessIdentity = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._originAccessIdentity = value.originAccessIdentity; } } // origin_access_identity - computed: false, optional: false, required: true private _originAccessIdentity?: string; public get originAccessIdentity() { return this.getStringAttribute('origin_access_identity'); } public set originAccessIdentity(value: string) { this._originAccessIdentity = value; } // Temporarily expose input value. Use with caution. public get originAccessIdentityInput() { return this._originAccessIdentity; } } export interface CloudfrontDistributionOrigin { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudfront_distribution.html#connection_attempts CloudfrontDistribution#connection_attempts} */ readonly connectionAttempts?: number; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudfront_distribution.html#connection_timeout CloudfrontDistribution#connection_timeout} */ readonly connectionTimeout?: number; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudfront_distribution.html#domain_name CloudfrontDistribution#domain_name} */ readonly domainName: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudfront_distribution.html#origin_id CloudfrontDistribution#origin_id} */ readonly originId: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudfront_distribution.html#origin_path CloudfrontDistribution#origin_path} */ readonly originPath?: string; /** * custom_header block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudfront_distribution.html#custom_header CloudfrontDistribution#custom_header} */ readonly customHeader?: CloudfrontDistributionOriginCustomHeader[]; /** * custom_origin_config block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudfront_distribution.html#custom_origin_config CloudfrontDistribution#custom_origin_config} */ readonly customOriginConfig?: CloudfrontDistributionOriginCustomOriginConfig; /** * origin_shield block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudfront_distribution.html#origin_shield CloudfrontDistribution#origin_shield} */ readonly originShield?: CloudfrontDistributionOriginOriginShield; /** * s3_origin_config block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudfront_distribution.html#s3_origin_config CloudfrontDistribution#s3_origin_config} */ readonly s3OriginConfig?: CloudfrontDistributionOriginS3OriginConfig; } export function cloudfrontDistributionOriginToTerraform(struct?: CloudfrontDistributionOrigin): 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_attempts: cdktf.numberToTerraform(struct!.connectionAttempts), connection_timeout: cdktf.numberToTerraform(struct!.connectionTimeout), domain_name: cdktf.stringToTerraform(struct!.domainName), origin_id: cdktf.stringToTerraform(struct!.originId), origin_path: cdktf.stringToTerraform(struct!.originPath), custom_header: cdktf.listMapper(cloudfrontDistributionOriginCustomHeaderToTerraform)(struct!.customHeader), custom_origin_config: cloudfrontDistributionOriginCustomOriginConfigToTerraform(struct!.customOriginConfig), origin_shield: cloudfrontDistributionOriginOriginShieldToTerraform(struct!.originShield), s3_origin_config: cloudfrontDistributionOriginS3OriginConfigToTerraform(struct!.s3OriginConfig), } } export interface CloudfrontDistributionOriginGroupFailoverCriteria { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudfront_distribution.html#status_codes CloudfrontDistribution#status_codes} */ readonly statusCodes: number[]; } export function cloudfrontDistributionOriginGroupFailoverCriteriaToTerraform(struct?: CloudfrontDistributionOriginGroupFailoverCriteriaOutputReference | CloudfrontDistributionOriginGroupFailoverCriteria): 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 { status_codes: cdktf.listMapper(cdktf.numberToTerraform)(struct!.statusCodes), } } export class CloudfrontDistributionOriginGroupFailoverCriteriaOutputReference 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(): CloudfrontDistributionOriginGroupFailoverCriteria | undefined { let hasAnyValues = this.isEmptyObject; const internalValueResult: any = {}; if (this._statusCodes !== undefined) { hasAnyValues = true; internalValueResult.statusCodes = this._statusCodes; } return hasAnyValues ? internalValueResult : undefined; } public set internalValue(value: CloudfrontDistributionOriginGroupFailoverCriteria | undefined) { if (value === undefined) { this.isEmptyObject = false; this._statusCodes = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._statusCodes = value.statusCodes; } } // status_codes - computed: false, optional: false, required: true private _statusCodes?: number[]; public get statusCodes() { // Getting the computed value is not yet implemented return this.interpolationForAttribute('status_codes') as any; } public set statusCodes(value: number[]) { this._statusCodes = value; } // Temporarily expose input value. Use with caution. public get statusCodesInput() { return this._statusCodes; } } export interface CloudfrontDistributionOriginGroupMember { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudfront_distribution.html#origin_id CloudfrontDistribution#origin_id} */ readonly originId: string; } export function cloudfrontDistributionOriginGroupMemberToTerraform(struct?: CloudfrontDistributionOriginGroupMember): 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 { origin_id: cdktf.stringToTerraform(struct!.originId), } } export interface CloudfrontDistributionOriginGroup { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudfront_distribution.html#origin_id CloudfrontDistribution#origin_id} */ readonly originId: string; /** * failover_criteria block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudfront_distribution.html#failover_criteria CloudfrontDistribution#failover_criteria} */ readonly failoverCriteria: CloudfrontDistributionOriginGroupFailoverCriteria; /** * member block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudfront_distribution.html#member CloudfrontDistribution#member} */ readonly member: CloudfrontDistributionOriginGroupMember[]; } export function cloudfrontDistributionOriginGroupToTerraform(struct?: CloudfrontDistributionOriginGroup): 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 { origin_id: cdktf.stringToTerraform(struct!.originId), failover_criteria: cloudfrontDistributionOriginGroupFailoverCriteriaToTerraform(struct!.failoverCriteria), member: cdktf.listMapper(cloudfrontDistributionOriginGroupMemberToTerraform)(struct!.member), } } export interface CloudfrontDistributionRestrictionsGeoRestriction { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudfront_distribution.html#locations CloudfrontDistribution#locations} */ readonly locations?: string[]; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudfront_distribution.html#restriction_type CloudfrontDistribution#restriction_type} */ readonly restrictionType: string; } export function cloudfrontDistributionRestrictionsGeoRestrictionToTerraform(struct?: CloudfrontDistributionRestrictionsGeoRestrictionOutputReference | CloudfrontDistributionRestrictionsGeoRestriction): 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 { locations: cdktf.listMapper(cdktf.stringToTerraform)(struct!.locations), restriction_type: cdktf.stringToTerraform(struct!.restrictionType), } } export class CloudfrontDistributionRestrictionsGeoRestrictionOutputReference 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(): CloudfrontDistributionRestrictionsGeoRestriction | undefined { let hasAnyValues = this.isEmptyObject; const internalValueResult: any = {}; if (this._locations !== undefined) { hasAnyValues = true; internalValueResult.locations = this._locations; } if (this._restrictionType !== undefined) { hasAnyValues = true; internalValueResult.restrictionType = this._restrictionType; } return hasAnyValues ? internalValueResult : undefined; } public set internalValue(value: CloudfrontDistributionRestrictionsGeoRestriction | undefined) { if (value === undefined) { this.isEmptyObject = false; this._locations = undefined; this._restrictionType = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._locations = value.locations; this._restrictionType = value.restrictionType; } } // locations - computed: true, optional: true, required: false private _locations?: string[]; public get locations() { return this.getListAttribute('locations'); } public set locations(value: string[]) { this._locations = value; } public resetLocations() { this._locations = undefined; } // Temporarily expose input value. Use with caution. public get locationsInput() { return this._locations; } // restriction_type - computed: false, optional: false, required: true private _restrictionType?: string; public get restrictionType() { return this.getStringAttribute('restriction_type'); } public set restrictionType(value: string) { this._restrictionType = value; } // Temporarily expose input value. Use with caution. public get restrictionTypeInput() { return this._restrictionType; } } export interface CloudfrontDistributionRestrictions { /** * geo_restriction block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudfront_distribution.html#geo_restriction CloudfrontDistribution#geo_restriction} */ readonly geoRestriction: CloudfrontDistributionRestrictionsGeoRestriction; } export function cloudfrontDistributionRestrictionsToTerraform(struct?: CloudfrontDistributionRestrictionsOutputReference | CloudfrontDistributionRestrictions): 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 { geo_restriction: cloudfrontDistributionRestrictionsGeoRestrictionToTerraform(struct!.geoRestriction), } } export class CloudfrontDistributionRestrictionsOutputReference 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(): CloudfrontDistributionRestrictions | undefined { let hasAnyValues = this.isEmptyObject; const internalValueResult: any = {}; if (this._geoRestriction?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.geoRestriction = this._geoRestriction?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } public set internalValue(value: CloudfrontDistributionRestrictions | undefined) { if (value === undefined) { this.isEmptyObject = false; this._geoRestriction.internalValue = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._geoRestriction.internalValue = value.geoRestriction; } } // geo_restriction - computed: false, optional: false, required: true private _geoRestriction = new CloudfrontDistributionRestrictionsGeoRestrictionOutputReference(this as any, "geo_restriction", true); public get geoRestriction() { return this._geoRestriction; } public putGeoRestriction(value: CloudfrontDistributionRestrictionsGeoRestriction) { this._geoRestriction.internalValue = value; } // Temporarily expose input value. Use with caution. public get geoRestrictionInput() { return this._geoRestriction.internalValue; } } export interface CloudfrontDistributionViewerCertificate { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudfront_distribution.html#acm_certificate_arn CloudfrontDistribution#acm_certificate_arn} */ readonly acmCertificateArn?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudfront_distribution.html#cloudfront_default_certificate CloudfrontDistribution#cloudfront_default_certificate} */ readonly cloudfrontDefaultCertificate?: boolean | cdktf.IResolvable; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudfront_distribution.html#iam_certificate_id CloudfrontDistribution#iam_certificate_id} */ readonly iamCertificateId?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudfront_distribution.html#minimum_protocol_version CloudfrontDistribution#minimum_protocol_version} */ readonly minimumProtocolVersion?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudfront_distribution.html#ssl_support_method CloudfrontDistribution#ssl_support_method} */ readonly sslSupportMethod?: string; } export function cloudfrontDistributionViewerCertificateToTerraform(struct?: CloudfrontDistributionViewerCertificateOutputReference | CloudfrontDistributionViewerCertificate): 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_certificate_arn: cdktf.stringToTerraform(struct!.acmCertificateArn), cloudfront_default_certificate: cdktf.booleanToTerraform(struct!.cloudfrontDefaultCertificate), iam_certificate_id: cdktf.stringToTerraform(struct!.iamCertificateId), minimum_protocol_version: cdktf.stringToTerraform(struct!.minimumProtocolVersion), ssl_support_method: cdktf.stringToTerraform(struct!.sslSupportMethod), } } export class CloudfrontDistributionViewerCertificateOutputReference 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(): CloudfrontDistributionViewerCertificate | undefined { let hasAnyValues = this.isEmptyObject; const internalValueResult: any = {}; if (this._acmCertificateArn !== undefined) { hasAnyValues = true; internalValueResult.acmCertificateArn = this._acmCertificateArn; } if (this._cloudfrontDefaultCertificate !== undefined) { hasAnyValues = true; internalValueResult.cloudfrontDefaultCertificate = this._cloudfrontDefaultCertificate; } if (this._iamCertificateId !== undefined) { hasAnyValues = true; internalValueResult.iamCertificateId = this._iamCertificateId; } if (this._minimumProtocolVersion !== undefined) { hasAnyValues = true; internalValueResult.minimumProtocolVersion = this._minimumProtocolVersion; } if (this._sslSupportMethod !== undefined) { hasAnyValues = true; internalValueResult.sslSupportMethod = this._sslSupportMethod; } return hasAnyValues ? internalValueResult : undefined; } public set internalValue(value: CloudfrontDistributionViewerCertificate | undefined) { if (value === undefined) { this.isEmptyObject = false; this._acmCertificateArn = undefined; this._cloudfrontDefaultCertificate = undefined; this._iamCertificateId = undefined; this._minimumProtocolVersion = undefined; this._sslSupportMethod = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._acmCertificateArn = value.acmCertificateArn; this._cloudfrontDefaultCertificate = value.cloudfrontDefaultCertificate; this._iamCertificateId = value.iamCertificateId; this._minimumProtocolVersion = value.minimumProtocolVersion; this._sslSupportMethod = value.sslSupportMethod; } } // acm_certificate_arn - computed: false, optional: true, required: false private _acmCertificateArn?: string; public get acmCertificateArn() { return this.getStringAttribute('acm_certificate_arn'); } public set acmCertificateArn(value: string) { this._acmCertificateArn = value; } public resetAcmCertificateArn() { this._acmCertificateArn = undefined; } // Temporarily expose input value. Use with caution. public get acmCertificateArnInput() { return this._acmCertificateArn; } // cloudfront_default_certificate - computed: false, optional: true, required: false private _cloudfrontDefaultCertificate?: boolean | cdktf.IResolvable; public get cloudfrontDefaultCertificate() { return this.getBooleanAttribute('cloudfront_default_certificate') as any; } public set cloudfrontDefaultCertificate(value: boolean | cdktf.IResolvable) { this._cloudfrontDefaultCertificate = value; } public resetCloudfrontDefaultCertificate() { this._cloudfrontDefaultCertificate = undefined; } // Temporarily expose input value. Use with caution. public get cloudfrontDefaultCertificateInput() { return this._cloudfrontDefaultCertificate; } // iam_certificate_id - computed: false, optional: true, required: false private _iamCertificateId?: string; public get iamCertificateId() { return this.getStringAttribute('iam_certificate_id'); } public set iamCertificateId(value: string) { this._iamCertificateId = value; } public resetIamCertificateId() { this._iamCertificateId = undefined; } // Temporarily expose input value. Use with caution. public get iamCertificateIdInput() { return this._iamCertificateId; } // minimum_protocol_version - computed: false, optional: true, required: false private _minimumProtocolVersion?: string; public get minimumProtocolVersion() { return this.getStringAttribute('minimum_protocol_version'); } public set minimumProtocolVersion(value: string) { this._minimumProtocolVersion = value; } public resetMinimumProtocolVersion() { this._minimumProtocolVersion = undefined; } // Temporarily expose input value. Use with caution. public get minimumProtocolVersionInput() { return this._minimumProtocolVersion; } // ssl_support_method - computed: false, optional: true, required: false private _sslSupportMethod?: string; public get sslSupportMethod() { return this.getStringAttribute('ssl_support_method'); } public set sslSupportMethod(value: string) { this._sslSupportMethod = value; } public resetSslSupportMethod() { this._sslSupportMethod = undefined; } // Temporarily expose input value. Use with caution. public get sslSupportMethodInput() { return this._sslSupportMethod; } } /** * Represents a {@link https://www.terraform.io/docs/providers/aws/r/cloudfront_distribution.html aws_cloudfront_distribution} */ export class CloudfrontDistribution extends cdktf.TerraformResource { // ================= // STATIC PROPERTIES // ================= public static readonly tfResourceType: string = "aws_cloudfront_distribution"; // =========== // INITIALIZER // =========== /** * Create a new {@link https://www.terraform.io/docs/providers/aws/r/cloudfront_distribution.html aws_cloudfront_distribution} 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 CloudfrontDistributionConfig */ public constructor(scope: Construct, id: string, config: CloudfrontDistributionConfig) { super(scope, id, { terraformResourceType: 'aws_cloudfront_distribution', terraformGeneratorMetadata: { providerName: 'aws' }, provider: config.provider, dependsOn: config.dependsOn, count: config.count, lifecycle: config.lifecycle }); this._aliases = config.aliases; this._comment = config.comment; this._defaultRootObject = config.defaultRootObject; this._enabled = config.enabled; this._httpVersion = config.httpVersion; this._isIpv6Enabled = config.isIpv6Enabled; this._priceClass = config.priceClass; this._retainOnDelete = config.retainOnDelete; this._tags = config.tags; this._tagsAll = config.tagsAll; this._waitForDeployment = config.waitForDeployment; this._webAclId = config.webAclId; this._customErrorResponse = config.customErrorResponse; this._defaultCacheBehavior.internalValue = config.defaultCacheBehavior; this._loggingConfig.internalValue = config.loggingConfig; this._orderedCacheBehavior = config.orderedCacheBehavior; this._origin = config.origin; this._originGroup = config.originGroup; this._restrictions.internalValue = config.restrictions; this._viewerCertificate.internalValue = config.viewerCertificate; } // ========== // ATTRIBUTES // ========== // aliases - computed: false, optional: true, required: false private _aliases?: string[]; public get aliases() { return this.getListAttribute('aliases'); } public set aliases(value: string[]) { this._aliases = value; } public resetAliases() { this._aliases = undefined; } // Temporarily expose input value. Use with caution. public get aliasesInput() { return this._aliases; } // arn - computed: true, optional: false, required: false public get arn() { return this.getStringAttribute('arn'); } // caller_reference - computed: true, optional: false, required: false public get callerReference() { return this.getStringAttribute('caller_reference'); } // comment - computed: false, optional: true, required: false private _comment?: string; public get comment() { return this.getStringAttribute('comment'); } public set comment(value: string) { this._comment = value; } public resetComment() { this._comment = undefined; } // Temporarily expose input value. Use with caution. public get commentInput() { return this._comment; } // default_root_object - computed: false, optional: true, required: false private _defaultRootObject?: string; public get defaultRootObject() { return this.getStringAttribute('default_root_object'); } public set defaultRootObject(value: string) { this._defaultRootObject = value; } public resetDefaultRootObject() { this._defaultRootObject = undefined; } // Temporarily expose input value. Use with caution. public get defaultRootObjectInput() { return this._defaultRootObject; } // domain_name - computed: true, optional: false, required: false public get domainName() { return this.getStringAttribute('domain_name'); } // enabled - computed: false, optional: false, required: true private _enabled?: boolean | cdktf.IResolvable; public get enabled() { return this.getBooleanAttribute('enabled') as any; } public set enabled(value: boolean | cdktf.IResolvable) { this._enabled = value; } // Temporarily expose input value. Use with caution. public get enabledInput() { return this._enabled; } // etag - computed: true, optional: false, required: false public get etag() { return this.getStringAttribute('etag'); } // hosted_zone_id - computed: true, optional: false, required: false public get hostedZoneId() { return this.getStringAttribute('hosted_zone_id'); } // http_version - computed: false, optional: true, required: false private _httpVersion?: string; public get httpVersion() { return this.getStringAttribute('http_version'); } public set httpVersion(value: string) { this._httpVersion = value; } public resetHttpVersion() { this._httpVersion = undefined; } // Temporarily expose input value. Use with caution. public get httpVersionInput() { return this._httpVersion; } // id - computed: true, optional: true, required: false public get id() { return this.getStringAttribute('id'); } // in_progress_validation_batches - computed: true, optional: false, required: false public get inProgressValidationBatches() { return this.getNumberAttribute('in_progress_validation_batches'); } // is_ipv6_enabled - computed: false, optional: true, required: false private _isIpv6Enabled?: boolean | cdktf.IResolvable; public get isIpv6Enabled() { return this.getBooleanAttribute('is_ipv6_enabled') as any; } public set isIpv6Enabled(value: boolean | cdktf.IResolvable) { this._isIpv6Enabled = value; } public resetIsIpv6Enabled() { this._isIpv6Enabled = undefined; } // Temporarily expose input value. Use with caution. public get isIpv6EnabledInput() { return this._isIpv6Enabled; } // last_modified_time - computed: true, optional: false, required: false public get lastModifiedTime() { return this.getStringAttribute('last_modified_time'); } // price_class - computed: false, optional: true, required: false private _priceClass?: string; public get priceClass() { return this.getStringAttribute('price_class'); } public set priceClass(value: string) { this._priceClass = value; } public resetPriceClass() { this._priceClass = undefined; } // Temporarily expose input value. Use with caution. public get priceClassInput() { return this._priceClass; } // retain_on_delete - computed: false, optional: true, required: false private _retainOnDelete?: boolean | cdktf.IResolvable; public get retainOnDelete() { return this.getBooleanAttribute('retain_on_delete') as any; } public set retainOnDelete(value: boolean | cdktf.IResolvable) { this._retainOnDelete = value; } public resetRetainOnDelete() { this._retainOnDelete = undefined; } // Temporarily expose input value. Use with caution. public get retainOnDeleteInput() { return this._retainOnDelete; } // status - computed: true, optional: false, required: false public get status() { return this.getStringAttribute('status'); } // 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; } // trusted_key_groups - computed: true, optional: false, required: false public trustedKeyGroups(index: string) { return new CloudfrontDistributionTrustedKeyGroups(this, 'trusted_key_groups', index); } // trusted_signers - computed: true, optional: false, required: false public trustedSigners(index: string) { return new CloudfrontDistributionTrustedSigners(this, 'trusted_signers', index); } // wait_for_deployment - computed: false, optional: true, required: false private _waitForDeployment?: boolean | cdktf.IResolvable; public get waitForDeployment() { return this.getBooleanAttribute('wait_for_deployment') as any; } public set waitForDeployment(value: boolean | cdktf.IResolvable) { this._waitForDeployment = value; } public resetWaitForDeployment() { this._waitForDeployment = undefined; } // Temporarily expose input value. Use with caution. public get waitForDeploymentInput() { return this._waitForDeployment; } // web_acl_id - computed: false, optional: true, required: false private _webAclId?: string; public get webAclId() { return this.getStringAttribute('web_acl_id'); } public set webAclId(value: string) { this._webAclId = value; } public resetWebAclId() { this._webAclId = undefined; } // Temporarily expose input value. Use with caution. public get webAclIdInput() { return this._webAclId; } // custom_error_response - computed: false, optional: true, required: false private _customErrorResponse?: CloudfrontDistributionCustomErrorResponse[]; public get customErrorResponse() { // Getting the computed value is not yet implemented return this.interpolationForAttribute('custom_error_response') as any; } public set customErrorResponse(value: CloudfrontDistributionCustomErrorResponse[]) { this._customErrorResponse = value; } public resetCustomErrorResponse() { this._customErrorResponse = undefined; } // Temporarily expose input value. Use with caution. public get customErrorResponseInput() { return this._customErrorResponse; } // default_cache_behavior - computed: false, optional: false, required: true private _defaultCacheBehavior = new CloudfrontDistributionDefaultCacheBehaviorOutputReference(this as any, "default_cache_behavior", true); public get defaultCacheBehavior() { return this._defaultCacheBehavior; } public putDefaultCacheBehavior(value: CloudfrontDistributionDefaultCacheBehavior) { this._defaultCacheBehavior.internalValue = value; } // Temporarily expose input value. Use with caution. public get defaultCacheBehaviorInput() { return this._defaultCacheBehavior.internalValue; } // logging_config - computed: false, optional: true, required: false private _loggingConfig = new CloudfrontDistributionLoggingConfigOutputReference(this as any, "logging_config", true); public get loggingConfig() { return this._loggingConfig; } public putLoggingConfig(value: CloudfrontDistributionLoggingConfig) { this._loggingConfig.internalValue = value; } public resetLoggingConfig() { this._loggingConfig.internalValue = undefined; } // Temporarily expose input value. Use with caution. public get loggingConfigInput() { return this._loggingConfig.internalValue; } // ordered_cache_behavior - computed: false, optional: true, required: false private _orderedCacheBehavior?: CloudfrontDistributionOrderedCacheBehavior[]; public get orderedCacheBehavior() { // Getting the computed value is not yet implemented return this.interpolationForAttribute('ordered_cache_behavior') as any; } public set orderedCacheBehavior(value: CloudfrontDistributionOrderedCacheBehavior[]) { this._orderedCacheBehavior = value; } public resetOrderedCacheBehavior() { this._orderedCacheBehavior = undefined; } // Temporarily expose input value. Use with caution. public get orderedCacheBehaviorInput() { return this._orderedCacheBehavior; } // origin - computed: false, optional: false, required: true private _origin?: CloudfrontDistributionOrigin[]; public get origin() { // Getting the computed value is not yet implemented return this.interpolationForAttribute('origin') as any; } public set origin(value: CloudfrontDistributionOrigin[]) { this._origin = value; } // Temporarily expose input value. Use with caution. public get originInput() { return this._origin; } // origin_group - computed: false, optional: true, required: false private _originGroup?: CloudfrontDistributionOriginGroup[]; public get originGroup() { // Getting the computed value is not yet implemented return this.interpolationForAttribute('origin_group') as any; } public set originGroup(value: CloudfrontDistributionOriginGroup[]) { this._originGroup = value; } public resetOriginGroup() { this._originGroup = undefined; } // Temporarily expose input value. Use with caution. public get originGroupInput() { return this._originGroup; } // restrictions - computed: false, optional: false, required: true private _restrictions = new CloudfrontDistributionRestrictionsOutputReference(this as any, "restrictions", true); public get restrictions() { return this._restrictions; } public putRestrictions(value: CloudfrontDistributionRestrictions) { this._restrictions.internalValue = value; } // Temporarily expose input value. Use with caution. public get restrictionsInput() { return this._restrictions.internalValue; } // viewer_certificate - computed: false, optional: false, required: true private _viewerCertificate = new CloudfrontDistributionViewerCertificateOutputReference(this as any, "viewer_certificate", true); public get viewerCertificate() { return this._viewerCertificate; } public putViewerCertificate(value: CloudfrontDistributionViewerCertificate) { this._viewerCertificate.internalValue = value; } // Temporarily expose input value. Use with caution. public get viewerCertificateInput() { return this._viewerCertificate.internalValue; } // ========= // SYNTHESIS // ========= protected synthesizeAttributes(): { [name: string]: any } { return { aliases: cdktf.listMapper(cdktf.stringToTerraform)(this._aliases), comment: cdktf.stringToTerraform(this._comment), default_root_object: cdktf.stringToTerraform(this._defaultRootObject), enabled: cdktf.booleanToTerraform(this._enabled), http_version: cdktf.stringToTerraform(this._httpVersion), is_ipv6_enabled: cdktf.booleanToTerraform(this._isIpv6Enabled), price_class: cdktf.stringToTerraform(this._priceClass), retain_on_delete: cdktf.booleanToTerraform(this._retainOnDelete), tags: cdktf.hashMapper(cdktf.anyToTerraform)(this._tags), tags_all: cdktf.hashMapper(cdktf.anyToTerraform)(this._tagsAll), wait_for_deployment: cdktf.booleanToTerraform(this._waitForDeployment), web_acl_id: cdktf.stringToTerraform(this._webAclId), custom_error_response: cdktf.listMapper(cloudfrontDistributionCustomErrorResponseToTerraform)(this._customErrorResponse), default_cache_behavior: cloudfrontDistributionDefaultCacheBehaviorToTerraform(this._defaultCacheBehavior.internalValue), logging_config: cloudfrontDistributionLoggingConfigToTerraform(this._loggingConfig.internalValue), ordered_cache_behavior: cdktf.listMapper(cloudfrontDistributionOrderedCacheBehaviorToTerraform)(this._orderedCacheBehavior), origin: cdktf.listMapper(cloudfrontDistributionOriginToTerraform)(this._origin), origin_group: cdktf.listMapper(cloudfrontDistributionOriginGroupToTerraform)(this._originGroup), restrictions: cloudfrontDistributionRestrictionsToTerraform(this._restrictions.internalValue), viewer_certificate: cloudfrontDistributionViewerCertificateToTerraform(this._viewerCertificate.internalValue), }; } }