@cdktf/provider-aws
Version:
Prebuilt aws Provider for Terraform CDK (cdktf)
1,393 lines • 313 kB
JavaScript
"use strict";
var _a, _b, _c, _d, _e, _f, _g, _h;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Route53DomainsRegisteredDomain = exports.Route53DomainsRegisteredDomainTimeoutsOutputReference = exports.route53DomainsRegisteredDomainTimeoutsToHclTerraform = exports.route53DomainsRegisteredDomainTimeoutsToTerraform = exports.Route53DomainsRegisteredDomainTechContactOutputReference = exports.route53DomainsRegisteredDomainTechContactToHclTerraform = exports.route53DomainsRegisteredDomainTechContactToTerraform = exports.Route53DomainsRegisteredDomainRegistrantContactOutputReference = exports.route53DomainsRegisteredDomainRegistrantContactToHclTerraform = exports.route53DomainsRegisteredDomainRegistrantContactToTerraform = exports.Route53DomainsRegisteredDomainNameServerList = exports.Route53DomainsRegisteredDomainNameServerOutputReference = exports.route53DomainsRegisteredDomainNameServerToHclTerraform = exports.route53DomainsRegisteredDomainNameServerToTerraform = exports.Route53DomainsRegisteredDomainBillingContactOutputReference = exports.route53DomainsRegisteredDomainBillingContactToHclTerraform = exports.route53DomainsRegisteredDomainBillingContactToTerraform = exports.Route53DomainsRegisteredDomainAdminContactOutputReference = exports.route53DomainsRegisteredDomainAdminContactToHclTerraform = exports.route53DomainsRegisteredDomainAdminContactToTerraform = void 0;
const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
const cdktf = require("cdktf");
function route53DomainsRegisteredDomainAdminContactToTerraform(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_line_1: cdktf.stringToTerraform(struct.addressLine1),
address_line_2: cdktf.stringToTerraform(struct.addressLine2),
city: cdktf.stringToTerraform(struct.city),
contact_type: cdktf.stringToTerraform(struct.contactType),
country_code: cdktf.stringToTerraform(struct.countryCode),
email: cdktf.stringToTerraform(struct.email),
extra_params: cdktf.hashMapper(cdktf.stringToTerraform)(struct.extraParams),
fax: cdktf.stringToTerraform(struct.fax),
first_name: cdktf.stringToTerraform(struct.firstName),
last_name: cdktf.stringToTerraform(struct.lastName),
organization_name: cdktf.stringToTerraform(struct.organizationName),
phone_number: cdktf.stringToTerraform(struct.phoneNumber),
state: cdktf.stringToTerraform(struct.state),
zip_code: cdktf.stringToTerraform(struct.zipCode),
};
}
exports.route53DomainsRegisteredDomainAdminContactToTerraform = route53DomainsRegisteredDomainAdminContactToTerraform;
function route53DomainsRegisteredDomainAdminContactToHclTerraform(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_line_1: {
value: cdktf.stringToHclTerraform(struct.addressLine1),
isBlock: false,
type: "simple",
storageClassType: "string",
},
address_line_2: {
value: cdktf.stringToHclTerraform(struct.addressLine2),
isBlock: false,
type: "simple",
storageClassType: "string",
},
city: {
value: cdktf.stringToHclTerraform(struct.city),
isBlock: false,
type: "simple",
storageClassType: "string",
},
contact_type: {
value: cdktf.stringToHclTerraform(struct.contactType),
isBlock: false,
type: "simple",
storageClassType: "string",
},
country_code: {
value: cdktf.stringToHclTerraform(struct.countryCode),
isBlock: false,
type: "simple",
storageClassType: "string",
},
email: {
value: cdktf.stringToHclTerraform(struct.email),
isBlock: false,
type: "simple",
storageClassType: "string",
},
extra_params: {
value: cdktf.hashMapperHcl(cdktf.stringToHclTerraform)(struct.extraParams),
isBlock: false,
type: "map",
storageClassType: "stringMap",
},
fax: {
value: cdktf.stringToHclTerraform(struct.fax),
isBlock: false,
type: "simple",
storageClassType: "string",
},
first_name: {
value: cdktf.stringToHclTerraform(struct.firstName),
isBlock: false,
type: "simple",
storageClassType: "string",
},
last_name: {
value: cdktf.stringToHclTerraform(struct.lastName),
isBlock: false,
type: "simple",
storageClassType: "string",
},
organization_name: {
value: cdktf.stringToHclTerraform(struct.organizationName),
isBlock: false,
type: "simple",
storageClassType: "string",
},
phone_number: {
value: cdktf.stringToHclTerraform(struct.phoneNumber),
isBlock: false,
type: "simple",
storageClassType: "string",
},
state: {
value: cdktf.stringToHclTerraform(struct.state),
isBlock: false,
type: "simple",
storageClassType: "string",
},
zip_code: {
value: cdktf.stringToHclTerraform(struct.zipCode),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.route53DomainsRegisteredDomainAdminContactToHclTerraform = route53DomainsRegisteredDomainAdminContactToHclTerraform;
class Route53DomainsRegisteredDomainAdminContactOutputReference 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._addressLine1 !== undefined) {
hasAnyValues = true;
internalValueResult.addressLine1 = this._addressLine1;
}
if (this._addressLine2 !== undefined) {
hasAnyValues = true;
internalValueResult.addressLine2 = this._addressLine2;
}
if (this._city !== undefined) {
hasAnyValues = true;
internalValueResult.city = this._city;
}
if (this._contactType !== undefined) {
hasAnyValues = true;
internalValueResult.contactType = this._contactType;
}
if (this._countryCode !== undefined) {
hasAnyValues = true;
internalValueResult.countryCode = this._countryCode;
}
if (this._email !== undefined) {
hasAnyValues = true;
internalValueResult.email = this._email;
}
if (this._extraParams !== undefined) {
hasAnyValues = true;
internalValueResult.extraParams = this._extraParams;
}
if (this._fax !== undefined) {
hasAnyValues = true;
internalValueResult.fax = this._fax;
}
if (this._firstName !== undefined) {
hasAnyValues = true;
internalValueResult.firstName = this._firstName;
}
if (this._lastName !== undefined) {
hasAnyValues = true;
internalValueResult.lastName = this._lastName;
}
if (this._organizationName !== undefined) {
hasAnyValues = true;
internalValueResult.organizationName = this._organizationName;
}
if (this._phoneNumber !== undefined) {
hasAnyValues = true;
internalValueResult.phoneNumber = this._phoneNumber;
}
if (this._state !== undefined) {
hasAnyValues = true;
internalValueResult.state = this._state;
}
if (this._zipCode !== undefined) {
hasAnyValues = true;
internalValueResult.zipCode = this._zipCode;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._addressLine1 = undefined;
this._addressLine2 = undefined;
this._city = undefined;
this._contactType = undefined;
this._countryCode = undefined;
this._email = undefined;
this._extraParams = undefined;
this._fax = undefined;
this._firstName = undefined;
this._lastName = undefined;
this._organizationName = undefined;
this._phoneNumber = undefined;
this._state = undefined;
this._zipCode = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._addressLine1 = value.addressLine1;
this._addressLine2 = value.addressLine2;
this._city = value.city;
this._contactType = value.contactType;
this._countryCode = value.countryCode;
this._email = value.email;
this._extraParams = value.extraParams;
this._fax = value.fax;
this._firstName = value.firstName;
this._lastName = value.lastName;
this._organizationName = value.organizationName;
this._phoneNumber = value.phoneNumber;
this._state = value.state;
this._zipCode = value.zipCode;
}
}
get addressLine1() {
return this.getStringAttribute('address_line_1');
}
set addressLine1(value) {
this._addressLine1 = value;
}
resetAddressLine1() {
this._addressLine1 = undefined;
}
// Temporarily expose input value. Use with caution.
get addressLine1Input() {
return this._addressLine1;
}
get addressLine2() {
return this.getStringAttribute('address_line_2');
}
set addressLine2(value) {
this._addressLine2 = value;
}
resetAddressLine2() {
this._addressLine2 = undefined;
}
// Temporarily expose input value. Use with caution.
get addressLine2Input() {
return this._addressLine2;
}
get city() {
return this.getStringAttribute('city');
}
set city(value) {
this._city = value;
}
resetCity() {
this._city = undefined;
}
// Temporarily expose input value. Use with caution.
get cityInput() {
return this._city;
}
get contactType() {
return this.getStringAttribute('contact_type');
}
set contactType(value) {
this._contactType = value;
}
resetContactType() {
this._contactType = undefined;
}
// Temporarily expose input value. Use with caution.
get contactTypeInput() {
return this._contactType;
}
get countryCode() {
return this.getStringAttribute('country_code');
}
set countryCode(value) {
this._countryCode = value;
}
resetCountryCode() {
this._countryCode = undefined;
}
// Temporarily expose input value. Use with caution.
get countryCodeInput() {
return this._countryCode;
}
get email() {
return this.getStringAttribute('email');
}
set email(value) {
this._email = value;
}
resetEmail() {
this._email = undefined;
}
// Temporarily expose input value. Use with caution.
get emailInput() {
return this._email;
}
get extraParams() {
return this.getStringMapAttribute('extra_params');
}
set extraParams(value) {
this._extraParams = value;
}
resetExtraParams() {
this._extraParams = undefined;
}
// Temporarily expose input value. Use with caution.
get extraParamsInput() {
return this._extraParams;
}
get fax() {
return this.getStringAttribute('fax');
}
set fax(value) {
this._fax = value;
}
resetFax() {
this._fax = undefined;
}
// Temporarily expose input value. Use with caution.
get faxInput() {
return this._fax;
}
get firstName() {
return this.getStringAttribute('first_name');
}
set firstName(value) {
this._firstName = value;
}
resetFirstName() {
this._firstName = undefined;
}
// Temporarily expose input value. Use with caution.
get firstNameInput() {
return this._firstName;
}
get lastName() {
return this.getStringAttribute('last_name');
}
set lastName(value) {
this._lastName = value;
}
resetLastName() {
this._lastName = undefined;
}
// Temporarily expose input value. Use with caution.
get lastNameInput() {
return this._lastName;
}
get organizationName() {
return this.getStringAttribute('organization_name');
}
set organizationName(value) {
this._organizationName = value;
}
resetOrganizationName() {
this._organizationName = undefined;
}
// Temporarily expose input value. Use with caution.
get organizationNameInput() {
return this._organizationName;
}
get phoneNumber() {
return this.getStringAttribute('phone_number');
}
set phoneNumber(value) {
this._phoneNumber = value;
}
resetPhoneNumber() {
this._phoneNumber = undefined;
}
// Temporarily expose input value. Use with caution.
get phoneNumberInput() {
return this._phoneNumber;
}
get state() {
return this.getStringAttribute('state');
}
set state(value) {
this._state = value;
}
resetState() {
this._state = undefined;
}
// Temporarily expose input value. Use with caution.
get stateInput() {
return this._state;
}
get zipCode() {
return this.getStringAttribute('zip_code');
}
set zipCode(value) {
this._zipCode = value;
}
resetZipCode() {
this._zipCode = undefined;
}
// Temporarily expose input value. Use with caution.
get zipCodeInput() {
return this._zipCode;
}
}
exports.Route53DomainsRegisteredDomainAdminContactOutputReference = Route53DomainsRegisteredDomainAdminContactOutputReference;
_a = JSII_RTTI_SYMBOL_1;
Route53DomainsRegisteredDomainAdminContactOutputReference[_a] = { fqn: "@cdktf/provider-aws.route53DomainsRegisteredDomain.Route53DomainsRegisteredDomainAdminContactOutputReference", version: "19.50.0" };
function route53DomainsRegisteredDomainBillingContactToTerraform(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_line_1: cdktf.stringToTerraform(struct.addressLine1),
address_line_2: cdktf.stringToTerraform(struct.addressLine2),
city: cdktf.stringToTerraform(struct.city),
contact_type: cdktf.stringToTerraform(struct.contactType),
country_code: cdktf.stringToTerraform(struct.countryCode),
email: cdktf.stringToTerraform(struct.email),
extra_params: cdktf.hashMapper(cdktf.stringToTerraform)(struct.extraParams),
fax: cdktf.stringToTerraform(struct.fax),
first_name: cdktf.stringToTerraform(struct.firstName),
last_name: cdktf.stringToTerraform(struct.lastName),
organization_name: cdktf.stringToTerraform(struct.organizationName),
phone_number: cdktf.stringToTerraform(struct.phoneNumber),
state: cdktf.stringToTerraform(struct.state),
zip_code: cdktf.stringToTerraform(struct.zipCode),
};
}
exports.route53DomainsRegisteredDomainBillingContactToTerraform = route53DomainsRegisteredDomainBillingContactToTerraform;
function route53DomainsRegisteredDomainBillingContactToHclTerraform(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_line_1: {
value: cdktf.stringToHclTerraform(struct.addressLine1),
isBlock: false,
type: "simple",
storageClassType: "string",
},
address_line_2: {
value: cdktf.stringToHclTerraform(struct.addressLine2),
isBlock: false,
type: "simple",
storageClassType: "string",
},
city: {
value: cdktf.stringToHclTerraform(struct.city),
isBlock: false,
type: "simple",
storageClassType: "string",
},
contact_type: {
value: cdktf.stringToHclTerraform(struct.contactType),
isBlock: false,
type: "simple",
storageClassType: "string",
},
country_code: {
value: cdktf.stringToHclTerraform(struct.countryCode),
isBlock: false,
type: "simple",
storageClassType: "string",
},
email: {
value: cdktf.stringToHclTerraform(struct.email),
isBlock: false,
type: "simple",
storageClassType: "string",
},
extra_params: {
value: cdktf.hashMapperHcl(cdktf.stringToHclTerraform)(struct.extraParams),
isBlock: false,
type: "map",
storageClassType: "stringMap",
},
fax: {
value: cdktf.stringToHclTerraform(struct.fax),
isBlock: false,
type: "simple",
storageClassType: "string",
},
first_name: {
value: cdktf.stringToHclTerraform(struct.firstName),
isBlock: false,
type: "simple",
storageClassType: "string",
},
last_name: {
value: cdktf.stringToHclTerraform(struct.lastName),
isBlock: false,
type: "simple",
storageClassType: "string",
},
organization_name: {
value: cdktf.stringToHclTerraform(struct.organizationName),
isBlock: false,
type: "simple",
storageClassType: "string",
},
phone_number: {
value: cdktf.stringToHclTerraform(struct.phoneNumber),
isBlock: false,
type: "simple",
storageClassType: "string",
},
state: {
value: cdktf.stringToHclTerraform(struct.state),
isBlock: false,
type: "simple",
storageClassType: "string",
},
zip_code: {
value: cdktf.stringToHclTerraform(struct.zipCode),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.route53DomainsRegisteredDomainBillingContactToHclTerraform = route53DomainsRegisteredDomainBillingContactToHclTerraform;
class Route53DomainsRegisteredDomainBillingContactOutputReference 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._addressLine1 !== undefined) {
hasAnyValues = true;
internalValueResult.addressLine1 = this._addressLine1;
}
if (this._addressLine2 !== undefined) {
hasAnyValues = true;
internalValueResult.addressLine2 = this._addressLine2;
}
if (this._city !== undefined) {
hasAnyValues = true;
internalValueResult.city = this._city;
}
if (this._contactType !== undefined) {
hasAnyValues = true;
internalValueResult.contactType = this._contactType;
}
if (this._countryCode !== undefined) {
hasAnyValues = true;
internalValueResult.countryCode = this._countryCode;
}
if (this._email !== undefined) {
hasAnyValues = true;
internalValueResult.email = this._email;
}
if (this._extraParams !== undefined) {
hasAnyValues = true;
internalValueResult.extraParams = this._extraParams;
}
if (this._fax !== undefined) {
hasAnyValues = true;
internalValueResult.fax = this._fax;
}
if (this._firstName !== undefined) {
hasAnyValues = true;
internalValueResult.firstName = this._firstName;
}
if (this._lastName !== undefined) {
hasAnyValues = true;
internalValueResult.lastName = this._lastName;
}
if (this._organizationName !== undefined) {
hasAnyValues = true;
internalValueResult.organizationName = this._organizationName;
}
if (this._phoneNumber !== undefined) {
hasAnyValues = true;
internalValueResult.phoneNumber = this._phoneNumber;
}
if (this._state !== undefined) {
hasAnyValues = true;
internalValueResult.state = this._state;
}
if (this._zipCode !== undefined) {
hasAnyValues = true;
internalValueResult.zipCode = this._zipCode;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._addressLine1 = undefined;
this._addressLine2 = undefined;
this._city = undefined;
this._contactType = undefined;
this._countryCode = undefined;
this._email = undefined;
this._extraParams = undefined;
this._fax = undefined;
this._firstName = undefined;
this._lastName = undefined;
this._organizationName = undefined;
this._phoneNumber = undefined;
this._state = undefined;
this._zipCode = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._addressLine1 = value.addressLine1;
this._addressLine2 = value.addressLine2;
this._city = value.city;
this._contactType = value.contactType;
this._countryCode = value.countryCode;
this._email = value.email;
this._extraParams = value.extraParams;
this._fax = value.fax;
this._firstName = value.firstName;
this._lastName = value.lastName;
this._organizationName = value.organizationName;
this._phoneNumber = value.phoneNumber;
this._state = value.state;
this._zipCode = value.zipCode;
}
}
get addressLine1() {
return this.getStringAttribute('address_line_1');
}
set addressLine1(value) {
this._addressLine1 = value;
}
resetAddressLine1() {
this._addressLine1 = undefined;
}
// Temporarily expose input value. Use with caution.
get addressLine1Input() {
return this._addressLine1;
}
get addressLine2() {
return this.getStringAttribute('address_line_2');
}
set addressLine2(value) {
this._addressLine2 = value;
}
resetAddressLine2() {
this._addressLine2 = undefined;
}
// Temporarily expose input value. Use with caution.
get addressLine2Input() {
return this._addressLine2;
}
get city() {
return this.getStringAttribute('city');
}
set city(value) {
this._city = value;
}
resetCity() {
this._city = undefined;
}
// Temporarily expose input value. Use with caution.
get cityInput() {
return this._city;
}
get contactType() {
return this.getStringAttribute('contact_type');
}
set contactType(value) {
this._contactType = value;
}
resetContactType() {
this._contactType = undefined;
}
// Temporarily expose input value. Use with caution.
get contactTypeInput() {
return this._contactType;
}
get countryCode() {
return this.getStringAttribute('country_code');
}
set countryCode(value) {
this._countryCode = value;
}
resetCountryCode() {
this._countryCode = undefined;
}
// Temporarily expose input value. Use with caution.
get countryCodeInput() {
return this._countryCode;
}
get email() {
return this.getStringAttribute('email');
}
set email(value) {
this._email = value;
}
resetEmail() {
this._email = undefined;
}
// Temporarily expose input value. Use with caution.
get emailInput() {
return this._email;
}
get extraParams() {
return this.getStringMapAttribute('extra_params');
}
set extraParams(value) {
this._extraParams = value;
}
resetExtraParams() {
this._extraParams = undefined;
}
// Temporarily expose input value. Use with caution.
get extraParamsInput() {
return this._extraParams;
}
get fax() {
return this.getStringAttribute('fax');
}
set fax(value) {
this._fax = value;
}
resetFax() {
this._fax = undefined;
}
// Temporarily expose input value. Use with caution.
get faxInput() {
return this._fax;
}
get firstName() {
return this.getStringAttribute('first_name');
}
set firstName(value) {
this._firstName = value;
}
resetFirstName() {
this._firstName = undefined;
}
// Temporarily expose input value. Use with caution.
get firstNameInput() {
return this._firstName;
}
get lastName() {
return this.getStringAttribute('last_name');
}
set lastName(value) {
this._lastName = value;
}
resetLastName() {
this._lastName = undefined;
}
// Temporarily expose input value. Use with caution.
get lastNameInput() {
return this._lastName;
}
get organizationName() {
return this.getStringAttribute('organization_name');
}
set organizationName(value) {
this._organizationName = value;
}
resetOrganizationName() {
this._organizationName = undefined;
}
// Temporarily expose input value. Use with caution.
get organizationNameInput() {
return this._organizationName;
}
get phoneNumber() {
return this.getStringAttribute('phone_number');
}
set phoneNumber(value) {
this._phoneNumber = value;
}
resetPhoneNumber() {
this._phoneNumber = undefined;
}
// Temporarily expose input value. Use with caution.
get phoneNumberInput() {
return this._phoneNumber;
}
get state() {
return this.getStringAttribute('state');
}
set state(value) {
this._state = value;
}
resetState() {
this._state = undefined;
}
// Temporarily expose input value. Use with caution.
get stateInput() {
return this._state;
}
get zipCode() {
return this.getStringAttribute('zip_code');
}
set zipCode(value) {
this._zipCode = value;
}
resetZipCode() {
this._zipCode = undefined;
}
// Temporarily expose input value. Use with caution.
get zipCodeInput() {
return this._zipCode;
}
}
exports.Route53DomainsRegisteredDomainBillingContactOutputReference = Route53DomainsRegisteredDomainBillingContactOutputReference;
_b = JSII_RTTI_SYMBOL_1;
Route53DomainsRegisteredDomainBillingContactOutputReference[_b] = { fqn: "@cdktf/provider-aws.route53DomainsRegisteredDomain.Route53DomainsRegisteredDomainBillingContactOutputReference", version: "19.50.0" };
function route53DomainsRegisteredDomainNameServerToTerraform(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 {
glue_ips: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.glueIps),
name: cdktf.stringToTerraform(struct.name),
};
}
exports.route53DomainsRegisteredDomainNameServerToTerraform = route53DomainsRegisteredDomainNameServerToTerraform;
function route53DomainsRegisteredDomainNameServerToHclTerraform(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 = {
glue_ips: {
value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.glueIps),
isBlock: false,
type: "set",
storageClassType: "stringList",
},
name: {
value: cdktf.stringToHclTerraform(struct.name),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.route53DomainsRegisteredDomainNameServerToHclTerraform = route53DomainsRegisteredDomainNameServerToHclTerraform;
class Route53DomainsRegisteredDomainNameServerOutputReference 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._glueIps !== undefined) {
hasAnyValues = true;
internalValueResult.glueIps = this._glueIps;
}
if (this._name !== undefined) {
hasAnyValues = true;
internalValueResult.name = this._name;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._glueIps = undefined;
this._name = 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._glueIps = value.glueIps;
this._name = value.name;
}
}
get glueIps() {
return cdktf.Fn.tolist(this.getListAttribute('glue_ips'));
}
set glueIps(value) {
this._glueIps = value;
}
resetGlueIps() {
this._glueIps = undefined;
}
// Temporarily expose input value. Use with caution.
get glueIpsInput() {
return this._glueIps;
}
get name() {
return this.getStringAttribute('name');
}
set name(value) {
this._name = value;
}
// Temporarily expose input value. Use with caution.
get nameInput() {
return this._name;
}
}
exports.Route53DomainsRegisteredDomainNameServerOutputReference = Route53DomainsRegisteredDomainNameServerOutputReference;
_c = JSII_RTTI_SYMBOL_1;
Route53DomainsRegisteredDomainNameServerOutputReference[_c] = { fqn: "@cdktf/provider-aws.route53DomainsRegisteredDomain.Route53DomainsRegisteredDomainNameServerOutputReference", version: "19.50.0" };
class Route53DomainsRegisteredDomainNameServerList 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 Route53DomainsRegisteredDomainNameServerOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.Route53DomainsRegisteredDomainNameServerList = Route53DomainsRegisteredDomainNameServerList;
_d = JSII_RTTI_SYMBOL_1;
Route53DomainsRegisteredDomainNameServerList[_d] = { fqn: "@cdktf/provider-aws.route53DomainsRegisteredDomain.Route53DomainsRegisteredDomainNameServerList", version: "19.50.0" };
function route53DomainsRegisteredDomainRegistrantContactToTerraform(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_line_1: cdktf.stringToTerraform(struct.addressLine1),
address_line_2: cdktf.stringToTerraform(struct.addressLine2),
city: cdktf.stringToTerraform(struct.city),
contact_type: cdktf.stringToTerraform(struct.contactType),
country_code: cdktf.stringToTerraform(struct.countryCode),
email: cdktf.stringToTerraform(struct.email),
extra_params: cdktf.hashMapper(cdktf.stringToTerraform)(struct.extraParams),
fax: cdktf.stringToTerraform(struct.fax),
first_name: cdktf.stringToTerraform(struct.firstName),
last_name: cdktf.stringToTerraform(struct.lastName),
organization_name: cdktf.stringToTerraform(struct.organizationName),
phone_number: cdktf.stringToTerraform(struct.phoneNumber),
state: cdktf.stringToTerraform(struct.state),
zip_code: cdktf.stringToTerraform(struct.zipCode),
};
}
exports.route53DomainsRegisteredDomainRegistrantContactToTerraform = route53DomainsRegisteredDomainRegistrantContactToTerraform;
function route53DomainsRegisteredDomainRegistrantContactToHclTerraform(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_line_1: {
value: cdktf.stringToHclTerraform(struct.addressLine1),
isBlock: false,
type: "simple",
storageClassType: "string",
},
address_line_2: {
value: cdktf.stringToHclTerraform(struct.addressLine2),
isBlock: false,
type: "simple",
storageClassType: "string",
},
city: {
value: cdktf.stringToHclTerraform(struct.city),
isBlock: false,
type: "simple",
storageClassType: "string",
},
contact_type: {
value: cdktf.stringToHclTerraform(struct.contactType),
isBlock: false,
type: "simple",
storageClassType: "string",
},
country_code: {
value: cdktf.stringToHclTerraform(struct.countryCode),
isBlock: false,
type: "simple",
storageClassType: "string",
},
email: {
value: cdktf.stringToHclTerraform(struct.email),
isBlock: false,
type: "simple",
storageClassType: "string",
},
extra_params: {
value: cdktf.hashMapperHcl(cdktf.stringToHclTerraform)(struct.extraParams),
isBlock: false,
type: "map",
storageClassType: "stringMap",
},
fax: {
value: cdktf.stringToHclTerraform(struct.fax),
isBlock: false,
type: "simple",
storageClassType: "string",
},
first_name: {
value: cdktf.stringToHclTerraform(struct.firstName),
isBlock: false,
type: "simple",
storageClassType: "string",
},
last_name: {
value: cdktf.stringToHclTerraform(struct.lastName),
isBlock: false,
type: "simple",
storageClassType: "string",
},
organization_name: {
value: cdktf.stringToHclTerraform(struct.organizationName),
isBlock: false,
type: "simple",
storageClassType: "string",
},
phone_number: {
value: cdktf.stringToHclTerraform(struct.phoneNumber),
isBlock: false,
type: "simple",
storageClassType: "string",
},
state: {
value: cdktf.stringToHclTerraform(struct.state),
isBlock: false,
type: "simple",
storageClassType: "string",
},
zip_code: {
value: cdktf.stringToHclTerraform(struct.zipCode),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.route53DomainsRegisteredDomainRegistrantContactToHclTerraform = route53DomainsRegisteredDomainRegistrantContactToHclTerraform;
class Route53DomainsRegisteredDomainRegistrantContactOutputReference 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._addressLine1 !== undefined) {
hasAnyValues = true;
internalValueResult.addressLine1 = this._addressLine1;
}
if (this._addressLine2 !== undefined) {
hasAnyValues = true;
internalValueResult.addressLine2 = this._addressLine2;
}
if (this._city !== undefined) {
hasAnyValues = true;
internalValueResult.city = this._city;
}
if (this._contactType !== undefined) {
hasAnyValues = true;
internalValueResult.contactType = this._contactType;
}
if (this._countryCode !== undefined) {
hasAnyValues = true;
internalValueResult.countryCode = this._countryCode;
}
if (this._email !== undefined) {
hasAnyValues = true;
internalValueResult.email = this._email;
}
if (this._extraParams !== undefined) {
hasAnyValues = true;
internalValueResult.extraParams = this._extraParams;
}
if (this._fax !== undefined) {
hasAnyValues = true;
internalValueResult.fax = this._fax;
}
if (this._firstName !== undefined) {
hasAnyValues = true;
internalValueResult.firstName = this._firstName;
}
if (this._lastName !== undefined) {
hasAnyValues = true;
internalValueResult.lastName = this._lastName;
}
if (this._organizationName !== undefined) {
hasAnyValues = true;
internalValueResult.organizationName = this._organizationName;
}
if (this._phoneNumber !== undefined) {
hasAnyValues = true;
internalValueResult.phoneNumber = this._phoneNumber;
}
if (this._state !== undefined) {
hasAnyValues = true;
internalValueResult.state = this._state;
}
if (this._zipCode !== undefined) {
hasAnyValues = true;
internalValueResult.zipCode = this._zipCode;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._addressLine1 = undefined;
this._addressLine2 = undefined;
this._city = undefined;
this._contactType = undefined;
this._countryCode = undefined;
this._email = undefined;
this._extraParams = undefined;
this._fax = undefined;
this._firstName = undefined;
this._lastName = undefined;
this._organizationName = undefined;
this._phoneNumber = undefined;
this._state = undefined;
this._zipCode = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._addressLine1 = value.addressLine1;
this._addressLine2 = value.addressLine2;
this._city = value.city;
this._contactType = value.contactType;
this._countryCode = value.countryCode;
this._email = value.email;
this._extraParams = value.extraParams;
this._fax = value.fax;
this._firstName = value.firstName;
this._lastName = value.lastName;
this._organizationName = value.organizationName;
this._phoneNumber = value.phoneNumber;
this._state = value.state;
this._zipCode = value.zipCode;
}
}
get addressLine1() {
return this.getStringAttribute('address_line_1');
}
set addressLine1(value) {
this._addressLine1 = value;
}
resetAddressLine1() {
this._addressLine1 = undefined;
}
// Temporarily expose input value. Use with caution.
get addressLine1Input() {
return this._addressLine1;
}
get addressLine2() {
return this.getStringAttribute('address_line_2');
}
set addressLine2(value) {
this._addressLine2 = value;
}
resetAddressLine2() {
this._addressLine2 = undefined;
}
// Temporarily expose input value. Use with caution.
get addressLine2Input() {
return this._addressLine2;
}
get city() {
return this.getStringAttribute('city');
}
set city(value) {
this._city = value;
}
resetCity() {
this._city = undefined;
}
// Temporarily expose input value. Use with caution.
get cityInput() {
return this._city;
}
get contactType() {
return this.getStringAttribute('contact_type');
}
set contactType(value) {
this._contactType = value;
}
resetContactType() {
this._contactType = undefined;
}
// Temporarily expose input value. Use with caution.
get contactTypeInput() {
return this._contactType;
}
get countryCode() {
return this.getStringAttribute('country_code');
}
set countryCode(value) {
this._countryCode = value;
}
resetCountryCode() {
this._countryCode = undefined;
}
// Temporarily expose input value. Use with caution.
get countryCodeInput() {
return this._countryCode;
}
get email() {
return this.getStringAttribute('email');
}
set email(value) {
this._email = value;
}
resetEmail() {
this._email = undefined;
}
// Temporarily expose input value. Use with caution.
get emailInput() {
return this._email;
}
get extraParams() {
return this.getStringMapAttribute('extra_params');
}
set extraParams(value) {
this._extraParams = value;
}
resetExtraParams() {
this._extraParams = undefined;
}
// Temporarily expose input value. Use with caution.
get extraParamsInput() {
return this._extraParams;
}
get fax() {
return this.getStringAttribute('fax');
}
set fax(value) {
this._fax = value;
}
resetFax() {
this._fax = undefined;
}
// Temporarily expose input value. Use with caution.
get faxInput() {
return this._fax;
}
get firstName() {
return this.getStringAttribute('first_name');
}
set firstName(value) {
this._firstName = value;
}
resetFirstName() {
this._firstName = undefined;
}
// Temporarily expose input value. Use with caution.
get firstNameInput() {
return this._firstName;
}
get lastName() {
return this.getStringAttribute('last_name');
}
set lastName(value) {
this._lastName = value;
}
resetLastName() {
this._lastName = undefined;
}
// Temporarily expose input value. Use with caution.
get lastNameInput() {
return this._lastName;
}
get organizationName() {
return this.getStringAttribute('organization_name');
}
set organizationName(value) {
this._organizationName = value;
}
resetOrganizationName() {
this._organizationName = undefined;
}
// Temporarily expose input value. Use with caution.
get organizationNameInput() {
return this._organizationName;
}
get phoneNumber() {
return this.getStringAttribute('phone_number');
}
set phoneNumber(value) {
this._phoneNumber = value;
}
resetPhoneNumber() {
this._phoneNumber = undefined;
}
// Temporarily expose input value. Use with caution.
get phoneNumberInput() {
return this._phoneNumber;
}
get state() {
return this.getStringAttribute('state');
}
set state(value) {
this._state = value;
}
resetState() {
this._state = undefined;
}
// Temporarily expose input value. Use with caution.
get stateInput() {
return this._state;
}
get zipCode() {
return this.getStringAttribute('zip_code');
}
set zipCode(value) {
this._zipCode = value;
}
resetZipCode() {
this._zipCode = undefined;
}
// Temporarily expose input value. Use with caution.
get zipCodeInput() {
return this._zipCode;
}
}
exports.Route53DomainsRegisteredDomainRegistrantContactOutputReference = Route53DomainsRegisteredDomainRegistrantContactOutputReference;
_e = JSII_RTTI_SYMBOL_1;
Route53DomainsRegisteredDomainRegistrantContactOutputReference[_e] = { fqn: "@cdktf/provider-aws.route53DomainsRegisteredDomain.Route53DomainsRegisteredDomainRegistrantContactOutputReference", version: "19.50.0" };
function route53DomainsRegisteredDomainTechContactToTerraform(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_line_1: cdktf.stringToTerraform(struct.addressLine1),
address_line_2: cdktf.stringToTerraform(struct.addressLine2),
city: cdktf.stringToTerraform(struct.city),
contact_type: cdktf.stringToTerraform(struct.contactType),
country_code: cdktf.stringToTerraform(str