@cdktf/provider-google
Version:
Prebuilt google Provider for Terraform CDK (cdktf)
1,100 lines • 160 kB
JavaScript
"use strict";
var _a, _b, _c, _d, _e, _f, _g, _h;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ClouddeployCustomTargetType = exports.ClouddeployCustomTargetTypeTimeoutsOutputReference = exports.clouddeployCustomTargetTypeTimeoutsToHclTerraform = exports.clouddeployCustomTargetTypeTimeoutsToTerraform = exports.ClouddeployCustomTargetTypeCustomActionsOutputReference = exports.clouddeployCustomTargetTypeCustomActionsToHclTerraform = exports.clouddeployCustomTargetTypeCustomActionsToTerraform = exports.ClouddeployCustomTargetTypeCustomActionsIncludeSkaffoldModulesList = exports.ClouddeployCustomTargetTypeCustomActionsIncludeSkaffoldModulesOutputReference = exports.clouddeployCustomTargetTypeCustomActionsIncludeSkaffoldModulesToHclTerraform = exports.clouddeployCustomTargetTypeCustomActionsIncludeSkaffoldModulesToTerraform = exports.ClouddeployCustomTargetTypeCustomActionsIncludeSkaffoldModulesGoogleCloudStorageOutputReference = exports.clouddeployCustomTargetTypeCustomActionsIncludeSkaffoldModulesGoogleCloudStorageToHclTerraform = exports.clouddeployCustomTargetTypeCustomActionsIncludeSkaffoldModulesGoogleCloudStorageToTerraform = exports.ClouddeployCustomTargetTypeCustomActionsIncludeSkaffoldModulesGoogleCloudBuildRepoOutputReference = exports.clouddeployCustomTargetTypeCustomActionsIncludeSkaffoldModulesGoogleCloudBuildRepoToHclTerraform = exports.clouddeployCustomTargetTypeCustomActionsIncludeSkaffoldModulesGoogleCloudBuildRepoToTerraform = exports.ClouddeployCustomTargetTypeCustomActionsIncludeSkaffoldModulesGitOutputReference = exports.clouddeployCustomTargetTypeCustomActionsIncludeSkaffoldModulesGitToHclTerraform = exports.clouddeployCustomTargetTypeCustomActionsIncludeSkaffoldModulesGitToTerraform = void 0;
const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
const cdktf = require("cdktf");
function clouddeployCustomTargetTypeCustomActionsIncludeSkaffoldModulesGitToTerraform(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 {
path: cdktf.stringToTerraform(struct.path),
ref: cdktf.stringToTerraform(struct.ref),
repo: cdktf.stringToTerraform(struct.repo),
};
}
exports.clouddeployCustomTargetTypeCustomActionsIncludeSkaffoldModulesGitToTerraform = clouddeployCustomTargetTypeCustomActionsIncludeSkaffoldModulesGitToTerraform;
function clouddeployCustomTargetTypeCustomActionsIncludeSkaffoldModulesGitToHclTerraform(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 = {
path: {
value: cdktf.stringToHclTerraform(struct.path),
isBlock: false,
type: "simple",
storageClassType: "string",
},
ref: {
value: cdktf.stringToHclTerraform(struct.ref),
isBlock: false,
type: "simple",
storageClassType: "string",
},
repo: {
value: cdktf.stringToHclTerraform(struct.repo),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.clouddeployCustomTargetTypeCustomActionsIncludeSkaffoldModulesGitToHclTerraform = clouddeployCustomTargetTypeCustomActionsIncludeSkaffoldModulesGitToHclTerraform;
class ClouddeployCustomTargetTypeCustomActionsIncludeSkaffoldModulesGitOutputReference 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._path !== undefined) {
hasAnyValues = true;
internalValueResult.path = this._path;
}
if (this._ref !== undefined) {
hasAnyValues = true;
internalValueResult.ref = this._ref;
}
if (this._repo !== undefined) {
hasAnyValues = true;
internalValueResult.repo = this._repo;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._path = undefined;
this._ref = undefined;
this._repo = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._path = value.path;
this._ref = value.ref;
this._repo = value.repo;
}
}
get path() {
return this.getStringAttribute('path');
}
set path(value) {
this._path = value;
}
resetPath() {
this._path = undefined;
}
// Temporarily expose input value. Use with caution.
get pathInput() {
return this._path;
}
get ref() {
return this.getStringAttribute('ref');
}
set ref(value) {
this._ref = value;
}
resetRef() {
this._ref = undefined;
}
// Temporarily expose input value. Use with caution.
get refInput() {
return this._ref;
}
get repo() {
return this.getStringAttribute('repo');
}
set repo(value) {
this._repo = value;
}
// Temporarily expose input value. Use with caution.
get repoInput() {
return this._repo;
}
}
exports.ClouddeployCustomTargetTypeCustomActionsIncludeSkaffoldModulesGitOutputReference = ClouddeployCustomTargetTypeCustomActionsIncludeSkaffoldModulesGitOutputReference;
_a = JSII_RTTI_SYMBOL_1;
ClouddeployCustomTargetTypeCustomActionsIncludeSkaffoldModulesGitOutputReference[_a] = { fqn: "@cdktf/provider-google.clouddeployCustomTargetType.ClouddeployCustomTargetTypeCustomActionsIncludeSkaffoldModulesGitOutputReference", version: "14.12.0" };
function clouddeployCustomTargetTypeCustomActionsIncludeSkaffoldModulesGoogleCloudBuildRepoToTerraform(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 {
path: cdktf.stringToTerraform(struct.path),
ref: cdktf.stringToTerraform(struct.ref),
repository: cdktf.stringToTerraform(struct.repository),
};
}
exports.clouddeployCustomTargetTypeCustomActionsIncludeSkaffoldModulesGoogleCloudBuildRepoToTerraform = clouddeployCustomTargetTypeCustomActionsIncludeSkaffoldModulesGoogleCloudBuildRepoToTerraform;
function clouddeployCustomTargetTypeCustomActionsIncludeSkaffoldModulesGoogleCloudBuildRepoToHclTerraform(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 = {
path: {
value: cdktf.stringToHclTerraform(struct.path),
isBlock: false,
type: "simple",
storageClassType: "string",
},
ref: {
value: cdktf.stringToHclTerraform(struct.ref),
isBlock: false,
type: "simple",
storageClassType: "string",
},
repository: {
value: cdktf.stringToHclTerraform(struct.repository),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.clouddeployCustomTargetTypeCustomActionsIncludeSkaffoldModulesGoogleCloudBuildRepoToHclTerraform = clouddeployCustomTargetTypeCustomActionsIncludeSkaffoldModulesGoogleCloudBuildRepoToHclTerraform;
class ClouddeployCustomTargetTypeCustomActionsIncludeSkaffoldModulesGoogleCloudBuildRepoOutputReference 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._path !== undefined) {
hasAnyValues = true;
internalValueResult.path = this._path;
}
if (this._ref !== undefined) {
hasAnyValues = true;
internalValueResult.ref = this._ref;
}
if (this._repository !== undefined) {
hasAnyValues = true;
internalValueResult.repository = this._repository;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._path = undefined;
this._ref = undefined;
this._repository = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._path = value.path;
this._ref = value.ref;
this._repository = value.repository;
}
}
get path() {
return this.getStringAttribute('path');
}
set path(value) {
this._path = value;
}
resetPath() {
this._path = undefined;
}
// Temporarily expose input value. Use with caution.
get pathInput() {
return this._path;
}
get ref() {
return this.getStringAttribute('ref');
}
set ref(value) {
this._ref = value;
}
resetRef() {
this._ref = undefined;
}
// Temporarily expose input value. Use with caution.
get refInput() {
return this._ref;
}
get repository() {
return this.getStringAttribute('repository');
}
set repository(value) {
this._repository = value;
}
// Temporarily expose input value. Use with caution.
get repositoryInput() {
return this._repository;
}
}
exports.ClouddeployCustomTargetTypeCustomActionsIncludeSkaffoldModulesGoogleCloudBuildRepoOutputReference = ClouddeployCustomTargetTypeCustomActionsIncludeSkaffoldModulesGoogleCloudBuildRepoOutputReference;
_b = JSII_RTTI_SYMBOL_1;
ClouddeployCustomTargetTypeCustomActionsIncludeSkaffoldModulesGoogleCloudBuildRepoOutputReference[_b] = { fqn: "@cdktf/provider-google.clouddeployCustomTargetType.ClouddeployCustomTargetTypeCustomActionsIncludeSkaffoldModulesGoogleCloudBuildRepoOutputReference", version: "14.12.0" };
function clouddeployCustomTargetTypeCustomActionsIncludeSkaffoldModulesGoogleCloudStorageToTerraform(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 {
path: cdktf.stringToTerraform(struct.path),
source: cdktf.stringToTerraform(struct.source),
};
}
exports.clouddeployCustomTargetTypeCustomActionsIncludeSkaffoldModulesGoogleCloudStorageToTerraform = clouddeployCustomTargetTypeCustomActionsIncludeSkaffoldModulesGoogleCloudStorageToTerraform;
function clouddeployCustomTargetTypeCustomActionsIncludeSkaffoldModulesGoogleCloudStorageToHclTerraform(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 = {
path: {
value: cdktf.stringToHclTerraform(struct.path),
isBlock: false,
type: "simple",
storageClassType: "string",
},
source: {
value: cdktf.stringToHclTerraform(struct.source),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.clouddeployCustomTargetTypeCustomActionsIncludeSkaffoldModulesGoogleCloudStorageToHclTerraform = clouddeployCustomTargetTypeCustomActionsIncludeSkaffoldModulesGoogleCloudStorageToHclTerraform;
class ClouddeployCustomTargetTypeCustomActionsIncludeSkaffoldModulesGoogleCloudStorageOutputReference 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._path !== undefined) {
hasAnyValues = true;
internalValueResult.path = this._path;
}
if (this._source !== undefined) {
hasAnyValues = true;
internalValueResult.source = this._source;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._path = undefined;
this._source = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._path = value.path;
this._source = value.source;
}
}
get path() {
return this.getStringAttribute('path');
}
set path(value) {
this._path = value;
}
resetPath() {
this._path = undefined;
}
// Temporarily expose input value. Use with caution.
get pathInput() {
return this._path;
}
get source() {
return this.getStringAttribute('source');
}
set source(value) {
this._source = value;
}
// Temporarily expose input value. Use with caution.
get sourceInput() {
return this._source;
}
}
exports.ClouddeployCustomTargetTypeCustomActionsIncludeSkaffoldModulesGoogleCloudStorageOutputReference = ClouddeployCustomTargetTypeCustomActionsIncludeSkaffoldModulesGoogleCloudStorageOutputReference;
_c = JSII_RTTI_SYMBOL_1;
ClouddeployCustomTargetTypeCustomActionsIncludeSkaffoldModulesGoogleCloudStorageOutputReference[_c] = { fqn: "@cdktf/provider-google.clouddeployCustomTargetType.ClouddeployCustomTargetTypeCustomActionsIncludeSkaffoldModulesGoogleCloudStorageOutputReference", version: "14.12.0" };
function clouddeployCustomTargetTypeCustomActionsIncludeSkaffoldModulesToTerraform(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 {
configs: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.configs),
git: clouddeployCustomTargetTypeCustomActionsIncludeSkaffoldModulesGitToTerraform(struct.git),
google_cloud_build_repo: clouddeployCustomTargetTypeCustomActionsIncludeSkaffoldModulesGoogleCloudBuildRepoToTerraform(struct.googleCloudBuildRepo),
google_cloud_storage: clouddeployCustomTargetTypeCustomActionsIncludeSkaffoldModulesGoogleCloudStorageToTerraform(struct.googleCloudStorage),
};
}
exports.clouddeployCustomTargetTypeCustomActionsIncludeSkaffoldModulesToTerraform = clouddeployCustomTargetTypeCustomActionsIncludeSkaffoldModulesToTerraform;
function clouddeployCustomTargetTypeCustomActionsIncludeSkaffoldModulesToHclTerraform(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 = {
configs: {
value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.configs),
isBlock: false,
type: "list",
storageClassType: "stringList",
},
git: {
value: clouddeployCustomTargetTypeCustomActionsIncludeSkaffoldModulesGitToHclTerraform(struct.git),
isBlock: true,
type: "list",
storageClassType: "ClouddeployCustomTargetTypeCustomActionsIncludeSkaffoldModulesGitList",
},
google_cloud_build_repo: {
value: clouddeployCustomTargetTypeCustomActionsIncludeSkaffoldModulesGoogleCloudBuildRepoToHclTerraform(struct.googleCloudBuildRepo),
isBlock: true,
type: "list",
storageClassType: "ClouddeployCustomTargetTypeCustomActionsIncludeSkaffoldModulesGoogleCloudBuildRepoList",
},
google_cloud_storage: {
value: clouddeployCustomTargetTypeCustomActionsIncludeSkaffoldModulesGoogleCloudStorageToHclTerraform(struct.googleCloudStorage),
isBlock: true,
type: "list",
storageClassType: "ClouddeployCustomTargetTypeCustomActionsIncludeSkaffoldModulesGoogleCloudStorageList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.clouddeployCustomTargetTypeCustomActionsIncludeSkaffoldModulesToHclTerraform = clouddeployCustomTargetTypeCustomActionsIncludeSkaffoldModulesToHclTerraform;
class ClouddeployCustomTargetTypeCustomActionsIncludeSkaffoldModulesOutputReference 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;
// git - computed: false, optional: true, required: false
this._git = new ClouddeployCustomTargetTypeCustomActionsIncludeSkaffoldModulesGitOutputReference(this, "git");
// google_cloud_build_repo - computed: false, optional: true, required: false
this._googleCloudBuildRepo = new ClouddeployCustomTargetTypeCustomActionsIncludeSkaffoldModulesGoogleCloudBuildRepoOutputReference(this, "google_cloud_build_repo");
// google_cloud_storage - computed: false, optional: true, required: false
this._googleCloudStorage = new ClouddeployCustomTargetTypeCustomActionsIncludeSkaffoldModulesGoogleCloudStorageOutputReference(this, "google_cloud_storage");
}
get internalValue() {
if (this.resolvableValue) {
return this.resolvableValue;
}
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._configs !== undefined) {
hasAnyValues = true;
internalValueResult.configs = this._configs;
}
if (this._git?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.git = this._git?.internalValue;
}
if (this._googleCloudBuildRepo?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.googleCloudBuildRepo = this._googleCloudBuildRepo?.internalValue;
}
if (this._googleCloudStorage?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.googleCloudStorage = this._googleCloudStorage?.internalValue;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._configs = undefined;
this._git.internalValue = undefined;
this._googleCloudBuildRepo.internalValue = undefined;
this._googleCloudStorage.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._configs = value.configs;
this._git.internalValue = value.git;
this._googleCloudBuildRepo.internalValue = value.googleCloudBuildRepo;
this._googleCloudStorage.internalValue = value.googleCloudStorage;
}
}
get configs() {
return this.getListAttribute('configs');
}
set configs(value) {
this._configs = value;
}
resetConfigs() {
this._configs = undefined;
}
// Temporarily expose input value. Use with caution.
get configsInput() {
return this._configs;
}
get git() {
return this._git;
}
putGit(value) {
this._git.internalValue = value;
}
resetGit() {
this._git.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get gitInput() {
return this._git.internalValue;
}
get googleCloudBuildRepo() {
return this._googleCloudBuildRepo;
}
putGoogleCloudBuildRepo(value) {
this._googleCloudBuildRepo.internalValue = value;
}
resetGoogleCloudBuildRepo() {
this._googleCloudBuildRepo.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get googleCloudBuildRepoInput() {
return this._googleCloudBuildRepo.internalValue;
}
get googleCloudStorage() {
return this._googleCloudStorage;
}
putGoogleCloudStorage(value) {
this._googleCloudStorage.internalValue = value;
}
resetGoogleCloudStorage() {
this._googleCloudStorage.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get googleCloudStorageInput() {
return this._googleCloudStorage.internalValue;
}
}
exports.ClouddeployCustomTargetTypeCustomActionsIncludeSkaffoldModulesOutputReference = ClouddeployCustomTargetTypeCustomActionsIncludeSkaffoldModulesOutputReference;
_d = JSII_RTTI_SYMBOL_1;
ClouddeployCustomTargetTypeCustomActionsIncludeSkaffoldModulesOutputReference[_d] = { fqn: "@cdktf/provider-google.clouddeployCustomTargetType.ClouddeployCustomTargetTypeCustomActionsIncludeSkaffoldModulesOutputReference", version: "14.12.0" };
class ClouddeployCustomTargetTypeCustomActionsIncludeSkaffoldModulesList 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 ClouddeployCustomTargetTypeCustomActionsIncludeSkaffoldModulesOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.ClouddeployCustomTargetTypeCustomActionsIncludeSkaffoldModulesList = ClouddeployCustomTargetTypeCustomActionsIncludeSkaffoldModulesList;
_e = JSII_RTTI_SYMBOL_1;
ClouddeployCustomTargetTypeCustomActionsIncludeSkaffoldModulesList[_e] = { fqn: "@cdktf/provider-google.clouddeployCustomTargetType.ClouddeployCustomTargetTypeCustomActionsIncludeSkaffoldModulesList", version: "14.12.0" };
function clouddeployCustomTargetTypeCustomActionsToTerraform(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 {
deploy_action: cdktf.stringToTerraform(struct.deployAction),
render_action: cdktf.stringToTerraform(struct.renderAction),
include_skaffold_modules: cdktf.listMapper(clouddeployCustomTargetTypeCustomActionsIncludeSkaffoldModulesToTerraform, true)(struct.includeSkaffoldModules),
};
}
exports.clouddeployCustomTargetTypeCustomActionsToTerraform = clouddeployCustomTargetTypeCustomActionsToTerraform;
function clouddeployCustomTargetTypeCustomActionsToHclTerraform(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 = {
deploy_action: {
value: cdktf.stringToHclTerraform(struct.deployAction),
isBlock: false,
type: "simple",
storageClassType: "string",
},
render_action: {
value: cdktf.stringToHclTerraform(struct.renderAction),
isBlock: false,
type: "simple",
storageClassType: "string",
},
include_skaffold_modules: {
value: cdktf.listMapperHcl(clouddeployCustomTargetTypeCustomActionsIncludeSkaffoldModulesToHclTerraform, true)(struct.includeSkaffoldModules),
isBlock: true,
type: "list",
storageClassType: "ClouddeployCustomTargetTypeCustomActionsIncludeSkaffoldModulesList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.clouddeployCustomTargetTypeCustomActionsToHclTerraform = clouddeployCustomTargetTypeCustomActionsToHclTerraform;
class ClouddeployCustomTargetTypeCustomActionsOutputReference 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;
// include_skaffold_modules - computed: false, optional: true, required: false
this._includeSkaffoldModules = new ClouddeployCustomTargetTypeCustomActionsIncludeSkaffoldModulesList(this, "include_skaffold_modules", false);
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._deployAction !== undefined) {
hasAnyValues = true;
internalValueResult.deployAction = this._deployAction;
}
if (this._renderAction !== undefined) {
hasAnyValues = true;
internalValueResult.renderAction = this._renderAction;
}
if (this._includeSkaffoldModules?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.includeSkaffoldModules = this._includeSkaffoldModules?.internalValue;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._deployAction = undefined;
this._renderAction = undefined;
this._includeSkaffoldModules.internalValue = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._deployAction = value.deployAction;
this._renderAction = value.renderAction;
this._includeSkaffoldModules.internalValue = value.includeSkaffoldModules;
}
}
get deployAction() {
return this.getStringAttribute('deploy_action');
}
set deployAction(value) {
this._deployAction = value;
}
// Temporarily expose input value. Use with caution.
get deployActionInput() {
return this._deployAction;
}
get renderAction() {
return this.getStringAttribute('render_action');
}
set renderAction(value) {
this._renderAction = value;
}
resetRenderAction() {
this._renderAction = undefined;
}
// Temporarily expose input value. Use with caution.
get renderActionInput() {
return this._renderAction;
}
get includeSkaffoldModules() {
return this._includeSkaffoldModules;
}
putIncludeSkaffoldModules(value) {
this._includeSkaffoldModules.internalValue = value;
}
resetIncludeSkaffoldModules() {
this._includeSkaffoldModules.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get includeSkaffoldModulesInput() {
return this._includeSkaffoldModules.internalValue;
}
}
exports.ClouddeployCustomTargetTypeCustomActionsOutputReference = ClouddeployCustomTargetTypeCustomActionsOutputReference;
_f = JSII_RTTI_SYMBOL_1;
ClouddeployCustomTargetTypeCustomActionsOutputReference[_f] = { fqn: "@cdktf/provider-google.clouddeployCustomTargetType.ClouddeployCustomTargetTypeCustomActionsOutputReference", version: "14.12.0" };
function clouddeployCustomTargetTypeTimeoutsToTerraform(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.clouddeployCustomTargetTypeTimeoutsToTerraform = clouddeployCustomTargetTypeTimeoutsToTerraform;
function clouddeployCustomTargetTypeTimeoutsToHclTerraform(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.clouddeployCustomTargetTypeTimeoutsToHclTerraform = clouddeployCustomTargetTypeTimeoutsToHclTerraform;
class ClouddeployCustomTargetTypeTimeoutsOutputReference 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;
}
if (this._update !== undefined) {
hasAnyValues = true;
internalValueResult.update = this._update;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._create = undefined;
this._delete = undefined;
this._update = 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._create = value.create;
this._delete = value.delete;
this._update = value.update;
}
}
get create() {
return this.getStringAttribute('create');
}
set create(value) {
this._create = value;
}
resetCreate() {
this._create = undefined;
}
// Temporarily expose input value. Use with caution.
get createInput() {
return this._create;
}
get delete() {
return this.getStringAttribute('delete');
}
set delete(value) {
this._delete = value;
}
resetDelete() {
this._delete = undefined;
}
// Temporarily expose input value. Use with caution.
get deleteInput() {
return this._delete;
}
get update() {
return this.getStringAttribute('update');
}
set update(value) {
this._update = value;
}
resetUpdate() {
this._update = undefined;
}
// Temporarily expose input value. Use with caution.
get updateInput() {
return this._update;
}
}
exports.ClouddeployCustomTargetTypeTimeoutsOutputReference = ClouddeployCustomTargetTypeTimeoutsOutputReference;
_g = JSII_RTTI_SYMBOL_1;
ClouddeployCustomTargetTypeTimeoutsOutputReference[_g] = { fqn: "@cdktf/provider-google.clouddeployCustomTargetType.ClouddeployCustomTargetTypeTimeoutsOutputReference", version: "14.12.0" };
/**
* Represents a {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/clouddeploy_custom_target_type google_clouddeploy_custom_target_type}
*/
class ClouddeployCustomTargetType extends cdktf.TerraformResource {
// ==============
// STATIC Methods
// ==============
/**
* Generates CDKTF code for importing a ClouddeployCustomTargetType resource upon running "cdktf plan <stack-name>"
* @param scope The scope in which to define this construct
* @param importToId The construct id used in the generated config for the ClouddeployCustomTargetType to import
* @param importFromId The id of the existing ClouddeployCustomTargetType that should be imported. Refer to the {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/clouddeploy_custom_target_type#import import section} in the documentation of this resource for the id to use
* @param provider? Optional instance of the provider where the ClouddeployCustomTargetType to import is found
*/
static generateConfigForImport(scope, importToId, importFromId, provider) {
return new cdktf.ImportableResource(scope, importToId, { terraformResourceType: "google_clouddeploy_custom_target_type", importId: importFromId, provider });
}
// ===========
// INITIALIZER
// ===========
/**
* Create a new {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/clouddeploy_custom_target_type google_clouddeploy_custom_target_type} Resource
*
* @param scope The scope in which to define this construct
* @param id The scoped construct ID. Must be unique amongst siblings in the same scope
* @param options ClouddeployCustomTargetTypeConfig
*/
constructor(scope, id, config) {
super(scope, id, {
terraformResourceType: 'google_clouddeploy_custom_target_type',
terraformGeneratorMetadata: {
providerName: 'google',
providerVersion: '6.13.0',
providerVersionConstraint: '~> 6.0'
},
provider: config.provider,
dependsOn: config.dependsOn,
count: config.count,
lifecycle: config.lifecycle,
provisioners: config.provisioners,
connection: config.connection,
forEach: config.forEach
});
// effective_annotations - computed: true, optional: false, required: false
this._effectiveAnnotations = new cdktf.StringMap(this, "effective_annotations");
// effective_labels - computed: true, optional: false, required: false
this._effectiveLabels = new cdktf.StringMap(this, "effective_labels");
// terraform_labels - computed: true, optional: false, required: false
this._terraformLabels = new cdktf.StringMap(this, "terraform_labels");
// custom_actions - computed: false, optional: true, required: false
this._customActions = new ClouddeployCustomTargetTypeCustomActionsOutputReference(this, "custom_actions");
// timeouts - computed: false, optional: true, required: false
this._timeouts = new ClouddeployCustomTargetTypeTimeoutsOutputReference(this, "timeouts");
this._annotations = config.annotations;
this._description = config.description;
this._id = config.id;
this._labels = config.labels;
this._location = config.location;
this._name = config.name;
this._project = config.project;
this._customActions.internalValue = config.customActions;
this._timeouts.internalValue = config.timeouts;
}
get annotations() {
return this.getStringMapAttribute('annotations');
}
set annotations(value) {
this._annotations = value;
}
resetAnnotations() {
this._annotations = undefined;
}
// Temporarily expose input value. Use with caution.
get annotationsInput() {
return this._annotations;
}
// create_time - computed: true, optional: false, required: false
get createTime() {
return this.getStringAttribute('create_time');
}
// custom_target_type_id - computed: true, optional: false, required: false
get customTargetTypeId() {
return this.getStringAttribute('custom_target_type_id');
}
get description() {
return this.getStringAttribute('description');
}
set description(value) {
this._description = value;
}
resetDescription() {
this._description = undefined;
}
// Temporarily expose input value. Use with caution.
get descriptionInput() {
return this._description;
}
get effectiveAnnotations() {
return this._effectiveAnnotations;
}
get effectiveLabels() {
return this._effectiveLabels;
}
// etag - computed: true, optional: false, required: false
get etag() {
return this.getStringAttribute('etag');
}
get id() {
return this.getStringAttribute('id');
}
set id(value) {
this._id = value;
}
resetId() {
this._id = undefined;
}
// Temporarily expose input value. Use with caution.
get idInput() {
return this._id;
}
get labels() {
return this.getStringMapAttribute('labels');
}
set labels(value) {
this._labels = value;
}
resetLabels() {
this._labels = undefined;
}
// Temporarily expose input value. Use with caution.
get labelsInput() {
return this._labels;
}
get location() {
return this.getStringAttribute('location');
}
set location(value) {
this._location = value;
}
// Temporarily expose input value. Use with caution.
get locationInput() {
return this._location;
}
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 project() {
return this.getStringAttribute('project');
}
set project(value) {
this._project = value;
}
resetProject() {
this._project = undefined;
}
// Temporarily expose input value. Use with caution.
get projectInput() {
return this._project;
}
get terraformLabels() {
return this._terraformLabels;
}
// uid - computed: true, optional: false, required: false
get uid() {
return this.getStringAttribute('uid');
}
// update_time - computed: true, optional: false, required: false
get updateTime() {
return this.getStringAttribute('update_time');
}
get customActions() {
return this._customActions;
}
putCustomActions(value) {
this._customActions.internalValue = value;
}
resetCustomActions() {
this._customActions.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get customActionsInput() {
return this._customActions.internalValue;
}
get timeouts() {
return this._timeouts;
}
putTimeouts(value) {
this._timeouts.internalValue = value;
}
resetTimeouts() {
this._timeouts.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get timeoutsInput() {
return this._timeouts.internalValue;
}
// =========
// SYNTHESIS
// =========
synthesizeAttributes() {
return {
annotations: cdktf.hashMapper(cdktf.stringToTerraform)(this._annotations),
description: cdktf.stringToTerraform(this._description),
id: cdktf.stringToTerraform(this._id),
labels: cdktf.hashMapper(cdktf.stringToTerraform)(this._labels),
location: cdktf.stringToTerraform(this._location),
name: cdktf.stringToTerraform(this._name),
project: cdktf.stringToTerraform(this._project),
custom_actions: clouddeployCustomTargetTypeCustomActionsToTerraform(this._customActions.internalValue),
timeouts: clouddeployCustomTargetTypeTimeoutsToTerraform(this._timeouts.internalValue),
};
}
synthesizeHclAttributes() {
const attrs = {
annotations: {
value: cdktf.hashMapperHcl(cdktf.stringToHclTerraform)(this._annotations),
isBlock: false,
type: "map",
storageClassType: "stringMap",
},
description: {
value: cdktf.stringToHclTerraform(this._description),
isBlock: false,
type: "simple",
storageClassType: "string",
},
id: {
value: cdktf.stringToHclTerraform(this._id),
isBlock: false,
type: "simple",
storageClassType: "string",
},
labels: {
value: cdktf.hashMapperHcl(cdktf.stringToHclTerraform)(this._labels),
isBlock: false,
type: "map",
storageClassType: "stringMap",
},
location: {
value: cdktf.stringToHclTerraform(this._location),
isBlock: false,
type: "simple",
storageClassType: "string",
},
name: {
value: cdktf.stringToHclTerraform(this._name),
isBlock: false,
type: "simple",
storageClassType: "string",
},
project: {
value: cdktf.stringToHclTerraform(this._project),
isBlock: false,
type: "simple",
storageClassType: "string",
},
custom_actions: {
value: clouddeployCustomTargetTypeCustomActionsToHclTerraform(this._customActions.internalValue),
isBlock: true,
type: "list",
storageClassType: "ClouddeployCustomTargetTypeCustomActionsList",
},
timeouts: {
value: clouddeployCustomTargetTypeTimeoutsToHclTerraform(this._timeouts.internalValue),
isBlock: true,
type: "struct",
storageClassType: "ClouddeployCustomTargetTypeTimeouts",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
}
exports.ClouddeployCustomTargetType = ClouddeployCustomTargetType;
_h = JSII_RTTI_SYMBOL_1;
ClouddeployCustomTargetType[_h] = { fqn: "@cdktf/provider-google.clouddeployCustomTargetType.ClouddeployCustomTargetType", version: "14.12.0" };
// =================
// STATIC PROPERTIES
// =================
Cl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