storage library
Cloud Storage buckets, bucket objects, and Pub/Sub object-change notifications.
Classes
- GoogleStorageBucket
-
Factory wrapper for
google_storage_bucket(providerhashicorp/google ~> 7.0). - GoogleStorageBucketIamMember
-
Factory wrapper for
google_storage_bucket_iam_member. - GoogleStorageBucketObject
-
Factory wrapper for
google_storage_bucket_object(providerhashicorp/google ~> 7.0). - GoogleStorageNotification
-
Factory wrapper for
google_storage_notification(providerhashicorp/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_configsub-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.
storageClassis required ifftype == LifecycleActionType.setStorageClass. - StorageBucketLifecycleCondition
- Condition under which a lifecycle_rule's action fires.
- StorageBucketLifecycleRule
-
One
lifecycle_ruleentry: action + condition. - StorageBucketObjectBucketObjectContent
-
Object payload for
google_storage_bucket_object. Sealed to make thesource/contentexactly_one_ofconstraint exhaustive at the type level. - StorageBucketObjectBucketObjectFromContent
-
Inline string payload. The provider marks
contentasSensitive, so the value is redacted interraform planoutput 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 (
retentionblock). - StorageBucketObjectCustomerEncryption
-
Customer-supplied encryption (CSEK) for
customer_encryption. - StorageBucketPublicNetworkSource
- StorageBucketRetentionPolicy
-
Retention policy.
retentionPeriodis in seconds. - StorageBucketSoftDeletePolicy
-
Soft-delete policy.
retentionDurationSeconds == 0disables 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.