alicloud.oss.Bucket
Explore with Pulumi AI
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.
NOTE: Available since v1.2.0.
Example Usage
Private Bucket
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_acl = new alicloud.oss.Bucket("bucket-acl", {bucket: `example-value-${_default.result}`});
const bucket_aclBucketAcl = new alicloud.oss.BucketAcl("bucket-acl", {
    bucket: bucket_acl.bucket,
    acl: "private",
});
import pulumi
import pulumi_alicloud as alicloud
import pulumi_random as random
default = random.index.Integer("default",
    max=99999,
    min=10000)
bucket_acl = alicloud.oss.Bucket("bucket-acl", bucket=f"example-value-{default['result']}")
bucket_acl_bucket_acl = alicloud.oss.BucketAcl("bucket-acl",
    bucket=bucket_acl.bucket,
    acl="private")
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 {
		_default, err := random.NewInteger(ctx, "default", &random.IntegerArgs{
			Max: 99999,
			Min: 10000,
		})
		if err != nil {
			return err
		}
		bucket_acl, err := oss.NewBucket(ctx, "bucket-acl", &oss.BucketArgs{
			Bucket: pulumi.Sprintf("example-value-%v", _default.Result),
		})
		if err != nil {
			return err
		}
		_, err = oss.NewBucketAcl(ctx, "bucket-acl", &oss.BucketAclArgs{
			Bucket: bucket_acl.Bucket,
			Acl:    pulumi.String("private"),
		})
		if err != nil {
			return err
		}
		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_acl = new AliCloud.Oss.Bucket("bucket-acl", new()
    {
        BucketName = $"example-value-{@default.Result}",
    });
    var bucket_aclBucketAcl = new AliCloud.Oss.BucketAcl("bucket-acl", new()
    {
        Bucket = bucket_acl.BucketName,
        Acl = "private",
    });
});
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.BucketAcl;
import com.pulumi.alicloud.oss.BucketAclArgs;
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_acl = new Bucket("bucket-acl", BucketArgs.builder()
            .bucket(String.format("example-value-%s", default_.result()))
            .build());
        var bucket_aclBucketAcl = new BucketAcl("bucket-aclBucketAcl", BucketAclArgs.builder()
            .bucket(bucket_acl.bucket())
            .acl("private")
            .build());
    }
}
resources:
  default:
    type: random:integer
    properties:
      max: 99999
      min: 10000
  bucket-acl:
    type: alicloud:oss:Bucket
    properties:
      bucket: example-value-${default.result}
  bucket-aclBucketAcl:
    type: alicloud:oss:BucketAcl
    name: bucket-acl
    properties:
      bucket: ${["bucket-acl"].bucket}
      acl: private
Static Website
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_website = new alicloud.oss.Bucket("bucket-website", {
    bucket: `example-value-${_default.result}`,
    website: {
        indexDocument: "index.html",
        errorDocument: "error.html",
    },
});
import pulumi
import pulumi_alicloud as alicloud
import pulumi_random as random
default = random.index.Integer("default",
    max=99999,
    min=10000)
bucket_website = alicloud.oss.Bucket("bucket-website",
    bucket=f"example-value-{default['result']}",
    website={
        "index_document": "index.html",
        "error_document": "error.html",
    })
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 {
		_default, err := random.NewInteger(ctx, "default", &random.IntegerArgs{
			Max: 99999,
			Min: 10000,
		})
		if err != nil {
			return err
		}
		_, err = oss.NewBucket(ctx, "bucket-website", &oss.BucketArgs{
			Bucket: pulumi.Sprintf("example-value-%v", _default.Result),
			Website: &oss.BucketWebsiteTypeArgs{
				IndexDocument: pulumi.String("index.html"),
				ErrorDocument: pulumi.String("error.html"),
			},
		})
		if err != nil {
			return err
		}
		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_website = new AliCloud.Oss.Bucket("bucket-website", new()
    {
        BucketName = $"example-value-{@default.Result}",
        Website = new AliCloud.Oss.Inputs.BucketWebsiteArgs
        {
            IndexDocument = "index.html",
            ErrorDocument = "error.html",
        },
    });
});
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.inputs.BucketWebsiteArgs;
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_website = new Bucket("bucket-website", BucketArgs.builder()
            .bucket(String.format("example-value-%s", default_.result()))
            .website(BucketWebsiteArgs.builder()
                .indexDocument("index.html")
                .errorDocument("error.html")
                .build())
            .build());
    }
}
resources:
  default:
    type: random:integer
    properties:
      max: 99999
      min: 10000
  bucket-website:
    type: alicloud:oss:Bucket
    properties:
      bucket: example-value-${default.result}
      website:
        indexDocument: index.html
        errorDocument: error.html
Enable Logging
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_target = new alicloud.oss.Bucket("bucket-target", {bucket: `example-value-${_default.result}`});
const bucket_targetBucketAcl = new alicloud.oss.BucketAcl("bucket-target", {
    bucket: bucket_target.bucket,
    acl: "public-read",
});
const bucket_logging = new alicloud.oss.Bucket("bucket-logging", {
    bucket: `example-logging-${_default.result}`,
    logging: {
        targetBucket: bucket_target.id,
        targetPrefix: "log/",
    },
});
import pulumi
import pulumi_alicloud as alicloud
import pulumi_random as random
default = random.index.Integer("default",
    max=99999,
    min=10000)
bucket_target = alicloud.oss.Bucket("bucket-target", bucket=f"example-value-{default['result']}")
bucket_target_bucket_acl = alicloud.oss.BucketAcl("bucket-target",
    bucket=bucket_target.bucket,
    acl="public-read")
bucket_logging = alicloud.oss.Bucket("bucket-logging",
    bucket=f"example-logging-{default['result']}",
    logging={
        "target_bucket": bucket_target.id,
        "target_prefix": "log/",
    })
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 {
		_default, err := random.NewInteger(ctx, "default", &random.IntegerArgs{
			Max: 99999,
			Min: 10000,
		})
		if err != nil {
			return err
		}
		bucket_target, err := oss.NewBucket(ctx, "bucket-target", &oss.BucketArgs{
			Bucket: pulumi.Sprintf("example-value-%v", _default.Result),
		})
		if err != nil {
			return err
		}
		_, err = oss.NewBucketAcl(ctx, "bucket-target", &oss.BucketAclArgs{
			Bucket: bucket_target.Bucket,
			Acl:    pulumi.String("public-read"),
		})
		if err != nil {
			return err
		}
		_, err = oss.NewBucket(ctx, "bucket-logging", &oss.BucketArgs{
			Bucket: pulumi.Sprintf("example-logging-%v", _default.Result),
			Logging: &oss.BucketLoggingTypeArgs{
				TargetBucket: bucket_target.ID(),
				TargetPrefix: pulumi.String("log/"),
			},
		})
		if err != nil {
			return err
		}
		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_target = new AliCloud.Oss.Bucket("bucket-target", new()
    {
        BucketName = $"example-value-{@default.Result}",
    });
    var bucket_targetBucketAcl = new AliCloud.Oss.BucketAcl("bucket-target", new()
    {
        Bucket = bucket_target.BucketName,
        Acl = "public-read",
    });
    var bucket_logging = new AliCloud.Oss.Bucket("bucket-logging", new()
    {
        BucketName = $"example-logging-{@default.Result}",
        Logging = new AliCloud.Oss.Inputs.BucketLoggingArgs
        {
            TargetBucket = bucket_target.Id,
            TargetPrefix = "log/",
        },
    });
});
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.BucketAcl;
import com.pulumi.alicloud.oss.BucketAclArgs;
import com.pulumi.alicloud.oss.inputs.BucketLoggingArgs;
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_target = new Bucket("bucket-target", BucketArgs.builder()
            .bucket(String.format("example-value-%s", default_.result()))
            .build());
        var bucket_targetBucketAcl = new BucketAcl("bucket-targetBucketAcl", BucketAclArgs.builder()
            .bucket(bucket_target.bucket())
            .acl("public-read")
            .build());
        var bucket_logging = new Bucket("bucket-logging", BucketArgs.builder()
            .bucket(String.format("example-logging-%s", default_.result()))
            .logging(BucketLoggingArgs.builder()
                .targetBucket(bucket_target.id())
                .targetPrefix("log/")
                .build())
            .build());
    }
}
resources:
  default:
    type: random:integer
    properties:
      max: 99999
      min: 10000
  bucket-target:
    type: alicloud:oss:Bucket
    properties:
      bucket: example-value-${default.result}
  bucket-targetBucketAcl:
    type: alicloud:oss:BucketAcl
    name: bucket-target
    properties:
      bucket: ${["bucket-target"].bucket}
      acl: public-read
  bucket-logging:
    type: alicloud:oss:Bucket
    properties:
      bucket: example-logging-${default.result}
      logging:
        targetBucket: ${["bucket-target"].id}
        targetPrefix: log/
Referer configuration
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_referer = new alicloud.oss.Bucket("bucket-referer", {
    bucket: `example-value-${_default.result}`,
    refererConfig: {
        allowEmpty: false,
        referers: [
            "http://www.aliyun.com",
            "https://www.aliyun.com",
        ],
    },
});
const defaultBucketAcl = new alicloud.oss.BucketAcl("default", {
    bucket: bucket_referer.bucket,
    acl: "private",
});
import pulumi
import pulumi_alicloud as alicloud
import pulumi_random as random
default = random.index.Integer("default",
    max=99999,
    min=10000)
bucket_referer = alicloud.oss.Bucket("bucket-referer",
    bucket=f"example-value-{default['result']}",
    referer_config={
        "allow_empty": False,
        "referers": [
            "http://www.aliyun.com",
            "https://www.aliyun.com",
        ],
    })
default_bucket_acl = alicloud.oss.BucketAcl("default",
    bucket=bucket_referer.bucket,
    acl="private")
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 {
		_default, err := random.NewInteger(ctx, "default", &random.IntegerArgs{
			Max: 99999,
			Min: 10000,
		})
		if err != nil {
			return err
		}
		bucket_referer, err := oss.NewBucket(ctx, "bucket-referer", &oss.BucketArgs{
			Bucket: pulumi.Sprintf("example-value-%v", _default.Result),
			RefererConfig: &oss.BucketRefererConfigArgs{
				AllowEmpty: pulumi.Bool(false),
				Referers: pulumi.StringArray{
					pulumi.String("http://www.aliyun.com"),
					pulumi.String("https://www.aliyun.com"),
				},
			},
		})
		if err != nil {
			return err
		}
		_, err = oss.NewBucketAcl(ctx, "default", &oss.BucketAclArgs{
			Bucket: bucket_referer.Bucket,
			Acl:    pulumi.String("private"),
		})
		if err != nil {
			return err
		}
		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_referer = new AliCloud.Oss.Bucket("bucket-referer", new()
    {
        BucketName = $"example-value-{@default.Result}",
        RefererConfig = new AliCloud.Oss.Inputs.BucketRefererConfigArgs
        {
            AllowEmpty = false,
            Referers = new[]
            {
                "http://www.aliyun.com",
                "https://www.aliyun.com",
            },
        },
    });
    var defaultBucketAcl = new AliCloud.Oss.BucketAcl("default", new()
    {
        Bucket = bucket_referer.BucketName,
        Acl = "private",
    });
});
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.inputs.BucketRefererConfigArgs;
import com.pulumi.alicloud.oss.BucketAcl;
import com.pulumi.alicloud.oss.BucketAclArgs;
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_referer = new Bucket("bucket-referer", BucketArgs.builder()
            .bucket(String.format("example-value-%s", default_.result()))
            .refererConfig(BucketRefererConfigArgs.builder()
                .allowEmpty(false)
                .referers(                
                    "http://www.aliyun.com",
                    "https://www.aliyun.com")
                .build())
            .build());
        var defaultBucketAcl = new BucketAcl("defaultBucketAcl", BucketAclArgs.builder()
            .bucket(bucket_referer.bucket())
            .acl("private")
            .build());
    }
}
resources:
  default:
    type: random:integer
    properties:
      max: 99999
      min: 10000
  bucket-referer:
    type: alicloud:oss:Bucket
    properties:
      bucket: example-value-${default.result}
      refererConfig:
        allowEmpty: false
        referers:
          - http://www.aliyun.com
          - https://www.aliyun.com
  defaultBucketAcl:
    type: alicloud:oss:BucketAcl
    name: default
    properties:
      bucket: ${["bucket-referer"].bucket}
      acl: private
Set lifecycle rule
Create Bucket Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Bucket(name: string, args?: BucketArgs, opts?: CustomResourceOptions);@overload
def Bucket(resource_name: str,
           args: Optional[BucketArgs] = None,
           opts: Optional[ResourceOptions] = None)
@overload
def Bucket(resource_name: str,
           opts: Optional[ResourceOptions] = None,
           access_monitor: Optional[BucketAccessMonitorArgs] = None,
           acl: Optional[str] = None,
           bucket: Optional[str] = None,
           cors_rules: Optional[Sequence[BucketCorsRuleArgs]] = None,
           force_destroy: Optional[bool] = None,
           lifecycle_rule_allow_same_action_overlap: 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,
           resource_group_id: Optional[str] = None,
           server_side_encryption_rule: Optional[BucketServerSideEncryptionRuleArgs] = None,
           storage_class: Optional[str] = None,
           tags: Optional[Mapping[str, str]] = None,
           transfer_acceleration: Optional[BucketTransferAccelerationArgs] = None,
           versioning: Optional[BucketVersioningArgs] = None,
           website: Optional[BucketWebsiteArgs] = 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.
Parameters
- 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.
Constructor example
The following reference example uses placeholder values for all input properties.
var bucketResource = new AliCloud.Oss.Bucket("bucketResource", new()
{
    AccessMonitor = new AliCloud.Oss.Inputs.BucketAccessMonitorArgs
    {
        Status = "string",
    },
    BucketName = "string",
    CorsRules = new[]
    {
        new AliCloud.Oss.Inputs.BucketCorsRuleArgs
        {
            AllowedMethods = new[]
            {
                "string",
            },
            AllowedOrigins = new[]
            {
                "string",
            },
            AllowedHeaders = new[]
            {
                "string",
            },
            ExposeHeaders = new[]
            {
                "string",
            },
            MaxAgeSeconds = 0,
        },
    },
    ForceDestroy = false,
    LifecycleRuleAllowSameActionOverlap = false,
    LifecycleRules = new[]
    {
        new AliCloud.Oss.Inputs.BucketLifecycleRuleArgs
        {
            Enabled = false,
            AbortMultipartUploads = new[]
            {
                new AliCloud.Oss.Inputs.BucketLifecycleRuleAbortMultipartUploadArgs
                {
                    CreatedBeforeDate = "string",
                    Days = 0,
                },
            },
            Expirations = new[]
            {
                new AliCloud.Oss.Inputs.BucketLifecycleRuleExpirationArgs
                {
                    CreatedBeforeDate = "string",
                    Date = "string",
                    Days = 0,
                    ExpiredObjectDeleteMarker = false,
                },
            },
            Filter = new AliCloud.Oss.Inputs.BucketLifecycleRuleFilterArgs
            {
                Not = new AliCloud.Oss.Inputs.BucketLifecycleRuleFilterNotArgs
                {
                    Prefix = "string",
                    Tag = new AliCloud.Oss.Inputs.BucketLifecycleRuleFilterNotTagArgs
                    {
                        Key = "string",
                        Value = "string",
                    },
                },
                ObjectSizeGreaterThan = 0,
                ObjectSizeLessThan = 0,
            },
            Id = "string",
            NoncurrentVersionExpirations = new[]
            {
                new AliCloud.Oss.Inputs.BucketLifecycleRuleNoncurrentVersionExpirationArgs
                {
                    Days = 0,
                },
            },
            NoncurrentVersionTransitions = new[]
            {
                new AliCloud.Oss.Inputs.BucketLifecycleRuleNoncurrentVersionTransitionArgs
                {
                    Days = 0,
                    StorageClass = "string",
                    IsAccessTime = false,
                    ReturnToStdWhenVisit = false,
                },
            },
            Prefix = "string",
            Tags = 
            {
                { "string", "string" },
            },
            Transitions = new[]
            {
                new AliCloud.Oss.Inputs.BucketLifecycleRuleTransitionArgs
                {
                    StorageClass = "string",
                    CreatedBeforeDate = "string",
                    Days = 0,
                    IsAccessTime = false,
                    ReturnToStdWhenVisit = false,
                },
            },
        },
    },
    Logging = new AliCloud.Oss.Inputs.BucketLoggingArgs
    {
        TargetBucket = "string",
        TargetPrefix = "string",
    },
    Policy = "string",
    RedundancyType = "string",
    RefererConfig = new AliCloud.Oss.Inputs.BucketRefererConfigArgs
    {
        Referers = new[]
        {
            "string",
        },
        AllowEmpty = false,
    },
    ResourceGroupId = "string",
    ServerSideEncryptionRule = new AliCloud.Oss.Inputs.BucketServerSideEncryptionRuleArgs
    {
        SseAlgorithm = "string",
        KmsMasterKeyId = "string",
    },
    StorageClass = "string",
    Tags = 
    {
        { "string", "string" },
    },
    TransferAcceleration = new AliCloud.Oss.Inputs.BucketTransferAccelerationArgs
    {
        Enabled = false,
    },
    Versioning = new AliCloud.Oss.Inputs.BucketVersioningArgs
    {
        Status = "string",
    },
    Website = new AliCloud.Oss.Inputs.BucketWebsiteArgs
    {
        IndexDocument = "string",
        ErrorDocument = "string",
    },
});
example, err := oss.NewBucket(ctx, "bucketResource", &oss.BucketArgs{
	AccessMonitor: &oss.BucketAccessMonitorTypeArgs{
		Status: pulumi.String("string"),
	},
	Bucket: pulumi.String("string"),
	CorsRules: oss.BucketCorsRuleArray{
		&oss.BucketCorsRuleArgs{
			AllowedMethods: pulumi.StringArray{
				pulumi.String("string"),
			},
			AllowedOrigins: pulumi.StringArray{
				pulumi.String("string"),
			},
			AllowedHeaders: pulumi.StringArray{
				pulumi.String("string"),
			},
			ExposeHeaders: pulumi.StringArray{
				pulumi.String("string"),
			},
			MaxAgeSeconds: pulumi.Int(0),
		},
	},
	ForceDestroy:                        pulumi.Bool(false),
	LifecycleRuleAllowSameActionOverlap: pulumi.Bool(false),
	LifecycleRules: oss.BucketLifecycleRuleArray{
		&oss.BucketLifecycleRuleArgs{
			Enabled: pulumi.Bool(false),
			AbortMultipartUploads: oss.BucketLifecycleRuleAbortMultipartUploadArray{
				&oss.BucketLifecycleRuleAbortMultipartUploadArgs{
					CreatedBeforeDate: pulumi.String("string"),
					Days:              pulumi.Int(0),
				},
			},
			Expirations: oss.BucketLifecycleRuleExpirationArray{
				&oss.BucketLifecycleRuleExpirationArgs{
					CreatedBeforeDate:         pulumi.String("string"),
					Date:                      pulumi.String("string"),
					Days:                      pulumi.Int(0),
					ExpiredObjectDeleteMarker: pulumi.Bool(false),
				},
			},
			Filter: &oss.BucketLifecycleRuleFilterArgs{
				Not: &oss.BucketLifecycleRuleFilterNotArgs{
					Prefix: pulumi.String("string"),
					Tag: &oss.BucketLifecycleRuleFilterNotTagArgs{
						Key:   pulumi.String("string"),
						Value: pulumi.String("string"),
					},
				},
				ObjectSizeGreaterThan: pulumi.Int(0),
				ObjectSizeLessThan:    pulumi.Int(0),
			},
			Id: pulumi.String("string"),
			NoncurrentVersionExpirations: oss.BucketLifecycleRuleNoncurrentVersionExpirationArray{
				&oss.BucketLifecycleRuleNoncurrentVersionExpirationArgs{
					Days: pulumi.Int(0),
				},
			},
			NoncurrentVersionTransitions: oss.BucketLifecycleRuleNoncurrentVersionTransitionArray{
				&oss.BucketLifecycleRuleNoncurrentVersionTransitionArgs{
					Days:                 pulumi.Int(0),
					StorageClass:         pulumi.String("string"),
					IsAccessTime:         pulumi.Bool(false),
					ReturnToStdWhenVisit: pulumi.Bool(false),
				},
			},
			Prefix: pulumi.String("string"),
			Tags: pulumi.StringMap{
				"string": pulumi.String("string"),
			},
			Transitions: oss.BucketLifecycleRuleTransitionArray{
				&oss.BucketLifecycleRuleTransitionArgs{
					StorageClass:         pulumi.String("string"),
					CreatedBeforeDate:    pulumi.String("string"),
					Days:                 pulumi.Int(0),
					IsAccessTime:         pulumi.Bool(false),
					ReturnToStdWhenVisit: pulumi.Bool(false),
				},
			},
		},
	},
	Logging: &oss.BucketLoggingTypeArgs{
		TargetBucket: pulumi.String("string"),
		TargetPrefix: pulumi.String("string"),
	},
	Policy:         pulumi.String("string"),
	RedundancyType: pulumi.String("string"),
	RefererConfig: &oss.BucketRefererConfigArgs{
		Referers: pulumi.StringArray{
			pulumi.String("string"),
		},
		AllowEmpty: pulumi.Bool(false),
	},
	ResourceGroupId: pulumi.String("string"),
	ServerSideEncryptionRule: &oss.BucketServerSideEncryptionRuleArgs{
		SseAlgorithm:   pulumi.String("string"),
		KmsMasterKeyId: pulumi.String("string"),
	},
	StorageClass: pulumi.String("string"),
	Tags: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	TransferAcceleration: &oss.BucketTransferAccelerationTypeArgs{
		Enabled: pulumi.Bool(false),
	},
	Versioning: &oss.BucketVersioningTypeArgs{
		Status: pulumi.String("string"),
	},
	Website: &oss.BucketWebsiteTypeArgs{
		IndexDocument: pulumi.String("string"),
		ErrorDocument: pulumi.String("string"),
	},
})
var bucketResource = new Bucket("bucketResource", BucketArgs.builder()
    .accessMonitor(BucketAccessMonitorArgs.builder()
        .status("string")
        .build())
    .bucket("string")
    .corsRules(BucketCorsRuleArgs.builder()
        .allowedMethods("string")
        .allowedOrigins("string")
        .allowedHeaders("string")
        .exposeHeaders("string")
        .maxAgeSeconds(0)
        .build())
    .forceDestroy(false)
    .lifecycleRuleAllowSameActionOverlap(false)
    .lifecycleRules(BucketLifecycleRuleArgs.builder()
        .enabled(false)
        .abortMultipartUploads(BucketLifecycleRuleAbortMultipartUploadArgs.builder()
            .createdBeforeDate("string")
            .days(0)
            .build())
        .expirations(BucketLifecycleRuleExpirationArgs.builder()
            .createdBeforeDate("string")
            .date("string")
            .days(0)
            .expiredObjectDeleteMarker(false)
            .build())
        .filter(BucketLifecycleRuleFilterArgs.builder()
            .not(BucketLifecycleRuleFilterNotArgs.builder()
                .prefix("string")
                .tag(BucketLifecycleRuleFilterNotTagArgs.builder()
                    .key("string")
                    .value("string")
                    .build())
                .build())
            .objectSizeGreaterThan(0)
            .objectSizeLessThan(0)
            .build())
        .id("string")
        .noncurrentVersionExpirations(BucketLifecycleRuleNoncurrentVersionExpirationArgs.builder()
            .days(0)
            .build())
        .noncurrentVersionTransitions(BucketLifecycleRuleNoncurrentVersionTransitionArgs.builder()
            .days(0)
            .storageClass("string")
            .isAccessTime(false)
            .returnToStdWhenVisit(false)
            .build())
        .prefix("string")
        .tags(Map.of("string", "string"))
        .transitions(BucketLifecycleRuleTransitionArgs.builder()
            .storageClass("string")
            .createdBeforeDate("string")
            .days(0)
            .isAccessTime(false)
            .returnToStdWhenVisit(false)
            .build())
        .build())
    .logging(BucketLoggingArgs.builder()
        .targetBucket("string")
        .targetPrefix("string")
        .build())
    .policy("string")
    .redundancyType("string")
    .refererConfig(BucketRefererConfigArgs.builder()
        .referers("string")
        .allowEmpty(false)
        .build())
    .resourceGroupId("string")
    .serverSideEncryptionRule(BucketServerSideEncryptionRuleArgs.builder()
        .sseAlgorithm("string")
        .kmsMasterKeyId("string")
        .build())
    .storageClass("string")
    .tags(Map.of("string", "string"))
    .transferAcceleration(BucketTransferAccelerationArgs.builder()
        .enabled(false)
        .build())
    .versioning(BucketVersioningArgs.builder()
        .status("string")
        .build())
    .website(BucketWebsiteArgs.builder()
        .indexDocument("string")
        .errorDocument("string")
        .build())
    .build());
bucket_resource = alicloud.oss.Bucket("bucketResource",
    access_monitor={
        "status": "string",
    },
    bucket="string",
    cors_rules=[{
        "allowed_methods": ["string"],
        "allowed_origins": ["string"],
        "allowed_headers": ["string"],
        "expose_headers": ["string"],
        "max_age_seconds": 0,
    }],
    force_destroy=False,
    lifecycle_rule_allow_same_action_overlap=False,
    lifecycle_rules=[{
        "enabled": False,
        "abort_multipart_uploads": [{
            "created_before_date": "string",
            "days": 0,
        }],
        "expirations": [{
            "created_before_date": "string",
            "date": "string",
            "days": 0,
            "expired_object_delete_marker": False,
        }],
        "filter": {
            "not_": {
                "prefix": "string",
                "tag": {
                    "key": "string",
                    "value": "string",
                },
            },
            "object_size_greater_than": 0,
            "object_size_less_than": 0,
        },
        "id": "string",
        "noncurrent_version_expirations": [{
            "days": 0,
        }],
        "noncurrent_version_transitions": [{
            "days": 0,
            "storage_class": "string",
            "is_access_time": False,
            "return_to_std_when_visit": False,
        }],
        "prefix": "string",
        "tags": {
            "string": "string",
        },
        "transitions": [{
            "storage_class": "string",
            "created_before_date": "string",
            "days": 0,
            "is_access_time": False,
            "return_to_std_when_visit": False,
        }],
    }],
    logging={
        "target_bucket": "string",
        "target_prefix": "string",
    },
    policy="string",
    redundancy_type="string",
    referer_config={
        "referers": ["string"],
        "allow_empty": False,
    },
    resource_group_id="string",
    server_side_encryption_rule={
        "sse_algorithm": "string",
        "kms_master_key_id": "string",
    },
    storage_class="string",
    tags={
        "string": "string",
    },
    transfer_acceleration={
        "enabled": False,
    },
    versioning={
        "status": "string",
    },
    website={
        "index_document": "string",
        "error_document": "string",
    })
const bucketResource = new alicloud.oss.Bucket("bucketResource", {
    accessMonitor: {
        status: "string",
    },
    bucket: "string",
    corsRules: [{
        allowedMethods: ["string"],
        allowedOrigins: ["string"],
        allowedHeaders: ["string"],
        exposeHeaders: ["string"],
        maxAgeSeconds: 0,
    }],
    forceDestroy: false,
    lifecycleRuleAllowSameActionOverlap: false,
    lifecycleRules: [{
        enabled: false,
        abortMultipartUploads: [{
            createdBeforeDate: "string",
            days: 0,
        }],
        expirations: [{
            createdBeforeDate: "string",
            date: "string",
            days: 0,
            expiredObjectDeleteMarker: false,
        }],
        filter: {
            not: {
                prefix: "string",
                tag: {
                    key: "string",
                    value: "string",
                },
            },
            objectSizeGreaterThan: 0,
            objectSizeLessThan: 0,
        },
        id: "string",
        noncurrentVersionExpirations: [{
            days: 0,
        }],
        noncurrentVersionTransitions: [{
            days: 0,
            storageClass: "string",
            isAccessTime: false,
            returnToStdWhenVisit: false,
        }],
        prefix: "string",
        tags: {
            string: "string",
        },
        transitions: [{
            storageClass: "string",
            createdBeforeDate: "string",
            days: 0,
            isAccessTime: false,
            returnToStdWhenVisit: false,
        }],
    }],
    logging: {
        targetBucket: "string",
        targetPrefix: "string",
    },
    policy: "string",
    redundancyType: "string",
    refererConfig: {
        referers: ["string"],
        allowEmpty: false,
    },
    resourceGroupId: "string",
    serverSideEncryptionRule: {
        sseAlgorithm: "string",
        kmsMasterKeyId: "string",
    },
    storageClass: "string",
    tags: {
        string: "string",
    },
    transferAcceleration: {
        enabled: false,
    },
    versioning: {
        status: "string",
    },
    website: {
        indexDocument: "string",
        errorDocument: "string",
    },
});
type: alicloud:oss:Bucket
properties:
    accessMonitor:
        status: string
    bucket: string
    corsRules:
        - allowedHeaders:
            - string
          allowedMethods:
            - string
          allowedOrigins:
            - string
          exposeHeaders:
            - string
          maxAgeSeconds: 0
    forceDestroy: false
    lifecycleRuleAllowSameActionOverlap: false
    lifecycleRules:
        - abortMultipartUploads:
            - createdBeforeDate: string
              days: 0
          enabled: false
          expirations:
            - createdBeforeDate: string
              date: string
              days: 0
              expiredObjectDeleteMarker: false
          filter:
            not:
                prefix: string
                tag:
                    key: string
                    value: string
            objectSizeGreaterThan: 0
            objectSizeLessThan: 0
          id: string
          noncurrentVersionExpirations:
            - days: 0
          noncurrentVersionTransitions:
            - days: 0
              isAccessTime: false
              returnToStdWhenVisit: false
              storageClass: string
          prefix: string
          tags:
            string: string
          transitions:
            - createdBeforeDate: string
              days: 0
              isAccessTime: false
              returnToStdWhenVisit: false
              storageClass: string
    logging:
        targetBucket: string
        targetPrefix: string
    policy: string
    redundancyType: string
    refererConfig:
        allowEmpty: false
        referers:
            - string
    resourceGroupId: string
    serverSideEncryptionRule:
        kmsMasterKeyId: string
        sseAlgorithm: string
    storageClass: string
    tags:
        string: string
    transferAcceleration:
        enabled: false
    versioning:
        status: string
    website:
        errorDocument: string
        indexDocument: string
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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Bucket resource accepts the following input properties:
- AccessMonitor Pulumi.Ali Cloud. Oss. Inputs. Bucket Access Monitor 
- A access monitor status of a bucket. See access_monitorbelow.
- Acl string
- The canned ACL to apply. Can be "private", "public-read" and "public-read-write". This property has been deprecated since 1.220.0, please use the resource alicloud.oss.BucketAclinstead.
- BucketName string
- CorsRules List<Pulumi.Ali Cloud. Oss. Inputs. Bucket Cors Rule> 
- A rule of Cross-Origin Resource Sharing. The items of core rule are no more than 10 for every OSS bucket. See cors_rulebelow.
- ForceDestroy 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".
- LifecycleRule boolAllow Same Action Overlap 
- A boolean that indicates lifecycle rules allow prefix overlap.
- LifecycleRules List<Pulumi.Ali Cloud. Oss. Inputs. Bucket Lifecycle Rule> 
- A configuration of object lifecycle management. See lifecycle_rulebelow.
- Logging
Pulumi.Ali Cloud. Oss. Inputs. Bucket Logging 
- A Settings of bucket logging. See loggingbelow.
- LoggingIsenable bool
- The flag of using logging enable container. Defaults true.
- Policy string
- Json format text of bucket policy bucket policy management. This property has been deprecated since 1.220.0, please use the resource alicloud.oss.BucketPolicyinstead.
- RedundancyType string
- The redundancy type to enable. Can be "LRS", and "ZRS". Defaults to "LRS".
- RefererConfig Pulumi.Ali Cloud. Oss. Inputs. Bucket Referer Config 
- The configuration of referer. This property has been deprecated since 1.220.0, please use the resource alicloud.oss.BucketRefererinstead. Seereferer_configbelow.
- ResourceGroup stringId 
- The ID of the resource group to which the bucket belongs.
- ServerSide Pulumi.Encryption Rule Ali Cloud. Oss. Inputs. Bucket Server Side Encryption Rule 
- A configuration of server-side encryption. See server_side_encryption_rulebelow.
- StorageClass string
- The storage class to apply. Can be "Standard", "IA", "Archive", "ColdArchive" and "DeepColdArchive". Defaults to "Standard". "ColdArchive" is available since 1.203.0. "DeepColdArchive" is available since 1.209.0.
- Dictionary<string, string>
- A mapping of tags to assign to the bucket. The items are no more than 10 for a bucket.
- TransferAcceleration Pulumi.Ali Cloud. Oss. Inputs. Bucket Transfer Acceleration 
- A transfer acceleration status of a bucket. See transfer_accelerationbelow.
- Versioning
Pulumi.Ali Cloud. Oss. Inputs. Bucket Versioning 
- A state of versioning. See versioningbelow.
- Website
Pulumi.Ali Cloud. Oss. Inputs. Bucket Website 
- A website configuration. See websitebelow.
- AccessMonitor BucketAccess Monitor Type Args 
- A access monitor status of a bucket. See access_monitorbelow.
- Acl string
- The canned ACL to apply. Can be "private", "public-read" and "public-read-write". This property has been deprecated since 1.220.0, please use the resource alicloud.oss.BucketAclinstead.
- Bucket string
- CorsRules []BucketCors Rule Args 
- A rule of Cross-Origin Resource Sharing. The items of core rule are no more than 10 for every OSS bucket. See cors_rulebelow.
- ForceDestroy 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".
- LifecycleRule boolAllow Same Action Overlap 
- A boolean that indicates lifecycle rules allow prefix overlap.
- LifecycleRules []BucketLifecycle Rule Args 
- A configuration of object lifecycle management. See lifecycle_rulebelow.
- Logging
BucketLogging Type Args 
- A Settings of bucket logging. See loggingbelow.
- LoggingIsenable bool
- The flag of using logging enable container. Defaults true.
- Policy string
- Json format text of bucket policy bucket policy management. This property has been deprecated since 1.220.0, please use the resource alicloud.oss.BucketPolicyinstead.
- RedundancyType string
- The redundancy type to enable. Can be "LRS", and "ZRS". Defaults to "LRS".
- RefererConfig BucketReferer Config Args 
- The configuration of referer. This property has been deprecated since 1.220.0, please use the resource alicloud.oss.BucketRefererinstead. Seereferer_configbelow.
- ResourceGroup stringId 
- The ID of the resource group to which the bucket belongs.
- ServerSide BucketEncryption Rule Server Side Encryption Rule Args 
- A configuration of server-side encryption. See server_side_encryption_rulebelow.
- StorageClass string
- The storage class to apply. Can be "Standard", "IA", "Archive", "ColdArchive" and "DeepColdArchive". Defaults to "Standard". "ColdArchive" is available since 1.203.0. "DeepColdArchive" is available since 1.209.0.
- map[string]string
- A mapping of tags to assign to the bucket. The items are no more than 10 for a bucket.
- TransferAcceleration BucketTransfer Acceleration Type Args 
- A transfer acceleration status of a bucket. See transfer_accelerationbelow.
- Versioning
BucketVersioning Type Args 
- A state of versioning. See versioningbelow.
- Website
BucketWebsite Type Args 
- A website configuration. See websitebelow.
- accessMonitor BucketAccess Monitor 
- A access monitor status of a bucket. See access_monitorbelow.
- acl String
- The canned ACL to apply. Can be "private", "public-read" and "public-read-write". This property has been deprecated since 1.220.0, please use the resource alicloud.oss.BucketAclinstead.
- bucket String
- corsRules List<BucketCors Rule> 
- A rule of Cross-Origin Resource Sharing. The items of core rule are no more than 10 for every OSS bucket. See cors_rulebelow.
- forceDestroy 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".
- lifecycleRule BooleanAllow Same Action Overlap 
- A boolean that indicates lifecycle rules allow prefix overlap.
- lifecycleRules List<BucketLifecycle Rule> 
- A configuration of object lifecycle management. See lifecycle_rulebelow.
- logging
BucketLogging 
- A Settings of bucket logging. See loggingbelow.
- loggingIsenable Boolean
- The flag of using logging enable container. Defaults true.
- policy String
- Json format text of bucket policy bucket policy management. This property has been deprecated since 1.220.0, please use the resource alicloud.oss.BucketPolicyinstead.
- redundancyType String
- The redundancy type to enable. Can be "LRS", and "ZRS". Defaults to "LRS".
- refererConfig BucketReferer Config 
- The configuration of referer. This property has been deprecated since 1.220.0, please use the resource alicloud.oss.BucketRefererinstead. Seereferer_configbelow.
- resourceGroup StringId 
- The ID of the resource group to which the bucket belongs.
- serverSide BucketEncryption Rule Server Side Encryption Rule 
- A configuration of server-side encryption. See server_side_encryption_rulebelow.
- storageClass String
- The storage class to apply. Can be "Standard", "IA", "Archive", "ColdArchive" and "DeepColdArchive". Defaults to "Standard". "ColdArchive" is available since 1.203.0. "DeepColdArchive" is available since 1.209.0.
- Map<String,String>
- A mapping of tags to assign to the bucket. The items are no more than 10 for a bucket.
- transferAcceleration BucketTransfer Acceleration 
- A transfer acceleration status of a bucket. See transfer_accelerationbelow.
- versioning
BucketVersioning 
- A state of versioning. See versioningbelow.
- website
BucketWebsite 
- A website configuration. See websitebelow.
- accessMonitor BucketAccess Monitor 
- A access monitor status of a bucket. See access_monitorbelow.
- acl string
- The canned ACL to apply. Can be "private", "public-read" and "public-read-write". This property has been deprecated since 1.220.0, please use the resource alicloud.oss.BucketAclinstead.
- bucket string
- corsRules BucketCors Rule[] 
- A rule of Cross-Origin Resource Sharing. The items of core rule are no more than 10 for every OSS bucket. See cors_rulebelow.
- forceDestroy 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".
- lifecycleRule booleanAllow Same Action Overlap 
- A boolean that indicates lifecycle rules allow prefix overlap.
- lifecycleRules BucketLifecycle Rule[] 
- A configuration of object lifecycle management. See lifecycle_rulebelow.
- logging
BucketLogging 
- A Settings of bucket logging. See loggingbelow.
- loggingIsenable boolean
- The flag of using logging enable container. Defaults true.
- policy string
- Json format text of bucket policy bucket policy management. This property has been deprecated since 1.220.0, please use the resource alicloud.oss.BucketPolicyinstead.
- redundancyType string
- The redundancy type to enable. Can be "LRS", and "ZRS". Defaults to "LRS".
- refererConfig BucketReferer Config 
- The configuration of referer. This property has been deprecated since 1.220.0, please use the resource alicloud.oss.BucketRefererinstead. Seereferer_configbelow.
- resourceGroup stringId 
- The ID of the resource group to which the bucket belongs.
- serverSide BucketEncryption Rule Server Side Encryption Rule 
- A configuration of server-side encryption. See server_side_encryption_rulebelow.
- storageClass string
- The storage class to apply. Can be "Standard", "IA", "Archive", "ColdArchive" and "DeepColdArchive". Defaults to "Standard". "ColdArchive" is available since 1.203.0. "DeepColdArchive" is available since 1.209.0.
- {[key: string]: string}
- A mapping of tags to assign to the bucket. The items are no more than 10 for a bucket.
- transferAcceleration BucketTransfer Acceleration 
- A transfer acceleration status of a bucket. See transfer_accelerationbelow.
- versioning
BucketVersioning 
- A state of versioning. See versioningbelow.
- website
BucketWebsite 
- A website configuration. See websitebelow.
- access_monitor BucketAccess Monitor Args 
- A access monitor status of a bucket. See access_monitorbelow.
- acl str
- The canned ACL to apply. Can be "private", "public-read" and "public-read-write". This property has been deprecated since 1.220.0, please use the resource alicloud.oss.BucketAclinstead.
- bucket str
- cors_rules Sequence[BucketCors Rule Args] 
- A rule of Cross-Origin Resource Sharing. The items of core rule are no more than 10 for every OSS bucket. See cors_rulebelow.
- 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_rule_ boolallow_ same_ action_ overlap 
- A boolean that indicates lifecycle rules allow prefix overlap.
- lifecycle_rules Sequence[BucketLifecycle Rule Args] 
- A configuration of object lifecycle management. See lifecycle_rulebelow.
- logging
BucketLogging Args 
- A Settings of bucket logging. See loggingbelow.
- logging_isenable bool
- The flag of using logging enable container. Defaults true.
- policy str
- Json format text of bucket policy bucket policy management. This property has been deprecated since 1.220.0, please use the resource alicloud.oss.BucketPolicyinstead.
- 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. This property has been deprecated since 1.220.0, please use the resource alicloud.oss.BucketRefererinstead. Seereferer_configbelow.
- resource_group_ strid 
- The ID of the resource group to which the bucket belongs.
- server_side_ Bucketencryption_ rule Server Side Encryption Rule Args 
- A configuration of server-side encryption. See server_side_encryption_rulebelow.
- storage_class str
- The storage class to apply. Can be "Standard", "IA", "Archive", "ColdArchive" and "DeepColdArchive". Defaults to "Standard". "ColdArchive" is available since 1.203.0. "DeepColdArchive" is available since 1.209.0.
- Mapping[str, str]
- 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. See transfer_accelerationbelow.
- versioning
BucketVersioning Args 
- A state of versioning. See versioningbelow.
- website
BucketWebsite Args 
- A website configuration. See websitebelow.
- accessMonitor Property Map
- A access monitor status of a bucket. See access_monitorbelow.
- acl String
- The canned ACL to apply. Can be "private", "public-read" and "public-read-write". This property has been deprecated since 1.220.0, please use the resource alicloud.oss.BucketAclinstead.
- bucket String
- corsRules List<Property Map>
- A rule of Cross-Origin Resource Sharing. The items of core rule are no more than 10 for every OSS bucket. See cors_rulebelow.
- forceDestroy 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".
- lifecycleRule BooleanAllow Same Action Overlap 
- A boolean that indicates lifecycle rules allow prefix overlap.
- lifecycleRules List<Property Map>
- A configuration of object lifecycle management. See lifecycle_rulebelow.
- logging Property Map
- A Settings of bucket logging. See loggingbelow.
- loggingIsenable Boolean
- The flag of using logging enable container. Defaults true.
- policy String
- Json format text of bucket policy bucket policy management. This property has been deprecated since 1.220.0, please use the resource alicloud.oss.BucketPolicyinstead.
- redundancyType String
- The redundancy type to enable. Can be "LRS", and "ZRS". Defaults to "LRS".
- refererConfig Property Map
- The configuration of referer. This property has been deprecated since 1.220.0, please use the resource alicloud.oss.BucketRefererinstead. Seereferer_configbelow.
- resourceGroup StringId 
- The ID of the resource group to which the bucket belongs.
- serverSide Property MapEncryption Rule 
- A configuration of server-side encryption. See server_side_encryption_rulebelow.
- storageClass String
- The storage class to apply. Can be "Standard", "IA", "Archive", "ColdArchive" and "DeepColdArchive". Defaults to "Standard". "ColdArchive" is available since 1.203.0. "DeepColdArchive" is available since 1.209.0.
- Map<String>
- A mapping of tags to assign to the bucket. The items are no more than 10 for a bucket.
- transferAcceleration Property Map
- A transfer acceleration status of a bucket. See transfer_accelerationbelow.
- versioning Property Map
- A state of versioning. See versioningbelow.
- website Property Map
- A website configuration. See websitebelow.
Outputs
All input properties are implicitly available as output properties. Additionally, the Bucket resource produces the following output properties:
- CreationDate string
- The creation date of the bucket.
- ExtranetEndpoint string
- The extranet access endpoint of the bucket.
- Id string
- The provider-assigned unique ID for this managed resource.
- IntranetEndpoint string
- The intranet access endpoint of the bucket.
- Location string
- The location of the bucket.
- Owner string
- The bucket owner.
- CreationDate string
- The creation date of the bucket.
- ExtranetEndpoint string
- The extranet access endpoint of the bucket.
- Id string
- The provider-assigned unique ID for this managed resource.
- IntranetEndpoint string
- The intranet access endpoint of the bucket.
- Location string
- The location of the bucket.
- Owner string
- The bucket owner.
- creationDate String
- The creation date of the bucket.
- extranetEndpoint String
- The extranet access endpoint of the bucket.
- id String
- The provider-assigned unique ID for this managed resource.
- intranetEndpoint String
- The intranet access endpoint of the bucket.
- location String
- The location of the bucket.
- owner String
- The bucket owner.
- creationDate string
- The creation date of the bucket.
- extranetEndpoint string
- The extranet access endpoint of the bucket.
- id string
- The provider-assigned unique ID for this managed resource.
- intranetEndpoint 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.
- creationDate String
- The creation date of the bucket.
- extranetEndpoint String
- The extranet access endpoint of the bucket.
- id String
- The provider-assigned unique ID for this managed resource.
- intranetEndpoint String
- The intranet access endpoint of the bucket.
- location String
- The location of the bucket.
- owner String
- The bucket owner.
Look up 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,
        access_monitor: Optional[BucketAccessMonitorArgs] = 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_rule_allow_same_action_overlap: Optional[bool] = 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,
        resource_group_id: Optional[str] = None,
        server_side_encryption_rule: Optional[BucketServerSideEncryptionRuleArgs] = None,
        storage_class: Optional[str] = None,
        tags: Optional[Mapping[str, str]] = None,
        transfer_acceleration: Optional[BucketTransferAccelerationArgs] = None,
        versioning: Optional[BucketVersioningArgs] = None,
        website: Optional[BucketWebsiteArgs] = None) -> Bucketfunc 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)resources:  _:    type: alicloud:oss:Bucket    get:      id: ${id}- 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.
- AccessMonitor Pulumi.Ali Cloud. Oss. Inputs. Bucket Access Monitor 
- A access monitor status of a bucket. See access_monitorbelow.
- Acl string
- The canned ACL to apply. Can be "private", "public-read" and "public-read-write". This property has been deprecated since 1.220.0, please use the resource alicloud.oss.BucketAclinstead.
- BucketName string
- CorsRules List<Pulumi.Ali Cloud. Oss. Inputs. Bucket Cors Rule> 
- A rule of Cross-Origin Resource Sharing. The items of core rule are no more than 10 for every OSS bucket. See cors_rulebelow.
- CreationDate string
- The creation date of the bucket.
- ExtranetEndpoint string
- The extranet access endpoint of the bucket.
- ForceDestroy 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".
- IntranetEndpoint string
- The intranet access endpoint of the bucket.
- LifecycleRule boolAllow Same Action Overlap 
- A boolean that indicates lifecycle rules allow prefix overlap.
- LifecycleRules List<Pulumi.Ali Cloud. Oss. Inputs. Bucket Lifecycle Rule> 
- A configuration of object lifecycle management. See lifecycle_rulebelow.
- Location string
- The location of the bucket.
- Logging
Pulumi.Ali Cloud. Oss. Inputs. Bucket Logging 
- A Settings of bucket logging. See loggingbelow.
- LoggingIsenable bool
- The flag of using logging enable container. Defaults true.
- Owner string
- The bucket owner.
- Policy string
- Json format text of bucket policy bucket policy management. This property has been deprecated since 1.220.0, please use the resource alicloud.oss.BucketPolicyinstead.
- RedundancyType string
- The redundancy type to enable. Can be "LRS", and "ZRS". Defaults to "LRS".
- RefererConfig Pulumi.Ali Cloud. Oss. Inputs. Bucket Referer Config 
- The configuration of referer. This property has been deprecated since 1.220.0, please use the resource alicloud.oss.BucketRefererinstead. Seereferer_configbelow.
- ResourceGroup stringId 
- The ID of the resource group to which the bucket belongs.
- ServerSide Pulumi.Encryption Rule Ali Cloud. Oss. Inputs. Bucket Server Side Encryption Rule 
- A configuration of server-side encryption. See server_side_encryption_rulebelow.
- StorageClass string
- The storage class to apply. Can be "Standard", "IA", "Archive", "ColdArchive" and "DeepColdArchive". Defaults to "Standard". "ColdArchive" is available since 1.203.0. "DeepColdArchive" is available since 1.209.0.
- Dictionary<string, string>
- A mapping of tags to assign to the bucket. The items are no more than 10 for a bucket.
- TransferAcceleration Pulumi.Ali Cloud. Oss. Inputs. Bucket Transfer Acceleration 
- A transfer acceleration status of a bucket. See transfer_accelerationbelow.
- Versioning
Pulumi.Ali Cloud. Oss. Inputs. Bucket Versioning 
- A state of versioning. See versioningbelow.
- Website
Pulumi.Ali Cloud. Oss. Inputs. Bucket Website 
- A website configuration. See websitebelow.
- AccessMonitor BucketAccess Monitor Type Args 
- A access monitor status of a bucket. See access_monitorbelow.
- Acl string
- The canned ACL to apply. Can be "private", "public-read" and "public-read-write". This property has been deprecated since 1.220.0, please use the resource alicloud.oss.BucketAclinstead.
- Bucket string
- CorsRules []BucketCors Rule Args 
- A rule of Cross-Origin Resource Sharing. The items of core rule are no more than 10 for every OSS bucket. See cors_rulebelow.
- CreationDate string
- The creation date of the bucket.
- ExtranetEndpoint string
- The extranet access endpoint of the bucket.
- ForceDestroy 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".
- IntranetEndpoint string
- The intranet access endpoint of the bucket.
- LifecycleRule boolAllow Same Action Overlap 
- A boolean that indicates lifecycle rules allow prefix overlap.
- LifecycleRules []BucketLifecycle Rule Args 
- A configuration of object lifecycle management. See lifecycle_rulebelow.
- Location string
- The location of the bucket.
- Logging
BucketLogging Type Args 
- A Settings of bucket logging. See loggingbelow.
- LoggingIsenable bool
- The flag of using logging enable container. Defaults true.
- Owner string
- The bucket owner.
- Policy string
- Json format text of bucket policy bucket policy management. This property has been deprecated since 1.220.0, please use the resource alicloud.oss.BucketPolicyinstead.
- RedundancyType string
- The redundancy type to enable. Can be "LRS", and "ZRS". Defaults to "LRS".
- RefererConfig BucketReferer Config Args 
- The configuration of referer. This property has been deprecated since 1.220.0, please use the resource alicloud.oss.BucketRefererinstead. Seereferer_configbelow.
- ResourceGroup stringId 
- The ID of the resource group to which the bucket belongs.
- ServerSide BucketEncryption Rule Server Side Encryption Rule Args 
- A configuration of server-side encryption. See server_side_encryption_rulebelow.
- StorageClass string
- The storage class to apply. Can be "Standard", "IA", "Archive", "ColdArchive" and "DeepColdArchive". Defaults to "Standard". "ColdArchive" is available since 1.203.0. "DeepColdArchive" is available since 1.209.0.
- map[string]string
- A mapping of tags to assign to the bucket. The items are no more than 10 for a bucket.
- TransferAcceleration BucketTransfer Acceleration Type Args 
- A transfer acceleration status of a bucket. See transfer_accelerationbelow.
- Versioning
BucketVersioning Type Args 
- A state of versioning. See versioningbelow.
- Website
BucketWebsite Type Args 
- A website configuration. See websitebelow.
- accessMonitor BucketAccess Monitor 
- A access monitor status of a bucket. See access_monitorbelow.
- acl String
- The canned ACL to apply. Can be "private", "public-read" and "public-read-write". This property has been deprecated since 1.220.0, please use the resource alicloud.oss.BucketAclinstead.
- bucket String
- corsRules List<BucketCors Rule> 
- A rule of Cross-Origin Resource Sharing. The items of core rule are no more than 10 for every OSS bucket. See cors_rulebelow.
- creationDate String
- The creation date of the bucket.
- extranetEndpoint String
- The extranet access endpoint of the bucket.
- forceDestroy 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".
- intranetEndpoint String
- The intranet access endpoint of the bucket.
- lifecycleRule BooleanAllow Same Action Overlap 
- A boolean that indicates lifecycle rules allow prefix overlap.
- lifecycleRules List<BucketLifecycle Rule> 
- A configuration of object lifecycle management. See lifecycle_rulebelow.
- location String
- The location of the bucket.
- logging
BucketLogging 
- A Settings of bucket logging. See loggingbelow.
- loggingIsenable Boolean
- The flag of using logging enable container. Defaults true.
- owner String
- The bucket owner.
- policy String
- Json format text of bucket policy bucket policy management. This property has been deprecated since 1.220.0, please use the resource alicloud.oss.BucketPolicyinstead.
- redundancyType String
- The redundancy type to enable. Can be "LRS", and "ZRS". Defaults to "LRS".
- refererConfig BucketReferer Config 
- The configuration of referer. This property has been deprecated since 1.220.0, please use the resource alicloud.oss.BucketRefererinstead. Seereferer_configbelow.
- resourceGroup StringId 
- The ID of the resource group to which the bucket belongs.
- serverSide BucketEncryption Rule Server Side Encryption Rule 
- A configuration of server-side encryption. See server_side_encryption_rulebelow.
- storageClass String
- The storage class to apply. Can be "Standard", "IA", "Archive", "ColdArchive" and "DeepColdArchive". Defaults to "Standard". "ColdArchive" is available since 1.203.0. "DeepColdArchive" is available since 1.209.0.
- Map<String,String>
- A mapping of tags to assign to the bucket. The items are no more than 10 for a bucket.
- transferAcceleration BucketTransfer Acceleration 
- A transfer acceleration status of a bucket. See transfer_accelerationbelow.
- versioning
BucketVersioning 
- A state of versioning. See versioningbelow.
- website
BucketWebsite 
- A website configuration. See websitebelow.
- accessMonitor BucketAccess Monitor 
- A access monitor status of a bucket. See access_monitorbelow.
- acl string
- The canned ACL to apply. Can be "private", "public-read" and "public-read-write". This property has been deprecated since 1.220.0, please use the resource alicloud.oss.BucketAclinstead.
- bucket string
- corsRules BucketCors Rule[] 
- A rule of Cross-Origin Resource Sharing. The items of core rule are no more than 10 for every OSS bucket. See cors_rulebelow.
- creationDate string
- The creation date of the bucket.
- extranetEndpoint string
- The extranet access endpoint of the bucket.
- forceDestroy 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".
- intranetEndpoint string
- The intranet access endpoint of the bucket.
- lifecycleRule booleanAllow Same Action Overlap 
- A boolean that indicates lifecycle rules allow prefix overlap.
- lifecycleRules BucketLifecycle Rule[] 
- A configuration of object lifecycle management. See lifecycle_rulebelow.
- location string
- The location of the bucket.
- logging
BucketLogging 
- A Settings of bucket logging. See loggingbelow.
- loggingIsenable boolean
- The flag of using logging enable container. Defaults true.
- owner string
- The bucket owner.
- policy string
- Json format text of bucket policy bucket policy management. This property has been deprecated since 1.220.0, please use the resource alicloud.oss.BucketPolicyinstead.
- redundancyType string
- The redundancy type to enable. Can be "LRS", and "ZRS". Defaults to "LRS".
- refererConfig BucketReferer Config 
- The configuration of referer. This property has been deprecated since 1.220.0, please use the resource alicloud.oss.BucketRefererinstead. Seereferer_configbelow.
- resourceGroup stringId 
- The ID of the resource group to which the bucket belongs.
- serverSide BucketEncryption Rule Server Side Encryption Rule 
- A configuration of server-side encryption. See server_side_encryption_rulebelow.
- storageClass string
- The storage class to apply. Can be "Standard", "IA", "Archive", "ColdArchive" and "DeepColdArchive". Defaults to "Standard". "ColdArchive" is available since 1.203.0. "DeepColdArchive" is available since 1.209.0.
- {[key: string]: string}
- A mapping of tags to assign to the bucket. The items are no more than 10 for a bucket.
- transferAcceleration BucketTransfer Acceleration 
- A transfer acceleration status of a bucket. See transfer_accelerationbelow.
- versioning
BucketVersioning 
- A state of versioning. See versioningbelow.
- website
BucketWebsite 
- A website configuration. See websitebelow.
- access_monitor BucketAccess Monitor Args 
- A access monitor status of a bucket. See access_monitorbelow.
- acl str
- The canned ACL to apply. Can be "private", "public-read" and "public-read-write". This property has been deprecated since 1.220.0, please use the resource alicloud.oss.BucketAclinstead.
- bucket str
- cors_rules Sequence[BucketCors Rule Args] 
- A rule of Cross-Origin Resource Sharing. The items of core rule are no more than 10 for every OSS bucket. See cors_rulebelow.
- 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_rule_ boolallow_ same_ action_ overlap 
- A boolean that indicates lifecycle rules allow prefix overlap.
- lifecycle_rules Sequence[BucketLifecycle Rule Args] 
- A configuration of object lifecycle management. See lifecycle_rulebelow.
- location str
- The location of the bucket.
- logging
BucketLogging Args 
- A Settings of bucket logging. See loggingbelow.
- logging_isenable bool
- The flag of using logging enable container. Defaults true.
- owner str
- The bucket owner.
- policy str
- Json format text of bucket policy bucket policy management. This property has been deprecated since 1.220.0, please use the resource alicloud.oss.BucketPolicyinstead.
- 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. This property has been deprecated since 1.220.0, please use the resource alicloud.oss.BucketRefererinstead. Seereferer_configbelow.
- resource_group_ strid 
- The ID of the resource group to which the bucket belongs.
- server_side_ Bucketencryption_ rule Server Side Encryption Rule Args 
- A configuration of server-side encryption. See server_side_encryption_rulebelow.
- storage_class str
- The storage class to apply. Can be "Standard", "IA", "Archive", "ColdArchive" and "DeepColdArchive". Defaults to "Standard". "ColdArchive" is available since 1.203.0. "DeepColdArchive" is available since 1.209.0.
- Mapping[str, str]
- 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. See transfer_accelerationbelow.
- versioning
BucketVersioning Args 
- A state of versioning. See versioningbelow.
- website
BucketWebsite Args 
- A website configuration. See websitebelow.
- accessMonitor Property Map
- A access monitor status of a bucket. See access_monitorbelow.
- acl String
- The canned ACL to apply. Can be "private", "public-read" and "public-read-write". This property has been deprecated since 1.220.0, please use the resource alicloud.oss.BucketAclinstead.
- bucket String
- corsRules List<Property Map>
- A rule of Cross-Origin Resource Sharing. The items of core rule are no more than 10 for every OSS bucket. See cors_rulebelow.
- creationDate String
- The creation date of the bucket.
- extranetEndpoint String
- The extranet access endpoint of the bucket.
- forceDestroy 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".
- intranetEndpoint String
- The intranet access endpoint of the bucket.
- lifecycleRule BooleanAllow Same Action Overlap 
- A boolean that indicates lifecycle rules allow prefix overlap.
- lifecycleRules List<Property Map>
- A configuration of object lifecycle management. See lifecycle_rulebelow.
- location String
- The location of the bucket.
- logging Property Map
- A Settings of bucket logging. See loggingbelow.
- loggingIsenable Boolean
- The flag of using logging enable container. Defaults true.
- owner String
- The bucket owner.
- policy String
- Json format text of bucket policy bucket policy management. This property has been deprecated since 1.220.0, please use the resource alicloud.oss.BucketPolicyinstead.
- redundancyType String
- The redundancy type to enable. Can be "LRS", and "ZRS". Defaults to "LRS".
- refererConfig Property Map
- The configuration of referer. This property has been deprecated since 1.220.0, please use the resource alicloud.oss.BucketRefererinstead. Seereferer_configbelow.
- resourceGroup StringId 
- The ID of the resource group to which the bucket belongs.
- serverSide Property MapEncryption Rule 
- A configuration of server-side encryption. See server_side_encryption_rulebelow.
- storageClass String
- The storage class to apply. Can be "Standard", "IA", "Archive", "ColdArchive" and "DeepColdArchive". Defaults to "Standard". "ColdArchive" is available since 1.203.0. "DeepColdArchive" is available since 1.209.0.
- Map<String>
- A mapping of tags to assign to the bucket. The items are no more than 10 for a bucket.
- transferAcceleration Property Map
- A transfer acceleration status of a bucket. See transfer_accelerationbelow.
- versioning Property Map
- A state of versioning. See versioningbelow.
- website Property Map
- A website configuration. See websitebelow.
Supporting Types
BucketAccessMonitor, BucketAccessMonitorArgs      
- Status string
- The access monitor state of a bucket. If you want to manage objects based on the last access time of the objects, specifies the status to Enabled. Valid values:EnabledandDisabled.
- Status string
- The access monitor state of a bucket. If you want to manage objects based on the last access time of the objects, specifies the status to Enabled. Valid values:EnabledandDisabled.
- status String
- The access monitor state of a bucket. If you want to manage objects based on the last access time of the objects, specifies the status to Enabled. Valid values:EnabledandDisabled.
- status string
- The access monitor state of a bucket. If you want to manage objects based on the last access time of the objects, specifies the status to Enabled. Valid values:EnabledandDisabled.
- status str
- The access monitor state of a bucket. If you want to manage objects based on the last access time of the objects, specifies the status to Enabled. Valid values:EnabledandDisabled.
- status String
- The access monitor state of a bucket. If you want to manage objects based on the last access time of the objects, specifies the status to Enabled. Valid values:EnabledandDisabled.
BucketCorsRule, BucketCorsRuleArgs      
- AllowedMethods List<string>
- Specifies which methods are allowed. Can be GET, PUT, POST, DELETE or HEAD.
- AllowedOrigins List<string>
- Specifies which origins are allowed.
- AllowedHeaders List<string>
- Specifies which headers are allowed.
- ExposeHeaders List<string>
- Specifies expose header in the response.
- MaxAge intSeconds 
- Specifies time in seconds that browser can cache the response for a preflight request.
- AllowedMethods []string
- Specifies which methods are allowed. Can be GET, PUT, POST, DELETE or HEAD.
- AllowedOrigins []string
- Specifies which origins are allowed.
- AllowedHeaders []string
- Specifies which headers are allowed.
- ExposeHeaders []string
- Specifies expose header in the response.
- MaxAge intSeconds 
- Specifies time in seconds that browser can cache the response for a preflight request.
- allowedMethods List<String>
- Specifies which methods are allowed. Can be GET, PUT, POST, DELETE or HEAD.
- allowedOrigins List<String>
- Specifies which origins are allowed.
- allowedHeaders List<String>
- Specifies which headers are allowed.
- exposeHeaders List<String>
- Specifies expose header in the response.
- maxAge IntegerSeconds 
- Specifies time in seconds that browser can cache the response for a preflight request.
- allowedMethods string[]
- Specifies which methods are allowed. Can be GET, PUT, POST, DELETE or HEAD.
- allowedOrigins string[]
- Specifies which origins are allowed.
- allowedHeaders string[]
- Specifies which headers are allowed.
- exposeHeaders string[]
- Specifies expose header in the response.
- maxAge 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.
- allowedMethods List<String>
- Specifies which methods are allowed. Can be GET, PUT, POST, DELETE or HEAD.
- allowedOrigins List<String>
- Specifies which origins are allowed.
- allowedHeaders List<String>
- Specifies which headers are allowed.
- exposeHeaders List<String>
- Specifies expose header in the response.
- maxAge NumberSeconds 
- Specifies time in seconds that browser can cache the response for a preflight request.
BucketLifecycleRule, BucketLifecycleRuleArgs      
- Enabled bool
- Specifies lifecycle rule status.
- AbortMultipart 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. See abort_multipart_uploadbelow.
- Expirations
List<Pulumi.Ali Cloud. Oss. Inputs. Bucket Lifecycle Rule Expiration> 
- Specifies a period in the object's expire. See expirationbelow.
- Filter
Pulumi.Ali Cloud. Oss. Inputs. Bucket Lifecycle Rule Filter 
- Configuration block used to identify objects that a Lifecycle rule applies to. See - filterbelow.- NOTE: At least one of expiration, transitions, abort_multipart_upload, noncurrent_version_expiration and noncurrent_version_transition should be configured.
- Id string
- Unique identifier for the rule. If omitted, OSS bucket will assign a unique name.
- NoncurrentVersion List<Pulumi.Expirations Ali Cloud. Oss. Inputs. Bucket Lifecycle Rule Noncurrent Version Expiration> 
- Specifies when noncurrent object versions expire. See noncurrent_version_expirationbelow.
- NoncurrentVersion List<Pulumi.Transitions Ali Cloud. Oss. Inputs. Bucket Lifecycle Rule Noncurrent Version Transition> 
- Specifies when noncurrent object versions transitions. See noncurrent_version_transitionbelow.
- Prefix string
- The prefix in the names of the objects to which the lifecycle rule does not apply.
- Dictionary<string, string>
- Key-value map of resource tags. All of these tags must exist in the object's tag set in order for the rule to apply.
- 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. See transitionsbelow.
- Enabled bool
- Specifies lifecycle rule status.
- AbortMultipart []BucketUploads Lifecycle Rule Abort Multipart Upload 
- Specifies the number of days after initiating a multipart upload when the multipart upload must be completed. See abort_multipart_uploadbelow.
- Expirations
[]BucketLifecycle Rule Expiration 
- Specifies a period in the object's expire. See expirationbelow.
- Filter
BucketLifecycle Rule Filter 
- Configuration block used to identify objects that a Lifecycle rule applies to. See - filterbelow.- NOTE: At least one of expiration, transitions, abort_multipart_upload, noncurrent_version_expiration and noncurrent_version_transition should be configured.
- Id string
- Unique identifier for the rule. If omitted, OSS bucket will assign a unique name.
- NoncurrentVersion []BucketExpirations Lifecycle Rule Noncurrent Version Expiration 
- Specifies when noncurrent object versions expire. See noncurrent_version_expirationbelow.
- NoncurrentVersion []BucketTransitions Lifecycle Rule Noncurrent Version Transition 
- Specifies when noncurrent object versions transitions. See noncurrent_version_transitionbelow.
- Prefix string
- The prefix in the names of the objects to which the lifecycle rule does not apply.
- map[string]string
- Key-value map of resource tags. All of these tags must exist in the object's tag set in order for the rule to apply.
- Transitions
[]BucketLifecycle Rule Transition 
- Specifies the time when an object is converted to the IA or archive storage class during a valid life cycle. See transitionsbelow.
- enabled Boolean
- Specifies lifecycle rule status.
- abortMultipart List<BucketUploads Lifecycle Rule Abort Multipart Upload> 
- Specifies the number of days after initiating a multipart upload when the multipart upload must be completed. See abort_multipart_uploadbelow.
- expirations
List<BucketLifecycle Rule Expiration> 
- Specifies a period in the object's expire. See expirationbelow.
- filter
BucketLifecycle Rule Filter 
- Configuration block used to identify objects that a Lifecycle rule applies to. See - filterbelow.- NOTE: At least one of expiration, transitions, abort_multipart_upload, noncurrent_version_expiration and noncurrent_version_transition should be configured.
- id String
- Unique identifier for the rule. If omitted, OSS bucket will assign a unique name.
- noncurrentVersion List<BucketExpirations Lifecycle Rule Noncurrent Version Expiration> 
- Specifies when noncurrent object versions expire. See noncurrent_version_expirationbelow.
- noncurrentVersion List<BucketTransitions Lifecycle Rule Noncurrent Version Transition> 
- Specifies when noncurrent object versions transitions. See noncurrent_version_transitionbelow.
- prefix String
- The prefix in the names of the objects to which the lifecycle rule does not apply.
- Map<String,String>
- Key-value map of resource tags. All of these tags must exist in the object's tag set in order for the rule to apply.
- transitions
List<BucketLifecycle Rule Transition> 
- Specifies the time when an object is converted to the IA or archive storage class during a valid life cycle. See transitionsbelow.
- enabled boolean
- Specifies lifecycle rule status.
- abortMultipart BucketUploads Lifecycle Rule Abort Multipart Upload[] 
- Specifies the number of days after initiating a multipart upload when the multipart upload must be completed. See abort_multipart_uploadbelow.
- expirations
BucketLifecycle Rule Expiration[] 
- Specifies a period in the object's expire. See expirationbelow.
- filter
BucketLifecycle Rule Filter 
- Configuration block used to identify objects that a Lifecycle rule applies to. See - filterbelow.- NOTE: At least one of expiration, transitions, abort_multipart_upload, noncurrent_version_expiration and noncurrent_version_transition should be configured.
- id string
- Unique identifier for the rule. If omitted, OSS bucket will assign a unique name.
- noncurrentVersion BucketExpirations Lifecycle Rule Noncurrent Version Expiration[] 
- Specifies when noncurrent object versions expire. See noncurrent_version_expirationbelow.
- noncurrentVersion BucketTransitions Lifecycle Rule Noncurrent Version Transition[] 
- Specifies when noncurrent object versions transitions. See noncurrent_version_transitionbelow.
- prefix string
- The prefix in the names of the objects to which the lifecycle rule does not apply.
- {[key: string]: string}
- Key-value map of resource tags. All of these tags must exist in the object's tag set in order for the rule to apply.
- transitions
BucketLifecycle Rule Transition[] 
- Specifies the time when an object is converted to the IA or archive storage class during a valid life cycle. See transitionsbelow.
- enabled bool
- Specifies lifecycle rule status.
- 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. See abort_multipart_uploadbelow.
- expirations
Sequence[BucketLifecycle Rule Expiration] 
- Specifies a period in the object's expire. See expirationbelow.
- filter
BucketLifecycle Rule Filter 
- Configuration block used to identify objects that a Lifecycle rule applies to. See - filterbelow.- NOTE: At least one of expiration, transitions, abort_multipart_upload, noncurrent_version_expiration and noncurrent_version_transition should be configured.
- 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. See noncurrent_version_expirationbelow.
- noncurrent_version_ Sequence[Buckettransitions Lifecycle Rule Noncurrent Version Transition] 
- Specifies when noncurrent object versions transitions. See noncurrent_version_transitionbelow.
- prefix str
- The prefix in the names of the objects to which the lifecycle rule does not apply.
- Mapping[str, str]
- Key-value map of resource tags. All of these tags must exist in the object's tag set in order for the rule to apply.
- transitions
Sequence[BucketLifecycle Rule Transition] 
- Specifies the time when an object is converted to the IA or archive storage class during a valid life cycle. See transitionsbelow.
- enabled Boolean
- Specifies lifecycle rule status.
- abortMultipart List<Property Map>Uploads 
- Specifies the number of days after initiating a multipart upload when the multipart upload must be completed. See abort_multipart_uploadbelow.
- expirations List<Property Map>
- Specifies a period in the object's expire. See expirationbelow.
- filter Property Map
- Configuration block used to identify objects that a Lifecycle rule applies to. See - filterbelow.- NOTE: At least one of expiration, transitions, abort_multipart_upload, noncurrent_version_expiration and noncurrent_version_transition should be configured.
- id String
- Unique identifier for the rule. If omitted, OSS bucket will assign a unique name.
- noncurrentVersion List<Property Map>Expirations 
- Specifies when noncurrent object versions expire. See noncurrent_version_expirationbelow.
- noncurrentVersion List<Property Map>Transitions 
- Specifies when noncurrent object versions transitions. See noncurrent_version_transitionbelow.
- prefix String
- The prefix in the names of the objects to which the lifecycle rule does not apply.
- Map<String>
- Key-value map of resource tags. All of these tags must exist in the object's tag set in order for the rule to apply.
- transitions List<Property Map>
- Specifies the time when an object is converted to the IA or archive storage class during a valid life cycle. See transitionsbelow.
BucketLifecycleRuleAbortMultipartUpload, BucketLifecycleRuleAbortMultipartUploadArgs            
- CreatedBefore 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.
- CreatedBefore 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.
- createdBefore 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.
- createdBefore 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.
- createdBefore 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, BucketLifecycleRuleExpirationArgs        
- CreatedBefore 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.
- ExpiredObject 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. - NOTE: One and only one of "date", "days", "created_before_date" and "expired_object_delete_marker" can be specified in one expiration configuration.
- CreatedBefore 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.
- ExpiredObject 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. - NOTE: One and only one of "date", "days", "created_before_date" and "expired_object_delete_marker" can be specified in one expiration configuration.
- createdBefore 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.
- expiredObject 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. - NOTE: One and only one of "date", "days", "created_before_date" and "expired_object_delete_marker" can be specified in one expiration configuration.
- createdBefore 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.
- expiredObject 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. - NOTE: One and only one of "date", "days", "created_before_date" and "expired_object_delete_marker" can be specified in one expiration configuration.
- 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. - NOTE: One and only one of "date", "days", "created_before_date" and "expired_object_delete_marker" can be specified in one expiration configuration.
- createdBefore 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.
- expiredObject 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. - NOTE: One and only one of "date", "days", "created_before_date" and "expired_object_delete_marker" can be specified in one expiration configuration.
BucketLifecycleRuleFilter, BucketLifecycleRuleFilterArgs        
- Not
Pulumi.Ali Cloud. Oss. Inputs. Bucket Lifecycle Rule Filter Not 
- The condition that is matched by objects to which the lifecycle rule does not apply. See notbelow.
- ObjectSize intGreater Than 
- Minimum object size (in bytes) to which the rule applies.
- ObjectSize intLess Than 
- Maximum object size (in bytes) to which the rule applies.
- Not
BucketLifecycle Rule Filter Not 
- The condition that is matched by objects to which the lifecycle rule does not apply. See notbelow.
- ObjectSize intGreater Than 
- Minimum object size (in bytes) to which the rule applies.
- ObjectSize intLess Than 
- Maximum object size (in bytes) to which the rule applies.
- not
BucketLifecycle Rule Filter Not 
- The condition that is matched by objects to which the lifecycle rule does not apply. See notbelow.
- objectSize IntegerGreater Than 
- Minimum object size (in bytes) to which the rule applies.
- objectSize IntegerLess Than 
- Maximum object size (in bytes) to which the rule applies.
- not
BucketLifecycle Rule Filter Not 
- The condition that is matched by objects to which the lifecycle rule does not apply. See notbelow.
- objectSize numberGreater Than 
- Minimum object size (in bytes) to which the rule applies.
- objectSize numberLess Than 
- Maximum object size (in bytes) to which the rule applies.
- not_
BucketLifecycle Rule Filter Not 
- The condition that is matched by objects to which the lifecycle rule does not apply. See notbelow.
- object_size_ intgreater_ than 
- Minimum object size (in bytes) to which the rule applies.
- object_size_ intless_ than 
- Maximum object size (in bytes) to which the rule applies.
- not Property Map
- The condition that is matched by objects to which the lifecycle rule does not apply. See notbelow.
- objectSize NumberGreater Than 
- Minimum object size (in bytes) to which the rule applies.
- objectSize NumberLess Than 
- Maximum object size (in bytes) to which the rule applies.
BucketLifecycleRuleFilterNot, BucketLifecycleRuleFilterNotArgs          
- Prefix string
- The prefix in the names of the objects to which the lifecycle rule does not apply.
- Tag
Pulumi.Ali Cloud. Oss. Inputs. Bucket Lifecycle Rule Filter Not Tag 
- The tag of the objects to which the lifecycle rule does not apply. See tagbelow.
- Prefix string
- The prefix in the names of the objects to which the lifecycle rule does not apply.
- Tag
BucketLifecycle Rule Filter Not Tag 
- The tag of the objects to which the lifecycle rule does not apply. See tagbelow.
- prefix String
- The prefix in the names of the objects to which the lifecycle rule does not apply.
- tag
BucketLifecycle Rule Filter Not Tag 
- The tag of the objects to which the lifecycle rule does not apply. See tagbelow.
- prefix string
- The prefix in the names of the objects to which the lifecycle rule does not apply.
- tag
BucketLifecycle Rule Filter Not Tag 
- The tag of the objects to which the lifecycle rule does not apply. See tagbelow.
- prefix str
- The prefix in the names of the objects to which the lifecycle rule does not apply.
- tag
BucketLifecycle Rule Filter Not Tag 
- The tag of the objects to which the lifecycle rule does not apply. See tagbelow.
- prefix String
- The prefix in the names of the objects to which the lifecycle rule does not apply.
- tag Property Map
- The tag of the objects to which the lifecycle rule does not apply. See tagbelow.
BucketLifecycleRuleFilterNotTag, BucketLifecycleRuleFilterNotTagArgs            
BucketLifecycleRuleNoncurrentVersionExpiration, BucketLifecycleRuleNoncurrentVersionExpirationArgs            
- 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, BucketLifecycleRuleNoncurrentVersionTransitionArgs            
- Days int
- Specifies the number of days noncurrent object versions transition.
- StorageClass string
- The storage class to apply. Can be "Standard", "IA", "Archive", "ColdArchive" and "DeepColdArchive". Defaults to "Standard". "ColdArchive" is available since 1.203.0. "DeepColdArchive" is available since 1.209.0.
- IsAccess boolTime 
- Specifies whether the lifecycle rule applies to objects based on their last access time. If set to true, the rule applies to objects based on their last access time; if set tofalse, the rule applies to objects based on their last modified time. If configure the rule based on the last access time, please enableaccess_monitorfirst.
- ReturnTo boolStd When Visit 
- Specifies whether to convert the storage class of non-Standard objects back to Standard after the objects are accessed. It takes effect only when the IsAccessTime parameter is set to true. If set to true, converts the storage class of the objects to Standard; if set tofalse, does not convert the storage class of the objects to Standard.
- Days int
- Specifies the number of days noncurrent object versions transition.
- StorageClass string
- The storage class to apply. Can be "Standard", "IA", "Archive", "ColdArchive" and "DeepColdArchive". Defaults to "Standard". "ColdArchive" is available since 1.203.0. "DeepColdArchive" is available since 1.209.0.
- IsAccess boolTime 
- Specifies whether the lifecycle rule applies to objects based on their last access time. If set to true, the rule applies to objects based on their last access time; if set tofalse, the rule applies to objects based on their last modified time. If configure the rule based on the last access time, please enableaccess_monitorfirst.
- ReturnTo boolStd When Visit 
- Specifies whether to convert the storage class of non-Standard objects back to Standard after the objects are accessed. It takes effect only when the IsAccessTime parameter is set to true. If set to true, converts the storage class of the objects to Standard; if set tofalse, does not convert the storage class of the objects to Standard.
- days Integer
- Specifies the number of days noncurrent object versions transition.
- storageClass String
- The storage class to apply. Can be "Standard", "IA", "Archive", "ColdArchive" and "DeepColdArchive". Defaults to "Standard". "ColdArchive" is available since 1.203.0. "DeepColdArchive" is available since 1.209.0.
- isAccess BooleanTime 
- Specifies whether the lifecycle rule applies to objects based on their last access time. If set to true, the rule applies to objects based on their last access time; if set tofalse, the rule applies to objects based on their last modified time. If configure the rule based on the last access time, please enableaccess_monitorfirst.
- returnTo BooleanStd When Visit 
- Specifies whether to convert the storage class of non-Standard objects back to Standard after the objects are accessed. It takes effect only when the IsAccessTime parameter is set to true. If set to true, converts the storage class of the objects to Standard; if set tofalse, does not convert the storage class of the objects to Standard.
- days number
- Specifies the number of days noncurrent object versions transition.
- storageClass string
- The storage class to apply. Can be "Standard", "IA", "Archive", "ColdArchive" and "DeepColdArchive". Defaults to "Standard". "ColdArchive" is available since 1.203.0. "DeepColdArchive" is available since 1.209.0.
- isAccess booleanTime 
- Specifies whether the lifecycle rule applies to objects based on their last access time. If set to true, the rule applies to objects based on their last access time; if set tofalse, the rule applies to objects based on their last modified time. If configure the rule based on the last access time, please enableaccess_monitorfirst.
- returnTo booleanStd When Visit 
- Specifies whether to convert the storage class of non-Standard objects back to Standard after the objects are accessed. It takes effect only when the IsAccessTime parameter is set to true. If set to true, converts the storage class of the objects to Standard; if set tofalse, does not convert the storage class of the objects to Standard.
- days int
- Specifies the number of days noncurrent object versions transition.
- storage_class str
- The storage class to apply. Can be "Standard", "IA", "Archive", "ColdArchive" and "DeepColdArchive". Defaults to "Standard". "ColdArchive" is available since 1.203.0. "DeepColdArchive" is available since 1.209.0.
- is_access_ booltime 
- Specifies whether the lifecycle rule applies to objects based on their last access time. If set to true, the rule applies to objects based on their last access time; if set tofalse, the rule applies to objects based on their last modified time. If configure the rule based on the last access time, please enableaccess_monitorfirst.
- return_to_ boolstd_ when_ visit 
- Specifies whether to convert the storage class of non-Standard objects back to Standard after the objects are accessed. It takes effect only when the IsAccessTime parameter is set to true. If set to true, converts the storage class of the objects to Standard; if set tofalse, does not convert the storage class of the objects to Standard.
- days Number
- Specifies the number of days noncurrent object versions transition.
- storageClass String
- The storage class to apply. Can be "Standard", "IA", "Archive", "ColdArchive" and "DeepColdArchive". Defaults to "Standard". "ColdArchive" is available since 1.203.0. "DeepColdArchive" is available since 1.209.0.
- isAccess BooleanTime 
- Specifies whether the lifecycle rule applies to objects based on their last access time. If set to true, the rule applies to objects based on their last access time; if set tofalse, the rule applies to objects based on their last modified time. If configure the rule based on the last access time, please enableaccess_monitorfirst.
- returnTo BooleanStd When Visit 
- Specifies whether to convert the storage class of non-Standard objects back to Standard after the objects are accessed. It takes effect only when the IsAccessTime parameter is set to true. If set to true, converts the storage class of the objects to Standard; if set tofalse, does not convert the storage class of the objects to Standard.
BucketLifecycleRuleTransition, BucketLifecycleRuleTransitionArgs        
- StorageClass string
- The storage class to apply. Can be "Standard", "IA", "Archive", "ColdArchive" and "DeepColdArchive". Defaults to "Standard". "ColdArchive" is available since 1.203.0. "DeepColdArchive" is available since 1.209.0.
- CreatedBefore 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.
- IsAccess boolTime 
- Specifies whether the lifecycle rule applies to objects based on their last access time. If set to true, the rule applies to objects based on their last access time; if set tofalse, the rule applies to objects based on their last modified time. If configure the rule based on the last access time, please enableaccess_monitorfirst.
- ReturnTo boolStd When Visit 
- Specifies whether to convert the storage class of non-Standard objects back to Standard after the objects are accessed. It takes effect only when the IsAccessTime parameter is set to true. If set to true, converts the storage class of the objects to Standard; if set tofalse, does not convert the storage class of the objects to Standard.
- StorageClass string
- The storage class to apply. Can be "Standard", "IA", "Archive", "ColdArchive" and "DeepColdArchive". Defaults to "Standard". "ColdArchive" is available since 1.203.0. "DeepColdArchive" is available since 1.209.0.
- CreatedBefore 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.
- IsAccess boolTime 
- Specifies whether the lifecycle rule applies to objects based on their last access time. If set to true, the rule applies to objects based on their last access time; if set tofalse, the rule applies to objects based on their last modified time. If configure the rule based on the last access time, please enableaccess_monitorfirst.
- ReturnTo boolStd When Visit 
- Specifies whether to convert the storage class of non-Standard objects back to Standard after the objects are accessed. It takes effect only when the IsAccessTime parameter is set to true. If set to true, converts the storage class of the objects to Standard; if set tofalse, does not convert the storage class of the objects to Standard.
- storageClass String
- The storage class to apply. Can be "Standard", "IA", "Archive", "ColdArchive" and "DeepColdArchive". Defaults to "Standard". "ColdArchive" is available since 1.203.0. "DeepColdArchive" is available since 1.209.0.
- createdBefore 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.
- isAccess BooleanTime 
- Specifies whether the lifecycle rule applies to objects based on their last access time. If set to true, the rule applies to objects based on their last access time; if set tofalse, the rule applies to objects based on their last modified time. If configure the rule based on the last access time, please enableaccess_monitorfirst.
- returnTo BooleanStd When Visit 
- Specifies whether to convert the storage class of non-Standard objects back to Standard after the objects are accessed. It takes effect only when the IsAccessTime parameter is set to true. If set to true, converts the storage class of the objects to Standard; if set tofalse, does not convert the storage class of the objects to Standard.
- storageClass string
- The storage class to apply. Can be "Standard", "IA", "Archive", "ColdArchive" and "DeepColdArchive". Defaults to "Standard". "ColdArchive" is available since 1.203.0. "DeepColdArchive" is available since 1.209.0.
- createdBefore 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.
- isAccess booleanTime 
- Specifies whether the lifecycle rule applies to objects based on their last access time. If set to true, the rule applies to objects based on their last access time; if set tofalse, the rule applies to objects based on their last modified time. If configure the rule based on the last access time, please enableaccess_monitorfirst.
- returnTo booleanStd When Visit 
- Specifies whether to convert the storage class of non-Standard objects back to Standard after the objects are accessed. It takes effect only when the IsAccessTime parameter is set to true. If set to true, converts the storage class of the objects to Standard; if set tofalse, does not convert the storage class of the objects to Standard.
- storage_class str
- The storage class to apply. Can be "Standard", "IA", "Archive", "ColdArchive" and "DeepColdArchive". Defaults to "Standard". "ColdArchive" is available since 1.203.0. "DeepColdArchive" is available since 1.209.0.
- 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.
- is_access_ booltime 
- Specifies whether the lifecycle rule applies to objects based on their last access time. If set to true, the rule applies to objects based on their last access time; if set tofalse, the rule applies to objects based on their last modified time. If configure the rule based on the last access time, please enableaccess_monitorfirst.
- return_to_ boolstd_ when_ visit 
- Specifies whether to convert the storage class of non-Standard objects back to Standard after the objects are accessed. It takes effect only when the IsAccessTime parameter is set to true. If set to true, converts the storage class of the objects to Standard; if set tofalse, does not convert the storage class of the objects to Standard.
- storageClass String
- The storage class to apply. Can be "Standard", "IA", "Archive", "ColdArchive" and "DeepColdArchive". Defaults to "Standard". "ColdArchive" is available since 1.203.0. "DeepColdArchive" is available since 1.209.0.
- createdBefore 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.
- isAccess BooleanTime 
- Specifies whether the lifecycle rule applies to objects based on their last access time. If set to true, the rule applies to objects based on their last access time; if set tofalse, the rule applies to objects based on their last modified time. If configure the rule based on the last access time, please enableaccess_monitorfirst.
- returnTo BooleanStd When Visit 
- Specifies whether to convert the storage class of non-Standard objects back to Standard after the objects are accessed. It takes effect only when the IsAccessTime parameter is set to true. If set to true, converts the storage class of the objects to Standard; if set tofalse, does not convert the storage class of the objects to Standard.
BucketLogging, BucketLoggingArgs    
- TargetBucket string
- The name of the bucket that will receive the log objects.
- TargetPrefix string
- To specify a key prefix for log objects.
- TargetBucket string
- The name of the bucket that will receive the log objects.
- TargetPrefix string
- To specify a key prefix for log objects.
- targetBucket String
- The name of the bucket that will receive the log objects.
- targetPrefix String
- To specify a key prefix for log objects.
- targetBucket string
- The name of the bucket that will receive the log objects.
- targetPrefix 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.
- targetBucket String
- The name of the bucket that will receive the log objects.
- targetPrefix String
- To specify a key prefix for log objects.
BucketRefererConfig, BucketRefererConfigArgs      
- Referers List<string>
- The list of referer.
- AllowEmpty bool
- Allows referer to be empty. Defaults false.
- Referers []string
- The list of referer.
- AllowEmpty bool
- Allows referer to be empty. Defaults false.
- referers List<String>
- The list of referer.
- allowEmpty Boolean
- Allows referer to be empty. Defaults false.
- referers string[]
- The list of referer.
- allowEmpty 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.
- allowEmpty Boolean
- Allows referer to be empty. Defaults false.
BucketServerSideEncryptionRule, BucketServerSideEncryptionRuleArgs          
- SseAlgorithm string
- The server-side encryption algorithm to use. Possible values: AES256andKMS.
- KmsMaster stringKey Id 
- The alibaba cloud KMS master key ID used for the SSE-KMS encryption.
- SseAlgorithm string
- The server-side encryption algorithm to use. Possible values: AES256andKMS.
- KmsMaster stringKey Id 
- The alibaba cloud KMS master key ID used for the SSE-KMS encryption.
- sseAlgorithm String
- The server-side encryption algorithm to use. Possible values: AES256andKMS.
- kmsMaster StringKey Id 
- The alibaba cloud KMS master key ID used for the SSE-KMS encryption.
- sseAlgorithm string
- The server-side encryption algorithm to use. Possible values: AES256andKMS.
- kmsMaster 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: AES256andKMS.
- kms_master_ strkey_ id 
- The alibaba cloud KMS master key ID used for the SSE-KMS encryption.
- sseAlgorithm String
- The server-side encryption algorithm to use. Possible values: AES256andKMS.
- kmsMaster StringKey Id 
- The alibaba cloud KMS master key ID used for the SSE-KMS encryption.
BucketTransferAcceleration, BucketTransferAccelerationArgs      
- 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, BucketVersioningArgs    
- Status string
- Specifies the versioning state of a bucket. Valid values: EnabledandSuspended.
- Status string
- Specifies the versioning state of a bucket. Valid values: EnabledandSuspended.
- status String
- Specifies the versioning state of a bucket. Valid values: EnabledandSuspended.
- status string
- Specifies the versioning state of a bucket. Valid values: EnabledandSuspended.
- status str
- Specifies the versioning state of a bucket. Valid values: EnabledandSuspended.
- status String
- Specifies the versioning state of a bucket. Valid values: EnabledandSuspended.
BucketWebsite, BucketWebsiteArgs    
- IndexDocument string
- Alicloud OSS returns this index document when requests are made to the root domain or any of the subfolders.
- ErrorDocument string
- An absolute path to the document to return in case of a 4XX error.
- IndexDocument string
- Alicloud OSS returns this index document when requests are made to the root domain or any of the subfolders.
- ErrorDocument string
- An absolute path to the document to return in case of a 4XX error.
- indexDocument String
- Alicloud OSS returns this index document when requests are made to the root domain or any of the subfolders.
- errorDocument String
- An absolute path to the document to return in case of a 4XX error.
- indexDocument string
- Alicloud OSS returns this index document when requests are made to the root domain or any of the subfolders.
- errorDocument 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.
- indexDocument String
- Alicloud OSS returns this index document when requests are made to the root domain or any of the subfolders.
- errorDocument 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
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the alicloudTerraform Provider.