storage library

Cloud Storage buckets, bucket objects, and Pub/Sub object-change notifications.

Classes

GoogleStorageBucket
Factory wrapper for google_storage_bucket (provider hashicorp/google ~> 7.0).
GoogleStorageBucketIamMember
Factory wrapper for google_storage_bucket_iam_member.
GoogleStorageBucketObject
Factory wrapper for google_storage_bucket_object (provider hashicorp/google ~> 7.0).
GoogleStorageNotification
Factory wrapper for google_storage_notification (provider hashicorp/google ~> 7.0).
StorageBucketAutoclass
StorageBucketAutoclass tiering.
StorageBucketBucketCors
One CORS configuration entry.
StorageBucketBucketLogging
Access-log delivery configuration.
StorageBucketBucketWebsite
Static-website hosting configuration.
StorageBucketCustomPlacementConfig
Custom placement (dual-region) configuration.
StorageBucketEncryption
StorageBucketEncryption configuration: optional CMEK key + 3 enforcement sub-blocks.
StorageBucketEncryptionEnforcementConfig
Shared shape for the 3 encryption.*_enforcement_config sub-blocks.
StorageBucketHierarchicalNamespace
Hierarchical namespace (folders).
StorageBucketIpFilter
IP-based access control for google_storage_bucket.ip_filter.
StorageBucketLifecycleAction
Action to take when a lifecycle_rule's condition matches. storageClass is required iff type == LifecycleActionType.setStorageClass.
StorageBucketLifecycleCondition
Condition under which a lifecycle_rule's action fires.
StorageBucketLifecycleRule
One lifecycle_rule entry: action + condition.
StorageBucketObjectBucketObjectContent
Object payload for google_storage_bucket_object. Sealed to make the source / content exactly_one_of constraint exhaustive at the type level.
StorageBucketObjectBucketObjectFromContent
Inline string payload. The provider marks content as Sensitive, so the value is redacted in terraform plan output but still ends up in Terraform state — prefer StorageBucketObjectBucketObjectFromSource for any non-trivial data.
StorageBucketObjectBucketObjectFromSource
Upload from a local filesystem path. Terraform reads the file at apply time and uploads it to GCS.
StorageBucketObjectBucketObjectRetention
Object-level retention policy (retention block).
StorageBucketObjectCustomerEncryption
Customer-supplied encryption (CSEK) for customer_encryption.
StorageBucketPublicNetworkSource
StorageBucketRetentionPolicy
Retention policy. retentionPeriod is in seconds.
StorageBucketSoftDeletePolicy
Soft-delete policy. retentionDurationSeconds == 0 disables soft-delete.
StorageBucketVersioning
Object versioning policy.
StorageBucketVpcNetworkSource

Enums

BucketObjectStorageClass
Storage class for google_storage_bucket_object.storage_class.
BucketStorageClass
Storage class for google_storage_bucket.storage_class.
LifecycleActionType
Action type for lifecycle_rule.action.type.
StorageNotificationEventType
One entry in event_types[]. Selects which object-mutation events the notification subscribes to. Omitting the list entirely (or passing all four values) subscribes to every event type.
StorageNotificationPayloadFormat
payload_format. Picks the body the Pub/Sub message carries for each event.