Alibaba Cloud v3.75.0 published on Friday, Mar 7, 2025 by Pulumi
alicloud.oss.getBuckets
Explore with Pulumi AI
This data source provides the OSS buckets of the current Alibaba Cloud user.
NOTE: Available since v1.17.0.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
import * as random from "@pulumi/random";
const _default = new random.index.Integer("default", {
    max: 99999,
    min: 10000,
});
const bucket = new alicloud.oss.Bucket("bucket", {bucket: `oss-tf-example-${_default.result}`});
const ossBucketsDs = alicloud.oss.getBucketsOutput({
    nameRegex: bucket.bucket,
});
export const firstOssBucketName = ossBucketsDs.apply(ossBucketsDs => ossBucketsDs.buckets?.[0]?.name);
import pulumi
import pulumi_alicloud as alicloud
import pulumi_random as random
default = random.index.Integer("default",
    max=99999,
    min=10000)
bucket = alicloud.oss.Bucket("bucket", bucket=f"oss-tf-example-{default['result']}")
oss_buckets_ds = alicloud.oss.get_buckets_output(name_regex=bucket.bucket)
pulumi.export("firstOssBucketName", oss_buckets_ds.buckets[0].name)
package main
import (
	"fmt"
	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/oss"
	"github.com/pulumi/pulumi-random/sdk/v4/go/random"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_default, err := random.NewInteger(ctx, "default", &random.IntegerArgs{
			Max: 99999,
			Min: 10000,
		})
		if err != nil {
			return err
		}
		bucket, err := oss.NewBucket(ctx, "bucket", &oss.BucketArgs{
			Bucket: pulumi.Sprintf("oss-tf-example-%v", _default.Result),
		})
		if err != nil {
			return err
		}
		ossBucketsDs := oss.GetBucketsOutput(ctx, oss.GetBucketsOutputArgs{
			NameRegex: bucket.Bucket,
		}, nil)
		ctx.Export("firstOssBucketName", ossBucketsDs.ApplyT(func(ossBucketsDs oss.GetBucketsResult) (*string, error) {
			return &ossBucketsDs.Buckets[0].Name, nil
		}).(pulumi.StringPtrOutput))
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
using Random = Pulumi.Random;
return await Deployment.RunAsync(() => 
{
    var @default = new Random.Index.Integer("default", new()
    {
        Max = 99999,
        Min = 10000,
    });
    var bucket = new AliCloud.Oss.Bucket("bucket", new()
    {
        BucketName = $"oss-tf-example-{@default.Result}",
    });
    var ossBucketsDs = AliCloud.Oss.GetBuckets.Invoke(new()
    {
        NameRegex = bucket.BucketName,
    });
    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.random.integer;
import com.pulumi.random.IntegerArgs;
import com.pulumi.alicloud.oss.Bucket;
import com.pulumi.alicloud.oss.BucketArgs;
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) {
        var default_ = new Integer("default", IntegerArgs.builder()
            .max(99999)
            .min(10000)
            .build());
        var bucket = new Bucket("bucket", BucketArgs.builder()
            .bucket(String.format("oss-tf-example-%s", default_.result()))
            .build());
        final var ossBucketsDs = OssFunctions.getBuckets(GetBucketsArgs.builder()
            .nameRegex(bucket.bucket())
            .build());
        ctx.export("firstOssBucketName", ossBucketsDs.applyValue(getBucketsResult -> getBucketsResult).applyValue(ossBucketsDs -> ossBucketsDs.applyValue(getBucketsResult -> getBucketsResult.buckets()[0].name())));
    }
}
resources:
  default:
    type: random:integer
    properties:
      max: 99999
      min: 10000
  bucket:
    type: alicloud:oss:Bucket
    properties:
      bucket: oss-tf-example-${default.result}
variables:
  ossBucketsDs:
    fn::invoke:
      function: alicloud:oss:getBuckets
      arguments:
        nameRegex: ${bucket.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)
public static Output<GetBucketsResult> getBuckets(GetBucketsArgs args, InvokeOptions options)
fn::invoke:
  function: alicloud:oss/getBuckets:getBuckets
  arguments:
    # arguments dictionaryThe 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.Ali Cloud. Oss. Outputs. Get Buckets Bucket> 
- 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
[]GetBuckets Bucket 
- 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<GetBuckets Bucket> 
- 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
GetBuckets Bucket[] 
- 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[GetBuckets Bucket] 
- 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-readandpublic-read-write.
- CorsRules List<Pulumi.Ali Cloud. Oss. Inputs. Get Buckets Bucket Cors Rule> 
- 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.Ali Cloud. Oss. Inputs. Get Buckets Bucket Lifecycle Rule> 
- 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.Ali Cloud. Oss. Inputs. Get Buckets Bucket Logging 
- 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.
- Policy string
- The policies configured for a specified bucket.
- RedundancyType string
- Redundancy type. Possible values: LRS, andZRS.
- RefererConfig Pulumi.Ali Cloud. Oss. Inputs. Get Buckets Bucket Referer Config 
- A list of one element containing referer configuration. It contains the following attributes:
- ServerSide Pulumi.Encryption Rule Ali Cloud. Oss. Inputs. Get Buckets Bucket Server Side Encryption Rule 
- A configuration of default encryption for a bucket. It contains the following attributes:
- StorageClass string
- Object storage type. Possible values: Standard,IA,ArchiveandColdArchive.
- Dictionary<string, string>
- A mapping of tags.
- Versioning
Pulumi.Ali Cloud. Oss. Inputs. Get Buckets Bucket Versioning 
- If present , the versioning state has been set on the bucket. It contains the following attribute.
- Website
Pulumi.Ali Cloud. Oss. Inputs. Get Buckets Bucket Website 
- A list of one element containing configuration parameters used when the bucket is used as a website. It contains the following attributes:
- Acl string
- Bucket access control list. Possible values: private,public-readandpublic-read-write.
- CorsRules []GetBuckets Bucket Cors Rule 
- 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 []GetBuckets Bucket Lifecycle Rule 
- 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
GetBuckets Bucket Logging 
- 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.
- Policy string
- The policies configured for a specified bucket.
- RedundancyType string
- Redundancy type. Possible values: LRS, andZRS.
- RefererConfig GetBuckets Bucket Referer Config 
- A list of one element containing referer configuration. It contains the following attributes:
- ServerSide GetEncryption Rule Buckets Bucket Server Side Encryption Rule 
- A configuration of default encryption for a bucket. It contains the following attributes:
- StorageClass string
- Object storage type. Possible values: Standard,IA,ArchiveandColdArchive.
- map[string]string
- A mapping of tags.
- Versioning
GetBuckets Bucket Versioning 
- If present , the versioning state has been set on the bucket. It contains the following attribute.
- Website
GetBuckets Bucket Website 
- A list of one element containing configuration parameters used when the bucket is used as a website. It contains the following attributes:
- acl String
- Bucket access control list. Possible values: private,public-readandpublic-read-write.
- corsRules List<GetBuckets Bucket Cors Rule> 
- 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<GetBuckets Bucket Lifecycle Rule> 
- 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
GetBuckets Bucket Logging 
- 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.
- policy String
- The policies configured for a specified bucket.
- redundancyType String
- Redundancy type. Possible values: LRS, andZRS.
- refererConfig GetBuckets Bucket Referer Config 
- A list of one element containing referer configuration. It contains the following attributes:
- serverSide GetEncryption Rule Buckets Bucket Server Side Encryption Rule 
- A configuration of default encryption for a bucket. It contains the following attributes:
- storageClass String
- Object storage type. Possible values: Standard,IA,ArchiveandColdArchive.
- Map<String,String>
- A mapping of tags.
- versioning
GetBuckets Bucket Versioning 
- If present , the versioning state has been set on the bucket. It contains the following attribute.
- website
GetBuckets Bucket Website 
- A list of one element containing configuration parameters used when the bucket is used as a website. It contains the following attributes:
- acl string
- Bucket access control list. Possible values: private,public-readandpublic-read-write.
- corsRules GetBuckets Bucket Cors Rule[] 
- 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 GetBuckets Bucket Lifecycle Rule[] 
- 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
GetBuckets Bucket Logging 
- 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.
- policy string
- The policies configured for a specified bucket.
- redundancyType string
- Redundancy type. Possible values: LRS, andZRS.
- refererConfig GetBuckets Bucket Referer Config 
- A list of one element containing referer configuration. It contains the following attributes:
- serverSide GetEncryption Rule Buckets Bucket Server Side Encryption Rule 
- A configuration of default encryption for a bucket. It contains the following attributes:
- storageClass string
- Object storage type. Possible values: Standard,IA,ArchiveandColdArchive.
- {[key: string]: string}
- A mapping of tags.
- versioning
GetBuckets Bucket Versioning 
- If present , the versioning state has been set on the bucket. It contains the following attribute.
- website
GetBuckets Bucket Website 
- A list of one element containing configuration parameters used when the bucket is used as a website. It contains the following attributes:
- acl str
- Bucket access control list. Possible values: private,public-readandpublic-read-write.
- cors_rules Sequence[GetBuckets Bucket Cors Rule] 
- 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[GetBuckets Bucket Lifecycle Rule] 
- 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
GetBuckets Bucket Logging 
- 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.
- policy str
- The policies configured for a specified bucket.
- redundancy_type str
- Redundancy type. Possible values: LRS, andZRS.
- referer_config GetBuckets Bucket Referer Config 
- A list of one element containing referer configuration. It contains the following attributes:
- server_side_ Getencryption_ rule Buckets Bucket Server Side Encryption Rule 
- A configuration of default encryption for a bucket. It contains the following attributes:
- storage_class str
- Object storage type. Possible values: Standard,IA,ArchiveandColdArchive.
- Mapping[str, str]
- A mapping of tags.
- versioning
GetBuckets Bucket Versioning 
- If present , the versioning state has been set on the bucket. It contains the following attribute.
- website
GetBuckets Bucket Website 
- A list of one element containing configuration parameters used when the bucket is used as a website. It contains the following attributes:
- acl String
- Bucket access control list. Possible values: private,public-readandpublic-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.
- policy String
- The policies configured for a specified bucket.
- redundancyType String
- Redundancy type. Possible values: LRS, andZRS.
- refererConfig Property Map
- A list of one element containing referer configuration. It contains the following attributes:
- serverSide Property MapEncryption Rule 
- A configuration of default encryption for a bucket. It contains the following attributes:
- storageClass String
- Object storage type. Possible values: Standard,IA,ArchiveandColdArchive.
- Map<String>
- 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:
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,POSTandHEAD.
- 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.
- MaxAge intSeconds 
- 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,POSTandHEAD.
- 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.
- MaxAge intSeconds 
- 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,POSTandHEAD.
- 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.
- maxAge IntegerSeconds 
- 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,POSTandHEAD.
- 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.
- maxAge numberSeconds 
- 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,POSTandHEAD.
- 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_ intseconds 
- 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,POSTandHEAD.
- 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.
- maxAge NumberSeconds 
- 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.Ali Cloud. Oss. Inputs. Get Buckets Bucket Lifecycle Rule Expiration 
- 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
GetBuckets Bucket Lifecycle Rule Expiration 
- 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
GetBuckets Bucket Lifecycle Rule Expiration 
- 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
GetBuckets Bucket Lifecycle Rule Expiration 
- 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
GetBuckets Bucket Lifecycle Rule Expiration 
- 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     
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      
- KmsMaster stringKey Id 
- The alibaba cloud KMS master key ID used for the SSE-KMS encryption.
- SseAlgorithm string
- The server-side encryption algorithm to use.
- KmsMaster stringKey Id 
- The alibaba cloud KMS master key ID used for the SSE-KMS encryption.
- SseAlgorithm string
- The server-side encryption algorithm to use.
- kmsMaster StringKey Id 
- The alibaba cloud KMS master key ID used for the SSE-KMS encryption.
- sseAlgorithm String
- The server-side encryption algorithm to use.
- kmsMaster stringKey Id 
- The alibaba cloud KMS master key ID used for the SSE-KMS encryption.
- sseAlgorithm string
- The server-side encryption algorithm to use.
- kms_master_ strkey_ id 
- The alibaba cloud KMS master key ID used for the SSE-KMS encryption.
- sse_algorithm str
- The server-side encryption algorithm to use.
- kmsMaster StringKey Id 
- 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:EnabledandSuspended.
- Status string
- A bucket versioning state. Possible values:EnabledandSuspended.
- status String
- A bucket versioning state. Possible values:EnabledandSuspended.
- status string
- A bucket versioning state. Possible values:EnabledandSuspended.
- status str
- A bucket versioning state. Possible values:EnabledandSuspended.
- status String
- A bucket versioning state. Possible values:EnabledandSuspended.
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 alicloudTerraform Provider.