Show / Hide Table of Contents

Namespace Pulumi.AliCloud.Oss

Classes

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

}

BucketArgs

BucketObject

Provides a resource to put a object(content or file) to a oss bucket.

Example Usage

Uploading a file to a bucket

using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
public MyStack()
{
    var object_source = new AliCloud.Oss.BucketObject("object-source", new AliCloud.Oss.BucketObjectArgs
    {
        Bucket = "your_bucket_name",
        Key = "new_object_key",
        Source = "path/to/file",
    });
}

}

Uploading a content to a bucket

using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
public MyStack()
{
    var example = new AliCloud.Oss.Bucket("example", new AliCloud.Oss.BucketArgs
    {
        Acl = "public-read",
        Bucket = "your_bucket_name",
    });
    var object_content = new AliCloud.Oss.BucketObject("object-content", new AliCloud.Oss.BucketObjectArgs
    {
        Bucket = example.BucketName,
        Content = "the content that you want to upload.",
        Key = "new_object_key",
    });
}

}

BucketObjectArgs

BucketObjectState

BucketState

GetBucketObjects

GetBucketObjectsArgs

GetBucketObjectsResult

GetBuckets

GetBucketsArgs

GetBucketsResult

GetInstanceAttachments

GetInstanceAttachmentsArgs

GetInstanceAttachmentsResult

GetInstances

GetInstancesArgs

GetInstancesResult

GetTables

GetTablesArgs

GetTablesResult

Back to top Copyright 2016-2020, Pulumi Corporation.