@cdktf/provider-aws
Version:
Prebuilt aws Provider for Terraform CDK (cdktf)
1,040 lines • 243 kB
JavaScript
"use strict";
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w;
Object.defineProperty(exports, "__esModule", { value: true });
exports.SsmcontactsRotation = exports.SsmcontactsRotationRecurrenceList = exports.SsmcontactsRotationRecurrenceOutputReference = exports.SsmcontactsRotationRecurrenceWeeklySettingsList = exports.SsmcontactsRotationRecurrenceWeeklySettingsOutputReference = exports.SsmcontactsRotationRecurrenceWeeklySettingsHandOffTimeList = exports.SsmcontactsRotationRecurrenceWeeklySettingsHandOffTimeOutputReference = exports.SsmcontactsRotationRecurrenceShiftCoveragesList = exports.SsmcontactsRotationRecurrenceShiftCoveragesOutputReference = exports.SsmcontactsRotationRecurrenceShiftCoveragesCoverageTimesList = exports.SsmcontactsRotationRecurrenceShiftCoveragesCoverageTimesOutputReference = exports.SsmcontactsRotationRecurrenceShiftCoveragesCoverageTimesStartList = exports.SsmcontactsRotationRecurrenceShiftCoveragesCoverageTimesStartOutputReference = exports.SsmcontactsRotationRecurrenceShiftCoveragesCoverageTimesEndList = exports.SsmcontactsRotationRecurrenceShiftCoveragesCoverageTimesEndOutputReference = exports.SsmcontactsRotationRecurrenceMonthlySettingsList = exports.SsmcontactsRotationRecurrenceMonthlySettingsOutputReference = exports.SsmcontactsRotationRecurrenceMonthlySettingsHandOffTimeList = exports.SsmcontactsRotationRecurrenceMonthlySettingsHandOffTimeOutputReference = exports.SsmcontactsRotationRecurrenceDailySettingsList = exports.SsmcontactsRotationRecurrenceDailySettingsOutputReference = void 0;
exports.ssmcontactsRotationRecurrenceDailySettingsToTerraform = ssmcontactsRotationRecurrenceDailySettingsToTerraform;
exports.ssmcontactsRotationRecurrenceDailySettingsToHclTerraform = ssmcontactsRotationRecurrenceDailySettingsToHclTerraform;
exports.ssmcontactsRotationRecurrenceMonthlySettingsHandOffTimeToTerraform = ssmcontactsRotationRecurrenceMonthlySettingsHandOffTimeToTerraform;
exports.ssmcontactsRotationRecurrenceMonthlySettingsHandOffTimeToHclTerraform = ssmcontactsRotationRecurrenceMonthlySettingsHandOffTimeToHclTerraform;
exports.ssmcontactsRotationRecurrenceMonthlySettingsToTerraform = ssmcontactsRotationRecurrenceMonthlySettingsToTerraform;
exports.ssmcontactsRotationRecurrenceMonthlySettingsToHclTerraform = ssmcontactsRotationRecurrenceMonthlySettingsToHclTerraform;
exports.ssmcontactsRotationRecurrenceShiftCoveragesCoverageTimesEndToTerraform = ssmcontactsRotationRecurrenceShiftCoveragesCoverageTimesEndToTerraform;
exports.ssmcontactsRotationRecurrenceShiftCoveragesCoverageTimesEndToHclTerraform = ssmcontactsRotationRecurrenceShiftCoveragesCoverageTimesEndToHclTerraform;
exports.ssmcontactsRotationRecurrenceShiftCoveragesCoverageTimesStartToTerraform = ssmcontactsRotationRecurrenceShiftCoveragesCoverageTimesStartToTerraform;
exports.ssmcontactsRotationRecurrenceShiftCoveragesCoverageTimesStartToHclTerraform = ssmcontactsRotationRecurrenceShiftCoveragesCoverageTimesStartToHclTerraform;
exports.ssmcontactsRotationRecurrenceShiftCoveragesCoverageTimesToTerraform = ssmcontactsRotationRecurrenceShiftCoveragesCoverageTimesToTerraform;
exports.ssmcontactsRotationRecurrenceShiftCoveragesCoverageTimesToHclTerraform = ssmcontactsRotationRecurrenceShiftCoveragesCoverageTimesToHclTerraform;
exports.ssmcontactsRotationRecurrenceShiftCoveragesToTerraform = ssmcontactsRotationRecurrenceShiftCoveragesToTerraform;
exports.ssmcontactsRotationRecurrenceShiftCoveragesToHclTerraform = ssmcontactsRotationRecurrenceShiftCoveragesToHclTerraform;
exports.ssmcontactsRotationRecurrenceWeeklySettingsHandOffTimeToTerraform = ssmcontactsRotationRecurrenceWeeklySettingsHandOffTimeToTerraform;
exports.ssmcontactsRotationRecurrenceWeeklySettingsHandOffTimeToHclTerraform = ssmcontactsRotationRecurrenceWeeklySettingsHandOffTimeToHclTerraform;
exports.ssmcontactsRotationRecurrenceWeeklySettingsToTerraform = ssmcontactsRotationRecurrenceWeeklySettingsToTerraform;
exports.ssmcontactsRotationRecurrenceWeeklySettingsToHclTerraform = ssmcontactsRotationRecurrenceWeeklySettingsToHclTerraform;
exports.ssmcontactsRotationRecurrenceToTerraform = ssmcontactsRotationRecurrenceToTerraform;
exports.ssmcontactsRotationRecurrenceToHclTerraform = ssmcontactsRotationRecurrenceToHclTerraform;
const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
const cdktf = require("cdktf");
function ssmcontactsRotationRecurrenceDailySettingsToTerraform(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 {
hour_of_day: cdktf.numberToTerraform(struct.hourOfDay),
minute_of_hour: cdktf.numberToTerraform(struct.minuteOfHour),
};
}
function ssmcontactsRotationRecurrenceDailySettingsToHclTerraform(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 = {
hour_of_day: {
value: cdktf.numberToHclTerraform(struct.hourOfDay),
isBlock: false,
type: "simple",
storageClassType: "number",
},
minute_of_hour: {
value: cdktf.numberToHclTerraform(struct.minuteOfHour),
isBlock: false,
type: "simple",
storageClassType: "number",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class SsmcontactsRotationRecurrenceDailySettingsOutputReference 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._hourOfDay !== undefined) {
hasAnyValues = true;
internalValueResult.hourOfDay = this._hourOfDay;
}
if (this._minuteOfHour !== undefined) {
hasAnyValues = true;
internalValueResult.minuteOfHour = this._minuteOfHour;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._hourOfDay = undefined;
this._minuteOfHour = 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._hourOfDay = value.hourOfDay;
this._minuteOfHour = value.minuteOfHour;
}
}
get hourOfDay() {
return this.getNumberAttribute('hour_of_day');
}
set hourOfDay(value) {
this._hourOfDay = value;
}
// Temporarily expose input value. Use with caution.
get hourOfDayInput() {
return this._hourOfDay;
}
get minuteOfHour() {
return this.getNumberAttribute('minute_of_hour');
}
set minuteOfHour(value) {
this._minuteOfHour = value;
}
// Temporarily expose input value. Use with caution.
get minuteOfHourInput() {
return this._minuteOfHour;
}
}
exports.SsmcontactsRotationRecurrenceDailySettingsOutputReference = SsmcontactsRotationRecurrenceDailySettingsOutputReference;
_a = JSII_RTTI_SYMBOL_1;
SsmcontactsRotationRecurrenceDailySettingsOutputReference[_a] = { fqn: "@cdktf/provider-aws.ssmcontactsRotation.SsmcontactsRotationRecurrenceDailySettingsOutputReference", version: "21.22.1" };
class SsmcontactsRotationRecurrenceDailySettingsList 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 SsmcontactsRotationRecurrenceDailySettingsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.SsmcontactsRotationRecurrenceDailySettingsList = SsmcontactsRotationRecurrenceDailySettingsList;
_b = JSII_RTTI_SYMBOL_1;
SsmcontactsRotationRecurrenceDailySettingsList[_b] = { fqn: "@cdktf/provider-aws.ssmcontactsRotation.SsmcontactsRotationRecurrenceDailySettingsList", version: "21.22.1" };
function ssmcontactsRotationRecurrenceMonthlySettingsHandOffTimeToTerraform(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 {
hour_of_day: cdktf.numberToTerraform(struct.hourOfDay),
minute_of_hour: cdktf.numberToTerraform(struct.minuteOfHour),
};
}
function ssmcontactsRotationRecurrenceMonthlySettingsHandOffTimeToHclTerraform(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 = {
hour_of_day: {
value: cdktf.numberToHclTerraform(struct.hourOfDay),
isBlock: false,
type: "simple",
storageClassType: "number",
},
minute_of_hour: {
value: cdktf.numberToHclTerraform(struct.minuteOfHour),
isBlock: false,
type: "simple",
storageClassType: "number",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class SsmcontactsRotationRecurrenceMonthlySettingsHandOffTimeOutputReference 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._hourOfDay !== undefined) {
hasAnyValues = true;
internalValueResult.hourOfDay = this._hourOfDay;
}
if (this._minuteOfHour !== undefined) {
hasAnyValues = true;
internalValueResult.minuteOfHour = this._minuteOfHour;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._hourOfDay = undefined;
this._minuteOfHour = 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._hourOfDay = value.hourOfDay;
this._minuteOfHour = value.minuteOfHour;
}
}
get hourOfDay() {
return this.getNumberAttribute('hour_of_day');
}
set hourOfDay(value) {
this._hourOfDay = value;
}
// Temporarily expose input value. Use with caution.
get hourOfDayInput() {
return this._hourOfDay;
}
get minuteOfHour() {
return this.getNumberAttribute('minute_of_hour');
}
set minuteOfHour(value) {
this._minuteOfHour = value;
}
// Temporarily expose input value. Use with caution.
get minuteOfHourInput() {
return this._minuteOfHour;
}
}
exports.SsmcontactsRotationRecurrenceMonthlySettingsHandOffTimeOutputReference = SsmcontactsRotationRecurrenceMonthlySettingsHandOffTimeOutputReference;
_c = JSII_RTTI_SYMBOL_1;
SsmcontactsRotationRecurrenceMonthlySettingsHandOffTimeOutputReference[_c] = { fqn: "@cdktf/provider-aws.ssmcontactsRotation.SsmcontactsRotationRecurrenceMonthlySettingsHandOffTimeOutputReference", version: "21.22.1" };
class SsmcontactsRotationRecurrenceMonthlySettingsHandOffTimeList 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 SsmcontactsRotationRecurrenceMonthlySettingsHandOffTimeOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.SsmcontactsRotationRecurrenceMonthlySettingsHandOffTimeList = SsmcontactsRotationRecurrenceMonthlySettingsHandOffTimeList;
_d = JSII_RTTI_SYMBOL_1;
SsmcontactsRotationRecurrenceMonthlySettingsHandOffTimeList[_d] = { fqn: "@cdktf/provider-aws.ssmcontactsRotation.SsmcontactsRotationRecurrenceMonthlySettingsHandOffTimeList", version: "21.22.1" };
function ssmcontactsRotationRecurrenceMonthlySettingsToTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
return {
day_of_month: cdktf.numberToTerraform(struct.dayOfMonth),
hand_off_time: cdktf.listMapper(ssmcontactsRotationRecurrenceMonthlySettingsHandOffTimeToTerraform, true)(struct.handOffTime),
};
}
function ssmcontactsRotationRecurrenceMonthlySettingsToHclTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
const attrs = {
day_of_month: {
value: cdktf.numberToHclTerraform(struct.dayOfMonth),
isBlock: false,
type: "simple",
storageClassType: "number",
},
hand_off_time: {
value: cdktf.listMapperHcl(ssmcontactsRotationRecurrenceMonthlySettingsHandOffTimeToHclTerraform, true)(struct.handOffTime),
isBlock: true,
type: "list",
storageClassType: "SsmcontactsRotationRecurrenceMonthlySettingsHandOffTimeList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class SsmcontactsRotationRecurrenceMonthlySettingsOutputReference 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;
// hand_off_time - computed: false, optional: true, required: false
this._handOffTime = new SsmcontactsRotationRecurrenceMonthlySettingsHandOffTimeList(this, "hand_off_time", false);
}
get internalValue() {
if (this.resolvableValue) {
return this.resolvableValue;
}
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._dayOfMonth !== undefined) {
hasAnyValues = true;
internalValueResult.dayOfMonth = this._dayOfMonth;
}
if (this._handOffTime?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.handOffTime = this._handOffTime?.internalValue;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._dayOfMonth = undefined;
this._handOffTime.internalValue = 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._dayOfMonth = value.dayOfMonth;
this._handOffTime.internalValue = value.handOffTime;
}
}
get dayOfMonth() {
return this.getNumberAttribute('day_of_month');
}
set dayOfMonth(value) {
this._dayOfMonth = value;
}
// Temporarily expose input value. Use with caution.
get dayOfMonthInput() {
return this._dayOfMonth;
}
get handOffTime() {
return this._handOffTime;
}
putHandOffTime(value) {
this._handOffTime.internalValue = value;
}
resetHandOffTime() {
this._handOffTime.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get handOffTimeInput() {
return this._handOffTime.internalValue;
}
}
exports.SsmcontactsRotationRecurrenceMonthlySettingsOutputReference = SsmcontactsRotationRecurrenceMonthlySettingsOutputReference;
_e = JSII_RTTI_SYMBOL_1;
SsmcontactsRotationRecurrenceMonthlySettingsOutputReference[_e] = { fqn: "@cdktf/provider-aws.ssmcontactsRotation.SsmcontactsRotationRecurrenceMonthlySettingsOutputReference", version: "21.22.1" };
class SsmcontactsRotationRecurrenceMonthlySettingsList 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 SsmcontactsRotationRecurrenceMonthlySettingsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.SsmcontactsRotationRecurrenceMonthlySettingsList = SsmcontactsRotationRecurrenceMonthlySettingsList;
_f = JSII_RTTI_SYMBOL_1;
SsmcontactsRotationRecurrenceMonthlySettingsList[_f] = { fqn: "@cdktf/provider-aws.ssmcontactsRotation.SsmcontactsRotationRecurrenceMonthlySettingsList", version: "21.22.1" };
function ssmcontactsRotationRecurrenceShiftCoveragesCoverageTimesEndToTerraform(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 {
hour_of_day: cdktf.numberToTerraform(struct.hourOfDay),
minute_of_hour: cdktf.numberToTerraform(struct.minuteOfHour),
};
}
function ssmcontactsRotationRecurrenceShiftCoveragesCoverageTimesEndToHclTerraform(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 = {
hour_of_day: {
value: cdktf.numberToHclTerraform(struct.hourOfDay),
isBlock: false,
type: "simple",
storageClassType: "number",
},
minute_of_hour: {
value: cdktf.numberToHclTerraform(struct.minuteOfHour),
isBlock: false,
type: "simple",
storageClassType: "number",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class SsmcontactsRotationRecurrenceShiftCoveragesCoverageTimesEndOutputReference 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._hourOfDay !== undefined) {
hasAnyValues = true;
internalValueResult.hourOfDay = this._hourOfDay;
}
if (this._minuteOfHour !== undefined) {
hasAnyValues = true;
internalValueResult.minuteOfHour = this._minuteOfHour;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._hourOfDay = undefined;
this._minuteOfHour = 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._hourOfDay = value.hourOfDay;
this._minuteOfHour = value.minuteOfHour;
}
}
get hourOfDay() {
return this.getNumberAttribute('hour_of_day');
}
set hourOfDay(value) {
this._hourOfDay = value;
}
// Temporarily expose input value. Use with caution.
get hourOfDayInput() {
return this._hourOfDay;
}
get minuteOfHour() {
return this.getNumberAttribute('minute_of_hour');
}
set minuteOfHour(value) {
this._minuteOfHour = value;
}
// Temporarily expose input value. Use with caution.
get minuteOfHourInput() {
return this._minuteOfHour;
}
}
exports.SsmcontactsRotationRecurrenceShiftCoveragesCoverageTimesEndOutputReference = SsmcontactsRotationRecurrenceShiftCoveragesCoverageTimesEndOutputReference;
_g = JSII_RTTI_SYMBOL_1;
SsmcontactsRotationRecurrenceShiftCoveragesCoverageTimesEndOutputReference[_g] = { fqn: "@cdktf/provider-aws.ssmcontactsRotation.SsmcontactsRotationRecurrenceShiftCoveragesCoverageTimesEndOutputReference", version: "21.22.1" };
class SsmcontactsRotationRecurrenceShiftCoveragesCoverageTimesEndList 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 SsmcontactsRotationRecurrenceShiftCoveragesCoverageTimesEndOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.SsmcontactsRotationRecurrenceShiftCoveragesCoverageTimesEndList = SsmcontactsRotationRecurrenceShiftCoveragesCoverageTimesEndList;
_h = JSII_RTTI_SYMBOL_1;
SsmcontactsRotationRecurrenceShiftCoveragesCoverageTimesEndList[_h] = { fqn: "@cdktf/provider-aws.ssmcontactsRotation.SsmcontactsRotationRecurrenceShiftCoveragesCoverageTimesEndList", version: "21.22.1" };
function ssmcontactsRotationRecurrenceShiftCoveragesCoverageTimesStartToTerraform(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 {
hour_of_day: cdktf.numberToTerraform(struct.hourOfDay),
minute_of_hour: cdktf.numberToTerraform(struct.minuteOfHour),
};
}
function ssmcontactsRotationRecurrenceShiftCoveragesCoverageTimesStartToHclTerraform(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 = {
hour_of_day: {
value: cdktf.numberToHclTerraform(struct.hourOfDay),
isBlock: false,
type: "simple",
storageClassType: "number",
},
minute_of_hour: {
value: cdktf.numberToHclTerraform(struct.minuteOfHour),
isBlock: false,
type: "simple",
storageClassType: "number",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class SsmcontactsRotationRecurrenceShiftCoveragesCoverageTimesStartOutputReference 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._hourOfDay !== undefined) {
hasAnyValues = true;
internalValueResult.hourOfDay = this._hourOfDay;
}
if (this._minuteOfHour !== undefined) {
hasAnyValues = true;
internalValueResult.minuteOfHour = this._minuteOfHour;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._hourOfDay = undefined;
this._minuteOfHour = 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._hourOfDay = value.hourOfDay;
this._minuteOfHour = value.minuteOfHour;
}
}
get hourOfDay() {
return this.getNumberAttribute('hour_of_day');
}
set hourOfDay(value) {
this._hourOfDay = value;
}
// Temporarily expose input value. Use with caution.
get hourOfDayInput() {
return this._hourOfDay;
}
get minuteOfHour() {
return this.getNumberAttribute('minute_of_hour');
}
set minuteOfHour(value) {
this._minuteOfHour = value;
}
// Temporarily expose input value. Use with caution.
get minuteOfHourInput() {
return this._minuteOfHour;
}
}
exports.SsmcontactsRotationRecurrenceShiftCoveragesCoverageTimesStartOutputReference = SsmcontactsRotationRecurrenceShiftCoveragesCoverageTimesStartOutputReference;
_j = JSII_RTTI_SYMBOL_1;
SsmcontactsRotationRecurrenceShiftCoveragesCoverageTimesStartOutputReference[_j] = { fqn: "@cdktf/provider-aws.ssmcontactsRotation.SsmcontactsRotationRecurrenceShiftCoveragesCoverageTimesStartOutputReference", version: "21.22.1" };
class SsmcontactsRotationRecurrenceShiftCoveragesCoverageTimesStartList 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 SsmcontactsRotationRecurrenceShiftCoveragesCoverageTimesStartOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.SsmcontactsRotationRecurrenceShiftCoveragesCoverageTimesStartList = SsmcontactsRotationRecurrenceShiftCoveragesCoverageTimesStartList;
_k = JSII_RTTI_SYMBOL_1;
SsmcontactsRotationRecurrenceShiftCoveragesCoverageTimesStartList[_k] = { fqn: "@cdktf/provider-aws.ssmcontactsRotation.SsmcontactsRotationRecurrenceShiftCoveragesCoverageTimesStartList", version: "21.22.1" };
function ssmcontactsRotationRecurrenceShiftCoveragesCoverageTimesToTerraform(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 {
end: cdktf.listMapper(ssmcontactsRotationRecurrenceShiftCoveragesCoverageTimesEndToTerraform, true)(struct.end),
start: cdktf.listMapper(ssmcontactsRotationRecurrenceShiftCoveragesCoverageTimesStartToTerraform, true)(struct.start),
};
}
function ssmcontactsRotationRecurrenceShiftCoveragesCoverageTimesToHclTerraform(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 = {
end: {
value: cdktf.listMapperHcl(ssmcontactsRotationRecurrenceShiftCoveragesCoverageTimesEndToHclTerraform, true)(struct.end),
isBlock: true,
type: "list",
storageClassType: "SsmcontactsRotationRecurrenceShiftCoveragesCoverageTimesEndList",
},
start: {
value: cdktf.listMapperHcl(ssmcontactsRotationRecurrenceShiftCoveragesCoverageTimesStartToHclTerraform, true)(struct.start),
isBlock: true,
type: "list",
storageClassType: "SsmcontactsRotationRecurrenceShiftCoveragesCoverageTimesStartList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class SsmcontactsRotationRecurrenceShiftCoveragesCoverageTimesOutputReference 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;
// end - computed: false, optional: true, required: false
this._end = new SsmcontactsRotationRecurrenceShiftCoveragesCoverageTimesEndList(this, "end", false);
// start - computed: false, optional: true, required: false
this._start = new SsmcontactsRotationRecurrenceShiftCoveragesCoverageTimesStartList(this, "start", false);
}
get internalValue() {
if (this.resolvableValue) {
return this.resolvableValue;
}
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._end?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.end = this._end?.internalValue;
}
if (this._start?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.start = this._start?.internalValue;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._end.internalValue = undefined;
this._start.internalValue = 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._end.internalValue = value.end;
this._start.internalValue = value.start;
}
}
get end() {
return this._end;
}
putEnd(value) {
this._end.internalValue = value;
}
resetEnd() {
this._end.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get endInput() {
return this._end.internalValue;
}
get start() {
return this._start;
}
putStart(value) {
this._start.internalValue = value;
}
resetStart() {
this._start.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get startInput() {
return this._start.internalValue;
}
}
exports.SsmcontactsRotationRecurrenceShiftCoveragesCoverageTimesOutputReference = SsmcontactsRotationRecurrenceShiftCoveragesCoverageTimesOutputReference;
_l = JSII_RTTI_SYMBOL_1;
SsmcontactsRotationRecurrenceShiftCoveragesCoverageTimesOutputReference[_l] = { fqn: "@cdktf/provider-aws.ssmcontactsRotation.SsmcontactsRotationRecurrenceShiftCoveragesCoverageTimesOutputReference", version: "21.22.1" };
class SsmcontactsRotationRecurrenceShiftCoveragesCoverageTimesList 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 SsmcontactsRotationRecurrenceShiftCoveragesCoverageTimesOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.SsmcontactsRotationRecurrenceShiftCoveragesCoverageTimesList = SsmcontactsRotationRecurrenceShiftCoveragesCoverageTimesList;
_m = JSII_RTTI_SYMBOL_1;
SsmcontactsRotationRecurrenceShiftCoveragesCoverageTimesList[_m] = { fqn: "@cdktf/provider-aws.ssmcontactsRotation.SsmcontactsRotationRecurrenceShiftCoveragesCoverageTimesList", version: "21.22.1" };
function ssmcontactsRotationRecurrenceShiftCoveragesToTerraform(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 {
map_block_key: cdktf.stringToTerraform(struct.mapBlockKey),
coverage_times: cdktf.listMapper(ssmcontactsRotationRecurrenceShiftCoveragesCoverageTimesToTerraform, true)(struct.coverageTimes),
};
}
function ssmcontactsRotationRecurrenceShiftCoveragesToHclTerraform(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 = {
map_block_key: {
value: cdktf.stringToHclTerraform(struct.mapBlockKey),
isBlock: false,
type: "simple",
storageClassType: "string",
},
coverage_times: {
value: cdktf.listMapperHcl(ssmcontactsRotationRecurrenceShiftCoveragesCoverageTimesToHclTerraform, true)(struct.coverageTimes),
isBlock: true,
type: "list",
storageClassType: "SsmcontactsRotationRecurrenceShiftCoveragesCoverageTimesList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class SsmcontactsRotationRecurrenceShiftCoveragesOutputReference 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;
// coverage_times - computed: false, optional: true, required: false
this._coverageTimes = new SsmcontactsRotationRecurrenceShiftCoveragesCoverageTimesList(this, "coverage_times", false);
}
get internalValue() {
if (this.resolvableValue) {
return this.resolvableValue;
}
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._mapBlockKey !== undefined) {
hasAnyValues = true;
internalValueResult.mapBlockKey = this._mapBlockKey;
}
if (this._coverageTimes?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.coverageTimes = this._coverageTimes?.internalValue;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._mapBlockKey = undefined;
this._coverageTimes.internalValue = 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._mapBlockKey = value.mapBlockKey;
this._coverageTimes.internalValue = value.coverageTimes;
}
}
get mapBlockKey() {
return this.getStringAttribute('map_block_key');
}
set mapBlockKey(value) {
this._mapBlockKey = value;
}
// Temporarily expose input value. Use with caution.
get mapBlockKeyInput() {
return this._mapBlockKey;
}
get coverageTimes() {
return this._coverageTimes;
}
putCoverageTimes(value) {
this._coverageTimes.internalValue = value;
}
resetCoverageTimes() {
this._coverageTimes.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get coverageTimesInput() {
return this._coverageTimes.internalValue;
}
}
exports.SsmcontactsRotationRecurrenceShiftCoveragesOutputReference = SsmcontactsRotationRecurrenceShiftCoveragesOutputReference;
_o = JSII_RTTI_SYMBOL_1;
SsmcontactsRotationRecurrenceShiftCoveragesOutputReference[_o] = { fqn: "@cdktf/provider-aws.ssmcontactsRotation.SsmcontactsRotationRecurrenceShiftCoveragesOutputReference", version: "21.22.1" };
class SsmcontactsRotationRecurrenceShiftCoveragesList 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 SsmcontactsRotationRecurrenceShiftCoveragesOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.SsmcontactsRotationRecurrenceShiftCoveragesList = SsmcontactsRotationRecurrenceShiftCoveragesList;
_p = JSII_RTTI_SYMBOL_1;
SsmcontactsRotationRecurrenceShiftCoveragesList[_p] = { fqn: "@cdktf/provider-aws.ssmcontactsRotation.SsmcontactsRotationRecurrenceShiftCoveragesList", version: "21.22.1" };
function ssmcontactsRotationRecurrenceWeeklySettingsHandOffTimeToTerraform(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 {
hour_of_day: cdktf.numberToTerraform(struct.hourOfDay),
minute_of_hour: cdktf.numberToTerraform(struct.minuteOfHour),
};
}
function ssmcontactsRotationRecurrenceWeeklySettingsHandOffTimeToHclTerraform(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 = {
hour_of_day: {
value: cdktf.numberToHclTerraform(struct.hourOfDay),
isBlock: false,
type: "simple",
storageClassType: "number",
},
minute_of_hour: {
value: cdktf.numberToHclTerraform(struct.minuteOfHour),
isBlock: false,
type: "simple",
storageClassType: "number",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class SsmcontactsRotationRecurrenceWeeklySettingsHandOffTimeOutputReference 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._hourOfDay !== undefined) {
hasAnyValues = true;
internalValueResult.hourOfDay = this._hourOfDay;
}
if (this._minuteOfHour !== undefined) {
hasAnyValues = true;
internalValueResult.minuteOfHour = this._minuteOfHour;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._hourOfDay = undefined;
this._minuteOfHour = 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._hourOfDay = value.hourOfDay;
this._minuteOfHour = value.minuteOfHour;
}
}
get hourOfDay() {
return this.getNumberAttribute('hour_of_day');
}
set hourOfDay(value) {
this._hourOfDay = value;
}
// Temporarily expose input value. Use with caution.
get hourOfDayInput() {
return this._hourOfDay;
}
get minuteOfHour() {
return this.getNumberAttribute('minute_of_hour');
}
set minuteOfHour(value) {
this._minuteOfHour = value;
}
// Temporarily expose input value. Use with caution.
get minuteOfHourInput() {
return this._minuteOfHour;
}
}
exports.SsmcontactsRotationRecurrenceWeeklySettingsHandOffTimeOutputReference = SsmcontactsRotationRecurrenceWeeklySettingsHandOffTimeOutputReference;
_q = JSII_RTTI_SYMBOL_1;
SsmcontactsRotationRecurrenceWeeklySettingsHandOffTimeOutputReference[_q] = { fqn: "@cdktf/provider-aws.ssmcontactsRotation.SsmcontactsRotationRecurrenceWeeklySettingsHandOffTimeOutputReference", version: "2