@cdktf/provider-google
Version:
Prebuilt google Provider for Terraform CDK (cdktf)
1,165 lines (1,164 loc) • 242 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.ClouddeployTarget = exports.ClouddeployTargetTimeoutsOutputReference = exports.clouddeployTargetTimeoutsToHclTerraform = exports.clouddeployTargetTimeoutsToTerraform = exports.ClouddeployTargetRunOutputReference = exports.clouddeployTargetRunToHclTerraform = exports.clouddeployTargetRunToTerraform = exports.ClouddeployTargetMultiTargetOutputReference = exports.clouddeployTargetMultiTargetToHclTerraform = exports.clouddeployTargetMultiTargetToTerraform = exports.ClouddeployTargetGkeOutputReference = exports.clouddeployTargetGkeToHclTerraform = exports.clouddeployTargetGkeToTerraform = exports.ClouddeployTargetExecutionConfigsList = exports.ClouddeployTargetExecutionConfigsOutputReference = exports.clouddeployTargetExecutionConfigsToHclTerraform = exports.clouddeployTargetExecutionConfigsToTerraform = exports.ClouddeployTargetCustomTargetOutputReference = exports.clouddeployTargetCustomTargetToHclTerraform = exports.clouddeployTargetCustomTargetToTerraform = exports.ClouddeployTargetAssociatedEntitiesList = exports.ClouddeployTargetAssociatedEntitiesOutputReference = exports.clouddeployTargetAssociatedEntitiesToHclTerraform = exports.clouddeployTargetAssociatedEntitiesToTerraform = exports.ClouddeployTargetAssociatedEntitiesGkeClustersList = exports.ClouddeployTargetAssociatedEntitiesGkeClustersOutputReference = exports.clouddeployTargetAssociatedEntitiesGkeClustersToHclTerraform = exports.clouddeployTargetAssociatedEntitiesGkeClustersToTerraform = exports.ClouddeployTargetAssociatedEntitiesAnthosClustersList = exports.ClouddeployTargetAssociatedEntitiesAnthosClustersOutputReference = exports.clouddeployTargetAssociatedEntitiesAnthosClustersToHclTerraform = exports.clouddeployTargetAssociatedEntitiesAnthosClustersToTerraform = exports.ClouddeployTargetAnthosClusterOutputReference = exports.clouddeployTargetAnthosClusterToHclTerraform = exports.clouddeployTargetAnthosClusterToTerraform = void 0;
const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
const cdktf = require("cdktf");
function clouddeployTargetAnthosClusterToTerraform(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 {
membership: cdktf.stringToTerraform(struct.membership),
};
}
exports.clouddeployTargetAnthosClusterToTerraform = clouddeployTargetAnthosClusterToTerraform;
function clouddeployTargetAnthosClusterToHclTerraform(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 = {
membership: {
value: cdktf.stringToHclTerraform(struct.membership),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.clouddeployTargetAnthosClusterToHclTerraform = clouddeployTargetAnthosClusterToHclTerraform;
class ClouddeployTargetAnthosClusterOutputReference 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._membership !== undefined) {
hasAnyValues = true;
internalValueResult.membership = this._membership;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._membership = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._membership = value.membership;
}
}
get membership() {
return this.getStringAttribute('membership');
}
set membership(value) {
this._membership = value;
}
resetMembership() {
this._membership = undefined;
}
// Temporarily expose input value. Use with caution.
get membershipInput() {
return this._membership;
}
}
exports.ClouddeployTargetAnthosClusterOutputReference = ClouddeployTargetAnthosClusterOutputReference;
_a = JSII_RTTI_SYMBOL_1;
ClouddeployTargetAnthosClusterOutputReference[_a] = { fqn: "@cdktf/provider-google.clouddeployTarget.ClouddeployTargetAnthosClusterOutputReference", version: "14.12.0" };
function clouddeployTargetAssociatedEntitiesAnthosClustersToTerraform(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 {
membership: cdktf.stringToTerraform(struct.membership),
};
}
exports.clouddeployTargetAssociatedEntitiesAnthosClustersToTerraform = clouddeployTargetAssociatedEntitiesAnthosClustersToTerraform;
function clouddeployTargetAssociatedEntitiesAnthosClustersToHclTerraform(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 = {
membership: {
value: cdktf.stringToHclTerraform(struct.membership),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.clouddeployTargetAssociatedEntitiesAnthosClustersToHclTerraform = clouddeployTargetAssociatedEntitiesAnthosClustersToHclTerraform;
class ClouddeployTargetAssociatedEntitiesAnthosClustersOutputReference 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._membership !== undefined) {
hasAnyValues = true;
internalValueResult.membership = this._membership;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._membership = 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._membership = value.membership;
}
}
get membership() {
return this.getStringAttribute('membership');
}
set membership(value) {
this._membership = value;
}
resetMembership() {
this._membership = undefined;
}
// Temporarily expose input value. Use with caution.
get membershipInput() {
return this._membership;
}
}
exports.ClouddeployTargetAssociatedEntitiesAnthosClustersOutputReference = ClouddeployTargetAssociatedEntitiesAnthosClustersOutputReference;
_b = JSII_RTTI_SYMBOL_1;
ClouddeployTargetAssociatedEntitiesAnthosClustersOutputReference[_b] = { fqn: "@cdktf/provider-google.clouddeployTarget.ClouddeployTargetAssociatedEntitiesAnthosClustersOutputReference", version: "14.12.0" };
class ClouddeployTargetAssociatedEntitiesAnthosClustersList 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 ClouddeployTargetAssociatedEntitiesAnthosClustersOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.ClouddeployTargetAssociatedEntitiesAnthosClustersList = ClouddeployTargetAssociatedEntitiesAnthosClustersList;
_c = JSII_RTTI_SYMBOL_1;
ClouddeployTargetAssociatedEntitiesAnthosClustersList[_c] = { fqn: "@cdktf/provider-google.clouddeployTarget.ClouddeployTargetAssociatedEntitiesAnthosClustersList", version: "14.12.0" };
function clouddeployTargetAssociatedEntitiesGkeClustersToTerraform(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 {
cluster: cdktf.stringToTerraform(struct.cluster),
internal_ip: cdktf.booleanToTerraform(struct.internalIp),
proxy_url: cdktf.stringToTerraform(struct.proxyUrl),
};
}
exports.clouddeployTargetAssociatedEntitiesGkeClustersToTerraform = clouddeployTargetAssociatedEntitiesGkeClustersToTerraform;
function clouddeployTargetAssociatedEntitiesGkeClustersToHclTerraform(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 = {
cluster: {
value: cdktf.stringToHclTerraform(struct.cluster),
isBlock: false,
type: "simple",
storageClassType: "string",
},
internal_ip: {
value: cdktf.booleanToHclTerraform(struct.internalIp),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
proxy_url: {
value: cdktf.stringToHclTerraform(struct.proxyUrl),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.clouddeployTargetAssociatedEntitiesGkeClustersToHclTerraform = clouddeployTargetAssociatedEntitiesGkeClustersToHclTerraform;
class ClouddeployTargetAssociatedEntitiesGkeClustersOutputReference 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._cluster !== undefined) {
hasAnyValues = true;
internalValueResult.cluster = this._cluster;
}
if (this._internalIp !== undefined) {
hasAnyValues = true;
internalValueResult.internalIp = this._internalIp;
}
if (this._proxyUrl !== undefined) {
hasAnyValues = true;
internalValueResult.proxyUrl = this._proxyUrl;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._cluster = undefined;
this._internalIp = undefined;
this._proxyUrl = 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._cluster = value.cluster;
this._internalIp = value.internalIp;
this._proxyUrl = value.proxyUrl;
}
}
get cluster() {
return this.getStringAttribute('cluster');
}
set cluster(value) {
this._cluster = value;
}
resetCluster() {
this._cluster = undefined;
}
// Temporarily expose input value. Use with caution.
get clusterInput() {
return this._cluster;
}
get internalIp() {
return this.getBooleanAttribute('internal_ip');
}
set internalIp(value) {
this._internalIp = value;
}
resetInternalIp() {
this._internalIp = undefined;
}
// Temporarily expose input value. Use with caution.
get internalIpInput() {
return this._internalIp;
}
get proxyUrl() {
return this.getStringAttribute('proxy_url');
}
set proxyUrl(value) {
this._proxyUrl = value;
}
resetProxyUrl() {
this._proxyUrl = undefined;
}
// Temporarily expose input value. Use with caution.
get proxyUrlInput() {
return this._proxyUrl;
}
}
exports.ClouddeployTargetAssociatedEntitiesGkeClustersOutputReference = ClouddeployTargetAssociatedEntitiesGkeClustersOutputReference;
_d = JSII_RTTI_SYMBOL_1;
ClouddeployTargetAssociatedEntitiesGkeClustersOutputReference[_d] = { fqn: "@cdktf/provider-google.clouddeployTarget.ClouddeployTargetAssociatedEntitiesGkeClustersOutputReference", version: "14.12.0" };
class ClouddeployTargetAssociatedEntitiesGkeClustersList 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 ClouddeployTargetAssociatedEntitiesGkeClustersOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.ClouddeployTargetAssociatedEntitiesGkeClustersList = ClouddeployTargetAssociatedEntitiesGkeClustersList;
_e = JSII_RTTI_SYMBOL_1;
ClouddeployTargetAssociatedEntitiesGkeClustersList[_e] = { fqn: "@cdktf/provider-google.clouddeployTarget.ClouddeployTargetAssociatedEntitiesGkeClustersList", version: "14.12.0" };
function clouddeployTargetAssociatedEntitiesToTerraform(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 {
entity_id: cdktf.stringToTerraform(struct.entityId),
anthos_clusters: cdktf.listMapper(clouddeployTargetAssociatedEntitiesAnthosClustersToTerraform, true)(struct.anthosClusters),
gke_clusters: cdktf.listMapper(clouddeployTargetAssociatedEntitiesGkeClustersToTerraform, true)(struct.gkeClusters),
};
}
exports.clouddeployTargetAssociatedEntitiesToTerraform = clouddeployTargetAssociatedEntitiesToTerraform;
function clouddeployTargetAssociatedEntitiesToHclTerraform(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 = {
entity_id: {
value: cdktf.stringToHclTerraform(struct.entityId),
isBlock: false,
type: "simple",
storageClassType: "string",
},
anthos_clusters: {
value: cdktf.listMapperHcl(clouddeployTargetAssociatedEntitiesAnthosClustersToHclTerraform, true)(struct.anthosClusters),
isBlock: true,
type: "list",
storageClassType: "ClouddeployTargetAssociatedEntitiesAnthosClustersList",
},
gke_clusters: {
value: cdktf.listMapperHcl(clouddeployTargetAssociatedEntitiesGkeClustersToHclTerraform, true)(struct.gkeClusters),
isBlock: true,
type: "list",
storageClassType: "ClouddeployTargetAssociatedEntitiesGkeClustersList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.clouddeployTargetAssociatedEntitiesToHclTerraform = clouddeployTargetAssociatedEntitiesToHclTerraform;
class ClouddeployTargetAssociatedEntitiesOutputReference 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;
// anthos_clusters - computed: false, optional: true, required: false
this._anthosClusters = new ClouddeployTargetAssociatedEntitiesAnthosClustersList(this, "anthos_clusters", false);
// gke_clusters - computed: false, optional: true, required: false
this._gkeClusters = new ClouddeployTargetAssociatedEntitiesGkeClustersList(this, "gke_clusters", false);
}
get internalValue() {
if (this.resolvableValue) {
return this.resolvableValue;
}
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._entityId !== undefined) {
hasAnyValues = true;
internalValueResult.entityId = this._entityId;
}
if (this._anthosClusters?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.anthosClusters = this._anthosClusters?.internalValue;
}
if (this._gkeClusters?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.gkeClusters = this._gkeClusters?.internalValue;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._entityId = undefined;
this._anthosClusters.internalValue = undefined;
this._gkeClusters.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._entityId = value.entityId;
this._anthosClusters.internalValue = value.anthosClusters;
this._gkeClusters.internalValue = value.gkeClusters;
}
}
get entityId() {
return this.getStringAttribute('entity_id');
}
set entityId(value) {
this._entityId = value;
}
// Temporarily expose input value. Use with caution.
get entityIdInput() {
return this._entityId;
}
get anthosClusters() {
return this._anthosClusters;
}
putAnthosClusters(value) {
this._anthosClusters.internalValue = value;
}
resetAnthosClusters() {
this._anthosClusters.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get anthosClustersInput() {
return this._anthosClusters.internalValue;
}
get gkeClusters() {
return this._gkeClusters;
}
putGkeClusters(value) {
this._gkeClusters.internalValue = value;
}
resetGkeClusters() {
this._gkeClusters.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get gkeClustersInput() {
return this._gkeClusters.internalValue;
}
}
exports.ClouddeployTargetAssociatedEntitiesOutputReference = ClouddeployTargetAssociatedEntitiesOutputReference;
_f = JSII_RTTI_SYMBOL_1;
ClouddeployTargetAssociatedEntitiesOutputReference[_f] = { fqn: "@cdktf/provider-google.clouddeployTarget.ClouddeployTargetAssociatedEntitiesOutputReference", version: "14.12.0" };
class ClouddeployTargetAssociatedEntitiesList 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 ClouddeployTargetAssociatedEntitiesOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.ClouddeployTargetAssociatedEntitiesList = ClouddeployTargetAssociatedEntitiesList;
_g = JSII_RTTI_SYMBOL_1;
ClouddeployTargetAssociatedEntitiesList[_g] = { fqn: "@cdktf/provider-google.clouddeployTarget.ClouddeployTargetAssociatedEntitiesList", version: "14.12.0" };
function clouddeployTargetCustomTargetToTerraform(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 {
custom_target_type: cdktf.stringToTerraform(struct.customTargetType),
};
}
exports.clouddeployTargetCustomTargetToTerraform = clouddeployTargetCustomTargetToTerraform;
function clouddeployTargetCustomTargetToHclTerraform(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 = {
custom_target_type: {
value: cdktf.stringToHclTerraform(struct.customTargetType),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.clouddeployTargetCustomTargetToHclTerraform = clouddeployTargetCustomTargetToHclTerraform;
class ClouddeployTargetCustomTargetOutputReference 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._customTargetType !== undefined) {
hasAnyValues = true;
internalValueResult.customTargetType = this._customTargetType;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._customTargetType = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._customTargetType = value.customTargetType;
}
}
get customTargetType() {
return this.getStringAttribute('custom_target_type');
}
set customTargetType(value) {
this._customTargetType = value;
}
// Temporarily expose input value. Use with caution.
get customTargetTypeInput() {
return this._customTargetType;
}
}
exports.ClouddeployTargetCustomTargetOutputReference = ClouddeployTargetCustomTargetOutputReference;
_h = JSII_RTTI_SYMBOL_1;
ClouddeployTargetCustomTargetOutputReference[_h] = { fqn: "@cdktf/provider-google.clouddeployTarget.ClouddeployTargetCustomTargetOutputReference", version: "14.12.0" };
function clouddeployTargetExecutionConfigsToTerraform(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 {
artifact_storage: cdktf.stringToTerraform(struct.artifactStorage),
execution_timeout: cdktf.stringToTerraform(struct.executionTimeout),
service_account: cdktf.stringToTerraform(struct.serviceAccount),
usages: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.usages),
verbose: cdktf.booleanToTerraform(struct.verbose),
worker_pool: cdktf.stringToTerraform(struct.workerPool),
};
}
exports.clouddeployTargetExecutionConfigsToTerraform = clouddeployTargetExecutionConfigsToTerraform;
function clouddeployTargetExecutionConfigsToHclTerraform(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 = {
artifact_storage: {
value: cdktf.stringToHclTerraform(struct.artifactStorage),
isBlock: false,
type: "simple",
storageClassType: "string",
},
execution_timeout: {
value: cdktf.stringToHclTerraform(struct.executionTimeout),
isBlock: false,
type: "simple",
storageClassType: "string",
},
service_account: {
value: cdktf.stringToHclTerraform(struct.serviceAccount),
isBlock: false,
type: "simple",
storageClassType: "string",
},
usages: {
value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.usages),
isBlock: false,
type: "list",
storageClassType: "stringList",
},
verbose: {
value: cdktf.booleanToHclTerraform(struct.verbose),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
worker_pool: {
value: cdktf.stringToHclTerraform(struct.workerPool),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.clouddeployTargetExecutionConfigsToHclTerraform = clouddeployTargetExecutionConfigsToHclTerraform;
class ClouddeployTargetExecutionConfigsOutputReference 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._artifactStorage !== undefined) {
hasAnyValues = true;
internalValueResult.artifactStorage = this._artifactStorage;
}
if (this._executionTimeout !== undefined) {
hasAnyValues = true;
internalValueResult.executionTimeout = this._executionTimeout;
}
if (this._serviceAccount !== undefined) {
hasAnyValues = true;
internalValueResult.serviceAccount = this._serviceAccount;
}
if (this._usages !== undefined) {
hasAnyValues = true;
internalValueResult.usages = this._usages;
}
if (this._verbose !== undefined) {
hasAnyValues = true;
internalValueResult.verbose = this._verbose;
}
if (this._workerPool !== undefined) {
hasAnyValues = true;
internalValueResult.workerPool = this._workerPool;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._artifactStorage = undefined;
this._executionTimeout = undefined;
this._serviceAccount = undefined;
this._usages = undefined;
this._verbose = undefined;
this._workerPool = 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._artifactStorage = value.artifactStorage;
this._executionTimeout = value.executionTimeout;
this._serviceAccount = value.serviceAccount;
this._usages = value.usages;
this._verbose = value.verbose;
this._workerPool = value.workerPool;
}
}
get artifactStorage() {
return this.getStringAttribute('artifact_storage');
}
set artifactStorage(value) {
this._artifactStorage = value;
}
resetArtifactStorage() {
this._artifactStorage = undefined;
}
// Temporarily expose input value. Use with caution.
get artifactStorageInput() {
return this._artifactStorage;
}
get executionTimeout() {
return this.getStringAttribute('execution_timeout');
}
set executionTimeout(value) {
this._executionTimeout = value;
}
resetExecutionTimeout() {
this._executionTimeout = undefined;
}
// Temporarily expose input value. Use with caution.
get executionTimeoutInput() {
return this._executionTimeout;
}
get serviceAccount() {
return this.getStringAttribute('service_account');
}
set serviceAccount(value) {
this._serviceAccount = value;
}
resetServiceAccount() {
this._serviceAccount = undefined;
}
// Temporarily expose input value. Use with caution.
get serviceAccountInput() {
return this._serviceAccount;
}
get usages() {
return this.getListAttribute('usages');
}
set usages(value) {
this._usages = value;
}
// Temporarily expose input value. Use with caution.
get usagesInput() {
return this._usages;
}
get verbose() {
return this.getBooleanAttribute('verbose');
}
set verbose(value) {
this._verbose = value;
}
resetVerbose() {
this._verbose = undefined;
}
// Temporarily expose input value. Use with caution.
get verboseInput() {
return this._verbose;
}
get workerPool() {
return this.getStringAttribute('worker_pool');
}
set workerPool(value) {
this._workerPool = value;
}
resetWorkerPool() {
this._workerPool = undefined;
}
// Temporarily expose input value. Use with caution.
get workerPoolInput() {
return this._workerPool;
}
}
exports.ClouddeployTargetExecutionConfigsOutputReference = ClouddeployTargetExecutionConfigsOutputReference;
_j = JSII_RTTI_SYMBOL_1;
ClouddeployTargetExecutionConfigsOutputReference[_j] = { fqn: "@cdktf/provider-google.clouddeployTarget.ClouddeployTargetExecutionConfigsOutputReference", version: "14.12.0" };
class ClouddeployTargetExecutionConfigsList 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 ClouddeployTargetExecutionConfigsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.ClouddeployTargetExecutionConfigsList = ClouddeployTargetExecutionConfigsList;
_k = JSII_RTTI_SYMBOL_1;
ClouddeployTargetExecutionConfigsList[_k] = { fqn: "@cdktf/provider-google.clouddeployTarget.ClouddeployTargetExecutionConfigsList", version: "14.12.0" };
function clouddeployTargetGkeToTerraform(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 {
cluster: cdktf.stringToTerraform(struct.cluster),
internal_ip: cdktf.booleanToTerraform(struct.internalIp),
proxy_url: cdktf.stringToTerraform(struct.proxyUrl),
};
}
exports.clouddeployTargetGkeToTerraform = clouddeployTargetGkeToTerraform;
function clouddeployTargetGkeToHclTerraform(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 = {
cluster: {
value: cdktf.stringToHclTerraform(struct.cluster),
isBlock: false,
type: "simple",
storageClassType: "string",
},
internal_ip: {
value: cdktf.booleanToHclTerraform(struct.internalIp),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
proxy_url: {
value: cdktf.stringToHclTerraform(struct.proxyUrl),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.clouddeployTargetGkeToHclTerraform = clouddeployTargetGkeToHclTerraform;
class ClouddeployTargetGkeOutputReference 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._cluster !== undefined) {
hasAnyValues = true;
internalValueResult.cluster = this._cluster;
}
if (this._internalIp !== undefined) {
hasAnyValues = true;
internalValueResult.internalIp = this._internalIp;
}
if (this._proxyUrl !== undefined) {
hasAnyValues = true;
internalValueResult.proxyUrl = this._proxyUrl;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._cluster = undefined;
this._internalIp = undefined;
this._proxyUrl = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._cluster = value.cluster;
this._internalIp = value.internalIp;
this._proxyUrl = value.proxyUrl;
}
}
get cluster() {
return this.getStringAttribute('cluster');
}
set cluster(value) {
this._cluster = value;
}
resetCluster() {
this._cluster = undefined;
}
// Temporarily expose input value. Use with caution.
get clusterInput() {
return this._cluster;
}
get internalIp() {
return this.getBooleanAttribute('internal_ip');
}
set internalIp(value) {
this._internalIp = value;
}
resetInternalIp() {
this._internalIp = undefined;
}
// Temporarily expose input value. Use with caution.
get internalIpInput() {
return this._internalIp;
}
get proxyUrl() {
return this.getStringAttribute('proxy_url');
}
set proxyUrl(value) {
this._proxyUrl = value;
}
resetProxyUrl() {
this._proxyUrl = undefined;
}
// Temporarily expose input value. Use with caution.
get proxyUrlInput() {
return this._proxyUrl;
}
}
exports.ClouddeployTargetGkeOutputReference = ClouddeployTargetGkeOutputReference;
_l = JSII_RTTI_SYMBOL_1;
ClouddeployTargetGkeOutputReference[_l] = { fqn: "@cdktf/provider-google.clouddeployTarget.ClouddeployTargetGkeOutputReference", version: "14.12.0" };
function clouddeployTargetMultiTargetToTerraform(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 {
target_ids: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.targetIds),
};
}
exports.clouddeployTargetMultiTargetToTerraform = clouddeployTargetMultiTargetToTerraform;
function clouddeployTargetMultiTargetToHclTerraform(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 = {
target_ids: {
value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.targetIds),
isBlock: false,
type: "list",
storageClassType: "stringList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.clouddeployTargetMultiTargetToHclTerraform = clouddeployTargetMultiTargetToHclTerraform;
class ClouddeployTargetMultiTargetOutputReference 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._targetIds !== undefined) {
hasAnyValues = true;
internalValueResult.targetIds = this._targetIds;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._targetIds = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._targetIds = value.targetIds;
}
}
get targetIds() {
return this.getListAttribute('target_ids');
}
set targetIds(value) {
this._targetIds = value;
}
// Temporarily expose input value. Use with caution.
get targetIdsInput() {
return this._targetIds;
}
}
exports.ClouddeployTargetMultiTargetOutputReference = ClouddeployTargetMultiTargetOutputReference;
_m = JSII_RTTI_SYMBOL_1;
ClouddeployTargetMultiTargetOutputReference[_m] = { fqn: "@cdktf/provider-google.clouddeployTarget.ClouddeployTargetMultiTargetOutputReference", version: "14.12.0" };
function clouddeployTargetRunToTerraform(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 {
location: cdktf.stringToTerraform(struct.location),
};
}
exports.clouddeployTargetRunToTerraform = clouddeployTargetRunToTerraform;
function clouddeployTargetRunToHclTerraform(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 = {
location: {
value: cdktf.stringToHclTerraform(struct.location),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.clouddeployTargetRunToHclTerraform = clouddeployTargetRunToHclTerraform;
class ClouddeployTargetRunOutputReference 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._location !== undefined) {
hasAnyValues = true;
internalValueResult.location = this._location;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._location = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._location = value.location;
}
}
get location() {
return this.getStringAttribute('location');
}
set location(value) {
this._location = value;
}
// Temporarily expose input value. Use with caution.
get locationInput() {
return this._location;
}
}
exports.ClouddeployTargetRunOutputReference = ClouddeployTargetRunOutputReference;
_o = JSII_RTTI_SYMBOL_1;
ClouddeployTargetRunOutputReference[_o] = { fqn: "@cdktf/provider-google.clouddeployTarget.ClouddeployTargetRunOutputReference", version: "14.12.0" };
function clouddeployTargetTimeoutsToTerraform(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 {
create: cdktf.stringToTerraform(struct.create),
delete: cdktf.stringToTerraform(struct.delete),
update: cdktf.stringToTerraform(struct.update),
};
}
exports.clouddeployTargetTimeoutsToTerraform = clouddeployTargetTimeoutsToTerraform;
function clouddeployTargetTimeoutsToHclTerraform(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 = {
create: {
value: cdktf.stringToHclTerraform(struct.create),
isBlock: false,
type: "simple",
storageClassType: "string",
},
delete: {
value: cdktf.stringToHclTerraform(struct.delete),
isBlock: false,
type: "simple",
storageClassType: "string",
},
update: {
value: cdktf.stringToHclTerraform(struct.update),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.clouddeployTargetTimeoutsToHclTerraform = clouddeployTargetTimeoutsToHclTerraform;
class ClouddeployTargetTimeoutsOutputReference 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);
this.isEmptyObject = false;
}
get internalValue() {
if (this.resolvableValue) {
return this.resolvableValue;
}
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._create !== undefined) {
hasAnyValues = true;
internalValueResult.create = this._create;
}
if (this._delete !== undefined) {
hasAnyValues = true;
internalValueResult.delete = this._delete;