1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. ObjectStorage
  5. getBucket
Oracle Cloud Infrastructure v1.32.0 published on Thursday, Apr 18, 2024 by Pulumi

oci.ObjectStorage.getBucket

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.32.0 published on Thursday, Apr 18, 2024 by Pulumi

    This data source provides details about a specific Bucket resource in Oracle Cloud Infrastructure Object Storage service.

    Gets the current representation of the given bucket in the given Object Storage namespace.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testBucket = oci.ObjectStorage.getBucket({
        name: _var.bucket_name,
        namespace: _var.bucket_namespace,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_bucket = oci.ObjectStorage.get_bucket(name=var["bucket_name"],
        namespace=var["bucket_namespace"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/go/oci/ObjectStorage"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := ObjectStorage.GetBucket(ctx, &objectstorage.GetBucketArgs{
    			Name:      _var.Bucket_name,
    			Namespace: _var.Bucket_namespace,
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Oci = Pulumi.Oci;
    
    return await Deployment.RunAsync(() => 
    {
        var testBucket = Oci.ObjectStorage.GetBucket.Invoke(new()
        {
            Name = @var.Bucket_name,
            Namespace = @var.Bucket_namespace,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.ObjectStorage.ObjectStorageFunctions;
    import com.pulumi.oci.ObjectStorage.inputs.GetBucketArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var testBucket = ObjectStorageFunctions.getBucket(GetBucketArgs.builder()
                .name(var_.bucket_name())
                .namespace(var_.bucket_namespace())
                .build());
    
        }
    }
    
    variables:
      testBucket:
        fn::invoke:
          Function: oci:ObjectStorage:getBucket
          Arguments:
            name: ${var.bucket_name}
            namespace: ${var.bucket_namespace}
    

    Using getBucket

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getBucket(args: GetBucketArgs, opts?: InvokeOptions): Promise<GetBucketResult>
    function getBucketOutput(args: GetBucketOutputArgs, opts?: InvokeOptions): Output<GetBucketResult>
    def get_bucket(name: Optional[str] = None,
                   namespace: Optional[str] = None,
                   opts: Optional[InvokeOptions] = None) -> GetBucketResult
    def get_bucket_output(name: Optional[pulumi.Input[str]] = None,
                   namespace: Optional[pulumi.Input[str]] = None,
                   opts: Optional[InvokeOptions] = None) -> Output[GetBucketResult]
    func GetBucket(ctx *Context, args *GetBucketArgs, opts ...InvokeOption) (*GetBucketResult, error)
    func GetBucketOutput(ctx *Context, args *GetBucketOutputArgs, opts ...InvokeOption) GetBucketResultOutput

    > Note: This function is named GetBucket in the Go SDK.

    public static class GetBucket 
    {
        public static Task<GetBucketResult> InvokeAsync(GetBucketArgs args, InvokeOptions? opts = null)
        public static Output<GetBucketResult> Invoke(GetBucketInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetBucketResult> getBucket(GetBucketArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:ObjectStorage/getBucket:getBucket
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Name string
    The name of the bucket. Avoid entering confidential information. Example: my-new-bucket1
    Namespace string
    The Object Storage namespace used for the request.
    Name string
    The name of the bucket. Avoid entering confidential information. Example: my-new-bucket1
    Namespace string
    The Object Storage namespace used for the request.
    name String
    The name of the bucket. Avoid entering confidential information. Example: my-new-bucket1
    namespace String
    The Object Storage namespace used for the request.
    name string
    The name of the bucket. Avoid entering confidential information. Example: my-new-bucket1
    namespace string
    The Object Storage namespace used for the request.
    name str
    The name of the bucket. Avoid entering confidential information. Example: my-new-bucket1
    namespace str
    The Object Storage namespace used for the request.
    name String
    The name of the bucket. Avoid entering confidential information. Example: my-new-bucket1
    namespace String
    The Object Storage namespace used for the request.

    getBucket Result

    The following output properties are available:

    AccessType string
    The type of public access enabled on this bucket. A bucket is set to NoPublicAccess by default, which only allows an authenticated caller to access the bucket and its contents. When ObjectRead is enabled on the bucket, public access is allowed for the GetObject, HeadObject, and ListObjects operations. When ObjectReadWithoutList is enabled on the bucket, public access is allowed for the GetObject and HeadObject operations.
    ApproximateCount string
    The approximate number of objects in the bucket. Count statistics are reported periodically. You will see a lag between what is displayed and the actual object count.
    ApproximateSize string
    The approximate total size in bytes of all objects in the bucket. Size statistics are reported periodically. You will see a lag between what is displayed and the actual size of the bucket.
    AutoTiering string
    The auto tiering status on the bucket. A bucket is created with auto tiering Disabled by default. For auto tiering InfrequentAccess, objects are transitioned automatically between the 'Standard' and 'InfrequentAccess' tiers based on the access pattern of the objects.
    BucketId string
    The OCID of the bucket which is a Oracle assigned unique identifier for this resource type (bucket). bucket_id cannot be used for bucket lookup.
    CompartmentId string
    The compartment ID in which the bucket is authorized.
    CreatedBy string
    The OCID of the user who created the bucket.
    DefinedTags Dictionary<string, object>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    Etag string
    The entity tag (ETag) for the bucket.
    FreeformTags Dictionary<string, object>
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    Id string
    IsReadOnly bool
    Whether or not this bucket is read only. By default, isReadOnly is set to false. This will be set to 'true' when this bucket is configured as a destination in a replication policy.
    KmsKeyId string
    The OCID of a master encryption key used to call the Key Management service to generate a data encryption key or to encrypt or decrypt a data encryption key.
    Metadata Dictionary<string, object>
    Arbitrary string keys and values for user-defined metadata.
    Name string
    The name of the bucket. Avoid entering confidential information. Example: my-new-bucket1
    Namespace string
    The Object Storage namespace in which the bucket resides.
    ObjectEventsEnabled bool
    Whether or not events are emitted for object state changes in this bucket. By default, objectEventsEnabled is set to false. Set objectEventsEnabled to true to emit events for object state changes. For more information about events, see Overview of Events.
    ObjectLifecyclePolicyEtag string
    The entity tag (ETag) for the live object lifecycle policy on the bucket.
    ReplicationEnabled bool
    Whether or not this bucket is a replication source. By default, replicationEnabled is set to false. This will be set to 'true' when you create a replication policy for the bucket.
    RetentionRules List<GetBucketRetentionRule>
    User specified list of retention rules for the bucket.
    StorageTier string
    The storage tier type assigned to the bucket. A bucket is set to Standard tier by default, which means objects uploaded or copied to the bucket will be in the standard storage tier. When the Archive tier type is set explicitly for a bucket, objects uploaded or copied to the bucket will be stored in archive storage. The storageTier property is immutable after bucket is created.
    TimeCreated string
    The date and time the bucket was created, as described in RFC 2616.
    Versioning string
    The versioning status on the bucket. A bucket is created with versioning Disabled by default. For versioning Enabled, objects are protected from overwrites and deletes, by maintaining their version history. When versioning is Suspended, the previous versions will still remain but new versions will no longer be created when overwitten or deleted.
    AccessType string
    The type of public access enabled on this bucket. A bucket is set to NoPublicAccess by default, which only allows an authenticated caller to access the bucket and its contents. When ObjectRead is enabled on the bucket, public access is allowed for the GetObject, HeadObject, and ListObjects operations. When ObjectReadWithoutList is enabled on the bucket, public access is allowed for the GetObject and HeadObject operations.
    ApproximateCount string
    The approximate number of objects in the bucket. Count statistics are reported periodically. You will see a lag between what is displayed and the actual object count.
    ApproximateSize string
    The approximate total size in bytes of all objects in the bucket. Size statistics are reported periodically. You will see a lag between what is displayed and the actual size of the bucket.
    AutoTiering string
    The auto tiering status on the bucket. A bucket is created with auto tiering Disabled by default. For auto tiering InfrequentAccess, objects are transitioned automatically between the 'Standard' and 'InfrequentAccess' tiers based on the access pattern of the objects.
    BucketId string
    The OCID of the bucket which is a Oracle assigned unique identifier for this resource type (bucket). bucket_id cannot be used for bucket lookup.
    CompartmentId string
    The compartment ID in which the bucket is authorized.
    CreatedBy string
    The OCID of the user who created the bucket.
    DefinedTags map[string]interface{}
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    Etag string
    The entity tag (ETag) for the bucket.
    FreeformTags map[string]interface{}
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    Id string
    IsReadOnly bool
    Whether or not this bucket is read only. By default, isReadOnly is set to false. This will be set to 'true' when this bucket is configured as a destination in a replication policy.
    KmsKeyId string
    The OCID of a master encryption key used to call the Key Management service to generate a data encryption key or to encrypt or decrypt a data encryption key.
    Metadata map[string]interface{}
    Arbitrary string keys and values for user-defined metadata.
    Name string
    The name of the bucket. Avoid entering confidential information. Example: my-new-bucket1
    Namespace string
    The Object Storage namespace in which the bucket resides.
    ObjectEventsEnabled bool
    Whether or not events are emitted for object state changes in this bucket. By default, objectEventsEnabled is set to false. Set objectEventsEnabled to true to emit events for object state changes. For more information about events, see Overview of Events.
    ObjectLifecyclePolicyEtag string
    The entity tag (ETag) for the live object lifecycle policy on the bucket.
    ReplicationEnabled bool
    Whether or not this bucket is a replication source. By default, replicationEnabled is set to false. This will be set to 'true' when you create a replication policy for the bucket.
    RetentionRules []GetBucketRetentionRule
    User specified list of retention rules for the bucket.
    StorageTier string
    The storage tier type assigned to the bucket. A bucket is set to Standard tier by default, which means objects uploaded or copied to the bucket will be in the standard storage tier. When the Archive tier type is set explicitly for a bucket, objects uploaded or copied to the bucket will be stored in archive storage. The storageTier property is immutable after bucket is created.
    TimeCreated string
    The date and time the bucket was created, as described in RFC 2616.
    Versioning string
    The versioning status on the bucket. A bucket is created with versioning Disabled by default. For versioning Enabled, objects are protected from overwrites and deletes, by maintaining their version history. When versioning is Suspended, the previous versions will still remain but new versions will no longer be created when overwitten or deleted.
    accessType String
    The type of public access enabled on this bucket. A bucket is set to NoPublicAccess by default, which only allows an authenticated caller to access the bucket and its contents. When ObjectRead is enabled on the bucket, public access is allowed for the GetObject, HeadObject, and ListObjects operations. When ObjectReadWithoutList is enabled on the bucket, public access is allowed for the GetObject and HeadObject operations.
    approximateCount String
    The approximate number of objects in the bucket. Count statistics are reported periodically. You will see a lag between what is displayed and the actual object count.
    approximateSize String
    The approximate total size in bytes of all objects in the bucket. Size statistics are reported periodically. You will see a lag between what is displayed and the actual size of the bucket.
    autoTiering String
    The auto tiering status on the bucket. A bucket is created with auto tiering Disabled by default. For auto tiering InfrequentAccess, objects are transitioned automatically between the 'Standard' and 'InfrequentAccess' tiers based on the access pattern of the objects.
    bucketId String
    The OCID of the bucket which is a Oracle assigned unique identifier for this resource type (bucket). bucket_id cannot be used for bucket lookup.
    compartmentId String
    The compartment ID in which the bucket is authorized.
    createdBy String
    The OCID of the user who created the bucket.
    definedTags Map<String,Object>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    etag String
    The entity tag (ETag) for the bucket.
    freeformTags Map<String,Object>
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    id String
    isReadOnly Boolean
    Whether or not this bucket is read only. By default, isReadOnly is set to false. This will be set to 'true' when this bucket is configured as a destination in a replication policy.
    kmsKeyId String
    The OCID of a master encryption key used to call the Key Management service to generate a data encryption key or to encrypt or decrypt a data encryption key.
    metadata Map<String,Object>
    Arbitrary string keys and values for user-defined metadata.
    name String
    The name of the bucket. Avoid entering confidential information. Example: my-new-bucket1
    namespace String
    The Object Storage namespace in which the bucket resides.
    objectEventsEnabled Boolean
    Whether or not events are emitted for object state changes in this bucket. By default, objectEventsEnabled is set to false. Set objectEventsEnabled to true to emit events for object state changes. For more information about events, see Overview of Events.
    objectLifecyclePolicyEtag String
    The entity tag (ETag) for the live object lifecycle policy on the bucket.
    replicationEnabled Boolean
    Whether or not this bucket is a replication source. By default, replicationEnabled is set to false. This will be set to 'true' when you create a replication policy for the bucket.
    retentionRules List<GetBucketRetentionRule>
    User specified list of retention rules for the bucket.
    storageTier String
    The storage tier type assigned to the bucket. A bucket is set to Standard tier by default, which means objects uploaded or copied to the bucket will be in the standard storage tier. When the Archive tier type is set explicitly for a bucket, objects uploaded or copied to the bucket will be stored in archive storage. The storageTier property is immutable after bucket is created.
    timeCreated String
    The date and time the bucket was created, as described in RFC 2616.
    versioning String
    The versioning status on the bucket. A bucket is created with versioning Disabled by default. For versioning Enabled, objects are protected from overwrites and deletes, by maintaining their version history. When versioning is Suspended, the previous versions will still remain but new versions will no longer be created when overwitten or deleted.
    accessType string
    The type of public access enabled on this bucket. A bucket is set to NoPublicAccess by default, which only allows an authenticated caller to access the bucket and its contents. When ObjectRead is enabled on the bucket, public access is allowed for the GetObject, HeadObject, and ListObjects operations. When ObjectReadWithoutList is enabled on the bucket, public access is allowed for the GetObject and HeadObject operations.
    approximateCount string
    The approximate number of objects in the bucket. Count statistics are reported periodically. You will see a lag between what is displayed and the actual object count.
    approximateSize string
    The approximate total size in bytes of all objects in the bucket. Size statistics are reported periodically. You will see a lag between what is displayed and the actual size of the bucket.
    autoTiering string
    The auto tiering status on the bucket. A bucket is created with auto tiering Disabled by default. For auto tiering InfrequentAccess, objects are transitioned automatically between the 'Standard' and 'InfrequentAccess' tiers based on the access pattern of the objects.
    bucketId string
    The OCID of the bucket which is a Oracle assigned unique identifier for this resource type (bucket). bucket_id cannot be used for bucket lookup.
    compartmentId string
    The compartment ID in which the bucket is authorized.
    createdBy string
    The OCID of the user who created the bucket.
    definedTags {[key: string]: any}
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    etag string
    The entity tag (ETag) for the bucket.
    freeformTags {[key: string]: any}
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    id string
    isReadOnly boolean
    Whether or not this bucket is read only. By default, isReadOnly is set to false. This will be set to 'true' when this bucket is configured as a destination in a replication policy.
    kmsKeyId string
    The OCID of a master encryption key used to call the Key Management service to generate a data encryption key or to encrypt or decrypt a data encryption key.
    metadata {[key: string]: any}
    Arbitrary string keys and values for user-defined metadata.
    name string
    The name of the bucket. Avoid entering confidential information. Example: my-new-bucket1
    namespace string
    The Object Storage namespace in which the bucket resides.
    objectEventsEnabled boolean
    Whether or not events are emitted for object state changes in this bucket. By default, objectEventsEnabled is set to false. Set objectEventsEnabled to true to emit events for object state changes. For more information about events, see Overview of Events.
    objectLifecyclePolicyEtag string
    The entity tag (ETag) for the live object lifecycle policy on the bucket.
    replicationEnabled boolean
    Whether or not this bucket is a replication source. By default, replicationEnabled is set to false. This will be set to 'true' when you create a replication policy for the bucket.
    retentionRules GetBucketRetentionRule[]
    User specified list of retention rules for the bucket.
    storageTier string
    The storage tier type assigned to the bucket. A bucket is set to Standard tier by default, which means objects uploaded or copied to the bucket will be in the standard storage tier. When the Archive tier type is set explicitly for a bucket, objects uploaded or copied to the bucket will be stored in archive storage. The storageTier property is immutable after bucket is created.
    timeCreated string
    The date and time the bucket was created, as described in RFC 2616.
    versioning string
    The versioning status on the bucket. A bucket is created with versioning Disabled by default. For versioning Enabled, objects are protected from overwrites and deletes, by maintaining their version history. When versioning is Suspended, the previous versions will still remain but new versions will no longer be created when overwitten or deleted.
    access_type str
    The type of public access enabled on this bucket. A bucket is set to NoPublicAccess by default, which only allows an authenticated caller to access the bucket and its contents. When ObjectRead is enabled on the bucket, public access is allowed for the GetObject, HeadObject, and ListObjects operations. When ObjectReadWithoutList is enabled on the bucket, public access is allowed for the GetObject and HeadObject operations.
    approximate_count str
    The approximate number of objects in the bucket. Count statistics are reported periodically. You will see a lag between what is displayed and the actual object count.
    approximate_size str
    The approximate total size in bytes of all objects in the bucket. Size statistics are reported periodically. You will see a lag between what is displayed and the actual size of the bucket.
    auto_tiering str
    The auto tiering status on the bucket. A bucket is created with auto tiering Disabled by default. For auto tiering InfrequentAccess, objects are transitioned automatically between the 'Standard' and 'InfrequentAccess' tiers based on the access pattern of the objects.
    bucket_id str
    The OCID of the bucket which is a Oracle assigned unique identifier for this resource type (bucket). bucket_id cannot be used for bucket lookup.
    compartment_id str
    The compartment ID in which the bucket is authorized.
    created_by str
    The OCID of the user who created the bucket.
    defined_tags Mapping[str, Any]
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    etag str
    The entity tag (ETag) for the bucket.
    freeform_tags Mapping[str, Any]
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    id str
    is_read_only bool
    Whether or not this bucket is read only. By default, isReadOnly is set to false. This will be set to 'true' when this bucket is configured as a destination in a replication policy.
    kms_key_id str
    The OCID of a master encryption key used to call the Key Management service to generate a data encryption key or to encrypt or decrypt a data encryption key.
    metadata Mapping[str, Any]
    Arbitrary string keys and values for user-defined metadata.
    name str
    The name of the bucket. Avoid entering confidential information. Example: my-new-bucket1
    namespace str
    The Object Storage namespace in which the bucket resides.
    object_events_enabled bool
    Whether or not events are emitted for object state changes in this bucket. By default, objectEventsEnabled is set to false. Set objectEventsEnabled to true to emit events for object state changes. For more information about events, see Overview of Events.
    object_lifecycle_policy_etag str
    The entity tag (ETag) for the live object lifecycle policy on the bucket.
    replication_enabled bool
    Whether or not this bucket is a replication source. By default, replicationEnabled is set to false. This will be set to 'true' when you create a replication policy for the bucket.
    retention_rules Sequence[objectstorage.GetBucketRetentionRule]
    User specified list of retention rules for the bucket.
    storage_tier str
    The storage tier type assigned to the bucket. A bucket is set to Standard tier by default, which means objects uploaded or copied to the bucket will be in the standard storage tier. When the Archive tier type is set explicitly for a bucket, objects uploaded or copied to the bucket will be stored in archive storage. The storageTier property is immutable after bucket is created.
    time_created str
    The date and time the bucket was created, as described in RFC 2616.
    versioning str
    The versioning status on the bucket. A bucket is created with versioning Disabled by default. For versioning Enabled, objects are protected from overwrites and deletes, by maintaining their version history. When versioning is Suspended, the previous versions will still remain but new versions will no longer be created when overwitten or deleted.
    accessType String
    The type of public access enabled on this bucket. A bucket is set to NoPublicAccess by default, which only allows an authenticated caller to access the bucket and its contents. When ObjectRead is enabled on the bucket, public access is allowed for the GetObject, HeadObject, and ListObjects operations. When ObjectReadWithoutList is enabled on the bucket, public access is allowed for the GetObject and HeadObject operations.
    approximateCount String
    The approximate number of objects in the bucket. Count statistics are reported periodically. You will see a lag between what is displayed and the actual object count.
    approximateSize String
    The approximate total size in bytes of all objects in the bucket. Size statistics are reported periodically. You will see a lag between what is displayed and the actual size of the bucket.
    autoTiering String
    The auto tiering status on the bucket. A bucket is created with auto tiering Disabled by default. For auto tiering InfrequentAccess, objects are transitioned automatically between the 'Standard' and 'InfrequentAccess' tiers based on the access pattern of the objects.
    bucketId String
    The OCID of the bucket which is a Oracle assigned unique identifier for this resource type (bucket). bucket_id cannot be used for bucket lookup.
    compartmentId String
    The compartment ID in which the bucket is authorized.
    createdBy String
    The OCID of the user who created the bucket.
    definedTags Map<Any>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    etag String
    The entity tag (ETag) for the bucket.
    freeformTags Map<Any>
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    id String
    isReadOnly Boolean
    Whether or not this bucket is read only. By default, isReadOnly is set to false. This will be set to 'true' when this bucket is configured as a destination in a replication policy.
    kmsKeyId String
    The OCID of a master encryption key used to call the Key Management service to generate a data encryption key or to encrypt or decrypt a data encryption key.
    metadata Map<Any>
    Arbitrary string keys and values for user-defined metadata.
    name String
    The name of the bucket. Avoid entering confidential information. Example: my-new-bucket1
    namespace String
    The Object Storage namespace in which the bucket resides.
    objectEventsEnabled Boolean
    Whether or not events are emitted for object state changes in this bucket. By default, objectEventsEnabled is set to false. Set objectEventsEnabled to true to emit events for object state changes. For more information about events, see Overview of Events.
    objectLifecyclePolicyEtag String
    The entity tag (ETag) for the live object lifecycle policy on the bucket.
    replicationEnabled Boolean
    Whether or not this bucket is a replication source. By default, replicationEnabled is set to false. This will be set to 'true' when you create a replication policy for the bucket.
    retentionRules List<Property Map>
    User specified list of retention rules for the bucket.
    storageTier String
    The storage tier type assigned to the bucket. A bucket is set to Standard tier by default, which means objects uploaded or copied to the bucket will be in the standard storage tier. When the Archive tier type is set explicitly for a bucket, objects uploaded or copied to the bucket will be stored in archive storage. The storageTier property is immutable after bucket is created.
    timeCreated String
    The date and time the bucket was created, as described in RFC 2616.
    versioning String
    The versioning status on the bucket. A bucket is created with versioning Disabled by default. For versioning Enabled, objects are protected from overwrites and deletes, by maintaining their version history. When versioning is Suspended, the previous versions will still remain but new versions will no longer be created when overwitten or deleted.

    Supporting Types

    GetBucketRetentionRule

    DisplayName string
    User specified name for the retention rule.
    Durations List<GetBucketRetentionRuleDuration>
    RetentionRuleId string
    Unique identifier for the retention rule.
    TimeCreated string
    The date and time the bucket was created, as described in RFC 2616.
    TimeModified string
    The date and time that the retention rule was modified as per RFC3339.
    TimeRuleLocked string
    The date and time as per RFC 3339 after which this rule becomes locked. and can only be deleted by deleting the bucket.
    DisplayName string
    User specified name for the retention rule.
    Durations []GetBucketRetentionRuleDuration
    RetentionRuleId string
    Unique identifier for the retention rule.
    TimeCreated string
    The date and time the bucket was created, as described in RFC 2616.
    TimeModified string
    The date and time that the retention rule was modified as per RFC3339.
    TimeRuleLocked string
    The date and time as per RFC 3339 after which this rule becomes locked. and can only be deleted by deleting the bucket.
    displayName String
    User specified name for the retention rule.
    durations List<GetBucketRetentionRuleDuration>
    retentionRuleId String
    Unique identifier for the retention rule.
    timeCreated String
    The date and time the bucket was created, as described in RFC 2616.
    timeModified String
    The date and time that the retention rule was modified as per RFC3339.
    timeRuleLocked String
    The date and time as per RFC 3339 after which this rule becomes locked. and can only be deleted by deleting the bucket.
    displayName string
    User specified name for the retention rule.
    durations GetBucketRetentionRuleDuration[]
    retentionRuleId string
    Unique identifier for the retention rule.
    timeCreated string
    The date and time the bucket was created, as described in RFC 2616.
    timeModified string
    The date and time that the retention rule was modified as per RFC3339.
    timeRuleLocked string
    The date and time as per RFC 3339 after which this rule becomes locked. and can only be deleted by deleting the bucket.
    display_name str
    User specified name for the retention rule.
    durations Sequence[objectstorage.GetBucketRetentionRuleDuration]
    retention_rule_id str
    Unique identifier for the retention rule.
    time_created str
    The date and time the bucket was created, as described in RFC 2616.
    time_modified str
    The date and time that the retention rule was modified as per RFC3339.
    time_rule_locked str
    The date and time as per RFC 3339 after which this rule becomes locked. and can only be deleted by deleting the bucket.
    displayName String
    User specified name for the retention rule.
    durations List<Property Map>
    retentionRuleId String
    Unique identifier for the retention rule.
    timeCreated String
    The date and time the bucket was created, as described in RFC 2616.
    timeModified String
    The date and time that the retention rule was modified as per RFC3339.
    timeRuleLocked String
    The date and time as per RFC 3339 after which this rule becomes locked. and can only be deleted by deleting the bucket.

    GetBucketRetentionRuleDuration

    TimeAmount string
    The timeAmount is interpreted in units defined by the timeUnit parameter, and is calculated in relation to each object's Last-Modified timestamp.
    TimeUnit string
    The unit that should be used to interpret timeAmount.
    TimeAmount string
    The timeAmount is interpreted in units defined by the timeUnit parameter, and is calculated in relation to each object's Last-Modified timestamp.
    TimeUnit string
    The unit that should be used to interpret timeAmount.
    timeAmount String
    The timeAmount is interpreted in units defined by the timeUnit parameter, and is calculated in relation to each object's Last-Modified timestamp.
    timeUnit String
    The unit that should be used to interpret timeAmount.
    timeAmount string
    The timeAmount is interpreted in units defined by the timeUnit parameter, and is calculated in relation to each object's Last-Modified timestamp.
    timeUnit string
    The unit that should be used to interpret timeAmount.
    time_amount str
    The timeAmount is interpreted in units defined by the timeUnit parameter, and is calculated in relation to each object's Last-Modified timestamp.
    time_unit str
    The unit that should be used to interpret timeAmount.
    timeAmount String
    The timeAmount is interpreted in units defined by the timeUnit parameter, and is calculated in relation to each object's Last-Modified timestamp.
    timeUnit String
    The unit that should be used to interpret timeAmount.

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v1.32.0 published on Thursday, Apr 18, 2024 by Pulumi