Show / Hide Table of Contents

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",
    });
}

}
Inheritance
System.Object
Resource
CustomResource
Bucket
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.AliCloud.Oss
Assembly: Pulumi.AliCloud.dll
Syntax
public class Bucket : CustomResource

Constructors

View Source

Bucket(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 Source

Acl

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>
View Source

BucketName

Declaration
public Output<string> BucketName { get; }
Property Value
Type Description
Output<System.String>
View Source

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>>
View Source

CreationDate

The creation date of the bucket.

Declaration
public Output<string> CreationDate { get; }
Property Value
Type Description
Output<System.String>
View Source

ExtranetEndpoint

The extranet access endpoint of the bucket.

Declaration
public Output<string> ExtranetEndpoint { get; }
Property Value
Type Description
Output<System.String>
View Source

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>>
View Source

IntranetEndpoint

The intranet access endpoint of the bucket.

Declaration
public Output<string> IntranetEndpoint { get; }
Property Value
Type Description
Output<System.String>
View Source

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>>
View Source

Location

The location of the bucket.

Declaration
public Output<string> Location { get; }
Property Value
Type Description
Output<System.String>
View Source

Logging

A Settings of bucket logging (documented below).

Declaration
public Output<BucketLogging> Logging { get; }
Property Value
Type Description
Output<BucketLogging>
View Source

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>>
View Source

Owner

The bucket owner.

Declaration
public Output<string> Owner { get; }
Property Value
Type Description
Output<System.String>
View Source

Policy

Json format text of bucket policy bucket policy management.

Declaration
public Output<string> Policy { get; }
Property Value
Type Description
Output<System.String>
View Source

RefererConfig

The configuration of referer (documented below).

Declaration
public Output<BucketRefererConfig> RefererConfig { get; }
Property Value
Type Description
Output<BucketRefererConfig>
View Source

ServerSideEncryptionRule

A configuration of server-side encryption (documented below).

Declaration
public Output<BucketServerSideEncryptionRule> ServerSideEncryptionRule { get; }
Property Value
Type Description
Output<BucketServerSideEncryptionRule>
View Source

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>
View Source

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>>
View Source

Versioning

A state of versioning (documented below).

Declaration
public Output<BucketVersioning> Versioning { get; }
Property Value
Type Description
Output<BucketVersioning>
View Source

Website

A website object(documented below).

Declaration
public Output<BucketWebsite> Website { get; }
Property Value
Type Description
Output<BucketWebsite>

Methods

View Source

Get(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
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.