@cdktf/provider-aws
Version:
Prebuilt aws Provider for Terraform CDK (cdktf)
1,066 lines • 272 kB
JavaScript
"use strict";
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
Object.defineProperty(exports, "__esModule", { value: true });
exports.CustomerprofilesDomain = exports.CustomerprofilesDomainRuleBasedMatchingOutputReference = exports.customerprofilesDomainRuleBasedMatchingToHclTerraform = exports.customerprofilesDomainRuleBasedMatchingToTerraform = exports.CustomerprofilesDomainRuleBasedMatchingMatchingRulesList = exports.CustomerprofilesDomainRuleBasedMatchingMatchingRulesOutputReference = exports.customerprofilesDomainRuleBasedMatchingMatchingRulesToHclTerraform = exports.customerprofilesDomainRuleBasedMatchingMatchingRulesToTerraform = exports.CustomerprofilesDomainRuleBasedMatchingExportingConfigOutputReference = exports.customerprofilesDomainRuleBasedMatchingExportingConfigToHclTerraform = exports.customerprofilesDomainRuleBasedMatchingExportingConfigToTerraform = exports.CustomerprofilesDomainRuleBasedMatchingExportingConfigS3ExportingOutputReference = exports.customerprofilesDomainRuleBasedMatchingExportingConfigS3ExportingToHclTerraform = exports.customerprofilesDomainRuleBasedMatchingExportingConfigS3ExportingToTerraform = exports.CustomerprofilesDomainRuleBasedMatchingConflictResolutionOutputReference = exports.customerprofilesDomainRuleBasedMatchingConflictResolutionToHclTerraform = exports.customerprofilesDomainRuleBasedMatchingConflictResolutionToTerraform = exports.CustomerprofilesDomainRuleBasedMatchingAttributeTypesSelectorOutputReference = exports.customerprofilesDomainRuleBasedMatchingAttributeTypesSelectorToHclTerraform = exports.customerprofilesDomainRuleBasedMatchingAttributeTypesSelectorToTerraform = exports.CustomerprofilesDomainMatchingOutputReference = exports.customerprofilesDomainMatchingToHclTerraform = exports.customerprofilesDomainMatchingToTerraform = exports.CustomerprofilesDomainMatchingJobScheduleOutputReference = exports.customerprofilesDomainMatchingJobScheduleToHclTerraform = exports.customerprofilesDomainMatchingJobScheduleToTerraform = exports.CustomerprofilesDomainMatchingExportingConfigOutputReference = exports.customerprofilesDomainMatchingExportingConfigToHclTerraform = exports.customerprofilesDomainMatchingExportingConfigToTerraform = exports.CustomerprofilesDomainMatchingExportingConfigS3ExportingOutputReference = exports.customerprofilesDomainMatchingExportingConfigS3ExportingToHclTerraform = exports.customerprofilesDomainMatchingExportingConfigS3ExportingToTerraform = exports.CustomerprofilesDomainMatchingAutoMergingOutputReference = exports.customerprofilesDomainMatchingAutoMergingToHclTerraform = exports.customerprofilesDomainMatchingAutoMergingToTerraform = exports.CustomerprofilesDomainMatchingAutoMergingConsolidationOutputReference = exports.customerprofilesDomainMatchingAutoMergingConsolidationToHclTerraform = exports.customerprofilesDomainMatchingAutoMergingConsolidationToTerraform = exports.CustomerprofilesDomainMatchingAutoMergingConflictResolutionOutputReference = exports.customerprofilesDomainMatchingAutoMergingConflictResolutionToHclTerraform = exports.customerprofilesDomainMatchingAutoMergingConflictResolutionToTerraform = void 0;
const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
const cdktf = require("cdktf");
function customerprofilesDomainMatchingAutoMergingConflictResolutionToTerraform(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 {
conflict_resolving_model: cdktf.stringToTerraform(struct.conflictResolvingModel),
source_name: cdktf.stringToTerraform(struct.sourceName),
};
}
exports.customerprofilesDomainMatchingAutoMergingConflictResolutionToTerraform = customerprofilesDomainMatchingAutoMergingConflictResolutionToTerraform;
function customerprofilesDomainMatchingAutoMergingConflictResolutionToHclTerraform(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 = {
conflict_resolving_model: {
value: cdktf.stringToHclTerraform(struct.conflictResolvingModel),
isBlock: false,
type: "simple",
storageClassType: "string",
},
source_name: {
value: cdktf.stringToHclTerraform(struct.sourceName),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.customerprofilesDomainMatchingAutoMergingConflictResolutionToHclTerraform = customerprofilesDomainMatchingAutoMergingConflictResolutionToHclTerraform;
class CustomerprofilesDomainMatchingAutoMergingConflictResolutionOutputReference 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._conflictResolvingModel !== undefined) {
hasAnyValues = true;
internalValueResult.conflictResolvingModel = this._conflictResolvingModel;
}
if (this._sourceName !== undefined) {
hasAnyValues = true;
internalValueResult.sourceName = this._sourceName;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._conflictResolvingModel = undefined;
this._sourceName = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._conflictResolvingModel = value.conflictResolvingModel;
this._sourceName = value.sourceName;
}
}
get conflictResolvingModel() {
return this.getStringAttribute('conflict_resolving_model');
}
set conflictResolvingModel(value) {
this._conflictResolvingModel = value;
}
// Temporarily expose input value. Use with caution.
get conflictResolvingModelInput() {
return this._conflictResolvingModel;
}
get sourceName() {
return this.getStringAttribute('source_name');
}
set sourceName(value) {
this._sourceName = value;
}
resetSourceName() {
this._sourceName = undefined;
}
// Temporarily expose input value. Use with caution.
get sourceNameInput() {
return this._sourceName;
}
}
exports.CustomerprofilesDomainMatchingAutoMergingConflictResolutionOutputReference = CustomerprofilesDomainMatchingAutoMergingConflictResolutionOutputReference;
_a = JSII_RTTI_SYMBOL_1;
CustomerprofilesDomainMatchingAutoMergingConflictResolutionOutputReference[_a] = { fqn: "@cdktf/provider-aws.customerprofilesDomain.CustomerprofilesDomainMatchingAutoMergingConflictResolutionOutputReference", version: "19.50.0" };
function customerprofilesDomainMatchingAutoMergingConsolidationToTerraform(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 {
matching_attributes_list: cdktf.listMapper(cdktf.listMapper(cdktf.stringToTerraform, false), false)(struct.matchingAttributesList),
};
}
exports.customerprofilesDomainMatchingAutoMergingConsolidationToTerraform = customerprofilesDomainMatchingAutoMergingConsolidationToTerraform;
function customerprofilesDomainMatchingAutoMergingConsolidationToHclTerraform(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 = {
matching_attributes_list: {
value: cdktf.listMapperHcl(cdktf.listMapperHcl(cdktf.stringToHclTerraform, false), false)(struct.matchingAttributesList),
isBlock: false,
type: "list",
storageClassType: "stringListList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.customerprofilesDomainMatchingAutoMergingConsolidationToHclTerraform = customerprofilesDomainMatchingAutoMergingConsolidationToHclTerraform;
class CustomerprofilesDomainMatchingAutoMergingConsolidationOutputReference 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._matchingAttributesList !== undefined) {
hasAnyValues = true;
internalValueResult.matchingAttributesList = this._matchingAttributesList;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._matchingAttributesList = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._matchingAttributesList = value.matchingAttributesList;
}
}
get matchingAttributesList() {
return this.interpolationForAttribute('matching_attributes_list');
}
set matchingAttributesList(value) {
this._matchingAttributesList = value;
}
// Temporarily expose input value. Use with caution.
get matchingAttributesListInput() {
return this._matchingAttributesList;
}
}
exports.CustomerprofilesDomainMatchingAutoMergingConsolidationOutputReference = CustomerprofilesDomainMatchingAutoMergingConsolidationOutputReference;
_b = JSII_RTTI_SYMBOL_1;
CustomerprofilesDomainMatchingAutoMergingConsolidationOutputReference[_b] = { fqn: "@cdktf/provider-aws.customerprofilesDomain.CustomerprofilesDomainMatchingAutoMergingConsolidationOutputReference", version: "19.50.0" };
function customerprofilesDomainMatchingAutoMergingToTerraform(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 {
enabled: cdktf.booleanToTerraform(struct.enabled),
min_allowed_confidence_score_for_merging: cdktf.numberToTerraform(struct.minAllowedConfidenceScoreForMerging),
conflict_resolution: customerprofilesDomainMatchingAutoMergingConflictResolutionToTerraform(struct.conflictResolution),
consolidation: customerprofilesDomainMatchingAutoMergingConsolidationToTerraform(struct.consolidation),
};
}
exports.customerprofilesDomainMatchingAutoMergingToTerraform = customerprofilesDomainMatchingAutoMergingToTerraform;
function customerprofilesDomainMatchingAutoMergingToHclTerraform(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 = {
enabled: {
value: cdktf.booleanToHclTerraform(struct.enabled),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
min_allowed_confidence_score_for_merging: {
value: cdktf.numberToHclTerraform(struct.minAllowedConfidenceScoreForMerging),
isBlock: false,
type: "simple",
storageClassType: "number",
},
conflict_resolution: {
value: customerprofilesDomainMatchingAutoMergingConflictResolutionToHclTerraform(struct.conflictResolution),
isBlock: true,
type: "list",
storageClassType: "CustomerprofilesDomainMatchingAutoMergingConflictResolutionList",
},
consolidation: {
value: customerprofilesDomainMatchingAutoMergingConsolidationToHclTerraform(struct.consolidation),
isBlock: true,
type: "list",
storageClassType: "CustomerprofilesDomainMatchingAutoMergingConsolidationList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.customerprofilesDomainMatchingAutoMergingToHclTerraform = customerprofilesDomainMatchingAutoMergingToHclTerraform;
class CustomerprofilesDomainMatchingAutoMergingOutputReference 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;
// conflict_resolution - computed: false, optional: true, required: false
this._conflictResolution = new CustomerprofilesDomainMatchingAutoMergingConflictResolutionOutputReference(this, "conflict_resolution");
// consolidation - computed: false, optional: true, required: false
this._consolidation = new CustomerprofilesDomainMatchingAutoMergingConsolidationOutputReference(this, "consolidation");
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._enabled !== undefined) {
hasAnyValues = true;
internalValueResult.enabled = this._enabled;
}
if (this._minAllowedConfidenceScoreForMerging !== undefined) {
hasAnyValues = true;
internalValueResult.minAllowedConfidenceScoreForMerging = this._minAllowedConfidenceScoreForMerging;
}
if (this._conflictResolution?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.conflictResolution = this._conflictResolution?.internalValue;
}
if (this._consolidation?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.consolidation = this._consolidation?.internalValue;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._enabled = undefined;
this._minAllowedConfidenceScoreForMerging = undefined;
this._conflictResolution.internalValue = undefined;
this._consolidation.internalValue = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._enabled = value.enabled;
this._minAllowedConfidenceScoreForMerging = value.minAllowedConfidenceScoreForMerging;
this._conflictResolution.internalValue = value.conflictResolution;
this._consolidation.internalValue = value.consolidation;
}
}
get enabled() {
return this.getBooleanAttribute('enabled');
}
set enabled(value) {
this._enabled = value;
}
// Temporarily expose input value. Use with caution.
get enabledInput() {
return this._enabled;
}
get minAllowedConfidenceScoreForMerging() {
return this.getNumberAttribute('min_allowed_confidence_score_for_merging');
}
set minAllowedConfidenceScoreForMerging(value) {
this._minAllowedConfidenceScoreForMerging = value;
}
resetMinAllowedConfidenceScoreForMerging() {
this._minAllowedConfidenceScoreForMerging = undefined;
}
// Temporarily expose input value. Use with caution.
get minAllowedConfidenceScoreForMergingInput() {
return this._minAllowedConfidenceScoreForMerging;
}
get conflictResolution() {
return this._conflictResolution;
}
putConflictResolution(value) {
this._conflictResolution.internalValue = value;
}
resetConflictResolution() {
this._conflictResolution.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get conflictResolutionInput() {
return this._conflictResolution.internalValue;
}
get consolidation() {
return this._consolidation;
}
putConsolidation(value) {
this._consolidation.internalValue = value;
}
resetConsolidation() {
this._consolidation.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get consolidationInput() {
return this._consolidation.internalValue;
}
}
exports.CustomerprofilesDomainMatchingAutoMergingOutputReference = CustomerprofilesDomainMatchingAutoMergingOutputReference;
_c = JSII_RTTI_SYMBOL_1;
CustomerprofilesDomainMatchingAutoMergingOutputReference[_c] = { fqn: "@cdktf/provider-aws.customerprofilesDomain.CustomerprofilesDomainMatchingAutoMergingOutputReference", version: "19.50.0" };
function customerprofilesDomainMatchingExportingConfigS3ExportingToTerraform(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 {
s3_bucket_name: cdktf.stringToTerraform(struct.s3BucketName),
s3_key_name: cdktf.stringToTerraform(struct.s3KeyName),
};
}
exports.customerprofilesDomainMatchingExportingConfigS3ExportingToTerraform = customerprofilesDomainMatchingExportingConfigS3ExportingToTerraform;
function customerprofilesDomainMatchingExportingConfigS3ExportingToHclTerraform(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 = {
s3_bucket_name: {
value: cdktf.stringToHclTerraform(struct.s3BucketName),
isBlock: false,
type: "simple",
storageClassType: "string",
},
s3_key_name: {
value: cdktf.stringToHclTerraform(struct.s3KeyName),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.customerprofilesDomainMatchingExportingConfigS3ExportingToHclTerraform = customerprofilesDomainMatchingExportingConfigS3ExportingToHclTerraform;
class CustomerprofilesDomainMatchingExportingConfigS3ExportingOutputReference 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._s3BucketName !== undefined) {
hasAnyValues = true;
internalValueResult.s3BucketName = this._s3BucketName;
}
if (this._s3KeyName !== undefined) {
hasAnyValues = true;
internalValueResult.s3KeyName = this._s3KeyName;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._s3BucketName = undefined;
this._s3KeyName = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._s3BucketName = value.s3BucketName;
this._s3KeyName = value.s3KeyName;
}
}
get s3BucketName() {
return this.getStringAttribute('s3_bucket_name');
}
set s3BucketName(value) {
this._s3BucketName = value;
}
// Temporarily expose input value. Use with caution.
get s3BucketNameInput() {
return this._s3BucketName;
}
get s3KeyName() {
return this.getStringAttribute('s3_key_name');
}
set s3KeyName(value) {
this._s3KeyName = value;
}
resetS3KeyName() {
this._s3KeyName = undefined;
}
// Temporarily expose input value. Use with caution.
get s3KeyNameInput() {
return this._s3KeyName;
}
}
exports.CustomerprofilesDomainMatchingExportingConfigS3ExportingOutputReference = CustomerprofilesDomainMatchingExportingConfigS3ExportingOutputReference;
_d = JSII_RTTI_SYMBOL_1;
CustomerprofilesDomainMatchingExportingConfigS3ExportingOutputReference[_d] = { fqn: "@cdktf/provider-aws.customerprofilesDomain.CustomerprofilesDomainMatchingExportingConfigS3ExportingOutputReference", version: "19.50.0" };
function customerprofilesDomainMatchingExportingConfigToTerraform(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 {
s3_exporting: customerprofilesDomainMatchingExportingConfigS3ExportingToTerraform(struct.s3Exporting),
};
}
exports.customerprofilesDomainMatchingExportingConfigToTerraform = customerprofilesDomainMatchingExportingConfigToTerraform;
function customerprofilesDomainMatchingExportingConfigToHclTerraform(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 = {
s3_exporting: {
value: customerprofilesDomainMatchingExportingConfigS3ExportingToHclTerraform(struct.s3Exporting),
isBlock: true,
type: "list",
storageClassType: "CustomerprofilesDomainMatchingExportingConfigS3ExportingList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.customerprofilesDomainMatchingExportingConfigToHclTerraform = customerprofilesDomainMatchingExportingConfigToHclTerraform;
class CustomerprofilesDomainMatchingExportingConfigOutputReference 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;
// s3_exporting - computed: false, optional: true, required: false
this._s3Exporting = new CustomerprofilesDomainMatchingExportingConfigS3ExportingOutputReference(this, "s3_exporting");
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._s3Exporting?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.s3Exporting = this._s3Exporting?.internalValue;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._s3Exporting.internalValue = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._s3Exporting.internalValue = value.s3Exporting;
}
}
get s3Exporting() {
return this._s3Exporting;
}
putS3Exporting(value) {
this._s3Exporting.internalValue = value;
}
resetS3Exporting() {
this._s3Exporting.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get s3ExportingInput() {
return this._s3Exporting.internalValue;
}
}
exports.CustomerprofilesDomainMatchingExportingConfigOutputReference = CustomerprofilesDomainMatchingExportingConfigOutputReference;
_e = JSII_RTTI_SYMBOL_1;
CustomerprofilesDomainMatchingExportingConfigOutputReference[_e] = { fqn: "@cdktf/provider-aws.customerprofilesDomain.CustomerprofilesDomainMatchingExportingConfigOutputReference", version: "19.50.0" };
function customerprofilesDomainMatchingJobScheduleToTerraform(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 {
day_of_the_week: cdktf.stringToTerraform(struct.dayOfTheWeek),
time: cdktf.stringToTerraform(struct.time),
};
}
exports.customerprofilesDomainMatchingJobScheduleToTerraform = customerprofilesDomainMatchingJobScheduleToTerraform;
function customerprofilesDomainMatchingJobScheduleToHclTerraform(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 = {
day_of_the_week: {
value: cdktf.stringToHclTerraform(struct.dayOfTheWeek),
isBlock: false,
type: "simple",
storageClassType: "string",
},
time: {
value: cdktf.stringToHclTerraform(struct.time),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.customerprofilesDomainMatchingJobScheduleToHclTerraform = customerprofilesDomainMatchingJobScheduleToHclTerraform;
class CustomerprofilesDomainMatchingJobScheduleOutputReference 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._dayOfTheWeek !== undefined) {
hasAnyValues = true;
internalValueResult.dayOfTheWeek = this._dayOfTheWeek;
}
if (this._time !== undefined) {
hasAnyValues = true;
internalValueResult.time = this._time;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._dayOfTheWeek = undefined;
this._time = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._dayOfTheWeek = value.dayOfTheWeek;
this._time = value.time;
}
}
get dayOfTheWeek() {
return this.getStringAttribute('day_of_the_week');
}
set dayOfTheWeek(value) {
this._dayOfTheWeek = value;
}
// Temporarily expose input value. Use with caution.
get dayOfTheWeekInput() {
return this._dayOfTheWeek;
}
get time() {
return this.getStringAttribute('time');
}
set time(value) {
this._time = value;
}
// Temporarily expose input value. Use with caution.
get timeInput() {
return this._time;
}
}
exports.CustomerprofilesDomainMatchingJobScheduleOutputReference = CustomerprofilesDomainMatchingJobScheduleOutputReference;
_f = JSII_RTTI_SYMBOL_1;
CustomerprofilesDomainMatchingJobScheduleOutputReference[_f] = { fqn: "@cdktf/provider-aws.customerprofilesDomain.CustomerprofilesDomainMatchingJobScheduleOutputReference", version: "19.50.0" };
function customerprofilesDomainMatchingToTerraform(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 {
enabled: cdktf.booleanToTerraform(struct.enabled),
auto_merging: customerprofilesDomainMatchingAutoMergingToTerraform(struct.autoMerging),
exporting_config: customerprofilesDomainMatchingExportingConfigToTerraform(struct.exportingConfig),
job_schedule: customerprofilesDomainMatchingJobScheduleToTerraform(struct.jobSchedule),
};
}
exports.customerprofilesDomainMatchingToTerraform = customerprofilesDomainMatchingToTerraform;
function customerprofilesDomainMatchingToHclTerraform(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 = {
enabled: {
value: cdktf.booleanToHclTerraform(struct.enabled),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
auto_merging: {
value: customerprofilesDomainMatchingAutoMergingToHclTerraform(struct.autoMerging),
isBlock: true,
type: "list",
storageClassType: "CustomerprofilesDomainMatchingAutoMergingList",
},
exporting_config: {
value: customerprofilesDomainMatchingExportingConfigToHclTerraform(struct.exportingConfig),
isBlock: true,
type: "list",
storageClassType: "CustomerprofilesDomainMatchingExportingConfigList",
},
job_schedule: {
value: customerprofilesDomainMatchingJobScheduleToHclTerraform(struct.jobSchedule),
isBlock: true,
type: "list",
storageClassType: "CustomerprofilesDomainMatchingJobScheduleList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.customerprofilesDomainMatchingToHclTerraform = customerprofilesDomainMatchingToHclTerraform;
class CustomerprofilesDomainMatchingOutputReference 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;
// auto_merging - computed: false, optional: true, required: false
this._autoMerging = new CustomerprofilesDomainMatchingAutoMergingOutputReference(this, "auto_merging");
// exporting_config - computed: false, optional: true, required: false
this._exportingConfig = new CustomerprofilesDomainMatchingExportingConfigOutputReference(this, "exporting_config");
// job_schedule - computed: false, optional: true, required: false
this._jobSchedule = new CustomerprofilesDomainMatchingJobScheduleOutputReference(this, "job_schedule");
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._enabled !== undefined) {
hasAnyValues = true;
internalValueResult.enabled = this._enabled;
}
if (this._autoMerging?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.autoMerging = this._autoMerging?.internalValue;
}
if (this._exportingConfig?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.exportingConfig = this._exportingConfig?.internalValue;
}
if (this._jobSchedule?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.jobSchedule = this._jobSchedule?.internalValue;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._enabled = undefined;
this._autoMerging.internalValue = undefined;
this._exportingConfig.internalValue = undefined;
this._jobSchedule.internalValue = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._enabled = value.enabled;
this._autoMerging.internalValue = value.autoMerging;
this._exportingConfig.internalValue = value.exportingConfig;
this._jobSchedule.internalValue = value.jobSchedule;
}
}
get enabled() {
return this.getBooleanAttribute('enabled');
}
set enabled(value) {
this._enabled = value;
}
// Temporarily expose input value. Use with caution.
get enabledInput() {
return this._enabled;
}
get autoMerging() {
return this._autoMerging;
}
putAutoMerging(value) {
this._autoMerging.internalValue = value;
}
resetAutoMerging() {
this._autoMerging.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get autoMergingInput() {
return this._autoMerging.internalValue;
}
get exportingConfig() {
return this._exportingConfig;
}
putExportingConfig(value) {
this._exportingConfig.internalValue = value;
}
resetExportingConfig() {
this._exportingConfig.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get exportingConfigInput() {
return this._exportingConfig.internalValue;
}
get jobSchedule() {
return this._jobSchedule;
}
putJobSchedule(value) {
this._jobSchedule.internalValue = value;
}
resetJobSchedule() {
this._jobSchedule.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get jobScheduleInput() {
return this._jobSchedule.internalValue;
}
}
exports.CustomerprofilesDomainMatchingOutputReference = CustomerprofilesDomainMatchingOutputReference;
_g = JSII_RTTI_SYMBOL_1;
CustomerprofilesDomainMatchingOutputReference[_g] = { fqn: "@cdktf/provider-aws.customerprofilesDomain.CustomerprofilesDomainMatchingOutputReference", version: "19.50.0" };
function customerprofilesDomainRuleBasedMatchingAttributeTypesSelectorToTerraform(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 {
address: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.address),
attribute_matching_model: cdktf.stringToTerraform(struct.attributeMatchingModel),
email_address: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.emailAddress),
phone_number: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.phoneNumber),
};
}
exports.customerprofilesDomainRuleBasedMatchingAttributeTypesSelectorToTerraform = customerprofilesDomainRuleBasedMatchingAttributeTypesSelectorToTerraform;
function customerprofilesDomainRuleBasedMatchingAttributeTypesSelectorToHclTerraform(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 = {
address: {
value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.address),
isBlock: false,
type: "list",
storageClassType: "stringList",
},
attribute_matching_model: {
value: cdktf.stringToHclTerraform(struct.attributeMatchingModel),
isBlock: false,
type: "simple",
storageClassType: "string",
},
email_address: {
value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.emailAddress),
isBlock: false,
type: "list",
storageClassType: "stringList",
},
phone_number: {
value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.phoneNumber),
isBlock: false,
type: "list",
storageClassType: "stringList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.customerprofilesDomainRuleBasedMatchingAttributeTypesSelectorToHclTerraform = customerprofilesDomainRuleBasedMatchingAttributeTypesSelectorToHclTerraform;
class CustomerprofilesDomainRuleBasedMatchingAttributeTypesSelectorOutputReference 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._address !== undefined) {
hasAnyValues = true;
internalValueResult.address = this._address;
}
if (this._attributeMatchingModel !== undefined) {
hasAnyValues = true;
internalValueResult.attributeMatchingModel = this._attributeMatchingModel;
}
if (this._emailAddress !== undefined) {
hasAnyValues = true;
internalValueResult.emailAddress = this._emailAddress;
}
if (this._phoneNumber !== undefined) {
hasAnyValues = true;
internalValueResult.phoneNumber = this._phoneNumber;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._address = undefined;
this._attributeMatchingModel = undefined;
this._emailAddress = undefined;
this._phoneNumber = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._address = value.address;
this._attributeMatchingModel = value.attributeMatchingModel;
this._emailAddress = value.emailAddress;
this._phoneNumber = value.phoneNumber;
}
}
get address() {
return this.getListAttribute('address');
}
set address(value) {
this._address = value;
}
resetAddress() {
this._address = undefined;
}
// Temporarily expose input value. Use with caution.
get addressInput() {
return this._address;
}
get attributeMatchingModel() {
return this.getStringAttribute('attribute_matching_model');
}
set attributeMatchingModel(value) {
this._attributeMatchingModel = value;
}
// Temporarily expose input value. Use with caution.
get attributeMatchingModelInput() {
return this._attributeMatchingModel;
}
get emailAddress() {
return this.getListAttribute('email_address');
}
set emailAddress(value) {
this._emailAddress = value;
}
resetEmailAddress() {
this._emailAddress = undefined;
}
// Temporarily expose input value. Use with caution.
get emailAddressInput() {
return this._emailAddress;
}
get phoneNumber() {
return this.getListAttribute('phone_number');
}
set phoneNumber(value) {
this._phoneNumber = value;
}
resetPhoneNumber() {
this._phoneNumber = undefined;
}
// Temporarily expose input value. Use with caution.
get phoneNumberInput() {
return this._phoneNumber;
}
}
exports.CustomerprofilesDomainRuleBasedMatchingAttributeTypesSelectorOutputReference = CustomerprofilesDomainRuleBasedMatchingAttributeTypesSelectorOutputReference;
_h = JSII_RTTI_SYMBOL_1;
CustomerprofilesDomainRuleBasedMatchingAttributeTypesSelectorOutputReference[_h] = { fqn: "@cdktf/provider-aws.customerprofilesDomain.CustomerprofilesDomainRuleBasedMatchingAttributeTypesSelectorOutputReference", version: "19.50.0" };
function customerprofilesDomainRuleBasedMatchingConflictResolutionToTerraform(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 {
conflict_resolving_model: cdktf.stringToTerraform(struct.conflictResolvingModel),
source_name: cdktf.stringToTerraform(struct.sourceName),
};
}
exports.customerprofilesDomainRuleBasedMatchingConflictResolutionToTerraform = customerprofilesDomainRuleBasedMatchingConflictResolutionToTerraform;
function customerprofilesDomainRuleBasedMatchingConflictResolutionToHclTerraform(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 = {
conflict_resolving_model: {
value: cdktf.stringToHclTerraform(struct.conflictResolvingModel),
isBlock: false,
type: "simple",
storageClassType: "string",
},
source_name: {
value: cdktf.stringToHclTerraform(struct.sourceName),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.customerprofilesDomainRuleBasedMatchingConflictResolutionToHclTerraform = customerprofilesDomainRuleBasedMatchingConflictResolutionToHclTerraform;
class CustomerprofilesDomainRuleBasedMatchingConflictResolutionOutputReference 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._conflictResolvingModel !== undefined) {
hasAnyValues = true;
internalValueResult.conflictResolvingModel = this._conflictResolvingModel;
}
if (this._sourceName !== undefined) {
hasAnyValues = true;
internalValueResult.sourceName = this._sourceName;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._conflictResolvingModel = undefined;
this._sourceName = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._conflictResolvingModel = value.conflictResolvingModel;
this._sourceName = value.sourceName;
}
}
get conflictResolvingModel() {
return this.getStringAttribute('conflict_resolving_model');
}
set conflictResolvingModel(value) {
this._conflictResolvingModel = value;
}
// Temporarily expose input value. Use with caution.
get conflictResolvingModelInput() {
return this._conflictResolvingModel;
}
get sourceName() {
return this.getStringAttribute('source_name');
}
set sourceName(value) {
this._sourceName = value;
}
resetSourceName() {
this._sourceName = undefined;
}
// Temporarily expose input value. Use with caution.
get sourceNameInput() {
return this._sourceName;
}
}
exports.CustomerprofilesDomainRuleBasedMatchingConflictResolutionOutputReference = CustomerprofilesDomainRuleBasedMatchingConflictResolutionOutputReference;
_j = JSII_RTTI_SYMBOL_1;
CustomerprofilesDomainRuleBasedMatchingConflictResolutionOutputReference[_j] = { fqn: "@cdktf/provider-aws.customerprofilesDomain.CustomerprofilesDomainRuleBasedMatchingConflictResolutionOutputReference", version: "19.50.0" };
function customerprofilesDomainRuleBasedMatchingExportingConfigS3ExportingToTerraform(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 {
s3_bucket_name: cdktf.stringToTerraform(struct.s3BucketName),
s3_key_name: cdktf.stringToTerraform(struct.s3KeyName),
};
}
exports.customerprofilesDomainRuleBasedMatchingExportingConfigS3ExportingToTerraform = customerprofilesDomainRuleBasedMatchingExportingConfigS3ExportingToTerraform;
function customerprofilesDomainRuleBasedMatchingExportingConfigS3ExportingToHclTerraform(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 = {
s3_bucket_name: {
value: cdktf.stringToHclTerraform(struct.s3BucketName),
isBlock: false,
type: "simple",
storageClassType: "string",
},
s3_key_name: {
value: cdktf.stringToHclTerraform(struct.s3KeyName),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.customerprofilesDomainRuleBasedMatchingExportingConfigS3ExportingToHclTerraform = customerprofilesDomainRuleBasedMatchingExportingConfigS3ExportingToHclTerraform;
class CustomerprofilesDomainRuleBasedMatchingExportingConfigS3ExportingOutputReference 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._s3BucketName !== undefined) {
hasAnyValues = true;
internalValueResult.s3Bucket