@cdktf/provider-aws
Version:
Prebuilt aws Provider for Terraform CDK (cdktf)
949 lines • 241 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.EmrcontainersJobTemplate = exports.EmrcontainersJobTemplateTimeoutsOutputReference = exports.EmrcontainersJobTemplateJobTemplateDataOutputReference = exports.EmrcontainersJobTemplateJobTemplateDataJobDriverOutputReference = exports.EmrcontainersJobTemplateJobTemplateDataJobDriverSparkSubmitJobDriverOutputReference = exports.EmrcontainersJobTemplateJobTemplateDataJobDriverSparkSqlJobDriverOutputReference = exports.EmrcontainersJobTemplateJobTemplateDataConfigurationOverridesOutputReference = exports.EmrcontainersJobTemplateJobTemplateDataConfigurationOverridesMonitoringConfigurationOutputReference = exports.EmrcontainersJobTemplateJobTemplateDataConfigurationOverridesMonitoringConfigurationS3MonitoringConfigurationOutputReference = exports.EmrcontainersJobTemplateJobTemplateDataConfigurationOverridesMonitoringConfigurationCloudWatchMonitoringConfigurationOutputReference = exports.EmrcontainersJobTemplateJobTemplateDataConfigurationOverridesApplicationConfigurationList = exports.EmrcontainersJobTemplateJobTemplateDataConfigurationOverridesApplicationConfigurationOutputReference = exports.EmrcontainersJobTemplateJobTemplateDataConfigurationOverridesApplicationConfigurationConfigurationsList = exports.EmrcontainersJobTemplateJobTemplateDataConfigurationOverridesApplicationConfigurationConfigurationsOutputReference = void 0;
exports.emrcontainersJobTemplateJobTemplateDataConfigurationOverridesApplicationConfigurationConfigurationsToTerraform = emrcontainersJobTemplateJobTemplateDataConfigurationOverridesApplicationConfigurationConfigurationsToTerraform;
exports.emrcontainersJobTemplateJobTemplateDataConfigurationOverridesApplicationConfigurationConfigurationsToHclTerraform = emrcontainersJobTemplateJobTemplateDataConfigurationOverridesApplicationConfigurationConfigurationsToHclTerraform;
exports.emrcontainersJobTemplateJobTemplateDataConfigurationOverridesApplicationConfigurationToTerraform = emrcontainersJobTemplateJobTemplateDataConfigurationOverridesApplicationConfigurationToTerraform;
exports.emrcontainersJobTemplateJobTemplateDataConfigurationOverridesApplicationConfigurationToHclTerraform = emrcontainersJobTemplateJobTemplateDataConfigurationOverridesApplicationConfigurationToHclTerraform;
exports.emrcontainersJobTemplateJobTemplateDataConfigurationOverridesMonitoringConfigurationCloudWatchMonitoringConfigurationToTerraform = emrcontainersJobTemplateJobTemplateDataConfigurationOverridesMonitoringConfigurationCloudWatchMonitoringConfigurationToTerraform;
exports.emrcontainersJobTemplateJobTemplateDataConfigurationOverridesMonitoringConfigurationCloudWatchMonitoringConfigurationToHclTerraform = emrcontainersJobTemplateJobTemplateDataConfigurationOverridesMonitoringConfigurationCloudWatchMonitoringConfigurationToHclTerraform;
exports.emrcontainersJobTemplateJobTemplateDataConfigurationOverridesMonitoringConfigurationS3MonitoringConfigurationToTerraform = emrcontainersJobTemplateJobTemplateDataConfigurationOverridesMonitoringConfigurationS3MonitoringConfigurationToTerraform;
exports.emrcontainersJobTemplateJobTemplateDataConfigurationOverridesMonitoringConfigurationS3MonitoringConfigurationToHclTerraform = emrcontainersJobTemplateJobTemplateDataConfigurationOverridesMonitoringConfigurationS3MonitoringConfigurationToHclTerraform;
exports.emrcontainersJobTemplateJobTemplateDataConfigurationOverridesMonitoringConfigurationToTerraform = emrcontainersJobTemplateJobTemplateDataConfigurationOverridesMonitoringConfigurationToTerraform;
exports.emrcontainersJobTemplateJobTemplateDataConfigurationOverridesMonitoringConfigurationToHclTerraform = emrcontainersJobTemplateJobTemplateDataConfigurationOverridesMonitoringConfigurationToHclTerraform;
exports.emrcontainersJobTemplateJobTemplateDataConfigurationOverridesToTerraform = emrcontainersJobTemplateJobTemplateDataConfigurationOverridesToTerraform;
exports.emrcontainersJobTemplateJobTemplateDataConfigurationOverridesToHclTerraform = emrcontainersJobTemplateJobTemplateDataConfigurationOverridesToHclTerraform;
exports.emrcontainersJobTemplateJobTemplateDataJobDriverSparkSqlJobDriverToTerraform = emrcontainersJobTemplateJobTemplateDataJobDriverSparkSqlJobDriverToTerraform;
exports.emrcontainersJobTemplateJobTemplateDataJobDriverSparkSqlJobDriverToHclTerraform = emrcontainersJobTemplateJobTemplateDataJobDriverSparkSqlJobDriverToHclTerraform;
exports.emrcontainersJobTemplateJobTemplateDataJobDriverSparkSubmitJobDriverToTerraform = emrcontainersJobTemplateJobTemplateDataJobDriverSparkSubmitJobDriverToTerraform;
exports.emrcontainersJobTemplateJobTemplateDataJobDriverSparkSubmitJobDriverToHclTerraform = emrcontainersJobTemplateJobTemplateDataJobDriverSparkSubmitJobDriverToHclTerraform;
exports.emrcontainersJobTemplateJobTemplateDataJobDriverToTerraform = emrcontainersJobTemplateJobTemplateDataJobDriverToTerraform;
exports.emrcontainersJobTemplateJobTemplateDataJobDriverToHclTerraform = emrcontainersJobTemplateJobTemplateDataJobDriverToHclTerraform;
exports.emrcontainersJobTemplateJobTemplateDataToTerraform = emrcontainersJobTemplateJobTemplateDataToTerraform;
exports.emrcontainersJobTemplateJobTemplateDataToHclTerraform = emrcontainersJobTemplateJobTemplateDataToHclTerraform;
exports.emrcontainersJobTemplateTimeoutsToTerraform = emrcontainersJobTemplateTimeoutsToTerraform;
exports.emrcontainersJobTemplateTimeoutsToHclTerraform = emrcontainersJobTemplateTimeoutsToHclTerraform;
const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
const cdktf = require("cdktf");
function emrcontainersJobTemplateJobTemplateDataConfigurationOverridesApplicationConfigurationConfigurationsToTerraform(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: cdktf.stringToTerraform(struct.classification),
properties: cdktf.hashMapper(cdktf.stringToTerraform)(struct.properties),
};
}
function emrcontainersJobTemplateJobTemplateDataConfigurationOverridesApplicationConfigurationConfigurationsToHclTerraform(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: {
value: cdktf.stringToHclTerraform(struct.classification),
isBlock: false,
type: "simple",
storageClassType: "string",
},
properties: {
value: cdktf.hashMapperHcl(cdktf.stringToHclTerraform)(struct.properties),
isBlock: false,
type: "map",
storageClassType: "stringMap",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class EmrcontainersJobTemplateJobTemplateDataConfigurationOverridesApplicationConfigurationConfigurationsOutputReference 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._classification !== undefined) {
hasAnyValues = true;
internalValueResult.classification = this._classification;
}
if (this._properties !== undefined) {
hasAnyValues = true;
internalValueResult.properties = this._properties;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._classification = undefined;
this._properties = 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._classification = value.classification;
this._properties = value.properties;
}
}
get classification() {
return this.getStringAttribute('classification');
}
set classification(value) {
this._classification = value;
}
resetClassification() {
this._classification = undefined;
}
// Temporarily expose input value. Use with caution.
get classificationInput() {
return this._classification;
}
get properties() {
return this.getStringMapAttribute('properties');
}
set properties(value) {
this._properties = value;
}
resetProperties() {
this._properties = undefined;
}
// Temporarily expose input value. Use with caution.
get propertiesInput() {
return this._properties;
}
}
exports.EmrcontainersJobTemplateJobTemplateDataConfigurationOverridesApplicationConfigurationConfigurationsOutputReference = EmrcontainersJobTemplateJobTemplateDataConfigurationOverridesApplicationConfigurationConfigurationsOutputReference;
_a = JSII_RTTI_SYMBOL_1;
EmrcontainersJobTemplateJobTemplateDataConfigurationOverridesApplicationConfigurationConfigurationsOutputReference[_a] = { fqn: "@cdktf/provider-aws.emrcontainersJobTemplate.EmrcontainersJobTemplateJobTemplateDataConfigurationOverridesApplicationConfigurationConfigurationsOutputReference", version: "21.22.1" };
class EmrcontainersJobTemplateJobTemplateDataConfigurationOverridesApplicationConfigurationConfigurationsList 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 EmrcontainersJobTemplateJobTemplateDataConfigurationOverridesApplicationConfigurationConfigurationsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.EmrcontainersJobTemplateJobTemplateDataConfigurationOverridesApplicationConfigurationConfigurationsList = EmrcontainersJobTemplateJobTemplateDataConfigurationOverridesApplicationConfigurationConfigurationsList;
_b = JSII_RTTI_SYMBOL_1;
EmrcontainersJobTemplateJobTemplateDataConfigurationOverridesApplicationConfigurationConfigurationsList[_b] = { fqn: "@cdktf/provider-aws.emrcontainersJobTemplate.EmrcontainersJobTemplateJobTemplateDataConfigurationOverridesApplicationConfigurationConfigurationsList", version: "21.22.1" };
function emrcontainersJobTemplateJobTemplateDataConfigurationOverridesApplicationConfigurationToTerraform(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: cdktf.stringToTerraform(struct.classification),
properties: cdktf.hashMapper(cdktf.stringToTerraform)(struct.properties),
configurations: cdktf.listMapper(emrcontainersJobTemplateJobTemplateDataConfigurationOverridesApplicationConfigurationConfigurationsToTerraform, true)(struct.configurations),
};
}
function emrcontainersJobTemplateJobTemplateDataConfigurationOverridesApplicationConfigurationToHclTerraform(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: {
value: cdktf.stringToHclTerraform(struct.classification),
isBlock: false,
type: "simple",
storageClassType: "string",
},
properties: {
value: cdktf.hashMapperHcl(cdktf.stringToHclTerraform)(struct.properties),
isBlock: false,
type: "map",
storageClassType: "stringMap",
},
configurations: {
value: cdktf.listMapperHcl(emrcontainersJobTemplateJobTemplateDataConfigurationOverridesApplicationConfigurationConfigurationsToHclTerraform, true)(struct.configurations),
isBlock: true,
type: "list",
storageClassType: "EmrcontainersJobTemplateJobTemplateDataConfigurationOverridesApplicationConfigurationConfigurationsList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class EmrcontainersJobTemplateJobTemplateDataConfigurationOverridesApplicationConfigurationOutputReference 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;
// configurations - computed: false, optional: true, required: false
this._configurations = new EmrcontainersJobTemplateJobTemplateDataConfigurationOverridesApplicationConfigurationConfigurationsList(this, "configurations", false);
}
get internalValue() {
if (this.resolvableValue) {
return this.resolvableValue;
}
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._classification !== undefined) {
hasAnyValues = true;
internalValueResult.classification = this._classification;
}
if (this._properties !== undefined) {
hasAnyValues = true;
internalValueResult.properties = this._properties;
}
if (this._configurations?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.configurations = this._configurations?.internalValue;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._classification = undefined;
this._properties = undefined;
this._configurations.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._classification = value.classification;
this._properties = value.properties;
this._configurations.internalValue = value.configurations;
}
}
get classification() {
return this.getStringAttribute('classification');
}
set classification(value) {
this._classification = value;
}
// Temporarily expose input value. Use with caution.
get classificationInput() {
return this._classification;
}
get properties() {
return this.getStringMapAttribute('properties');
}
set properties(value) {
this._properties = value;
}
resetProperties() {
this._properties = undefined;
}
// Temporarily expose input value. Use with caution.
get propertiesInput() {
return this._properties;
}
get configurations() {
return this._configurations;
}
putConfigurations(value) {
this._configurations.internalValue = value;
}
resetConfigurations() {
this._configurations.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get configurationsInput() {
return this._configurations.internalValue;
}
}
exports.EmrcontainersJobTemplateJobTemplateDataConfigurationOverridesApplicationConfigurationOutputReference = EmrcontainersJobTemplateJobTemplateDataConfigurationOverridesApplicationConfigurationOutputReference;
_c = JSII_RTTI_SYMBOL_1;
EmrcontainersJobTemplateJobTemplateDataConfigurationOverridesApplicationConfigurationOutputReference[_c] = { fqn: "@cdktf/provider-aws.emrcontainersJobTemplate.EmrcontainersJobTemplateJobTemplateDataConfigurationOverridesApplicationConfigurationOutputReference", version: "21.22.1" };
class EmrcontainersJobTemplateJobTemplateDataConfigurationOverridesApplicationConfigurationList 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 EmrcontainersJobTemplateJobTemplateDataConfigurationOverridesApplicationConfigurationOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.EmrcontainersJobTemplateJobTemplateDataConfigurationOverridesApplicationConfigurationList = EmrcontainersJobTemplateJobTemplateDataConfigurationOverridesApplicationConfigurationList;
_d = JSII_RTTI_SYMBOL_1;
EmrcontainersJobTemplateJobTemplateDataConfigurationOverridesApplicationConfigurationList[_d] = { fqn: "@cdktf/provider-aws.emrcontainersJobTemplate.EmrcontainersJobTemplateJobTemplateDataConfigurationOverridesApplicationConfigurationList", version: "21.22.1" };
function emrcontainersJobTemplateJobTemplateDataConfigurationOverridesMonitoringConfigurationCloudWatchMonitoringConfigurationToTerraform(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 {
log_group_name: cdktf.stringToTerraform(struct.logGroupName),
log_stream_name_prefix: cdktf.stringToTerraform(struct.logStreamNamePrefix),
};
}
function emrcontainersJobTemplateJobTemplateDataConfigurationOverridesMonitoringConfigurationCloudWatchMonitoringConfigurationToHclTerraform(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 = {
log_group_name: {
value: cdktf.stringToHclTerraform(struct.logGroupName),
isBlock: false,
type: "simple",
storageClassType: "string",
},
log_stream_name_prefix: {
value: cdktf.stringToHclTerraform(struct.logStreamNamePrefix),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class EmrcontainersJobTemplateJobTemplateDataConfigurationOverridesMonitoringConfigurationCloudWatchMonitoringConfigurationOutputReference 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._logGroupName !== undefined) {
hasAnyValues = true;
internalValueResult.logGroupName = this._logGroupName;
}
if (this._logStreamNamePrefix !== undefined) {
hasAnyValues = true;
internalValueResult.logStreamNamePrefix = this._logStreamNamePrefix;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._logGroupName = undefined;
this._logStreamNamePrefix = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._logGroupName = value.logGroupName;
this._logStreamNamePrefix = value.logStreamNamePrefix;
}
}
get logGroupName() {
return this.getStringAttribute('log_group_name');
}
set logGroupName(value) {
this._logGroupName = value;
}
// Temporarily expose input value. Use with caution.
get logGroupNameInput() {
return this._logGroupName;
}
get logStreamNamePrefix() {
return this.getStringAttribute('log_stream_name_prefix');
}
set logStreamNamePrefix(value) {
this._logStreamNamePrefix = value;
}
resetLogStreamNamePrefix() {
this._logStreamNamePrefix = undefined;
}
// Temporarily expose input value. Use with caution.
get logStreamNamePrefixInput() {
return this._logStreamNamePrefix;
}
}
exports.EmrcontainersJobTemplateJobTemplateDataConfigurationOverridesMonitoringConfigurationCloudWatchMonitoringConfigurationOutputReference = EmrcontainersJobTemplateJobTemplateDataConfigurationOverridesMonitoringConfigurationCloudWatchMonitoringConfigurationOutputReference;
_e = JSII_RTTI_SYMBOL_1;
EmrcontainersJobTemplateJobTemplateDataConfigurationOverridesMonitoringConfigurationCloudWatchMonitoringConfigurationOutputReference[_e] = { fqn: "@cdktf/provider-aws.emrcontainersJobTemplate.EmrcontainersJobTemplateJobTemplateDataConfigurationOverridesMonitoringConfigurationCloudWatchMonitoringConfigurationOutputReference", version: "21.22.1" };
function emrcontainersJobTemplateJobTemplateDataConfigurationOverridesMonitoringConfigurationS3MonitoringConfigurationToTerraform(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 {
log_uri: cdktf.stringToTerraform(struct.logUri),
};
}
function emrcontainersJobTemplateJobTemplateDataConfigurationOverridesMonitoringConfigurationS3MonitoringConfigurationToHclTerraform(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 = {
log_uri: {
value: cdktf.stringToHclTerraform(struct.logUri),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class EmrcontainersJobTemplateJobTemplateDataConfigurationOverridesMonitoringConfigurationS3MonitoringConfigurationOutputReference 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._logUri !== undefined) {
hasAnyValues = true;
internalValueResult.logUri = this._logUri;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._logUri = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._logUri = value.logUri;
}
}
get logUri() {
return this.getStringAttribute('log_uri');
}
set logUri(value) {
this._logUri = value;
}
// Temporarily expose input value. Use with caution.
get logUriInput() {
return this._logUri;
}
}
exports.EmrcontainersJobTemplateJobTemplateDataConfigurationOverridesMonitoringConfigurationS3MonitoringConfigurationOutputReference = EmrcontainersJobTemplateJobTemplateDataConfigurationOverridesMonitoringConfigurationS3MonitoringConfigurationOutputReference;
_f = JSII_RTTI_SYMBOL_1;
EmrcontainersJobTemplateJobTemplateDataConfigurationOverridesMonitoringConfigurationS3MonitoringConfigurationOutputReference[_f] = { fqn: "@cdktf/provider-aws.emrcontainersJobTemplate.EmrcontainersJobTemplateJobTemplateDataConfigurationOverridesMonitoringConfigurationS3MonitoringConfigurationOutputReference", version: "21.22.1" };
function emrcontainersJobTemplateJobTemplateDataConfigurationOverridesMonitoringConfigurationToTerraform(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 {
persistent_app_ui: cdktf.stringToTerraform(struct.persistentAppUi),
cloud_watch_monitoring_configuration: emrcontainersJobTemplateJobTemplateDataConfigurationOverridesMonitoringConfigurationCloudWatchMonitoringConfigurationToTerraform(struct.cloudWatchMonitoringConfiguration),
s3_monitoring_configuration: emrcontainersJobTemplateJobTemplateDataConfigurationOverridesMonitoringConfigurationS3MonitoringConfigurationToTerraform(struct.s3MonitoringConfiguration),
};
}
function emrcontainersJobTemplateJobTemplateDataConfigurationOverridesMonitoringConfigurationToHclTerraform(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 = {
persistent_app_ui: {
value: cdktf.stringToHclTerraform(struct.persistentAppUi),
isBlock: false,
type: "simple",
storageClassType: "string",
},
cloud_watch_monitoring_configuration: {
value: emrcontainersJobTemplateJobTemplateDataConfigurationOverridesMonitoringConfigurationCloudWatchMonitoringConfigurationToHclTerraform(struct.cloudWatchMonitoringConfiguration),
isBlock: true,
type: "list",
storageClassType: "EmrcontainersJobTemplateJobTemplateDataConfigurationOverridesMonitoringConfigurationCloudWatchMonitoringConfigurationList",
},
s3_monitoring_configuration: {
value: emrcontainersJobTemplateJobTemplateDataConfigurationOverridesMonitoringConfigurationS3MonitoringConfigurationToHclTerraform(struct.s3MonitoringConfiguration),
isBlock: true,
type: "list",
storageClassType: "EmrcontainersJobTemplateJobTemplateDataConfigurationOverridesMonitoringConfigurationS3MonitoringConfigurationList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class EmrcontainersJobTemplateJobTemplateDataConfigurationOverridesMonitoringConfigurationOutputReference 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;
// cloud_watch_monitoring_configuration - computed: false, optional: true, required: false
this._cloudWatchMonitoringConfiguration = new EmrcontainersJobTemplateJobTemplateDataConfigurationOverridesMonitoringConfigurationCloudWatchMonitoringConfigurationOutputReference(this, "cloud_watch_monitoring_configuration");
// s3_monitoring_configuration - computed: false, optional: true, required: false
this._s3MonitoringConfiguration = new EmrcontainersJobTemplateJobTemplateDataConfigurationOverridesMonitoringConfigurationS3MonitoringConfigurationOutputReference(this, "s3_monitoring_configuration");
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._persistentAppUi !== undefined) {
hasAnyValues = true;
internalValueResult.persistentAppUi = this._persistentAppUi;
}
if (this._cloudWatchMonitoringConfiguration?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.cloudWatchMonitoringConfiguration = this._cloudWatchMonitoringConfiguration?.internalValue;
}
if (this._s3MonitoringConfiguration?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.s3MonitoringConfiguration = this._s3MonitoringConfiguration?.internalValue;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._persistentAppUi = undefined;
this._cloudWatchMonitoringConfiguration.internalValue = undefined;
this._s3MonitoringConfiguration.internalValue = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._persistentAppUi = value.persistentAppUi;
this._cloudWatchMonitoringConfiguration.internalValue = value.cloudWatchMonitoringConfiguration;
this._s3MonitoringConfiguration.internalValue = value.s3MonitoringConfiguration;
}
}
get persistentAppUi() {
return this.getStringAttribute('persistent_app_ui');
}
set persistentAppUi(value) {
this._persistentAppUi = value;
}
resetPersistentAppUi() {
this._persistentAppUi = undefined;
}
// Temporarily expose input value. Use with caution.
get persistentAppUiInput() {
return this._persistentAppUi;
}
get cloudWatchMonitoringConfiguration() {
return this._cloudWatchMonitoringConfiguration;
}
putCloudWatchMonitoringConfiguration(value) {
this._cloudWatchMonitoringConfiguration.internalValue = value;
}
resetCloudWatchMonitoringConfiguration() {
this._cloudWatchMonitoringConfiguration.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get cloudWatchMonitoringConfigurationInput() {
return this._cloudWatchMonitoringConfiguration.internalValue;
}
get s3MonitoringConfiguration() {
return this._s3MonitoringConfiguration;
}
putS3MonitoringConfiguration(value) {
this._s3MonitoringConfiguration.internalValue = value;
}
resetS3MonitoringConfiguration() {
this._s3MonitoringConfiguration.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get s3MonitoringConfigurationInput() {
return this._s3MonitoringConfiguration.internalValue;
}
}
exports.EmrcontainersJobTemplateJobTemplateDataConfigurationOverridesMonitoringConfigurationOutputReference = EmrcontainersJobTemplateJobTemplateDataConfigurationOverridesMonitoringConfigurationOutputReference;
_g = JSII_RTTI_SYMBOL_1;
EmrcontainersJobTemplateJobTemplateDataConfigurationOverridesMonitoringConfigurationOutputReference[_g] = { fqn: "@cdktf/provider-aws.emrcontainersJobTemplate.EmrcontainersJobTemplateJobTemplateDataConfigurationOverridesMonitoringConfigurationOutputReference", version: "21.22.1" };
function emrcontainersJobTemplateJobTemplateDataConfigurationOverridesToTerraform(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 {
application_configuration: cdktf.listMapper(emrcontainersJobTemplateJobTemplateDataConfigurationOverridesApplicationConfigurationToTerraform, true)(struct.applicationConfiguration),
monitoring_configuration: emrcontainersJobTemplateJobTemplateDataConfigurationOverridesMonitoringConfigurationToTerraform(struct.monitoringConfiguration),
};
}
function emrcontainersJobTemplateJobTemplateDataConfigurationOverridesToHclTerraform(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 = {
application_configuration: {
value: cdktf.listMapperHcl(emrcontainersJobTemplateJobTemplateDataConfigurationOverridesApplicationConfigurationToHclTerraform, true)(struct.applicationConfiguration),
isBlock: true,
type: "list",
storageClassType: "EmrcontainersJobTemplateJobTemplateDataConfigurationOverridesApplicationConfigurationList",
},
monitoring_configuration: {
value: emrcontainersJobTemplateJobTemplateDataConfigurationOverridesMonitoringConfigurationToHclTerraform(struct.monitoringConfiguration),
isBlock: true,
type: "list",
storageClassType: "EmrcontainersJobTemplateJobTemplateDataConfigurationOverridesMonitoringConfigurationList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class EmrcontainersJobTemplateJobTemplateDataConfigurationOverridesOutputReference 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;
// application_configuration - computed: false, optional: true, required: false
this._applicationConfiguration = new EmrcontainersJobTemplateJobTemplateDataConfigurationOverridesApplicationConfigurationList(this, "application_configuration", false);
// monitoring_configuration - computed: false, optional: true, required: false
this._monitoringConfiguration = new EmrcontainersJobTemplateJobTemplateDataConfigurationOverridesMonitoringConfigurationOutputReference(this, "monitoring_configuration");
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._applicationConfiguration?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.applicationConfiguration = this._applicationConfiguration?.internalValue;
}
if (this._monitoringConfiguration?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.monitoringConfiguration = this._monitoringConfiguration?.internalValue;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._applicationConfiguration.internalValue = undefined;
this._monitoringConfiguration.internalValue = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._applicationConfiguration.internalValue = value.applicationConfiguration;
this._monitoringConfiguration.internalValue = value.monitoringConfiguration;
}
}
get applicationConfiguration() {
return this._applicationConfiguration;
}
putApplicationConfiguration(value) {
this._applicationConfiguration.internalValue = value;
}
resetApplicationConfiguration() {
this._applicationConfiguration.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get applicationConfigurationInput() {
return this._applicationConfiguration.internalValue;
}
get monitoringConfiguration() {
return this._monitoringConfiguration;
}
putMonitoringConfiguration(value) {
this._monitoringConfiguration.internalValue = value;
}
resetMonitoringConfiguration() {
this._monitoringConfiguration.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get monitoringConfigurationInput() {
return this._monitoringConfiguration.internalValue;
}
}
exports.EmrcontainersJobTemplateJobTemplateDataConfigurationOverridesOutputReference = EmrcontainersJobTemplateJobTemplateDataConfigurationOverridesOutputReference;
_h = JSII_RTTI_SYMBOL_1;
EmrcontainersJobTemplateJobTemplateDataConfigurationOverridesOutputReference[_h] = { fqn: "@cdktf/provider-aws.emrcontainersJobTemplate.EmrcontainersJobTemplateJobTemplateDataConfigurationOverridesOutputReference", version: "21.22.1" };
function emrcontainersJobTemplateJobTemplateDataJobDriverSparkSqlJobDriverToTerraform(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 {
entry_point: cdktf.stringToTerraform(struct.entryPoint),
spark_sql_parameters: cdktf.stringToTerraform(struct.sparkSqlParameters),
};
}
function emrcontainersJobTemplateJobTemplateDataJobDriverSparkSqlJobDriverToHclTerraform(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 = {
entry_point: {
value: cdktf.stringToHclTerraform(struct.entryPoint),
isBlock: false,
type: "simple",
storageClassType: "string",
},
spark_sql_parameters: {
value: cdktf.stringToHclTerraform(struct.sparkSqlParameters),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class EmrcontainersJobTemplateJobTemplateDataJobDriverSparkSqlJobDriverOutputReference 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._entryPoint !== undefined) {
hasAnyValues = true;
internalValueResult.entryPoint = this._entryPoint;
}
if (this._sparkSqlParameters !== undefined) {
hasAnyValues = true;
internalValueResult.sparkSqlParameters = this._sparkSqlParameters;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._entryPoint = undefined;
this._sparkSqlParameters = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._entryPoint = value.entryPoint;
this._sparkSqlParameters = value.sparkSqlParameters;
}
}
get entryPoint() {
return this.getStringAttribute('entry_point');
}
set entryPoint(value) {
this._entryPoint = value;
}
resetEntryPoint() {
this._entryPoint = undefined;
}
// Temporarily expose input value. Use with caution.
get entryPointInput() {
return this._entryPoint;
}
get sparkSqlParameters() {
return this.getStringAttribute('spark_sql_parameters');
}
set sparkSqlParameters(value) {
this._sparkSqlParameters = value;
}
resetSparkSqlParameters() {
this._sparkSqlParameters = undefined;
}
// Temporarily expose input value. Use with caution.
get sparkSqlParametersInput() {
return this._sparkSqlParameters;
}
}
exports.EmrcontainersJobTemplateJobTemplateDataJobDriverSparkSqlJobDriverOutputReference = EmrcontainersJobTemplateJobTemplateDataJobDriverSparkSqlJobDriverOutputReference;
_j = JSII_RTTI_SYMBOL_1;
EmrcontainersJobTemplateJobTemplateDataJobDriverSparkSqlJobDriverOutputReference[_j] = { fqn: "@cdktf/provider-aws.emrcontainersJobTemplate.EmrcontainersJobTemplateJobTemplateDataJobDriverSparkSqlJobDriverOutputReference", version: "21.22.1" };
function emrcontainersJobTemplateJobTemplateDataJobDriverSparkSubmitJobDriverToTerraform(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 {
entry_point: cdktf.stringToTerraform(struct.entryPoint),
entry_point_arguments: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.entryPointArguments),
spark_submit_parameters: cdktf.stringToTerraform(struct.sparkSubmitParameters),
};
}
function emrcontainersJobTemplateJobTemplateDataJobDriverSparkSubmitJobDriverToHclTerraform(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 = {
entry_point: {
value: cdktf.stringToHclTerraform(struct.entryPoint),
isBlock: false,
type: "simple",
storageClassType: "string",
},
entry_point_arguments: {
value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.entryPointArguments),
isBlock: false,
type: "set",
storageClassType: "stringList",
},
spark_submit_parameters: {
value: cdktf.stringToHclTerraform(struct.sparkSubmitParameters),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class EmrcontainersJobTemplateJobTemplateDataJobDriverSparkSubmitJobDriverOutputReference 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._entryPoint !== undefined) {
hasAnyValues = true;
internalValueResult.entryPoint = this._entryPoint;
}
if (this._entryPointArguments !== undefined) {
hasAnyValues = true;
internalValueResult.entryPointArguments = this._entryPointArguments;
}
if (this._sparkSubmitParameters !== undefined) {
hasAnyValues = true;
internalValueResult.sparkSubmitParameters = this._sparkSubmitParameters;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._entryPoint = undefined;
this._entryPointArguments = undefined;
this._sparkSubmitParameters = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._entryPoint = value.entryPoint;
this._entryPointArguments = value.entryPointArguments;
this._sparkSubmitParameters = value.sparkSubmitParameters;
}
}
get entryPoint() {
return this.getStringAttribute('entry_point');
}
set entryPoint(value) {
this._entryPoint = value;
}
// Temporarily expose input value. Use with caution.
get entryPointInput() {
return this._entryPoint;
}
get entryPointArguments() {
return cdktf.Fn.tolist(this.getListAttribute('entry_point_arguments'));
}
set entryPointArguments(value) {
this._entryPointArguments = value;
}
resetEntryPointArguments() {
this._entryPointArguments = undefined;
}
// Temporarily expose input value. Use with caution.
get entryPointArgumentsInput() {
return this._entryPointArguments;
}
get sparkSubmitParameters() {
return this.getStringAttribute('spark_submit_parameters');
}
set sparkSubmitParameters(value) {
this._sparkSubmitParameters = value;
}
resetSparkSubmitParameters() {
this._sparkSubmitParameters = undefined;
}
// Temporarily expose input value. Use with caution.
get sparkSubmitParametersInput() {
return this._sparkSubmitParameters;
}
}
exports.EmrcontainersJobTemplateJobTemplateDataJobDriverSparkSubmitJobDriverOutputReference = EmrcontainersJobTemplateJobTemplateDataJobDriverSparkSubmitJobDriverOutputReference;
_k = JSII_RTTI_SYMBOL_1;
EmrcontainersJobTemplateJobTemplateDataJobDriverSparkSubmitJobDriverOutputReference[_k] = { fqn: "@cdktf/provider-aws.emrcontainersJobTemplate.EmrcontainersJobTemplateJobTemplateDataJobDriverSparkSubmitJobDriverOutputReference", version: "21.22.1" };
function emrcontainersJobTemplateJobTemplateDataJobDriverToTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if