@cdktf/provider-aws
Version:
Prebuilt aws Provider for Terraform CDK (cdktf)
1,045 lines (1,044 loc) • 270 kB
JavaScript
"use strict";
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
Object.defineProperty(exports, "__esModule", { value: true });
exports.SsmMaintenanceWindowTask = exports.SsmMaintenanceWindowTaskTaskInvocationParametersOutputReference = exports.SsmMaintenanceWindowTaskTaskInvocationParametersStepFunctionsParametersOutputReference = exports.SsmMaintenanceWindowTaskTaskInvocationParametersRunCommandParametersOutputReference = exports.SsmMaintenanceWindowTaskTaskInvocationParametersRunCommandParametersParameterList = exports.SsmMaintenanceWindowTaskTaskInvocationParametersRunCommandParametersParameterOutputReference = exports.SsmMaintenanceWindowTaskTaskInvocationParametersRunCommandParametersNotificationConfigOutputReference = exports.SsmMaintenanceWindowTaskTaskInvocationParametersRunCommandParametersCloudwatchConfigOutputReference = exports.SsmMaintenanceWindowTaskTaskInvocationParametersLambdaParametersOutputReference = exports.SsmMaintenanceWindowTaskTaskInvocationParametersAutomationParametersOutputReference = exports.SsmMaintenanceWindowTaskTaskInvocationParametersAutomationParametersParameterList = exports.SsmMaintenanceWindowTaskTaskInvocationParametersAutomationParametersParameterOutputReference = exports.SsmMaintenanceWindowTaskTargetsList = exports.SsmMaintenanceWindowTaskTargetsOutputReference = void 0;
exports.ssmMaintenanceWindowTaskTargetsToTerraform = ssmMaintenanceWindowTaskTargetsToTerraform;
exports.ssmMaintenanceWindowTaskTargetsToHclTerraform = ssmMaintenanceWindowTaskTargetsToHclTerraform;
exports.ssmMaintenanceWindowTaskTaskInvocationParametersAutomationParametersParameterToTerraform = ssmMaintenanceWindowTaskTaskInvocationParametersAutomationParametersParameterToTerraform;
exports.ssmMaintenanceWindowTaskTaskInvocationParametersAutomationParametersParameterToHclTerraform = ssmMaintenanceWindowTaskTaskInvocationParametersAutomationParametersParameterToHclTerraform;
exports.ssmMaintenanceWindowTaskTaskInvocationParametersAutomationParametersToTerraform = ssmMaintenanceWindowTaskTaskInvocationParametersAutomationParametersToTerraform;
exports.ssmMaintenanceWindowTaskTaskInvocationParametersAutomationParametersToHclTerraform = ssmMaintenanceWindowTaskTaskInvocationParametersAutomationParametersToHclTerraform;
exports.ssmMaintenanceWindowTaskTaskInvocationParametersLambdaParametersToTerraform = ssmMaintenanceWindowTaskTaskInvocationParametersLambdaParametersToTerraform;
exports.ssmMaintenanceWindowTaskTaskInvocationParametersLambdaParametersToHclTerraform = ssmMaintenanceWindowTaskTaskInvocationParametersLambdaParametersToHclTerraform;
exports.ssmMaintenanceWindowTaskTaskInvocationParametersRunCommandParametersCloudwatchConfigToTerraform = ssmMaintenanceWindowTaskTaskInvocationParametersRunCommandParametersCloudwatchConfigToTerraform;
exports.ssmMaintenanceWindowTaskTaskInvocationParametersRunCommandParametersCloudwatchConfigToHclTerraform = ssmMaintenanceWindowTaskTaskInvocationParametersRunCommandParametersCloudwatchConfigToHclTerraform;
exports.ssmMaintenanceWindowTaskTaskInvocationParametersRunCommandParametersNotificationConfigToTerraform = ssmMaintenanceWindowTaskTaskInvocationParametersRunCommandParametersNotificationConfigToTerraform;
exports.ssmMaintenanceWindowTaskTaskInvocationParametersRunCommandParametersNotificationConfigToHclTerraform = ssmMaintenanceWindowTaskTaskInvocationParametersRunCommandParametersNotificationConfigToHclTerraform;
exports.ssmMaintenanceWindowTaskTaskInvocationParametersRunCommandParametersParameterToTerraform = ssmMaintenanceWindowTaskTaskInvocationParametersRunCommandParametersParameterToTerraform;
exports.ssmMaintenanceWindowTaskTaskInvocationParametersRunCommandParametersParameterToHclTerraform = ssmMaintenanceWindowTaskTaskInvocationParametersRunCommandParametersParameterToHclTerraform;
exports.ssmMaintenanceWindowTaskTaskInvocationParametersRunCommandParametersToTerraform = ssmMaintenanceWindowTaskTaskInvocationParametersRunCommandParametersToTerraform;
exports.ssmMaintenanceWindowTaskTaskInvocationParametersRunCommandParametersToHclTerraform = ssmMaintenanceWindowTaskTaskInvocationParametersRunCommandParametersToHclTerraform;
exports.ssmMaintenanceWindowTaskTaskInvocationParametersStepFunctionsParametersToTerraform = ssmMaintenanceWindowTaskTaskInvocationParametersStepFunctionsParametersToTerraform;
exports.ssmMaintenanceWindowTaskTaskInvocationParametersStepFunctionsParametersToHclTerraform = ssmMaintenanceWindowTaskTaskInvocationParametersStepFunctionsParametersToHclTerraform;
exports.ssmMaintenanceWindowTaskTaskInvocationParametersToTerraform = ssmMaintenanceWindowTaskTaskInvocationParametersToTerraform;
exports.ssmMaintenanceWindowTaskTaskInvocationParametersToHclTerraform = ssmMaintenanceWindowTaskTaskInvocationParametersToHclTerraform;
const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
const cdktf = require("cdktf");
function ssmMaintenanceWindowTaskTargetsToTerraform(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 {
key: cdktf.stringToTerraform(struct.key),
values: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.values),
};
}
function ssmMaintenanceWindowTaskTargetsToHclTerraform(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 = {
key: {
value: cdktf.stringToHclTerraform(struct.key),
isBlock: false,
type: "simple",
storageClassType: "string",
},
values: {
value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.values),
isBlock: false,
type: "list",
storageClassType: "stringList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class SsmMaintenanceWindowTaskTargetsOutputReference 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._key !== undefined) {
hasAnyValues = true;
internalValueResult.key = this._key;
}
if (this._values !== undefined) {
hasAnyValues = true;
internalValueResult.values = this._values;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._key = undefined;
this._values = 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._key = value.key;
this._values = value.values;
}
}
get key() {
return this.getStringAttribute('key');
}
set key(value) {
this._key = value;
}
// Temporarily expose input value. Use with caution.
get keyInput() {
return this._key;
}
get values() {
return this.getListAttribute('values');
}
set values(value) {
this._values = value;
}
// Temporarily expose input value. Use with caution.
get valuesInput() {
return this._values;
}
}
exports.SsmMaintenanceWindowTaskTargetsOutputReference = SsmMaintenanceWindowTaskTargetsOutputReference;
_a = JSII_RTTI_SYMBOL_1;
SsmMaintenanceWindowTaskTargetsOutputReference[_a] = { fqn: "@cdktf/provider-aws.ssmMaintenanceWindowTask.SsmMaintenanceWindowTaskTargetsOutputReference", version: "21.22.1" };
class SsmMaintenanceWindowTaskTargetsList 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 SsmMaintenanceWindowTaskTargetsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.SsmMaintenanceWindowTaskTargetsList = SsmMaintenanceWindowTaskTargetsList;
_b = JSII_RTTI_SYMBOL_1;
SsmMaintenanceWindowTaskTargetsList[_b] = { fqn: "@cdktf/provider-aws.ssmMaintenanceWindowTask.SsmMaintenanceWindowTaskTargetsList", version: "21.22.1" };
function ssmMaintenanceWindowTaskTaskInvocationParametersAutomationParametersParameterToTerraform(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 {
name: cdktf.stringToTerraform(struct.name),
values: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.values),
};
}
function ssmMaintenanceWindowTaskTaskInvocationParametersAutomationParametersParameterToHclTerraform(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 = {
name: {
value: cdktf.stringToHclTerraform(struct.name),
isBlock: false,
type: "simple",
storageClassType: "string",
},
values: {
value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.values),
isBlock: false,
type: "list",
storageClassType: "stringList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class SsmMaintenanceWindowTaskTaskInvocationParametersAutomationParametersParameterOutputReference 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._name !== undefined) {
hasAnyValues = true;
internalValueResult.name = this._name;
}
if (this._values !== undefined) {
hasAnyValues = true;
internalValueResult.values = this._values;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._name = undefined;
this._values = 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._name = value.name;
this._values = value.values;
}
}
get name() {
return this.getStringAttribute('name');
}
set name(value) {
this._name = value;
}
// Temporarily expose input value. Use with caution.
get nameInput() {
return this._name;
}
get values() {
return this.getListAttribute('values');
}
set values(value) {
this._values = value;
}
// Temporarily expose input value. Use with caution.
get valuesInput() {
return this._values;
}
}
exports.SsmMaintenanceWindowTaskTaskInvocationParametersAutomationParametersParameterOutputReference = SsmMaintenanceWindowTaskTaskInvocationParametersAutomationParametersParameterOutputReference;
_c = JSII_RTTI_SYMBOL_1;
SsmMaintenanceWindowTaskTaskInvocationParametersAutomationParametersParameterOutputReference[_c] = { fqn: "@cdktf/provider-aws.ssmMaintenanceWindowTask.SsmMaintenanceWindowTaskTaskInvocationParametersAutomationParametersParameterOutputReference", version: "21.22.1" };
class SsmMaintenanceWindowTaskTaskInvocationParametersAutomationParametersParameterList 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 SsmMaintenanceWindowTaskTaskInvocationParametersAutomationParametersParameterOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.SsmMaintenanceWindowTaskTaskInvocationParametersAutomationParametersParameterList = SsmMaintenanceWindowTaskTaskInvocationParametersAutomationParametersParameterList;
_d = JSII_RTTI_SYMBOL_1;
SsmMaintenanceWindowTaskTaskInvocationParametersAutomationParametersParameterList[_d] = { fqn: "@cdktf/provider-aws.ssmMaintenanceWindowTask.SsmMaintenanceWindowTaskTaskInvocationParametersAutomationParametersParameterList", version: "21.22.1" };
function ssmMaintenanceWindowTaskTaskInvocationParametersAutomationParametersToTerraform(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 {
document_version: cdktf.stringToTerraform(struct.documentVersion),
parameter: cdktf.listMapper(ssmMaintenanceWindowTaskTaskInvocationParametersAutomationParametersParameterToTerraform, true)(struct.parameter),
};
}
function ssmMaintenanceWindowTaskTaskInvocationParametersAutomationParametersToHclTerraform(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 = {
document_version: {
value: cdktf.stringToHclTerraform(struct.documentVersion),
isBlock: false,
type: "simple",
storageClassType: "string",
},
parameter: {
value: cdktf.listMapperHcl(ssmMaintenanceWindowTaskTaskInvocationParametersAutomationParametersParameterToHclTerraform, true)(struct.parameter),
isBlock: true,
type: "set",
storageClassType: "SsmMaintenanceWindowTaskTaskInvocationParametersAutomationParametersParameterList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class SsmMaintenanceWindowTaskTaskInvocationParametersAutomationParametersOutputReference 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;
// parameter - computed: false, optional: true, required: false
this._parameter = new SsmMaintenanceWindowTaskTaskInvocationParametersAutomationParametersParameterList(this, "parameter", true);
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._documentVersion !== undefined) {
hasAnyValues = true;
internalValueResult.documentVersion = this._documentVersion;
}
if (this._parameter?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.parameter = this._parameter?.internalValue;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._documentVersion = undefined;
this._parameter.internalValue = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._documentVersion = value.documentVersion;
this._parameter.internalValue = value.parameter;
}
}
get documentVersion() {
return this.getStringAttribute('document_version');
}
set documentVersion(value) {
this._documentVersion = value;
}
resetDocumentVersion() {
this._documentVersion = undefined;
}
// Temporarily expose input value. Use with caution.
get documentVersionInput() {
return this._documentVersion;
}
get parameter() {
return this._parameter;
}
putParameter(value) {
this._parameter.internalValue = value;
}
resetParameter() {
this._parameter.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get parameterInput() {
return this._parameter.internalValue;
}
}
exports.SsmMaintenanceWindowTaskTaskInvocationParametersAutomationParametersOutputReference = SsmMaintenanceWindowTaskTaskInvocationParametersAutomationParametersOutputReference;
_e = JSII_RTTI_SYMBOL_1;
SsmMaintenanceWindowTaskTaskInvocationParametersAutomationParametersOutputReference[_e] = { fqn: "@cdktf/provider-aws.ssmMaintenanceWindowTask.SsmMaintenanceWindowTaskTaskInvocationParametersAutomationParametersOutputReference", version: "21.22.1" };
function ssmMaintenanceWindowTaskTaskInvocationParametersLambdaParametersToTerraform(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 {
client_context: cdktf.stringToTerraform(struct.clientContext),
payload: cdktf.stringToTerraform(struct.payload),
qualifier: cdktf.stringToTerraform(struct.qualifier),
};
}
function ssmMaintenanceWindowTaskTaskInvocationParametersLambdaParametersToHclTerraform(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 = {
client_context: {
value: cdktf.stringToHclTerraform(struct.clientContext),
isBlock: false,
type: "simple",
storageClassType: "string",
},
payload: {
value: cdktf.stringToHclTerraform(struct.payload),
isBlock: false,
type: "simple",
storageClassType: "string",
},
qualifier: {
value: cdktf.stringToHclTerraform(struct.qualifier),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class SsmMaintenanceWindowTaskTaskInvocationParametersLambdaParametersOutputReference 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._clientContext !== undefined) {
hasAnyValues = true;
internalValueResult.clientContext = this._clientContext;
}
if (this._payload !== undefined) {
hasAnyValues = true;
internalValueResult.payload = this._payload;
}
if (this._qualifier !== undefined) {
hasAnyValues = true;
internalValueResult.qualifier = this._qualifier;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._clientContext = undefined;
this._payload = undefined;
this._qualifier = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._clientContext = value.clientContext;
this._payload = value.payload;
this._qualifier = value.qualifier;
}
}
get clientContext() {
return this.getStringAttribute('client_context');
}
set clientContext(value) {
this._clientContext = value;
}
resetClientContext() {
this._clientContext = undefined;
}
// Temporarily expose input value. Use with caution.
get clientContextInput() {
return this._clientContext;
}
get payload() {
return this.getStringAttribute('payload');
}
set payload(value) {
this._payload = value;
}
resetPayload() {
this._payload = undefined;
}
// Temporarily expose input value. Use with caution.
get payloadInput() {
return this._payload;
}
get qualifier() {
return this.getStringAttribute('qualifier');
}
set qualifier(value) {
this._qualifier = value;
}
resetQualifier() {
this._qualifier = undefined;
}
// Temporarily expose input value. Use with caution.
get qualifierInput() {
return this._qualifier;
}
}
exports.SsmMaintenanceWindowTaskTaskInvocationParametersLambdaParametersOutputReference = SsmMaintenanceWindowTaskTaskInvocationParametersLambdaParametersOutputReference;
_f = JSII_RTTI_SYMBOL_1;
SsmMaintenanceWindowTaskTaskInvocationParametersLambdaParametersOutputReference[_f] = { fqn: "@cdktf/provider-aws.ssmMaintenanceWindowTask.SsmMaintenanceWindowTaskTaskInvocationParametersLambdaParametersOutputReference", version: "21.22.1" };
function ssmMaintenanceWindowTaskTaskInvocationParametersRunCommandParametersCloudwatchConfigToTerraform(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 {
cloudwatch_log_group_name: cdktf.stringToTerraform(struct.cloudwatchLogGroupName),
cloudwatch_output_enabled: cdktf.booleanToTerraform(struct.cloudwatchOutputEnabled),
};
}
function ssmMaintenanceWindowTaskTaskInvocationParametersRunCommandParametersCloudwatchConfigToHclTerraform(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 = {
cloudwatch_log_group_name: {
value: cdktf.stringToHclTerraform(struct.cloudwatchLogGroupName),
isBlock: false,
type: "simple",
storageClassType: "string",
},
cloudwatch_output_enabled: {
value: cdktf.booleanToHclTerraform(struct.cloudwatchOutputEnabled),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class SsmMaintenanceWindowTaskTaskInvocationParametersRunCommandParametersCloudwatchConfigOutputReference 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._cloudwatchLogGroupName !== undefined) {
hasAnyValues = true;
internalValueResult.cloudwatchLogGroupName = this._cloudwatchLogGroupName;
}
if (this._cloudwatchOutputEnabled !== undefined) {
hasAnyValues = true;
internalValueResult.cloudwatchOutputEnabled = this._cloudwatchOutputEnabled;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._cloudwatchLogGroupName = undefined;
this._cloudwatchOutputEnabled = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._cloudwatchLogGroupName = value.cloudwatchLogGroupName;
this._cloudwatchOutputEnabled = value.cloudwatchOutputEnabled;
}
}
get cloudwatchLogGroupName() {
return this.getStringAttribute('cloudwatch_log_group_name');
}
set cloudwatchLogGroupName(value) {
this._cloudwatchLogGroupName = value;
}
resetCloudwatchLogGroupName() {
this._cloudwatchLogGroupName = undefined;
}
// Temporarily expose input value. Use with caution.
get cloudwatchLogGroupNameInput() {
return this._cloudwatchLogGroupName;
}
get cloudwatchOutputEnabled() {
return this.getBooleanAttribute('cloudwatch_output_enabled');
}
set cloudwatchOutputEnabled(value) {
this._cloudwatchOutputEnabled = value;
}
resetCloudwatchOutputEnabled() {
this._cloudwatchOutputEnabled = undefined;
}
// Temporarily expose input value. Use with caution.
get cloudwatchOutputEnabledInput() {
return this._cloudwatchOutputEnabled;
}
}
exports.SsmMaintenanceWindowTaskTaskInvocationParametersRunCommandParametersCloudwatchConfigOutputReference = SsmMaintenanceWindowTaskTaskInvocationParametersRunCommandParametersCloudwatchConfigOutputReference;
_g = JSII_RTTI_SYMBOL_1;
SsmMaintenanceWindowTaskTaskInvocationParametersRunCommandParametersCloudwatchConfigOutputReference[_g] = { fqn: "@cdktf/provider-aws.ssmMaintenanceWindowTask.SsmMaintenanceWindowTaskTaskInvocationParametersRunCommandParametersCloudwatchConfigOutputReference", version: "21.22.1" };
function ssmMaintenanceWindowTaskTaskInvocationParametersRunCommandParametersNotificationConfigToTerraform(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 {
notification_arn: cdktf.stringToTerraform(struct.notificationArn),
notification_events: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.notificationEvents),
notification_type: cdktf.stringToTerraform(struct.notificationType),
};
}
function ssmMaintenanceWindowTaskTaskInvocationParametersRunCommandParametersNotificationConfigToHclTerraform(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 = {
notification_arn: {
value: cdktf.stringToHclTerraform(struct.notificationArn),
isBlock: false,
type: "simple",
storageClassType: "string",
},
notification_events: {
value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.notificationEvents),
isBlock: false,
type: "list",
storageClassType: "stringList",
},
notification_type: {
value: cdktf.stringToHclTerraform(struct.notificationType),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class SsmMaintenanceWindowTaskTaskInvocationParametersRunCommandParametersNotificationConfigOutputReference 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._notificationArn !== undefined) {
hasAnyValues = true;
internalValueResult.notificationArn = this._notificationArn;
}
if (this._notificationEvents !== undefined) {
hasAnyValues = true;
internalValueResult.notificationEvents = this._notificationEvents;
}
if (this._notificationType !== undefined) {
hasAnyValues = true;
internalValueResult.notificationType = this._notificationType;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._notificationArn = undefined;
this._notificationEvents = undefined;
this._notificationType = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._notificationArn = value.notificationArn;
this._notificationEvents = value.notificationEvents;
this._notificationType = value.notificationType;
}
}
get notificationArn() {
return this.getStringAttribute('notification_arn');
}
set notificationArn(value) {
this._notificationArn = value;
}
resetNotificationArn() {
this._notificationArn = undefined;
}
// Temporarily expose input value. Use with caution.
get notificationArnInput() {
return this._notificationArn;
}
get notificationEvents() {
return this.getListAttribute('notification_events');
}
set notificationEvents(value) {
this._notificationEvents = value;
}
resetNotificationEvents() {
this._notificationEvents = undefined;
}
// Temporarily expose input value. Use with caution.
get notificationEventsInput() {
return this._notificationEvents;
}
get notificationType() {
return this.getStringAttribute('notification_type');
}
set notificationType(value) {
this._notificationType = value;
}
resetNotificationType() {
this._notificationType = undefined;
}
// Temporarily expose input value. Use with caution.
get notificationTypeInput() {
return this._notificationType;
}
}
exports.SsmMaintenanceWindowTaskTaskInvocationParametersRunCommandParametersNotificationConfigOutputReference = SsmMaintenanceWindowTaskTaskInvocationParametersRunCommandParametersNotificationConfigOutputReference;
_h = JSII_RTTI_SYMBOL_1;
SsmMaintenanceWindowTaskTaskInvocationParametersRunCommandParametersNotificationConfigOutputReference[_h] = { fqn: "@cdktf/provider-aws.ssmMaintenanceWindowTask.SsmMaintenanceWindowTaskTaskInvocationParametersRunCommandParametersNotificationConfigOutputReference", version: "21.22.1" };
function ssmMaintenanceWindowTaskTaskInvocationParametersRunCommandParametersParameterToTerraform(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 {
name: cdktf.stringToTerraform(struct.name),
values: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.values),
};
}
function ssmMaintenanceWindowTaskTaskInvocationParametersRunCommandParametersParameterToHclTerraform(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 = {
name: {
value: cdktf.stringToHclTerraform(struct.name),
isBlock: false,
type: "simple",
storageClassType: "string",
},
values: {
value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.values),
isBlock: false,
type: "list",
storageClassType: "stringList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class SsmMaintenanceWindowTaskTaskInvocationParametersRunCommandParametersParameterOutputReference 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._name !== undefined) {
hasAnyValues = true;
internalValueResult.name = this._name;
}
if (this._values !== undefined) {
hasAnyValues = true;
internalValueResult.values = this._values;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._name = undefined;
this._values = 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._name = value.name;
this._values = value.values;
}
}
get name() {
return this.getStringAttribute('name');
}
set name(value) {
this._name = value;
}
// Temporarily expose input value. Use with caution.
get nameInput() {
return this._name;
}
get values() {
return this.getListAttribute('values');
}
set values(value) {
this._values = value;
}
// Temporarily expose input value. Use with caution.
get valuesInput() {
return this._values;
}
}
exports.SsmMaintenanceWindowTaskTaskInvocationParametersRunCommandParametersParameterOutputReference = SsmMaintenanceWindowTaskTaskInvocationParametersRunCommandParametersParameterOutputReference;
_j = JSII_RTTI_SYMBOL_1;
SsmMaintenanceWindowTaskTaskInvocationParametersRunCommandParametersParameterOutputReference[_j] = { fqn: "@cdktf/provider-aws.ssmMaintenanceWindowTask.SsmMaintenanceWindowTaskTaskInvocationParametersRunCommandParametersParameterOutputReference", version: "21.22.1" };
class SsmMaintenanceWindowTaskTaskInvocationParametersRunCommandParametersParameterList 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 SsmMaintenanceWindowTaskTaskInvocationParametersRunCommandParametersParameterOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.SsmMaintenanceWindowTaskTaskInvocationParametersRunCommandParametersParameterList = SsmMaintenanceWindowTaskTaskInvocationParametersRunCommandParametersParameterList;
_k = JSII_RTTI_SYMBOL_1;
SsmMaintenanceWindowTaskTaskInvocationParametersRunCommandParametersParameterList[_k] = { fqn: "@cdktf/provider-aws.ssmMaintenanceWindowTask.SsmMaintenanceWindowTaskTaskInvocationParametersRunCommandParametersParameterList", version: "21.22.1" };
function ssmMaintenanceWindowTaskTaskInvocationParametersRunCommandParametersToTerraform(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 {
comment: cdktf.stringToTerraform(struct.comment),
document_hash: cdktf.stringToTerraform(struct.documentHash),
document_hash_type: cdktf.stringToTerraform(struct.documentHashType),
document_version: cdktf.stringToTerraform(struct.documentVersion),
output_s3_bucket: cdktf.stringToTerraform(struct.outputS3Bucket),
output_s3_key_prefix: cdktf.stringToTerraform(struct.outputS3KeyPrefix),
service_role_arn: cdktf.stringToTerraform(struct.serviceRoleArn),
timeout_seconds: cdktf.numberToTerraform(struct.timeoutSeconds),
cloudwatch_config: ssmMaintenanceWindowTaskTaskInvocationParametersRunCommandParametersCloudwatchConfigToTerraform(struct.cloudwatchConfig),
notification_config: ssmMaintenanceWindowTaskTaskInvocationParametersRunCommandParametersNotificationConfigToTerraform(struct.notificationConfig),
parameter: cdktf.listMapper(ssmMaintenanceWindowTaskTaskInvocationParametersRunCommandParametersParameterToTerraform, true)(struct.parameter),
};
}
function ssmMaintenanceWindowTaskTaskInvocationParametersRunCommandParametersToHclTerraform(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 = {
comment: {
value: cdktf.stringToHclTerraform(struct.comment),
isBlock: false,
type: "simple",
storageClassType: "string",
},
document_hash: {
value: cdktf.stringToHclTerraform(struct.documentHash),
isBlock: false,
type: "simple",
storageClassType: "string",
},
document_hash_type: {
value: cdktf.stringToHclTerraform(struct.documentHashType),
isBlock: false,
type: "simple",
storageClassType: "string",
},
document_version: {
value: cdktf.stringToHclTerraform(struct.documentVersion),
isBlock: false,
type: "simple",
storageClassType: "string",
},
output_s3_bucket: {
value: cdktf.stringToHclTerraform(struct.outputS3Bucket),
isBlock: false,
type: "simple",
storageClassType: "string",
},
output_s3_key_prefix: {
value: cdktf.stringToHclTerraform(struct.outputS3KeyPrefix),
isBlock: false,
type: "simple",
storageClassType: "string",
},
service_role_arn: {
value: cdktf.stringToHclTerraform(struct.serviceRoleArn),
isBlock: false,
type: "simple",
storageClassType: "string",
},
timeout_seconds: {
value: cdktf.numberToHclTerraform(struct.timeoutSeconds),
isBlock: false,
type: "simple",
storageClassType: "number",
},
cloudwatch_config: {
value: ssmMaintenanceWindowTaskTaskInvocationParametersRunCommandParametersCloudwatchConfigToHclTerraform(struct.cloudwatchConfig),
isBlock: true,
type: "list",
storageClassType: "SsmMaintenanceWindowTaskTaskInvocationParametersRunCommandParametersCloudwatchConfigList",
},
notification_config: {
value: ssmMaintenanceWindowTaskTaskInvocationParametersRunCommandParametersNotificationConfigToHclTerraform(struct.notificationConfig),
isBlock: true,
type: "list",
storageClassType: "SsmMaintenanceWindowTaskTaskInvocationParametersRunCommandParametersNotificationConfigList",
},
parameter: {
value: cdktf.listMapperHcl(ssmMaintenanceWindowTaskTaskInvocationParametersRunCommandParametersParameterToHclTerraform, true)(struct.parameter),
isBlock: true,
type: "set",
storageClassType: "SsmMaintenanceWindowTaskTaskInvocationParametersRunCommandParametersParameterList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class SsmMaintenanceWindowTaskTaskInvocationParametersRunCommandParametersOutputReference 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;
// cloudwatch_config - computed: false, optional: true, required: false
this._cloudwatchConfig = new SsmMaintenanceWindowTaskTaskInvocationParametersRunCommandParametersCloudwatchConfigOutputReference(this, "cloudwatch_config");
// notification_config - computed: false, optional: true, required: false
this._notificationConfig = new SsmMaintenanceWindowTaskTaskInvocationParametersRunCommandParametersNotificationConfigOutputReference(this, "notification_config");
// parameter - computed: false, optional: true, required: false
this._parameter = new SsmMaintenanceWindowTaskTaskInvocationParametersRunCommandParametersParameterList(this, "parameter", true);
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._comment !== undefined) {
hasAnyValues = true;
internalValueResult.comment = this._comment;
}
if (this._documentHash !== undefined) {
hasAnyValues = true;
internalValueResult.documentHash = this._documentHash;
}
if (this._documentHashType !== undefined) {
hasAnyValues = true;
internalValueResult.documentHashType = this._documentHashType;
}
if (this._documentVersion !== undefined) {
hasAnyValues = true;
internalValueResult.documentVersion = this._documentVersion;
}
if (this._outputS3Bucket !== undefined) {
hasAnyValues = true;
internalValueResult.outputS3Bucket = this._outputS3Bucket;
}
if (this._outputS3KeyPrefix !== undefined) {
hasAnyValues = true;
internalValueResult.outputS3KeyPrefix = this._outputS3KeyPrefix;
}
if (this._serviceRoleArn !== undefined) {
hasAnyValues = true;
internalValueResult.serviceRoleArn = this._serviceRoleArn;
}
if (this._timeoutSeconds !== undefined) {
hasAnyValues = true;
internalValueResult.timeoutSeconds = this._timeoutSeconds;
}
if (this._cloudwatchConfig?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.cloudwatchConfig = this._cloudwatchConfig?.internalValue;
}
if (this._notificationConfig?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.notificationConfig = this._notificationConfig?.internalValue;
}
if (this._parameter?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.parameter = this._parameter?.internalValue;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._comment = undefined;
this._documentHash = undefined;
this._documentHashType = undefined;
this._documentVersion = undefined;
this._outputS3Bucket = undefined;
this._outputS3KeyPrefix = undefined;
this._serviceRoleArn = undefined;
this._timeoutSeconds = undefined;
this._cloudwatchConfig.internalValue = undefined;
this._notificationConfig.internalValue = undefined;
this._parameter.internalValue = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._comment = value.comment;
this._documentHash = value.documentHash;
this._documentHashType = value.documentHashType;