@cdktf/provider-google
Version:
Prebuilt google Provider for Terraform CDK (cdktf)
1,208 lines • 184 kB
JavaScript
"use strict";
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
Object.defineProperty(exports, "__esModule", { value: true });
exports.StorageBatchOperationsJob = exports.StorageBatchOperationsJobTimeoutsOutputReference = exports.StorageBatchOperationsJobRewriteObjectOutputReference = exports.StorageBatchOperationsJobPutObjectHoldOutputReference = exports.StorageBatchOperationsJobPutMetadataOutputReference = exports.StorageBatchOperationsJobDeleteObjectOutputReference = exports.StorageBatchOperationsJobBucketListStructOutputReference = exports.StorageBatchOperationsJobBucketListBucketsOutputReference = exports.StorageBatchOperationsJobBucketListBucketsPrefixListStructOutputReference = exports.StorageBatchOperationsJobBucketListBucketsManifestOutputReference = void 0;
exports.storageBatchOperationsJobBucketListBucketsManifestToTerraform = storageBatchOperationsJobBucketListBucketsManifestToTerraform;
exports.storageBatchOperationsJobBucketListBucketsManifestToHclTerraform = storageBatchOperationsJobBucketListBucketsManifestToHclTerraform;
exports.storageBatchOperationsJobBucketListBucketsPrefixListStructToTerraform = storageBatchOperationsJobBucketListBucketsPrefixListStructToTerraform;
exports.storageBatchOperationsJobBucketListBucketsPrefixListStructToHclTerraform = storageBatchOperationsJobBucketListBucketsPrefixListStructToHclTerraform;
exports.storageBatchOperationsJobBucketListBucketsToTerraform = storageBatchOperationsJobBucketListBucketsToTerraform;
exports.storageBatchOperationsJobBucketListBucketsToHclTerraform = storageBatchOperationsJobBucketListBucketsToHclTerraform;
exports.storageBatchOperationsJobBucketListStructToTerraform = storageBatchOperationsJobBucketListStructToTerraform;
exports.storageBatchOperationsJobBucketListStructToHclTerraform = storageBatchOperationsJobBucketListStructToHclTerraform;
exports.storageBatchOperationsJobDeleteObjectToTerraform = storageBatchOperationsJobDeleteObjectToTerraform;
exports.storageBatchOperationsJobDeleteObjectToHclTerraform = storageBatchOperationsJobDeleteObjectToHclTerraform;
exports.storageBatchOperationsJobPutMetadataToTerraform = storageBatchOperationsJobPutMetadataToTerraform;
exports.storageBatchOperationsJobPutMetadataToHclTerraform = storageBatchOperationsJobPutMetadataToHclTerraform;
exports.storageBatchOperationsJobPutObjectHoldToTerraform = storageBatchOperationsJobPutObjectHoldToTerraform;
exports.storageBatchOperationsJobPutObjectHoldToHclTerraform = storageBatchOperationsJobPutObjectHoldToHclTerraform;
exports.storageBatchOperationsJobRewriteObjectToTerraform = storageBatchOperationsJobRewriteObjectToTerraform;
exports.storageBatchOperationsJobRewriteObjectToHclTerraform = storageBatchOperationsJobRewriteObjectToHclTerraform;
exports.storageBatchOperationsJobTimeoutsToTerraform = storageBatchOperationsJobTimeoutsToTerraform;
exports.storageBatchOperationsJobTimeoutsToHclTerraform = storageBatchOperationsJobTimeoutsToHclTerraform;
const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
const cdktf = require("cdktf");
function storageBatchOperationsJobBucketListBucketsManifestToTerraform(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 {
manifest_location: cdktf.stringToTerraform(struct.manifestLocation),
};
}
function storageBatchOperationsJobBucketListBucketsManifestToHclTerraform(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 = {
manifest_location: {
value: cdktf.stringToHclTerraform(struct.manifestLocation),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class StorageBatchOperationsJobBucketListBucketsManifestOutputReference 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._manifestLocation !== undefined) {
hasAnyValues = true;
internalValueResult.manifestLocation = this._manifestLocation;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._manifestLocation = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._manifestLocation = value.manifestLocation;
}
}
get manifestLocation() {
return this.getStringAttribute('manifest_location');
}
set manifestLocation(value) {
this._manifestLocation = value;
}
resetManifestLocation() {
this._manifestLocation = undefined;
}
// Temporarily expose input value. Use with caution.
get manifestLocationInput() {
return this._manifestLocation;
}
}
exports.StorageBatchOperationsJobBucketListBucketsManifestOutputReference = StorageBatchOperationsJobBucketListBucketsManifestOutputReference;
_a = JSII_RTTI_SYMBOL_1;
StorageBatchOperationsJobBucketListBucketsManifestOutputReference[_a] = { fqn: "@cdktf/provider-google.storageBatchOperationsJob.StorageBatchOperationsJobBucketListBucketsManifestOutputReference", version: "14.35.1" };
function storageBatchOperationsJobBucketListBucketsPrefixListStructToTerraform(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 {
included_object_prefixes: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.includedObjectPrefixes),
};
}
function storageBatchOperationsJobBucketListBucketsPrefixListStructToHclTerraform(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 = {
included_object_prefixes: {
value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.includedObjectPrefixes),
isBlock: false,
type: "list",
storageClassType: "stringList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class StorageBatchOperationsJobBucketListBucketsPrefixListStructOutputReference 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._includedObjectPrefixes !== undefined) {
hasAnyValues = true;
internalValueResult.includedObjectPrefixes = this._includedObjectPrefixes;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._includedObjectPrefixes = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._includedObjectPrefixes = value.includedObjectPrefixes;
}
}
get includedObjectPrefixes() {
return this.getListAttribute('included_object_prefixes');
}
set includedObjectPrefixes(value) {
this._includedObjectPrefixes = value;
}
resetIncludedObjectPrefixes() {
this._includedObjectPrefixes = undefined;
}
// Temporarily expose input value. Use with caution.
get includedObjectPrefixesInput() {
return this._includedObjectPrefixes;
}
}
exports.StorageBatchOperationsJobBucketListBucketsPrefixListStructOutputReference = StorageBatchOperationsJobBucketListBucketsPrefixListStructOutputReference;
_b = JSII_RTTI_SYMBOL_1;
StorageBatchOperationsJobBucketListBucketsPrefixListStructOutputReference[_b] = { fqn: "@cdktf/provider-google.storageBatchOperationsJob.StorageBatchOperationsJobBucketListBucketsPrefixListStructOutputReference", version: "14.35.1" };
function storageBatchOperationsJobBucketListBucketsToTerraform(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 {
bucket: cdktf.stringToTerraform(struct.bucket),
manifest: storageBatchOperationsJobBucketListBucketsManifestToTerraform(struct.manifest),
prefix_list: storageBatchOperationsJobBucketListBucketsPrefixListStructToTerraform(struct.prefixList),
};
}
function storageBatchOperationsJobBucketListBucketsToHclTerraform(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 = {
bucket: {
value: cdktf.stringToHclTerraform(struct.bucket),
isBlock: false,
type: "simple",
storageClassType: "string",
},
manifest: {
value: storageBatchOperationsJobBucketListBucketsManifestToHclTerraform(struct.manifest),
isBlock: true,
type: "list",
storageClassType: "StorageBatchOperationsJobBucketListBucketsManifestList",
},
prefix_list: {
value: storageBatchOperationsJobBucketListBucketsPrefixListStructToHclTerraform(struct.prefixList),
isBlock: true,
type: "list",
storageClassType: "StorageBatchOperationsJobBucketListBucketsPrefixListStructList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class StorageBatchOperationsJobBucketListBucketsOutputReference 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;
// manifest - computed: false, optional: true, required: false
this._manifest = new StorageBatchOperationsJobBucketListBucketsManifestOutputReference(this, "manifest");
// prefix_list - computed: false, optional: true, required: false
this._prefixList = new StorageBatchOperationsJobBucketListBucketsPrefixListStructOutputReference(this, "prefix_list");
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._bucket !== undefined) {
hasAnyValues = true;
internalValueResult.bucket = this._bucket;
}
if (this._manifest?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.manifest = this._manifest?.internalValue;
}
if (this._prefixList?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.prefixList = this._prefixList?.internalValue;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._bucket = undefined;
this._manifest.internalValue = undefined;
this._prefixList.internalValue = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._bucket = value.bucket;
this._manifest.internalValue = value.manifest;
this._prefixList.internalValue = value.prefixList;
}
}
get bucket() {
return this.getStringAttribute('bucket');
}
set bucket(value) {
this._bucket = value;
}
// Temporarily expose input value. Use with caution.
get bucketInput() {
return this._bucket;
}
get manifest() {
return this._manifest;
}
putManifest(value) {
this._manifest.internalValue = value;
}
resetManifest() {
this._manifest.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get manifestInput() {
return this._manifest.internalValue;
}
get prefixList() {
return this._prefixList;
}
putPrefixList(value) {
this._prefixList.internalValue = value;
}
resetPrefixList() {
this._prefixList.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get prefixListInput() {
return this._prefixList.internalValue;
}
}
exports.StorageBatchOperationsJobBucketListBucketsOutputReference = StorageBatchOperationsJobBucketListBucketsOutputReference;
_c = JSII_RTTI_SYMBOL_1;
StorageBatchOperationsJobBucketListBucketsOutputReference[_c] = { fqn: "@cdktf/provider-google.storageBatchOperationsJob.StorageBatchOperationsJobBucketListBucketsOutputReference", version: "14.35.1" };
function storageBatchOperationsJobBucketListStructToTerraform(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 {
buckets: storageBatchOperationsJobBucketListBucketsToTerraform(struct.buckets),
};
}
function storageBatchOperationsJobBucketListStructToHclTerraform(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 = {
buckets: {
value: storageBatchOperationsJobBucketListBucketsToHclTerraform(struct.buckets),
isBlock: true,
type: "list",
storageClassType: "StorageBatchOperationsJobBucketListBucketsList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class StorageBatchOperationsJobBucketListStructOutputReference 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;
// buckets - computed: false, optional: false, required: true
this._buckets = new StorageBatchOperationsJobBucketListBucketsOutputReference(this, "buckets");
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._buckets?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.buckets = this._buckets?.internalValue;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._buckets.internalValue = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._buckets.internalValue = value.buckets;
}
}
get buckets() {
return this._buckets;
}
putBuckets(value) {
this._buckets.internalValue = value;
}
// Temporarily expose input value. Use with caution.
get bucketsInput() {
return this._buckets.internalValue;
}
}
exports.StorageBatchOperationsJobBucketListStructOutputReference = StorageBatchOperationsJobBucketListStructOutputReference;
_d = JSII_RTTI_SYMBOL_1;
StorageBatchOperationsJobBucketListStructOutputReference[_d] = { fqn: "@cdktf/provider-google.storageBatchOperationsJob.StorageBatchOperationsJobBucketListStructOutputReference", version: "14.35.1" };
function storageBatchOperationsJobDeleteObjectToTerraform(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 {
permanent_object_deletion_enabled: cdktf.booleanToTerraform(struct.permanentObjectDeletionEnabled),
};
}
function storageBatchOperationsJobDeleteObjectToHclTerraform(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 = {
permanent_object_deletion_enabled: {
value: cdktf.booleanToHclTerraform(struct.permanentObjectDeletionEnabled),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class StorageBatchOperationsJobDeleteObjectOutputReference 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._permanentObjectDeletionEnabled !== undefined) {
hasAnyValues = true;
internalValueResult.permanentObjectDeletionEnabled = this._permanentObjectDeletionEnabled;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._permanentObjectDeletionEnabled = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._permanentObjectDeletionEnabled = value.permanentObjectDeletionEnabled;
}
}
get permanentObjectDeletionEnabled() {
return this.getBooleanAttribute('permanent_object_deletion_enabled');
}
set permanentObjectDeletionEnabled(value) {
this._permanentObjectDeletionEnabled = value;
}
// Temporarily expose input value. Use with caution.
get permanentObjectDeletionEnabledInput() {
return this._permanentObjectDeletionEnabled;
}
}
exports.StorageBatchOperationsJobDeleteObjectOutputReference = StorageBatchOperationsJobDeleteObjectOutputReference;
_e = JSII_RTTI_SYMBOL_1;
StorageBatchOperationsJobDeleteObjectOutputReference[_e] = { fqn: "@cdktf/provider-google.storageBatchOperationsJob.StorageBatchOperationsJobDeleteObjectOutputReference", version: "14.35.1" };
function storageBatchOperationsJobPutMetadataToTerraform(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 {
cache_control: cdktf.stringToTerraform(struct.cacheControl),
content_disposition: cdktf.stringToTerraform(struct.contentDisposition),
content_encoding: cdktf.stringToTerraform(struct.contentEncoding),
content_language: cdktf.stringToTerraform(struct.contentLanguage),
content_type: cdktf.stringToTerraform(struct.contentType),
custom_metadata: cdktf.hashMapper(cdktf.stringToTerraform)(struct.customMetadata),
custom_time: cdktf.stringToTerraform(struct.customTime),
};
}
function storageBatchOperationsJobPutMetadataToHclTerraform(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 = {
cache_control: {
value: cdktf.stringToHclTerraform(struct.cacheControl),
isBlock: false,
type: "simple",
storageClassType: "string",
},
content_disposition: {
value: cdktf.stringToHclTerraform(struct.contentDisposition),
isBlock: false,
type: "simple",
storageClassType: "string",
},
content_encoding: {
value: cdktf.stringToHclTerraform(struct.contentEncoding),
isBlock: false,
type: "simple",
storageClassType: "string",
},
content_language: {
value: cdktf.stringToHclTerraform(struct.contentLanguage),
isBlock: false,
type: "simple",
storageClassType: "string",
},
content_type: {
value: cdktf.stringToHclTerraform(struct.contentType),
isBlock: false,
type: "simple",
storageClassType: "string",
},
custom_metadata: {
value: cdktf.hashMapperHcl(cdktf.stringToHclTerraform)(struct.customMetadata),
isBlock: false,
type: "map",
storageClassType: "stringMap",
},
custom_time: {
value: cdktf.stringToHclTerraform(struct.customTime),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class StorageBatchOperationsJobPutMetadataOutputReference 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._cacheControl !== undefined) {
hasAnyValues = true;
internalValueResult.cacheControl = this._cacheControl;
}
if (this._contentDisposition !== undefined) {
hasAnyValues = true;
internalValueResult.contentDisposition = this._contentDisposition;
}
if (this._contentEncoding !== undefined) {
hasAnyValues = true;
internalValueResult.contentEncoding = this._contentEncoding;
}
if (this._contentLanguage !== undefined) {
hasAnyValues = true;
internalValueResult.contentLanguage = this._contentLanguage;
}
if (this._contentType !== undefined) {
hasAnyValues = true;
internalValueResult.contentType = this._contentType;
}
if (this._customMetadata !== undefined) {
hasAnyValues = true;
internalValueResult.customMetadata = this._customMetadata;
}
if (this._customTime !== undefined) {
hasAnyValues = true;
internalValueResult.customTime = this._customTime;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._cacheControl = undefined;
this._contentDisposition = undefined;
this._contentEncoding = undefined;
this._contentLanguage = undefined;
this._contentType = undefined;
this._customMetadata = undefined;
this._customTime = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._cacheControl = value.cacheControl;
this._contentDisposition = value.contentDisposition;
this._contentEncoding = value.contentEncoding;
this._contentLanguage = value.contentLanguage;
this._contentType = value.contentType;
this._customMetadata = value.customMetadata;
this._customTime = value.customTime;
}
}
get cacheControl() {
return this.getStringAttribute('cache_control');
}
set cacheControl(value) {
this._cacheControl = value;
}
resetCacheControl() {
this._cacheControl = undefined;
}
// Temporarily expose input value. Use with caution.
get cacheControlInput() {
return this._cacheControl;
}
get contentDisposition() {
return this.getStringAttribute('content_disposition');
}
set contentDisposition(value) {
this._contentDisposition = value;
}
resetContentDisposition() {
this._contentDisposition = undefined;
}
// Temporarily expose input value. Use with caution.
get contentDispositionInput() {
return this._contentDisposition;
}
get contentEncoding() {
return this.getStringAttribute('content_encoding');
}
set contentEncoding(value) {
this._contentEncoding = value;
}
resetContentEncoding() {
this._contentEncoding = undefined;
}
// Temporarily expose input value. Use with caution.
get contentEncodingInput() {
return this._contentEncoding;
}
get contentLanguage() {
return this.getStringAttribute('content_language');
}
set contentLanguage(value) {
this._contentLanguage = value;
}
resetContentLanguage() {
this._contentLanguage = undefined;
}
// Temporarily expose input value. Use with caution.
get contentLanguageInput() {
return this._contentLanguage;
}
get contentType() {
return this.getStringAttribute('content_type');
}
set contentType(value) {
this._contentType = value;
}
resetContentType() {
this._contentType = undefined;
}
// Temporarily expose input value. Use with caution.
get contentTypeInput() {
return this._contentType;
}
get customMetadata() {
return this.getStringMapAttribute('custom_metadata');
}
set customMetadata(value) {
this._customMetadata = value;
}
resetCustomMetadata() {
this._customMetadata = undefined;
}
// Temporarily expose input value. Use with caution.
get customMetadataInput() {
return this._customMetadata;
}
get customTime() {
return this.getStringAttribute('custom_time');
}
set customTime(value) {
this._customTime = value;
}
resetCustomTime() {
this._customTime = undefined;
}
// Temporarily expose input value. Use with caution.
get customTimeInput() {
return this._customTime;
}
}
exports.StorageBatchOperationsJobPutMetadataOutputReference = StorageBatchOperationsJobPutMetadataOutputReference;
_f = JSII_RTTI_SYMBOL_1;
StorageBatchOperationsJobPutMetadataOutputReference[_f] = { fqn: "@cdktf/provider-google.storageBatchOperationsJob.StorageBatchOperationsJobPutMetadataOutputReference", version: "14.35.1" };
function storageBatchOperationsJobPutObjectHoldToTerraform(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 {
event_based_hold: cdktf.stringToTerraform(struct.eventBasedHold),
temporary_hold: cdktf.stringToTerraform(struct.temporaryHold),
};
}
function storageBatchOperationsJobPutObjectHoldToHclTerraform(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 = {
event_based_hold: {
value: cdktf.stringToHclTerraform(struct.eventBasedHold),
isBlock: false,
type: "simple",
storageClassType: "string",
},
temporary_hold: {
value: cdktf.stringToHclTerraform(struct.temporaryHold),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class StorageBatchOperationsJobPutObjectHoldOutputReference 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._eventBasedHold !== undefined) {
hasAnyValues = true;
internalValueResult.eventBasedHold = this._eventBasedHold;
}
if (this._temporaryHold !== undefined) {
hasAnyValues = true;
internalValueResult.temporaryHold = this._temporaryHold;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._eventBasedHold = undefined;
this._temporaryHold = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._eventBasedHold = value.eventBasedHold;
this._temporaryHold = value.temporaryHold;
}
}
get eventBasedHold() {
return this.getStringAttribute('event_based_hold');
}
set eventBasedHold(value) {
this._eventBasedHold = value;
}
resetEventBasedHold() {
this._eventBasedHold = undefined;
}
// Temporarily expose input value. Use with caution.
get eventBasedHoldInput() {
return this._eventBasedHold;
}
get temporaryHold() {
return this.getStringAttribute('temporary_hold');
}
set temporaryHold(value) {
this._temporaryHold = value;
}
resetTemporaryHold() {
this._temporaryHold = undefined;
}
// Temporarily expose input value. Use with caution.
get temporaryHoldInput() {
return this._temporaryHold;
}
}
exports.StorageBatchOperationsJobPutObjectHoldOutputReference = StorageBatchOperationsJobPutObjectHoldOutputReference;
_g = JSII_RTTI_SYMBOL_1;
StorageBatchOperationsJobPutObjectHoldOutputReference[_g] = { fqn: "@cdktf/provider-google.storageBatchOperationsJob.StorageBatchOperationsJobPutObjectHoldOutputReference", version: "14.35.1" };
function storageBatchOperationsJobRewriteObjectToTerraform(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 {
kms_key: cdktf.stringToTerraform(struct.kmsKey),
};
}
function storageBatchOperationsJobRewriteObjectToHclTerraform(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 = {
kms_key: {
value: cdktf.stringToHclTerraform(struct.kmsKey),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class StorageBatchOperationsJobRewriteObjectOutputReference 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._kmsKey !== undefined) {
hasAnyValues = true;
internalValueResult.kmsKey = this._kmsKey;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._kmsKey = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._kmsKey = value.kmsKey;
}
}
get kmsKey() {
return this.getStringAttribute('kms_key');
}
set kmsKey(value) {
this._kmsKey = value;
}
// Temporarily expose input value. Use with caution.
get kmsKeyInput() {
return this._kmsKey;
}
}
exports.StorageBatchOperationsJobRewriteObjectOutputReference = StorageBatchOperationsJobRewriteObjectOutputReference;
_h = JSII_RTTI_SYMBOL_1;
StorageBatchOperationsJobRewriteObjectOutputReference[_h] = { fqn: "@cdktf/provider-google.storageBatchOperationsJob.StorageBatchOperationsJobRewriteObjectOutputReference", version: "14.35.1" };
function storageBatchOperationsJobTimeoutsToTerraform(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),
};
}
function storageBatchOperationsJobTimeoutsToHclTerraform(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));
}
class StorageBatchOperationsJobTimeoutsOutputReference 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.StorageBatchOperationsJobTimeoutsOutputReference = StorageBatchOperationsJobTimeoutsOutputReference;
_j = JSII_RTTI_SYMBOL_1;
StorageBatchOperationsJobTimeoutsOutputReference[_j] = { fqn: "@cdktf/provider-google.storageBatchOperationsJob.StorageBatchOperationsJobTimeoutsOutputReference", version: "14.35.1" };
/**
* Represents a {@link https://registry.terraform.io/providers/hashicorp/google/6.36.1/docs/resources/storage_batch_operations_job google_storage_batch_operations_job}
*/
class StorageBatchOperationsJob extends cdktf.TerraformResource {
// ==============
// STATIC Methods
// ==============
/**
* Generates CDKTF code for importing a StorageBatchOperationsJob 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 StorageBatchOperationsJob to import
* @param importFromId The id of the existing StorageBatchOperationsJob that should be imported. Refer to the {@link https://registry.terraform.io/providers/hashicorp/google/6.36.1/docs/resources/storage_batch_operations_job#import import section} in the documentation of this resource for the id to use
* @param provider? Optional instance of the provider where the StorageBatchOperationsJob to import is found
*/
static generateConfigForImport(scope, importToId, importFromId, provider) {
return new cdktf.ImportableResource(scope, importToId, { terraformResourceType: "google_storage_batch_operations_job", importId: importFromId, provider });
}
// ===========
// INITIALIZER
// ===========
/**
* Create a new {@link https://registry.terraform.io/providers/hashicorp/google/6.36.1/docs/resources/storage_batch_operations_job google_storage_batch_operations_job} 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 StorageBatchOperationsJobConfig = {}
*/
constructor(scope, id, config = {}) {
super(scope, id, {
terraformResourceType: 'google_storage_batch_operations_job',
terraformGeneratorMetadata: {
providerName: 'google',
providerVersion: '6.36.1',
providerVersionConstraint: '~> 6.0'
},
provider: config.provider,
dependsOn: config.dependsOn,
count: config.count,
lifecycle: config.lifecycle,
provisioners: config.provisioners,
connection: config.connection,
forEach: config.forEach
});
// bucket_list - computed: false, optional: true, required: false
this._bucketList = new StorageBatchOperationsJobBucketListStructOutputReference(this, "bucket_list");
// delete_object - computed: false, optional: true, required: false
this._deleteObject = new StorageBatchOperationsJobDeleteObjectOutputReference(this, "delete_object");
// put_metadata - computed: false, optional: true, required: false
this._putMetadata = new StorageBatchOperationsJobPutMetadataOutputReference(this, "put_metadata");
// put_object_hold - computed: false, optional: true, required: false
this._putObjectHold = new StorageBatchOperationsJobPutObjectHoldOutputReference(this, "put_object_hold");
// rewrite_object - computed: false, optional: true, required: false
this._rewriteObject = new StorageBatchOperationsJobRewriteObjectOutputReference(this, "rewrite_object");
// timeouts - computed: false, optional: true, required: false
this._timeouts = new StorageBatchOperationsJobTimeoutsOutputReference(this, "timeouts");
this._deleteProtection = config.deleteProtection;
this._id = config.id;
this._jobId = config.jobId;
this._project = config.project;
this._bucketList.internalValue = config.bucketList;
this._deleteObject.internalValue = config.deleteObject;
this._putMetadata.internalValue = config.putMetadata;
this._putObjectHold.internalValue = config.putObjectHold;
this._rewriteObject.internalValue = config.rewriteObject;
this._timeouts.internalValue = config.timeouts;
}
// ==========
// ATTRIBUTES
// ==========
// complete_time - computed: true, optional: false, required: false
get completeTime() {
return this.getStringAttribute('complete_time');
}
// create_time - computed: true, optional: false, required: false
get createTime() {
return this.getStringAttribute('create_time');
}
get deleteProtection() {
return this.getBooleanAttribute('delete_protection');
}
set deleteProtection(value) {
this._deleteProtection = value;
}
resetDeleteProtection() {
this._deleteProtection = undefined;
}
// Temporarily expose input value. Use with caution.
get deleteProtectionInput() {
return this._deleteProtection;
}
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 jobId() {
return this.getStringAttribute('job_id');
}
set jobId(value) {
this._jobId = value;
}
resetJobId() {
this._jobId = undefined;
}
// Temporarily expose input value. Use with caution.
get jobIdInput() {
return this._jobId;
}
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;
}
// schedule_time - computed: true, optional: false, required: false
get scheduleTime() {
return this.getStringAttribute('schedule_time');
}
// state - computed: true, optional: false, required: false
get state() {
return this.getStringAttribute('state');
}
// update_time - computed: true, optional: false, required: false
get updateTime() {
return this.getStringAttribute('update_time');
}
get bucketList() {
return this._bucketList;
}
putBucketList(value) {
this._bucketList.internalValue = value;
}
resetBucketList() {
this._bucketList.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get bucketListInput() {
return this._bucketList.internalValue;
}
get deleteObject() {
return this._deleteObject;
}
putDeleteObject(value) {
this._deleteObject.internalValue = value;
}
resetDeleteObject() {
this._deleteObject.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get deleteObjectInput() {
return this._deleteObject.internalValue;
}
get putMetadata() {
return this._putMetadata;
}
putPutMetadata(value) {
this._putMetadata.internalValue = value;
}
resetPutMetadata() {
this._putMetadata.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get putMetadataInput() {
return this._putMetadata.internalValue;
}
get putObjectHold() {
return this._putObjectHold;
}
putPutObjectHold(value) {
this._putObjectHold.internalValue = value;
}
resetPutObjectHold() {
this._putObjectHold.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get putObjectHoldInput() {
return this._putObjectHold.internalValue;
}
get rewriteObject() {
return this._rewriteObject;
}
putRewriteObject(value) {
this._rewriteObject.internalValue = value;
}
resetRewriteObject() {
this._rewriteObject.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get rewriteObjectInput() {
return this._rewriteObject.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 {
delete_protection: cdktf.booleanToTerraform(this._deleteProtection),
id: cdktf.stringToTerraform(this._id),
job_id: cdktf.stringToTerraform(this._jobId),
project: cdktf.stringToTerraform(this._project),
bucket_list: storageBatchOperationsJob