Alibaba Cloud v3.74.0 published on Monday, Jan 27, 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 {
_, 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 dictionary
The following arguments are supported:
- Name
Regex string - A regex string to filter results by bucket name.
- Output
File string - File name where to save data source results (after running
pulumi preview
).
- Name
Regex string - A regex string to filter results by bucket name.
- Output
File string - File name where to save data source results (after running
pulumi preview
).
- name
Regex String - A regex string to filter results by bucket name.
- output
File String - File name where to save data source results (after running
pulumi preview
).
- name
Regex string - A regex string to filter results by bucket name.
- output
File 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
).
- name
Regex String - A regex string to filter results by bucket name.
- output
File 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.
- Name
Regex string - Output
File string
- Buckets
[]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 []string
- A list of bucket names.
- Name
Regex string - Output
File string
- buckets
List<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.
- name
Regex String - output
File String
- buckets
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 string[]
- A list of bucket names.
- name
Regex string - output
File string
- buckets
Sequence[Get
Buckets 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.
- name
Regex String - output
File String
Supporting Types
GetBucketsBucket
- Acl string
- Bucket access control list. Possible values:
private
,public-read
andpublic-read-write
. - Cors
Rules List<Pulumi.Ali Cloud. Oss. Inputs. Get Buckets Bucket Cors Rule> - A list of CORS rule configurations. Each element contains the following attributes:
- Creation
Date string - Bucket creation date.
- Extranet
Endpoint string - Internet domain name for accessing the bucket from outside.
- Intranet
Endpoint string - Intranet domain name for accessing the bucket from an ECS instance in the same region.
- Lifecycle
Rules 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.
- Redundancy
Type string - Redundancy type. Possible values:
LRS
, andZRS
. - Referer
Config Pulumi.Ali Cloud. Oss. Inputs. Get Buckets Bucket Referer Config - A list of one element containing referer configuration. It contains the following attributes:
- Server
Side 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:
- Storage
Class string - Object storage type. Possible values:
Standard
,IA
,Archive
andColdArchive
. - 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-read
andpublic-read-write
. - Cors
Rules []GetBuckets Bucket Cors Rule - A list of CORS rule configurations. Each element contains the following attributes:
- Creation
Date string - Bucket creation date.
- Extranet
Endpoint string - Internet domain name for accessing the bucket from outside.
- Intranet
Endpoint string - Intranet domain name for accessing the bucket from an ECS instance in the same region.
- Lifecycle
Rules []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
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.
- Redundancy
Type string - 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 string - Object storage type. Possible values:
Standard
,IA
,Archive
andColdArchive
. - map[string]string
- A mapping of tags.
- Versioning
Get
Buckets Bucket Versioning - If present , the versioning state has been set on the bucket. It contains the following attribute.
- Website
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-read
andpublic-read-write
. - cors
Rules List<GetBuckets Bucket Cors Rule> - A list of CORS rule configurations. Each element contains the following attributes:
- creation
Date String - Bucket creation date.
- extranet
Endpoint String - Internet domain name for accessing the bucket from outside.
- intranet
Endpoint String - Intranet domain name for accessing the bucket from an ECS instance in the same region.
- lifecycle
Rules 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
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.
- redundancy
Type String - 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 String - Object storage type. Possible values:
Standard
,IA
,Archive
andColdArchive
. - Map<String,String>
- A mapping of tags.
- versioning
Get
Buckets Bucket Versioning - If present , the versioning state has been set on the bucket. It contains the following attribute.
- website
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-read
andpublic-read-write
. - cors
Rules GetBuckets Bucket Cors Rule[] - A list of CORS rule configurations. Each element contains the following attributes:
- creation
Date string - Bucket creation date.
- extranet
Endpoint string - Internet domain name for accessing the bucket from outside.
- intranet
Endpoint string - Intranet domain name for accessing the bucket from an ECS instance in the same region.
- lifecycle
Rules 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
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.
- redundancy
Type string - 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 string - Object storage type. Possible values:
Standard
,IA
,Archive
andColdArchive
. - {[key: string]: string}
- A mapping of tags.
- versioning
Get
Buckets Bucket Versioning - If present , the versioning state has been set on the bucket. It contains the following attribute.
- website
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 str
- Bucket access control list. Possible values:
private
,public-read
andpublic-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
Get
Buckets 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
,Archive
andColdArchive
. - Mapping[str, str]
- A mapping of tags.
- versioning
Get
Buckets Bucket Versioning - If present , the versioning state has been set on the bucket. It contains the following attribute.
- website
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-read
andpublic-read-write
. - cors
Rules List<Property Map> - A list of CORS rule configurations. Each element contains the following attributes:
- creation
Date String - Bucket creation date.
- extranet
Endpoint String - Internet domain name for accessing the bucket from outside.
- intranet
Endpoint String - Intranet domain name for accessing the bucket from an ECS instance in the same region.
- lifecycle
Rules 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.
- redundancy
Type String - Redundancy type. Possible values:
LRS
, andZRS
. - referer
Config Property Map - A list of one element containing referer configuration. It contains the following attributes:
- server
Side Property MapEncryption Rule - A configuration of default encryption for a bucket. It contains the following attributes:
- storage
Class String - Object storage type. Possible values:
Standard
,IA
,Archive
andColdArchive
. - 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
- Allowed
Headers 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 “*” .
- Allowed
Methods List<string> - Specify the allowed methods for cross-domain requests. Possible values:
GET
,PUT
,DELETE
,POST
andHEAD
. - Allowed
Origins 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.
- Expose
Headers List<string> - 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.
- Allowed
Headers []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 “*” .
- Allowed
Methods []string - Specify the allowed methods for cross-domain requests. Possible values:
GET
,PUT
,DELETE
,POST
andHEAD
. - Allowed
Origins []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.
- Expose
Headers []string - 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.
- allowed
Headers 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 “*” .
- allowed
Methods List<String> - Specify the allowed methods for cross-domain requests. Possible values:
GET
,PUT
,DELETE
,POST
andHEAD
. - allowed
Origins 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.
- expose
Headers List<String> - Specify the response headers allowing users to access from an application (for example, a Javascript XMLHttpRequest object). The wildcard "*" is not allowed.
- max
Age IntegerSeconds - Specify the cache time for the returned result of a browser prefetch (OPTIONS) request to a specific resource.
- allowed
Headers 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 “*” .
- allowed
Methods string[] - Specify the allowed methods for cross-domain requests. Possible values:
GET
,PUT
,DELETE
,POST
andHEAD
. - allowed
Origins 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.
- expose
Headers string[] - Specify the response headers allowing users to access from an application (for example, a Javascript XMLHttpRequest object). The wildcard "*" is not allowed.
- max
Age 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
,POST
andHEAD
. - 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.
- allowed
Headers 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 “*” .
- allowed
Methods List<String> - Specify the allowed methods for cross-domain requests. Possible values:
GET
,PUT
,DELETE
,POST
andHEAD
. - allowed
Origins 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.
- expose
Headers List<String> - Specify the response headers allowing users to access from an application (for example, a Javascript XMLHttpRequest object). The wildcard "*" is not allowed.
- max
Age 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
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 Boolean
- Indicate whether the rule is enabled or not.
- expiration
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 boolean
- Indicate whether the rule is enabled or not.
- expiration
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
Get
Buckets 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
- Target
Bucket string - Bucket for storing access logs.
- Target
Prefix string - Prefix of the saved access log file paths.
- Target
Bucket string - Bucket for storing access logs.
- Target
Prefix string - Prefix of the saved access log file paths.
- target
Bucket String - Bucket for storing access logs.
- target
Prefix String - Prefix of the saved access log file paths.
- target
Bucket string - Bucket for storing access logs.
- target
Prefix 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.
- target
Bucket String - Bucket for storing access logs.
- target
Prefix String - Prefix of the saved access log file paths.
GetBucketsBucketRefererConfig
- Allow
Empty bool - Indicate whether the access request referer field can be empty.
- Referers List<string>
- Referer access whitelist.
- Allow
Empty bool - Indicate whether the access request referer field can be empty.
- Referers []string
- Referer access whitelist.
- allow
Empty Boolean - Indicate whether the access request referer field can be empty.
- referers List<String>
- Referer access whitelist.
- allow
Empty 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.
- allow
Empty Boolean - Indicate whether the access request referer field can be empty.
- referers List<String>
- Referer access whitelist.
GetBucketsBucketServerSideEncryptionRule
- Kms
Master stringKey Id - The alibaba cloud KMS master key ID used for the SSE-KMS encryption.
- Sse
Algorithm string - The server-side encryption algorithm to use.
- Kms
Master stringKey Id - The alibaba cloud KMS master key ID used for the SSE-KMS encryption.
- Sse
Algorithm string - The server-side encryption algorithm to use.
- kms
Master StringKey Id - The alibaba cloud KMS master key ID used for the SSE-KMS encryption.
- sse
Algorithm String - The server-side encryption algorithm to use.
- kms
Master stringKey Id - The alibaba cloud KMS master key ID used for the SSE-KMS encryption.
- sse
Algorithm 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.
- kms
Master StringKey Id - The alibaba cloud KMS master key ID used for the SSE-KMS encryption.
- sse
Algorithm String - The server-side encryption algorithm to use.
GetBucketsBucketVersioning
- Status string
- A bucket versioning state. Possible values:
Enabled
andSuspended
.
- Status string
- A bucket versioning state. Possible values:
Enabled
andSuspended
.
- status String
- A bucket versioning state. Possible values:
Enabled
andSuspended
.
- status string
- A bucket versioning state. Possible values:
Enabled
andSuspended
.
- status str
- A bucket versioning state. Possible values:
Enabled
andSuspended
.
- status String
- A bucket versioning state. Possible values:
Enabled
andSuspended
.
GetBucketsBucketWebsite
- Error
Document string - Key of the HTML document containing the error page.
- Index
Document string - Key of the HTML document containing the home page.
- Error
Document string - Key of the HTML document containing the error page.
- Index
Document string - Key of the HTML document containing the home page.
- error
Document String - Key of the HTML document containing the error page.
- index
Document String - Key of the HTML document containing the home page.
- error
Document string - Key of the HTML document containing the error page.
- index
Document 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.
- error
Document String - Key of the HTML document containing the error page.
- index
Document 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.