@cdktf/provider-aws
Version:
Prebuilt aws Provider for Terraform CDK (cdktf)
1,147 lines • 252 kB
JavaScript
"use strict";
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
Object.defineProperty(exports, "__esModule", { value: true });
exports.MwaaEnvironment = exports.MwaaEnvironmentTimeoutsOutputReference = exports.mwaaEnvironmentTimeoutsToHclTerraform = exports.mwaaEnvironmentTimeoutsToTerraform = exports.MwaaEnvironmentNetworkConfigurationOutputReference = exports.mwaaEnvironmentNetworkConfigurationToHclTerraform = exports.mwaaEnvironmentNetworkConfigurationToTerraform = exports.MwaaEnvironmentLoggingConfigurationOutputReference = exports.mwaaEnvironmentLoggingConfigurationToHclTerraform = exports.mwaaEnvironmentLoggingConfigurationToTerraform = exports.MwaaEnvironmentLoggingConfigurationWorkerLogsOutputReference = exports.mwaaEnvironmentLoggingConfigurationWorkerLogsToHclTerraform = exports.mwaaEnvironmentLoggingConfigurationWorkerLogsToTerraform = exports.MwaaEnvironmentLoggingConfigurationWebserverLogsOutputReference = exports.mwaaEnvironmentLoggingConfigurationWebserverLogsToHclTerraform = exports.mwaaEnvironmentLoggingConfigurationWebserverLogsToTerraform = exports.MwaaEnvironmentLoggingConfigurationTaskLogsOutputReference = exports.mwaaEnvironmentLoggingConfigurationTaskLogsToHclTerraform = exports.mwaaEnvironmentLoggingConfigurationTaskLogsToTerraform = exports.MwaaEnvironmentLoggingConfigurationSchedulerLogsOutputReference = exports.mwaaEnvironmentLoggingConfigurationSchedulerLogsToHclTerraform = exports.mwaaEnvironmentLoggingConfigurationSchedulerLogsToTerraform = exports.MwaaEnvironmentLoggingConfigurationDagProcessingLogsOutputReference = exports.mwaaEnvironmentLoggingConfigurationDagProcessingLogsToHclTerraform = exports.mwaaEnvironmentLoggingConfigurationDagProcessingLogsToTerraform = exports.MwaaEnvironmentLastUpdatedList = exports.MwaaEnvironmentLastUpdatedOutputReference = exports.mwaaEnvironmentLastUpdatedToHclTerraform = exports.mwaaEnvironmentLastUpdatedToTerraform = exports.MwaaEnvironmentLastUpdatedErrorList = exports.MwaaEnvironmentLastUpdatedErrorOutputReference = exports.mwaaEnvironmentLastUpdatedErrorToHclTerraform = exports.mwaaEnvironmentLastUpdatedErrorToTerraform = void 0;
const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
const cdktf = require("cdktf");
function mwaaEnvironmentLastUpdatedErrorToTerraform(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 {};
}
exports.mwaaEnvironmentLastUpdatedErrorToTerraform = mwaaEnvironmentLastUpdatedErrorToTerraform;
function mwaaEnvironmentLastUpdatedErrorToHclTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
const attrs = {};
return attrs;
}
exports.mwaaEnvironmentLastUpdatedErrorToHclTerraform = mwaaEnvironmentLastUpdatedErrorToHclTerraform;
class MwaaEnvironmentLastUpdatedErrorOutputReference extends cdktf.ComplexObject {
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
* @param complexObjectIndex the index of this item in the list
* @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
*/
constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) {
super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex);
this.isEmptyObject = false;
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
}
}
// error_code - computed: true, optional: false, required: false
get errorCode() {
return this.getStringAttribute('error_code');
}
// error_message - computed: true, optional: false, required: false
get errorMessage() {
return this.getStringAttribute('error_message');
}
}
exports.MwaaEnvironmentLastUpdatedErrorOutputReference = MwaaEnvironmentLastUpdatedErrorOutputReference;
_a = JSII_RTTI_SYMBOL_1;
MwaaEnvironmentLastUpdatedErrorOutputReference[_a] = { fqn: "@cdktf/provider-aws.mwaaEnvironment.MwaaEnvironmentLastUpdatedErrorOutputReference", version: "19.50.0" };
class MwaaEnvironmentLastUpdatedErrorList 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 MwaaEnvironmentLastUpdatedErrorOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.MwaaEnvironmentLastUpdatedErrorList = MwaaEnvironmentLastUpdatedErrorList;
_b = JSII_RTTI_SYMBOL_1;
MwaaEnvironmentLastUpdatedErrorList[_b] = { fqn: "@cdktf/provider-aws.mwaaEnvironment.MwaaEnvironmentLastUpdatedErrorList", version: "19.50.0" };
function mwaaEnvironmentLastUpdatedToTerraform(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 {};
}
exports.mwaaEnvironmentLastUpdatedToTerraform = mwaaEnvironmentLastUpdatedToTerraform;
function mwaaEnvironmentLastUpdatedToHclTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
const attrs = {};
return attrs;
}
exports.mwaaEnvironmentLastUpdatedToHclTerraform = mwaaEnvironmentLastUpdatedToHclTerraform;
class MwaaEnvironmentLastUpdatedOutputReference 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;
// error - computed: true, optional: false, required: false
this._error = new MwaaEnvironmentLastUpdatedErrorList(this, "error", false);
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
}
}
// created_at - computed: true, optional: false, required: false
get createdAt() {
return this.getStringAttribute('created_at');
}
get error() {
return this._error;
}
// status - computed: true, optional: false, required: false
get status() {
return this.getStringAttribute('status');
}
}
exports.MwaaEnvironmentLastUpdatedOutputReference = MwaaEnvironmentLastUpdatedOutputReference;
_c = JSII_RTTI_SYMBOL_1;
MwaaEnvironmentLastUpdatedOutputReference[_c] = { fqn: "@cdktf/provider-aws.mwaaEnvironment.MwaaEnvironmentLastUpdatedOutputReference", version: "19.50.0" };
class MwaaEnvironmentLastUpdatedList 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 MwaaEnvironmentLastUpdatedOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.MwaaEnvironmentLastUpdatedList = MwaaEnvironmentLastUpdatedList;
_d = JSII_RTTI_SYMBOL_1;
MwaaEnvironmentLastUpdatedList[_d] = { fqn: "@cdktf/provider-aws.mwaaEnvironment.MwaaEnvironmentLastUpdatedList", version: "19.50.0" };
function mwaaEnvironmentLoggingConfigurationDagProcessingLogsToTerraform(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),
log_level: cdktf.stringToTerraform(struct.logLevel),
};
}
exports.mwaaEnvironmentLoggingConfigurationDagProcessingLogsToTerraform = mwaaEnvironmentLoggingConfigurationDagProcessingLogsToTerraform;
function mwaaEnvironmentLoggingConfigurationDagProcessingLogsToHclTerraform(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",
},
log_level: {
value: cdktf.stringToHclTerraform(struct.logLevel),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.mwaaEnvironmentLoggingConfigurationDagProcessingLogsToHclTerraform = mwaaEnvironmentLoggingConfigurationDagProcessingLogsToHclTerraform;
class MwaaEnvironmentLoggingConfigurationDagProcessingLogsOutputReference 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._enabled !== undefined) {
hasAnyValues = true;
internalValueResult.enabled = this._enabled;
}
if (this._logLevel !== undefined) {
hasAnyValues = true;
internalValueResult.logLevel = this._logLevel;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._enabled = undefined;
this._logLevel = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._enabled = value.enabled;
this._logLevel = value.logLevel;
}
}
// cloud_watch_log_group_arn - computed: true, optional: false, required: false
get cloudWatchLogGroupArn() {
return this.getStringAttribute('cloud_watch_log_group_arn');
}
get enabled() {
return this.getBooleanAttribute('enabled');
}
set enabled(value) {
this._enabled = value;
}
resetEnabled() {
this._enabled = undefined;
}
// Temporarily expose input value. Use with caution.
get enabledInput() {
return this._enabled;
}
get logLevel() {
return this.getStringAttribute('log_level');
}
set logLevel(value) {
this._logLevel = value;
}
resetLogLevel() {
this._logLevel = undefined;
}
// Temporarily expose input value. Use with caution.
get logLevelInput() {
return this._logLevel;
}
}
exports.MwaaEnvironmentLoggingConfigurationDagProcessingLogsOutputReference = MwaaEnvironmentLoggingConfigurationDagProcessingLogsOutputReference;
_e = JSII_RTTI_SYMBOL_1;
MwaaEnvironmentLoggingConfigurationDagProcessingLogsOutputReference[_e] = { fqn: "@cdktf/provider-aws.mwaaEnvironment.MwaaEnvironmentLoggingConfigurationDagProcessingLogsOutputReference", version: "19.50.0" };
function mwaaEnvironmentLoggingConfigurationSchedulerLogsToTerraform(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),
log_level: cdktf.stringToTerraform(struct.logLevel),
};
}
exports.mwaaEnvironmentLoggingConfigurationSchedulerLogsToTerraform = mwaaEnvironmentLoggingConfigurationSchedulerLogsToTerraform;
function mwaaEnvironmentLoggingConfigurationSchedulerLogsToHclTerraform(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",
},
log_level: {
value: cdktf.stringToHclTerraform(struct.logLevel),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.mwaaEnvironmentLoggingConfigurationSchedulerLogsToHclTerraform = mwaaEnvironmentLoggingConfigurationSchedulerLogsToHclTerraform;
class MwaaEnvironmentLoggingConfigurationSchedulerLogsOutputReference 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._enabled !== undefined) {
hasAnyValues = true;
internalValueResult.enabled = this._enabled;
}
if (this._logLevel !== undefined) {
hasAnyValues = true;
internalValueResult.logLevel = this._logLevel;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._enabled = undefined;
this._logLevel = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._enabled = value.enabled;
this._logLevel = value.logLevel;
}
}
// cloud_watch_log_group_arn - computed: true, optional: false, required: false
get cloudWatchLogGroupArn() {
return this.getStringAttribute('cloud_watch_log_group_arn');
}
get enabled() {
return this.getBooleanAttribute('enabled');
}
set enabled(value) {
this._enabled = value;
}
resetEnabled() {
this._enabled = undefined;
}
// Temporarily expose input value. Use with caution.
get enabledInput() {
return this._enabled;
}
get logLevel() {
return this.getStringAttribute('log_level');
}
set logLevel(value) {
this._logLevel = value;
}
resetLogLevel() {
this._logLevel = undefined;
}
// Temporarily expose input value. Use with caution.
get logLevelInput() {
return this._logLevel;
}
}
exports.MwaaEnvironmentLoggingConfigurationSchedulerLogsOutputReference = MwaaEnvironmentLoggingConfigurationSchedulerLogsOutputReference;
_f = JSII_RTTI_SYMBOL_1;
MwaaEnvironmentLoggingConfigurationSchedulerLogsOutputReference[_f] = { fqn: "@cdktf/provider-aws.mwaaEnvironment.MwaaEnvironmentLoggingConfigurationSchedulerLogsOutputReference", version: "19.50.0" };
function mwaaEnvironmentLoggingConfigurationTaskLogsToTerraform(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),
log_level: cdktf.stringToTerraform(struct.logLevel),
};
}
exports.mwaaEnvironmentLoggingConfigurationTaskLogsToTerraform = mwaaEnvironmentLoggingConfigurationTaskLogsToTerraform;
function mwaaEnvironmentLoggingConfigurationTaskLogsToHclTerraform(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",
},
log_level: {
value: cdktf.stringToHclTerraform(struct.logLevel),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.mwaaEnvironmentLoggingConfigurationTaskLogsToHclTerraform = mwaaEnvironmentLoggingConfigurationTaskLogsToHclTerraform;
class MwaaEnvironmentLoggingConfigurationTaskLogsOutputReference 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._enabled !== undefined) {
hasAnyValues = true;
internalValueResult.enabled = this._enabled;
}
if (this._logLevel !== undefined) {
hasAnyValues = true;
internalValueResult.logLevel = this._logLevel;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._enabled = undefined;
this._logLevel = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._enabled = value.enabled;
this._logLevel = value.logLevel;
}
}
// cloud_watch_log_group_arn - computed: true, optional: false, required: false
get cloudWatchLogGroupArn() {
return this.getStringAttribute('cloud_watch_log_group_arn');
}
get enabled() {
return this.getBooleanAttribute('enabled');
}
set enabled(value) {
this._enabled = value;
}
resetEnabled() {
this._enabled = undefined;
}
// Temporarily expose input value. Use with caution.
get enabledInput() {
return this._enabled;
}
get logLevel() {
return this.getStringAttribute('log_level');
}
set logLevel(value) {
this._logLevel = value;
}
resetLogLevel() {
this._logLevel = undefined;
}
// Temporarily expose input value. Use with caution.
get logLevelInput() {
return this._logLevel;
}
}
exports.MwaaEnvironmentLoggingConfigurationTaskLogsOutputReference = MwaaEnvironmentLoggingConfigurationTaskLogsOutputReference;
_g = JSII_RTTI_SYMBOL_1;
MwaaEnvironmentLoggingConfigurationTaskLogsOutputReference[_g] = { fqn: "@cdktf/provider-aws.mwaaEnvironment.MwaaEnvironmentLoggingConfigurationTaskLogsOutputReference", version: "19.50.0" };
function mwaaEnvironmentLoggingConfigurationWebserverLogsToTerraform(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),
log_level: cdktf.stringToTerraform(struct.logLevel),
};
}
exports.mwaaEnvironmentLoggingConfigurationWebserverLogsToTerraform = mwaaEnvironmentLoggingConfigurationWebserverLogsToTerraform;
function mwaaEnvironmentLoggingConfigurationWebserverLogsToHclTerraform(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",
},
log_level: {
value: cdktf.stringToHclTerraform(struct.logLevel),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.mwaaEnvironmentLoggingConfigurationWebserverLogsToHclTerraform = mwaaEnvironmentLoggingConfigurationWebserverLogsToHclTerraform;
class MwaaEnvironmentLoggingConfigurationWebserverLogsOutputReference 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._enabled !== undefined) {
hasAnyValues = true;
internalValueResult.enabled = this._enabled;
}
if (this._logLevel !== undefined) {
hasAnyValues = true;
internalValueResult.logLevel = this._logLevel;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._enabled = undefined;
this._logLevel = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._enabled = value.enabled;
this._logLevel = value.logLevel;
}
}
// cloud_watch_log_group_arn - computed: true, optional: false, required: false
get cloudWatchLogGroupArn() {
return this.getStringAttribute('cloud_watch_log_group_arn');
}
get enabled() {
return this.getBooleanAttribute('enabled');
}
set enabled(value) {
this._enabled = value;
}
resetEnabled() {
this._enabled = undefined;
}
// Temporarily expose input value. Use with caution.
get enabledInput() {
return this._enabled;
}
get logLevel() {
return this.getStringAttribute('log_level');
}
set logLevel(value) {
this._logLevel = value;
}
resetLogLevel() {
this._logLevel = undefined;
}
// Temporarily expose input value. Use with caution.
get logLevelInput() {
return this._logLevel;
}
}
exports.MwaaEnvironmentLoggingConfigurationWebserverLogsOutputReference = MwaaEnvironmentLoggingConfigurationWebserverLogsOutputReference;
_h = JSII_RTTI_SYMBOL_1;
MwaaEnvironmentLoggingConfigurationWebserverLogsOutputReference[_h] = { fqn: "@cdktf/provider-aws.mwaaEnvironment.MwaaEnvironmentLoggingConfigurationWebserverLogsOutputReference", version: "19.50.0" };
function mwaaEnvironmentLoggingConfigurationWorkerLogsToTerraform(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),
log_level: cdktf.stringToTerraform(struct.logLevel),
};
}
exports.mwaaEnvironmentLoggingConfigurationWorkerLogsToTerraform = mwaaEnvironmentLoggingConfigurationWorkerLogsToTerraform;
function mwaaEnvironmentLoggingConfigurationWorkerLogsToHclTerraform(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",
},
log_level: {
value: cdktf.stringToHclTerraform(struct.logLevel),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.mwaaEnvironmentLoggingConfigurationWorkerLogsToHclTerraform = mwaaEnvironmentLoggingConfigurationWorkerLogsToHclTerraform;
class MwaaEnvironmentLoggingConfigurationWorkerLogsOutputReference 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._enabled !== undefined) {
hasAnyValues = true;
internalValueResult.enabled = this._enabled;
}
if (this._logLevel !== undefined) {
hasAnyValues = true;
internalValueResult.logLevel = this._logLevel;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._enabled = undefined;
this._logLevel = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._enabled = value.enabled;
this._logLevel = value.logLevel;
}
}
// cloud_watch_log_group_arn - computed: true, optional: false, required: false
get cloudWatchLogGroupArn() {
return this.getStringAttribute('cloud_watch_log_group_arn');
}
get enabled() {
return this.getBooleanAttribute('enabled');
}
set enabled(value) {
this._enabled = value;
}
resetEnabled() {
this._enabled = undefined;
}
// Temporarily expose input value. Use with caution.
get enabledInput() {
return this._enabled;
}
get logLevel() {
return this.getStringAttribute('log_level');
}
set logLevel(value) {
this._logLevel = value;
}
resetLogLevel() {
this._logLevel = undefined;
}
// Temporarily expose input value. Use with caution.
get logLevelInput() {
return this._logLevel;
}
}
exports.MwaaEnvironmentLoggingConfigurationWorkerLogsOutputReference = MwaaEnvironmentLoggingConfigurationWorkerLogsOutputReference;
_j = JSII_RTTI_SYMBOL_1;
MwaaEnvironmentLoggingConfigurationWorkerLogsOutputReference[_j] = { fqn: "@cdktf/provider-aws.mwaaEnvironment.MwaaEnvironmentLoggingConfigurationWorkerLogsOutputReference", version: "19.50.0" };
function mwaaEnvironmentLoggingConfigurationToTerraform(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 {
dag_processing_logs: mwaaEnvironmentLoggingConfigurationDagProcessingLogsToTerraform(struct.dagProcessingLogs),
scheduler_logs: mwaaEnvironmentLoggingConfigurationSchedulerLogsToTerraform(struct.schedulerLogs),
task_logs: mwaaEnvironmentLoggingConfigurationTaskLogsToTerraform(struct.taskLogs),
webserver_logs: mwaaEnvironmentLoggingConfigurationWebserverLogsToTerraform(struct.webserverLogs),
worker_logs: mwaaEnvironmentLoggingConfigurationWorkerLogsToTerraform(struct.workerLogs),
};
}
exports.mwaaEnvironmentLoggingConfigurationToTerraform = mwaaEnvironmentLoggingConfigurationToTerraform;
function mwaaEnvironmentLoggingConfigurationToHclTerraform(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 = {
dag_processing_logs: {
value: mwaaEnvironmentLoggingConfigurationDagProcessingLogsToHclTerraform(struct.dagProcessingLogs),
isBlock: true,
type: "list",
storageClassType: "MwaaEnvironmentLoggingConfigurationDagProcessingLogsList",
},
scheduler_logs: {
value: mwaaEnvironmentLoggingConfigurationSchedulerLogsToHclTerraform(struct.schedulerLogs),
isBlock: true,
type: "list",
storageClassType: "MwaaEnvironmentLoggingConfigurationSchedulerLogsList",
},
task_logs: {
value: mwaaEnvironmentLoggingConfigurationTaskLogsToHclTerraform(struct.taskLogs),
isBlock: true,
type: "list",
storageClassType: "MwaaEnvironmentLoggingConfigurationTaskLogsList",
},
webserver_logs: {
value: mwaaEnvironmentLoggingConfigurationWebserverLogsToHclTerraform(struct.webserverLogs),
isBlock: true,
type: "list",
storageClassType: "MwaaEnvironmentLoggingConfigurationWebserverLogsList",
},
worker_logs: {
value: mwaaEnvironmentLoggingConfigurationWorkerLogsToHclTerraform(struct.workerLogs),
isBlock: true,
type: "list",
storageClassType: "MwaaEnvironmentLoggingConfigurationWorkerLogsList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.mwaaEnvironmentLoggingConfigurationToHclTerraform = mwaaEnvironmentLoggingConfigurationToHclTerraform;
class MwaaEnvironmentLoggingConfigurationOutputReference 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;
// dag_processing_logs - computed: false, optional: true, required: false
this._dagProcessingLogs = new MwaaEnvironmentLoggingConfigurationDagProcessingLogsOutputReference(this, "dag_processing_logs");
// scheduler_logs - computed: false, optional: true, required: false
this._schedulerLogs = new MwaaEnvironmentLoggingConfigurationSchedulerLogsOutputReference(this, "scheduler_logs");
// task_logs - computed: false, optional: true, required: false
this._taskLogs = new MwaaEnvironmentLoggingConfigurationTaskLogsOutputReference(this, "task_logs");
// webserver_logs - computed: false, optional: true, required: false
this._webserverLogs = new MwaaEnvironmentLoggingConfigurationWebserverLogsOutputReference(this, "webserver_logs");
// worker_logs - computed: false, optional: true, required: false
this._workerLogs = new MwaaEnvironmentLoggingConfigurationWorkerLogsOutputReference(this, "worker_logs");
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._dagProcessingLogs?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.dagProcessingLogs = this._dagProcessingLogs?.internalValue;
}
if (this._schedulerLogs?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.schedulerLogs = this._schedulerLogs?.internalValue;
}
if (this._taskLogs?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.taskLogs = this._taskLogs?.internalValue;
}
if (this._webserverLogs?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.webserverLogs = this._webserverLogs?.internalValue;
}
if (this._workerLogs?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.workerLogs = this._workerLogs?.internalValue;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._dagProcessingLogs.internalValue = undefined;
this._schedulerLogs.internalValue = undefined;
this._taskLogs.internalValue = undefined;
this._webserverLogs.internalValue = undefined;
this._workerLogs.internalValue = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._dagProcessingLogs.internalValue = value.dagProcessingLogs;
this._schedulerLogs.internalValue = value.schedulerLogs;
this._taskLogs.internalValue = value.taskLogs;
this._webserverLogs.internalValue = value.webserverLogs;
this._workerLogs.internalValue = value.workerLogs;
}
}
get dagProcessingLogs() {
return this._dagProcessingLogs;
}
putDagProcessingLogs(value) {
this._dagProcessingLogs.internalValue = value;
}
resetDagProcessingLogs() {
this._dagProcessingLogs.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get dagProcessingLogsInput() {
return this._dagProcessingLogs.internalValue;
}
get schedulerLogs() {
return this._schedulerLogs;
}
putSchedulerLogs(value) {
this._schedulerLogs.internalValue = value;
}
resetSchedulerLogs() {
this._schedulerLogs.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get schedulerLogsInput() {
return this._schedulerLogs.internalValue;
}
get taskLogs() {
return this._taskLogs;
}
putTaskLogs(value) {
this._taskLogs.internalValue = value;
}
resetTaskLogs() {
this._taskLogs.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get taskLogsInput() {
return this._taskLogs.internalValue;
}
get webserverLogs() {
return this._webserverLogs;
}
putWebserverLogs(value) {
this._webserverLogs.internalValue = value;
}
resetWebserverLogs() {
this._webserverLogs.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get webserverLogsInput() {
return this._webserverLogs.internalValue;
}
get workerLogs() {
return this._workerLogs;
}
putWorkerLogs(value) {
this._workerLogs.internalValue = value;
}
resetWorkerLogs() {
this._workerLogs.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get workerLogsInput() {
return this._workerLogs.internalValue;
}
}
exports.MwaaEnvironmentLoggingConfigurationOutputReference = MwaaEnvironmentLoggingConfigurationOutputReference;
_k = JSII_RTTI_SYMBOL_1;
MwaaEnvironmentLoggingConfigurationOutputReference[_k] = { fqn: "@cdktf/provider-aws.mwaaEnvironment.MwaaEnvironmentLoggingConfigurationOutputReference", version: "19.50.0" };
function mwaaEnvironmentNetworkConfigurationToTerraform(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 {
security_group_ids: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.securityGroupIds),
subnet_ids: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.subnetIds),
};
}
exports.mwaaEnvironmentNetworkConfigurationToTerraform = mwaaEnvironmentNetworkConfigurationToTerraform;
function mwaaEnvironmentNetworkConfigurationToHclTerraform(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 = {
security_group_ids: {
value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.securityGroupIds),
isBlock: false,
type: "set",
storageClassType: "stringList",
},
subnet_ids: {
value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.subnetIds),
isBlock: false,
type: "set",
storageClassType: "stringList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.mwaaEnvironmentNetworkConfigurationToHclTerraform = mwaaEnvironmentNetworkConfigurationToHclTerraform;
class MwaaEnvironmentNetworkConfigurationOutputReference 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._securityGroupIds !== undefined) {
hasAnyValues = true;
internalValueResult.securityGroupIds = this._securityGroupIds;
}
if (this._subnetIds !== undefined) {
hasAnyValues = true;
internalValueResult.subnetIds = this._subnetIds;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._securityGroupIds = undefined;
this._subnetIds = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._securityGroupIds = value.securityGroupIds;
this._subnetIds = value.subnetIds;
}
}
get securityGroupIds() {
return cdktf.Fn.tolist(this.getListAttribute('security_group_ids'));
}
set securityGroupIds(value) {
this._securityGroupIds = value;
}
// Temporarily expose input value. Use with caution.
get securityGroupIdsInput() {
return this._securityGroupIds;
}
get subnetIds() {
return cdktf.Fn.tolist(this.getListAttribute('subnet_ids'));
}
set subnetIds(value) {
this._subnetIds = value;
}
// Temporarily expose input value. Use with caution.
get subnetIdsInput() {
return this._subnetIds;
}
}
exports.MwaaEnvironmentNetworkConfigurationOutputReference = MwaaEnvironmentNetworkConfigurationOutputReference;
_l = JSII_RTTI_SYMBOL_1;
MwaaEnvironmentNetworkConfigurationOutputReference[_l] = { fqn: "@cdktf/provider-aws.mwaaEnvironment.MwaaEnvironmentNetworkConfigurationOutputReference", version: "19.50.0" };
function mwaaEnvironmentTimeoutsToTerraform(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 {
create: cdktf.stringToTerraform(struct.create),
delete: cdktf.stringToTerraform(struct.delete),
update: cdktf.stringToTerraform(struct.update),
};
}
exports.mwaaEnvironmentTimeoutsToTerraform = mwaaEnvironmentTimeoutsToTerraform;
function mwaaEnvironmentTimeoutsToHclTerraform(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 = {
create: {
value: cdktf.stringToHclTerraform(struct.create),
isBlock: false,
type: "simple",
storageClassType: "string",
},
delete: {
value: cdktf.stringToHclTerraform(struct.delete),
isBlock: false,
type: "simple",
storageClassType: "string",
},
update: {
value: cdktf.stringToHclTerraform(struct.update),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.mwaaEnvironmentTimeoutsToHclTerraform = mwaaEnvironmentTimeoutsToHclTerraform;
class MwaaEnvironmentTimeoutsOutputReference 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);
this.isEmptyObject = false;
}
get internalValue() {
if (this.resolvableValue) {
return this.resolvableValue;
}
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._create !== undefined) {
hasAnyValues = true;
internalValueResult.create = this._create;
}
if (this._delete !== undefined) {
hasAnyValues = true;
internalValueResult.delete = this._delete;
}
if (this._update !== undefined) {
hasAnyValues = true;
internalValueResult.update = this._update;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._create = undefined;
this._delete = undefined;
this._update = 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._create = value.create;
this._delete = value.delete;
this._update = value.update;
}
}
get create() {
return this.getStringAttribute('create');
}
set create(value) {
this._create = value;
}
resetCreate() {
this._create = undefined;
}
// Temporarily expose input value. Use with caution.
get createInput() {
return this._create;
}
get delete() {
return this.getStringAttribute('delete');
}
set delete(value) {
this._delete = value;
}
resetDelete() {
this._delete = undefined;
}
// Temporarily expose input value. Use with caution.
get deleteInput() {
return this._delete;
}
get update() {
return this.getStringAttribute('update');
}
set update(value) {
this._update = value;
}
resetUpdate() {
this._update = undefined;
}
// Temporarily expose input value. Use with caution.
get updateInput() {
return this._update;
}
}
exports.MwaaEnvironmentTimeoutsOutputReference = MwaaEnvironmentTimeoutsOutputReference;
_m = JSII_RTTI_SYMBOL_1;
MwaaEnvironmentTimeoutsOutputReference[_m] = { fqn: "@cdktf/provider-aws.mwaaEnvironment.MwaaEnvironmentTimeoutsOutputReference", version: "19.50.0" };
/**
* Represents a {@link https://registry.terraform.io/providers/hashicorp/aws/5.84.0/docs/resources/mwaa_environment aws_mwaa_environment}
*/
class MwaaEnvironment extends cdktf.TerraformResource {
// ==============
// STATIC Methods
// ==============
/**
* Generates CDKTF code for importing a MwaaEnvironment resource upon running "cdktf plan <stack-name>"
* @param scope The scope in which to define this construct
* @param importToId The construct id used in the generated config for the MwaaEnvironment to import
* @param importFromId The id of the existing MwaaEnvironment that should be imported. Refer to the {@link https://registry.terraform.io/providers/hashicorp/aws/5.84.0/docs/resources/mwaa_environment#import import section} in the documentation of this resource for the id to use
* @param provider? Optional instance of the provider where the MwaaEnvironment to import is found
*/
static generateConfigForImport(scope, importToId, importFromId, provider) {
return new cdktf.ImportableResource(scope, importToId, { terraformResourceType: "aws_mwaa_environment", importId: importFromId, provider });
}
// ===========
// INITIALIZER
// ===========
/**
* Create a new {@link https://registry.terraform.io/providers/hashicorp/aws/5.84.0/docs/resources/mwaa_environment aws_mwaa_environment} Resource
*
* @param scope The scope in which to define this construct
* @param i