Bucket class

Creates a new bucket.

Constructors

Bucket(String name, {BucketArgs? args, CustomResourceOptions? options})
Creates a new Bucket. name The Pulumi resource name. args Arguments used to configure this Bucket. The set of arguments for Bucket. options Resource options controlling this resource's behavior.

Properties

acl ↔ Output<List<Map<String, dynamic>>>
Access controls on the bucket.
latefinal
autoclass ↔ Output<BucketAutoclassResponse>
The bucket's Autoclass configuration.
latefinal
billing ↔ Output<BucketBillingResponse>
The bucket's billing configuration.
latefinal
childResources → Set<Resource>
finalinherited
completionSources ↔ Map<String, IOutputCompletionSource>
latefinalinherited
cors ↔ Output<List<Map<String, dynamic>>>
The bucket's Cross-Origin Resource Sharing (CORS) configuration.
latefinal
customPlacementConfig ↔ Output<BucketCustomPlacementConfigResponse>
The bucket's custom placement configuration for Custom Dual Regions.
latefinal
defaultEventBasedHold ↔ Output<bool>
The default value for event-based hold on newly created objects in this bucket. Event-based hold is a way to retain objects indefinitely until an event occurs, signified by the hold's release. After being released, such objects will be subject to bucket-level retention (if any). One sample use case of this flag is for banks to hold loan documents for at least 3 years after loan is paid in full. Here, bucket-level retention is 3 years and the event is loan being paid in full. In this example, these objects will be held intact for any number of years until the event has occurred (event-based hold on the object is released) and then 3 more years after that. That means retention duration of the objects begins from the moment event-based hold transitioned from true to false. Objects under event-based hold cannot be deleted, overwritten or archived until the hold is removed.
latefinal
defaultObjectAcl ↔ Output<List<Map<String, dynamic>>>
Default access controls to apply to new objects when no ACL is provided.
latefinal
enableObjectRetention ↔ Output<bool?>
When set to true, object retention is enabled for this bucket.
latefinal
encryption ↔ Output<BucketEncryptionResponse>
Encryption configuration for a bucket.
latefinal
etag ↔ Output<String>
HTTP 1.1 Entity tag for the bucket.
latefinal
hashCode → int
The hash code for this object.
no setterinherited
iamConfiguration ↔ Output<BucketIamConfigurationResponse>
The bucket's IAM configuration.
latefinal
id ↔ Output<String>
getter/setter pairinherited
isCustom → bool
Returns whether this resource is provider-managed.
no setterinherited
isProtected → bool
Returns whether this resource is protected from deletion.
no setterinherited
isRemote → bool
Whether this resource is registered as remote.
no setterinherited
isResourceReference → bool
Whether this instance represents a resource value returned over RPC.
finalinherited
kind ↔ Output<String>
The kind of item this is. For buckets, this is always storage#bucket.
latefinal
labels ↔ Output<Map<String, String>>
User-provided labels, in key/value pairs.
latefinal
lifecycle ↔ Output<BucketLifecycleResponse>
The bucket's lifecycle configuration. See lifecycle management for more information.
latefinal
location ↔ Output<String>
The location of the bucket. Object data for objects in the bucket resides in physical storage within this region. Defaults to US. See the developer's guide for the authoritative list.
latefinal
locationType ↔ Output<String>
The type of the bucket location.
latefinal
logging ↔ Output<BucketLoggingResponse>
The bucket's logging configuration, which defines the destination bucket and optional name prefix for the current bucket's logs.
latefinal
metageneration ↔ Output<String>
The metadata generation of this bucket.
latefinal
name ↔ Output<String>
The name of the bucket.
latefinal
objectRetention ↔ Output<BucketObjectRetentionResponse>
The bucket's object retention config.
latefinal
owner ↔ Output<BucketOwnerResponse>
The owner of the bucket. This is always the project team's owner group.
latefinal
predefinedAcl ↔ Output<String?>
Apply a predefined set of access controls to this bucket.
latefinal
predefinedDefaultObjectAcl ↔ Output<String?>
Apply a predefined set of default object access controls to this bucket.
latefinal
project ↔ Output<String>
A valid API project identifier.
latefinal
projection ↔ Output<String?>
Set of properties to return. Defaults to noAcl, unless the bucket resource specifies acl or defaultObjectAcl properties, when it defaults to full.
latefinal
projectNumber ↔ Output<String>
The project number of the project the bucket belongs to.
latefinal
resourceTransforms → List<ResourceTransform>
Inherited/explicit async transforms.
no setterinherited
retentionPolicy ↔ Output<BucketRetentionPolicyResponse>
The bucket's retention policy. The retention policy enforces a minimum retention time for all objects contained in the bucket, based on their creation time. Any attempt to overwrite or delete objects younger than the retention period will result in a PERMISSION_DENIED error. An unlocked retention policy can be modified or removed from the bucket via a storage.buckets.update operation. A locked retention policy cannot be removed or shortened in duration for the lifetime of the bucket. Attempting to remove or decrease period of a locked retention policy will result in a PERMISSION_DENIED error.
latefinal
rpo ↔ Output<String>
The Recovery Point Objective (RPO) of this bucket. Set to ASYNC_TURBO to turn on Turbo Replication on a bucket.
latefinal
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
satisfiesPZS ↔ Output<bool>
Reserved for future use.
latefinal
The URI of this bucket.
latefinal
softDeletePolicy ↔ Output<BucketSoftDeletePolicyResponse>
The bucket's soft delete policy, which defines the period of time that soft-deleted objects will be retained, and cannot be permanently deleted.
latefinal
storageClass ↔ Output<String>
The bucket's default storage class, used whenever no storageClass is specified for a newly-created object. This defines how objects in the bucket are stored and determines the SLA and the cost of storage. Values include MULTI_REGIONAL, REGIONAL, STANDARD, NEARLINE, COLDLINE, ARCHIVE, and DURABLE_REDUCED_AVAILABILITY. If this value is not specified when the bucket is created, it will default to STANDARD. For more information, see storage classes.
latefinal
timeCreated ↔ Output<String>
The creation time of the bucket in RFC 3339 format.
latefinal
transformations → List<ResourceTransformation>
Inherited/explicit legacy transformations.
no setterinherited
updated ↔ Output<String>
The modification time of the bucket in RFC 3339 format.
latefinal
urn ↔ Output<String>
latefinalinherited
userProject ↔ Output<String?>
The project to be billed for this request.
latefinal
versioning ↔ Output<BucketVersioningResponse>
The bucket's versioning configuration.
latefinal
website ↔ Output<BucketWebsiteResponse>
The bucket's website configuration, controlling how the service behaves when accessing bucket contents as a web site. See the Static Website Examples for more information.
latefinal

Methods

failId(Object error) → void
Completes this resource ID with an error when registration fails.
inherited
failOutputs(Object error) → void
Completes all output properties with error.
inherited
failUrn(Object error) → void
Completes this resource URN with an error when registration fails.
inherited
getProvider(String moduleMember) → ProviderResource?
Returns provider for moduleMember's package, if configured.
inherited
getResourceName() → String
Returns this resource's logical name.
inherited
getResourceType() → String
Returns this resource's Pulumi type token.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
registerOutput<T>(String propertyName, {Object? decoder(Object?)?, bool isSecret = false}) → Output<T>
Registers a dynamic output property for this resource.
inherited
resolveId(String? value, {required bool isKnown}) → void
Resolves the provider-assigned ID for this resource.
inherited
resolveOutputs(Struct outputs) → void
Resolves all output properties from a monitor response payload.
inherited
resolveUrn(String value) → void
Resolves this resource's URN once assigned by the engine.
inherited
serializeProperties(Map<String, dynamic> properties) → Future<Struct>
Serializes resource properties for RPC transmission.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited