@cdktf/provider-aws
Version:
Prebuilt aws Provider for Terraform CDK (cdktf)
1,142 lines • 334 kB
JavaScript
"use strict";
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ApprunnerService = exports.ApprunnerServiceSourceConfigurationOutputReference = exports.ApprunnerServiceSourceConfigurationImageRepositoryOutputReference = exports.ApprunnerServiceSourceConfigurationImageRepositoryImageConfigurationOutputReference = exports.ApprunnerServiceSourceConfigurationCodeRepositoryOutputReference = exports.ApprunnerServiceSourceConfigurationCodeRepositorySourceCodeVersionOutputReference = exports.ApprunnerServiceSourceConfigurationCodeRepositoryCodeConfigurationOutputReference = exports.ApprunnerServiceSourceConfigurationCodeRepositoryCodeConfigurationCodeConfigurationValuesOutputReference = exports.ApprunnerServiceSourceConfigurationAuthenticationConfigurationOutputReference = exports.ApprunnerServiceObservabilityConfigurationOutputReference = exports.ApprunnerServiceNetworkConfigurationOutputReference = exports.ApprunnerServiceNetworkConfigurationIngressConfigurationOutputReference = exports.ApprunnerServiceNetworkConfigurationEgressConfigurationOutputReference = exports.ApprunnerServiceInstanceConfigurationOutputReference = exports.ApprunnerServiceHealthCheckConfigurationOutputReference = exports.ApprunnerServiceEncryptionConfigurationOutputReference = void 0;
exports.apprunnerServiceEncryptionConfigurationToTerraform = apprunnerServiceEncryptionConfigurationToTerraform;
exports.apprunnerServiceEncryptionConfigurationToHclTerraform = apprunnerServiceEncryptionConfigurationToHclTerraform;
exports.apprunnerServiceHealthCheckConfigurationToTerraform = apprunnerServiceHealthCheckConfigurationToTerraform;
exports.apprunnerServiceHealthCheckConfigurationToHclTerraform = apprunnerServiceHealthCheckConfigurationToHclTerraform;
exports.apprunnerServiceInstanceConfigurationToTerraform = apprunnerServiceInstanceConfigurationToTerraform;
exports.apprunnerServiceInstanceConfigurationToHclTerraform = apprunnerServiceInstanceConfigurationToHclTerraform;
exports.apprunnerServiceNetworkConfigurationEgressConfigurationToTerraform = apprunnerServiceNetworkConfigurationEgressConfigurationToTerraform;
exports.apprunnerServiceNetworkConfigurationEgressConfigurationToHclTerraform = apprunnerServiceNetworkConfigurationEgressConfigurationToHclTerraform;
exports.apprunnerServiceNetworkConfigurationIngressConfigurationToTerraform = apprunnerServiceNetworkConfigurationIngressConfigurationToTerraform;
exports.apprunnerServiceNetworkConfigurationIngressConfigurationToHclTerraform = apprunnerServiceNetworkConfigurationIngressConfigurationToHclTerraform;
exports.apprunnerServiceNetworkConfigurationToTerraform = apprunnerServiceNetworkConfigurationToTerraform;
exports.apprunnerServiceNetworkConfigurationToHclTerraform = apprunnerServiceNetworkConfigurationToHclTerraform;
exports.apprunnerServiceObservabilityConfigurationToTerraform = apprunnerServiceObservabilityConfigurationToTerraform;
exports.apprunnerServiceObservabilityConfigurationToHclTerraform = apprunnerServiceObservabilityConfigurationToHclTerraform;
exports.apprunnerServiceSourceConfigurationAuthenticationConfigurationToTerraform = apprunnerServiceSourceConfigurationAuthenticationConfigurationToTerraform;
exports.apprunnerServiceSourceConfigurationAuthenticationConfigurationToHclTerraform = apprunnerServiceSourceConfigurationAuthenticationConfigurationToHclTerraform;
exports.apprunnerServiceSourceConfigurationCodeRepositoryCodeConfigurationCodeConfigurationValuesToTerraform = apprunnerServiceSourceConfigurationCodeRepositoryCodeConfigurationCodeConfigurationValuesToTerraform;
exports.apprunnerServiceSourceConfigurationCodeRepositoryCodeConfigurationCodeConfigurationValuesToHclTerraform = apprunnerServiceSourceConfigurationCodeRepositoryCodeConfigurationCodeConfigurationValuesToHclTerraform;
exports.apprunnerServiceSourceConfigurationCodeRepositoryCodeConfigurationToTerraform = apprunnerServiceSourceConfigurationCodeRepositoryCodeConfigurationToTerraform;
exports.apprunnerServiceSourceConfigurationCodeRepositoryCodeConfigurationToHclTerraform = apprunnerServiceSourceConfigurationCodeRepositoryCodeConfigurationToHclTerraform;
exports.apprunnerServiceSourceConfigurationCodeRepositorySourceCodeVersionToTerraform = apprunnerServiceSourceConfigurationCodeRepositorySourceCodeVersionToTerraform;
exports.apprunnerServiceSourceConfigurationCodeRepositorySourceCodeVersionToHclTerraform = apprunnerServiceSourceConfigurationCodeRepositorySourceCodeVersionToHclTerraform;
exports.apprunnerServiceSourceConfigurationCodeRepositoryToTerraform = apprunnerServiceSourceConfigurationCodeRepositoryToTerraform;
exports.apprunnerServiceSourceConfigurationCodeRepositoryToHclTerraform = apprunnerServiceSourceConfigurationCodeRepositoryToHclTerraform;
exports.apprunnerServiceSourceConfigurationImageRepositoryImageConfigurationToTerraform = apprunnerServiceSourceConfigurationImageRepositoryImageConfigurationToTerraform;
exports.apprunnerServiceSourceConfigurationImageRepositoryImageConfigurationToHclTerraform = apprunnerServiceSourceConfigurationImageRepositoryImageConfigurationToHclTerraform;
exports.apprunnerServiceSourceConfigurationImageRepositoryToTerraform = apprunnerServiceSourceConfigurationImageRepositoryToTerraform;
exports.apprunnerServiceSourceConfigurationImageRepositoryToHclTerraform = apprunnerServiceSourceConfigurationImageRepositoryToHclTerraform;
exports.apprunnerServiceSourceConfigurationToTerraform = apprunnerServiceSourceConfigurationToTerraform;
exports.apprunnerServiceSourceConfigurationToHclTerraform = apprunnerServiceSourceConfigurationToHclTerraform;
const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
const cdktf = require("cdktf");
function apprunnerServiceEncryptionConfigurationToTerraform(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 {
kms_key: cdktf.stringToTerraform(struct.kmsKey),
};
}
function apprunnerServiceEncryptionConfigurationToHclTerraform(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 = {
kms_key: {
value: cdktf.stringToHclTerraform(struct.kmsKey),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class ApprunnerServiceEncryptionConfigurationOutputReference 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._kmsKey !== undefined) {
hasAnyValues = true;
internalValueResult.kmsKey = this._kmsKey;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._kmsKey = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._kmsKey = value.kmsKey;
}
}
get kmsKey() {
return this.getStringAttribute('kms_key');
}
set kmsKey(value) {
this._kmsKey = value;
}
// Temporarily expose input value. Use with caution.
get kmsKeyInput() {
return this._kmsKey;
}
}
exports.ApprunnerServiceEncryptionConfigurationOutputReference = ApprunnerServiceEncryptionConfigurationOutputReference;
_a = JSII_RTTI_SYMBOL_1;
ApprunnerServiceEncryptionConfigurationOutputReference[_a] = { fqn: "@cdktf/provider-aws.apprunnerService.ApprunnerServiceEncryptionConfigurationOutputReference", version: "21.22.1" };
function apprunnerServiceHealthCheckConfigurationToTerraform(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 {
healthy_threshold: cdktf.numberToTerraform(struct.healthyThreshold),
interval: cdktf.numberToTerraform(struct.interval),
path: cdktf.stringToTerraform(struct.path),
protocol: cdktf.stringToTerraform(struct.protocol),
timeout: cdktf.numberToTerraform(struct.timeout),
unhealthy_threshold: cdktf.numberToTerraform(struct.unhealthyThreshold),
};
}
function apprunnerServiceHealthCheckConfigurationToHclTerraform(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 = {
healthy_threshold: {
value: cdktf.numberToHclTerraform(struct.healthyThreshold),
isBlock: false,
type: "simple",
storageClassType: "number",
},
interval: {
value: cdktf.numberToHclTerraform(struct.interval),
isBlock: false,
type: "simple",
storageClassType: "number",
},
path: {
value: cdktf.stringToHclTerraform(struct.path),
isBlock: false,
type: "simple",
storageClassType: "string",
},
protocol: {
value: cdktf.stringToHclTerraform(struct.protocol),
isBlock: false,
type: "simple",
storageClassType: "string",
},
timeout: {
value: cdktf.numberToHclTerraform(struct.timeout),
isBlock: false,
type: "simple",
storageClassType: "number",
},
unhealthy_threshold: {
value: cdktf.numberToHclTerraform(struct.unhealthyThreshold),
isBlock: false,
type: "simple",
storageClassType: "number",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class ApprunnerServiceHealthCheckConfigurationOutputReference 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._healthyThreshold !== undefined) {
hasAnyValues = true;
internalValueResult.healthyThreshold = this._healthyThreshold;
}
if (this._interval !== undefined) {
hasAnyValues = true;
internalValueResult.interval = this._interval;
}
if (this._path !== undefined) {
hasAnyValues = true;
internalValueResult.path = this._path;
}
if (this._protocol !== undefined) {
hasAnyValues = true;
internalValueResult.protocol = this._protocol;
}
if (this._timeout !== undefined) {
hasAnyValues = true;
internalValueResult.timeout = this._timeout;
}
if (this._unhealthyThreshold !== undefined) {
hasAnyValues = true;
internalValueResult.unhealthyThreshold = this._unhealthyThreshold;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._healthyThreshold = undefined;
this._interval = undefined;
this._path = undefined;
this._protocol = undefined;
this._timeout = undefined;
this._unhealthyThreshold = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._healthyThreshold = value.healthyThreshold;
this._interval = value.interval;
this._path = value.path;
this._protocol = value.protocol;
this._timeout = value.timeout;
this._unhealthyThreshold = value.unhealthyThreshold;
}
}
get healthyThreshold() {
return this.getNumberAttribute('healthy_threshold');
}
set healthyThreshold(value) {
this._healthyThreshold = value;
}
resetHealthyThreshold() {
this._healthyThreshold = undefined;
}
// Temporarily expose input value. Use with caution.
get healthyThresholdInput() {
return this._healthyThreshold;
}
get interval() {
return this.getNumberAttribute('interval');
}
set interval(value) {
this._interval = value;
}
resetInterval() {
this._interval = undefined;
}
// Temporarily expose input value. Use with caution.
get intervalInput() {
return this._interval;
}
get path() {
return this.getStringAttribute('path');
}
set path(value) {
this._path = value;
}
resetPath() {
this._path = undefined;
}
// Temporarily expose input value. Use with caution.
get pathInput() {
return this._path;
}
get protocol() {
return this.getStringAttribute('protocol');
}
set protocol(value) {
this._protocol = value;
}
resetProtocol() {
this._protocol = undefined;
}
// Temporarily expose input value. Use with caution.
get protocolInput() {
return this._protocol;
}
get timeout() {
return this.getNumberAttribute('timeout');
}
set timeout(value) {
this._timeout = value;
}
resetTimeout() {
this._timeout = undefined;
}
// Temporarily expose input value. Use with caution.
get timeoutInput() {
return this._timeout;
}
get unhealthyThreshold() {
return this.getNumberAttribute('unhealthy_threshold');
}
set unhealthyThreshold(value) {
this._unhealthyThreshold = value;
}
resetUnhealthyThreshold() {
this._unhealthyThreshold = undefined;
}
// Temporarily expose input value. Use with caution.
get unhealthyThresholdInput() {
return this._unhealthyThreshold;
}
}
exports.ApprunnerServiceHealthCheckConfigurationOutputReference = ApprunnerServiceHealthCheckConfigurationOutputReference;
_b = JSII_RTTI_SYMBOL_1;
ApprunnerServiceHealthCheckConfigurationOutputReference[_b] = { fqn: "@cdktf/provider-aws.apprunnerService.ApprunnerServiceHealthCheckConfigurationOutputReference", version: "21.22.1" };
function apprunnerServiceInstanceConfigurationToTerraform(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 {
cpu: cdktf.stringToTerraform(struct.cpu),
instance_role_arn: cdktf.stringToTerraform(struct.instanceRoleArn),
memory: cdktf.stringToTerraform(struct.memory),
};
}
function apprunnerServiceInstanceConfigurationToHclTerraform(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 = {
cpu: {
value: cdktf.stringToHclTerraform(struct.cpu),
isBlock: false,
type: "simple",
storageClassType: "string",
},
instance_role_arn: {
value: cdktf.stringToHclTerraform(struct.instanceRoleArn),
isBlock: false,
type: "simple",
storageClassType: "string",
},
memory: {
value: cdktf.stringToHclTerraform(struct.memory),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class ApprunnerServiceInstanceConfigurationOutputReference 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._cpu !== undefined) {
hasAnyValues = true;
internalValueResult.cpu = this._cpu;
}
if (this._instanceRoleArn !== undefined) {
hasAnyValues = true;
internalValueResult.instanceRoleArn = this._instanceRoleArn;
}
if (this._memory !== undefined) {
hasAnyValues = true;
internalValueResult.memory = this._memory;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._cpu = undefined;
this._instanceRoleArn = undefined;
this._memory = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._cpu = value.cpu;
this._instanceRoleArn = value.instanceRoleArn;
this._memory = value.memory;
}
}
get cpu() {
return this.getStringAttribute('cpu');
}
set cpu(value) {
this._cpu = value;
}
resetCpu() {
this._cpu = undefined;
}
// Temporarily expose input value. Use with caution.
get cpuInput() {
return this._cpu;
}
get instanceRoleArn() {
return this.getStringAttribute('instance_role_arn');
}
set instanceRoleArn(value) {
this._instanceRoleArn = value;
}
resetInstanceRoleArn() {
this._instanceRoleArn = undefined;
}
// Temporarily expose input value. Use with caution.
get instanceRoleArnInput() {
return this._instanceRoleArn;
}
get memory() {
return this.getStringAttribute('memory');
}
set memory(value) {
this._memory = value;
}
resetMemory() {
this._memory = undefined;
}
// Temporarily expose input value. Use with caution.
get memoryInput() {
return this._memory;
}
}
exports.ApprunnerServiceInstanceConfigurationOutputReference = ApprunnerServiceInstanceConfigurationOutputReference;
_c = JSII_RTTI_SYMBOL_1;
ApprunnerServiceInstanceConfigurationOutputReference[_c] = { fqn: "@cdktf/provider-aws.apprunnerService.ApprunnerServiceInstanceConfigurationOutputReference", version: "21.22.1" };
function apprunnerServiceNetworkConfigurationEgressConfigurationToTerraform(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 {
egress_type: cdktf.stringToTerraform(struct.egressType),
vpc_connector_arn: cdktf.stringToTerraform(struct.vpcConnectorArn),
};
}
function apprunnerServiceNetworkConfigurationEgressConfigurationToHclTerraform(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 = {
egress_type: {
value: cdktf.stringToHclTerraform(struct.egressType),
isBlock: false,
type: "simple",
storageClassType: "string",
},
vpc_connector_arn: {
value: cdktf.stringToHclTerraform(struct.vpcConnectorArn),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class ApprunnerServiceNetworkConfigurationEgressConfigurationOutputReference 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._egressType !== undefined) {
hasAnyValues = true;
internalValueResult.egressType = this._egressType;
}
if (this._vpcConnectorArn !== undefined) {
hasAnyValues = true;
internalValueResult.vpcConnectorArn = this._vpcConnectorArn;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._egressType = undefined;
this._vpcConnectorArn = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._egressType = value.egressType;
this._vpcConnectorArn = value.vpcConnectorArn;
}
}
get egressType() {
return this.getStringAttribute('egress_type');
}
set egressType(value) {
this._egressType = value;
}
resetEgressType() {
this._egressType = undefined;
}
// Temporarily expose input value. Use with caution.
get egressTypeInput() {
return this._egressType;
}
get vpcConnectorArn() {
return this.getStringAttribute('vpc_connector_arn');
}
set vpcConnectorArn(value) {
this._vpcConnectorArn = value;
}
resetVpcConnectorArn() {
this._vpcConnectorArn = undefined;
}
// Temporarily expose input value. Use with caution.
get vpcConnectorArnInput() {
return this._vpcConnectorArn;
}
}
exports.ApprunnerServiceNetworkConfigurationEgressConfigurationOutputReference = ApprunnerServiceNetworkConfigurationEgressConfigurationOutputReference;
_d = JSII_RTTI_SYMBOL_1;
ApprunnerServiceNetworkConfigurationEgressConfigurationOutputReference[_d] = { fqn: "@cdktf/provider-aws.apprunnerService.ApprunnerServiceNetworkConfigurationEgressConfigurationOutputReference", version: "21.22.1" };
function apprunnerServiceNetworkConfigurationIngressConfigurationToTerraform(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 {
is_publicly_accessible: cdktf.booleanToTerraform(struct.isPubliclyAccessible),
};
}
function apprunnerServiceNetworkConfigurationIngressConfigurationToHclTerraform(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 = {
is_publicly_accessible: {
value: cdktf.booleanToHclTerraform(struct.isPubliclyAccessible),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class ApprunnerServiceNetworkConfigurationIngressConfigurationOutputReference 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._isPubliclyAccessible !== undefined) {
hasAnyValues = true;
internalValueResult.isPubliclyAccessible = this._isPubliclyAccessible;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._isPubliclyAccessible = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._isPubliclyAccessible = value.isPubliclyAccessible;
}
}
get isPubliclyAccessible() {
return this.getBooleanAttribute('is_publicly_accessible');
}
set isPubliclyAccessible(value) {
this._isPubliclyAccessible = value;
}
resetIsPubliclyAccessible() {
this._isPubliclyAccessible = undefined;
}
// Temporarily expose input value. Use with caution.
get isPubliclyAccessibleInput() {
return this._isPubliclyAccessible;
}
}
exports.ApprunnerServiceNetworkConfigurationIngressConfigurationOutputReference = ApprunnerServiceNetworkConfigurationIngressConfigurationOutputReference;
_e = JSII_RTTI_SYMBOL_1;
ApprunnerServiceNetworkConfigurationIngressConfigurationOutputReference[_e] = { fqn: "@cdktf/provider-aws.apprunnerService.ApprunnerServiceNetworkConfigurationIngressConfigurationOutputReference", version: "21.22.1" };
function apprunnerServiceNetworkConfigurationToTerraform(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 {
ip_address_type: cdktf.stringToTerraform(struct.ipAddressType),
egress_configuration: apprunnerServiceNetworkConfigurationEgressConfigurationToTerraform(struct.egressConfiguration),
ingress_configuration: apprunnerServiceNetworkConfigurationIngressConfigurationToTerraform(struct.ingressConfiguration),
};
}
function apprunnerServiceNetworkConfigurationToHclTerraform(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 = {
ip_address_type: {
value: cdktf.stringToHclTerraform(struct.ipAddressType),
isBlock: false,
type: "simple",
storageClassType: "string",
},
egress_configuration: {
value: apprunnerServiceNetworkConfigurationEgressConfigurationToHclTerraform(struct.egressConfiguration),
isBlock: true,
type: "list",
storageClassType: "ApprunnerServiceNetworkConfigurationEgressConfigurationList",
},
ingress_configuration: {
value: apprunnerServiceNetworkConfigurationIngressConfigurationToHclTerraform(struct.ingressConfiguration),
isBlock: true,
type: "list",
storageClassType: "ApprunnerServiceNetworkConfigurationIngressConfigurationList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class ApprunnerServiceNetworkConfigurationOutputReference 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;
// egress_configuration - computed: false, optional: true, required: false
this._egressConfiguration = new ApprunnerServiceNetworkConfigurationEgressConfigurationOutputReference(this, "egress_configuration");
// ingress_configuration - computed: false, optional: true, required: false
this._ingressConfiguration = new ApprunnerServiceNetworkConfigurationIngressConfigurationOutputReference(this, "ingress_configuration");
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._ipAddressType !== undefined) {
hasAnyValues = true;
internalValueResult.ipAddressType = this._ipAddressType;
}
if (this._egressConfiguration?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.egressConfiguration = this._egressConfiguration?.internalValue;
}
if (this._ingressConfiguration?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.ingressConfiguration = this._ingressConfiguration?.internalValue;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._ipAddressType = undefined;
this._egressConfiguration.internalValue = undefined;
this._ingressConfiguration.internalValue = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._ipAddressType = value.ipAddressType;
this._egressConfiguration.internalValue = value.egressConfiguration;
this._ingressConfiguration.internalValue = value.ingressConfiguration;
}
}
get ipAddressType() {
return this.getStringAttribute('ip_address_type');
}
set ipAddressType(value) {
this._ipAddressType = value;
}
resetIpAddressType() {
this._ipAddressType = undefined;
}
// Temporarily expose input value. Use with caution.
get ipAddressTypeInput() {
return this._ipAddressType;
}
get egressConfiguration() {
return this._egressConfiguration;
}
putEgressConfiguration(value) {
this._egressConfiguration.internalValue = value;
}
resetEgressConfiguration() {
this._egressConfiguration.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get egressConfigurationInput() {
return this._egressConfiguration.internalValue;
}
get ingressConfiguration() {
return this._ingressConfiguration;
}
putIngressConfiguration(value) {
this._ingressConfiguration.internalValue = value;
}
resetIngressConfiguration() {
this._ingressConfiguration.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get ingressConfigurationInput() {
return this._ingressConfiguration.internalValue;
}
}
exports.ApprunnerServiceNetworkConfigurationOutputReference = ApprunnerServiceNetworkConfigurationOutputReference;
_f = JSII_RTTI_SYMBOL_1;
ApprunnerServiceNetworkConfigurationOutputReference[_f] = { fqn: "@cdktf/provider-aws.apprunnerService.ApprunnerServiceNetworkConfigurationOutputReference", version: "21.22.1" };
function apprunnerServiceObservabilityConfigurationToTerraform(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 {
observability_configuration_arn: cdktf.stringToTerraform(struct.observabilityConfigurationArn),
observability_enabled: cdktf.booleanToTerraform(struct.observabilityEnabled),
};
}
function apprunnerServiceObservabilityConfigurationToHclTerraform(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 = {
observability_configuration_arn: {
value: cdktf.stringToHclTerraform(struct.observabilityConfigurationArn),
isBlock: false,
type: "simple",
storageClassType: "string",
},
observability_enabled: {
value: cdktf.booleanToHclTerraform(struct.observabilityEnabled),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class ApprunnerServiceObservabilityConfigurationOutputReference 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._observabilityConfigurationArn !== undefined) {
hasAnyValues = true;
internalValueResult.observabilityConfigurationArn = this._observabilityConfigurationArn;
}
if (this._observabilityEnabled !== undefined) {
hasAnyValues = true;
internalValueResult.observabilityEnabled = this._observabilityEnabled;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._observabilityConfigurationArn = undefined;
this._observabilityEnabled = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._observabilityConfigurationArn = value.observabilityConfigurationArn;
this._observabilityEnabled = value.observabilityEnabled;
}
}
get observabilityConfigurationArn() {
return this.getStringAttribute('observability_configuration_arn');
}
set observabilityConfigurationArn(value) {
this._observabilityConfigurationArn = value;
}
resetObservabilityConfigurationArn() {
this._observabilityConfigurationArn = undefined;
}
// Temporarily expose input value. Use with caution.
get observabilityConfigurationArnInput() {
return this._observabilityConfigurationArn;
}
get observabilityEnabled() {
return this.getBooleanAttribute('observability_enabled');
}
set observabilityEnabled(value) {
this._observabilityEnabled = value;
}
// Temporarily expose input value. Use with caution.
get observabilityEnabledInput() {
return this._observabilityEnabled;
}
}
exports.ApprunnerServiceObservabilityConfigurationOutputReference = ApprunnerServiceObservabilityConfigurationOutputReference;
_g = JSII_RTTI_SYMBOL_1;
ApprunnerServiceObservabilityConfigurationOutputReference[_g] = { fqn: "@cdktf/provider-aws.apprunnerService.ApprunnerServiceObservabilityConfigurationOutputReference", version: "21.22.1" };
function apprunnerServiceSourceConfigurationAuthenticationConfigurationToTerraform(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 {
access_role_arn: cdktf.stringToTerraform(struct.accessRoleArn),
connection_arn: cdktf.stringToTerraform(struct.connectionArn),
};
}
function apprunnerServiceSourceConfigurationAuthenticationConfigurationToHclTerraform(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 = {
access_role_arn: {
value: cdktf.stringToHclTerraform(struct.accessRoleArn),
isBlock: false,
type: "simple",
storageClassType: "string",
},
connection_arn: {
value: cdktf.stringToHclTerraform(struct.connectionArn),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class ApprunnerServiceSourceConfigurationAuthenticationConfigurationOutputReference 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._accessRoleArn !== undefined) {
hasAnyValues = true;
internalValueResult.accessRoleArn = this._accessRoleArn;
}
if (this._connectionArn !== undefined) {
hasAnyValues = true;
internalValueResult.connectionArn = this._connectionArn;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._accessRoleArn = undefined;
this._connectionArn = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._accessRoleArn = value.accessRoleArn;
this._connectionArn = value.connectionArn;
}
}
get accessRoleArn() {
return this.getStringAttribute('access_role_arn');
}
set accessRoleArn(value) {
this._accessRoleArn = value;
}
resetAccessRoleArn() {
this._accessRoleArn = undefined;
}
// Temporarily expose input value. Use with caution.
get accessRoleArnInput() {
return this._accessRoleArn;
}
get connectionArn() {
return this.getStringAttribute('connection_arn');
}
set connectionArn(value) {
this._connectionArn = value;
}
resetConnectionArn() {
this._connectionArn = undefined;
}
// Temporarily expose input value. Use with caution.
get connectionArnInput() {
return this._connectionArn;
}
}
exports.ApprunnerServiceSourceConfigurationAuthenticationConfigurationOutputReference = ApprunnerServiceSourceConfigurationAuthenticationConfigurationOutputReference;
_h = JSII_RTTI_SYMBOL_1;
ApprunnerServiceSourceConfigurationAuthenticationConfigurationOutputReference[_h] = { fqn: "@cdktf/provider-aws.apprunnerService.ApprunnerServiceSourceConfigurationAuthenticationConfigurationOutputReference", version: "21.22.1" };
function apprunnerServiceSourceConfigurationCodeRepositoryCodeConfigurationCodeConfigurationValuesToTerraform(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 {
build_command: cdktf.stringToTerraform(struct.buildCommand),
port: cdktf.stringToTerraform(struct.port),
runtime: cdktf.stringToTerraform(struct.runtime),
runtime_environment_secrets: cdktf.hashMapper(cdktf.stringToTerraform)(struct.runtimeEnvironmentSecrets),
runtime_environment_variables: cdktf.hashMapper(cdktf.stringToTerraform)(struct.runtimeEnvironmentVariables),
start_command: cdktf.stringToTerraform(struct.startCommand),
};
}
function apprunnerServiceSourceConfigurationCodeRepositoryCodeConfigurationCodeConfigurationValuesToHclTerraform(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 = {
build_command: {
value: cdktf.stringToHclTerraform(struct.buildCommand),
isBlock: false,
type: "simple",
storageClassType: "string",
},
port: {
value: cdktf.stringToHclTerraform(struct.port),
isBlock: false,
type: "simple",
storageClassType: "string",
},
runtime: {
value: cdktf.stringToHclTerraform(struct.runtime),
isBlock: false,
type: "simple",
storageClassType: "string",
},
runtime_environment_secrets: {
value: cdktf.hashMapperHcl(cdktf.stringToHclTerraform)(struct.runtimeEnvironmentSecrets),
isBlock: false,
type: "map",
storageClassType: "stringMap",
},
runtime_environment_variables: {
value: cdktf.hashMapperHcl(cdktf.stringToHclTerraform)(struct.runtimeEnvironmentVariables),
isBlock: false,
type: "map",
storageClassType: "stringMap",
},
start_command: {
value: cdktf.stringToHclTerraform(struct.startCommand),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class ApprunnerServiceSourceConfigurationCodeRepositoryCodeConfigurationCodeConfigurationValuesOutputReference 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._buildCommand !== undefined) {
hasAnyValues = true;
internalValueResult.buildCommand = this._buildCommand;
}
if (this._port !== undefined) {
hasAnyValues = true;
internalValueResult.port = this._port;
}
if (this._runtime !== undefined) {
hasAnyValues = true;
internalValueResult.runtime = this._runtime;
}
if (this._runtimeEnvironmentSecrets !== undefined) {
hasAnyValues = true;
internalValueResult.runtimeEnvironmentSecrets = this._runtimeEnvironmentSecrets;
}
if (this._runtimeEnvironmentVariables !== undefined) {
hasAnyValues = true;
internalValueResult.runtimeEnvironmentVariables = this._runtimeEnvironmentVariables;
}
if (this._startCommand !== undefined) {
hasAnyValues = true;
internalValueResult.startCommand = this._startCommand;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._buildCommand = undefined;
this._port = undefined;
this._runtime = undefined;
this._runtimeEnvironmentSecrets = undefined;
this._runtimeEnvironmentVariables = undefined;
this._startCommand = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._buildCommand = value.buildCommand;
this._port = value.port;
this._runtime = value.runtime;
this._runtimeEnvironmentSecrets = value.runtimeEnvironmentSecrets;
this._runtimeEnvironmentVariables = value.runtimeEnvironmentVariables;
this._startCommand = value.startCommand;
}
}
get buildCommand() {
return this.getStringAttribute('build_command');
}
set buildCommand(value) {
this._buildCommand = value;
}
resetBuildCommand() {
this._buildCommand = undefined;
}
// Temporarily expose input value. Use with caution.
get buildCommandInput() {
return this._buildCommand;
}
get port() {
return this.getStringAttribute('port');
}
set port(value) {
this._port = value;
}
resetPort() {
this._port = undefined;
}
// Temporarily expose input value. Use with caution.
get portInput() {
return this._port;
}
get runtime() {
return this.getStringAttribute('runtime');
}
set runtime(value) {
this._runtime = value;
}
// Temporarily expose input value. Use with caution.
get runtimeInput() {
return this._runtime;
}
get runtimeEnvironmentSecrets() {
return this.getStringMapAttribute('runtime_environment_secrets');
}
set runtimeEnvironmentSecrets(value) {
this._runtimeEnvironmentSecrets = value;
}
resetRuntimeEnvironmentSecrets() {
this._runtimeEnvironmentSecrets = undefined;
}
// Temporarily expose input value. Use with caution.
get runtimeEnvironmentSecretsInput() {
return this._runtimeEnvironmentSecrets;
}
get runtimeEnvironmentVariables() {
return this.getStringMapAttribute('runtime_environment_variables');
}
set runtimeEnvironmentVariables(value) {
this._runtimeEnvironmentVariables = value;
}
resetRuntimeEnvironmentVariables() {
this._runtimeEnvironmentVariables = undefined;
}
// Temporarily expose input value. Use with caution.
get runtimeEnvironmentVariablesInput() {
return this._runtimeEnvironmentVariables;
}
get startCommand() {
return this.getStringAttribute('start_command');
}
set startCommand(value) {
this._startCommand = value;
}
resetStartCommand() {
this._startCommand = undefined;
}
// Temporarily expose input value. Use with caution.
get startCommandInput() {
return this._startCommand;
}
}
exports.ApprunnerServiceSourceConfigurationCodeRepositoryCodeConfigurationCodeConfigurationValuesOutputReference = ApprunnerServiceSourceConfigurationCodeRepositoryCodeConfigurationCodeConfigurationValuesOutputReference;
_j = JSII_RTTI_SYMBOL_1;
ApprunnerServiceSourceConfigurationCodeRepositoryCodeConfigurationCodeConfigurationValuesOutputReference[_j] = { fqn: "@cdktf/provider-aws.apprunnerService.ApprunnerServiceSourceConfigurationCodeRepositoryCodeConfigurationCodeConfigurationValuesOutputReference", version: "21.22.1" };
function apprunnerServiceSourceConfigurationCodeRepositoryCodeConfigurationToTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struc