storage library

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

Classes

Autoclass
Autoclass tiering.
BucketCors
One CORS configuration entry.
BucketLogging
Access-log delivery configuration.
BucketObjectContent
Object payload for google_storage_bucket_object. Sealed to make the source / content exactly_one_of constraint exhaustive at the type level.
BucketObjectFromContent
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 BucketObjectFromSource for any non-trivial data.
BucketObjectFromSource
Upload from a local filesystem path. Terraform reads the file at apply time and uploads it to GCS.
BucketObjectRetention
Object-level retention policy (retention block).
BucketWebsite
Static-website hosting configuration.
CustomerEncryption
Customer-supplied encryption (CSEK) for customer_encryption.
CustomPlacementConfig
Custom placement (dual-region) configuration.
Encryption
Encryption configuration: optional CMEK key + 3 enforcement sub-blocks.
EncryptionEnforcementConfig
Shared shape for the 3 encryption.*_enforcement_config sub-blocks.
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).
HierarchicalNamespace
Hierarchical namespace (folders).
IpFilter
IP-based access control for google_storage_bucket.ip_filter.
LifecycleAction
Action to take when a lifecycle_rule's condition matches. storageClass is required iff type == LifecycleActionType.setStorageClass.
LifecycleCondition
Condition under which a lifecycle_rule's action fires.
LifecycleRule
One lifecycle_rule entry: action + condition.
PublicNetworkSource
RetentionPolicy
Retention policy. retentionPeriod is in seconds.
SoftDeletePolicy
Soft-delete policy. retentionDurationSeconds == 0 disables soft-delete.
Versioning
Object versioning policy.
VpcNetworkSource

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.