@cdktf/provider-google
Version:
Prebuilt google Provider for Terraform CDK (cdktf)
1,121 lines • 361 kB
JavaScript
"use strict";
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
Object.defineProperty(exports, "__esModule", { value: true });
exports.AppEngineStandardAppVersion = exports.AppEngineStandardAppVersionVpcAccessConnectorOutputReference = exports.appEngineStandardAppVersionVpcAccessConnectorToHclTerraform = exports.appEngineStandardAppVersionVpcAccessConnectorToTerraform = exports.AppEngineStandardAppVersionTimeoutsOutputReference = exports.appEngineStandardAppVersionTimeoutsToHclTerraform = exports.appEngineStandardAppVersionTimeoutsToTerraform = exports.AppEngineStandardAppVersionManualScalingOutputReference = exports.appEngineStandardAppVersionManualScalingToHclTerraform = exports.appEngineStandardAppVersionManualScalingToTerraform = exports.AppEngineStandardAppVersionLibrariesList = exports.AppEngineStandardAppVersionLibrariesOutputReference = exports.appEngineStandardAppVersionLibrariesToHclTerraform = exports.appEngineStandardAppVersionLibrariesToTerraform = exports.AppEngineStandardAppVersionHandlersList = exports.AppEngineStandardAppVersionHandlersOutputReference = exports.appEngineStandardAppVersionHandlersToHclTerraform = exports.appEngineStandardAppVersionHandlersToTerraform = exports.AppEngineStandardAppVersionHandlersStaticFilesOutputReference = exports.appEngineStandardAppVersionHandlersStaticFilesToHclTerraform = exports.appEngineStandardAppVersionHandlersStaticFilesToTerraform = exports.AppEngineStandardAppVersionHandlersScriptOutputReference = exports.appEngineStandardAppVersionHandlersScriptToHclTerraform = exports.appEngineStandardAppVersionHandlersScriptToTerraform = exports.AppEngineStandardAppVersionEntrypointOutputReference = exports.appEngineStandardAppVersionEntrypointToHclTerraform = exports.appEngineStandardAppVersionEntrypointToTerraform = exports.AppEngineStandardAppVersionDeploymentOutputReference = exports.appEngineStandardAppVersionDeploymentToHclTerraform = exports.appEngineStandardAppVersionDeploymentToTerraform = exports.AppEngineStandardAppVersionDeploymentZipOutputReference = exports.appEngineStandardAppVersionDeploymentZipToHclTerraform = exports.appEngineStandardAppVersionDeploymentZipToTerraform = exports.AppEngineStandardAppVersionDeploymentFilesList = exports.AppEngineStandardAppVersionDeploymentFilesOutputReference = exports.appEngineStandardAppVersionDeploymentFilesToHclTerraform = exports.appEngineStandardAppVersionDeploymentFilesToTerraform = exports.AppEngineStandardAppVersionBasicScalingOutputReference = exports.appEngineStandardAppVersionBasicScalingToHclTerraform = exports.appEngineStandardAppVersionBasicScalingToTerraform = exports.AppEngineStandardAppVersionAutomaticScalingOutputReference = exports.appEngineStandardAppVersionAutomaticScalingToHclTerraform = exports.appEngineStandardAppVersionAutomaticScalingToTerraform = exports.AppEngineStandardAppVersionAutomaticScalingStandardSchedulerSettingsOutputReference = exports.appEngineStandardAppVersionAutomaticScalingStandardSchedulerSettingsToHclTerraform = exports.appEngineStandardAppVersionAutomaticScalingStandardSchedulerSettingsToTerraform = void 0;
const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
const cdktf = require("cdktf");
function appEngineStandardAppVersionAutomaticScalingStandardSchedulerSettingsToTerraform(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 {
max_instances: cdktf.numberToTerraform(struct.maxInstances),
min_instances: cdktf.numberToTerraform(struct.minInstances),
target_cpu_utilization: cdktf.numberToTerraform(struct.targetCpuUtilization),
target_throughput_utilization: cdktf.numberToTerraform(struct.targetThroughputUtilization),
};
}
exports.appEngineStandardAppVersionAutomaticScalingStandardSchedulerSettingsToTerraform = appEngineStandardAppVersionAutomaticScalingStandardSchedulerSettingsToTerraform;
function appEngineStandardAppVersionAutomaticScalingStandardSchedulerSettingsToHclTerraform(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 = {
max_instances: {
value: cdktf.numberToHclTerraform(struct.maxInstances),
isBlock: false,
type: "simple",
storageClassType: "number",
},
min_instances: {
value: cdktf.numberToHclTerraform(struct.minInstances),
isBlock: false,
type: "simple",
storageClassType: "number",
},
target_cpu_utilization: {
value: cdktf.numberToHclTerraform(struct.targetCpuUtilization),
isBlock: false,
type: "simple",
storageClassType: "number",
},
target_throughput_utilization: {
value: cdktf.numberToHclTerraform(struct.targetThroughputUtilization),
isBlock: false,
type: "simple",
storageClassType: "number",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.appEngineStandardAppVersionAutomaticScalingStandardSchedulerSettingsToHclTerraform = appEngineStandardAppVersionAutomaticScalingStandardSchedulerSettingsToHclTerraform;
class AppEngineStandardAppVersionAutomaticScalingStandardSchedulerSettingsOutputReference 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._maxInstances !== undefined) {
hasAnyValues = true;
internalValueResult.maxInstances = this._maxInstances;
}
if (this._minInstances !== undefined) {
hasAnyValues = true;
internalValueResult.minInstances = this._minInstances;
}
if (this._targetCpuUtilization !== undefined) {
hasAnyValues = true;
internalValueResult.targetCpuUtilization = this._targetCpuUtilization;
}
if (this._targetThroughputUtilization !== undefined) {
hasAnyValues = true;
internalValueResult.targetThroughputUtilization = this._targetThroughputUtilization;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._maxInstances = undefined;
this._minInstances = undefined;
this._targetCpuUtilization = undefined;
this._targetThroughputUtilization = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._maxInstances = value.maxInstances;
this._minInstances = value.minInstances;
this._targetCpuUtilization = value.targetCpuUtilization;
this._targetThroughputUtilization = value.targetThroughputUtilization;
}
}
get maxInstances() {
return this.getNumberAttribute('max_instances');
}
set maxInstances(value) {
this._maxInstances = value;
}
resetMaxInstances() {
this._maxInstances = undefined;
}
// Temporarily expose input value. Use with caution.
get maxInstancesInput() {
return this._maxInstances;
}
get minInstances() {
return this.getNumberAttribute('min_instances');
}
set minInstances(value) {
this._minInstances = value;
}
resetMinInstances() {
this._minInstances = undefined;
}
// Temporarily expose input value. Use with caution.
get minInstancesInput() {
return this._minInstances;
}
get targetCpuUtilization() {
return this.getNumberAttribute('target_cpu_utilization');
}
set targetCpuUtilization(value) {
this._targetCpuUtilization = value;
}
resetTargetCpuUtilization() {
this._targetCpuUtilization = undefined;
}
// Temporarily expose input value. Use with caution.
get targetCpuUtilizationInput() {
return this._targetCpuUtilization;
}
get targetThroughputUtilization() {
return this.getNumberAttribute('target_throughput_utilization');
}
set targetThroughputUtilization(value) {
this._targetThroughputUtilization = value;
}
resetTargetThroughputUtilization() {
this._targetThroughputUtilization = undefined;
}
// Temporarily expose input value. Use with caution.
get targetThroughputUtilizationInput() {
return this._targetThroughputUtilization;
}
}
exports.AppEngineStandardAppVersionAutomaticScalingStandardSchedulerSettingsOutputReference = AppEngineStandardAppVersionAutomaticScalingStandardSchedulerSettingsOutputReference;
_a = JSII_RTTI_SYMBOL_1;
AppEngineStandardAppVersionAutomaticScalingStandardSchedulerSettingsOutputReference[_a] = { fqn: "@cdktf/provider-google.appEngineStandardAppVersion.AppEngineStandardAppVersionAutomaticScalingStandardSchedulerSettingsOutputReference", version: "14.12.0" };
function appEngineStandardAppVersionAutomaticScalingToTerraform(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 {
max_concurrent_requests: cdktf.numberToTerraform(struct.maxConcurrentRequests),
max_idle_instances: cdktf.numberToTerraform(struct.maxIdleInstances),
max_pending_latency: cdktf.stringToTerraform(struct.maxPendingLatency),
min_idle_instances: cdktf.numberToTerraform(struct.minIdleInstances),
min_pending_latency: cdktf.stringToTerraform(struct.minPendingLatency),
standard_scheduler_settings: appEngineStandardAppVersionAutomaticScalingStandardSchedulerSettingsToTerraform(struct.standardSchedulerSettings),
};
}
exports.appEngineStandardAppVersionAutomaticScalingToTerraform = appEngineStandardAppVersionAutomaticScalingToTerraform;
function appEngineStandardAppVersionAutomaticScalingToHclTerraform(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 = {
max_concurrent_requests: {
value: cdktf.numberToHclTerraform(struct.maxConcurrentRequests),
isBlock: false,
type: "simple",
storageClassType: "number",
},
max_idle_instances: {
value: cdktf.numberToHclTerraform(struct.maxIdleInstances),
isBlock: false,
type: "simple",
storageClassType: "number",
},
max_pending_latency: {
value: cdktf.stringToHclTerraform(struct.maxPendingLatency),
isBlock: false,
type: "simple",
storageClassType: "string",
},
min_idle_instances: {
value: cdktf.numberToHclTerraform(struct.minIdleInstances),
isBlock: false,
type: "simple",
storageClassType: "number",
},
min_pending_latency: {
value: cdktf.stringToHclTerraform(struct.minPendingLatency),
isBlock: false,
type: "simple",
storageClassType: "string",
},
standard_scheduler_settings: {
value: appEngineStandardAppVersionAutomaticScalingStandardSchedulerSettingsToHclTerraform(struct.standardSchedulerSettings),
isBlock: true,
type: "list",
storageClassType: "AppEngineStandardAppVersionAutomaticScalingStandardSchedulerSettingsList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.appEngineStandardAppVersionAutomaticScalingToHclTerraform = appEngineStandardAppVersionAutomaticScalingToHclTerraform;
class AppEngineStandardAppVersionAutomaticScalingOutputReference 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;
// standard_scheduler_settings - computed: false, optional: true, required: false
this._standardSchedulerSettings = new AppEngineStandardAppVersionAutomaticScalingStandardSchedulerSettingsOutputReference(this, "standard_scheduler_settings");
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._maxConcurrentRequests !== undefined) {
hasAnyValues = true;
internalValueResult.maxConcurrentRequests = this._maxConcurrentRequests;
}
if (this._maxIdleInstances !== undefined) {
hasAnyValues = true;
internalValueResult.maxIdleInstances = this._maxIdleInstances;
}
if (this._maxPendingLatency !== undefined) {
hasAnyValues = true;
internalValueResult.maxPendingLatency = this._maxPendingLatency;
}
if (this._minIdleInstances !== undefined) {
hasAnyValues = true;
internalValueResult.minIdleInstances = this._minIdleInstances;
}
if (this._minPendingLatency !== undefined) {
hasAnyValues = true;
internalValueResult.minPendingLatency = this._minPendingLatency;
}
if (this._standardSchedulerSettings?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.standardSchedulerSettings = this._standardSchedulerSettings?.internalValue;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._maxConcurrentRequests = undefined;
this._maxIdleInstances = undefined;
this._maxPendingLatency = undefined;
this._minIdleInstances = undefined;
this._minPendingLatency = undefined;
this._standardSchedulerSettings.internalValue = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._maxConcurrentRequests = value.maxConcurrentRequests;
this._maxIdleInstances = value.maxIdleInstances;
this._maxPendingLatency = value.maxPendingLatency;
this._minIdleInstances = value.minIdleInstances;
this._minPendingLatency = value.minPendingLatency;
this._standardSchedulerSettings.internalValue = value.standardSchedulerSettings;
}
}
get maxConcurrentRequests() {
return this.getNumberAttribute('max_concurrent_requests');
}
set maxConcurrentRequests(value) {
this._maxConcurrentRequests = value;
}
resetMaxConcurrentRequests() {
this._maxConcurrentRequests = undefined;
}
// Temporarily expose input value. Use with caution.
get maxConcurrentRequestsInput() {
return this._maxConcurrentRequests;
}
get maxIdleInstances() {
return this.getNumberAttribute('max_idle_instances');
}
set maxIdleInstances(value) {
this._maxIdleInstances = value;
}
resetMaxIdleInstances() {
this._maxIdleInstances = undefined;
}
// Temporarily expose input value. Use with caution.
get maxIdleInstancesInput() {
return this._maxIdleInstances;
}
get maxPendingLatency() {
return this.getStringAttribute('max_pending_latency');
}
set maxPendingLatency(value) {
this._maxPendingLatency = value;
}
resetMaxPendingLatency() {
this._maxPendingLatency = undefined;
}
// Temporarily expose input value. Use with caution.
get maxPendingLatencyInput() {
return this._maxPendingLatency;
}
get minIdleInstances() {
return this.getNumberAttribute('min_idle_instances');
}
set minIdleInstances(value) {
this._minIdleInstances = value;
}
resetMinIdleInstances() {
this._minIdleInstances = undefined;
}
// Temporarily expose input value. Use with caution.
get minIdleInstancesInput() {
return this._minIdleInstances;
}
get minPendingLatency() {
return this.getStringAttribute('min_pending_latency');
}
set minPendingLatency(value) {
this._minPendingLatency = value;
}
resetMinPendingLatency() {
this._minPendingLatency = undefined;
}
// Temporarily expose input value. Use with caution.
get minPendingLatencyInput() {
return this._minPendingLatency;
}
get standardSchedulerSettings() {
return this._standardSchedulerSettings;
}
putStandardSchedulerSettings(value) {
this._standardSchedulerSettings.internalValue = value;
}
resetStandardSchedulerSettings() {
this._standardSchedulerSettings.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get standardSchedulerSettingsInput() {
return this._standardSchedulerSettings.internalValue;
}
}
exports.AppEngineStandardAppVersionAutomaticScalingOutputReference = AppEngineStandardAppVersionAutomaticScalingOutputReference;
_b = JSII_RTTI_SYMBOL_1;
AppEngineStandardAppVersionAutomaticScalingOutputReference[_b] = { fqn: "@cdktf/provider-google.appEngineStandardAppVersion.AppEngineStandardAppVersionAutomaticScalingOutputReference", version: "14.12.0" };
function appEngineStandardAppVersionBasicScalingToTerraform(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 {
idle_timeout: cdktf.stringToTerraform(struct.idleTimeout),
max_instances: cdktf.numberToTerraform(struct.maxInstances),
};
}
exports.appEngineStandardAppVersionBasicScalingToTerraform = appEngineStandardAppVersionBasicScalingToTerraform;
function appEngineStandardAppVersionBasicScalingToHclTerraform(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 = {
idle_timeout: {
value: cdktf.stringToHclTerraform(struct.idleTimeout),
isBlock: false,
type: "simple",
storageClassType: "string",
},
max_instances: {
value: cdktf.numberToHclTerraform(struct.maxInstances),
isBlock: false,
type: "simple",
storageClassType: "number",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.appEngineStandardAppVersionBasicScalingToHclTerraform = appEngineStandardAppVersionBasicScalingToHclTerraform;
class AppEngineStandardAppVersionBasicScalingOutputReference 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._idleTimeout !== undefined) {
hasAnyValues = true;
internalValueResult.idleTimeout = this._idleTimeout;
}
if (this._maxInstances !== undefined) {
hasAnyValues = true;
internalValueResult.maxInstances = this._maxInstances;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._idleTimeout = undefined;
this._maxInstances = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._idleTimeout = value.idleTimeout;
this._maxInstances = value.maxInstances;
}
}
get idleTimeout() {
return this.getStringAttribute('idle_timeout');
}
set idleTimeout(value) {
this._idleTimeout = value;
}
resetIdleTimeout() {
this._idleTimeout = undefined;
}
// Temporarily expose input value. Use with caution.
get idleTimeoutInput() {
return this._idleTimeout;
}
get maxInstances() {
return this.getNumberAttribute('max_instances');
}
set maxInstances(value) {
this._maxInstances = value;
}
// Temporarily expose input value. Use with caution.
get maxInstancesInput() {
return this._maxInstances;
}
}
exports.AppEngineStandardAppVersionBasicScalingOutputReference = AppEngineStandardAppVersionBasicScalingOutputReference;
_c = JSII_RTTI_SYMBOL_1;
AppEngineStandardAppVersionBasicScalingOutputReference[_c] = { fqn: "@cdktf/provider-google.appEngineStandardAppVersion.AppEngineStandardAppVersionBasicScalingOutputReference", version: "14.12.0" };
function appEngineStandardAppVersionDeploymentFilesToTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
return {
name: cdktf.stringToTerraform(struct.name),
sha1_sum: cdktf.stringToTerraform(struct.sha1Sum),
source_url: cdktf.stringToTerraform(struct.sourceUrl),
};
}
exports.appEngineStandardAppVersionDeploymentFilesToTerraform = appEngineStandardAppVersionDeploymentFilesToTerraform;
function appEngineStandardAppVersionDeploymentFilesToHclTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
const attrs = {
name: {
value: cdktf.stringToHclTerraform(struct.name),
isBlock: false,
type: "simple",
storageClassType: "string",
},
sha1_sum: {
value: cdktf.stringToHclTerraform(struct.sha1Sum),
isBlock: false,
type: "simple",
storageClassType: "string",
},
source_url: {
value: cdktf.stringToHclTerraform(struct.sourceUrl),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.appEngineStandardAppVersionDeploymentFilesToHclTerraform = appEngineStandardAppVersionDeploymentFilesToHclTerraform;
class AppEngineStandardAppVersionDeploymentFilesOutputReference extends cdktf.ComplexObject {
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
* @param complexObjectIndex the index of this item in the list
* @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
*/
constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) {
super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex);
this.isEmptyObject = false;
}
get internalValue() {
if (this.resolvableValue) {
return this.resolvableValue;
}
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._name !== undefined) {
hasAnyValues = true;
internalValueResult.name = this._name;
}
if (this._sha1Sum !== undefined) {
hasAnyValues = true;
internalValueResult.sha1Sum = this._sha1Sum;
}
if (this._sourceUrl !== undefined) {
hasAnyValues = true;
internalValueResult.sourceUrl = this._sourceUrl;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._name = undefined;
this._sha1Sum = undefined;
this._sourceUrl = undefined;
}
else if (cdktf.Tokenization.isResolvable(value)) {
this.isEmptyObject = false;
this.resolvableValue = value;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this.resolvableValue = undefined;
this._name = value.name;
this._sha1Sum = value.sha1Sum;
this._sourceUrl = value.sourceUrl;
}
}
get name() {
return this.getStringAttribute('name');
}
set name(value) {
this._name = value;
}
// Temporarily expose input value. Use with caution.
get nameInput() {
return this._name;
}
get sha1Sum() {
return this.getStringAttribute('sha1_sum');
}
set sha1Sum(value) {
this._sha1Sum = value;
}
resetSha1Sum() {
this._sha1Sum = undefined;
}
// Temporarily expose input value. Use with caution.
get sha1SumInput() {
return this._sha1Sum;
}
get sourceUrl() {
return this.getStringAttribute('source_url');
}
set sourceUrl(value) {
this._sourceUrl = value;
}
// Temporarily expose input value. Use with caution.
get sourceUrlInput() {
return this._sourceUrl;
}
}
exports.AppEngineStandardAppVersionDeploymentFilesOutputReference = AppEngineStandardAppVersionDeploymentFilesOutputReference;
_d = JSII_RTTI_SYMBOL_1;
AppEngineStandardAppVersionDeploymentFilesOutputReference[_d] = { fqn: "@cdktf/provider-google.appEngineStandardAppVersion.AppEngineStandardAppVersionDeploymentFilesOutputReference", version: "14.12.0" };
class AppEngineStandardAppVersionDeploymentFilesList 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 AppEngineStandardAppVersionDeploymentFilesOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.AppEngineStandardAppVersionDeploymentFilesList = AppEngineStandardAppVersionDeploymentFilesList;
_e = JSII_RTTI_SYMBOL_1;
AppEngineStandardAppVersionDeploymentFilesList[_e] = { fqn: "@cdktf/provider-google.appEngineStandardAppVersion.AppEngineStandardAppVersionDeploymentFilesList", version: "14.12.0" };
function appEngineStandardAppVersionDeploymentZipToTerraform(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 {
files_count: cdktf.numberToTerraform(struct.filesCount),
source_url: cdktf.stringToTerraform(struct.sourceUrl),
};
}
exports.appEngineStandardAppVersionDeploymentZipToTerraform = appEngineStandardAppVersionDeploymentZipToTerraform;
function appEngineStandardAppVersionDeploymentZipToHclTerraform(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 = {
files_count: {
value: cdktf.numberToHclTerraform(struct.filesCount),
isBlock: false,
type: "simple",
storageClassType: "number",
},
source_url: {
value: cdktf.stringToHclTerraform(struct.sourceUrl),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.appEngineStandardAppVersionDeploymentZipToHclTerraform = appEngineStandardAppVersionDeploymentZipToHclTerraform;
class AppEngineStandardAppVersionDeploymentZipOutputReference 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._filesCount !== undefined) {
hasAnyValues = true;
internalValueResult.filesCount = this._filesCount;
}
if (this._sourceUrl !== undefined) {
hasAnyValues = true;
internalValueResult.sourceUrl = this._sourceUrl;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._filesCount = undefined;
this._sourceUrl = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._filesCount = value.filesCount;
this._sourceUrl = value.sourceUrl;
}
}
get filesCount() {
return this.getNumberAttribute('files_count');
}
set filesCount(value) {
this._filesCount = value;
}
resetFilesCount() {
this._filesCount = undefined;
}
// Temporarily expose input value. Use with caution.
get filesCountInput() {
return this._filesCount;
}
get sourceUrl() {
return this.getStringAttribute('source_url');
}
set sourceUrl(value) {
this._sourceUrl = value;
}
// Temporarily expose input value. Use with caution.
get sourceUrlInput() {
return this._sourceUrl;
}
}
exports.AppEngineStandardAppVersionDeploymentZipOutputReference = AppEngineStandardAppVersionDeploymentZipOutputReference;
_f = JSII_RTTI_SYMBOL_1;
AppEngineStandardAppVersionDeploymentZipOutputReference[_f] = { fqn: "@cdktf/provider-google.appEngineStandardAppVersion.AppEngineStandardAppVersionDeploymentZipOutputReference", version: "14.12.0" };
function appEngineStandardAppVersionDeploymentToTerraform(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 {
files: cdktf.listMapper(appEngineStandardAppVersionDeploymentFilesToTerraform, true)(struct.files),
zip: appEngineStandardAppVersionDeploymentZipToTerraform(struct.zip),
};
}
exports.appEngineStandardAppVersionDeploymentToTerraform = appEngineStandardAppVersionDeploymentToTerraform;
function appEngineStandardAppVersionDeploymentToHclTerraform(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 = {
files: {
value: cdktf.listMapperHcl(appEngineStandardAppVersionDeploymentFilesToHclTerraform, true)(struct.files),
isBlock: true,
type: "set",
storageClassType: "AppEngineStandardAppVersionDeploymentFilesList",
},
zip: {
value: appEngineStandardAppVersionDeploymentZipToHclTerraform(struct.zip),
isBlock: true,
type: "list",
storageClassType: "AppEngineStandardAppVersionDeploymentZipList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.appEngineStandardAppVersionDeploymentToHclTerraform = appEngineStandardAppVersionDeploymentToHclTerraform;
class AppEngineStandardAppVersionDeploymentOutputReference 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;
// files - computed: false, optional: true, required: false
this._files = new AppEngineStandardAppVersionDeploymentFilesList(this, "files", true);
// zip - computed: false, optional: true, required: false
this._zip = new AppEngineStandardAppVersionDeploymentZipOutputReference(this, "zip");
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._files?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.files = this._files?.internalValue;
}
if (this._zip?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.zip = this._zip?.internalValue;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._files.internalValue = undefined;
this._zip.internalValue = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._files.internalValue = value.files;
this._zip.internalValue = value.zip;
}
}
get files() {
return this._files;
}
putFiles(value) {
this._files.internalValue = value;
}
resetFiles() {
this._files.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get filesInput() {
return this._files.internalValue;
}
get zip() {
return this._zip;
}
putZip(value) {
this._zip.internalValue = value;
}
resetZip() {
this._zip.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get zipInput() {
return this._zip.internalValue;
}
}
exports.AppEngineStandardAppVersionDeploymentOutputReference = AppEngineStandardAppVersionDeploymentOutputReference;
_g = JSII_RTTI_SYMBOL_1;
AppEngineStandardAppVersionDeploymentOutputReference[_g] = { fqn: "@cdktf/provider-google.appEngineStandardAppVersion.AppEngineStandardAppVersionDeploymentOutputReference", version: "14.12.0" };
function appEngineStandardAppVersionEntrypointToTerraform(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 {
shell: cdktf.stringToTerraform(struct.shell),
};
}
exports.appEngineStandardAppVersionEntrypointToTerraform = appEngineStandardAppVersionEntrypointToTerraform;
function appEngineStandardAppVersionEntrypointToHclTerraform(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 = {
shell: {
value: cdktf.stringToHclTerraform(struct.shell),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.appEngineStandardAppVersionEntrypointToHclTerraform = appEngineStandardAppVersionEntrypointToHclTerraform;
class AppEngineStandardAppVersionEntrypointOutputReference 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._shell !== undefined) {
hasAnyValues = true;
internalValueResult.shell = this._shell;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._shell = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._shell = value.shell;
}
}
get shell() {
return this.getStringAttribute('shell');
}
set shell(value) {
this._shell = value;
}
// Temporarily expose input value. Use with caution.
get shellInput() {
return this._shell;
}
}
exports.AppEngineStandardAppVersionEntrypointOutputReference = AppEngineStandardAppVersionEntrypointOutputReference;
_h = JSII_RTTI_SYMBOL_1;
AppEngineStandardAppVersionEntrypointOutputReference[_h] = { fqn: "@cdktf/provider-google.appEngineStandardAppVersion.AppEngineStandardAppVersionEntrypointOutputReference", version: "14.12.0" };
function appEngineStandardAppVersionHandlersScriptToTerraform(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 {
script_path: cdktf.stringToTerraform(struct.scriptPath),
};
}
exports.appEngineStandardAppVersionHandlersScriptToTerraform = appEngineStandardAppVersionHandlersScriptToTerraform;
function appEngineStandardAppVersionHandlersScriptToHclTerraform(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 = {
script_path: {
value: cdktf.stringToHclTerraform(struct.scriptPath),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.appEngineStandardAppVersionHandlersScriptToHclTerraform = appEngineStandardAppVersionHandlersScriptToHclTerraform;
class AppEngineStandardAppVersionHandlersScriptOutputReference 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._scriptPath !== undefined) {
hasAnyValues = true;
internalValueResult.scriptPath = this._scriptPath;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._scriptPath = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._scriptPath = value.scriptPath;
}
}
get scriptPath() {
return this.getStringAttribute('script_path');
}
set scriptPath(value) {
this._scriptPath = value;
}
// Temporarily expose input value. Use with caution.
get scriptPathInput() {
return this._scriptPath;
}
}
exports.AppEngineStandardAppVersionHandlersScriptOutputReference = AppEngineStandardAppVersionHandlersScriptOutputReference;
_j = JSII_RTTI_SYMBOL_1;
AppEngineStandardAppVersionHandlersScriptOutputReference[_j] = { fqn: "@cdktf/provider-google.appEngineStandardAppVersion.AppEngineStandardAppVersionHandlersScriptOutputReference", version: "14.12.0" };
function appEngineStandardAppVersionHandlersStaticFilesToTerraform(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_readable: cdktf.booleanToTerraform(struct.applicationReadable),
expiration: cdktf.stringToTerraform(struct.expiration),
http_headers: cdktf.hashMapper(cdktf.stringToTerraform)(struct.httpHeaders),
mime_type: cdktf.stringToTerraform(struct.mimeType),
path: cdktf.stringToTerraform(struct.path),
require_matching_file: cdktf.booleanToTerraform(struct.requireMatchingFile),
upload_path_regex: cdktf.stringToTerraform(struct.uploadPathRegex),
};
}
exports.appEngineStandardAppVersionHandlersStaticFilesToTerraform = appEngineStandardAppVersionHandlersStaticFilesToTerraform;
function appEngineStandardAppVersionHandlersStaticFilesToHclTerraform(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_readable: {
value: cdktf.booleanToHclTerraform(struct.applicationReadable),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
expiration: {
value: cdktf.stringToHclTerraform(struct.expiration),
isBlock: false,
type: "simple",
storageClassType: "string",
},
http_headers: {
value: cdktf.hashMapperHcl(cdktf.stringToHclTerraform)(struct.httpHeaders),
isBlock: false,
type: "map",
storageClassType: "stringMap",
},
mime_type: {
value: cdktf.stringToHclTerraform(struct.mimeType),
isBlock: false,
type: "simple",
storageClassType: "string",
},
path: {
value: cdktf.stringToHclTerraform(struct.path),
isBlock: false,
type: "simple",
storageClassType: "string",
},
require_matching_file: {
value: cdktf.booleanToHclTerraform(struct.requireMatchingFile),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
upload_path_regex: {
value: cdktf.stringToHclTerraform(struct.uploadPathRegex),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.appEngineStandardAppVersionHandlersStaticFilesToHclTerraform = appEngineStandardAppVersionHandlersStaticFilesToHclTerraform;
class AppEngineStandardAppVersionHandlersStaticFilesOutputReference 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._applicationReadable !== undefined) {
hasAnyValues = true;
internalValueResult.applicationReadable = this._applicationReadable;
}
if (this._expiration !== undefined) {
hasAnyValues = true;
internalValueResult.expiration = this._expiration;
}
if (this._httpHeaders !== undefined) {
hasAnyValues = true;
internalValueResult.httpHeaders = this._httpHeaders;
}
if (this._mimeType !== undefined) {
hasAnyValues = true;
internalValueResult.mimeType = this._mimeType;
}
if (this._path !== undefined) {
hasAnyValues = true;
internalValueResult.path = this._path;
}
if (this._requireMatchingFile !== undefined) {
hasAnyValues = true;
internalValueResult.requireMatchingFile = this._requireMatchingFile;
}
if (this._uploadPathRegex !== undefined) {
hasAnyValues = true;
internalValueResult.uploadPathRegex = this._uploadPathRegex;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._applicationReadable = undefined;
this._expiration = undefined;
this._httpHeaders = undefined;
this._mimeType = undefined;
this._path = undefined;
this._requireMatchingFile = undefined;
this._uploadPathRegex = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._applicationReadable = value.applicationReadable;
this._expiration = value.expiration;
this._httpHeaders = value.httpHeaders;
this._mimeType = value.mimeType;
this._path = value.path;
this._requireMatchingFile = value.requireMatchingFile;
this._uploadPathRegex = value.uploadPathRegex;
}
}
get applicationReadable() {
return this.getBooleanAttribute('application_readable');
}
set applicationReadable(value) {
this._applicationReadable = value;
}
resetApplicationReadable() {
this._applicationReadable = undefined;
}
// Temporarily expose input value. Use with caution.
get applicationReadab