storage library

Cloud Storage buckets, bucket objects, Pub/Sub object-change notifications, inventory reports, Storage Transfer jobs, and fine-grained ACLs.

Classes

GoogleStorageAnywhereCache
Factory wrapper for google_storage_anywhere_cache.
GoogleStorageBatchOperationsJob
Factory wrapper for google_storage_batch_operations_job.
GoogleStorageBucket
Factory wrapper for google_storage_bucket.
GoogleStorageBucketAccessControl
Factory wrapper for google_storage_bucket_access_control.
GoogleStorageBucketAcl
Factory wrapper for google_storage_bucket_acl.
GoogleStorageBucketIamBinding
Factory wrapper for google_storage_bucket_iam_binding.
GoogleStorageBucketIamMember
Factory wrapper for google_storage_bucket_iam_member.
GoogleStorageBucketIamPolicy
Factory wrapper for google_storage_bucket_iam_policy.
GoogleStorageBucketObject
Factory wrapper for google_storage_bucket_object.
GoogleStorageDefaultObjectAccessControl
Factory wrapper for google_storage_default_object_access_control.
GoogleStorageDefaultObjectAcl
Factory wrapper for google_storage_default_object_acl.
GoogleStorageFolder
Factory wrapper for google_storage_folder.
GoogleStorageHmacKey
Factory wrapper for google_storage_hmac_key.
GoogleStorageInsightsDatasetConfig
Factory wrapper for google_storage_insights_dataset_config.
GoogleStorageInsightsReportConfig
Factory wrapper for google_storage_insights_report_config.
GoogleStorageManagedFolder
Factory wrapper for google_storage_managed_folder.
GoogleStorageManagedFolderIamBinding
Factory wrapper for google_storage_managed_folder_iam_binding.
GoogleStorageManagedFolderIamMember
Factory wrapper for google_storage_managed_folder_iam_member.
GoogleStorageManagedFolderIamPolicy
Factory wrapper for google_storage_managed_folder_iam_policy.
GoogleStorageNotification
Factory wrapper for google_storage_notification.
GoogleStorageObjectAccessControl
Factory wrapper for google_storage_object_access_control.
GoogleStorageObjectAcl
Factory wrapper for google_storage_object_acl.
GoogleStorageTransferAgentPool
Factory wrapper for google_storage_transfer_agent_pool.
GoogleStorageTransferJob
Factory wrapper for google_storage_transfer_job.
StorageBatchOperationsJobBucketList
bucket_list — currently one bucket configuration (provider max 1).
StorageBatchOperationsJobBuckets
One bucket (+ object selector) inside StorageBatchOperationsJobBucketList.
StorageBatchOperationsJobDeleteObject
delete_object — delete matching objects (optionally all versions).
StorageBatchOperationsJobManifest
manifest — include objects listed in a manifest object.
StorageBatchOperationsJobOperation
Batch action to run. Sealed so callers pick exactly one of put_metadata / put_object_hold / rewrite_object / delete_object.
StorageBatchOperationsJobPrefixList
prefix_list — include objects by prefix under the target bucket.
StorageBatchOperationsJobPutMetadata
put_metadata — update object metadata fields / custom metadata.
StorageBatchOperationsJobPutObjectHold
put_object_hold — set temporary / event-based holds.
StorageBatchOperationsJobRewriteObject
rewrite_object — rewrite objects under a KMS key.
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
StorageInsightsDatasetConfigExcludeCloudStorageBuckets
Typed helper for the exclude_cloud_storage_buckets block of google_storage_insights_dataset_config (derived from provider schema).
StorageInsightsDatasetConfigExcludeCloudStorageBucketsCloudStorageBuckets
Typed helper for the exclude_cloud_storage_buckets.cloud_storage_buckets block of google_storage_insights_dataset_config (derived from provider schema).
StorageInsightsDatasetConfigExcludeCloudStorageLocations
Typed helper for the exclude_cloud_storage_locations block of google_storage_insights_dataset_config (derived from provider schema).
StorageInsightsDatasetConfigIdentity
Typed helper for the identity block of google_storage_insights_dataset_config (derived from provider schema).
StorageInsightsDatasetConfigIncludeCloudStorageBuckets
Typed helper for the include_cloud_storage_buckets block of google_storage_insights_dataset_config (derived from provider schema).
StorageInsightsDatasetConfigIncludeCloudStorageBucketsCloudStorageBuckets
Typed helper for the include_cloud_storage_buckets.cloud_storage_buckets block of google_storage_insights_dataset_config (derived from provider schema).
StorageInsightsDatasetConfigIncludeCloudStorageLocations
Typed helper for the include_cloud_storage_locations block of google_storage_insights_dataset_config (derived from provider schema).
StorageInsightsDatasetConfigOrganizationScope
organization_scope — index the whole organization.
StorageInsightsDatasetConfigSource
Exactly one dataset source scope (MM exactly_one_of: source_projects / source_folders / organization_scope).
StorageInsightsDatasetConfigSourceFolders
source_folders — index these folder numbers.
StorageInsightsDatasetConfigSourceProjects
source_projects — index these project numbers.
StorageInsightsReportConfigCsvFormat
csv_options — CSV inventory reports.
StorageInsightsReportConfigFormat
Inventory report file format (MM exactly_one_of: csv_options / parquet_options).
StorageInsightsReportConfigFrequencyOptions
Typed helper for the frequency_options block of google_storage_insights_report_config (derived from provider schema).
StorageInsightsReportConfigFrequencyOptionsEndDate
Typed helper for the frequency_options.end_date block of google_storage_insights_report_config (derived from provider schema).
StorageInsightsReportConfigFrequencyOptionsStartDate
Typed helper for the frequency_options.start_date block of google_storage_insights_report_config (derived from provider schema).
StorageInsightsReportConfigObjectMetadataReportOptions
Typed helper for the object_metadata_report_options block of google_storage_insights_report_config (derived from provider schema).
StorageInsightsReportConfigObjectMetadataReportOptionsStorageDestinationOptions
Typed helper for the object_metadata_report_options.storage_destination_options block of google_storage_insights_report_config (derived from provider schema).
StorageInsightsReportConfigObjectMetadataReportOptionsStorageFilters
Typed helper for the object_metadata_report_options.storage_filters block of google_storage_insights_report_config (derived from provider schema).
StorageInsightsReportConfigParquetFormat
parquet_options — Parquet inventory reports (empty options object).
StorageTransferAgentPoolBandwidthLimit
Typed helper for the bandwidth_limit block of google_storage_transfer_agent_pool (derived from provider schema).
StorageTransferJobEventStream
Typed helper for the event_stream block of google_storage_transfer_job (derived from provider schema).
StorageTransferJobLoggingConfig
Typed helper for the logging_config block of google_storage_transfer_job (derived from provider schema).
StorageTransferJobNotificationConfig
Typed helper for the notification_config block of google_storage_transfer_job (derived from provider schema).
StorageTransferJobReplicationSpec
Typed helper for the replication_spec block of google_storage_transfer_job (derived from provider schema).
StorageTransferJobReplicationSpecGcsDataSink
Typed helper for the replication_spec.gcs_data_sink block of google_storage_transfer_job (derived from provider schema).
StorageTransferJobReplicationSpecGcsDataSource
Typed helper for the replication_spec.gcs_data_source block of google_storage_transfer_job (derived from provider schema).
StorageTransferJobReplicationSpecObjectConditions
Typed helper for the replication_spec.object_conditions block of google_storage_transfer_job (derived from provider schema).
StorageTransferJobReplicationSpecTransferOptions
Typed helper for the replication_spec.transfer_options block of google_storage_transfer_job (derived from provider schema).
StorageTransferJobReplicationSpecTransferOptionsMetadataOptions
Typed helper for the replication_spec.transfer_options.metadata_options block of google_storage_transfer_job (derived from provider schema).
StorageTransferJobSchedule
Typed helper for the schedule block of google_storage_transfer_job (derived from provider schema).
StorageTransferJobScheduleScheduleEndDate
Typed helper for the schedule.schedule_end_date block of google_storage_transfer_job (derived from provider schema).
StorageTransferJobScheduleScheduleStartDate
Typed helper for the schedule.schedule_start_date block of google_storage_transfer_job (derived from provider schema).
StorageTransferJobScheduleStartTimeOfDay
Typed helper for the schedule.start_time_of_day block of google_storage_transfer_job (derived from provider schema).
StorageTransferJobTransferSpec
Typed helper for the transfer_spec block of google_storage_transfer_job (derived from provider schema).
StorageTransferJobTransferSpecAwsS3CompatibleDataSource
Typed helper for the transfer_spec.aws_s3_compatible_data_source block of google_storage_transfer_job (derived from provider schema).
StorageTransferJobTransferSpecAwsS3CompatibleDataSourceS3Metadata
Typed helper for the transfer_spec.aws_s3_compatible_data_source.s3_metadata block of google_storage_transfer_job (derived from provider schema).
StorageTransferJobTransferSpecAwsS3DataSource
Typed helper for the transfer_spec.aws_s3_data_source block of google_storage_transfer_job (derived from provider schema).
StorageTransferJobTransferSpecAwsS3DataSourceAwsAccessKey
Typed helper for the transfer_spec.aws_s3_data_source.aws_access_key block of google_storage_transfer_job (derived from provider schema).
StorageTransferJobTransferSpecAzureBlobStorageDataSource
Typed helper for the transfer_spec.azure_blob_storage_data_source block of google_storage_transfer_job (derived from provider schema).
StorageTransferJobTransferSpecAzureBlobStorageDataSourceAzureCredentials
Typed helper for the transfer_spec.azure_blob_storage_data_source.azure_credentials block of google_storage_transfer_job (derived from provider schema).
StorageTransferJobTransferSpecAzureBlobStorageDataSourceFederatedIdentityConfig
Typed helper for the transfer_spec.azure_blob_storage_data_source.federated_identity_config block of google_storage_transfer_job (derived from provider schema).
StorageTransferJobTransferSpecGcsDataSink
Typed helper for the transfer_spec.gcs_data_sink block of google_storage_transfer_job (derived from provider schema).
StorageTransferJobTransferSpecGcsDataSource
Typed helper for the transfer_spec.gcs_data_source block of google_storage_transfer_job (derived from provider schema).
StorageTransferJobTransferSpecHdfsDataSource
Typed helper for the transfer_spec.hdfs_data_source block of google_storage_transfer_job (derived from provider schema).
StorageTransferJobTransferSpecHttpDataSource
Typed helper for the transfer_spec.http_data_source block of google_storage_transfer_job (derived from provider schema).
StorageTransferJobTransferSpecObjectConditions
Typed helper for the transfer_spec.object_conditions block of google_storage_transfer_job (derived from provider schema).
StorageTransferJobTransferSpecPosixDataSink
Typed helper for the transfer_spec.posix_data_sink block of google_storage_transfer_job (derived from provider schema).
StorageTransferJobTransferSpecPosixDataSource
Typed helper for the transfer_spec.posix_data_source block of google_storage_transfer_job (derived from provider schema).
StorageTransferJobTransferSpecTransferManifest
Typed helper for the transfer_spec.transfer_manifest block of google_storage_transfer_job (derived from provider schema).
StorageTransferJobTransferSpecTransferOptions
Typed helper for the transfer_spec.transfer_options block of google_storage_transfer_job (derived from provider schema).
StorageTransferJobTransferSpecTransferOptionsMetadataOptions
Typed helper for the transfer_spec.transfer_options.metadata_options block of google_storage_transfer_job (derived from provider schema).

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.
StorageAnywhereCacheAdmissionPolicy
Terraform admission_policy for GoogleStorageAnywhereCache.
StorageBucketAccessControlRole
Storage Bucket Access Control enum for role.
StorageDefaultObjectAccessControlRole
Storage Default Object Access Control enum for role.
StorageHmacKeyState
Storage Hmac Key enum for state.
StorageInsightsDatasetConfigDatasetConfigState
Storage Insights Dataset Config Dataset Config enum for dataset_config_state.
StorageInsightsDatasetConfigIdentityType
type — derived from the provider schema description.
StorageInsightsReportConfigFrequencyOptionsFrequency
frequency — derived from the provider schema description.
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.
StorageObjectAccessControlRole
Storage Object Access Control enum for role.
StorageTransferAgentPoolState
Storage Transfer Agent Pool enum for state.