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 thesource/contentexactly_one_ofconstraint exhaustive at the type level. - BucketObjectFromContent
-
Inline string payload. The provider marks
contentasSensitive, so the value is redacted interraform planoutput 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 (
retentionblock). - 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_configsub-blocks. - 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). - 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.
storageClassis required ifftype == LifecycleActionType.setStorageClass. - LifecycleCondition
- Condition under which a lifecycle_rule's action fires.
- LifecycleRule
-
One
lifecycle_ruleentry: action + condition. - PublicNetworkSource
- RetentionPolicy
-
Retention policy.
retentionPeriodis in seconds. - SoftDeletePolicy
-
Soft-delete policy.
retentionDurationSeconds == 0disables 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.