Class 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",
});
}
}
Inherited Members
Namespace: Pulumi.AliCloud.Oss
Assembly: Pulumi.AliCloud.dll
Syntax
public class Bucket : CustomResource
Constructors
View SourceBucket(String, BucketArgs, CustomResourceOptions)
Create a Bucket resource with the given unique name, arguments, and options.
Declaration
public Bucket(string name, BucketArgs args = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| BucketArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceAcl
The canned ACL to apply. Can be "private", "public-read" and "public-read-write". Defaults to "private".
Declaration
public Output<string> Acl { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
BucketName
Declaration
public Output<string> BucketName { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
CorsRules
A rule of Cross-Origin Resource Sharing (documented below). The items of core rule are no more than 10 for every OSS bucket.
Declaration
public Output<ImmutableArray<BucketCorsRule>> CorsRules { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<BucketCorsRule>> |
CreationDate
The creation date of the bucket.
Declaration
public Output<string> CreationDate { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
ExtranetEndpoint
The extranet access endpoint of the bucket.
Declaration
public Output<string> ExtranetEndpoint { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
ForceDestroy
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".
Declaration
public Output<bool?> ForceDestroy { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Boolean>> |
IntranetEndpoint
The intranet access endpoint of the bucket.
Declaration
public Output<string> IntranetEndpoint { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
LifecycleRules
A configuration of object lifecycle management (documented below).
Declaration
public Output<ImmutableArray<BucketLifecycleRule>> LifecycleRules { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<BucketLifecycleRule>> |
Location
The location of the bucket.
Declaration
public Output<string> Location { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Logging
A Settings of bucket logging (documented below).
Declaration
public Output<BucketLogging> Logging { get; }
Property Value
| Type | Description |
|---|---|
| Output<BucketLogging> |
LoggingIsenable
The flag of using logging enable container. Defaults true.
Declaration
public Output<bool?> LoggingIsenable { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Boolean>> |
Owner
The bucket owner.
Declaration
public Output<string> Owner { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Policy
Json format text of bucket policy bucket policy management.
Declaration
public Output<string> Policy { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
RefererConfig
The configuration of referer (documented below).
Declaration
public Output<BucketRefererConfig> RefererConfig { get; }
Property Value
| Type | Description |
|---|---|
| Output<BucketRefererConfig> |
ServerSideEncryptionRule
A configuration of server-side encryption (documented below).
Declaration
public Output<BucketServerSideEncryptionRule> ServerSideEncryptionRule { get; }
Property Value
| Type | Description |
|---|---|
| Output<BucketServerSideEncryptionRule> |
StorageClass
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.
Declaration
public Output<string> StorageClass { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Tags
A mapping of tags to assign to the bucket. The items are no more than 10 for a bucket.
Declaration
public Output<ImmutableDictionary<string, object>> Tags { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableDictionary<System.String, System.Object>> |
Versioning
A state of versioning (documented below).
Declaration
public Output<BucketVersioning> Versioning { get; }
Property Value
| Type | Description |
|---|---|
| Output<BucketVersioning> |
Website
A website object(documented below).
Declaration
public Output<BucketWebsite> Website { get; }
Property Value
| Type | Description |
|---|---|
| Output<BucketWebsite> |
Methods
View SourceGet(String, Input<String>, BucketState, CustomResourceOptions)
Get an existing Bucket resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static Bucket Get(string name, Input<string> id, BucketState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| BucketState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| Bucket |