Alibaba Cloud
Bucket
Provides a resource to create a oss bucket and set its attribution.
NOTE: The bucket namespace is shared by all users of the OSS system. Please set bucket name as unique as possible.
Example Usage
using Pulumi;
using AliCloud = Pulumi.AliCloud;
class MyStack : Stack
{
public MyStack()
{
var bucket_acl = new AliCloud.Oss.Bucket("bucket-acl", new AliCloud.Oss.BucketArgs
{
Acl = "private",
Bucket = "bucket-170309-acl",
});
}
}
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 {
_, err := oss.NewBucket(ctx, "bucket-acl", &oss.BucketArgs{
Acl: pulumi.String("private"),
Bucket: pulumi.String("bucket-170309-acl"),
})
if err != nil {
return err
}
return nil
})
}
Coming soon!
import pulumi
import pulumi_alicloud as alicloud
bucket_acl = alicloud.oss.Bucket("bucket-acl",
acl="private",
bucket="bucket-170309-acl")
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const bucket_acl = new alicloud.oss.Bucket("bucket-acl", {
acl: "private",
bucket: "bucket-170309-acl",
});
Coming soon!
Create a Bucket Resource
new Bucket(name: string, args?: BucketArgs, opts?: CustomResourceOptions);
@overload
def Bucket(resource_name: str,
opts: Optional[ResourceOptions] = None,
acl: Optional[str] = None,
bucket: Optional[str] = None,
cors_rules: Optional[Sequence[BucketCorsRuleArgs]] = None,
force_destroy: Optional[bool] = None,
lifecycle_rules: Optional[Sequence[BucketLifecycleRuleArgs]] = None,
logging: Optional[BucketLoggingArgs] = None,
logging_isenable: Optional[bool] = None,
policy: Optional[str] = None,
redundancy_type: Optional[str] = None,
referer_config: Optional[BucketRefererConfigArgs] = None,
server_side_encryption_rule: Optional[BucketServerSideEncryptionRuleArgs] = None,
storage_class: Optional[str] = None,
tags: Optional[Mapping[str, Any]] = None,
transfer_acceleration: Optional[BucketTransferAccelerationArgs] = None,
versioning: Optional[BucketVersioningArgs] = None,
website: Optional[BucketWebsiteArgs] = None)
@overload
def Bucket(resource_name: str,
args: Optional[BucketArgs] = None,
opts: Optional[ResourceOptions] = None)
func NewBucket(ctx *Context, name string, args *BucketArgs, opts ...ResourceOption) (*Bucket, error)
public Bucket(string name, BucketArgs? args = null, CustomResourceOptions? opts = null)
public Bucket(String name, BucketArgs args)
public Bucket(String name, BucketArgs args, CustomResourceOptions options)
type: alicloud:oss:Bucket
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args BucketArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args BucketArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args BucketArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args BucketArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args BucketArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Bucket Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The Bucket resource accepts the following input properties:
- Acl string
The canned ACL to apply. Can be "private", "public-read" and "public-read-write". Defaults to "private".
- Bucket
Name string - Cors
Rules List<Pulumi.Ali Cloud. Oss. Inputs. Bucket Cors Rule Args> A rule of Cross-Origin Resource Sharing (documented below). The items of core rule are no more than 10 for every OSS bucket.
- Force
Destroy bool A boolean that indicates all objects should be deleted from the bucket so that the bucket can be destroyed without error. These objects are not recoverable. Defaults to "false".
- Lifecycle
Rules List<Pulumi.Ali Cloud. Oss. Inputs. Bucket Lifecycle Rule Args> A configuration of object lifecycle management (documented below).
- Logging
Pulumi.
Ali Cloud. Oss. Inputs. Bucket Logging Args A Settings of bucket logging (documented below).
- Logging
Isenable bool The flag of using logging enable container. Defaults true.
Deprecated from 1.37.0. When
logging
is set, the bucket logging will be able.- Policy string
Json format text of bucket policy bucket policy management.
- Redundancy
Type string The redundancy type to enable. Can be "LRS", and "ZRS". Defaults to "LRS".
- Referer
Config Pulumi.Ali Cloud. Oss. Inputs. Bucket Referer Config Args The configuration of referer (documented below).
- Server
Side Pulumi.Encryption Rule Ali Cloud. Oss. Inputs. Bucket Server Side Encryption Rule Args A configuration of server-side encryption (documented below).
- Storage
Class string Specifies the storage class that objects that conform to the rule are converted into. The storage class of the objects in a bucket of the IA storage class can be converted into Archive but cannot be converted into Standard. Values:
IA
,Archive
.- Dictionary<string, object>
A mapping of tags to assign to the bucket. The items are no more than 10 for a bucket.
- Transfer
Acceleration Pulumi.Ali Cloud. Oss. Inputs. Bucket Transfer Acceleration Args A transfer acceleration status of a bucket (documented below).
- Versioning
Pulumi.
Ali Cloud. Oss. Inputs. Bucket Versioning Args A state of versioning (documented below).
- Website
Pulumi.
Ali Cloud. Oss. Inputs. Bucket Website Args A website object(documented below).
- Acl string
The canned ACL to apply. Can be "private", "public-read" and "public-read-write". Defaults to "private".
- Bucket string
- Cors
Rules []BucketCors Rule Args A rule of Cross-Origin Resource Sharing (documented below). The items of core rule are no more than 10 for every OSS bucket.
- Force
Destroy bool A boolean that indicates all objects should be deleted from the bucket so that the bucket can be destroyed without error. These objects are not recoverable. Defaults to "false".
- Lifecycle
Rules []BucketLifecycle Rule Args A configuration of object lifecycle management (documented below).
- Logging
Bucket
Logging Args A Settings of bucket logging (documented below).
- Logging
Isenable bool The flag of using logging enable container. Defaults true.
Deprecated from 1.37.0. When
logging
is set, the bucket logging will be able.- Policy string
Json format text of bucket policy bucket policy management.
- Redundancy
Type string The redundancy type to enable. Can be "LRS", and "ZRS". Defaults to "LRS".
- Referer
Config BucketReferer Config Args The configuration of referer (documented below).
- Server
Side BucketEncryption Rule Server Side Encryption Rule Args A configuration of server-side encryption (documented below).
- Storage
Class string Specifies the storage class that objects that conform to the rule are converted into. The storage class of the objects in a bucket of the IA storage class can be converted into Archive but cannot be converted into Standard. Values:
IA
,Archive
.- map[string]interface{}
A mapping of tags to assign to the bucket. The items are no more than 10 for a bucket.
- Transfer
Acceleration BucketTransfer Acceleration Args A transfer acceleration status of a bucket (documented below).
- Versioning
Bucket
Versioning Args A state of versioning (documented below).
- Website
Bucket
Website Args A website object(documented below).
- acl String
The canned ACL to apply. Can be "private", "public-read" and "public-read-write". Defaults to "private".
- bucket String
- cors
Rules List<BucketCors Rule Args> A rule of Cross-Origin Resource Sharing (documented below). The items of core rule are no more than 10 for every OSS bucket.
- force
Destroy Boolean A boolean that indicates all objects should be deleted from the bucket so that the bucket can be destroyed without error. These objects are not recoverable. Defaults to "false".
- lifecycle
Rules List<BucketLifecycle Rule Args> A configuration of object lifecycle management (documented below).
- logging
Bucket
Logging Args A Settings of bucket logging (documented below).
- logging
Isenable Boolean The flag of using logging enable container. Defaults true.
Deprecated from 1.37.0. When
logging
is set, the bucket logging will be able.- policy String
Json format text of bucket policy bucket policy management.
- redundancy
Type String The redundancy type to enable. Can be "LRS", and "ZRS". Defaults to "LRS".
- referer
Config BucketReferer Config Args The configuration of referer (documented below).
- server
Side BucketEncryption Rule Server Side Encryption Rule Args A configuration of server-side encryption (documented below).
- storage
Class String Specifies the storage class that objects that conform to the rule are converted into. The storage class of the objects in a bucket of the IA storage class can be converted into Archive but cannot be converted into Standard. Values:
IA
,Archive
.- Map<String,Object>
A mapping of tags to assign to the bucket. The items are no more than 10 for a bucket.
- transfer
Acceleration BucketTransfer Acceleration Args A transfer acceleration status of a bucket (documented below).
- versioning
Bucket
Versioning Args A state of versioning (documented below).
- website
Bucket
Website Args A website object(documented below).
- acl string
The canned ACL to apply. Can be "private", "public-read" and "public-read-write". Defaults to "private".
- bucket string
- cors
Rules BucketCors Rule Args[] A rule of Cross-Origin Resource Sharing (documented below). The items of core rule are no more than 10 for every OSS bucket.
- force
Destroy boolean A boolean that indicates all objects should be deleted from the bucket so that the bucket can be destroyed without error. These objects are not recoverable. Defaults to "false".
- lifecycle
Rules BucketLifecycle Rule Args[] A configuration of object lifecycle management (documented below).
- logging
Bucket
Logging Args A Settings of bucket logging (documented below).
- logging
Isenable boolean The flag of using logging enable container. Defaults true.
Deprecated from 1.37.0. When
logging
is set, the bucket logging will be able.- policy string
Json format text of bucket policy bucket policy management.
- redundancy
Type string The redundancy type to enable. Can be "LRS", and "ZRS". Defaults to "LRS".
- referer
Config BucketReferer Config Args The configuration of referer (documented below).
- server
Side BucketEncryption Rule Server Side Encryption Rule Args A configuration of server-side encryption (documented below).
- storage
Class string Specifies the storage class that objects that conform to the rule are converted into. The storage class of the objects in a bucket of the IA storage class can be converted into Archive but cannot be converted into Standard. Values:
IA
,Archive
.- {[key: string]: any}
A mapping of tags to assign to the bucket. The items are no more than 10 for a bucket.
- transfer
Acceleration BucketTransfer Acceleration Args A transfer acceleration status of a bucket (documented below).
- versioning
Bucket
Versioning Args A state of versioning (documented below).
- website
Bucket
Website Args A website object(documented below).
- acl str
The canned ACL to apply. Can be "private", "public-read" and "public-read-write". Defaults to "private".
- bucket str
- cors_
rules Sequence[BucketCors Rule Args] A rule of Cross-Origin Resource Sharing (documented below). The items of core rule are no more than 10 for every OSS bucket.
- force_
destroy bool A boolean that indicates all objects should be deleted from the bucket so that the bucket can be destroyed without error. These objects are not recoverable. Defaults to "false".
- lifecycle_
rules Sequence[BucketLifecycle Rule Args] A configuration of object lifecycle management (documented below).
- logging
Bucket
Logging Args A Settings of bucket logging (documented below).
- logging_
isenable bool The flag of using logging enable container. Defaults true.
Deprecated from 1.37.0. When
logging
is set, the bucket logging will be able.- policy str
Json format text of bucket policy bucket policy management.
- redundancy_
type str The redundancy type to enable. Can be "LRS", and "ZRS". Defaults to "LRS".
- referer_
config BucketReferer Config Args The configuration of referer (documented below).
- server_
side_ Bucketencryption_ rule Server Side Encryption Rule Args A configuration of server-side encryption (documented below).
- storage_
class str Specifies the storage class that objects that conform to the rule are converted into. The storage class of the objects in a bucket of the IA storage class can be converted into Archive but cannot be converted into Standard. Values:
IA
,Archive
.- Mapping[str, Any]
A mapping of tags to assign to the bucket. The items are no more than 10 for a bucket.
- transfer_
acceleration BucketTransfer Acceleration Args A transfer acceleration status of a bucket (documented below).
- versioning
Bucket
Versioning Args A state of versioning (documented below).
- website
Bucket
Website Args A website object(documented below).
- acl String
The canned ACL to apply. Can be "private", "public-read" and "public-read-write". Defaults to "private".
- bucket String
- cors
Rules List<Property Map> A rule of Cross-Origin Resource Sharing (documented below). The items of core rule are no more than 10 for every OSS bucket.
- force
Destroy Boolean A boolean that indicates all objects should be deleted from the bucket so that the bucket can be destroyed without error. These objects are not recoverable. Defaults to "false".
- lifecycle
Rules List<Property Map> A configuration of object lifecycle management (documented below).
- logging Property Map
A Settings of bucket logging (documented below).
- logging
Isenable Boolean The flag of using logging enable container. Defaults true.
Deprecated from 1.37.0. When
logging
is set, the bucket logging will be able.- policy String
Json format text of bucket policy bucket policy management.
- redundancy
Type String The redundancy type to enable. Can be "LRS", and "ZRS". Defaults to "LRS".
- referer
Config Property Map The configuration of referer (documented below).
- server
Side Property MapEncryption Rule A configuration of server-side encryption (documented below).
- storage
Class String Specifies the storage class that objects that conform to the rule are converted into. The storage class of the objects in a bucket of the IA storage class can be converted into Archive but cannot be converted into Standard. Values:
IA
,Archive
.- Map<Any>
A mapping of tags to assign to the bucket. The items are no more than 10 for a bucket.
- transfer
Acceleration Property Map A transfer acceleration status of a bucket (documented below).
- versioning Property Map
A state of versioning (documented below).
- website Property Map
A website object(documented below).
Outputs
All input properties are implicitly available as output properties. Additionally, the Bucket resource produces the following output properties:
- Creation
Date string The creation date of the bucket.
- Extranet
Endpoint string The extranet access endpoint of the bucket.
- Id string
The provider-assigned unique ID for this managed resource.
- Intranet
Endpoint string The intranet access endpoint of the bucket.
- Location string
The location of the bucket.
- Owner string
The bucket owner.
- Creation
Date string The creation date of the bucket.
- Extranet
Endpoint string The extranet access endpoint of the bucket.
- Id string
The provider-assigned unique ID for this managed resource.
- Intranet
Endpoint string The intranet access endpoint of the bucket.
- Location string
The location of the bucket.
- Owner string
The bucket owner.
- creation
Date String The creation date of the bucket.
- extranet
Endpoint String The extranet access endpoint of the bucket.
- id String
The provider-assigned unique ID for this managed resource.
- intranet
Endpoint String The intranet access endpoint of the bucket.
- location String
The location of the bucket.
- owner String
The bucket owner.
- creation
Date string The creation date of the bucket.
- extranet
Endpoint string The extranet access endpoint of the bucket.
- id string
The provider-assigned unique ID for this managed resource.
- intranet
Endpoint string The intranet access endpoint of the bucket.
- location string
The location of the bucket.
- owner string
The bucket owner.
- creation_
date str The creation date of the bucket.
- extranet_
endpoint str The extranet access endpoint of the bucket.
- id str
The provider-assigned unique ID for this managed resource.
- intranet_
endpoint str The intranet access endpoint of the bucket.
- location str
The location of the bucket.
- owner str
The bucket owner.
- creation
Date String The creation date of the bucket.
- extranet
Endpoint String The extranet access endpoint of the bucket.
- id String
The provider-assigned unique ID for this managed resource.
- intranet
Endpoint String The intranet access endpoint of the bucket.
- location String
The location of the bucket.
- owner String
The bucket owner.
Look up an Existing Bucket Resource
Get an existing Bucket resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: BucketState, opts?: CustomResourceOptions): Bucket
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
acl: Optional[str] = None,
bucket: Optional[str] = None,
cors_rules: Optional[Sequence[BucketCorsRuleArgs]] = None,
creation_date: Optional[str] = None,
extranet_endpoint: Optional[str] = None,
force_destroy: Optional[bool] = None,
intranet_endpoint: Optional[str] = None,
lifecycle_rules: Optional[Sequence[BucketLifecycleRuleArgs]] = None,
location: Optional[str] = None,
logging: Optional[BucketLoggingArgs] = None,
logging_isenable: Optional[bool] = None,
owner: Optional[str] = None,
policy: Optional[str] = None,
redundancy_type: Optional[str] = None,
referer_config: Optional[BucketRefererConfigArgs] = None,
server_side_encryption_rule: Optional[BucketServerSideEncryptionRuleArgs] = None,
storage_class: Optional[str] = None,
tags: Optional[Mapping[str, Any]] = None,
transfer_acceleration: Optional[BucketTransferAccelerationArgs] = None,
versioning: Optional[BucketVersioningArgs] = None,
website: Optional[BucketWebsiteArgs] = None) -> Bucket
func GetBucket(ctx *Context, name string, id IDInput, state *BucketState, opts ...ResourceOption) (*Bucket, error)
public static Bucket Get(string name, Input<string> id, BucketState? state, CustomResourceOptions? opts = null)
public static Bucket get(String name, Output<String> id, BucketState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Acl string
The canned ACL to apply. Can be "private", "public-read" and "public-read-write". Defaults to "private".
- Bucket
Name string - Cors
Rules List<Pulumi.Ali Cloud. Oss. Inputs. Bucket Cors Rule Args> A rule of Cross-Origin Resource Sharing (documented below). The items of core rule are no more than 10 for every OSS bucket.
- Creation
Date string The creation date of the bucket.
- Extranet
Endpoint string The extranet access endpoint of the bucket.
- Force
Destroy bool A boolean that indicates all objects should be deleted from the bucket so that the bucket can be destroyed without error. These objects are not recoverable. Defaults to "false".
- Intranet
Endpoint string The intranet access endpoint of the bucket.
- Lifecycle
Rules List<Pulumi.Ali Cloud. Oss. Inputs. Bucket Lifecycle Rule Args> A configuration of object lifecycle management (documented below).
- Location string
The location of the bucket.
- Logging
Pulumi.
Ali Cloud. Oss. Inputs. Bucket Logging Args A Settings of bucket logging (documented below).
- Logging
Isenable bool The flag of using logging enable container. Defaults true.
Deprecated from 1.37.0. When
logging
is set, the bucket logging will be able.- Owner string
The bucket owner.
- Policy string
Json format text of bucket policy bucket policy management.
- Redundancy
Type string The redundancy type to enable. Can be "LRS", and "ZRS". Defaults to "LRS".
- Referer
Config Pulumi.Ali Cloud. Oss. Inputs. Bucket Referer Config Args The configuration of referer (documented below).
- Server
Side Pulumi.Encryption Rule Ali Cloud. Oss. Inputs. Bucket Server Side Encryption Rule Args A configuration of server-side encryption (documented below).
- Storage
Class string Specifies the storage class that objects that conform to the rule are converted into. The storage class of the objects in a bucket of the IA storage class can be converted into Archive but cannot be converted into Standard. Values:
IA
,Archive
.- Dictionary<string, object>
A mapping of tags to assign to the bucket. The items are no more than 10 for a bucket.
- Transfer
Acceleration Pulumi.Ali Cloud. Oss. Inputs. Bucket Transfer Acceleration Args A transfer acceleration status of a bucket (documented below).
- Versioning
Pulumi.
Ali Cloud. Oss. Inputs. Bucket Versioning Args A state of versioning (documented below).
- Website
Pulumi.
Ali Cloud. Oss. Inputs. Bucket Website Args A website object(documented below).
- Acl string
The canned ACL to apply. Can be "private", "public-read" and "public-read-write". Defaults to "private".
- Bucket string
- Cors
Rules []BucketCors Rule Args A rule of Cross-Origin Resource Sharing (documented below). The items of core rule are no more than 10 for every OSS bucket.
- Creation
Date string The creation date of the bucket.
- Extranet
Endpoint string The extranet access endpoint of the bucket.
- Force
Destroy bool A boolean that indicates all objects should be deleted from the bucket so that the bucket can be destroyed without error. These objects are not recoverable. Defaults to "false".
- Intranet
Endpoint string The intranet access endpoint of the bucket.
- Lifecycle
Rules []BucketLifecycle Rule Args A configuration of object lifecycle management (documented below).
- Location string
The location of the bucket.
- Logging
Bucket
Logging Args A Settings of bucket logging (documented below).
- Logging
Isenable bool The flag of using logging enable container. Defaults true.
Deprecated from 1.37.0. When
logging
is set, the bucket logging will be able.- Owner string
The bucket owner.
- Policy string
Json format text of bucket policy bucket policy management.
- Redundancy
Type string The redundancy type to enable. Can be "LRS", and "ZRS". Defaults to "LRS".
- Referer
Config BucketReferer Config Args The configuration of referer (documented below).
- Server
Side BucketEncryption Rule Server Side Encryption Rule Args A configuration of server-side encryption (documented below).
- Storage
Class string Specifies the storage class that objects that conform to the rule are converted into. The storage class of the objects in a bucket of the IA storage class can be converted into Archive but cannot be converted into Standard. Values:
IA
,Archive
.- map[string]interface{}
A mapping of tags to assign to the bucket. The items are no more than 10 for a bucket.
- Transfer
Acceleration BucketTransfer Acceleration Args A transfer acceleration status of a bucket (documented below).
- Versioning
Bucket
Versioning Args A state of versioning (documented below).
- Website
Bucket
Website Args A website object(documented below).
- acl String
The canned ACL to apply. Can be "private", "public-read" and "public-read-write". Defaults to "private".
- bucket String
- cors
Rules List<BucketCors Rule Args> A rule of Cross-Origin Resource Sharing (documented below). The items of core rule are no more than 10 for every OSS bucket.
- creation
Date String The creation date of the bucket.
- extranet
Endpoint String The extranet access endpoint of the bucket.
- force
Destroy Boolean A boolean that indicates all objects should be deleted from the bucket so that the bucket can be destroyed without error. These objects are not recoverable. Defaults to "false".
- intranet
Endpoint String The intranet access endpoint of the bucket.
- lifecycle
Rules List<BucketLifecycle Rule Args> A configuration of object lifecycle management (documented below).
- location String
The location of the bucket.
- logging
Bucket
Logging Args A Settings of bucket logging (documented below).
- logging
Isenable Boolean The flag of using logging enable container. Defaults true.
Deprecated from 1.37.0. When
logging
is set, the bucket logging will be able.- owner String
The bucket owner.
- policy String
Json format text of bucket policy bucket policy management.
- redundancy
Type String The redundancy type to enable. Can be "LRS", and "ZRS". Defaults to "LRS".
- referer
Config BucketReferer Config Args The configuration of referer (documented below).
- server
Side BucketEncryption Rule Server Side Encryption Rule Args A configuration of server-side encryption (documented below).
- storage
Class String Specifies the storage class that objects that conform to the rule are converted into. The storage class of the objects in a bucket of the IA storage class can be converted into Archive but cannot be converted into Standard. Values:
IA
,Archive
.- Map<String,Object>
A mapping of tags to assign to the bucket. The items are no more than 10 for a bucket.
- transfer
Acceleration BucketTransfer Acceleration Args A transfer acceleration status of a bucket (documented below).
- versioning
Bucket
Versioning Args A state of versioning (documented below).
- website
Bucket
Website Args A website object(documented below).
- acl string
The canned ACL to apply. Can be "private", "public-read" and "public-read-write". Defaults to "private".
- bucket string
- cors
Rules BucketCors Rule Args[] A rule of Cross-Origin Resource Sharing (documented below). The items of core rule are no more than 10 for every OSS bucket.
- creation
Date string The creation date of the bucket.
- extranet
Endpoint string The extranet access endpoint of the bucket.
- force
Destroy boolean A boolean that indicates all objects should be deleted from the bucket so that the bucket can be destroyed without error. These objects are not recoverable. Defaults to "false".
- intranet
Endpoint string The intranet access endpoint of the bucket.
- lifecycle
Rules BucketLifecycle Rule Args[] A configuration of object lifecycle management (documented below).
- location string
The location of the bucket.
- logging
Bucket
Logging Args A Settings of bucket logging (documented below).
- logging
Isenable boolean The flag of using logging enable container. Defaults true.
Deprecated from 1.37.0. When
logging
is set, the bucket logging will be able.- owner string
The bucket owner.
- policy string
Json format text of bucket policy bucket policy management.
- redundancy
Type string The redundancy type to enable. Can be "LRS", and "ZRS". Defaults to "LRS".
- referer
Config BucketReferer Config Args The configuration of referer (documented below).
- server
Side BucketEncryption Rule Server Side Encryption Rule Args A configuration of server-side encryption (documented below).
- storage
Class string Specifies the storage class that objects that conform to the rule are converted into. The storage class of the objects in a bucket of the IA storage class can be converted into Archive but cannot be converted into Standard. Values:
IA
,Archive
.- {[key: string]: any}
A mapping of tags to assign to the bucket. The items are no more than 10 for a bucket.
- transfer
Acceleration BucketTransfer Acceleration Args A transfer acceleration status of a bucket (documented below).
- versioning
Bucket
Versioning Args A state of versioning (documented below).
- website
Bucket
Website Args A website object(documented below).
- acl str
The canned ACL to apply. Can be "private", "public-read" and "public-read-write". Defaults to "private".
- bucket str
- cors_
rules Sequence[BucketCors Rule Args] A rule of Cross-Origin Resource Sharing (documented below). The items of core rule are no more than 10 for every OSS bucket.
- creation_
date str The creation date of the bucket.
- extranet_
endpoint str The extranet access endpoint of the bucket.
- force_
destroy bool A boolean that indicates all objects should be deleted from the bucket so that the bucket can be destroyed without error. These objects are not recoverable. Defaults to "false".
- intranet_
endpoint str The intranet access endpoint of the bucket.
- lifecycle_
rules Sequence[BucketLifecycle Rule Args] A configuration of object lifecycle management (documented below).
- location str
The location of the bucket.
- logging
Bucket
Logging Args A Settings of bucket logging (documented below).
- logging_
isenable bool The flag of using logging enable container. Defaults true.
Deprecated from 1.37.0. When
logging
is set, the bucket logging will be able.- owner str
The bucket owner.
- policy str
Json format text of bucket policy bucket policy management.
- redundancy_
type str The redundancy type to enable. Can be "LRS", and "ZRS". Defaults to "LRS".
- referer_
config BucketReferer Config Args The configuration of referer (documented below).
- server_
side_ Bucketencryption_ rule Server Side Encryption Rule Args A configuration of server-side encryption (documented below).
- storage_
class str Specifies the storage class that objects that conform to the rule are converted into. The storage class of the objects in a bucket of the IA storage class can be converted into Archive but cannot be converted into Standard. Values:
IA
,Archive
.- Mapping[str, Any]
A mapping of tags to assign to the bucket. The items are no more than 10 for a bucket.
- transfer_
acceleration BucketTransfer Acceleration Args A transfer acceleration status of a bucket (documented below).
- versioning
Bucket
Versioning Args A state of versioning (documented below).
- website
Bucket
Website Args A website object(documented below).
- acl String
The canned ACL to apply. Can be "private", "public-read" and "public-read-write". Defaults to "private".
- bucket String
- cors
Rules List<Property Map> A rule of Cross-Origin Resource Sharing (documented below). The items of core rule are no more than 10 for every OSS bucket.
- creation
Date String The creation date of the bucket.
- extranet
Endpoint String The extranet access endpoint of the bucket.
- force
Destroy Boolean A boolean that indicates all objects should be deleted from the bucket so that the bucket can be destroyed without error. These objects are not recoverable. Defaults to "false".
- intranet
Endpoint String The intranet access endpoint of the bucket.
- lifecycle
Rules List<Property Map> A configuration of object lifecycle management (documented below).
- location String
The location of the bucket.
- logging Property Map
A Settings of bucket logging (documented below).
- logging
Isenable Boolean The flag of using logging enable container. Defaults true.
Deprecated from 1.37.0. When
logging
is set, the bucket logging will be able.- owner String
The bucket owner.
- policy String
Json format text of bucket policy bucket policy management.
- redundancy
Type String The redundancy type to enable. Can be "LRS", and "ZRS". Defaults to "LRS".
- referer
Config Property Map The configuration of referer (documented below).
- server
Side Property MapEncryption Rule A configuration of server-side encryption (documented below).
- storage
Class String Specifies the storage class that objects that conform to the rule are converted into. The storage class of the objects in a bucket of the IA storage class can be converted into Archive but cannot be converted into Standard. Values:
IA
,Archive
.- Map<Any>
A mapping of tags to assign to the bucket. The items are no more than 10 for a bucket.
- transfer
Acceleration Property Map A transfer acceleration status of a bucket (documented below).
- versioning Property Map
A state of versioning (documented below).
- website Property Map
A website object(documented below).
Supporting Types
BucketCorsRule
- Allowed
Methods List<string> Specifies which methods are allowed. Can be GET, PUT, POST, DELETE or HEAD.
- Allowed
Origins List<string> Specifies which origins are allowed.
- Allowed
Headers List<string> Specifies which headers are allowed.
- Expose
Headers List<string> Specifies expose header in the response.
- Max
Age intSeconds Specifies time in seconds that browser can cache the response for a preflight request.
- Allowed
Methods []string Specifies which methods are allowed. Can be GET, PUT, POST, DELETE or HEAD.
- Allowed
Origins []string Specifies which origins are allowed.
- Allowed
Headers []string Specifies which headers are allowed.
- Expose
Headers []string Specifies expose header in the response.
- Max
Age intSeconds Specifies time in seconds that browser can cache the response for a preflight request.
- allowed
Methods List<String> Specifies which methods are allowed. Can be GET, PUT, POST, DELETE or HEAD.
- allowed
Origins List<String> Specifies which origins are allowed.
- allowed
Headers List<String> Specifies which headers are allowed.
- expose
Headers List<String> Specifies expose header in the response.
- max
Age IntegerSeconds Specifies time in seconds that browser can cache the response for a preflight request.
- allowed
Methods string[] Specifies which methods are allowed. Can be GET, PUT, POST, DELETE or HEAD.
- allowed
Origins string[] Specifies which origins are allowed.
- allowed
Headers string[] Specifies which headers are allowed.
- expose
Headers string[] Specifies expose header in the response.
- max
Age numberSeconds Specifies time in seconds that browser can cache the response for a preflight request.
- allowed_
methods Sequence[str] Specifies which methods are allowed. Can be GET, PUT, POST, DELETE or HEAD.
- allowed_
origins Sequence[str] Specifies which origins are allowed.
- allowed_
headers Sequence[str] Specifies which headers are allowed.
- expose_
headers Sequence[str] Specifies expose header in the response.
- max_
age_ intseconds Specifies time in seconds that browser can cache the response for a preflight request.
- allowed
Methods List<String> Specifies which methods are allowed. Can be GET, PUT, POST, DELETE or HEAD.
- allowed
Origins List<String> Specifies which origins are allowed.
- allowed
Headers List<String> Specifies which headers are allowed.
- expose
Headers List<String> Specifies expose header in the response.
- max
Age NumberSeconds Specifies time in seconds that browser can cache the response for a preflight request.
BucketLifecycleRule
- Enabled bool
Specifies the accelerate status of a bucket.
- Abort
Multipart List<Pulumi.Uploads Ali Cloud. Oss. Inputs. Bucket Lifecycle Rule Abort Multipart Upload> Specifies the number of days after initiating a multipart upload when the multipart upload must be completed (documented below).
- Expirations
List<Pulumi.
Ali Cloud. Oss. Inputs. Bucket Lifecycle Rule Expiration> Specifies a period in the object's expire (documented below).
- Id string
Unique identifier for the rule. If omitted, OSS bucket will assign a unique name.
- Noncurrent
Version List<Pulumi.Expirations Ali Cloud. Oss. Inputs. Bucket Lifecycle Rule Noncurrent Version Expiration> Specifies when noncurrent object versions expire (documented below).
- Noncurrent
Version List<Pulumi.Transitions Ali Cloud. Oss. Inputs. Bucket Lifecycle Rule Noncurrent Version Transition> Specifies when noncurrent object versions transitions (documented below).
- Prefix string
Object key prefix identifying one or more objects to which the rule applies. Default value is null, the rule applies to all objects in a bucket.
- Transitions
List<Pulumi.
Ali Cloud. Oss. Inputs. Bucket Lifecycle Rule Transition> Specifies the time when an object is converted to the IA or archive storage class during a valid life cycle. (documented below).
- Enabled bool
Specifies the accelerate status of a bucket.
- Abort
Multipart []BucketUploads Lifecycle Rule Abort Multipart Upload Specifies the number of days after initiating a multipart upload when the multipart upload must be completed (documented below).
- Expirations
[]Bucket
Lifecycle Rule Expiration Specifies a period in the object's expire (documented below).
- Id string
Unique identifier for the rule. If omitted, OSS bucket will assign a unique name.
- Noncurrent
Version []BucketExpirations Lifecycle Rule Noncurrent Version Expiration Specifies when noncurrent object versions expire (documented below).
- Noncurrent
Version []BucketTransitions Lifecycle Rule Noncurrent Version Transition Specifies when noncurrent object versions transitions (documented below).
- Prefix string
Object key prefix identifying one or more objects to which the rule applies. Default value is null, the rule applies to all objects in a bucket.
- Transitions
[]Bucket
Lifecycle Rule Transition Specifies the time when an object is converted to the IA or archive storage class during a valid life cycle. (documented below).
- enabled Boolean
Specifies the accelerate status of a bucket.
- abort
Multipart List<BucketUploads Lifecycle Rule Abort Multipart Upload> Specifies the number of days after initiating a multipart upload when the multipart upload must be completed (documented below).
- expirations
List<Bucket
Lifecycle Rule Expiration> Specifies a period in the object's expire (documented below).
- id String
Unique identifier for the rule. If omitted, OSS bucket will assign a unique name.
- noncurrent
Version List<BucketExpirations Lifecycle Rule Noncurrent Version Expiration> Specifies when noncurrent object versions expire (documented below).
- noncurrent
Version List<BucketTransitions Lifecycle Rule Noncurrent Version Transition> Specifies when noncurrent object versions transitions (documented below).
- prefix String
Object key prefix identifying one or more objects to which the rule applies. Default value is null, the rule applies to all objects in a bucket.
- transitions
List<Bucket
Lifecycle Rule Transition> Specifies the time when an object is converted to the IA or archive storage class during a valid life cycle. (documented below).
- enabled boolean
Specifies the accelerate status of a bucket.
- abort
Multipart BucketUploads Lifecycle Rule Abort Multipart Upload[] Specifies the number of days after initiating a multipart upload when the multipart upload must be completed (documented below).
- expirations
Bucket
Lifecycle Rule Expiration[] Specifies a period in the object's expire (documented below).
- id string
Unique identifier for the rule. If omitted, OSS bucket will assign a unique name.
- noncurrent
Version BucketExpirations Lifecycle Rule Noncurrent Version Expiration[] Specifies when noncurrent object versions expire (documented below).
- noncurrent
Version BucketTransitions Lifecycle Rule Noncurrent Version Transition[] Specifies when noncurrent object versions transitions (documented below).
- prefix string
Object key prefix identifying one or more objects to which the rule applies. Default value is null, the rule applies to all objects in a bucket.
- transitions
Bucket
Lifecycle Rule Transition[] Specifies the time when an object is converted to the IA or archive storage class during a valid life cycle. (documented below).
- enabled bool
Specifies the accelerate status of a bucket.
- abort_
multipart_ Sequence[Bucketuploads Lifecycle Rule Abort Multipart Upload] Specifies the number of days after initiating a multipart upload when the multipart upload must be completed (documented below).
- expirations
Sequence[Bucket
Lifecycle Rule Expiration] Specifies a period in the object's expire (documented below).
- id str
Unique identifier for the rule. If omitted, OSS bucket will assign a unique name.
- noncurrent_
version_ Sequence[Bucketexpirations Lifecycle Rule Noncurrent Version Expiration] Specifies when noncurrent object versions expire (documented below).
- noncurrent_
version_ Sequence[Buckettransitions Lifecycle Rule Noncurrent Version Transition] Specifies when noncurrent object versions transitions (documented below).
- prefix str
Object key prefix identifying one or more objects to which the rule applies. Default value is null, the rule applies to all objects in a bucket.
- transitions
Sequence[Bucket
Lifecycle Rule Transition] Specifies the time when an object is converted to the IA or archive storage class during a valid life cycle. (documented below).
- enabled Boolean
Specifies the accelerate status of a bucket.
- abort
Multipart List<Property Map>Uploads Specifies the number of days after initiating a multipart upload when the multipart upload must be completed (documented below).
- expirations List<Property Map>
Specifies a period in the object's expire (documented below).
- id String
Unique identifier for the rule. If omitted, OSS bucket will assign a unique name.
- noncurrent
Version List<Property Map>Expirations Specifies when noncurrent object versions expire (documented below).
- noncurrent
Version List<Property Map>Transitions Specifies when noncurrent object versions transitions (documented below).
- prefix String
Object key prefix identifying one or more objects to which the rule applies. Default value is null, the rule applies to all objects in a bucket.
- transitions List<Property Map>
Specifies the time when an object is converted to the IA or archive storage class during a valid life cycle. (documented below).
BucketLifecycleRuleAbortMultipartUpload
- Created
Before stringDate Specifies the time before which the rules take effect. The date must conform to the ISO8601 format and always be UTC 00:00. For example: 2002-10-11T00:00:00.000Z indicates that parts created before 2002-10-11T00:00:00.000Z are deleted, and parts created after this time (including this time) are not deleted.
- Days int
Specifies the number of days noncurrent object versions transition.
- Created
Before stringDate Specifies the time before which the rules take effect. The date must conform to the ISO8601 format and always be UTC 00:00. For example: 2002-10-11T00:00:00.000Z indicates that parts created before 2002-10-11T00:00:00.000Z are deleted, and parts created after this time (including this time) are not deleted.
- Days int
Specifies the number of days noncurrent object versions transition.
- created
Before StringDate Specifies the time before which the rules take effect. The date must conform to the ISO8601 format and always be UTC 00:00. For example: 2002-10-11T00:00:00.000Z indicates that parts created before 2002-10-11T00:00:00.000Z are deleted, and parts created after this time (including this time) are not deleted.
- days Integer
Specifies the number of days noncurrent object versions transition.
- created
Before stringDate Specifies the time before which the rules take effect. The date must conform to the ISO8601 format and always be UTC 00:00. For example: 2002-10-11T00:00:00.000Z indicates that parts created before 2002-10-11T00:00:00.000Z are deleted, and parts created after this time (including this time) are not deleted.
- days number
Specifies the number of days noncurrent object versions transition.
- created_
before_ strdate Specifies the time before which the rules take effect. The date must conform to the ISO8601 format and always be UTC 00:00. For example: 2002-10-11T00:00:00.000Z indicates that parts created before 2002-10-11T00:00:00.000Z are deleted, and parts created after this time (including this time) are not deleted.
- days int
Specifies the number of days noncurrent object versions transition.
- created
Before StringDate Specifies the time before which the rules take effect. The date must conform to the ISO8601 format and always be UTC 00:00. For example: 2002-10-11T00:00:00.000Z indicates that parts created before 2002-10-11T00:00:00.000Z are deleted, and parts created after this time (including this time) are not deleted.
- days Number
Specifies the number of days noncurrent object versions transition.
BucketLifecycleRuleExpiration
- Created
Before stringDate Specifies the time before which the rules take effect. The date must conform to the ISO8601 format and always be UTC 00:00. For example: 2002-10-11T00:00:00.000Z indicates that parts created before 2002-10-11T00:00:00.000Z are deleted, and parts created after this time (including this time) are not deleted.
- Date string
Specifies the date after which you want the corresponding action to take effect. The value obeys ISO8601 format like
2017-03-09
.- Days int
Specifies the number of days noncurrent object versions transition.
- Expired
Object boolDelete Marker On a versioned bucket (versioning-enabled or versioning-suspended bucket), you can add this element in the lifecycle configuration to direct OSS to delete expired object delete markers. This cannot be specified with Days, Date or CreatedBeforeDate in a Lifecycle Expiration Policy.
- Created
Before stringDate Specifies the time before which the rules take effect. The date must conform to the ISO8601 format and always be UTC 00:00. For example: 2002-10-11T00:00:00.000Z indicates that parts created before 2002-10-11T00:00:00.000Z are deleted, and parts created after this time (including this time) are not deleted.
- Date string
Specifies the date after which you want the corresponding action to take effect. The value obeys ISO8601 format like
2017-03-09
.- Days int
Specifies the number of days noncurrent object versions transition.
- Expired
Object boolDelete Marker On a versioned bucket (versioning-enabled or versioning-suspended bucket), you can add this element in the lifecycle configuration to direct OSS to delete expired object delete markers. This cannot be specified with Days, Date or CreatedBeforeDate in a Lifecycle Expiration Policy.
- created
Before StringDate Specifies the time before which the rules take effect. The date must conform to the ISO8601 format and always be UTC 00:00. For example: 2002-10-11T00:00:00.000Z indicates that parts created before 2002-10-11T00:00:00.000Z are deleted, and parts created after this time (including this time) are not deleted.
- date String
Specifies the date after which you want the corresponding action to take effect. The value obeys ISO8601 format like
2017-03-09
.- days Integer
Specifies the number of days noncurrent object versions transition.
- expired
Object BooleanDelete Marker On a versioned bucket (versioning-enabled or versioning-suspended bucket), you can add this element in the lifecycle configuration to direct OSS to delete expired object delete markers. This cannot be specified with Days, Date or CreatedBeforeDate in a Lifecycle Expiration Policy.
- created
Before stringDate Specifies the time before which the rules take effect. The date must conform to the ISO8601 format and always be UTC 00:00. For example: 2002-10-11T00:00:00.000Z indicates that parts created before 2002-10-11T00:00:00.000Z are deleted, and parts created after this time (including this time) are not deleted.
- date string
Specifies the date after which you want the corresponding action to take effect. The value obeys ISO8601 format like
2017-03-09
.- days number
Specifies the number of days noncurrent object versions transition.
- expired
Object booleanDelete Marker On a versioned bucket (versioning-enabled or versioning-suspended bucket), you can add this element in the lifecycle configuration to direct OSS to delete expired object delete markers. This cannot be specified with Days, Date or CreatedBeforeDate in a Lifecycle Expiration Policy.
- created_
before_ strdate Specifies the time before which the rules take effect. The date must conform to the ISO8601 format and always be UTC 00:00. For example: 2002-10-11T00:00:00.000Z indicates that parts created before 2002-10-11T00:00:00.000Z are deleted, and parts created after this time (including this time) are not deleted.
- date str
Specifies the date after which you want the corresponding action to take effect. The value obeys ISO8601 format like
2017-03-09
.- days int
Specifies the number of days noncurrent object versions transition.
- expired_
object_ booldelete_ marker On a versioned bucket (versioning-enabled or versioning-suspended bucket), you can add this element in the lifecycle configuration to direct OSS to delete expired object delete markers. This cannot be specified with Days, Date or CreatedBeforeDate in a Lifecycle Expiration Policy.
- created
Before StringDate Specifies the time before which the rules take effect. The date must conform to the ISO8601 format and always be UTC 00:00. For example: 2002-10-11T00:00:00.000Z indicates that parts created before 2002-10-11T00:00:00.000Z are deleted, and parts created after this time (including this time) are not deleted.
- date String
Specifies the date after which you want the corresponding action to take effect. The value obeys ISO8601 format like
2017-03-09
.- days Number
Specifies the number of days noncurrent object versions transition.
- expired
Object BooleanDelete Marker On a versioned bucket (versioning-enabled or versioning-suspended bucket), you can add this element in the lifecycle configuration to direct OSS to delete expired object delete markers. This cannot be specified with Days, Date or CreatedBeforeDate in a Lifecycle Expiration Policy.
BucketLifecycleRuleNoncurrentVersionExpiration
- Days int
Specifies the number of days noncurrent object versions transition.
- Days int
Specifies the number of days noncurrent object versions transition.
- days Integer
Specifies the number of days noncurrent object versions transition.
- days number
Specifies the number of days noncurrent object versions transition.
- days int
Specifies the number of days noncurrent object versions transition.
- days Number
Specifies the number of days noncurrent object versions transition.
BucketLifecycleRuleNoncurrentVersionTransition
- Days int
Specifies the number of days noncurrent object versions transition.
- Storage
Class string Specifies the storage class that objects that conform to the rule are converted into. The storage class of the objects in a bucket of the IA storage class can be converted into Archive but cannot be converted into Standard. Values:
IA
,Archive
.
- Days int
Specifies the number of days noncurrent object versions transition.
- Storage
Class string Specifies the storage class that objects that conform to the rule are converted into. The storage class of the objects in a bucket of the IA storage class can be converted into Archive but cannot be converted into Standard. Values:
IA
,Archive
.
- days Integer
Specifies the number of days noncurrent object versions transition.
- storage
Class String Specifies the storage class that objects that conform to the rule are converted into. The storage class of the objects in a bucket of the IA storage class can be converted into Archive but cannot be converted into Standard. Values:
IA
,Archive
.
- days number
Specifies the number of days noncurrent object versions transition.
- storage
Class string Specifies the storage class that objects that conform to the rule are converted into. The storage class of the objects in a bucket of the IA storage class can be converted into Archive but cannot be converted into Standard. Values:
IA
,Archive
.
- days int
Specifies the number of days noncurrent object versions transition.
- storage_
class str Specifies the storage class that objects that conform to the rule are converted into. The storage class of the objects in a bucket of the IA storage class can be converted into Archive but cannot be converted into Standard. Values:
IA
,Archive
.
- days Number
Specifies the number of days noncurrent object versions transition.
- storage
Class String Specifies the storage class that objects that conform to the rule are converted into. The storage class of the objects in a bucket of the IA storage class can be converted into Archive but cannot be converted into Standard. Values:
IA
,Archive
.
BucketLifecycleRuleTransition
- Created
Before stringDate Specifies the time before which the rules take effect. The date must conform to the ISO8601 format and always be UTC 00:00. For example: 2002-10-11T00:00:00.000Z indicates that parts created before 2002-10-11T00:00:00.000Z are deleted, and parts created after this time (including this time) are not deleted.
- Days int
Specifies the number of days noncurrent object versions transition.
- Storage
Class string Specifies the storage class that objects that conform to the rule are converted into. The storage class of the objects in a bucket of the IA storage class can be converted into Archive but cannot be converted into Standard. Values:
IA
,Archive
.
- Created
Before stringDate Specifies the time before which the rules take effect. The date must conform to the ISO8601 format and always be UTC 00:00. For example: 2002-10-11T00:00:00.000Z indicates that parts created before 2002-10-11T00:00:00.000Z are deleted, and parts created after this time (including this time) are not deleted.
- Days int
Specifies the number of days noncurrent object versions transition.
- Storage
Class string Specifies the storage class that objects that conform to the rule are converted into. The storage class of the objects in a bucket of the IA storage class can be converted into Archive but cannot be converted into Standard. Values:
IA
,Archive
.
- created
Before StringDate Specifies the time before which the rules take effect. The date must conform to the ISO8601 format and always be UTC 00:00. For example: 2002-10-11T00:00:00.000Z indicates that parts created before 2002-10-11T00:00:00.000Z are deleted, and parts created after this time (including this time) are not deleted.
- days Integer
Specifies the number of days noncurrent object versions transition.
- storage
Class String Specifies the storage class that objects that conform to the rule are converted into. The storage class of the objects in a bucket of the IA storage class can be converted into Archive but cannot be converted into Standard. Values:
IA
,Archive
.
- created
Before stringDate Specifies the time before which the rules take effect. The date must conform to the ISO8601 format and always be UTC 00:00. For example: 2002-10-11T00:00:00.000Z indicates that parts created before 2002-10-11T00:00:00.000Z are deleted, and parts created after this time (including this time) are not deleted.
- days number
Specifies the number of days noncurrent object versions transition.
- storage
Class string Specifies the storage class that objects that conform to the rule are converted into. The storage class of the objects in a bucket of the IA storage class can be converted into Archive but cannot be converted into Standard. Values:
IA
,Archive
.
- created_
before_ strdate Specifies the time before which the rules take effect. The date must conform to the ISO8601 format and always be UTC 00:00. For example: 2002-10-11T00:00:00.000Z indicates that parts created before 2002-10-11T00:00:00.000Z are deleted, and parts created after this time (including this time) are not deleted.
- days int
Specifies the number of days noncurrent object versions transition.
- storage_
class str Specifies the storage class that objects that conform to the rule are converted into. The storage class of the objects in a bucket of the IA storage class can be converted into Archive but cannot be converted into Standard. Values:
IA
,Archive
.
- created
Before StringDate Specifies the time before which the rules take effect. The date must conform to the ISO8601 format and always be UTC 00:00. For example: 2002-10-11T00:00:00.000Z indicates that parts created before 2002-10-11T00:00:00.000Z are deleted, and parts created after this time (including this time) are not deleted.
- days Number
Specifies the number of days noncurrent object versions transition.
- storage
Class String Specifies the storage class that objects that conform to the rule are converted into. The storage class of the objects in a bucket of the IA storage class can be converted into Archive but cannot be converted into Standard. Values:
IA
,Archive
.
BucketLogging
- Target
Bucket string The name of the bucket that will receive the log objects.
- Target
Prefix string To specify a key prefix for log objects.
- Target
Bucket string The name of the bucket that will receive the log objects.
- Target
Prefix string To specify a key prefix for log objects.
- target
Bucket String The name of the bucket that will receive the log objects.
- target
Prefix String To specify a key prefix for log objects.
- target
Bucket string The name of the bucket that will receive the log objects.
- target
Prefix string To specify a key prefix for log objects.
- target_
bucket str The name of the bucket that will receive the log objects.
- target_
prefix str To specify a key prefix for log objects.
- target
Bucket String The name of the bucket that will receive the log objects.
- target
Prefix String To specify a key prefix for log objects.
BucketRefererConfig
- Referers List<string>
The list of referer.
- Allow
Empty bool Allows referer to be empty. Defaults false.
- Referers []string
The list of referer.
- Allow
Empty bool Allows referer to be empty. Defaults false.
- referers List<String>
The list of referer.
- allow
Empty Boolean Allows referer to be empty. Defaults false.
- referers string[]
The list of referer.
- allow
Empty boolean Allows referer to be empty. Defaults false.
- referers Sequence[str]
The list of referer.
- allow_
empty bool Allows referer to be empty. Defaults false.
- referers List<String>
The list of referer.
- allow
Empty Boolean Allows referer to be empty. Defaults false.
BucketServerSideEncryptionRule
- Sse
Algorithm string The server-side encryption algorithm to use. Possible values:
AES256
andKMS
.- 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. Possible values:
AES256
andKMS
.- 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. Possible values:
AES256
andKMS
.- 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. Possible values:
AES256
andKMS
.- kms
Master stringKey Id The alibaba cloud KMS master key ID used for the SSE-KMS encryption.
- sse_
algorithm str The server-side encryption algorithm to use. Possible values:
AES256
andKMS
.- kms_
master_ strkey_ id The alibaba cloud KMS master key ID used for the SSE-KMS encryption.
- sse
Algorithm String The server-side encryption algorithm to use. Possible values:
AES256
andKMS
.- kms
Master StringKey Id The alibaba cloud KMS master key ID used for the SSE-KMS encryption.
BucketTransferAcceleration
- Enabled bool
Specifies the accelerate status of a bucket.
- Enabled bool
Specifies the accelerate status of a bucket.
- enabled Boolean
Specifies the accelerate status of a bucket.
- enabled boolean
Specifies the accelerate status of a bucket.
- enabled bool
Specifies the accelerate status of a bucket.
- enabled Boolean
Specifies the accelerate status of a bucket.
BucketVersioning
- Status string
Specifies the versioning state of a bucket. Valid values:
Enabled
andSuspended
.
- Status string
Specifies the versioning state of a bucket. Valid values:
Enabled
andSuspended
.
- status String
Specifies the versioning state of a bucket. Valid values:
Enabled
andSuspended
.
- status string
Specifies the versioning state of a bucket. Valid values:
Enabled
andSuspended
.
- status str
Specifies the versioning state of a bucket. Valid values:
Enabled
andSuspended
.
- status String
Specifies the versioning state of a bucket. Valid values:
Enabled
andSuspended
.
BucketWebsite
- Index
Document string Alicloud OSS returns this index document when requests are made to the root domain or any of the subfolders.
- Error
Document string An absolute path to the document to return in case of a 4XX error.
- Index
Document string Alicloud OSS returns this index document when requests are made to the root domain or any of the subfolders.
- Error
Document string An absolute path to the document to return in case of a 4XX error.
- index
Document String Alicloud OSS returns this index document when requests are made to the root domain or any of the subfolders.
- error
Document String An absolute path to the document to return in case of a 4XX error.
- index
Document string Alicloud OSS returns this index document when requests are made to the root domain or any of the subfolders.
- error
Document string An absolute path to the document to return in case of a 4XX error.
- index_
document str Alicloud OSS returns this index document when requests are made to the root domain or any of the subfolders.
- error_
document str An absolute path to the document to return in case of a 4XX error.
- index
Document String Alicloud OSS returns this index document when requests are made to the root domain or any of the subfolders.
- error
Document String An absolute path to the document to return in case of a 4XX error.
Import
OSS bucket can be imported using the bucket name, e.g.
$ pulumi import alicloud:oss/bucket:Bucket bucket bucket-12345678
Package Details
- Repository
- https://github.com/pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
alicloud
Terraform Provider.