@cdktf/provider-azurerm
Version:
Prebuilt azurerm Provider for Terraform CDK (cdktf)
1,170 lines • 317 kB
JavaScript
"use strict";
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
Object.defineProperty(exports, "__esModule", { value: true });
exports.AutomationSoftwareUpdateConfiguration = exports.AutomationSoftwareUpdateConfigurationWindowsOutputReference = exports.automationSoftwareUpdateConfigurationWindowsToHclTerraform = exports.automationSoftwareUpdateConfigurationWindowsToTerraform = exports.AutomationSoftwareUpdateConfigurationTimeoutsOutputReference = exports.automationSoftwareUpdateConfigurationTimeoutsToHclTerraform = exports.automationSoftwareUpdateConfigurationTimeoutsToTerraform = exports.AutomationSoftwareUpdateConfigurationTargetOutputReference = exports.automationSoftwareUpdateConfigurationTargetToHclTerraform = exports.automationSoftwareUpdateConfigurationTargetToTerraform = exports.AutomationSoftwareUpdateConfigurationTargetNonAzureQueryList = exports.AutomationSoftwareUpdateConfigurationTargetNonAzureQueryOutputReference = exports.automationSoftwareUpdateConfigurationTargetNonAzureQueryToHclTerraform = exports.automationSoftwareUpdateConfigurationTargetNonAzureQueryToTerraform = exports.AutomationSoftwareUpdateConfigurationTargetAzureQueryList = exports.AutomationSoftwareUpdateConfigurationTargetAzureQueryOutputReference = exports.automationSoftwareUpdateConfigurationTargetAzureQueryToHclTerraform = exports.automationSoftwareUpdateConfigurationTargetAzureQueryToTerraform = exports.AutomationSoftwareUpdateConfigurationTargetAzureQueryTagsList = exports.AutomationSoftwareUpdateConfigurationTargetAzureQueryTagsOutputReference = exports.automationSoftwareUpdateConfigurationTargetAzureQueryTagsToHclTerraform = exports.automationSoftwareUpdateConfigurationTargetAzureQueryTagsToTerraform = exports.AutomationSoftwareUpdateConfigurationScheduleOutputReference = exports.automationSoftwareUpdateConfigurationScheduleToHclTerraform = exports.automationSoftwareUpdateConfigurationScheduleToTerraform = exports.AutomationSoftwareUpdateConfigurationScheduleMonthlyOccurrenceOutputReference = exports.automationSoftwareUpdateConfigurationScheduleMonthlyOccurrenceToHclTerraform = exports.automationSoftwareUpdateConfigurationScheduleMonthlyOccurrenceToTerraform = exports.AutomationSoftwareUpdateConfigurationPreTaskOutputReference = exports.automationSoftwareUpdateConfigurationPreTaskToHclTerraform = exports.automationSoftwareUpdateConfigurationPreTaskToTerraform = exports.AutomationSoftwareUpdateConfigurationPostTaskOutputReference = exports.automationSoftwareUpdateConfigurationPostTaskToHclTerraform = exports.automationSoftwareUpdateConfigurationPostTaskToTerraform = exports.AutomationSoftwareUpdateConfigurationLinuxOutputReference = exports.automationSoftwareUpdateConfigurationLinuxToHclTerraform = exports.automationSoftwareUpdateConfigurationLinuxToTerraform = void 0;
const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
const cdktf = require("cdktf");
function automationSoftwareUpdateConfigurationLinuxToTerraform(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 {
classification_included: cdktf.stringToTerraform(struct.classificationIncluded),
classifications_included: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.classificationsIncluded),
excluded_packages: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.excludedPackages),
included_packages: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.includedPackages),
reboot: cdktf.stringToTerraform(struct.reboot),
};
}
exports.automationSoftwareUpdateConfigurationLinuxToTerraform = automationSoftwareUpdateConfigurationLinuxToTerraform;
function automationSoftwareUpdateConfigurationLinuxToHclTerraform(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 = {
classification_included: {
value: cdktf.stringToHclTerraform(struct.classificationIncluded),
isBlock: false,
type: "simple",
storageClassType: "string",
},
classifications_included: {
value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.classificationsIncluded),
isBlock: false,
type: "list",
storageClassType: "stringList",
},
excluded_packages: {
value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.excludedPackages),
isBlock: false,
type: "list",
storageClassType: "stringList",
},
included_packages: {
value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.includedPackages),
isBlock: false,
type: "list",
storageClassType: "stringList",
},
reboot: {
value: cdktf.stringToHclTerraform(struct.reboot),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.automationSoftwareUpdateConfigurationLinuxToHclTerraform = automationSoftwareUpdateConfigurationLinuxToHclTerraform;
class AutomationSoftwareUpdateConfigurationLinuxOutputReference 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._classificationIncluded !== undefined) {
hasAnyValues = true;
internalValueResult.classificationIncluded = this._classificationIncluded;
}
if (this._classificationsIncluded !== undefined) {
hasAnyValues = true;
internalValueResult.classificationsIncluded = this._classificationsIncluded;
}
if (this._excludedPackages !== undefined) {
hasAnyValues = true;
internalValueResult.excludedPackages = this._excludedPackages;
}
if (this._includedPackages !== undefined) {
hasAnyValues = true;
internalValueResult.includedPackages = this._includedPackages;
}
if (this._reboot !== undefined) {
hasAnyValues = true;
internalValueResult.reboot = this._reboot;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._classificationIncluded = undefined;
this._classificationsIncluded = undefined;
this._excludedPackages = undefined;
this._includedPackages = undefined;
this._reboot = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._classificationIncluded = value.classificationIncluded;
this._classificationsIncluded = value.classificationsIncluded;
this._excludedPackages = value.excludedPackages;
this._includedPackages = value.includedPackages;
this._reboot = value.reboot;
}
}
get classificationIncluded() {
return this.getStringAttribute('classification_included');
}
set classificationIncluded(value) {
this._classificationIncluded = value;
}
resetClassificationIncluded() {
this._classificationIncluded = undefined;
}
// Temporarily expose input value. Use with caution.
get classificationIncludedInput() {
return this._classificationIncluded;
}
get classificationsIncluded() {
return this.getListAttribute('classifications_included');
}
set classificationsIncluded(value) {
this._classificationsIncluded = value;
}
resetClassificationsIncluded() {
this._classificationsIncluded = undefined;
}
// Temporarily expose input value. Use with caution.
get classificationsIncludedInput() {
return this._classificationsIncluded;
}
get excludedPackages() {
return this.getListAttribute('excluded_packages');
}
set excludedPackages(value) {
this._excludedPackages = value;
}
resetExcludedPackages() {
this._excludedPackages = undefined;
}
// Temporarily expose input value. Use with caution.
get excludedPackagesInput() {
return this._excludedPackages;
}
get includedPackages() {
return this.getListAttribute('included_packages');
}
set includedPackages(value) {
this._includedPackages = value;
}
resetIncludedPackages() {
this._includedPackages = undefined;
}
// Temporarily expose input value. Use with caution.
get includedPackagesInput() {
return this._includedPackages;
}
get reboot() {
return this.getStringAttribute('reboot');
}
set reboot(value) {
this._reboot = value;
}
resetReboot() {
this._reboot = undefined;
}
// Temporarily expose input value. Use with caution.
get rebootInput() {
return this._reboot;
}
}
exports.AutomationSoftwareUpdateConfigurationLinuxOutputReference = AutomationSoftwareUpdateConfigurationLinuxOutputReference;
_a = JSII_RTTI_SYMBOL_1;
AutomationSoftwareUpdateConfigurationLinuxOutputReference[_a] = { fqn: "@cdktf/provider-azurerm.automationSoftwareUpdateConfiguration.AutomationSoftwareUpdateConfigurationLinuxOutputReference", version: "12.27.0" };
function automationSoftwareUpdateConfigurationPostTaskToTerraform(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 {
parameters: cdktf.hashMapper(cdktf.stringToTerraform)(struct.parameters),
source: cdktf.stringToTerraform(struct.source),
};
}
exports.automationSoftwareUpdateConfigurationPostTaskToTerraform = automationSoftwareUpdateConfigurationPostTaskToTerraform;
function automationSoftwareUpdateConfigurationPostTaskToHclTerraform(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 = {
parameters: {
value: cdktf.hashMapperHcl(cdktf.stringToHclTerraform)(struct.parameters),
isBlock: false,
type: "map",
storageClassType: "stringMap",
},
source: {
value: cdktf.stringToHclTerraform(struct.source),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.automationSoftwareUpdateConfigurationPostTaskToHclTerraform = automationSoftwareUpdateConfigurationPostTaskToHclTerraform;
class AutomationSoftwareUpdateConfigurationPostTaskOutputReference 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._parameters !== undefined) {
hasAnyValues = true;
internalValueResult.parameters = this._parameters;
}
if (this._source !== undefined) {
hasAnyValues = true;
internalValueResult.source = this._source;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._parameters = undefined;
this._source = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._parameters = value.parameters;
this._source = value.source;
}
}
get parameters() {
return this.getStringMapAttribute('parameters');
}
set parameters(value) {
this._parameters = value;
}
resetParameters() {
this._parameters = undefined;
}
// Temporarily expose input value. Use with caution.
get parametersInput() {
return this._parameters;
}
get source() {
return this.getStringAttribute('source');
}
set source(value) {
this._source = value;
}
resetSource() {
this._source = undefined;
}
// Temporarily expose input value. Use with caution.
get sourceInput() {
return this._source;
}
}
exports.AutomationSoftwareUpdateConfigurationPostTaskOutputReference = AutomationSoftwareUpdateConfigurationPostTaskOutputReference;
_b = JSII_RTTI_SYMBOL_1;
AutomationSoftwareUpdateConfigurationPostTaskOutputReference[_b] = { fqn: "@cdktf/provider-azurerm.automationSoftwareUpdateConfiguration.AutomationSoftwareUpdateConfigurationPostTaskOutputReference", version: "12.27.0" };
function automationSoftwareUpdateConfigurationPreTaskToTerraform(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 {
parameters: cdktf.hashMapper(cdktf.stringToTerraform)(struct.parameters),
source: cdktf.stringToTerraform(struct.source),
};
}
exports.automationSoftwareUpdateConfigurationPreTaskToTerraform = automationSoftwareUpdateConfigurationPreTaskToTerraform;
function automationSoftwareUpdateConfigurationPreTaskToHclTerraform(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 = {
parameters: {
value: cdktf.hashMapperHcl(cdktf.stringToHclTerraform)(struct.parameters),
isBlock: false,
type: "map",
storageClassType: "stringMap",
},
source: {
value: cdktf.stringToHclTerraform(struct.source),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.automationSoftwareUpdateConfigurationPreTaskToHclTerraform = automationSoftwareUpdateConfigurationPreTaskToHclTerraform;
class AutomationSoftwareUpdateConfigurationPreTaskOutputReference 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._parameters !== undefined) {
hasAnyValues = true;
internalValueResult.parameters = this._parameters;
}
if (this._source !== undefined) {
hasAnyValues = true;
internalValueResult.source = this._source;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._parameters = undefined;
this._source = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._parameters = value.parameters;
this._source = value.source;
}
}
get parameters() {
return this.getStringMapAttribute('parameters');
}
set parameters(value) {
this._parameters = value;
}
resetParameters() {
this._parameters = undefined;
}
// Temporarily expose input value. Use with caution.
get parametersInput() {
return this._parameters;
}
get source() {
return this.getStringAttribute('source');
}
set source(value) {
this._source = value;
}
resetSource() {
this._source = undefined;
}
// Temporarily expose input value. Use with caution.
get sourceInput() {
return this._source;
}
}
exports.AutomationSoftwareUpdateConfigurationPreTaskOutputReference = AutomationSoftwareUpdateConfigurationPreTaskOutputReference;
_c = JSII_RTTI_SYMBOL_1;
AutomationSoftwareUpdateConfigurationPreTaskOutputReference[_c] = { fqn: "@cdktf/provider-azurerm.automationSoftwareUpdateConfiguration.AutomationSoftwareUpdateConfigurationPreTaskOutputReference", version: "12.27.0" };
function automationSoftwareUpdateConfigurationScheduleMonthlyOccurrenceToTerraform(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: cdktf.stringToTerraform(struct.day),
occurrence: cdktf.numberToTerraform(struct.occurrence),
};
}
exports.automationSoftwareUpdateConfigurationScheduleMonthlyOccurrenceToTerraform = automationSoftwareUpdateConfigurationScheduleMonthlyOccurrenceToTerraform;
function automationSoftwareUpdateConfigurationScheduleMonthlyOccurrenceToHclTerraform(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: {
value: cdktf.stringToHclTerraform(struct.day),
isBlock: false,
type: "simple",
storageClassType: "string",
},
occurrence: {
value: cdktf.numberToHclTerraform(struct.occurrence),
isBlock: false,
type: "simple",
storageClassType: "number",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.automationSoftwareUpdateConfigurationScheduleMonthlyOccurrenceToHclTerraform = automationSoftwareUpdateConfigurationScheduleMonthlyOccurrenceToHclTerraform;
class AutomationSoftwareUpdateConfigurationScheduleMonthlyOccurrenceOutputReference 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._day !== undefined) {
hasAnyValues = true;
internalValueResult.day = this._day;
}
if (this._occurrence !== undefined) {
hasAnyValues = true;
internalValueResult.occurrence = this._occurrence;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._day = undefined;
this._occurrence = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._day = value.day;
this._occurrence = value.occurrence;
}
}
get day() {
return this.getStringAttribute('day');
}
set day(value) {
this._day = value;
}
// Temporarily expose input value. Use with caution.
get dayInput() {
return this._day;
}
get occurrence() {
return this.getNumberAttribute('occurrence');
}
set occurrence(value) {
this._occurrence = value;
}
// Temporarily expose input value. Use with caution.
get occurrenceInput() {
return this._occurrence;
}
}
exports.AutomationSoftwareUpdateConfigurationScheduleMonthlyOccurrenceOutputReference = AutomationSoftwareUpdateConfigurationScheduleMonthlyOccurrenceOutputReference;
_d = JSII_RTTI_SYMBOL_1;
AutomationSoftwareUpdateConfigurationScheduleMonthlyOccurrenceOutputReference[_d] = { fqn: "@cdktf/provider-azurerm.automationSoftwareUpdateConfiguration.AutomationSoftwareUpdateConfigurationScheduleMonthlyOccurrenceOutputReference", version: "12.27.0" };
function automationSoftwareUpdateConfigurationScheduleToTerraform(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 {
advanced_month_days: cdktf.listMapper(cdktf.numberToTerraform, false)(struct.advancedMonthDays),
advanced_week_days: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.advancedWeekDays),
description: cdktf.stringToTerraform(struct.description),
expiry_time: cdktf.stringToTerraform(struct.expiryTime),
expiry_time_offset_minutes: cdktf.numberToTerraform(struct.expiryTimeOffsetMinutes),
frequency: cdktf.stringToTerraform(struct.frequency),
interval: cdktf.numberToTerraform(struct.interval),
is_enabled: cdktf.booleanToTerraform(struct.isEnabled),
next_run: cdktf.stringToTerraform(struct.nextRun),
next_run_offset_minutes: cdktf.numberToTerraform(struct.nextRunOffsetMinutes),
start_time: cdktf.stringToTerraform(struct.startTime),
start_time_offset_minutes: cdktf.numberToTerraform(struct.startTimeOffsetMinutes),
time_zone: cdktf.stringToTerraform(struct.timeZone),
monthly_occurrence: automationSoftwareUpdateConfigurationScheduleMonthlyOccurrenceToTerraform(struct.monthlyOccurrence),
};
}
exports.automationSoftwareUpdateConfigurationScheduleToTerraform = automationSoftwareUpdateConfigurationScheduleToTerraform;
function automationSoftwareUpdateConfigurationScheduleToHclTerraform(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 = {
advanced_month_days: {
value: cdktf.listMapperHcl(cdktf.numberToHclTerraform, false)(struct.advancedMonthDays),
isBlock: false,
type: "list",
storageClassType: "numberList",
},
advanced_week_days: {
value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.advancedWeekDays),
isBlock: false,
type: "list",
storageClassType: "stringList",
},
description: {
value: cdktf.stringToHclTerraform(struct.description),
isBlock: false,
type: "simple",
storageClassType: "string",
},
expiry_time: {
value: cdktf.stringToHclTerraform(struct.expiryTime),
isBlock: false,
type: "simple",
storageClassType: "string",
},
expiry_time_offset_minutes: {
value: cdktf.numberToHclTerraform(struct.expiryTimeOffsetMinutes),
isBlock: false,
type: "simple",
storageClassType: "number",
},
frequency: {
value: cdktf.stringToHclTerraform(struct.frequency),
isBlock: false,
type: "simple",
storageClassType: "string",
},
interval: {
value: cdktf.numberToHclTerraform(struct.interval),
isBlock: false,
type: "simple",
storageClassType: "number",
},
is_enabled: {
value: cdktf.booleanToHclTerraform(struct.isEnabled),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
next_run: {
value: cdktf.stringToHclTerraform(struct.nextRun),
isBlock: false,
type: "simple",
storageClassType: "string",
},
next_run_offset_minutes: {
value: cdktf.numberToHclTerraform(struct.nextRunOffsetMinutes),
isBlock: false,
type: "simple",
storageClassType: "number",
},
start_time: {
value: cdktf.stringToHclTerraform(struct.startTime),
isBlock: false,
type: "simple",
storageClassType: "string",
},
start_time_offset_minutes: {
value: cdktf.numberToHclTerraform(struct.startTimeOffsetMinutes),
isBlock: false,
type: "simple",
storageClassType: "number",
},
time_zone: {
value: cdktf.stringToHclTerraform(struct.timeZone),
isBlock: false,
type: "simple",
storageClassType: "string",
},
monthly_occurrence: {
value: automationSoftwareUpdateConfigurationScheduleMonthlyOccurrenceToHclTerraform(struct.monthlyOccurrence),
isBlock: true,
type: "list",
storageClassType: "AutomationSoftwareUpdateConfigurationScheduleMonthlyOccurrenceList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.automationSoftwareUpdateConfigurationScheduleToHclTerraform = automationSoftwareUpdateConfigurationScheduleToHclTerraform;
class AutomationSoftwareUpdateConfigurationScheduleOutputReference 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;
// monthly_occurrence - computed: false, optional: true, required: false
this._monthlyOccurrence = new AutomationSoftwareUpdateConfigurationScheduleMonthlyOccurrenceOutputReference(this, "monthly_occurrence");
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._advancedMonthDays !== undefined) {
hasAnyValues = true;
internalValueResult.advancedMonthDays = this._advancedMonthDays;
}
if (this._advancedWeekDays !== undefined) {
hasAnyValues = true;
internalValueResult.advancedWeekDays = this._advancedWeekDays;
}
if (this._description !== undefined) {
hasAnyValues = true;
internalValueResult.description = this._description;
}
if (this._expiryTime !== undefined) {
hasAnyValues = true;
internalValueResult.expiryTime = this._expiryTime;
}
if (this._expiryTimeOffsetMinutes !== undefined) {
hasAnyValues = true;
internalValueResult.expiryTimeOffsetMinutes = this._expiryTimeOffsetMinutes;
}
if (this._frequency !== undefined) {
hasAnyValues = true;
internalValueResult.frequency = this._frequency;
}
if (this._interval !== undefined) {
hasAnyValues = true;
internalValueResult.interval = this._interval;
}
if (this._isEnabled !== undefined) {
hasAnyValues = true;
internalValueResult.isEnabled = this._isEnabled;
}
if (this._nextRun !== undefined) {
hasAnyValues = true;
internalValueResult.nextRun = this._nextRun;
}
if (this._nextRunOffsetMinutes !== undefined) {
hasAnyValues = true;
internalValueResult.nextRunOffsetMinutes = this._nextRunOffsetMinutes;
}
if (this._startTime !== undefined) {
hasAnyValues = true;
internalValueResult.startTime = this._startTime;
}
if (this._startTimeOffsetMinutes !== undefined) {
hasAnyValues = true;
internalValueResult.startTimeOffsetMinutes = this._startTimeOffsetMinutes;
}
if (this._timeZone !== undefined) {
hasAnyValues = true;
internalValueResult.timeZone = this._timeZone;
}
if (this._monthlyOccurrence?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.monthlyOccurrence = this._monthlyOccurrence?.internalValue;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._advancedMonthDays = undefined;
this._advancedWeekDays = undefined;
this._description = undefined;
this._expiryTime = undefined;
this._expiryTimeOffsetMinutes = undefined;
this._frequency = undefined;
this._interval = undefined;
this._isEnabled = undefined;
this._nextRun = undefined;
this._nextRunOffsetMinutes = undefined;
this._startTime = undefined;
this._startTimeOffsetMinutes = undefined;
this._timeZone = undefined;
this._monthlyOccurrence.internalValue = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._advancedMonthDays = value.advancedMonthDays;
this._advancedWeekDays = value.advancedWeekDays;
this._description = value.description;
this._expiryTime = value.expiryTime;
this._expiryTimeOffsetMinutes = value.expiryTimeOffsetMinutes;
this._frequency = value.frequency;
this._interval = value.interval;
this._isEnabled = value.isEnabled;
this._nextRun = value.nextRun;
this._nextRunOffsetMinutes = value.nextRunOffsetMinutes;
this._startTime = value.startTime;
this._startTimeOffsetMinutes = value.startTimeOffsetMinutes;
this._timeZone = value.timeZone;
this._monthlyOccurrence.internalValue = value.monthlyOccurrence;
}
}
get advancedMonthDays() {
return this.getNumberListAttribute('advanced_month_days');
}
set advancedMonthDays(value) {
this._advancedMonthDays = value;
}
resetAdvancedMonthDays() {
this._advancedMonthDays = undefined;
}
// Temporarily expose input value. Use with caution.
get advancedMonthDaysInput() {
return this._advancedMonthDays;
}
get advancedWeekDays() {
return this.getListAttribute('advanced_week_days');
}
set advancedWeekDays(value) {
this._advancedWeekDays = value;
}
resetAdvancedWeekDays() {
this._advancedWeekDays = undefined;
}
// Temporarily expose input value. Use with caution.
get advancedWeekDaysInput() {
return this._advancedWeekDays;
}
// creation_time - computed: true, optional: false, required: false
get creationTime() {
return this.getStringAttribute('creation_time');
}
get description() {
return this.getStringAttribute('description');
}
set description(value) {
this._description = value;
}
resetDescription() {
this._description = undefined;
}
// Temporarily expose input value. Use with caution.
get descriptionInput() {
return this._description;
}
get expiryTime() {
return this.getStringAttribute('expiry_time');
}
set expiryTime(value) {
this._expiryTime = value;
}
resetExpiryTime() {
this._expiryTime = undefined;
}
// Temporarily expose input value. Use with caution.
get expiryTimeInput() {
return this._expiryTime;
}
get expiryTimeOffsetMinutes() {
return this.getNumberAttribute('expiry_time_offset_minutes');
}
set expiryTimeOffsetMinutes(value) {
this._expiryTimeOffsetMinutes = value;
}
resetExpiryTimeOffsetMinutes() {
this._expiryTimeOffsetMinutes = undefined;
}
// Temporarily expose input value. Use with caution.
get expiryTimeOffsetMinutesInput() {
return this._expiryTimeOffsetMinutes;
}
get frequency() {
return this.getStringAttribute('frequency');
}
set frequency(value) {
this._frequency = value;
}
// Temporarily expose input value. Use with caution.
get frequencyInput() {
return this._frequency;
}
get interval() {
return this.getNumberAttribute('interval');
}
set interval(value) {
this._interval = value;
}
resetInterval() {
this._interval = undefined;
}
// Temporarily expose input value. Use with caution.
get intervalInput() {
return this._interval;
}
get isEnabled() {
return this.getBooleanAttribute('is_enabled');
}
set isEnabled(value) {
this._isEnabled = value;
}
resetIsEnabled() {
this._isEnabled = undefined;
}
// Temporarily expose input value. Use with caution.
get isEnabledInput() {
return this._isEnabled;
}
// last_modified_time - computed: true, optional: false, required: false
get lastModifiedTime() {
return this.getStringAttribute('last_modified_time');
}
get nextRun() {
return this.getStringAttribute('next_run');
}
set nextRun(value) {
this._nextRun = value;
}
resetNextRun() {
this._nextRun = undefined;
}
// Temporarily expose input value. Use with caution.
get nextRunInput() {
return this._nextRun;
}
get nextRunOffsetMinutes() {
return this.getNumberAttribute('next_run_offset_minutes');
}
set nextRunOffsetMinutes(value) {
this._nextRunOffsetMinutes = value;
}
resetNextRunOffsetMinutes() {
this._nextRunOffsetMinutes = undefined;
}
// Temporarily expose input value. Use with caution.
get nextRunOffsetMinutesInput() {
return this._nextRunOffsetMinutes;
}
get startTime() {
return this.getStringAttribute('start_time');
}
set startTime(value) {
this._startTime = value;
}
resetStartTime() {
this._startTime = undefined;
}
// Temporarily expose input value. Use with caution.
get startTimeInput() {
return this._startTime;
}
get startTimeOffsetMinutes() {
return this.getNumberAttribute('start_time_offset_minutes');
}
set startTimeOffsetMinutes(value) {
this._startTimeOffsetMinutes = value;
}
resetStartTimeOffsetMinutes() {
this._startTimeOffsetMinutes = undefined;
}
// Temporarily expose input value. Use with caution.
get startTimeOffsetMinutesInput() {
return this._startTimeOffsetMinutes;
}
get timeZone() {
return this.getStringAttribute('time_zone');
}
set timeZone(value) {
this._timeZone = value;
}
resetTimeZone() {
this._timeZone = undefined;
}
// Temporarily expose input value. Use with caution.
get timeZoneInput() {
return this._timeZone;
}
get monthlyOccurrence() {
return this._monthlyOccurrence;
}
putMonthlyOccurrence(value) {
this._monthlyOccurrence.internalValue = value;
}
resetMonthlyOccurrence() {
this._monthlyOccurrence.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get monthlyOccurrenceInput() {
return this._monthlyOccurrence.internalValue;
}
}
exports.AutomationSoftwareUpdateConfigurationScheduleOutputReference = AutomationSoftwareUpdateConfigurationScheduleOutputReference;
_e = JSII_RTTI_SYMBOL_1;
AutomationSoftwareUpdateConfigurationScheduleOutputReference[_e] = { fqn: "@cdktf/provider-azurerm.automationSoftwareUpdateConfiguration.AutomationSoftwareUpdateConfigurationScheduleOutputReference", version: "12.27.0" };
function automationSoftwareUpdateConfigurationTargetAzureQueryTagsToTerraform(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 {
tag: cdktf.stringToTerraform(struct.tag),
values: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.values),
};
}
exports.automationSoftwareUpdateConfigurationTargetAzureQueryTagsToTerraform = automationSoftwareUpdateConfigurationTargetAzureQueryTagsToTerraform;
function automationSoftwareUpdateConfigurationTargetAzureQueryTagsToHclTerraform(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 = {
tag: {
value: cdktf.stringToHclTerraform(struct.tag),
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));
}
exports.automationSoftwareUpdateConfigurationTargetAzureQueryTagsToHclTerraform = automationSoftwareUpdateConfigurationTargetAzureQueryTagsToHclTerraform;
class AutomationSoftwareUpdateConfigurationTargetAzureQueryTagsOutputReference 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._tag !== undefined) {
hasAnyValues = true;
internalValueResult.tag = this._tag;
}
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._tag = 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._tag = value.tag;
this._values = value.values;
}
}
get tag() {
return this.getStringAttribute('tag');
}
set tag(value) {
this._tag = value;
}
// Temporarily expose input value. Use with caution.
get tagInput() {
return this._tag;
}
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.AutomationSoftwareUpdateConfigurationTargetAzureQueryTagsOutputReference = AutomationSoftwareUpdateConfigurationTargetAzureQueryTagsOutputReference;
_f = JSII_RTTI_SYMBOL_1;
AutomationSoftwareUpdateConfigurationTargetAzureQueryTagsOutputReference[_f] = { fqn: "@cdktf/provider-azurerm.automationSoftwareUpdateConfiguration.AutomationSoftwareUpdateConfigurationTargetAzureQueryTagsOutputReference", version: "12.27.0" };
class AutomationSoftwareUpdateConfigurationTargetAzureQueryTagsList 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 AutomationSoftwareUpdateConfigurationTargetAzureQueryTagsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.AutomationSoftwareUpdateConfigurationTargetAzureQueryTagsList = AutomationSoftwareUpdateConfigurationTargetAzureQueryTagsList;
_g = JSII_RTTI_SYMBOL_1;
AutomationSoftwareUpdateConfigurationTargetAzureQueryTagsList[_g] = { fqn: "@cdktf/provider-azurerm.automationSoftwareUpdateConfiguration.AutomationSoftwareUpdateConfigurationTargetAzureQueryTagsList", version: "12.27.0" };
function automationSoftwareUpdateConfigurationTargetAzureQueryToTerraform(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 {
locations: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.locations),
scope: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.scope),
tag_filter: cdktf.stringToTerraform(struct.tagFilter),
tags: cdktf.listMapper(automationSoftwareUpdateConfigurationTargetAzureQueryTagsToTerraform, true)(struct.tags),
};
}
exports.automationSoftwareUpdateConfigurationTargetAzureQueryToTerraform = automationSoftwareUpdateConfigurationTargetAzureQueryToTerraform;
function automationSoftwareUpdateConfigurationTargetAzureQueryToHclTerraform(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 = {
locations: {
value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.locations),
isBlock: false,
type: "list",
storageClassType: "stringList",
},
scope: {
value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.scope),
isBlock: false,
type: "list",
storageClassType: "stringList",
},
tag_filter: {
value: cdktf.stringToHclTerraform(struct.tagFilter),
isBlock: false,
type: "simple",
storageClassType: "string",
},
tags: {
value: cdktf.listMapperHcl(automationSoftwareUpdateConfigurationTargetAzureQueryTagsToHclTerraform, true)(struct.tags),
isBlock: true,
type: "list",
storageClassType: "AutomationSoftwareUpdateConfigurationTargetAzureQueryTagsList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.automationSoftwareUpdateConfigurationTargetAzureQueryToHclTerraform = automationSoftwareUpdateConfigurationTargetAzureQueryToHclTerraform;
class AutomationSoftwareUpdateConfigurationTargetAzureQueryOutputReference 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;
// tags - computed: false, optional: true, required: false
this._tags = new AutomationSoftwareUpdateConfigurationTargetAzureQueryTagsList(this, "tags", false);
}
get internalValue() {
if (this.resolvableValue) {
return this.resolvableValue;
}
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._locations !== undefined) {
hasAnyValues = true;
internalValueResult.locations = this._locations;
}
if (this._scope !== undefined) {
hasAnyValues = true;
internalValueResult.scope = this._scope;
}
if (this._tagFilter !== undefined) {
hasAnyValues = true;
internalValueResult.tagFilter = this._tagFilter;
}
if (this._tags?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.tags = this._tags?.internalValue;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._locations = undefined;
this._scope = undefined;
this._tagFilter = undefined;
this._tags.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._locations = value.locations;
this._scope = value.scope;
this._tagFilter = value.tagFilter;
this._tags.internalValue = value.tags;
}
}
get locations() {
return this.getListAttribute('locations');
}
set locations(value) {
this._locations = value;
}
resetLocations() {
this._locations = undefined;
}
// Temporarily expose input value. Use with caution.
get locationsInput() {
return this._locations;
}
get scope() {
return this.getListAttribute('scope');
}
set scope(value) {
this._scope = value;
}
resetScope() {
this._scope = undefined;
}
//