Documentation ¶
Index ¶
- func NewStorageBucketObjectCustomerEncryptionOutputReference_Override(s StorageBucketObjectCustomerEncryptionOutputReference, ...)
- func NewStorageBucketObjectTimeoutsOutputReference_Override(s StorageBucketObjectTimeoutsOutputReference, ...)
- func NewStorageBucketObject_Override(s StorageBucketObject, scope constructs.Construct, id *string, ...)
- func StorageBucketObject_IsConstruct(x interface{}) *bool
- func StorageBucketObject_IsTerraformElement(x interface{}) *bool
- func StorageBucketObject_IsTerraformResource(x interface{}) *bool
- func StorageBucketObject_TfResourceType() *string
- type StorageBucketObject
- type StorageBucketObjectConfig
- type StorageBucketObjectCustomerEncryption
- type StorageBucketObjectCustomerEncryptionOutputReference
- type StorageBucketObjectTimeouts
- type StorageBucketObjectTimeoutsOutputReference
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewStorageBucketObjectCustomerEncryptionOutputReference_Override ¶
func NewStorageBucketObjectCustomerEncryptionOutputReference_Override(s StorageBucketObjectCustomerEncryptionOutputReference, terraformResource cdktf.IInterpolatingParent, terraformAttribute *string)
func NewStorageBucketObjectTimeoutsOutputReference_Override ¶
func NewStorageBucketObjectTimeoutsOutputReference_Override(s StorageBucketObjectTimeoutsOutputReference, terraformResource cdktf.IInterpolatingParent, terraformAttribute *string)
func NewStorageBucketObject_Override ¶
func NewStorageBucketObject_Override(s StorageBucketObject, scope constructs.Construct, id *string, config *StorageBucketObjectConfig)
Create a new {@link https://registry.terraform.io/providers/hashicorp/google/4.79.0/docs/resources/storage_bucket_object google_storage_bucket_object} Resource.
func StorageBucketObject_IsConstruct ¶
func StorageBucketObject_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Use this method instead of `instanceof` to properly detect `Construct` instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the `constructs` library on disk are seen as independent, completely different libraries. As a consequence, the class `Construct` in each copy of the `constructs` library is seen as a different class, and an instance of one class will not test as `instanceof` the other class. `npm install` will not create installations like this, but users may manually symlink construct libraries together or use a monorepo tool: in those cases, multiple copies of the `constructs` library can be accidentally installed, and `instanceof` will behave unpredictably. It is safest to avoid using `instanceof`, and using this type-testing method instead.
Returns: true if `x` is an object created from a class which extends `Construct`.
func StorageBucketObject_IsTerraformElement ¶
func StorageBucketObject_IsTerraformElement(x interface{}) *bool
Experimental.
func StorageBucketObject_IsTerraformResource ¶
func StorageBucketObject_IsTerraformResource(x interface{}) *bool
Experimental.
func StorageBucketObject_TfResourceType ¶
func StorageBucketObject_TfResourceType() *string
Types ¶
type StorageBucketObject ¶
type StorageBucketObject interface { cdktf.TerraformResource Bucket() *string SetBucket(val *string) BucketInput() *string CacheControl() *string SetCacheControl(val *string) CacheControlInput() *string // Experimental. CdktfStack() cdktf.TerraformStack // Experimental. Connection() interface{} // Experimental. SetConnection(val interface{}) // Experimental. ConstructNodeMetadata() *map[string]interface{} Content() *string SetContent(val *string) ContentDisposition() *string SetContentDisposition(val *string) ContentDispositionInput() *string ContentEncoding() *string SetContentEncoding(val *string) ContentEncodingInput() *string ContentInput() *string ContentLanguage() *string SetContentLanguage(val *string) ContentLanguageInput() *string ContentType() *string SetContentType(val *string) ContentTypeInput() *string // Experimental. Count() interface{} // Experimental. SetCount(val interface{}) Crc32C() *string CustomerEncryption() StorageBucketObjectCustomerEncryptionOutputReference CustomerEncryptionInput() *StorageBucketObjectCustomerEncryption // Experimental. DependsOn() *[]*string // Experimental. SetDependsOn(val *[]*string) DetectMd5Hash() *string SetDetectMd5Hash(val *string) DetectMd5HashInput() *string EventBasedHold() interface{} SetEventBasedHold(val interface{}) EventBasedHoldInput() interface{} // Experimental. ForEach() cdktf.ITerraformIterator // Experimental. SetForEach(val cdktf.ITerraformIterator) // Experimental. Fqn() *string // Experimental. FriendlyUniqueId() *string Id() *string SetId(val *string) IdInput() *string KmsKeyName() *string SetKmsKeyName(val *string) KmsKeyNameInput() *string // Experimental. Lifecycle() *cdktf.TerraformResourceLifecycle // Experimental. SetLifecycle(val *cdktf.TerraformResourceLifecycle) Md5Hash() *string MediaLink() *string Metadata() *map[string]*string SetMetadata(val *map[string]*string) MetadataInput() *map[string]*string Name() *string SetName(val *string) NameInput() *string // The tree node. Node() constructs.Node OutputName() *string // Experimental. Provider() cdktf.TerraformProvider // Experimental. SetProvider(val cdktf.TerraformProvider) // Experimental. Provisioners() *[]interface{} // Experimental. SetProvisioners(val *[]interface{}) // Experimental. RawOverrides() interface{} SelfLink() *string Source() *string SetSource(val *string) SourceInput() *string StorageClass() *string SetStorageClass(val *string) StorageClassInput() *string TemporaryHold() interface{} SetTemporaryHold(val interface{}) TemporaryHoldInput() interface{} // Experimental. TerraformGeneratorMetadata() *cdktf.TerraformProviderGeneratorMetadata // Experimental. TerraformMetaArguments() *map[string]interface{} // Experimental. TerraformResourceType() *string Timeouts() StorageBucketObjectTimeoutsOutputReference TimeoutsInput() interface{} // Experimental. AddOverride(path *string, value interface{}) // Experimental. GetAnyMapAttribute(terraformAttribute *string) *map[string]interface{} // Experimental. GetBooleanAttribute(terraformAttribute *string) cdktf.IResolvable // Experimental. GetBooleanMapAttribute(terraformAttribute *string) *map[string]*bool // Experimental. GetListAttribute(terraformAttribute *string) *[]*string // Experimental. GetNumberAttribute(terraformAttribute *string) *float64 // Experimental. GetNumberListAttribute(terraformAttribute *string) *[]*float64 // Experimental. GetNumberMapAttribute(terraformAttribute *string) *map[string]*float64 // Experimental. GetStringAttribute(terraformAttribute *string) *string // Experimental. GetStringMapAttribute(terraformAttribute *string) *map[string]*string // Experimental. InterpolationForAttribute(terraformAttribute *string) cdktf.IResolvable // Overrides the auto-generated logical ID with a specific ID. // Experimental. OverrideLogicalId(newLogicalId *string) PutCustomerEncryption(value *StorageBucketObjectCustomerEncryption) PutTimeouts(value *StorageBucketObjectTimeouts) ResetCacheControl() ResetContent() ResetContentDisposition() ResetContentEncoding() ResetContentLanguage() ResetContentType() ResetCustomerEncryption() ResetDetectMd5Hash() ResetEventBasedHold() ResetId() ResetKmsKeyName() ResetMetadata() // Resets a previously passed logical Id to use the auto-generated logical id again. // Experimental. ResetOverrideLogicalId() ResetSource() ResetStorageClass() ResetTemporaryHold() ResetTimeouts() SynthesizeAttributes() *map[string]interface{} // Experimental. ToMetadata() interface{} // Returns a string representation of this construct. ToString() *string // Adds this resource to the terraform JSON output. // Experimental. ToTerraform() interface{} }
Represents a {@link https://registry.terraform.io/providers/hashicorp/google/4.79.0/docs/resources/storage_bucket_object google_storage_bucket_object}.
func NewStorageBucketObject ¶
func NewStorageBucketObject(scope constructs.Construct, id *string, config *StorageBucketObjectConfig) StorageBucketObject
Create a new {@link https://registry.terraform.io/providers/hashicorp/google/4.79.0/docs/resources/storage_bucket_object google_storage_bucket_object} Resource.
type StorageBucketObjectConfig ¶
type StorageBucketObjectConfig struct { // Experimental. Connection interface{} `field:"optional" json:"connection" yaml:"connection"` // Experimental. Count interface{} `field:"optional" json:"count" yaml:"count"` // Experimental. DependsOn *[]cdktf.ITerraformDependable `field:"optional" json:"dependsOn" yaml:"dependsOn"` // Experimental. ForEach cdktf.ITerraformIterator `field:"optional" json:"forEach" yaml:"forEach"` // Experimental. Lifecycle *cdktf.TerraformResourceLifecycle `field:"optional" json:"lifecycle" yaml:"lifecycle"` // Experimental. Provider cdktf.TerraformProvider `field:"optional" json:"provider" yaml:"provider"` // Experimental. Provisioners *[]interface{} `field:"optional" json:"provisioners" yaml:"provisioners"` // The name of the containing bucket. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/4.79.0/docs/resources/storage_bucket_object#bucket StorageBucketObject#bucket} Bucket *string `field:"required" json:"bucket" yaml:"bucket"` // The name of the object. If you're interpolating the name of this object, see output_name instead. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/4.79.0/docs/resources/storage_bucket_object#name StorageBucketObject#name} Name *string `field:"required" json:"name" yaml:"name"` // Cache-Control directive to specify caching behavior of object data. // // If omitted and object is accessible to all anonymous users, the default will be public, max-age=3600 // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/4.79.0/docs/resources/storage_bucket_object#cache_control StorageBucketObject#cache_control} CacheControl *string `field:"optional" json:"cacheControl" yaml:"cacheControl"` // Data as string to be uploaded. // // Must be defined if source is not. Note: The content field is marked as sensitive. To view the raw contents of the object, please define an output. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/4.79.0/docs/resources/storage_bucket_object#content StorageBucketObject#content} Content *string `field:"optional" json:"content" yaml:"content"` // Content-Disposition of the object data. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/4.79.0/docs/resources/storage_bucket_object#content_disposition StorageBucketObject#content_disposition} ContentDisposition *string `field:"optional" json:"contentDisposition" yaml:"contentDisposition"` // Content-Encoding of the object data. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/4.79.0/docs/resources/storage_bucket_object#content_encoding StorageBucketObject#content_encoding} ContentEncoding *string `field:"optional" json:"contentEncoding" yaml:"contentEncoding"` // Content-Language of the object data. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/4.79.0/docs/resources/storage_bucket_object#content_language StorageBucketObject#content_language} ContentLanguage *string `field:"optional" json:"contentLanguage" yaml:"contentLanguage"` // Content-Type of the object data. Defaults to "application/octet-stream" or "text/plain; charset=utf-8". // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/4.79.0/docs/resources/storage_bucket_object#content_type StorageBucketObject#content_type} ContentType *string `field:"optional" json:"contentType" yaml:"contentType"` // customer_encryption block. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/4.79.0/docs/resources/storage_bucket_object#customer_encryption StorageBucketObject#customer_encryption} CustomerEncryption *StorageBucketObjectCustomerEncryption `field:"optional" json:"customerEncryption" yaml:"customerEncryption"` // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/4.79.0/docs/resources/storage_bucket_object#detect_md5hash StorageBucketObject#detect_md5hash}. DetectMd5Hash *string `field:"optional" json:"detectMd5Hash" yaml:"detectMd5Hash"` // Whether an object is under event-based hold. // // Event-based hold is a way to retain objects until an event occurs, which is signified by the hold's release (i.e. this value is set to false). After being released (set to false), such objects will be subject to bucket-level retention (if any). // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/4.79.0/docs/resources/storage_bucket_object#event_based_hold StorageBucketObject#event_based_hold} EventBasedHold interface{} `field:"optional" json:"eventBasedHold" yaml:"eventBasedHold"` // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/4.79.0/docs/resources/storage_bucket_object#id StorageBucketObject#id}. // // Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2. // If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable. Id *string `field:"optional" json:"id" yaml:"id"` // Resource name of the Cloud KMS key that will be used to encrypt the object. // // Overrides the object metadata's kmsKeyName value, if any. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/4.79.0/docs/resources/storage_bucket_object#kms_key_name StorageBucketObject#kms_key_name} KmsKeyName *string `field:"optional" json:"kmsKeyName" yaml:"kmsKeyName"` // User-provided metadata, in key/value pairs. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/4.79.0/docs/resources/storage_bucket_object#metadata StorageBucketObject#metadata} Metadata *map[string]*string `field:"optional" json:"metadata" yaml:"metadata"` // A path to the data you want to upload. Must be defined if content is not. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/4.79.0/docs/resources/storage_bucket_object#source StorageBucketObject#source} Source *string `field:"optional" json:"source" yaml:"source"` // The StorageClass of the new bucket object. // // Supported values include: MULTI_REGIONAL, REGIONAL, NEARLINE, COLDLINE, ARCHIVE. If not provided, this defaults to the bucket's default storage class or to a standard class. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/4.79.0/docs/resources/storage_bucket_object#storage_class StorageBucketObject#storage_class} StorageClass *string `field:"optional" json:"storageClass" yaml:"storageClass"` // Whether an object is under temporary hold. // // While this flag is set to true, the object is protected against deletion and overwrites. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/4.79.0/docs/resources/storage_bucket_object#temporary_hold StorageBucketObject#temporary_hold} TemporaryHold interface{} `field:"optional" json:"temporaryHold" yaml:"temporaryHold"` // timeouts block. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/4.79.0/docs/resources/storage_bucket_object#timeouts StorageBucketObject#timeouts} Timeouts *StorageBucketObjectTimeouts `field:"optional" json:"timeouts" yaml:"timeouts"` }
type StorageBucketObjectCustomerEncryption ¶
type StorageBucketObjectCustomerEncryption struct { // Base64 encoded customer supplied encryption key. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/4.79.0/docs/resources/storage_bucket_object#encryption_key StorageBucketObject#encryption_key} EncryptionKey *string `field:"required" json:"encryptionKey" yaml:"encryptionKey"` // The encryption algorithm. Default: AES256. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/4.79.0/docs/resources/storage_bucket_object#encryption_algorithm StorageBucketObject#encryption_algorithm} EncryptionAlgorithm *string `field:"optional" json:"encryptionAlgorithm" yaml:"encryptionAlgorithm"` }
type StorageBucketObjectCustomerEncryptionOutputReference ¶
type StorageBucketObjectCustomerEncryptionOutputReference interface { cdktf.ComplexObject // the index of the complex object in a list. // Experimental. ComplexObjectIndex() interface{} // Experimental. SetComplexObjectIndex(val interface{}) // set to true if this item is from inside a set and needs tolist() for accessing it set to "0" for single list items. // Experimental. ComplexObjectIsFromSet() *bool // Experimental. SetComplexObjectIsFromSet(val *bool) // The creation stack of this resolvable which will be appended to errors thrown during resolution. // // If this returns an empty array the stack will not be attached. // Experimental. CreationStack() *[]*string EncryptionAlgorithm() *string SetEncryptionAlgorithm(val *string) EncryptionAlgorithmInput() *string EncryptionKey() *string SetEncryptionKey(val *string) EncryptionKeyInput() *string // Experimental. Fqn() *string InternalValue() *StorageBucketObjectCustomerEncryption SetInternalValue(val *StorageBucketObjectCustomerEncryption) // Experimental. TerraformAttribute() *string // Experimental. SetTerraformAttribute(val *string) // Experimental. TerraformResource() cdktf.IInterpolatingParent // Experimental. SetTerraformResource(val cdktf.IInterpolatingParent) // Experimental. ComputeFqn() *string // Experimental. GetAnyMapAttribute(terraformAttribute *string) *map[string]interface{} // Experimental. GetBooleanAttribute(terraformAttribute *string) cdktf.IResolvable // Experimental. GetBooleanMapAttribute(terraformAttribute *string) *map[string]*bool // Experimental. GetListAttribute(terraformAttribute *string) *[]*string // Experimental. GetNumberAttribute(terraformAttribute *string) *float64 // Experimental. GetNumberListAttribute(terraformAttribute *string) *[]*float64 // Experimental. GetNumberMapAttribute(terraformAttribute *string) *map[string]*float64 // Experimental. GetStringAttribute(terraformAttribute *string) *string // Experimental. GetStringMapAttribute(terraformAttribute *string) *map[string]*string // Experimental. InterpolationAsList() cdktf.IResolvable // Experimental. InterpolationForAttribute(property *string) cdktf.IResolvable ResetEncryptionAlgorithm() // Produce the Token's value at resolution time. // Experimental. Resolve(_context cdktf.IResolveContext) interface{} // Return a string representation of this resolvable object. // // Returns a reversible string representation. // Experimental. ToString() *string }
func NewStorageBucketObjectCustomerEncryptionOutputReference ¶
func NewStorageBucketObjectCustomerEncryptionOutputReference(terraformResource cdktf.IInterpolatingParent, terraformAttribute *string) StorageBucketObjectCustomerEncryptionOutputReference
type StorageBucketObjectTimeouts ¶
type StorageBucketObjectTimeouts struct { // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/4.79.0/docs/resources/storage_bucket_object#create StorageBucketObject#create}. Create *string `field:"optional" json:"create" yaml:"create"` // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/4.79.0/docs/resources/storage_bucket_object#delete StorageBucketObject#delete}. Delete *string `field:"optional" json:"delete" yaml:"delete"` // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/4.79.0/docs/resources/storage_bucket_object#update StorageBucketObject#update}. Update *string `field:"optional" json:"update" yaml:"update"` }
type StorageBucketObjectTimeoutsOutputReference ¶
type StorageBucketObjectTimeoutsOutputReference interface { cdktf.ComplexObject // the index of the complex object in a list. // Experimental. ComplexObjectIndex() interface{} // Experimental. SetComplexObjectIndex(val interface{}) // set to true if this item is from inside a set and needs tolist() for accessing it set to "0" for single list items. // Experimental. ComplexObjectIsFromSet() *bool // Experimental. SetComplexObjectIsFromSet(val *bool) Create() *string SetCreate(val *string) CreateInput() *string // The creation stack of this resolvable which will be appended to errors thrown during resolution. // // If this returns an empty array the stack will not be attached. // Experimental. CreationStack() *[]*string Delete() *string SetDelete(val *string) DeleteInput() *string // Experimental. Fqn() *string InternalValue() interface{} SetInternalValue(val interface{}) // Experimental. TerraformAttribute() *string // Experimental. SetTerraformAttribute(val *string) // Experimental. TerraformResource() cdktf.IInterpolatingParent // Experimental. SetTerraformResource(val cdktf.IInterpolatingParent) Update() *string SetUpdate(val *string) UpdateInput() *string // Experimental. ComputeFqn() *string // Experimental. GetAnyMapAttribute(terraformAttribute *string) *map[string]interface{} // Experimental. GetBooleanAttribute(terraformAttribute *string) cdktf.IResolvable // Experimental. GetBooleanMapAttribute(terraformAttribute *string) *map[string]*bool // Experimental. GetListAttribute(terraformAttribute *string) *[]*string // Experimental. GetNumberAttribute(terraformAttribute *string) *float64 // Experimental. GetNumberListAttribute(terraformAttribute *string) *[]*float64 // Experimental. GetNumberMapAttribute(terraformAttribute *string) *map[string]*float64 // Experimental. GetStringAttribute(terraformAttribute *string) *string // Experimental. GetStringMapAttribute(terraformAttribute *string) *map[string]*string // Experimental. InterpolationAsList() cdktf.IResolvable // Experimental. InterpolationForAttribute(property *string) cdktf.IResolvable ResetCreate() ResetDelete() ResetUpdate() // Produce the Token's value at resolution time. // Experimental. Resolve(_context cdktf.IResolveContext) interface{} // Return a string representation of this resolvable object. // // Returns a reversible string representation. // Experimental. ToString() *string }
func NewStorageBucketObjectTimeoutsOutputReference ¶
func NewStorageBucketObjectTimeoutsOutputReference(terraformResource cdktf.IInterpolatingParent, terraformAttribute *string) StorageBucketObjectTimeoutsOutputReference
Source Files ¶
- StorageBucketObject.go
- StorageBucketObjectConfig.go
- StorageBucketObjectCustomerEncryption.go
- StorageBucketObjectCustomerEncryptionOutputReference.go
- StorageBucketObjectCustomerEncryptionOutputReference__checks.go
- StorageBucketObjectTimeouts.go
- StorageBucketObjectTimeoutsOutputReference.go
- StorageBucketObjectTimeoutsOutputReference__checks.go
- StorageBucketObject__checks.go
- main.go