@cdktf/provider-aws
Version:
Prebuilt aws Provider for Terraform CDK (cdktf)
936 lines • 787 kB
JavaScript
"use strict";
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20;
Object.defineProperty(exports, "__esModule", { value: true });
exports.CloudfrontDistribution = exports.CloudfrontDistributionViewerCertificateOutputReference = exports.CloudfrontDistributionRestrictionsOutputReference = exports.CloudfrontDistributionRestrictionsGeoRestrictionOutputReference = exports.CloudfrontDistributionOriginGroupList = exports.CloudfrontDistributionOriginGroupOutputReference = exports.CloudfrontDistributionOriginGroupMemberList = exports.CloudfrontDistributionOriginGroupMemberOutputReference = exports.CloudfrontDistributionOriginGroupFailoverCriteriaOutputReference = exports.CloudfrontDistributionOriginList = exports.CloudfrontDistributionOriginOutputReference = exports.CloudfrontDistributionOriginVpcOriginConfigOutputReference = exports.CloudfrontDistributionOriginS3OriginConfigOutputReference = exports.CloudfrontDistributionOriginOriginShieldOutputReference = exports.CloudfrontDistributionOriginCustomOriginConfigOutputReference = exports.CloudfrontDistributionOriginCustomHeaderList = exports.CloudfrontDistributionOriginCustomHeaderOutputReference = exports.CloudfrontDistributionOrderedCacheBehaviorList = exports.CloudfrontDistributionOrderedCacheBehaviorOutputReference = exports.CloudfrontDistributionOrderedCacheBehaviorLambdaFunctionAssociationList = exports.CloudfrontDistributionOrderedCacheBehaviorLambdaFunctionAssociationOutputReference = exports.CloudfrontDistributionOrderedCacheBehaviorGrpcConfigOutputReference = exports.CloudfrontDistributionOrderedCacheBehaviorFunctionAssociationList = exports.CloudfrontDistributionOrderedCacheBehaviorFunctionAssociationOutputReference = exports.CloudfrontDistributionOrderedCacheBehaviorForwardedValuesOutputReference = exports.CloudfrontDistributionOrderedCacheBehaviorForwardedValuesCookiesOutputReference = exports.CloudfrontDistributionLoggingConfigOutputReference = exports.CloudfrontDistributionDefaultCacheBehaviorOutputReference = exports.CloudfrontDistributionDefaultCacheBehaviorLambdaFunctionAssociationList = exports.CloudfrontDistributionDefaultCacheBehaviorLambdaFunctionAssociationOutputReference = exports.CloudfrontDistributionDefaultCacheBehaviorGrpcConfigOutputReference = exports.CloudfrontDistributionDefaultCacheBehaviorFunctionAssociationList = exports.CloudfrontDistributionDefaultCacheBehaviorFunctionAssociationOutputReference = exports.CloudfrontDistributionDefaultCacheBehaviorForwardedValuesOutputReference = exports.CloudfrontDistributionDefaultCacheBehaviorForwardedValuesCookiesOutputReference = exports.CloudfrontDistributionCustomErrorResponseList = exports.CloudfrontDistributionCustomErrorResponseOutputReference = exports.CloudfrontDistributionTrustedSignersList = exports.CloudfrontDistributionTrustedSignersOutputReference = exports.CloudfrontDistributionTrustedSignersItemsList = exports.CloudfrontDistributionTrustedSignersItemsOutputReference = exports.CloudfrontDistributionTrustedKeyGroupsList = exports.CloudfrontDistributionTrustedKeyGroupsOutputReference = exports.CloudfrontDistributionTrustedKeyGroupsItemsList = exports.CloudfrontDistributionTrustedKeyGroupsItemsOutputReference = void 0;
exports.cloudfrontDistributionTrustedKeyGroupsItemsToTerraform = cloudfrontDistributionTrustedKeyGroupsItemsToTerraform;
exports.cloudfrontDistributionTrustedKeyGroupsItemsToHclTerraform = cloudfrontDistributionTrustedKeyGroupsItemsToHclTerraform;
exports.cloudfrontDistributionTrustedKeyGroupsToTerraform = cloudfrontDistributionTrustedKeyGroupsToTerraform;
exports.cloudfrontDistributionTrustedKeyGroupsToHclTerraform = cloudfrontDistributionTrustedKeyGroupsToHclTerraform;
exports.cloudfrontDistributionTrustedSignersItemsToTerraform = cloudfrontDistributionTrustedSignersItemsToTerraform;
exports.cloudfrontDistributionTrustedSignersItemsToHclTerraform = cloudfrontDistributionTrustedSignersItemsToHclTerraform;
exports.cloudfrontDistributionTrustedSignersToTerraform = cloudfrontDistributionTrustedSignersToTerraform;
exports.cloudfrontDistributionTrustedSignersToHclTerraform = cloudfrontDistributionTrustedSignersToHclTerraform;
exports.cloudfrontDistributionCustomErrorResponseToTerraform = cloudfrontDistributionCustomErrorResponseToTerraform;
exports.cloudfrontDistributionCustomErrorResponseToHclTerraform = cloudfrontDistributionCustomErrorResponseToHclTerraform;
exports.cloudfrontDistributionDefaultCacheBehaviorForwardedValuesCookiesToTerraform = cloudfrontDistributionDefaultCacheBehaviorForwardedValuesCookiesToTerraform;
exports.cloudfrontDistributionDefaultCacheBehaviorForwardedValuesCookiesToHclTerraform = cloudfrontDistributionDefaultCacheBehaviorForwardedValuesCookiesToHclTerraform;
exports.cloudfrontDistributionDefaultCacheBehaviorForwardedValuesToTerraform = cloudfrontDistributionDefaultCacheBehaviorForwardedValuesToTerraform;
exports.cloudfrontDistributionDefaultCacheBehaviorForwardedValuesToHclTerraform = cloudfrontDistributionDefaultCacheBehaviorForwardedValuesToHclTerraform;
exports.cloudfrontDistributionDefaultCacheBehaviorFunctionAssociationToTerraform = cloudfrontDistributionDefaultCacheBehaviorFunctionAssociationToTerraform;
exports.cloudfrontDistributionDefaultCacheBehaviorFunctionAssociationToHclTerraform = cloudfrontDistributionDefaultCacheBehaviorFunctionAssociationToHclTerraform;
exports.cloudfrontDistributionDefaultCacheBehaviorGrpcConfigToTerraform = cloudfrontDistributionDefaultCacheBehaviorGrpcConfigToTerraform;
exports.cloudfrontDistributionDefaultCacheBehaviorGrpcConfigToHclTerraform = cloudfrontDistributionDefaultCacheBehaviorGrpcConfigToHclTerraform;
exports.cloudfrontDistributionDefaultCacheBehaviorLambdaFunctionAssociationToTerraform = cloudfrontDistributionDefaultCacheBehaviorLambdaFunctionAssociationToTerraform;
exports.cloudfrontDistributionDefaultCacheBehaviorLambdaFunctionAssociationToHclTerraform = cloudfrontDistributionDefaultCacheBehaviorLambdaFunctionAssociationToHclTerraform;
exports.cloudfrontDistributionDefaultCacheBehaviorToTerraform = cloudfrontDistributionDefaultCacheBehaviorToTerraform;
exports.cloudfrontDistributionDefaultCacheBehaviorToHclTerraform = cloudfrontDistributionDefaultCacheBehaviorToHclTerraform;
exports.cloudfrontDistributionLoggingConfigToTerraform = cloudfrontDistributionLoggingConfigToTerraform;
exports.cloudfrontDistributionLoggingConfigToHclTerraform = cloudfrontDistributionLoggingConfigToHclTerraform;
exports.cloudfrontDistributionOrderedCacheBehaviorForwardedValuesCookiesToTerraform = cloudfrontDistributionOrderedCacheBehaviorForwardedValuesCookiesToTerraform;
exports.cloudfrontDistributionOrderedCacheBehaviorForwardedValuesCookiesToHclTerraform = cloudfrontDistributionOrderedCacheBehaviorForwardedValuesCookiesToHclTerraform;
exports.cloudfrontDistributionOrderedCacheBehaviorForwardedValuesToTerraform = cloudfrontDistributionOrderedCacheBehaviorForwardedValuesToTerraform;
exports.cloudfrontDistributionOrderedCacheBehaviorForwardedValuesToHclTerraform = cloudfrontDistributionOrderedCacheBehaviorForwardedValuesToHclTerraform;
exports.cloudfrontDistributionOrderedCacheBehaviorFunctionAssociationToTerraform = cloudfrontDistributionOrderedCacheBehaviorFunctionAssociationToTerraform;
exports.cloudfrontDistributionOrderedCacheBehaviorFunctionAssociationToHclTerraform = cloudfrontDistributionOrderedCacheBehaviorFunctionAssociationToHclTerraform;
exports.cloudfrontDistributionOrderedCacheBehaviorGrpcConfigToTerraform = cloudfrontDistributionOrderedCacheBehaviorGrpcConfigToTerraform;
exports.cloudfrontDistributionOrderedCacheBehaviorGrpcConfigToHclTerraform = cloudfrontDistributionOrderedCacheBehaviorGrpcConfigToHclTerraform;
exports.cloudfrontDistributionOrderedCacheBehaviorLambdaFunctionAssociationToTerraform = cloudfrontDistributionOrderedCacheBehaviorLambdaFunctionAssociationToTerraform;
exports.cloudfrontDistributionOrderedCacheBehaviorLambdaFunctionAssociationToHclTerraform = cloudfrontDistributionOrderedCacheBehaviorLambdaFunctionAssociationToHclTerraform;
exports.cloudfrontDistributionOrderedCacheBehaviorToTerraform = cloudfrontDistributionOrderedCacheBehaviorToTerraform;
exports.cloudfrontDistributionOrderedCacheBehaviorToHclTerraform = cloudfrontDistributionOrderedCacheBehaviorToHclTerraform;
exports.cloudfrontDistributionOriginCustomHeaderToTerraform = cloudfrontDistributionOriginCustomHeaderToTerraform;
exports.cloudfrontDistributionOriginCustomHeaderToHclTerraform = cloudfrontDistributionOriginCustomHeaderToHclTerraform;
exports.cloudfrontDistributionOriginCustomOriginConfigToTerraform = cloudfrontDistributionOriginCustomOriginConfigToTerraform;
exports.cloudfrontDistributionOriginCustomOriginConfigToHclTerraform = cloudfrontDistributionOriginCustomOriginConfigToHclTerraform;
exports.cloudfrontDistributionOriginOriginShieldToTerraform = cloudfrontDistributionOriginOriginShieldToTerraform;
exports.cloudfrontDistributionOriginOriginShieldToHclTerraform = cloudfrontDistributionOriginOriginShieldToHclTerraform;
exports.cloudfrontDistributionOriginS3OriginConfigToTerraform = cloudfrontDistributionOriginS3OriginConfigToTerraform;
exports.cloudfrontDistributionOriginS3OriginConfigToHclTerraform = cloudfrontDistributionOriginS3OriginConfigToHclTerraform;
exports.cloudfrontDistributionOriginVpcOriginConfigToTerraform = cloudfrontDistributionOriginVpcOriginConfigToTerraform;
exports.cloudfrontDistributionOriginVpcOriginConfigToHclTerraform = cloudfrontDistributionOriginVpcOriginConfigToHclTerraform;
exports.cloudfrontDistributionOriginToTerraform = cloudfrontDistributionOriginToTerraform;
exports.cloudfrontDistributionOriginToHclTerraform = cloudfrontDistributionOriginToHclTerraform;
exports.cloudfrontDistributionOriginGroupFailoverCriteriaToTerraform = cloudfrontDistributionOriginGroupFailoverCriteriaToTerraform;
exports.cloudfrontDistributionOriginGroupFailoverCriteriaToHclTerraform = cloudfrontDistributionOriginGroupFailoverCriteriaToHclTerraform;
exports.cloudfrontDistributionOriginGroupMemberToTerraform = cloudfrontDistributionOriginGroupMemberToTerraform;
exports.cloudfrontDistributionOriginGroupMemberToHclTerraform = cloudfrontDistributionOriginGroupMemberToHclTerraform;
exports.cloudfrontDistributionOriginGroupToTerraform = cloudfrontDistributionOriginGroupToTerraform;
exports.cloudfrontDistributionOriginGroupToHclTerraform = cloudfrontDistributionOriginGroupToHclTerraform;
exports.cloudfrontDistributionRestrictionsGeoRestrictionToTerraform = cloudfrontDistributionRestrictionsGeoRestrictionToTerraform;
exports.cloudfrontDistributionRestrictionsGeoRestrictionToHclTerraform = cloudfrontDistributionRestrictionsGeoRestrictionToHclTerraform;
exports.cloudfrontDistributionRestrictionsToTerraform = cloudfrontDistributionRestrictionsToTerraform;
exports.cloudfrontDistributionRestrictionsToHclTerraform = cloudfrontDistributionRestrictionsToHclTerraform;
exports.cloudfrontDistributionViewerCertificateToTerraform = cloudfrontDistributionViewerCertificateToTerraform;
exports.cloudfrontDistributionViewerCertificateToHclTerraform = cloudfrontDistributionViewerCertificateToHclTerraform;
const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
const cdktf = require("cdktf");
function cloudfrontDistributionTrustedKeyGroupsItemsToTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(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 {};
}
function cloudfrontDistributionTrustedKeyGroupsItemsToHclTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(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");
}
const attrs = {};
return attrs;
}
class CloudfrontDistributionTrustedKeyGroupsItemsOutputReference extends cdktf.ComplexObject {
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
* @param complexObjectIndex the index of this item in the list
* @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
*/
constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) {
super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex);
this.isEmptyObject = false;
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
}
}
// key_group_id - computed: true, optional: false, required: false
get keyGroupId() {
return this.getStringAttribute('key_group_id');
}
// key_pair_ids - computed: true, optional: false, required: false
get keyPairIds() {
return cdktf.Fn.tolist(this.getListAttribute('key_pair_ids'));
}
}
exports.CloudfrontDistributionTrustedKeyGroupsItemsOutputReference = CloudfrontDistributionTrustedKeyGroupsItemsOutputReference;
_a = JSII_RTTI_SYMBOL_1;
CloudfrontDistributionTrustedKeyGroupsItemsOutputReference[_a] = { fqn: "@cdktf/provider-aws.cloudfrontDistribution.CloudfrontDistributionTrustedKeyGroupsItemsOutputReference", version: "21.22.1" };
class CloudfrontDistributionTrustedKeyGroupsItemsList extends cdktf.ComplexList {
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
*/
constructor(terraformResource, terraformAttribute, wrapsSet) {
super(terraformResource, terraformAttribute, wrapsSet);
this.terraformResource = terraformResource;
this.terraformAttribute = terraformAttribute;
this.wrapsSet = wrapsSet;
}
/**
* @param index the index of the item to return
*/
get(index) {
return new CloudfrontDistributionTrustedKeyGroupsItemsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.CloudfrontDistributionTrustedKeyGroupsItemsList = CloudfrontDistributionTrustedKeyGroupsItemsList;
_b = JSII_RTTI_SYMBOL_1;
CloudfrontDistributionTrustedKeyGroupsItemsList[_b] = { fqn: "@cdktf/provider-aws.cloudfrontDistribution.CloudfrontDistributionTrustedKeyGroupsItemsList", version: "21.22.1" };
function cloudfrontDistributionTrustedKeyGroupsToTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(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 {};
}
function cloudfrontDistributionTrustedKeyGroupsToHclTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(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");
}
const attrs = {};
return attrs;
}
class CloudfrontDistributionTrustedKeyGroupsOutputReference extends cdktf.ComplexObject {
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
* @param complexObjectIndex the index of this item in the list
* @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
*/
constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) {
super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex);
this.isEmptyObject = false;
// items - computed: true, optional: false, required: false
this._items = new CloudfrontDistributionTrustedKeyGroupsItemsList(this, "items", false);
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
}
}
// enabled - computed: true, optional: false, required: false
get enabled() {
return this.getBooleanAttribute('enabled');
}
get items() {
return this._items;
}
}
exports.CloudfrontDistributionTrustedKeyGroupsOutputReference = CloudfrontDistributionTrustedKeyGroupsOutputReference;
_c = JSII_RTTI_SYMBOL_1;
CloudfrontDistributionTrustedKeyGroupsOutputReference[_c] = { fqn: "@cdktf/provider-aws.cloudfrontDistribution.CloudfrontDistributionTrustedKeyGroupsOutputReference", version: "21.22.1" };
class CloudfrontDistributionTrustedKeyGroupsList extends cdktf.ComplexList {
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
*/
constructor(terraformResource, terraformAttribute, wrapsSet) {
super(terraformResource, terraformAttribute, wrapsSet);
this.terraformResource = terraformResource;
this.terraformAttribute = terraformAttribute;
this.wrapsSet = wrapsSet;
}
/**
* @param index the index of the item to return
*/
get(index) {
return new CloudfrontDistributionTrustedKeyGroupsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.CloudfrontDistributionTrustedKeyGroupsList = CloudfrontDistributionTrustedKeyGroupsList;
_d = JSII_RTTI_SYMBOL_1;
CloudfrontDistributionTrustedKeyGroupsList[_d] = { fqn: "@cdktf/provider-aws.cloudfrontDistribution.CloudfrontDistributionTrustedKeyGroupsList", version: "21.22.1" };
function cloudfrontDistributionTrustedSignersItemsToTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(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 {};
}
function cloudfrontDistributionTrustedSignersItemsToHclTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(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");
}
const attrs = {};
return attrs;
}
class CloudfrontDistributionTrustedSignersItemsOutputReference extends cdktf.ComplexObject {
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
* @param complexObjectIndex the index of this item in the list
* @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
*/
constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) {
super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex);
this.isEmptyObject = false;
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
}
}
// aws_account_number - computed: true, optional: false, required: false
get awsAccountNumber() {
return this.getStringAttribute('aws_account_number');
}
// key_pair_ids - computed: true, optional: false, required: false
get keyPairIds() {
return cdktf.Fn.tolist(this.getListAttribute('key_pair_ids'));
}
}
exports.CloudfrontDistributionTrustedSignersItemsOutputReference = CloudfrontDistributionTrustedSignersItemsOutputReference;
_e = JSII_RTTI_SYMBOL_1;
CloudfrontDistributionTrustedSignersItemsOutputReference[_e] = { fqn: "@cdktf/provider-aws.cloudfrontDistribution.CloudfrontDistributionTrustedSignersItemsOutputReference", version: "21.22.1" };
class CloudfrontDistributionTrustedSignersItemsList extends cdktf.ComplexList {
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
*/
constructor(terraformResource, terraformAttribute, wrapsSet) {
super(terraformResource, terraformAttribute, wrapsSet);
this.terraformResource = terraformResource;
this.terraformAttribute = terraformAttribute;
this.wrapsSet = wrapsSet;
}
/**
* @param index the index of the item to return
*/
get(index) {
return new CloudfrontDistributionTrustedSignersItemsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.CloudfrontDistributionTrustedSignersItemsList = CloudfrontDistributionTrustedSignersItemsList;
_f = JSII_RTTI_SYMBOL_1;
CloudfrontDistributionTrustedSignersItemsList[_f] = { fqn: "@cdktf/provider-aws.cloudfrontDistribution.CloudfrontDistributionTrustedSignersItemsList", version: "21.22.1" };
function cloudfrontDistributionTrustedSignersToTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(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 {};
}
function cloudfrontDistributionTrustedSignersToHclTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(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");
}
const attrs = {};
return attrs;
}
class CloudfrontDistributionTrustedSignersOutputReference extends cdktf.ComplexObject {
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
* @param complexObjectIndex the index of this item in the list
* @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
*/
constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) {
super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex);
this.isEmptyObject = false;
// items - computed: true, optional: false, required: false
this._items = new CloudfrontDistributionTrustedSignersItemsList(this, "items", false);
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
}
}
// enabled - computed: true, optional: false, required: false
get enabled() {
return this.getBooleanAttribute('enabled');
}
get items() {
return this._items;
}
}
exports.CloudfrontDistributionTrustedSignersOutputReference = CloudfrontDistributionTrustedSignersOutputReference;
_g = JSII_RTTI_SYMBOL_1;
CloudfrontDistributionTrustedSignersOutputReference[_g] = { fqn: "@cdktf/provider-aws.cloudfrontDistribution.CloudfrontDistributionTrustedSignersOutputReference", version: "21.22.1" };
class CloudfrontDistributionTrustedSignersList extends cdktf.ComplexList {
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
*/
constructor(terraformResource, terraformAttribute, wrapsSet) {
super(terraformResource, terraformAttribute, wrapsSet);
this.terraformResource = terraformResource;
this.terraformAttribute = terraformAttribute;
this.wrapsSet = wrapsSet;
}
/**
* @param index the index of the item to return
*/
get(index) {
return new CloudfrontDistributionTrustedSignersOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.CloudfrontDistributionTrustedSignersList = CloudfrontDistributionTrustedSignersList;
_h = JSII_RTTI_SYMBOL_1;
CloudfrontDistributionTrustedSignersList[_h] = { fqn: "@cdktf/provider-aws.cloudfrontDistribution.CloudfrontDistributionTrustedSignersList", version: "21.22.1" };
function cloudfrontDistributionCustomErrorResponseToTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(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),
};
}
function cloudfrontDistributionCustomErrorResponseToHclTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(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");
}
const attrs = {
error_caching_min_ttl: {
value: cdktf.numberToHclTerraform(struct.errorCachingMinTtl),
isBlock: false,
type: "simple",
storageClassType: "number",
},
error_code: {
value: cdktf.numberToHclTerraform(struct.errorCode),
isBlock: false,
type: "simple",
storageClassType: "number",
},
response_code: {
value: cdktf.numberToHclTerraform(struct.responseCode),
isBlock: false,
type: "simple",
storageClassType: "number",
},
response_page_path: {
value: cdktf.stringToHclTerraform(struct.responsePagePath),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class CloudfrontDistributionCustomErrorResponseOutputReference extends cdktf.ComplexObject {
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
* @param complexObjectIndex the index of this item in the list
* @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
*/
constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) {
super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex);
this.isEmptyObject = false;
}
get internalValue() {
if (this.resolvableValue) {
return this.resolvableValue;
}
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._errorCachingMinTtl !== undefined) {
hasAnyValues = true;
internalValueResult.errorCachingMinTtl = this._errorCachingMinTtl;
}
if (this._errorCode !== undefined) {
hasAnyValues = true;
internalValueResult.errorCode = this._errorCode;
}
if (this._responseCode !== undefined) {
hasAnyValues = true;
internalValueResult.responseCode = this._responseCode;
}
if (this._responsePagePath !== undefined) {
hasAnyValues = true;
internalValueResult.responsePagePath = this._responsePagePath;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._errorCachingMinTtl = undefined;
this._errorCode = undefined;
this._responseCode = undefined;
this._responsePagePath = undefined;
}
else if (cdktf.Tokenization.isResolvable(value)) {
this.isEmptyObject = false;
this.resolvableValue = value;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this.resolvableValue = undefined;
this._errorCachingMinTtl = value.errorCachingMinTtl;
this._errorCode = value.errorCode;
this._responseCode = value.responseCode;
this._responsePagePath = value.responsePagePath;
}
}
get errorCachingMinTtl() {
return this.getNumberAttribute('error_caching_min_ttl');
}
set errorCachingMinTtl(value) {
this._errorCachingMinTtl = value;
}
resetErrorCachingMinTtl() {
this._errorCachingMinTtl = undefined;
}
// Temporarily expose input value. Use with caution.
get errorCachingMinTtlInput() {
return this._errorCachingMinTtl;
}
get errorCode() {
return this.getNumberAttribute('error_code');
}
set errorCode(value) {
this._errorCode = value;
}
// Temporarily expose input value. Use with caution.
get errorCodeInput() {
return this._errorCode;
}
get responseCode() {
return this.getNumberAttribute('response_code');
}
set responseCode(value) {
this._responseCode = value;
}
resetResponseCode() {
this._responseCode = undefined;
}
// Temporarily expose input value. Use with caution.
get responseCodeInput() {
return this._responseCode;
}
get responsePagePath() {
return this.getStringAttribute('response_page_path');
}
set responsePagePath(value) {
this._responsePagePath = value;
}
resetResponsePagePath() {
this._responsePagePath = undefined;
}
// Temporarily expose input value. Use with caution.
get responsePagePathInput() {
return this._responsePagePath;
}
}
exports.CloudfrontDistributionCustomErrorResponseOutputReference = CloudfrontDistributionCustomErrorResponseOutputReference;
_j = JSII_RTTI_SYMBOL_1;
CloudfrontDistributionCustomErrorResponseOutputReference[_j] = { fqn: "@cdktf/provider-aws.cloudfrontDistribution.CloudfrontDistributionCustomErrorResponseOutputReference", version: "21.22.1" };
class CloudfrontDistributionCustomErrorResponseList extends cdktf.ComplexList {
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
*/
constructor(terraformResource, terraformAttribute, wrapsSet) {
super(terraformResource, terraformAttribute, wrapsSet);
this.terraformResource = terraformResource;
this.terraformAttribute = terraformAttribute;
this.wrapsSet = wrapsSet;
}
/**
* @param index the index of the item to return
*/
get(index) {
return new CloudfrontDistributionCustomErrorResponseOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.CloudfrontDistributionCustomErrorResponseList = CloudfrontDistributionCustomErrorResponseList;
_k = JSII_RTTI_SYMBOL_1;
CloudfrontDistributionCustomErrorResponseList[_k] = { fqn: "@cdktf/provider-aws.cloudfrontDistribution.CloudfrontDistributionCustomErrorResponseList", version: "21.22.1" };
function cloudfrontDistributionDefaultCacheBehaviorForwardedValuesCookiesToTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(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, false)(struct.whitelistedNames),
};
}
function cloudfrontDistributionDefaultCacheBehaviorForwardedValuesCookiesToHclTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(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");
}
const attrs = {
forward: {
value: cdktf.stringToHclTerraform(struct.forward),
isBlock: false,
type: "simple",
storageClassType: "string",
},
whitelisted_names: {
value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.whitelistedNames),
isBlock: false,
type: "set",
storageClassType: "stringList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class CloudfrontDistributionDefaultCacheBehaviorForwardedValuesCookiesOutputReference extends cdktf.ComplexObject {
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
*/
constructor(terraformResource, terraformAttribute) {
super(terraformResource, terraformAttribute, false, 0);
this.isEmptyObject = false;
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._forward !== undefined) {
hasAnyValues = true;
internalValueResult.forward = this._forward;
}
if (this._whitelistedNames !== undefined) {
hasAnyValues = true;
internalValueResult.whitelistedNames = this._whitelistedNames;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
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;
}
}
get forward() {
return this.getStringAttribute('forward');
}
set forward(value) {
this._forward = value;
}
// Temporarily expose input value. Use with caution.
get forwardInput() {
return this._forward;
}
get whitelistedNames() {
return cdktf.Fn.tolist(this.getListAttribute('whitelisted_names'));
}
set whitelistedNames(value) {
this._whitelistedNames = value;
}
resetWhitelistedNames() {
this._whitelistedNames = undefined;
}
// Temporarily expose input value. Use with caution.
get whitelistedNamesInput() {
return this._whitelistedNames;
}
}
exports.CloudfrontDistributionDefaultCacheBehaviorForwardedValuesCookiesOutputReference = CloudfrontDistributionDefaultCacheBehaviorForwardedValuesCookiesOutputReference;
_l = JSII_RTTI_SYMBOL_1;
CloudfrontDistributionDefaultCacheBehaviorForwardedValuesCookiesOutputReference[_l] = { fqn: "@cdktf/provider-aws.cloudfrontDistribution.CloudfrontDistributionDefaultCacheBehaviorForwardedValuesCookiesOutputReference", version: "21.22.1" };
function cloudfrontDistributionDefaultCacheBehaviorForwardedValuesToTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(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, false)(struct.headers),
query_string: cdktf.booleanToTerraform(struct.queryString),
query_string_cache_keys: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.queryStringCacheKeys),
cookies: cloudfrontDistributionDefaultCacheBehaviorForwardedValuesCookiesToTerraform(struct.cookies),
};
}
function cloudfrontDistributionDefaultCacheBehaviorForwardedValuesToHclTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(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");
}
const attrs = {
headers: {
value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.headers),
isBlock: false,
type: "set",
storageClassType: "stringList",
},
query_string: {
value: cdktf.booleanToHclTerraform(struct.queryString),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
query_string_cache_keys: {
value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.queryStringCacheKeys),
isBlock: false,
type: "list",
storageClassType: "stringList",
},
cookies: {
value: cloudfrontDistributionDefaultCacheBehaviorForwardedValuesCookiesToHclTerraform(struct.cookies),
isBlock: true,
type: "list",
storageClassType: "CloudfrontDistributionDefaultCacheBehaviorForwardedValuesCookiesList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class CloudfrontDistributionDefaultCacheBehaviorForwardedValuesOutputReference extends cdktf.ComplexObject {
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
*/
constructor(terraformResource, terraformAttribute) {
super(terraformResource, terraformAttribute, false, 0);
this.isEmptyObject = false;
// cookies - computed: false, optional: false, required: true
this._cookies = new CloudfrontDistributionDefaultCacheBehaviorForwardedValuesCookiesOutputReference(this, "cookies");
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
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;
}
set internalValue(value) {
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;
}
}
get headers() {
return cdktf.Fn.tolist(this.getListAttribute('headers'));
}
set headers(value) {
this._headers = value;
}
resetHeaders() {
this._headers = undefined;
}
// Temporarily expose input value. Use with caution.
get headersInput() {
return this._headers;
}
get queryString() {
return this.getBooleanAttribute('query_string');
}
set queryString(value) {
this._queryString = value;
}
// Temporarily expose input value. Use with caution.
get queryStringInput() {
return this._queryString;
}
get queryStringCacheKeys() {
return this.getListAttribute('query_string_cache_keys');
}
set queryStringCacheKeys(value) {
this._queryStringCacheKeys = value;
}
resetQueryStringCacheKeys() {
this._queryStringCacheKeys = undefined;
}
// Temporarily expose input value. Use with caution.
get queryStringCacheKeysInput() {
return this._queryStringCacheKeys;
}
get cookies() {
return this._cookies;
}
putCookies(value) {
this._cookies.internalValue = value;
}
// Temporarily expose input value. Use with caution.
get cookiesInput() {
return this._cookies.internalValue;
}
}
exports.CloudfrontDistributionDefaultCacheBehaviorForwardedValuesOutputReference = CloudfrontDistributionDefaultCacheBehaviorForwardedValuesOutputReference;
_m = JSII_RTTI_SYMBOL_1;
CloudfrontDistributionDefaultCacheBehaviorForwardedValuesOutputReference[_m] = { fqn: "@cdktf/provider-aws.cloudfrontDistribution.CloudfrontDistributionDefaultCacheBehaviorForwardedValuesOutputReference", version: "21.22.1" };
function cloudfrontDistributionDefaultCacheBehaviorFunctionAssociationToTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(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),
};
}
function cloudfrontDistributionDefaultCacheBehaviorFunctionAssociationToHclTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(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");
}
const attrs = {
event_type: {
value: cdktf.stringToHclTerraform(struct.eventType),
isBlock: false,
type: "simple",
storageClassType: "string",
},
function_arn: {
value: cdktf.stringToHclTerraform(struct.functionArn),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class CloudfrontDistributionDefaultCacheBehaviorFunctionAssociationOutputReference extends cdktf.ComplexObject {
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
* @param complexObjectIndex the index of this item in the list
* @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
*/
constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) {
super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex);
this.isEmptyObject = false;
}
get internalValue() {
if (this.resolvableValue) {
return this.resolvableValue;
}
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._eventType !== undefined) {
hasAnyValues = true;
internalValueResult.eventType = this._eventType;
}
if (this._functionArn !== undefined) {
hasAnyValues = true;
internalValueResult.functionArn = this._functionArn;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._eventType = undefined;
this._functionArn = undefined;
}
else if (cdktf.Tokenization.isResolvable(value)) {
this.isEmptyObject = false;
this.resolvableValue = value;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this.resolvableValue = undefined;
this._eventType = value.eventType;
this._functionArn = value.functionArn;
}
}
get eventType() {
return this.getStringAttribute('event_type');
}
set eventType(value) {
this._eventType = value;
}
// Temporarily expose input value. Use with caution.
get eventTypeInput() {
return this._eventType;
}
get functionArn() {
return this.getStringAttribute('function_arn');
}
set functionArn(value) {
this._functionArn = value;
}
// Temporarily expose input value. Use with caution.
get functionArnInput() {
return this._functionArn;
}
}
exports.CloudfrontDistributionDefaultCacheBehaviorFunctionAssociationOutputReference = CloudfrontDistributionDefaultCacheBehaviorFunctionAssociationOutputReference;
_o = JSII_RTTI_SYMBOL_1;
CloudfrontDistributionDefaultCacheBehaviorFunctionAssociationOutputReference[_o] = { fqn: "@cdktf/provider-aws.cloudfrontDistribution.CloudfrontDistributionDefaultCacheBehaviorFunctionAssociationOutputReference", version: "21.22.1" };
class CloudfrontDistributionDefaultCacheBehaviorFunctionAssociationList extends cdktf.ComplexList {
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
*/
constructor(terraformResource, terraformAttribute, wrapsSet) {
super(terraformResource, terraformAttribute, wrapsSet);
this.terraformResource = terraformResource;
this.terraformAttribute = terraformAttribute;
this.wrapsSet = wrapsSet;
}
/**
* @param index the index of the item to return
*/
get(index) {
return new CloudfrontDistributionDefaultCacheBehaviorFunctionAssociationOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.CloudfrontDistributionDefaultCacheBehaviorFunctionAssociationList = CloudfrontDistributionDefaultCacheBehaviorFunctionAssociationList;
_p = JSII_RTTI_SYMBOL_1;
CloudfrontDistributionDefaultCacheBehaviorFunctionAssociationList[_p] = { fqn: "@cdktf/provider-aws.cloudfrontDistribution.CloudfrontDistributionDefaultCacheBehaviorFunctionAssociationList", version: "21.22.1" };
function cloudfrontDistributionDefaultCacheBehaviorGrpcConfigToTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configurati