1. Packages
  2. Alibaba Cloud
  3. API Docs
  4. oss
  5. getBuckets
Alibaba Cloud v3.57.0 published on Saturday, Jun 15, 2024 by Pulumi

alicloud.oss.getBuckets

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.57.0 published on Saturday, Jun 15, 2024 by Pulumi

    This data source provides the OSS buckets of the current Alibaba Cloud user.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const ossBucketsDs = alicloud.oss.getBuckets({
        nameRegex: "sample_oss_bucket",
    });
    export const firstOssBucketName = ossBucketsDs.then(ossBucketsDs => ossBucketsDs.buckets?.[0]?.name);
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    oss_buckets_ds = alicloud.oss.get_buckets(name_regex="sample_oss_bucket")
    pulumi.export("firstOssBucketName", oss_buckets_ds.buckets[0].name)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/oss"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		ossBucketsDs, err := oss.GetBuckets(ctx, &oss.GetBucketsArgs{
    			NameRegex: pulumi.StringRef("sample_oss_bucket"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("firstOssBucketName", ossBucketsDs.Buckets[0].Name)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var ossBucketsDs = AliCloud.Oss.GetBuckets.Invoke(new()
        {
            NameRegex = "sample_oss_bucket",
        });
    
        return new Dictionary<string, object?>
        {
            ["firstOssBucketName"] = ossBucketsDs.Apply(getBucketsResult => getBucketsResult.Buckets[0]?.Name),
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.oss.OssFunctions;
    import com.pulumi.alicloud.oss.inputs.GetBucketsArgs;
    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 ossBucketsDs = OssFunctions.getBuckets(GetBucketsArgs.builder()
                .nameRegex("sample_oss_bucket")
                .build());
    
            ctx.export("firstOssBucketName", ossBucketsDs.applyValue(getBucketsResult -> getBucketsResult.buckets()[0].name()));
        }
    }
    
    variables:
      ossBucketsDs:
        fn::invoke:
          Function: alicloud:oss:getBuckets
          Arguments:
            nameRegex: sample_oss_bucket
    outputs:
      firstOssBucketName: ${ossBucketsDs.buckets[0].name}
    

    Using getBuckets

    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 getBuckets(args: GetBucketsArgs, opts?: InvokeOptions): Promise<GetBucketsResult>
    function getBucketsOutput(args: GetBucketsOutputArgs, opts?: InvokeOptions): Output<GetBucketsResult>
    def get_buckets(name_regex: Optional[str] = None,
                    output_file: Optional[str] = None,
                    opts: Optional[InvokeOptions] = None) -> GetBucketsResult
    def get_buckets_output(name_regex: Optional[pulumi.Input[str]] = None,
                    output_file: Optional[pulumi.Input[str]] = None,
                    opts: Optional[InvokeOptions] = None) -> Output[GetBucketsResult]
    func GetBuckets(ctx *Context, args *GetBucketsArgs, opts ...InvokeOption) (*GetBucketsResult, error)
    func GetBucketsOutput(ctx *Context, args *GetBucketsOutputArgs, opts ...InvokeOption) GetBucketsResultOutput

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

    public static class GetBuckets 
    {
        public static Task<GetBucketsResult> InvokeAsync(GetBucketsArgs args, InvokeOptions? opts = null)
        public static Output<GetBucketsResult> Invoke(GetBucketsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetBucketsResult> getBuckets(GetBucketsArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: alicloud:oss/getBuckets:getBuckets
      arguments:
        # arguments dictionary

    The following arguments are supported:

    NameRegex string
    A regex string to filter results by bucket name.
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    NameRegex string
    A regex string to filter results by bucket name.
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    nameRegex String
    A regex string to filter results by bucket name.
    outputFile String
    File name where to save data source results (after running pulumi preview).
    nameRegex string
    A regex string to filter results by bucket name.
    outputFile string
    File name where to save data source results (after running pulumi preview).
    name_regex str
    A regex string to filter results by bucket name.
    output_file str
    File name where to save data source results (after running pulumi preview).
    nameRegex String
    A regex string to filter results by bucket name.
    outputFile String
    File name where to save data source results (after running pulumi preview).

    getBuckets Result

    The following output properties are available:

    Buckets List<Pulumi.AliCloud.Oss.Outputs.GetBucketsBucket>
    A list of buckets. Each element contains the following attributes:
    Id string
    The provider-assigned unique ID for this managed resource.
    Names List<string>
    A list of bucket names.
    NameRegex string
    OutputFile string
    Buckets []GetBucketsBucket
    A list of buckets. Each element contains the following attributes:
    Id string
    The provider-assigned unique ID for this managed resource.
    Names []string
    A list of bucket names.
    NameRegex string
    OutputFile string
    buckets List<GetBucketsBucket>
    A list of buckets. Each element contains the following attributes:
    id String
    The provider-assigned unique ID for this managed resource.
    names List<String>
    A list of bucket names.
    nameRegex String
    outputFile String
    buckets GetBucketsBucket[]
    A list of buckets. Each element contains the following attributes:
    id string
    The provider-assigned unique ID for this managed resource.
    names string[]
    A list of bucket names.
    nameRegex string
    outputFile string
    buckets Sequence[GetBucketsBucket]
    A list of buckets. Each element contains the following attributes:
    id str
    The provider-assigned unique ID for this managed resource.
    names Sequence[str]
    A list of bucket names.
    name_regex str
    output_file str
    buckets List<Property Map>
    A list of buckets. Each element contains the following attributes:
    id String
    The provider-assigned unique ID for this managed resource.
    names List<String>
    A list of bucket names.
    nameRegex String
    outputFile String

    Supporting Types

    GetBucketsBucket

    Acl string
    Bucket access control list. Possible values: private, public-read and public-read-write.
    CorsRules List<Pulumi.AliCloud.Oss.Inputs.GetBucketsBucketCorsRule>
    A list of CORS rule configurations. Each element contains the following attributes:
    CreationDate string
    Bucket creation date.
    ExtranetEndpoint string
    Internet domain name for accessing the bucket from outside.
    IntranetEndpoint string
    Intranet domain name for accessing the bucket from an ECS instance in the same region.
    LifecycleRules List<Pulumi.AliCloud.Oss.Inputs.GetBucketsBucketLifecycleRule>
    A list CORS of lifecycle configurations. When Lifecycle is enabled, OSS automatically deletes the objects or transitions the objects (to another storage class) corresponding the lifecycle rules on a regular basis. Each element contains the following attributes:
    Location string
    Region of the data center where the bucket is located.
    Logging Pulumi.AliCloud.Oss.Inputs.GetBucketsBucketLogging
    A list of one element containing configuration parameters used for storing access log information. It contains the following attributes:
    Name string
    Bucket name.
    Owner string
    Bucket owner.
    RedundancyType string
    Redundancy type. Possible values: LRS, and ZRS.
    RefererConfig Pulumi.AliCloud.Oss.Inputs.GetBucketsBucketRefererConfig
    A list of one element containing referer configuration. It contains the following attributes:
    ServerSideEncryptionRule Pulumi.AliCloud.Oss.Inputs.GetBucketsBucketServerSideEncryptionRule
    A configuration of default encryption for a bucket. It contains the following attributes:
    StorageClass string
    Object storage type. Possible values: Standard, IA, Archive and ColdArchive.
    Tags Dictionary<string, object>
    A mapping of tags.
    Versioning Pulumi.AliCloud.Oss.Inputs.GetBucketsBucketVersioning
    If present , the versioning state has been set on the bucket. It contains the following attribute.
    Website Pulumi.AliCloud.Oss.Inputs.GetBucketsBucketWebsite
    A list of one element containing configuration parameters used when the bucket is used as a website. It contains the following attributes:
    Policy string
    Acl string
    Bucket access control list. Possible values: private, public-read and public-read-write.
    CorsRules []GetBucketsBucketCorsRule
    A list of CORS rule configurations. Each element contains the following attributes:
    CreationDate string
    Bucket creation date.
    ExtranetEndpoint string
    Internet domain name for accessing the bucket from outside.
    IntranetEndpoint string
    Intranet domain name for accessing the bucket from an ECS instance in the same region.
    LifecycleRules []GetBucketsBucketLifecycleRule
    A list CORS of lifecycle configurations. When Lifecycle is enabled, OSS automatically deletes the objects or transitions the objects (to another storage class) corresponding the lifecycle rules on a regular basis. Each element contains the following attributes:
    Location string
    Region of the data center where the bucket is located.
    Logging GetBucketsBucketLogging
    A list of one element containing configuration parameters used for storing access log information. It contains the following attributes:
    Name string
    Bucket name.
    Owner string
    Bucket owner.
    RedundancyType string
    Redundancy type. Possible values: LRS, and ZRS.
    RefererConfig GetBucketsBucketRefererConfig
    A list of one element containing referer configuration. It contains the following attributes:
    ServerSideEncryptionRule GetBucketsBucketServerSideEncryptionRule
    A configuration of default encryption for a bucket. It contains the following attributes:
    StorageClass string
    Object storage type. Possible values: Standard, IA, Archive and ColdArchive.
    Tags map[string]interface{}
    A mapping of tags.
    Versioning GetBucketsBucketVersioning
    If present , the versioning state has been set on the bucket. It contains the following attribute.
    Website GetBucketsBucketWebsite
    A list of one element containing configuration parameters used when the bucket is used as a website. It contains the following attributes:
    Policy string
    acl String
    Bucket access control list. Possible values: private, public-read and public-read-write.
    corsRules List<GetBucketsBucketCorsRule>
    A list of CORS rule configurations. Each element contains the following attributes:
    creationDate String
    Bucket creation date.
    extranetEndpoint String
    Internet domain name for accessing the bucket from outside.
    intranetEndpoint String
    Intranet domain name for accessing the bucket from an ECS instance in the same region.
    lifecycleRules List<GetBucketsBucketLifecycleRule>
    A list CORS of lifecycle configurations. When Lifecycle is enabled, OSS automatically deletes the objects or transitions the objects (to another storage class) corresponding the lifecycle rules on a regular basis. Each element contains the following attributes:
    location String
    Region of the data center where the bucket is located.
    logging GetBucketsBucketLogging
    A list of one element containing configuration parameters used for storing access log information. It contains the following attributes:
    name String
    Bucket name.
    owner String
    Bucket owner.
    redundancyType String
    Redundancy type. Possible values: LRS, and ZRS.
    refererConfig GetBucketsBucketRefererConfig
    A list of one element containing referer configuration. It contains the following attributes:
    serverSideEncryptionRule GetBucketsBucketServerSideEncryptionRule
    A configuration of default encryption for a bucket. It contains the following attributes:
    storageClass String
    Object storage type. Possible values: Standard, IA, Archive and ColdArchive.
    tags Map<String,Object>
    A mapping of tags.
    versioning GetBucketsBucketVersioning
    If present , the versioning state has been set on the bucket. It contains the following attribute.
    website GetBucketsBucketWebsite
    A list of one element containing configuration parameters used when the bucket is used as a website. It contains the following attributes:
    policy String
    acl string
    Bucket access control list. Possible values: private, public-read and public-read-write.
    corsRules GetBucketsBucketCorsRule[]
    A list of CORS rule configurations. Each element contains the following attributes:
    creationDate string
    Bucket creation date.
    extranetEndpoint string
    Internet domain name for accessing the bucket from outside.
    intranetEndpoint string
    Intranet domain name for accessing the bucket from an ECS instance in the same region.
    lifecycleRules GetBucketsBucketLifecycleRule[]
    A list CORS of lifecycle configurations. When Lifecycle is enabled, OSS automatically deletes the objects or transitions the objects (to another storage class) corresponding the lifecycle rules on a regular basis. Each element contains the following attributes:
    location string
    Region of the data center where the bucket is located.
    logging GetBucketsBucketLogging
    A list of one element containing configuration parameters used for storing access log information. It contains the following attributes:
    name string
    Bucket name.
    owner string
    Bucket owner.
    redundancyType string
    Redundancy type. Possible values: LRS, and ZRS.
    refererConfig GetBucketsBucketRefererConfig
    A list of one element containing referer configuration. It contains the following attributes:
    serverSideEncryptionRule GetBucketsBucketServerSideEncryptionRule
    A configuration of default encryption for a bucket. It contains the following attributes:
    storageClass string
    Object storage type. Possible values: Standard, IA, Archive and ColdArchive.
    tags {[key: string]: any}
    A mapping of tags.
    versioning GetBucketsBucketVersioning
    If present , the versioning state has been set on the bucket. It contains the following attribute.
    website GetBucketsBucketWebsite
    A list of one element containing configuration parameters used when the bucket is used as a website. It contains the following attributes:
    policy string
    acl str
    Bucket access control list. Possible values: private, public-read and public-read-write.
    cors_rules Sequence[GetBucketsBucketCorsRule]
    A list of CORS rule configurations. Each element contains the following attributes:
    creation_date str
    Bucket creation date.
    extranet_endpoint str
    Internet domain name for accessing the bucket from outside.
    intranet_endpoint str
    Intranet domain name for accessing the bucket from an ECS instance in the same region.
    lifecycle_rules Sequence[GetBucketsBucketLifecycleRule]
    A list CORS of lifecycle configurations. When Lifecycle is enabled, OSS automatically deletes the objects or transitions the objects (to another storage class) corresponding the lifecycle rules on a regular basis. Each element contains the following attributes:
    location str
    Region of the data center where the bucket is located.
    logging GetBucketsBucketLogging
    A list of one element containing configuration parameters used for storing access log information. It contains the following attributes:
    name str
    Bucket name.
    owner str
    Bucket owner.
    redundancy_type str
    Redundancy type. Possible values: LRS, and ZRS.
    referer_config GetBucketsBucketRefererConfig
    A list of one element containing referer configuration. It contains the following attributes:
    server_side_encryption_rule GetBucketsBucketServerSideEncryptionRule
    A configuration of default encryption for a bucket. It contains the following attributes:
    storage_class str
    Object storage type. Possible values: Standard, IA, Archive and ColdArchive.
    tags Mapping[str, Any]
    A mapping of tags.
    versioning GetBucketsBucketVersioning
    If present , the versioning state has been set on the bucket. It contains the following attribute.
    website GetBucketsBucketWebsite
    A list of one element containing configuration parameters used when the bucket is used as a website. It contains the following attributes:
    policy str
    acl String
    Bucket access control list. Possible values: private, public-read and public-read-write.
    corsRules List<Property Map>
    A list of CORS rule configurations. Each element contains the following attributes:
    creationDate String
    Bucket creation date.
    extranetEndpoint String
    Internet domain name for accessing the bucket from outside.
    intranetEndpoint String
    Intranet domain name for accessing the bucket from an ECS instance in the same region.
    lifecycleRules List<Property Map>
    A list CORS of lifecycle configurations. When Lifecycle is enabled, OSS automatically deletes the objects or transitions the objects (to another storage class) corresponding the lifecycle rules on a regular basis. Each element contains the following attributes:
    location String
    Region of the data center where the bucket is located.
    logging Property Map
    A list of one element containing configuration parameters used for storing access log information. It contains the following attributes:
    name String
    Bucket name.
    owner String
    Bucket owner.
    redundancyType String
    Redundancy type. Possible values: LRS, and ZRS.
    refererConfig Property Map
    A list of one element containing referer configuration. It contains the following attributes:
    serverSideEncryptionRule Property Map
    A configuration of default encryption for a bucket. It contains the following attributes:
    storageClass String
    Object storage type. Possible values: Standard, IA, Archive and ColdArchive.
    tags Map<Any>
    A mapping of tags.
    versioning Property Map
    If present , the versioning state has been set on the bucket. It contains the following attribute.
    website Property Map
    A list of one element containing configuration parameters used when the bucket is used as a website. It contains the following attributes:
    policy String

    GetBucketsBucketCorsRule

    AllowedHeaders List<string>
    Control whether the headers specified by Access-Control-Request-Headers in the OPTIONS prefetch command are allowed. Each header specified by Access-Control-Request-Headers must match a value in AllowedHeader. Each rule allows up to one wildcard “*” .
    AllowedMethods List<string>
    Specify the allowed methods for cross-domain requests. Possible values: GET, PUT, DELETE, POST and HEAD.
    AllowedOrigins List<string>
    The origins allowed for cross-domain requests. Multiple elements can be used to specify multiple allowed origins. Each rule allows up to one wildcard "*". If "*" is specified, cross-domain requests of all origins are allowed.
    ExposeHeaders List<string>
    Specify the response headers allowing users to access from an application (for example, a Javascript XMLHttpRequest object). The wildcard "*" is not allowed.
    MaxAgeSeconds int
    Specify the cache time for the returned result of a browser prefetch (OPTIONS) request to a specific resource.
    AllowedHeaders []string
    Control whether the headers specified by Access-Control-Request-Headers in the OPTIONS prefetch command are allowed. Each header specified by Access-Control-Request-Headers must match a value in AllowedHeader. Each rule allows up to one wildcard “*” .
    AllowedMethods []string
    Specify the allowed methods for cross-domain requests. Possible values: GET, PUT, DELETE, POST and HEAD.
    AllowedOrigins []string
    The origins allowed for cross-domain requests. Multiple elements can be used to specify multiple allowed origins. Each rule allows up to one wildcard "*". If "*" is specified, cross-domain requests of all origins are allowed.
    ExposeHeaders []string
    Specify the response headers allowing users to access from an application (for example, a Javascript XMLHttpRequest object). The wildcard "*" is not allowed.
    MaxAgeSeconds int
    Specify the cache time for the returned result of a browser prefetch (OPTIONS) request to a specific resource.
    allowedHeaders List<String>
    Control whether the headers specified by Access-Control-Request-Headers in the OPTIONS prefetch command are allowed. Each header specified by Access-Control-Request-Headers must match a value in AllowedHeader. Each rule allows up to one wildcard “*” .
    allowedMethods List<String>
    Specify the allowed methods for cross-domain requests. Possible values: GET, PUT, DELETE, POST and HEAD.
    allowedOrigins List<String>
    The origins allowed for cross-domain requests. Multiple elements can be used to specify multiple allowed origins. Each rule allows up to one wildcard "*". If "*" is specified, cross-domain requests of all origins are allowed.
    exposeHeaders List<String>
    Specify the response headers allowing users to access from an application (for example, a Javascript XMLHttpRequest object). The wildcard "*" is not allowed.
    maxAgeSeconds Integer
    Specify the cache time for the returned result of a browser prefetch (OPTIONS) request to a specific resource.
    allowedHeaders string[]
    Control whether the headers specified by Access-Control-Request-Headers in the OPTIONS prefetch command are allowed. Each header specified by Access-Control-Request-Headers must match a value in AllowedHeader. Each rule allows up to one wildcard “*” .
    allowedMethods string[]
    Specify the allowed methods for cross-domain requests. Possible values: GET, PUT, DELETE, POST and HEAD.
    allowedOrigins string[]
    The origins allowed for cross-domain requests. Multiple elements can be used to specify multiple allowed origins. Each rule allows up to one wildcard "*". If "*" is specified, cross-domain requests of all origins are allowed.
    exposeHeaders string[]
    Specify the response headers allowing users to access from an application (for example, a Javascript XMLHttpRequest object). The wildcard "*" is not allowed.
    maxAgeSeconds number
    Specify the cache time for the returned result of a browser prefetch (OPTIONS) request to a specific resource.
    allowed_headers Sequence[str]
    Control whether the headers specified by Access-Control-Request-Headers in the OPTIONS prefetch command are allowed. Each header specified by Access-Control-Request-Headers must match a value in AllowedHeader. Each rule allows up to one wildcard “*” .
    allowed_methods Sequence[str]
    Specify the allowed methods for cross-domain requests. Possible values: GET, PUT, DELETE, POST and HEAD.
    allowed_origins Sequence[str]
    The origins allowed for cross-domain requests. Multiple elements can be used to specify multiple allowed origins. Each rule allows up to one wildcard "*". If "*" is specified, cross-domain requests of all origins are allowed.
    expose_headers Sequence[str]
    Specify the response headers allowing users to access from an application (for example, a Javascript XMLHttpRequest object). The wildcard "*" is not allowed.
    max_age_seconds int
    Specify the cache time for the returned result of a browser prefetch (OPTIONS) request to a specific resource.
    allowedHeaders List<String>
    Control whether the headers specified by Access-Control-Request-Headers in the OPTIONS prefetch command are allowed. Each header specified by Access-Control-Request-Headers must match a value in AllowedHeader. Each rule allows up to one wildcard “*” .
    allowedMethods List<String>
    Specify the allowed methods for cross-domain requests. Possible values: GET, PUT, DELETE, POST and HEAD.
    allowedOrigins List<String>
    The origins allowed for cross-domain requests. Multiple elements can be used to specify multiple allowed origins. Each rule allows up to one wildcard "*". If "*" is specified, cross-domain requests of all origins are allowed.
    exposeHeaders List<String>
    Specify the response headers allowing users to access from an application (for example, a Javascript XMLHttpRequest object). The wildcard "*" is not allowed.
    maxAgeSeconds Number
    Specify the cache time for the returned result of a browser prefetch (OPTIONS) request to a specific resource.

    GetBucketsBucketLifecycleRule

    Enabled bool
    Indicate whether the rule is enabled or not.
    Expiration Pulumi.AliCloud.Oss.Inputs.GetBucketsBucketLifecycleRuleExpiration
    A list of one element containing expiration attributes of an object. It contains the following attributes:
    Id string
    Unique ID of the rule.
    Prefix string
    Prefix applicable to a rule. Only those objects with a matching prefix can be affected by the rule.
    Enabled bool
    Indicate whether the rule is enabled or not.
    Expiration GetBucketsBucketLifecycleRuleExpiration
    A list of one element containing expiration attributes of an object. It contains the following attributes:
    Id string
    Unique ID of the rule.
    Prefix string
    Prefix applicable to a rule. Only those objects with a matching prefix can be affected by the rule.
    enabled Boolean
    Indicate whether the rule is enabled or not.
    expiration GetBucketsBucketLifecycleRuleExpiration
    A list of one element containing expiration attributes of an object. It contains the following attributes:
    id String
    Unique ID of the rule.
    prefix String
    Prefix applicable to a rule. Only those objects with a matching prefix can be affected by the rule.
    enabled boolean
    Indicate whether the rule is enabled or not.
    expiration GetBucketsBucketLifecycleRuleExpiration
    A list of one element containing expiration attributes of an object. It contains the following attributes:
    id string
    Unique ID of the rule.
    prefix string
    Prefix applicable to a rule. Only those objects with a matching prefix can be affected by the rule.
    enabled bool
    Indicate whether the rule is enabled or not.
    expiration GetBucketsBucketLifecycleRuleExpiration
    A list of one element containing expiration attributes of an object. It contains the following attributes:
    id str
    Unique ID of the rule.
    prefix str
    Prefix applicable to a rule. Only those objects with a matching prefix can be affected by the rule.
    enabled Boolean
    Indicate whether the rule is enabled or not.
    expiration Property Map
    A list of one element containing expiration attributes of an object. It contains the following attributes:
    id String
    Unique ID of the rule.
    prefix String
    Prefix applicable to a rule. Only those objects with a matching prefix can be affected by the rule.

    GetBucketsBucketLifecycleRuleExpiration

    Date string
    Date after which the rule to take effect. The format is like 2017-03-09.
    Days int
    Indicate the number of days after the last object update until the rules take effect.
    Date string
    Date after which the rule to take effect. The format is like 2017-03-09.
    Days int
    Indicate the number of days after the last object update until the rules take effect.
    date String
    Date after which the rule to take effect. The format is like 2017-03-09.
    days Integer
    Indicate the number of days after the last object update until the rules take effect.
    date string
    Date after which the rule to take effect. The format is like 2017-03-09.
    days number
    Indicate the number of days after the last object update until the rules take effect.
    date str
    Date after which the rule to take effect. The format is like 2017-03-09.
    days int
    Indicate the number of days after the last object update until the rules take effect.
    date String
    Date after which the rule to take effect. The format is like 2017-03-09.
    days Number
    Indicate the number of days after the last object update until the rules take effect.

    GetBucketsBucketLogging

    TargetBucket string
    Bucket for storing access logs.
    TargetPrefix string
    Prefix of the saved access log file paths.
    TargetBucket string
    Bucket for storing access logs.
    TargetPrefix string
    Prefix of the saved access log file paths.
    targetBucket String
    Bucket for storing access logs.
    targetPrefix String
    Prefix of the saved access log file paths.
    targetBucket string
    Bucket for storing access logs.
    targetPrefix string
    Prefix of the saved access log file paths.
    target_bucket str
    Bucket for storing access logs.
    target_prefix str
    Prefix of the saved access log file paths.
    targetBucket String
    Bucket for storing access logs.
    targetPrefix String
    Prefix of the saved access log file paths.

    GetBucketsBucketRefererConfig

    AllowEmpty bool
    Indicate whether the access request referer field can be empty.
    Referers List<string>
    Referer access whitelist.
    AllowEmpty bool
    Indicate whether the access request referer field can be empty.
    Referers []string
    Referer access whitelist.
    allowEmpty Boolean
    Indicate whether the access request referer field can be empty.
    referers List<String>
    Referer access whitelist.
    allowEmpty boolean
    Indicate whether the access request referer field can be empty.
    referers string[]
    Referer access whitelist.
    allow_empty bool
    Indicate whether the access request referer field can be empty.
    referers Sequence[str]
    Referer access whitelist.
    allowEmpty Boolean
    Indicate whether the access request referer field can be empty.
    referers List<String>
    Referer access whitelist.

    GetBucketsBucketServerSideEncryptionRule

    KmsMasterKeyId string
    The alibaba cloud KMS master key ID used for the SSE-KMS encryption.
    SseAlgorithm string
    The server-side encryption algorithm to use.
    KmsMasterKeyId string
    The alibaba cloud KMS master key ID used for the SSE-KMS encryption.
    SseAlgorithm string
    The server-side encryption algorithm to use.
    kmsMasterKeyId String
    The alibaba cloud KMS master key ID used for the SSE-KMS encryption.
    sseAlgorithm String
    The server-side encryption algorithm to use.
    kmsMasterKeyId string
    The alibaba cloud KMS master key ID used for the SSE-KMS encryption.
    sseAlgorithm string
    The server-side encryption algorithm to use.
    kms_master_key_id str
    The alibaba cloud KMS master key ID used for the SSE-KMS encryption.
    sse_algorithm str
    The server-side encryption algorithm to use.
    kmsMasterKeyId String
    The alibaba cloud KMS master key ID used for the SSE-KMS encryption.
    sseAlgorithm String
    The server-side encryption algorithm to use.

    GetBucketsBucketVersioning

    Status string
    A bucket versioning state. Possible values:Enabled and Suspended.
    Status string
    A bucket versioning state. Possible values:Enabled and Suspended.
    status String
    A bucket versioning state. Possible values:Enabled and Suspended.
    status string
    A bucket versioning state. Possible values:Enabled and Suspended.
    status str
    A bucket versioning state. Possible values:Enabled and Suspended.
    status String
    A bucket versioning state. Possible values:Enabled and Suspended.

    GetBucketsBucketWebsite

    ErrorDocument string
    Key of the HTML document containing the error page.
    IndexDocument string
    Key of the HTML document containing the home page.
    ErrorDocument string
    Key of the HTML document containing the error page.
    IndexDocument string
    Key of the HTML document containing the home page.
    errorDocument String
    Key of the HTML document containing the error page.
    indexDocument String
    Key of the HTML document containing the home page.
    errorDocument string
    Key of the HTML document containing the error page.
    indexDocument string
    Key of the HTML document containing the home page.
    error_document str
    Key of the HTML document containing the error page.
    index_document str
    Key of the HTML document containing the home page.
    errorDocument String
    Key of the HTML document containing the error page.
    indexDocument String
    Key of the HTML document containing the home page.

    Package Details

    Repository
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the alicloud Terraform Provider.
    alicloud logo
    Alibaba Cloud v3.57.0 published on Saturday, Jun 15, 2024 by Pulumi