obs

package
v0.0.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 28, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PkgVersion added in v0.0.2

func PkgVersion() (semver.Version, error)

PkgVersion uses reflection to determine the version of the current package. If a version cannot be determined, v1 will be assumed. The second return value is always nil.

Types

type Bucket

type Bucket struct {
	pulumi.CustomResourceState

	// Specifies the ACL policy for a bucket. The predefined common policies are as follows:
	// "private", "public-read", "public-read-write" and "log-delivery-write". Defaults to `private`.
	Acl pulumi.StringPtrOutput `pulumi:"acl"`
	// Specifies the name of the bucket. Changing this parameter will create a new
	// resource. A bucket must be named according to the globally applied DNS naming regulations as follows:
	// + The name must be globally unique in OBS.
	// + The name must contain 3 to 63 characters. Only lowercase letters, digits, hyphens (-), and periods (.) are
	//   allowed.
	// + The name cannot start or end with a period (.) or hyphen (-), and cannot contain two consecutive periods (.) or
	//   contain a period (.) and a hyphen (-) adjacent to each other.
	// + The name cannot be an IP address.
	// + If the name contains any periods (.), a security certificate verification message may appear when you access the
	//   bucket or its objects by entering a domain name.
	Bucket pulumi.StringOutput `pulumi:"bucket"`
	// The bucket domain name. Will be of format `bucketname.obs.region.myhuaweicloud.com`.
	BucketDomainName pulumi.StringOutput `pulumi:"bucketDomainName"`
	// The OBS version of the bucket.
	BucketVersion pulumi.StringOutput `pulumi:"bucketVersion"`
	// A rule of Cross-Origin Resource Sharing (documented below).
	CorsRules BucketCorsRuleArrayOutput `pulumi:"corsRules"`
	// Whether enable default server-side encryption of the bucket in SSE-KMS mode.
	Encryption pulumi.BoolPtrOutput `pulumi:"encryption"`
	// Specifies the enterprise project id of the OBS bucket.
	// Defaults to `0`.
	EnterpriseProjectId pulumi.StringOutput `pulumi:"enterpriseProjectId"`
	// A boolean that indicates all objects should be deleted from the bucket, so that the
	// bucket can be destroyed without error. Default to `false`.
	ForceDestroy pulumi.BoolPtrOutput `pulumi:"forceDestroy"`
	// Specifies the ID of a KMS key. If omitted, the default master key will be used.
	KmsKeyId pulumi.StringPtrOutput `pulumi:"kmsKeyId"`
	// Specifies the project ID to which the KMS key belongs. If omitted, the ID
	// of the provider-level project will be used.
	KmsKeyProjectId pulumi.StringOutput `pulumi:"kmsKeyProjectId"`
	// A configuration of object lifecycle management (documented below).
	LifecycleRules BucketLifecycleRuleArrayOutput `pulumi:"lifecycleRules"`
	// A settings of bucket logging (documented below).
	Loggings BucketLoggingArrayOutput `pulumi:"loggings"`
	// Whether enable the multi-AZ mode for the bucket. When the multi-AZ mode is
	// enabled, data in the bucket is duplicated and stored in multiple AZs.
	MultiAz pulumi.BoolOutput `pulumi:"multiAz"`
	// Whether enable a bucket as a parallel file system. Changing this will
	// create a new bucket.
	ParallelFs pulumi.BoolPtrOutput `pulumi:"parallelFs"`
	// Specifies the text of the bucket policy in JSON format. For more information about obs
	// format bucket policy,
	// see the [Developer Guide](https://support.huaweicloud.com/intl/en-us/perms-cfg-obs/obs_40_0004.html).
	Policy pulumi.StringOutput `pulumi:"policy"`
	// Specifies the policy format, the supported values are *obs* and *s3*. Defaults
	// to *obs*.
	PolicyFormat pulumi.StringPtrOutput `pulumi:"policyFormat"`
	// Specifies bucket storage quota. Must be a positive integer in the unit of byte. The maximum
	// storage quota is 2<sup>63</sup> – 1 bytes. The default bucket storage quota is 0, indicating that the bucket storage
	// quota is not limited.
	Quota pulumi.IntPtrOutput `pulumi:"quota"`
	// Specifies the region where this bucket will be created. If not specified, used
	// the region by the provider. Changing this will create a new bucket.
	Region pulumi.StringOutput `pulumi:"region"`
	// Specifies the storage class of the bucket. OBS provides three storage classes:
	// "STANDARD", "WARM" (Infrequent Access) and "COLD" (Archive). Defaults to `STANDARD`.
	StorageClass pulumi.StringPtrOutput `pulumi:"storageClass"`
	// The OBS storage info of the bucket.
	// The object structure is documented below.
	StorageInfos BucketStorageInfoArrayOutput `pulumi:"storageInfos"`
	// A mapping of tags to assign to the bucket. Each tag is represented by one key-value pair.
	Tags pulumi.StringMapOutput `pulumi:"tags"`
	// Whether enable versioning. Once you version-enable a bucket, it can never return to an
	// unversioned state. You can, however, suspend versioning on that bucket.
	Versioning pulumi.BoolPtrOutput `pulumi:"versioning"`
	// A website object (documented below).
	Website BucketWebsitePtrOutput `pulumi:"website"`
}

Provides an OBS bucket resource.

## Example Usage ### Private Bucket with Tags

```go package main

import (

"github.com/huaweicloud/pulumi-huaweicloud/sdk/go/huaweicloud/Obs"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Obs.NewBucket(ctx, "bucket", &Obs.BucketArgs{
			Acl:    pulumi.String("private"),
			Bucket: pulumi.String("my-tf-test-bucket"),
			Tags: pulumi.StringMap{
				"Env": pulumi.String("Test"),
				"foo": pulumi.String("bar"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` ### Enable versioning

```go package main

import (

"github.com/huaweicloud/pulumi-huaweicloud/sdk/go/huaweicloud/Obs"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Obs.NewBucket(ctx, "bucket", &Obs.BucketArgs{
			Acl:        pulumi.String("private"),
			Bucket:     pulumi.String("my-tf-test-bucket"),
			Versioning: pulumi.Bool(true),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` ### Enable Logging

```go package main

import (

"github.com/huaweicloud/pulumi-huaweicloud/sdk/go/huaweicloud/Obs"
"github.com/pulumi/pulumi-huaweicloud/sdk/go/huaweicloud/Obs"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		logBucket, err := Obs.NewBucket(ctx, "logBucket", &Obs.BucketArgs{
			Bucket: pulumi.String("my-tf-log-bucket"),
			Acl:    pulumi.String("log-delivery-write"),
		})
		if err != nil {
			return err
		}
		_, err = Obs.NewBucket(ctx, "bucket", &Obs.BucketArgs{
			Bucket: pulumi.String("my-tf-test-bucket"),
			Acl:    pulumi.String("private"),
			Loggings: obs.BucketLoggingArray{
				&obs.BucketLoggingArgs{
					TargetBucket: logBucket.ID(),
					TargetPrefix: pulumi.String("log/"),
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` ### Static Website Hosting

```go package main

import (

"fmt"

"github.com/huaweicloud/pulumi-huaweicloud/sdk/go/huaweicloud/Obs"
"github.com/pulumi/pulumi-huaweicloud/sdk/go/huaweicloud/Obs"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Obs.NewBucket(ctx, "bucket", &Obs.BucketArgs{
			Acl:    pulumi.String("public-read"),
			Bucket: pulumi.String("obs-website-test.hashicorp.com"),
			Website: &obs.BucketWebsiteArgs{
				ErrorDocument: pulumi.String("error.html"),
				IndexDocument: pulumi.String("index.html"),
				RoutingRules: pulumi.String(fmt.Sprintf(`[{
    "Condition": {
        "KeyPrefixEquals": "docs/"
    },
    "Redirect": {
        "ReplaceKeyPrefixWith": "documents/"
    }
}]

`)),

			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` ### Using CORS

```go package main

import (

"github.com/huaweicloud/pulumi-huaweicloud/sdk/go/huaweicloud/Obs"
"github.com/pulumi/pulumi-huaweicloud/sdk/go/huaweicloud/Obs"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Obs.NewBucket(ctx, "bucket", &Obs.BucketArgs{
			Acl:    pulumi.String("public-read"),
			Bucket: pulumi.String("obs-website-test.hashicorp.com"),
			CorsRules: obs.BucketCorsRuleArray{
				&obs.BucketCorsRuleArgs{
					AllowedHeaders: pulumi.StringArray{
						pulumi.String("*"),
					},
					AllowedMethods: pulumi.StringArray{
						pulumi.String("PUT"),
						pulumi.String("POST"),
					},
					AllowedOrigins: pulumi.StringArray{
						pulumi.String("https://obs-website-test.hashicorp.com"),
					},
					ExposeHeaders: pulumi.StringArray{
						pulumi.String("ETag"),
					},
					MaxAgeSeconds: pulumi.Int(3000),
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` ### Using object lifecycle

```go package main

import (

"github.com/huaweicloud/pulumi-huaweicloud/sdk/go/huaweicloud/Obs"
"github.com/pulumi/pulumi-huaweicloud/sdk/go/huaweicloud/Obs"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Obs.NewBucket(ctx, "bucket", &Obs.BucketArgs{
			Acl:    pulumi.String("private"),
			Bucket: pulumi.String("my-bucket"),
			LifecycleRules: obs.BucketLifecycleRuleArray{
				&obs.BucketLifecycleRuleArgs{
					Enabled: pulumi.Bool(true),
					Expirations: obs.BucketLifecycleRuleExpirationArray{
						&obs.BucketLifecycleRuleExpirationArgs{
							Days: pulumi.Int(365),
						},
					},
					Name:   pulumi.String("log"),
					Prefix: pulumi.String("log/"),
					Transitions: obs.BucketLifecycleRuleTransitionArray{
						&obs.BucketLifecycleRuleTransitionArgs{
							Days:         pulumi.Int(60),
							StorageClass: pulumi.String("WARM"),
						},
						&obs.BucketLifecycleRuleTransitionArgs{
							Days:         pulumi.Int(180),
							StorageClass: pulumi.String("COLD"),
						},
					},
				},
				&obs.BucketLifecycleRuleArgs{
					Enabled: pulumi.Bool(true),
					Name:    pulumi.String("tmp"),
					NoncurrentVersionExpirations: obs.BucketLifecycleRuleNoncurrentVersionExpirationArray{
						&obs.BucketLifecycleRuleNoncurrentVersionExpirationArgs{
							Days: pulumi.Int(180),
						},
					},
					NoncurrentVersionTransitions: obs.BucketLifecycleRuleNoncurrentVersionTransitionArray{
						&obs.BucketLifecycleRuleNoncurrentVersionTransitionArgs{
							Days:         pulumi.Int(30),
							StorageClass: pulumi.String("WARM"),
						},
						&obs.BucketLifecycleRuleNoncurrentVersionTransitionArgs{
							Days:         pulumi.Int(60),
							StorageClass: pulumi.String("COLD"),
						},
					},
					Prefix: pulumi.String("tmp/"),
				},
			},
			Versioning: pulumi.Bool(true),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

OBS bucket can be imported using the `bucket`, e.g.

```sh

$ pulumi import huaweicloud:Obs/bucket:Bucket bucket <bucket-name>

```

OBS bucket with S3 foramt bucket policy can be imported using the `bucket` and "s3" by a slash, e.g.

```sh

$ pulumi import huaweicloud:Obs/bucket:Bucket bucket_with_s3_policy <bucket-name>/s3

```

Note that the imported state may not be identical to your resource definition, due to some attributes missing from the API response. The missing attributes include `acl` and `force_destroy`. It is generally recommended running `terraform plan` after importing an OBS bucket. Also you can ignore changes as below. resource "huaweicloud_obs_bucket" "bucket" {

...

lifecycle {

ignore_changes = [

acl, force_destroy,

]

} }

func GetBucket

func GetBucket(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *BucketState, opts ...pulumi.ResourceOption) (*Bucket, error)

GetBucket gets an existing Bucket resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewBucket

func NewBucket(ctx *pulumi.Context,
	name string, args *BucketArgs, opts ...pulumi.ResourceOption) (*Bucket, error)

NewBucket registers a new resource with the given unique name, arguments, and options.

func (*Bucket) ElementType

func (*Bucket) ElementType() reflect.Type

func (*Bucket) ToBucketOutput

func (i *Bucket) ToBucketOutput() BucketOutput

func (*Bucket) ToBucketOutputWithContext

func (i *Bucket) ToBucketOutputWithContext(ctx context.Context) BucketOutput

type BucketArgs

type BucketArgs struct {
	// Specifies the ACL policy for a bucket. The predefined common policies are as follows:
	// "private", "public-read", "public-read-write" and "log-delivery-write". Defaults to `private`.
	Acl pulumi.StringPtrInput
	// Specifies the name of the bucket. Changing this parameter will create a new
	// resource. A bucket must be named according to the globally applied DNS naming regulations as follows:
	// + The name must be globally unique in OBS.
	// + The name must contain 3 to 63 characters. Only lowercase letters, digits, hyphens (-), and periods (.) are
	//   allowed.
	// + The name cannot start or end with a period (.) or hyphen (-), and cannot contain two consecutive periods (.) or
	//   contain a period (.) and a hyphen (-) adjacent to each other.
	// + The name cannot be an IP address.
	// + If the name contains any periods (.), a security certificate verification message may appear when you access the
	//   bucket or its objects by entering a domain name.
	Bucket pulumi.StringInput
	// A rule of Cross-Origin Resource Sharing (documented below).
	CorsRules BucketCorsRuleArrayInput
	// Whether enable default server-side encryption of the bucket in SSE-KMS mode.
	Encryption pulumi.BoolPtrInput
	// Specifies the enterprise project id of the OBS bucket.
	// Defaults to `0`.
	EnterpriseProjectId pulumi.StringPtrInput
	// A boolean that indicates all objects should be deleted from the bucket, so that the
	// bucket can be destroyed without error. Default to `false`.
	ForceDestroy pulumi.BoolPtrInput
	// Specifies the ID of a KMS key. If omitted, the default master key will be used.
	KmsKeyId pulumi.StringPtrInput
	// Specifies the project ID to which the KMS key belongs. If omitted, the ID
	// of the provider-level project will be used.
	KmsKeyProjectId pulumi.StringPtrInput
	// A configuration of object lifecycle management (documented below).
	LifecycleRules BucketLifecycleRuleArrayInput
	// A settings of bucket logging (documented below).
	Loggings BucketLoggingArrayInput
	// Whether enable the multi-AZ mode for the bucket. When the multi-AZ mode is
	// enabled, data in the bucket is duplicated and stored in multiple AZs.
	MultiAz pulumi.BoolPtrInput
	// Whether enable a bucket as a parallel file system. Changing this will
	// create a new bucket.
	ParallelFs pulumi.BoolPtrInput
	// Specifies the text of the bucket policy in JSON format. For more information about obs
	// format bucket policy,
	// see the [Developer Guide](https://support.huaweicloud.com/intl/en-us/perms-cfg-obs/obs_40_0004.html).
	Policy pulumi.StringPtrInput
	// Specifies the policy format, the supported values are *obs* and *s3*. Defaults
	// to *obs*.
	PolicyFormat pulumi.StringPtrInput
	// Specifies bucket storage quota. Must be a positive integer in the unit of byte. The maximum
	// storage quota is 2<sup>63</sup> – 1 bytes. The default bucket storage quota is 0, indicating that the bucket storage
	// quota is not limited.
	Quota pulumi.IntPtrInput
	// Specifies the region where this bucket will be created. If not specified, used
	// the region by the provider. Changing this will create a new bucket.
	Region pulumi.StringPtrInput
	// Specifies the storage class of the bucket. OBS provides three storage classes:
	// "STANDARD", "WARM" (Infrequent Access) and "COLD" (Archive). Defaults to `STANDARD`.
	StorageClass pulumi.StringPtrInput
	// A mapping of tags to assign to the bucket. Each tag is represented by one key-value pair.
	Tags pulumi.StringMapInput
	// Whether enable versioning. Once you version-enable a bucket, it can never return to an
	// unversioned state. You can, however, suspend versioning on that bucket.
	Versioning pulumi.BoolPtrInput
	// A website object (documented below).
	Website BucketWebsitePtrInput
}

The set of arguments for constructing a Bucket resource.

func (BucketArgs) ElementType

func (BucketArgs) ElementType() reflect.Type

type BucketArray

type BucketArray []BucketInput

func (BucketArray) ElementType

func (BucketArray) ElementType() reflect.Type

func (BucketArray) ToBucketArrayOutput

func (i BucketArray) ToBucketArrayOutput() BucketArrayOutput

func (BucketArray) ToBucketArrayOutputWithContext

func (i BucketArray) ToBucketArrayOutputWithContext(ctx context.Context) BucketArrayOutput

type BucketArrayInput

type BucketArrayInput interface {
	pulumi.Input

	ToBucketArrayOutput() BucketArrayOutput
	ToBucketArrayOutputWithContext(context.Context) BucketArrayOutput
}

BucketArrayInput is an input type that accepts BucketArray and BucketArrayOutput values. You can construct a concrete instance of `BucketArrayInput` via:

BucketArray{ BucketArgs{...} }

type BucketArrayOutput

type BucketArrayOutput struct{ *pulumi.OutputState }

func (BucketArrayOutput) ElementType

func (BucketArrayOutput) ElementType() reflect.Type

func (BucketArrayOutput) Index

func (BucketArrayOutput) ToBucketArrayOutput

func (o BucketArrayOutput) ToBucketArrayOutput() BucketArrayOutput

func (BucketArrayOutput) ToBucketArrayOutputWithContext

func (o BucketArrayOutput) ToBucketArrayOutputWithContext(ctx context.Context) BucketArrayOutput

type BucketCorsRule

type BucketCorsRule struct {
	// Specifies the allowed header of cross-origin requests. Only CORS requests
	// matching the allowed header are valid.
	AllowedHeaders []string `pulumi:"allowedHeaders"`
	// Specifies the acceptable operation type of buckets and objects. The methods
	// include `GET`, `PUT`, `POST`, `DELETE` or `HEAD`.
	AllowedMethods []string `pulumi:"allowedMethods"`
	// Requests from this origin can access the bucket. Multiple matching rules are
	// allowed. One rule occupies one line, and allows one wildcard character (*) at most.
	AllowedOrigins []string `pulumi:"allowedOrigins"`
	// Specifies the exposed header in CORS responses, providing additional information
	// for clients.
	ExposeHeaders []string `pulumi:"exposeHeaders"`
	// Specifies the duration that your browser can cache CORS responses, expressed in
	// seconds. The default value is 100.
	MaxAgeSeconds *int `pulumi:"maxAgeSeconds"`
}

type BucketCorsRuleArgs

type BucketCorsRuleArgs struct {
	// Specifies the allowed header of cross-origin requests. Only CORS requests
	// matching the allowed header are valid.
	AllowedHeaders pulumi.StringArrayInput `pulumi:"allowedHeaders"`
	// Specifies the acceptable operation type of buckets and objects. The methods
	// include `GET`, `PUT`, `POST`, `DELETE` or `HEAD`.
	AllowedMethods pulumi.StringArrayInput `pulumi:"allowedMethods"`
	// Requests from this origin can access the bucket. Multiple matching rules are
	// allowed. One rule occupies one line, and allows one wildcard character (*) at most.
	AllowedOrigins pulumi.StringArrayInput `pulumi:"allowedOrigins"`
	// Specifies the exposed header in CORS responses, providing additional information
	// for clients.
	ExposeHeaders pulumi.StringArrayInput `pulumi:"exposeHeaders"`
	// Specifies the duration that your browser can cache CORS responses, expressed in
	// seconds. The default value is 100.
	MaxAgeSeconds pulumi.IntPtrInput `pulumi:"maxAgeSeconds"`
}

func (BucketCorsRuleArgs) ElementType

func (BucketCorsRuleArgs) ElementType() reflect.Type

func (BucketCorsRuleArgs) ToBucketCorsRuleOutput

func (i BucketCorsRuleArgs) ToBucketCorsRuleOutput() BucketCorsRuleOutput

func (BucketCorsRuleArgs) ToBucketCorsRuleOutputWithContext

func (i BucketCorsRuleArgs) ToBucketCorsRuleOutputWithContext(ctx context.Context) BucketCorsRuleOutput

type BucketCorsRuleArray

type BucketCorsRuleArray []BucketCorsRuleInput

func (BucketCorsRuleArray) ElementType

func (BucketCorsRuleArray) ElementType() reflect.Type

func (BucketCorsRuleArray) ToBucketCorsRuleArrayOutput

func (i BucketCorsRuleArray) ToBucketCorsRuleArrayOutput() BucketCorsRuleArrayOutput

func (BucketCorsRuleArray) ToBucketCorsRuleArrayOutputWithContext

func (i BucketCorsRuleArray) ToBucketCorsRuleArrayOutputWithContext(ctx context.Context) BucketCorsRuleArrayOutput

type BucketCorsRuleArrayInput

type BucketCorsRuleArrayInput interface {
	pulumi.Input

	ToBucketCorsRuleArrayOutput() BucketCorsRuleArrayOutput
	ToBucketCorsRuleArrayOutputWithContext(context.Context) BucketCorsRuleArrayOutput
}

BucketCorsRuleArrayInput is an input type that accepts BucketCorsRuleArray and BucketCorsRuleArrayOutput values. You can construct a concrete instance of `BucketCorsRuleArrayInput` via:

BucketCorsRuleArray{ BucketCorsRuleArgs{...} }

type BucketCorsRuleArrayOutput

type BucketCorsRuleArrayOutput struct{ *pulumi.OutputState }

func (BucketCorsRuleArrayOutput) ElementType

func (BucketCorsRuleArrayOutput) ElementType() reflect.Type

func (BucketCorsRuleArrayOutput) Index

func (BucketCorsRuleArrayOutput) ToBucketCorsRuleArrayOutput

func (o BucketCorsRuleArrayOutput) ToBucketCorsRuleArrayOutput() BucketCorsRuleArrayOutput

func (BucketCorsRuleArrayOutput) ToBucketCorsRuleArrayOutputWithContext

func (o BucketCorsRuleArrayOutput) ToBucketCorsRuleArrayOutputWithContext(ctx context.Context) BucketCorsRuleArrayOutput

type BucketCorsRuleInput

type BucketCorsRuleInput interface {
	pulumi.Input

	ToBucketCorsRuleOutput() BucketCorsRuleOutput
	ToBucketCorsRuleOutputWithContext(context.Context) BucketCorsRuleOutput
}

BucketCorsRuleInput is an input type that accepts BucketCorsRuleArgs and BucketCorsRuleOutput values. You can construct a concrete instance of `BucketCorsRuleInput` via:

BucketCorsRuleArgs{...}

type BucketCorsRuleOutput

type BucketCorsRuleOutput struct{ *pulumi.OutputState }

func (BucketCorsRuleOutput) AllowedHeaders

func (o BucketCorsRuleOutput) AllowedHeaders() pulumi.StringArrayOutput

Specifies the allowed header of cross-origin requests. Only CORS requests matching the allowed header are valid.

func (BucketCorsRuleOutput) AllowedMethods

func (o BucketCorsRuleOutput) AllowedMethods() pulumi.StringArrayOutput

Specifies the acceptable operation type of buckets and objects. The methods include `GET`, `PUT`, `POST`, `DELETE` or `HEAD`.

func (BucketCorsRuleOutput) AllowedOrigins

func (o BucketCorsRuleOutput) AllowedOrigins() pulumi.StringArrayOutput

Requests from this origin can access the bucket. Multiple matching rules are allowed. One rule occupies one line, and allows one wildcard character (*) at most.

func (BucketCorsRuleOutput) ElementType

func (BucketCorsRuleOutput) ElementType() reflect.Type

func (BucketCorsRuleOutput) ExposeHeaders

func (o BucketCorsRuleOutput) ExposeHeaders() pulumi.StringArrayOutput

Specifies the exposed header in CORS responses, providing additional information for clients.

func (BucketCorsRuleOutput) MaxAgeSeconds

func (o BucketCorsRuleOutput) MaxAgeSeconds() pulumi.IntPtrOutput

Specifies the duration that your browser can cache CORS responses, expressed in seconds. The default value is 100.

func (BucketCorsRuleOutput) ToBucketCorsRuleOutput

func (o BucketCorsRuleOutput) ToBucketCorsRuleOutput() BucketCorsRuleOutput

func (BucketCorsRuleOutput) ToBucketCorsRuleOutputWithContext

func (o BucketCorsRuleOutput) ToBucketCorsRuleOutputWithContext(ctx context.Context) BucketCorsRuleOutput

type BucketInput

type BucketInput interface {
	pulumi.Input

	ToBucketOutput() BucketOutput
	ToBucketOutputWithContext(ctx context.Context) BucketOutput
}

type BucketLifecycleRule

type BucketLifecycleRule struct {
	// Specifies lifecycle rule status.
	Enabled bool `pulumi:"enabled"`
	// Specifies a period when objects that have been last updated are automatically
	// deleted. (documented below).
	Expirations []BucketLifecycleRuleExpiration `pulumi:"expirations"`
	// Unique identifier for lifecycle rules. The Rule Name contains a maximum of 255 characters.
	Name string `pulumi:"name"`
	// Specifies a period when noncurrent object versions are
	// automatically deleted. (documented below).
	NoncurrentVersionExpirations []BucketLifecycleRuleNoncurrentVersionExpiration `pulumi:"noncurrentVersionExpirations"`
	// Specifies a period when noncurrent object versions are
	// automatically transitioned to `WARM` or `COLD` storage class (documented below).
	NoncurrentVersionTransitions []BucketLifecycleRuleNoncurrentVersionTransition `pulumi:"noncurrentVersionTransitions"`
	// Object key prefix identifying one or more objects to which the rule applies. If omitted,
	// all objects in the bucket will be managed by the lifecycle rule. The prefix cannot start or end with a slash (/),
	// cannot have consecutive slashes (/), and cannot contain the following special characters: \:*?"<>|.
	Prefix *string `pulumi:"prefix"`
	// Specifies a period when objects that have been last updated are automatically
	// transitioned to `WARM` or `COLD` storage class (documented below).
	Transitions []BucketLifecycleRuleTransition `pulumi:"transitions"`
}

type BucketLifecycleRuleArgs

type BucketLifecycleRuleArgs struct {
	// Specifies lifecycle rule status.
	Enabled pulumi.BoolInput `pulumi:"enabled"`
	// Specifies a period when objects that have been last updated are automatically
	// deleted. (documented below).
	Expirations BucketLifecycleRuleExpirationArrayInput `pulumi:"expirations"`
	// Unique identifier for lifecycle rules. The Rule Name contains a maximum of 255 characters.
	Name pulumi.StringInput `pulumi:"name"`
	// Specifies a period when noncurrent object versions are
	// automatically deleted. (documented below).
	NoncurrentVersionExpirations BucketLifecycleRuleNoncurrentVersionExpirationArrayInput `pulumi:"noncurrentVersionExpirations"`
	// Specifies a period when noncurrent object versions are
	// automatically transitioned to `WARM` or `COLD` storage class (documented below).
	NoncurrentVersionTransitions BucketLifecycleRuleNoncurrentVersionTransitionArrayInput `pulumi:"noncurrentVersionTransitions"`
	// Object key prefix identifying one or more objects to which the rule applies. If omitted,
	// all objects in the bucket will be managed by the lifecycle rule. The prefix cannot start or end with a slash (/),
	// cannot have consecutive slashes (/), and cannot contain the following special characters: \:*?"<>|.
	Prefix pulumi.StringPtrInput `pulumi:"prefix"`
	// Specifies a period when objects that have been last updated are automatically
	// transitioned to `WARM` or `COLD` storage class (documented below).
	Transitions BucketLifecycleRuleTransitionArrayInput `pulumi:"transitions"`
}

func (BucketLifecycleRuleArgs) ElementType

func (BucketLifecycleRuleArgs) ElementType() reflect.Type

func (BucketLifecycleRuleArgs) ToBucketLifecycleRuleOutput

func (i BucketLifecycleRuleArgs) ToBucketLifecycleRuleOutput() BucketLifecycleRuleOutput

func (BucketLifecycleRuleArgs) ToBucketLifecycleRuleOutputWithContext

func (i BucketLifecycleRuleArgs) ToBucketLifecycleRuleOutputWithContext(ctx context.Context) BucketLifecycleRuleOutput

type BucketLifecycleRuleArray

type BucketLifecycleRuleArray []BucketLifecycleRuleInput

func (BucketLifecycleRuleArray) ElementType

func (BucketLifecycleRuleArray) ElementType() reflect.Type

func (BucketLifecycleRuleArray) ToBucketLifecycleRuleArrayOutput

func (i BucketLifecycleRuleArray) ToBucketLifecycleRuleArrayOutput() BucketLifecycleRuleArrayOutput

func (BucketLifecycleRuleArray) ToBucketLifecycleRuleArrayOutputWithContext

func (i BucketLifecycleRuleArray) ToBucketLifecycleRuleArrayOutputWithContext(ctx context.Context) BucketLifecycleRuleArrayOutput

type BucketLifecycleRuleArrayInput

type BucketLifecycleRuleArrayInput interface {
	pulumi.Input

	ToBucketLifecycleRuleArrayOutput() BucketLifecycleRuleArrayOutput
	ToBucketLifecycleRuleArrayOutputWithContext(context.Context) BucketLifecycleRuleArrayOutput
}

BucketLifecycleRuleArrayInput is an input type that accepts BucketLifecycleRuleArray and BucketLifecycleRuleArrayOutput values. You can construct a concrete instance of `BucketLifecycleRuleArrayInput` via:

BucketLifecycleRuleArray{ BucketLifecycleRuleArgs{...} }

type BucketLifecycleRuleArrayOutput

type BucketLifecycleRuleArrayOutput struct{ *pulumi.OutputState }

func (BucketLifecycleRuleArrayOutput) ElementType

func (BucketLifecycleRuleArrayOutput) Index

func (BucketLifecycleRuleArrayOutput) ToBucketLifecycleRuleArrayOutput

func (o BucketLifecycleRuleArrayOutput) ToBucketLifecycleRuleArrayOutput() BucketLifecycleRuleArrayOutput

func (BucketLifecycleRuleArrayOutput) ToBucketLifecycleRuleArrayOutputWithContext

func (o BucketLifecycleRuleArrayOutput) ToBucketLifecycleRuleArrayOutputWithContext(ctx context.Context) BucketLifecycleRuleArrayOutput

type BucketLifecycleRuleExpiration

type BucketLifecycleRuleExpiration struct {
	// Specifies the number of days when objects that have been last updated are automatically
	// deleted. The expiration time must be greater than the transition times.
	Days int `pulumi:"days"`
}

type BucketLifecycleRuleExpirationArgs

type BucketLifecycleRuleExpirationArgs struct {
	// Specifies the number of days when objects that have been last updated are automatically
	// deleted. The expiration time must be greater than the transition times.
	Days pulumi.IntInput `pulumi:"days"`
}

func (BucketLifecycleRuleExpirationArgs) ElementType

func (BucketLifecycleRuleExpirationArgs) ToBucketLifecycleRuleExpirationOutput

func (i BucketLifecycleRuleExpirationArgs) ToBucketLifecycleRuleExpirationOutput() BucketLifecycleRuleExpirationOutput

func (BucketLifecycleRuleExpirationArgs) ToBucketLifecycleRuleExpirationOutputWithContext

func (i BucketLifecycleRuleExpirationArgs) ToBucketLifecycleRuleExpirationOutputWithContext(ctx context.Context) BucketLifecycleRuleExpirationOutput

type BucketLifecycleRuleExpirationArray

type BucketLifecycleRuleExpirationArray []BucketLifecycleRuleExpirationInput

func (BucketLifecycleRuleExpirationArray) ElementType

func (BucketLifecycleRuleExpirationArray) ToBucketLifecycleRuleExpirationArrayOutput

func (i BucketLifecycleRuleExpirationArray) ToBucketLifecycleRuleExpirationArrayOutput() BucketLifecycleRuleExpirationArrayOutput

func (BucketLifecycleRuleExpirationArray) ToBucketLifecycleRuleExpirationArrayOutputWithContext

func (i BucketLifecycleRuleExpirationArray) ToBucketLifecycleRuleExpirationArrayOutputWithContext(ctx context.Context) BucketLifecycleRuleExpirationArrayOutput

type BucketLifecycleRuleExpirationArrayInput

type BucketLifecycleRuleExpirationArrayInput interface {
	pulumi.Input

	ToBucketLifecycleRuleExpirationArrayOutput() BucketLifecycleRuleExpirationArrayOutput
	ToBucketLifecycleRuleExpirationArrayOutputWithContext(context.Context) BucketLifecycleRuleExpirationArrayOutput
}

BucketLifecycleRuleExpirationArrayInput is an input type that accepts BucketLifecycleRuleExpirationArray and BucketLifecycleRuleExpirationArrayOutput values. You can construct a concrete instance of `BucketLifecycleRuleExpirationArrayInput` via:

BucketLifecycleRuleExpirationArray{ BucketLifecycleRuleExpirationArgs{...} }

type BucketLifecycleRuleExpirationArrayOutput

type BucketLifecycleRuleExpirationArrayOutput struct{ *pulumi.OutputState }

func (BucketLifecycleRuleExpirationArrayOutput) ElementType

func (BucketLifecycleRuleExpirationArrayOutput) Index

func (BucketLifecycleRuleExpirationArrayOutput) ToBucketLifecycleRuleExpirationArrayOutput

func (o BucketLifecycleRuleExpirationArrayOutput) ToBucketLifecycleRuleExpirationArrayOutput() BucketLifecycleRuleExpirationArrayOutput

func (BucketLifecycleRuleExpirationArrayOutput) ToBucketLifecycleRuleExpirationArrayOutputWithContext

func (o BucketLifecycleRuleExpirationArrayOutput) ToBucketLifecycleRuleExpirationArrayOutputWithContext(ctx context.Context) BucketLifecycleRuleExpirationArrayOutput

type BucketLifecycleRuleExpirationInput

type BucketLifecycleRuleExpirationInput interface {
	pulumi.Input

	ToBucketLifecycleRuleExpirationOutput() BucketLifecycleRuleExpirationOutput
	ToBucketLifecycleRuleExpirationOutputWithContext(context.Context) BucketLifecycleRuleExpirationOutput
}

BucketLifecycleRuleExpirationInput is an input type that accepts BucketLifecycleRuleExpirationArgs and BucketLifecycleRuleExpirationOutput values. You can construct a concrete instance of `BucketLifecycleRuleExpirationInput` via:

BucketLifecycleRuleExpirationArgs{...}

type BucketLifecycleRuleExpirationOutput

type BucketLifecycleRuleExpirationOutput struct{ *pulumi.OutputState }

func (BucketLifecycleRuleExpirationOutput) Days

Specifies the number of days when objects that have been last updated are automatically deleted. The expiration time must be greater than the transition times.

func (BucketLifecycleRuleExpirationOutput) ElementType

func (BucketLifecycleRuleExpirationOutput) ToBucketLifecycleRuleExpirationOutput

func (o BucketLifecycleRuleExpirationOutput) ToBucketLifecycleRuleExpirationOutput() BucketLifecycleRuleExpirationOutput

func (BucketLifecycleRuleExpirationOutput) ToBucketLifecycleRuleExpirationOutputWithContext

func (o BucketLifecycleRuleExpirationOutput) ToBucketLifecycleRuleExpirationOutputWithContext(ctx context.Context) BucketLifecycleRuleExpirationOutput

type BucketLifecycleRuleInput

type BucketLifecycleRuleInput interface {
	pulumi.Input

	ToBucketLifecycleRuleOutput() BucketLifecycleRuleOutput
	ToBucketLifecycleRuleOutputWithContext(context.Context) BucketLifecycleRuleOutput
}

BucketLifecycleRuleInput is an input type that accepts BucketLifecycleRuleArgs and BucketLifecycleRuleOutput values. You can construct a concrete instance of `BucketLifecycleRuleInput` via:

BucketLifecycleRuleArgs{...}

type BucketLifecycleRuleNoncurrentVersionExpiration

type BucketLifecycleRuleNoncurrentVersionExpiration struct {
	// Specifies the number of days when noncurrent object versions are automatically deleted.
	Days int `pulumi:"days"`
}

type BucketLifecycleRuleNoncurrentVersionExpirationArgs

type BucketLifecycleRuleNoncurrentVersionExpirationArgs struct {
	// Specifies the number of days when noncurrent object versions are automatically deleted.
	Days pulumi.IntInput `pulumi:"days"`
}

func (BucketLifecycleRuleNoncurrentVersionExpirationArgs) ElementType

func (BucketLifecycleRuleNoncurrentVersionExpirationArgs) ToBucketLifecycleRuleNoncurrentVersionExpirationOutput

func (i BucketLifecycleRuleNoncurrentVersionExpirationArgs) ToBucketLifecycleRuleNoncurrentVersionExpirationOutput() BucketLifecycleRuleNoncurrentVersionExpirationOutput

func (BucketLifecycleRuleNoncurrentVersionExpirationArgs) ToBucketLifecycleRuleNoncurrentVersionExpirationOutputWithContext

func (i BucketLifecycleRuleNoncurrentVersionExpirationArgs) ToBucketLifecycleRuleNoncurrentVersionExpirationOutputWithContext(ctx context.Context) BucketLifecycleRuleNoncurrentVersionExpirationOutput

type BucketLifecycleRuleNoncurrentVersionExpirationArray

type BucketLifecycleRuleNoncurrentVersionExpirationArray []BucketLifecycleRuleNoncurrentVersionExpirationInput

func (BucketLifecycleRuleNoncurrentVersionExpirationArray) ElementType

func (BucketLifecycleRuleNoncurrentVersionExpirationArray) ToBucketLifecycleRuleNoncurrentVersionExpirationArrayOutput

func (i BucketLifecycleRuleNoncurrentVersionExpirationArray) ToBucketLifecycleRuleNoncurrentVersionExpirationArrayOutput() BucketLifecycleRuleNoncurrentVersionExpirationArrayOutput

func (BucketLifecycleRuleNoncurrentVersionExpirationArray) ToBucketLifecycleRuleNoncurrentVersionExpirationArrayOutputWithContext

func (i BucketLifecycleRuleNoncurrentVersionExpirationArray) ToBucketLifecycleRuleNoncurrentVersionExpirationArrayOutputWithContext(ctx context.Context) BucketLifecycleRuleNoncurrentVersionExpirationArrayOutput

type BucketLifecycleRuleNoncurrentVersionExpirationArrayInput

type BucketLifecycleRuleNoncurrentVersionExpirationArrayInput interface {
	pulumi.Input

	ToBucketLifecycleRuleNoncurrentVersionExpirationArrayOutput() BucketLifecycleRuleNoncurrentVersionExpirationArrayOutput
	ToBucketLifecycleRuleNoncurrentVersionExpirationArrayOutputWithContext(context.Context) BucketLifecycleRuleNoncurrentVersionExpirationArrayOutput
}

BucketLifecycleRuleNoncurrentVersionExpirationArrayInput is an input type that accepts BucketLifecycleRuleNoncurrentVersionExpirationArray and BucketLifecycleRuleNoncurrentVersionExpirationArrayOutput values. You can construct a concrete instance of `BucketLifecycleRuleNoncurrentVersionExpirationArrayInput` via:

BucketLifecycleRuleNoncurrentVersionExpirationArray{ BucketLifecycleRuleNoncurrentVersionExpirationArgs{...} }

type BucketLifecycleRuleNoncurrentVersionExpirationArrayOutput

type BucketLifecycleRuleNoncurrentVersionExpirationArrayOutput struct{ *pulumi.OutputState }

func (BucketLifecycleRuleNoncurrentVersionExpirationArrayOutput) ElementType

func (BucketLifecycleRuleNoncurrentVersionExpirationArrayOutput) Index

func (BucketLifecycleRuleNoncurrentVersionExpirationArrayOutput) ToBucketLifecycleRuleNoncurrentVersionExpirationArrayOutput

func (BucketLifecycleRuleNoncurrentVersionExpirationArrayOutput) ToBucketLifecycleRuleNoncurrentVersionExpirationArrayOutputWithContext

func (o BucketLifecycleRuleNoncurrentVersionExpirationArrayOutput) ToBucketLifecycleRuleNoncurrentVersionExpirationArrayOutputWithContext(ctx context.Context) BucketLifecycleRuleNoncurrentVersionExpirationArrayOutput

type BucketLifecycleRuleNoncurrentVersionExpirationInput

type BucketLifecycleRuleNoncurrentVersionExpirationInput interface {
	pulumi.Input

	ToBucketLifecycleRuleNoncurrentVersionExpirationOutput() BucketLifecycleRuleNoncurrentVersionExpirationOutput
	ToBucketLifecycleRuleNoncurrentVersionExpirationOutputWithContext(context.Context) BucketLifecycleRuleNoncurrentVersionExpirationOutput
}

BucketLifecycleRuleNoncurrentVersionExpirationInput is an input type that accepts BucketLifecycleRuleNoncurrentVersionExpirationArgs and BucketLifecycleRuleNoncurrentVersionExpirationOutput values. You can construct a concrete instance of `BucketLifecycleRuleNoncurrentVersionExpirationInput` via:

BucketLifecycleRuleNoncurrentVersionExpirationArgs{...}

type BucketLifecycleRuleNoncurrentVersionExpirationOutput

type BucketLifecycleRuleNoncurrentVersionExpirationOutput struct{ *pulumi.OutputState }

func (BucketLifecycleRuleNoncurrentVersionExpirationOutput) Days

Specifies the number of days when noncurrent object versions are automatically deleted.

func (BucketLifecycleRuleNoncurrentVersionExpirationOutput) ElementType

func (BucketLifecycleRuleNoncurrentVersionExpirationOutput) ToBucketLifecycleRuleNoncurrentVersionExpirationOutput

func (BucketLifecycleRuleNoncurrentVersionExpirationOutput) ToBucketLifecycleRuleNoncurrentVersionExpirationOutputWithContext

func (o BucketLifecycleRuleNoncurrentVersionExpirationOutput) ToBucketLifecycleRuleNoncurrentVersionExpirationOutputWithContext(ctx context.Context) BucketLifecycleRuleNoncurrentVersionExpirationOutput

type BucketLifecycleRuleNoncurrentVersionTransition

type BucketLifecycleRuleNoncurrentVersionTransition struct {
	// Specifies the number of days when noncurrent object versions are automatically transitioned
	// to the specified storage class.
	Days int `pulumi:"days"`
	// The class of storage used to store the object. Only `WARM` and `COLD` are
	// supported.
	StorageClass string `pulumi:"storageClass"`
}

type BucketLifecycleRuleNoncurrentVersionTransitionArgs

type BucketLifecycleRuleNoncurrentVersionTransitionArgs struct {
	// Specifies the number of days when noncurrent object versions are automatically transitioned
	// to the specified storage class.
	Days pulumi.IntInput `pulumi:"days"`
	// The class of storage used to store the object. Only `WARM` and `COLD` are
	// supported.
	StorageClass pulumi.StringInput `pulumi:"storageClass"`
}

func (BucketLifecycleRuleNoncurrentVersionTransitionArgs) ElementType

func (BucketLifecycleRuleNoncurrentVersionTransitionArgs) ToBucketLifecycleRuleNoncurrentVersionTransitionOutput

func (i BucketLifecycleRuleNoncurrentVersionTransitionArgs) ToBucketLifecycleRuleNoncurrentVersionTransitionOutput() BucketLifecycleRuleNoncurrentVersionTransitionOutput

func (BucketLifecycleRuleNoncurrentVersionTransitionArgs) ToBucketLifecycleRuleNoncurrentVersionTransitionOutputWithContext

func (i BucketLifecycleRuleNoncurrentVersionTransitionArgs) ToBucketLifecycleRuleNoncurrentVersionTransitionOutputWithContext(ctx context.Context) BucketLifecycleRuleNoncurrentVersionTransitionOutput

type BucketLifecycleRuleNoncurrentVersionTransitionArray

type BucketLifecycleRuleNoncurrentVersionTransitionArray []BucketLifecycleRuleNoncurrentVersionTransitionInput

func (BucketLifecycleRuleNoncurrentVersionTransitionArray) ElementType

func (BucketLifecycleRuleNoncurrentVersionTransitionArray) ToBucketLifecycleRuleNoncurrentVersionTransitionArrayOutput

func (i BucketLifecycleRuleNoncurrentVersionTransitionArray) ToBucketLifecycleRuleNoncurrentVersionTransitionArrayOutput() BucketLifecycleRuleNoncurrentVersionTransitionArrayOutput

func (BucketLifecycleRuleNoncurrentVersionTransitionArray) ToBucketLifecycleRuleNoncurrentVersionTransitionArrayOutputWithContext

func (i BucketLifecycleRuleNoncurrentVersionTransitionArray) ToBucketLifecycleRuleNoncurrentVersionTransitionArrayOutputWithContext(ctx context.Context) BucketLifecycleRuleNoncurrentVersionTransitionArrayOutput

type BucketLifecycleRuleNoncurrentVersionTransitionArrayInput

type BucketLifecycleRuleNoncurrentVersionTransitionArrayInput interface {
	pulumi.Input

	ToBucketLifecycleRuleNoncurrentVersionTransitionArrayOutput() BucketLifecycleRuleNoncurrentVersionTransitionArrayOutput
	ToBucketLifecycleRuleNoncurrentVersionTransitionArrayOutputWithContext(context.Context) BucketLifecycleRuleNoncurrentVersionTransitionArrayOutput
}

BucketLifecycleRuleNoncurrentVersionTransitionArrayInput is an input type that accepts BucketLifecycleRuleNoncurrentVersionTransitionArray and BucketLifecycleRuleNoncurrentVersionTransitionArrayOutput values. You can construct a concrete instance of `BucketLifecycleRuleNoncurrentVersionTransitionArrayInput` via:

BucketLifecycleRuleNoncurrentVersionTransitionArray{ BucketLifecycleRuleNoncurrentVersionTransitionArgs{...} }

type BucketLifecycleRuleNoncurrentVersionTransitionArrayOutput

type BucketLifecycleRuleNoncurrentVersionTransitionArrayOutput struct{ *pulumi.OutputState }

func (BucketLifecycleRuleNoncurrentVersionTransitionArrayOutput) ElementType

func (BucketLifecycleRuleNoncurrentVersionTransitionArrayOutput) Index

func (BucketLifecycleRuleNoncurrentVersionTransitionArrayOutput) ToBucketLifecycleRuleNoncurrentVersionTransitionArrayOutput

func (BucketLifecycleRuleNoncurrentVersionTransitionArrayOutput) ToBucketLifecycleRuleNoncurrentVersionTransitionArrayOutputWithContext

func (o BucketLifecycleRuleNoncurrentVersionTransitionArrayOutput) ToBucketLifecycleRuleNoncurrentVersionTransitionArrayOutputWithContext(ctx context.Context) BucketLifecycleRuleNoncurrentVersionTransitionArrayOutput

type BucketLifecycleRuleNoncurrentVersionTransitionInput

type BucketLifecycleRuleNoncurrentVersionTransitionInput interface {
	pulumi.Input

	ToBucketLifecycleRuleNoncurrentVersionTransitionOutput() BucketLifecycleRuleNoncurrentVersionTransitionOutput
	ToBucketLifecycleRuleNoncurrentVersionTransitionOutputWithContext(context.Context) BucketLifecycleRuleNoncurrentVersionTransitionOutput
}

BucketLifecycleRuleNoncurrentVersionTransitionInput is an input type that accepts BucketLifecycleRuleNoncurrentVersionTransitionArgs and BucketLifecycleRuleNoncurrentVersionTransitionOutput values. You can construct a concrete instance of `BucketLifecycleRuleNoncurrentVersionTransitionInput` via:

BucketLifecycleRuleNoncurrentVersionTransitionArgs{...}

type BucketLifecycleRuleNoncurrentVersionTransitionOutput

type BucketLifecycleRuleNoncurrentVersionTransitionOutput struct{ *pulumi.OutputState }

func (BucketLifecycleRuleNoncurrentVersionTransitionOutput) Days

Specifies the number of days when noncurrent object versions are automatically transitioned to the specified storage class.

func (BucketLifecycleRuleNoncurrentVersionTransitionOutput) ElementType

func (BucketLifecycleRuleNoncurrentVersionTransitionOutput) StorageClass

The class of storage used to store the object. Only `WARM` and `COLD` are supported.

func (BucketLifecycleRuleNoncurrentVersionTransitionOutput) ToBucketLifecycleRuleNoncurrentVersionTransitionOutput

func (BucketLifecycleRuleNoncurrentVersionTransitionOutput) ToBucketLifecycleRuleNoncurrentVersionTransitionOutputWithContext

func (o BucketLifecycleRuleNoncurrentVersionTransitionOutput) ToBucketLifecycleRuleNoncurrentVersionTransitionOutputWithContext(ctx context.Context) BucketLifecycleRuleNoncurrentVersionTransitionOutput

type BucketLifecycleRuleOutput

type BucketLifecycleRuleOutput struct{ *pulumi.OutputState }

func (BucketLifecycleRuleOutput) ElementType

func (BucketLifecycleRuleOutput) ElementType() reflect.Type

func (BucketLifecycleRuleOutput) Enabled

Specifies lifecycle rule status.

func (BucketLifecycleRuleOutput) Expirations

Specifies a period when objects that have been last updated are automatically deleted. (documented below).

func (BucketLifecycleRuleOutput) Name

Unique identifier for lifecycle rules. The Rule Name contains a maximum of 255 characters.

func (BucketLifecycleRuleOutput) NoncurrentVersionExpirations

Specifies a period when noncurrent object versions are automatically deleted. (documented below).

func (BucketLifecycleRuleOutput) NoncurrentVersionTransitions

Specifies a period when noncurrent object versions are automatically transitioned to `WARM` or `COLD` storage class (documented below).

func (BucketLifecycleRuleOutput) Prefix

Object key prefix identifying one or more objects to which the rule applies. If omitted, all objects in the bucket will be managed by the lifecycle rule. The prefix cannot start or end with a slash (/), cannot have consecutive slashes (/), and cannot contain the following special characters: \:*?"<>|.

func (BucketLifecycleRuleOutput) ToBucketLifecycleRuleOutput

func (o BucketLifecycleRuleOutput) ToBucketLifecycleRuleOutput() BucketLifecycleRuleOutput

func (BucketLifecycleRuleOutput) ToBucketLifecycleRuleOutputWithContext

func (o BucketLifecycleRuleOutput) ToBucketLifecycleRuleOutputWithContext(ctx context.Context) BucketLifecycleRuleOutput

func (BucketLifecycleRuleOutput) Transitions

Specifies a period when objects that have been last updated are automatically transitioned to `WARM` or `COLD` storage class (documented below).

type BucketLifecycleRuleTransition

type BucketLifecycleRuleTransition struct {
	// Specifies the number of days when objects that have been last updated are automatically
	// transitioned to the specified storage class.
	Days int `pulumi:"days"`
	// The class of storage used to store the object. Only `WARM` and `COLD` are
	// supported.
	StorageClass string `pulumi:"storageClass"`
}

type BucketLifecycleRuleTransitionArgs

type BucketLifecycleRuleTransitionArgs struct {
	// Specifies the number of days when objects that have been last updated are automatically
	// transitioned to the specified storage class.
	Days pulumi.IntInput `pulumi:"days"`
	// The class of storage used to store the object. Only `WARM` and `COLD` are
	// supported.
	StorageClass pulumi.StringInput `pulumi:"storageClass"`
}

func (BucketLifecycleRuleTransitionArgs) ElementType

func (BucketLifecycleRuleTransitionArgs) ToBucketLifecycleRuleTransitionOutput

func (i BucketLifecycleRuleTransitionArgs) ToBucketLifecycleRuleTransitionOutput() BucketLifecycleRuleTransitionOutput

func (BucketLifecycleRuleTransitionArgs) ToBucketLifecycleRuleTransitionOutputWithContext

func (i BucketLifecycleRuleTransitionArgs) ToBucketLifecycleRuleTransitionOutputWithContext(ctx context.Context) BucketLifecycleRuleTransitionOutput

type BucketLifecycleRuleTransitionArray

type BucketLifecycleRuleTransitionArray []BucketLifecycleRuleTransitionInput

func (BucketLifecycleRuleTransitionArray) ElementType

func (BucketLifecycleRuleTransitionArray) ToBucketLifecycleRuleTransitionArrayOutput

func (i BucketLifecycleRuleTransitionArray) ToBucketLifecycleRuleTransitionArrayOutput() BucketLifecycleRuleTransitionArrayOutput

func (BucketLifecycleRuleTransitionArray) ToBucketLifecycleRuleTransitionArrayOutputWithContext

func (i BucketLifecycleRuleTransitionArray) ToBucketLifecycleRuleTransitionArrayOutputWithContext(ctx context.Context) BucketLifecycleRuleTransitionArrayOutput

type BucketLifecycleRuleTransitionArrayInput

type BucketLifecycleRuleTransitionArrayInput interface {
	pulumi.Input

	ToBucketLifecycleRuleTransitionArrayOutput() BucketLifecycleRuleTransitionArrayOutput
	ToBucketLifecycleRuleTransitionArrayOutputWithContext(context.Context) BucketLifecycleRuleTransitionArrayOutput
}

BucketLifecycleRuleTransitionArrayInput is an input type that accepts BucketLifecycleRuleTransitionArray and BucketLifecycleRuleTransitionArrayOutput values. You can construct a concrete instance of `BucketLifecycleRuleTransitionArrayInput` via:

BucketLifecycleRuleTransitionArray{ BucketLifecycleRuleTransitionArgs{...} }

type BucketLifecycleRuleTransitionArrayOutput

type BucketLifecycleRuleTransitionArrayOutput struct{ *pulumi.OutputState }

func (BucketLifecycleRuleTransitionArrayOutput) ElementType

func (BucketLifecycleRuleTransitionArrayOutput) Index

func (BucketLifecycleRuleTransitionArrayOutput) ToBucketLifecycleRuleTransitionArrayOutput

func (o BucketLifecycleRuleTransitionArrayOutput) ToBucketLifecycleRuleTransitionArrayOutput() BucketLifecycleRuleTransitionArrayOutput

func (BucketLifecycleRuleTransitionArrayOutput) ToBucketLifecycleRuleTransitionArrayOutputWithContext

func (o BucketLifecycleRuleTransitionArrayOutput) ToBucketLifecycleRuleTransitionArrayOutputWithContext(ctx context.Context) BucketLifecycleRuleTransitionArrayOutput

type BucketLifecycleRuleTransitionInput

type BucketLifecycleRuleTransitionInput interface {
	pulumi.Input

	ToBucketLifecycleRuleTransitionOutput() BucketLifecycleRuleTransitionOutput
	ToBucketLifecycleRuleTransitionOutputWithContext(context.Context) BucketLifecycleRuleTransitionOutput
}

BucketLifecycleRuleTransitionInput is an input type that accepts BucketLifecycleRuleTransitionArgs and BucketLifecycleRuleTransitionOutput values. You can construct a concrete instance of `BucketLifecycleRuleTransitionInput` via:

BucketLifecycleRuleTransitionArgs{...}

type BucketLifecycleRuleTransitionOutput

type BucketLifecycleRuleTransitionOutput struct{ *pulumi.OutputState }

func (BucketLifecycleRuleTransitionOutput) Days

Specifies the number of days when objects that have been last updated are automatically transitioned to the specified storage class.

func (BucketLifecycleRuleTransitionOutput) ElementType

func (BucketLifecycleRuleTransitionOutput) StorageClass

The class of storage used to store the object. Only `WARM` and `COLD` are supported.

func (BucketLifecycleRuleTransitionOutput) ToBucketLifecycleRuleTransitionOutput

func (o BucketLifecycleRuleTransitionOutput) ToBucketLifecycleRuleTransitionOutput() BucketLifecycleRuleTransitionOutput

func (BucketLifecycleRuleTransitionOutput) ToBucketLifecycleRuleTransitionOutputWithContext

func (o BucketLifecycleRuleTransitionOutput) ToBucketLifecycleRuleTransitionOutputWithContext(ctx context.Context) BucketLifecycleRuleTransitionOutput

type BucketLogging

type BucketLogging struct {
	// The name of the bucket that will receive the log objects. The acl policy of the
	// target bucket should be `log-delivery-write`.
	TargetBucket string `pulumi:"targetBucket"`
	// To specify a key prefix for log objects.
	TargetPrefix *string `pulumi:"targetPrefix"`
}

type BucketLoggingArgs

type BucketLoggingArgs struct {
	// The name of the bucket that will receive the log objects. The acl policy of the
	// target bucket should be `log-delivery-write`.
	TargetBucket pulumi.StringInput `pulumi:"targetBucket"`
	// To specify a key prefix for log objects.
	TargetPrefix pulumi.StringPtrInput `pulumi:"targetPrefix"`
}

func (BucketLoggingArgs) ElementType

func (BucketLoggingArgs) ElementType() reflect.Type

func (BucketLoggingArgs) ToBucketLoggingOutput

func (i BucketLoggingArgs) ToBucketLoggingOutput() BucketLoggingOutput

func (BucketLoggingArgs) ToBucketLoggingOutputWithContext

func (i BucketLoggingArgs) ToBucketLoggingOutputWithContext(ctx context.Context) BucketLoggingOutput

type BucketLoggingArray

type BucketLoggingArray []BucketLoggingInput

func (BucketLoggingArray) ElementType

func (BucketLoggingArray) ElementType() reflect.Type

func (BucketLoggingArray) ToBucketLoggingArrayOutput

func (i BucketLoggingArray) ToBucketLoggingArrayOutput() BucketLoggingArrayOutput

func (BucketLoggingArray) ToBucketLoggingArrayOutputWithContext

func (i BucketLoggingArray) ToBucketLoggingArrayOutputWithContext(ctx context.Context) BucketLoggingArrayOutput

type BucketLoggingArrayInput

type BucketLoggingArrayInput interface {
	pulumi.Input

	ToBucketLoggingArrayOutput() BucketLoggingArrayOutput
	ToBucketLoggingArrayOutputWithContext(context.Context) BucketLoggingArrayOutput
}

BucketLoggingArrayInput is an input type that accepts BucketLoggingArray and BucketLoggingArrayOutput values. You can construct a concrete instance of `BucketLoggingArrayInput` via:

BucketLoggingArray{ BucketLoggingArgs{...} }

type BucketLoggingArrayOutput

type BucketLoggingArrayOutput struct{ *pulumi.OutputState }

func (BucketLoggingArrayOutput) ElementType

func (BucketLoggingArrayOutput) ElementType() reflect.Type

func (BucketLoggingArrayOutput) Index

func (BucketLoggingArrayOutput) ToBucketLoggingArrayOutput

func (o BucketLoggingArrayOutput) ToBucketLoggingArrayOutput() BucketLoggingArrayOutput

func (BucketLoggingArrayOutput) ToBucketLoggingArrayOutputWithContext

func (o BucketLoggingArrayOutput) ToBucketLoggingArrayOutputWithContext(ctx context.Context) BucketLoggingArrayOutput

type BucketLoggingInput

type BucketLoggingInput interface {
	pulumi.Input

	ToBucketLoggingOutput() BucketLoggingOutput
	ToBucketLoggingOutputWithContext(context.Context) BucketLoggingOutput
}

BucketLoggingInput is an input type that accepts BucketLoggingArgs and BucketLoggingOutput values. You can construct a concrete instance of `BucketLoggingInput` via:

BucketLoggingArgs{...}

type BucketLoggingOutput

type BucketLoggingOutput struct{ *pulumi.OutputState }

func (BucketLoggingOutput) ElementType

func (BucketLoggingOutput) ElementType() reflect.Type

func (BucketLoggingOutput) TargetBucket

func (o BucketLoggingOutput) TargetBucket() pulumi.StringOutput

The name of the bucket that will receive the log objects. The acl policy of the target bucket should be `log-delivery-write`.

func (BucketLoggingOutput) TargetPrefix

func (o BucketLoggingOutput) TargetPrefix() pulumi.StringPtrOutput

To specify a key prefix for log objects.

func (BucketLoggingOutput) ToBucketLoggingOutput

func (o BucketLoggingOutput) ToBucketLoggingOutput() BucketLoggingOutput

func (BucketLoggingOutput) ToBucketLoggingOutputWithContext

func (o BucketLoggingOutput) ToBucketLoggingOutputWithContext(ctx context.Context) BucketLoggingOutput

type BucketMap

type BucketMap map[string]BucketInput

func (BucketMap) ElementType

func (BucketMap) ElementType() reflect.Type

func (BucketMap) ToBucketMapOutput

func (i BucketMap) ToBucketMapOutput() BucketMapOutput

func (BucketMap) ToBucketMapOutputWithContext

func (i BucketMap) ToBucketMapOutputWithContext(ctx context.Context) BucketMapOutput

type BucketMapInput

type BucketMapInput interface {
	pulumi.Input

	ToBucketMapOutput() BucketMapOutput
	ToBucketMapOutputWithContext(context.Context) BucketMapOutput
}

BucketMapInput is an input type that accepts BucketMap and BucketMapOutput values. You can construct a concrete instance of `BucketMapInput` via:

BucketMap{ "key": BucketArgs{...} }

type BucketMapOutput

type BucketMapOutput struct{ *pulumi.OutputState }

func (BucketMapOutput) ElementType

func (BucketMapOutput) ElementType() reflect.Type

func (BucketMapOutput) MapIndex

func (BucketMapOutput) ToBucketMapOutput

func (o BucketMapOutput) ToBucketMapOutput() BucketMapOutput

func (BucketMapOutput) ToBucketMapOutputWithContext

func (o BucketMapOutput) ToBucketMapOutputWithContext(ctx context.Context) BucketMapOutput

type BucketObject

type BucketObject struct {
	pulumi.CustomResourceState

	// The ACL policy to apply. Defaults to `private`.
	Acl pulumi.StringPtrOutput `pulumi:"acl"`
	// The name of the bucket to put the file in.
	Bucket pulumi.StringOutput `pulumi:"bucket"`
	// The literal content being uploaded to the bucket.
	Content pulumi.StringPtrOutput `pulumi:"content"`
	// A standard MIME type describing the format of the object data, e.g.
	// application/octet-stream. All Valid MIME Types are valid for this input.
	ContentType pulumi.StringOutput `pulumi:"contentType"`
	// Whether enable server-side encryption of the object in SSE-KMS mode.
	Encryption pulumi.BoolPtrOutput `pulumi:"encryption"`
	// Specifies the unique identifier of the object content. It can be used to trigger updates.
	// The only meaningful value is `md5(file("pathToFile"))`.
	Etag pulumi.StringOutput `pulumi:"etag"`
	// The name of the object once it is in the bucket.
	Key pulumi.StringOutput `pulumi:"key"`
	// The ID of the kms key. If omitted, the default master key will be used.
	KmsKeyId pulumi.StringPtrOutput `pulumi:"kmsKeyId"`
	// The region in which to create the OBS bucket object resource. If omitted, the
	// provider-level region will be used. Changing this creates a new OBS bucket object resource.
	Region pulumi.StringOutput `pulumi:"region"`
	// the size of the object in bytes.
	Size pulumi.IntOutput `pulumi:"size"`
	// The path to the source file being uploaded to the bucket.
	Source pulumi.StringPtrOutput `pulumi:"source"`
	// Specifies the storage class of the object. Defaults to `STANDARD`.
	StorageClass pulumi.StringOutput `pulumi:"storageClass"`
	// A unique version ID value for the object, if bucket versioning is enabled.
	VersionId pulumi.StringOutput `pulumi:"versionId"`
}

Provides an OBS bucket object resource.

## Example Usage ### Uploading to a bucket

```go package main

import (

"github.com/huaweicloud/pulumi-huaweicloud/sdk/go/huaweicloud/Obs"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Obs.NewBucketObject(ctx, "object", &Obs.BucketObjectArgs{
			Bucket:      pulumi.String("your_bucket_name"),
			Content:     pulumi.String("some object content"),
			ContentType: pulumi.String("application/xml"),
			Key:         pulumi.String("new_key_from_content"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` ### Uploading a file to a bucket

```go package main

import (

"github.com/huaweicloud/pulumi-huaweicloud/sdk/go/huaweicloud/Obs"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		examplebucket, err := Obs.NewBucket(ctx, "examplebucket", &Obs.BucketArgs{
			Bucket: pulumi.String("examplebuckettftest"),
			Acl:    pulumi.String("private"),
		})
		if err != nil {
			return err
		}
		_, err = Obs.NewBucketObject(ctx, "object", &Obs.BucketObjectArgs{
			Bucket: examplebucket.Bucket,
			Key:    pulumi.String("new_key_from_file"),
			Source: pulumi.String("index.html"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` ### Server Side Encryption with OBS Default Master Key

```go package main

import (

"github.com/huaweicloud/pulumi-huaweicloud/sdk/go/huaweicloud/Obs"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Obs.NewBucketObject(ctx, "examplebucketObject", &Obs.BucketObjectArgs{
			Bucket:     pulumi.String("your_bucket_name"),
			Encryption: pulumi.Bool(true),
			Key:        pulumi.String("someobject"),
			Source:     pulumi.String("index.html"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

OBS bucket object can be imported using the bucket and key separated by a slash, e.g.

```sh

$ pulumi import huaweicloud:Obs/bucketObject:BucketObject object bucket/key

```

Note that the imported state may not be identical to your resource definition, due to some attributes missing from the API response, security or some other reason. The missing attributes include`encryption`, `source`, `acl` and `kms_key_id`. It is generally recommended running `terraform plan` after importing an object. You can then decide if changes should be applied to the object, or the resource definition should be updated to align with the object. Also you can ignore changes as below. resource "huaweicloud_obs_bucket_object" "object" {

...

lifecycle {

ignore_changes = [

encryption, source, acl, kms_key_id,

]

} }

func GetBucketObject

func GetBucketObject(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *BucketObjectState, opts ...pulumi.ResourceOption) (*BucketObject, error)

GetBucketObject gets an existing BucketObject resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewBucketObject

func NewBucketObject(ctx *pulumi.Context,
	name string, args *BucketObjectArgs, opts ...pulumi.ResourceOption) (*BucketObject, error)

NewBucketObject registers a new resource with the given unique name, arguments, and options.

func (*BucketObject) ElementType

func (*BucketObject) ElementType() reflect.Type

func (*BucketObject) ToBucketObjectOutput

func (i *BucketObject) ToBucketObjectOutput() BucketObjectOutput

func (*BucketObject) ToBucketObjectOutputWithContext

func (i *BucketObject) ToBucketObjectOutputWithContext(ctx context.Context) BucketObjectOutput

type BucketObjectArgs

type BucketObjectArgs struct {
	// The ACL policy to apply. Defaults to `private`.
	Acl pulumi.StringPtrInput
	// The name of the bucket to put the file in.
	Bucket pulumi.StringInput
	// The literal content being uploaded to the bucket.
	Content pulumi.StringPtrInput
	// A standard MIME type describing the format of the object data, e.g.
	// application/octet-stream. All Valid MIME Types are valid for this input.
	ContentType pulumi.StringPtrInput
	// Whether enable server-side encryption of the object in SSE-KMS mode.
	Encryption pulumi.BoolPtrInput
	// Specifies the unique identifier of the object content. It can be used to trigger updates.
	// The only meaningful value is `md5(file("pathToFile"))`.
	Etag pulumi.StringPtrInput
	// The name of the object once it is in the bucket.
	Key pulumi.StringInput
	// The ID of the kms key. If omitted, the default master key will be used.
	KmsKeyId pulumi.StringPtrInput
	// The region in which to create the OBS bucket object resource. If omitted, the
	// provider-level region will be used. Changing this creates a new OBS bucket object resource.
	Region pulumi.StringPtrInput
	// The path to the source file being uploaded to the bucket.
	Source pulumi.StringPtrInput
	// Specifies the storage class of the object. Defaults to `STANDARD`.
	StorageClass pulumi.StringPtrInput
}

The set of arguments for constructing a BucketObject resource.

func (BucketObjectArgs) ElementType

func (BucketObjectArgs) ElementType() reflect.Type

type BucketObjectArray

type BucketObjectArray []BucketObjectInput

func (BucketObjectArray) ElementType

func (BucketObjectArray) ElementType() reflect.Type

func (BucketObjectArray) ToBucketObjectArrayOutput

func (i BucketObjectArray) ToBucketObjectArrayOutput() BucketObjectArrayOutput

func (BucketObjectArray) ToBucketObjectArrayOutputWithContext

func (i BucketObjectArray) ToBucketObjectArrayOutputWithContext(ctx context.Context) BucketObjectArrayOutput

type BucketObjectArrayInput

type BucketObjectArrayInput interface {
	pulumi.Input

	ToBucketObjectArrayOutput() BucketObjectArrayOutput
	ToBucketObjectArrayOutputWithContext(context.Context) BucketObjectArrayOutput
}

BucketObjectArrayInput is an input type that accepts BucketObjectArray and BucketObjectArrayOutput values. You can construct a concrete instance of `BucketObjectArrayInput` via:

BucketObjectArray{ BucketObjectArgs{...} }

type BucketObjectArrayOutput

type BucketObjectArrayOutput struct{ *pulumi.OutputState }

func (BucketObjectArrayOutput) ElementType

func (BucketObjectArrayOutput) ElementType() reflect.Type

func (BucketObjectArrayOutput) Index

func (BucketObjectArrayOutput) ToBucketObjectArrayOutput

func (o BucketObjectArrayOutput) ToBucketObjectArrayOutput() BucketObjectArrayOutput

func (BucketObjectArrayOutput) ToBucketObjectArrayOutputWithContext

func (o BucketObjectArrayOutput) ToBucketObjectArrayOutputWithContext(ctx context.Context) BucketObjectArrayOutput

type BucketObjectInput

type BucketObjectInput interface {
	pulumi.Input

	ToBucketObjectOutput() BucketObjectOutput
	ToBucketObjectOutputWithContext(ctx context.Context) BucketObjectOutput
}

type BucketObjectMap

type BucketObjectMap map[string]BucketObjectInput

func (BucketObjectMap) ElementType

func (BucketObjectMap) ElementType() reflect.Type

func (BucketObjectMap) ToBucketObjectMapOutput

func (i BucketObjectMap) ToBucketObjectMapOutput() BucketObjectMapOutput

func (BucketObjectMap) ToBucketObjectMapOutputWithContext

func (i BucketObjectMap) ToBucketObjectMapOutputWithContext(ctx context.Context) BucketObjectMapOutput

type BucketObjectMapInput

type BucketObjectMapInput interface {
	pulumi.Input

	ToBucketObjectMapOutput() BucketObjectMapOutput
	ToBucketObjectMapOutputWithContext(context.Context) BucketObjectMapOutput
}

BucketObjectMapInput is an input type that accepts BucketObjectMap and BucketObjectMapOutput values. You can construct a concrete instance of `BucketObjectMapInput` via:

BucketObjectMap{ "key": BucketObjectArgs{...} }

type BucketObjectMapOutput

type BucketObjectMapOutput struct{ *pulumi.OutputState }

func (BucketObjectMapOutput) ElementType

func (BucketObjectMapOutput) ElementType() reflect.Type

func (BucketObjectMapOutput) MapIndex

func (BucketObjectMapOutput) ToBucketObjectMapOutput

func (o BucketObjectMapOutput) ToBucketObjectMapOutput() BucketObjectMapOutput

func (BucketObjectMapOutput) ToBucketObjectMapOutputWithContext

func (o BucketObjectMapOutput) ToBucketObjectMapOutputWithContext(ctx context.Context) BucketObjectMapOutput

type BucketObjectOutput

type BucketObjectOutput struct{ *pulumi.OutputState }

func (BucketObjectOutput) Acl

The ACL policy to apply. Defaults to `private`.

func (BucketObjectOutput) Bucket

The name of the bucket to put the file in.

func (BucketObjectOutput) Content

The literal content being uploaded to the bucket.

func (BucketObjectOutput) ContentType

func (o BucketObjectOutput) ContentType() pulumi.StringOutput

A standard MIME type describing the format of the object data, e.g. application/octet-stream. All Valid MIME Types are valid for this input.

func (BucketObjectOutput) ElementType

func (BucketObjectOutput) ElementType() reflect.Type

func (BucketObjectOutput) Encryption

func (o BucketObjectOutput) Encryption() pulumi.BoolPtrOutput

Whether enable server-side encryption of the object in SSE-KMS mode.

func (BucketObjectOutput) Etag

Specifies the unique identifier of the object content. It can be used to trigger updates. The only meaningful value is `md5(file("pathToFile"))`.

func (BucketObjectOutput) Key

The name of the object once it is in the bucket.

func (BucketObjectOutput) KmsKeyId

The ID of the kms key. If omitted, the default master key will be used.

func (BucketObjectOutput) Region

The region in which to create the OBS bucket object resource. If omitted, the provider-level region will be used. Changing this creates a new OBS bucket object resource.

func (BucketObjectOutput) Size

the size of the object in bytes.

func (BucketObjectOutput) Source

The path to the source file being uploaded to the bucket.

func (BucketObjectOutput) StorageClass

func (o BucketObjectOutput) StorageClass() pulumi.StringOutput

Specifies the storage class of the object. Defaults to `STANDARD`.

func (BucketObjectOutput) ToBucketObjectOutput

func (o BucketObjectOutput) ToBucketObjectOutput() BucketObjectOutput

func (BucketObjectOutput) ToBucketObjectOutputWithContext

func (o BucketObjectOutput) ToBucketObjectOutputWithContext(ctx context.Context) BucketObjectOutput

func (BucketObjectOutput) VersionId

func (o BucketObjectOutput) VersionId() pulumi.StringOutput

A unique version ID value for the object, if bucket versioning is enabled.

type BucketObjectState

type BucketObjectState struct {
	// The ACL policy to apply. Defaults to `private`.
	Acl pulumi.StringPtrInput
	// The name of the bucket to put the file in.
	Bucket pulumi.StringPtrInput
	// The literal content being uploaded to the bucket.
	Content pulumi.StringPtrInput
	// A standard MIME type describing the format of the object data, e.g.
	// application/octet-stream. All Valid MIME Types are valid for this input.
	ContentType pulumi.StringPtrInput
	// Whether enable server-side encryption of the object in SSE-KMS mode.
	Encryption pulumi.BoolPtrInput
	// Specifies the unique identifier of the object content. It can be used to trigger updates.
	// The only meaningful value is `md5(file("pathToFile"))`.
	Etag pulumi.StringPtrInput
	// The name of the object once it is in the bucket.
	Key pulumi.StringPtrInput
	// The ID of the kms key. If omitted, the default master key will be used.
	KmsKeyId pulumi.StringPtrInput
	// The region in which to create the OBS bucket object resource. If omitted, the
	// provider-level region will be used. Changing this creates a new OBS bucket object resource.
	Region pulumi.StringPtrInput
	// the size of the object in bytes.
	Size pulumi.IntPtrInput
	// The path to the source file being uploaded to the bucket.
	Source pulumi.StringPtrInput
	// Specifies the storage class of the object. Defaults to `STANDARD`.
	StorageClass pulumi.StringPtrInput
	// A unique version ID value for the object, if bucket versioning is enabled.
	VersionId pulumi.StringPtrInput
}

func (BucketObjectState) ElementType

func (BucketObjectState) ElementType() reflect.Type

type BucketOutput

type BucketOutput struct{ *pulumi.OutputState }

func (BucketOutput) Acl

Specifies the ACL policy for a bucket. The predefined common policies are as follows: "private", "public-read", "public-read-write" and "log-delivery-write". Defaults to `private`.

func (BucketOutput) Bucket

func (o BucketOutput) Bucket() pulumi.StringOutput

Specifies the name of the bucket. Changing this parameter will create a new resource. A bucket must be named according to the globally applied DNS naming regulations as follows:

  • The name must be globally unique in OBS.
  • The name must contain 3 to 63 characters. Only lowercase letters, digits, hyphens (-), and periods (.) are allowed.
  • The name cannot start or end with a period (.) or hyphen (-), and cannot contain two consecutive periods (.) or contain a period (.) and a hyphen (-) adjacent to each other.
  • The name cannot be an IP address.
  • If the name contains any periods (.), a security certificate verification message may appear when you access the bucket or its objects by entering a domain name.

func (BucketOutput) BucketDomainName

func (o BucketOutput) BucketDomainName() pulumi.StringOutput

The bucket domain name. Will be of format `bucketname.obs.region.myhuaweicloud.com`.

func (BucketOutput) BucketVersion

func (o BucketOutput) BucketVersion() pulumi.StringOutput

The OBS version of the bucket.

func (BucketOutput) CorsRules

A rule of Cross-Origin Resource Sharing (documented below).

func (BucketOutput) ElementType

func (BucketOutput) ElementType() reflect.Type

func (BucketOutput) Encryption

func (o BucketOutput) Encryption() pulumi.BoolPtrOutput

Whether enable default server-side encryption of the bucket in SSE-KMS mode.

func (BucketOutput) EnterpriseProjectId

func (o BucketOutput) EnterpriseProjectId() pulumi.StringOutput

Specifies the enterprise project id of the OBS bucket. Defaults to `0`.

func (BucketOutput) ForceDestroy

func (o BucketOutput) ForceDestroy() pulumi.BoolPtrOutput

A boolean that indicates all objects should be deleted from the bucket, so that the bucket can be destroyed without error. Default to `false`.

func (BucketOutput) KmsKeyId

func (o BucketOutput) KmsKeyId() pulumi.StringPtrOutput

Specifies the ID of a KMS key. If omitted, the default master key will be used.

func (BucketOutput) KmsKeyProjectId

func (o BucketOutput) KmsKeyProjectId() pulumi.StringOutput

Specifies the project ID to which the KMS key belongs. If omitted, the ID of the provider-level project will be used.

func (BucketOutput) LifecycleRules

func (o BucketOutput) LifecycleRules() BucketLifecycleRuleArrayOutput

A configuration of object lifecycle management (documented below).

func (BucketOutput) Loggings

A settings of bucket logging (documented below).

func (BucketOutput) MultiAz

func (o BucketOutput) MultiAz() pulumi.BoolOutput

Whether enable the multi-AZ mode for the bucket. When the multi-AZ mode is enabled, data in the bucket is duplicated and stored in multiple AZs.

func (BucketOutput) ParallelFs

func (o BucketOutput) ParallelFs() pulumi.BoolPtrOutput

Whether enable a bucket as a parallel file system. Changing this will create a new bucket.

func (BucketOutput) Policy

func (o BucketOutput) Policy() pulumi.StringOutput

Specifies the text of the bucket policy in JSON format. For more information about obs format bucket policy, see the [Developer Guide](https://support.huaweicloud.com/intl/en-us/perms-cfg-obs/obs_40_0004.html).

func (BucketOutput) PolicyFormat

func (o BucketOutput) PolicyFormat() pulumi.StringPtrOutput

Specifies the policy format, the supported values are *obs* and *s3*. Defaults to *obs*.

func (BucketOutput) Quota

func (o BucketOutput) Quota() pulumi.IntPtrOutput

Specifies bucket storage quota. Must be a positive integer in the unit of byte. The maximum storage quota is 2<sup>63</sup> – 1 bytes. The default bucket storage quota is 0, indicating that the bucket storage quota is not limited.

func (BucketOutput) Region

func (o BucketOutput) Region() pulumi.StringOutput

Specifies the region where this bucket will be created. If not specified, used the region by the provider. Changing this will create a new bucket.

func (BucketOutput) StorageClass

func (o BucketOutput) StorageClass() pulumi.StringPtrOutput

Specifies the storage class of the bucket. OBS provides three storage classes: "STANDARD", "WARM" (Infrequent Access) and "COLD" (Archive). Defaults to `STANDARD`.

func (BucketOutput) StorageInfos added in v0.0.8

func (o BucketOutput) StorageInfos() BucketStorageInfoArrayOutput

The OBS storage info of the bucket. The object structure is documented below.

func (BucketOutput) Tags

A mapping of tags to assign to the bucket. Each tag is represented by one key-value pair.

func (BucketOutput) ToBucketOutput

func (o BucketOutput) ToBucketOutput() BucketOutput

func (BucketOutput) ToBucketOutputWithContext

func (o BucketOutput) ToBucketOutputWithContext(ctx context.Context) BucketOutput

func (BucketOutput) Versioning

func (o BucketOutput) Versioning() pulumi.BoolPtrOutput

Whether enable versioning. Once you version-enable a bucket, it can never return to an unversioned state. You can, however, suspend versioning on that bucket.

func (BucketOutput) Website

A website object (documented below).

type BucketPolicy

type BucketPolicy struct {
	pulumi.CustomResourceState

	// Specifies the name of the bucket to which to apply the policy.
	Bucket pulumi.StringOutput `pulumi:"bucket"`
	// Specifies the text of the bucket policy in JSON format. For more information about obs
	// format bucket policy,
	// see the [Developer Guide](https://support.huaweicloud.com/intl/en-us/perms-cfg-obs/obs_40_0004.html).
	Policy pulumi.StringOutput `pulumi:"policy"`
	// Specifies the policy format, the supported values are *obs* and *s3*. Defaults
	// to *obs* .
	PolicyFormat pulumi.StringPtrOutput `pulumi:"policyFormat"`
	// The region in which to create the OBS bucket policy resource. If omitted, the
	// provider-level region will be used. Changing this creates a new OBS bucket policy resource.
	Region pulumi.StringOutput `pulumi:"region"`
}

Attaches a policy to an OBS bucket resource.

## Example Usage ### Policy with OBS format

```go package main

import (

"fmt"

"github.com/huaweicloud/pulumi-huaweicloud/sdk/go/huaweicloud/Obs"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		bucket, err := Obs.NewBucket(ctx, "bucket", &Obs.BucketArgs{
			Bucket: pulumi.String("my-test-bucket"),
		})
		if err != nil {
			return err
		}
		_, err = Obs.NewBucketPolicy(ctx, "policy", &Obs.BucketPolicyArgs{
			Bucket: bucket.ID(),
			Policy: pulumi.String(fmt.Sprintf(`{
  "Statement": [
    {
      "Sid": "AddPerm",
      "Effect": "Allow",
      "Principal": {"ID": "*"},
      "Action": ["GetObject"],
      "Resource": "my-test-bucket/*"
    }
  ]
}

`)),

		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` ### Policy with S3 format

```go package main

import (

"fmt"

"github.com/huaweicloud/pulumi-huaweicloud/sdk/go/huaweicloud/Obs"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		bucket, err := Obs.NewBucket(ctx, "bucket", &Obs.BucketArgs{
			Bucket: pulumi.String("my-test-bucket"),
		})
		if err != nil {
			return err
		}
		_, err = Obs.NewBucketPolicy(ctx, "s3Policy", &Obs.BucketPolicyArgs{
			Bucket:       bucket.ID(),
			PolicyFormat: pulumi.String("s3"),
			Policy: pulumi.String(fmt.Sprintf(`{
  "Version": "2008-10-17",
  "Id": "MYBUCKETPOLICY",
  "Statement": [
    {
      "Sid": "IPAllow",
      "Effect": "Allow",
      "Principal": "*",
      "Action": "s3:*",
      "Resource": "arn:aws:s3:::my-test-bucket/*",
      "Condition": {
        "IpAddress": {"aws:SourceIp": "8.8.8.8/32"}
      }
    }
  ]
}

`)),

		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

OBS format bucket policy can be imported using the `<bucket>`, e.g.

```sh

$ pulumi import huaweicloud:Obs/bucketPolicy:BucketPolicy policy <bucket-name>

```

S3 foramt bucket policy can be imported using the `<bucket>` and "s3" by a slash, e.g.

```sh

$ pulumi import huaweicloud:Obs/bucketPolicy:BucketPolicy s3_policy <bucket-name>/s3

```

func GetBucketPolicy

func GetBucketPolicy(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *BucketPolicyState, opts ...pulumi.ResourceOption) (*BucketPolicy, error)

GetBucketPolicy gets an existing BucketPolicy resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewBucketPolicy

func NewBucketPolicy(ctx *pulumi.Context,
	name string, args *BucketPolicyArgs, opts ...pulumi.ResourceOption) (*BucketPolicy, error)

NewBucketPolicy registers a new resource with the given unique name, arguments, and options.

func (*BucketPolicy) ElementType

func (*BucketPolicy) ElementType() reflect.Type

func (*BucketPolicy) ToBucketPolicyOutput

func (i *BucketPolicy) ToBucketPolicyOutput() BucketPolicyOutput

func (*BucketPolicy) ToBucketPolicyOutputWithContext

func (i *BucketPolicy) ToBucketPolicyOutputWithContext(ctx context.Context) BucketPolicyOutput

type BucketPolicyArgs

type BucketPolicyArgs struct {
	// Specifies the name of the bucket to which to apply the policy.
	Bucket pulumi.StringInput
	// Specifies the text of the bucket policy in JSON format. For more information about obs
	// format bucket policy,
	// see the [Developer Guide](https://support.huaweicloud.com/intl/en-us/perms-cfg-obs/obs_40_0004.html).
	Policy pulumi.StringInput
	// Specifies the policy format, the supported values are *obs* and *s3*. Defaults
	// to *obs* .
	PolicyFormat pulumi.StringPtrInput
	// The region in which to create the OBS bucket policy resource. If omitted, the
	// provider-level region will be used. Changing this creates a new OBS bucket policy resource.
	Region pulumi.StringPtrInput
}

The set of arguments for constructing a BucketPolicy resource.

func (BucketPolicyArgs) ElementType

func (BucketPolicyArgs) ElementType() reflect.Type

type BucketPolicyArray

type BucketPolicyArray []BucketPolicyInput

func (BucketPolicyArray) ElementType

func (BucketPolicyArray) ElementType() reflect.Type

func (BucketPolicyArray) ToBucketPolicyArrayOutput

func (i BucketPolicyArray) ToBucketPolicyArrayOutput() BucketPolicyArrayOutput

func (BucketPolicyArray) ToBucketPolicyArrayOutputWithContext

func (i BucketPolicyArray) ToBucketPolicyArrayOutputWithContext(ctx context.Context) BucketPolicyArrayOutput

type BucketPolicyArrayInput

type BucketPolicyArrayInput interface {
	pulumi.Input

	ToBucketPolicyArrayOutput() BucketPolicyArrayOutput
	ToBucketPolicyArrayOutputWithContext(context.Context) BucketPolicyArrayOutput
}

BucketPolicyArrayInput is an input type that accepts BucketPolicyArray and BucketPolicyArrayOutput values. You can construct a concrete instance of `BucketPolicyArrayInput` via:

BucketPolicyArray{ BucketPolicyArgs{...} }

type BucketPolicyArrayOutput

type BucketPolicyArrayOutput struct{ *pulumi.OutputState }

func (BucketPolicyArrayOutput) ElementType

func (BucketPolicyArrayOutput) ElementType() reflect.Type

func (BucketPolicyArrayOutput) Index

func (BucketPolicyArrayOutput) ToBucketPolicyArrayOutput

func (o BucketPolicyArrayOutput) ToBucketPolicyArrayOutput() BucketPolicyArrayOutput

func (BucketPolicyArrayOutput) ToBucketPolicyArrayOutputWithContext

func (o BucketPolicyArrayOutput) ToBucketPolicyArrayOutputWithContext(ctx context.Context) BucketPolicyArrayOutput

type BucketPolicyInput

type BucketPolicyInput interface {
	pulumi.Input

	ToBucketPolicyOutput() BucketPolicyOutput
	ToBucketPolicyOutputWithContext(ctx context.Context) BucketPolicyOutput
}

type BucketPolicyMap

type BucketPolicyMap map[string]BucketPolicyInput

func (BucketPolicyMap) ElementType

func (BucketPolicyMap) ElementType() reflect.Type

func (BucketPolicyMap) ToBucketPolicyMapOutput

func (i BucketPolicyMap) ToBucketPolicyMapOutput() BucketPolicyMapOutput

func (BucketPolicyMap) ToBucketPolicyMapOutputWithContext

func (i BucketPolicyMap) ToBucketPolicyMapOutputWithContext(ctx context.Context) BucketPolicyMapOutput

type BucketPolicyMapInput

type BucketPolicyMapInput interface {
	pulumi.Input

	ToBucketPolicyMapOutput() BucketPolicyMapOutput
	ToBucketPolicyMapOutputWithContext(context.Context) BucketPolicyMapOutput
}

BucketPolicyMapInput is an input type that accepts BucketPolicyMap and BucketPolicyMapOutput values. You can construct a concrete instance of `BucketPolicyMapInput` via:

BucketPolicyMap{ "key": BucketPolicyArgs{...} }

type BucketPolicyMapOutput

type BucketPolicyMapOutput struct{ *pulumi.OutputState }

func (BucketPolicyMapOutput) ElementType

func (BucketPolicyMapOutput) ElementType() reflect.Type

func (BucketPolicyMapOutput) MapIndex

func (BucketPolicyMapOutput) ToBucketPolicyMapOutput

func (o BucketPolicyMapOutput) ToBucketPolicyMapOutput() BucketPolicyMapOutput

func (BucketPolicyMapOutput) ToBucketPolicyMapOutputWithContext

func (o BucketPolicyMapOutput) ToBucketPolicyMapOutputWithContext(ctx context.Context) BucketPolicyMapOutput

type BucketPolicyOutput

type BucketPolicyOutput struct{ *pulumi.OutputState }

func (BucketPolicyOutput) Bucket

Specifies the name of the bucket to which to apply the policy.

func (BucketPolicyOutput) ElementType

func (BucketPolicyOutput) ElementType() reflect.Type

func (BucketPolicyOutput) Policy

Specifies the text of the bucket policy in JSON format. For more information about obs format bucket policy, see the [Developer Guide](https://support.huaweicloud.com/intl/en-us/perms-cfg-obs/obs_40_0004.html).

func (BucketPolicyOutput) PolicyFormat

func (o BucketPolicyOutput) PolicyFormat() pulumi.StringPtrOutput

Specifies the policy format, the supported values are *obs* and *s3*. Defaults to *obs* .

func (BucketPolicyOutput) Region

The region in which to create the OBS bucket policy resource. If omitted, the provider-level region will be used. Changing this creates a new OBS bucket policy resource.

func (BucketPolicyOutput) ToBucketPolicyOutput

func (o BucketPolicyOutput) ToBucketPolicyOutput() BucketPolicyOutput

func (BucketPolicyOutput) ToBucketPolicyOutputWithContext

func (o BucketPolicyOutput) ToBucketPolicyOutputWithContext(ctx context.Context) BucketPolicyOutput

type BucketPolicyState

type BucketPolicyState struct {
	// Specifies the name of the bucket to which to apply the policy.
	Bucket pulumi.StringPtrInput
	// Specifies the text of the bucket policy in JSON format. For more information about obs
	// format bucket policy,
	// see the [Developer Guide](https://support.huaweicloud.com/intl/en-us/perms-cfg-obs/obs_40_0004.html).
	Policy pulumi.StringPtrInput
	// Specifies the policy format, the supported values are *obs* and *s3*. Defaults
	// to *obs* .
	PolicyFormat pulumi.StringPtrInput
	// The region in which to create the OBS bucket policy resource. If omitted, the
	// provider-level region will be used. Changing this creates a new OBS bucket policy resource.
	Region pulumi.StringPtrInput
}

func (BucketPolicyState) ElementType

func (BucketPolicyState) ElementType() reflect.Type

type BucketState

type BucketState struct {
	// Specifies the ACL policy for a bucket. The predefined common policies are as follows:
	// "private", "public-read", "public-read-write" and "log-delivery-write". Defaults to `private`.
	Acl pulumi.StringPtrInput
	// Specifies the name of the bucket. Changing this parameter will create a new
	// resource. A bucket must be named according to the globally applied DNS naming regulations as follows:
	// + The name must be globally unique in OBS.
	// + The name must contain 3 to 63 characters. Only lowercase letters, digits, hyphens (-), and periods (.) are
	//   allowed.
	// + The name cannot start or end with a period (.) or hyphen (-), and cannot contain two consecutive periods (.) or
	//   contain a period (.) and a hyphen (-) adjacent to each other.
	// + The name cannot be an IP address.
	// + If the name contains any periods (.), a security certificate verification message may appear when you access the
	//   bucket or its objects by entering a domain name.
	Bucket pulumi.StringPtrInput
	// The bucket domain name. Will be of format `bucketname.obs.region.myhuaweicloud.com`.
	BucketDomainName pulumi.StringPtrInput
	// The OBS version of the bucket.
	BucketVersion pulumi.StringPtrInput
	// A rule of Cross-Origin Resource Sharing (documented below).
	CorsRules BucketCorsRuleArrayInput
	// Whether enable default server-side encryption of the bucket in SSE-KMS mode.
	Encryption pulumi.BoolPtrInput
	// Specifies the enterprise project id of the OBS bucket.
	// Defaults to `0`.
	EnterpriseProjectId pulumi.StringPtrInput
	// A boolean that indicates all objects should be deleted from the bucket, so that the
	// bucket can be destroyed without error. Default to `false`.
	ForceDestroy pulumi.BoolPtrInput
	// Specifies the ID of a KMS key. If omitted, the default master key will be used.
	KmsKeyId pulumi.StringPtrInput
	// Specifies the project ID to which the KMS key belongs. If omitted, the ID
	// of the provider-level project will be used.
	KmsKeyProjectId pulumi.StringPtrInput
	// A configuration of object lifecycle management (documented below).
	LifecycleRules BucketLifecycleRuleArrayInput
	// A settings of bucket logging (documented below).
	Loggings BucketLoggingArrayInput
	// Whether enable the multi-AZ mode for the bucket. When the multi-AZ mode is
	// enabled, data in the bucket is duplicated and stored in multiple AZs.
	MultiAz pulumi.BoolPtrInput
	// Whether enable a bucket as a parallel file system. Changing this will
	// create a new bucket.
	ParallelFs pulumi.BoolPtrInput
	// Specifies the text of the bucket policy in JSON format. For more information about obs
	// format bucket policy,
	// see the [Developer Guide](https://support.huaweicloud.com/intl/en-us/perms-cfg-obs/obs_40_0004.html).
	Policy pulumi.StringPtrInput
	// Specifies the policy format, the supported values are *obs* and *s3*. Defaults
	// to *obs*.
	PolicyFormat pulumi.StringPtrInput
	// Specifies bucket storage quota. Must be a positive integer in the unit of byte. The maximum
	// storage quota is 2<sup>63</sup> – 1 bytes. The default bucket storage quota is 0, indicating that the bucket storage
	// quota is not limited.
	Quota pulumi.IntPtrInput
	// Specifies the region where this bucket will be created. If not specified, used
	// the region by the provider. Changing this will create a new bucket.
	Region pulumi.StringPtrInput
	// Specifies the storage class of the bucket. OBS provides three storage classes:
	// "STANDARD", "WARM" (Infrequent Access) and "COLD" (Archive). Defaults to `STANDARD`.
	StorageClass pulumi.StringPtrInput
	// The OBS storage info of the bucket.
	// The object structure is documented below.
	StorageInfos BucketStorageInfoArrayInput
	// A mapping of tags to assign to the bucket. Each tag is represented by one key-value pair.
	Tags pulumi.StringMapInput
	// Whether enable versioning. Once you version-enable a bucket, it can never return to an
	// unversioned state. You can, however, suspend versioning on that bucket.
	Versioning pulumi.BoolPtrInput
	// A website object (documented below).
	Website BucketWebsitePtrInput
}

func (BucketState) ElementType

func (BucketState) ElementType() reflect.Type

type BucketStorageInfo added in v0.0.8

type BucketStorageInfo struct {
	// The number of objects stored in the bucket.
	ObjectNumber *int `pulumi:"objectNumber"`
	// The stored size of the bucket.
	Size *int `pulumi:"size"`
}

type BucketStorageInfoArgs added in v0.0.8

type BucketStorageInfoArgs struct {
	// The number of objects stored in the bucket.
	ObjectNumber pulumi.IntPtrInput `pulumi:"objectNumber"`
	// The stored size of the bucket.
	Size pulumi.IntPtrInput `pulumi:"size"`
}

func (BucketStorageInfoArgs) ElementType added in v0.0.8

func (BucketStorageInfoArgs) ElementType() reflect.Type

func (BucketStorageInfoArgs) ToBucketStorageInfoOutput added in v0.0.8

func (i BucketStorageInfoArgs) ToBucketStorageInfoOutput() BucketStorageInfoOutput

func (BucketStorageInfoArgs) ToBucketStorageInfoOutputWithContext added in v0.0.8

func (i BucketStorageInfoArgs) ToBucketStorageInfoOutputWithContext(ctx context.Context) BucketStorageInfoOutput

type BucketStorageInfoArray added in v0.0.8

type BucketStorageInfoArray []BucketStorageInfoInput

func (BucketStorageInfoArray) ElementType added in v0.0.8

func (BucketStorageInfoArray) ElementType() reflect.Type

func (BucketStorageInfoArray) ToBucketStorageInfoArrayOutput added in v0.0.8

func (i BucketStorageInfoArray) ToBucketStorageInfoArrayOutput() BucketStorageInfoArrayOutput

func (BucketStorageInfoArray) ToBucketStorageInfoArrayOutputWithContext added in v0.0.8

func (i BucketStorageInfoArray) ToBucketStorageInfoArrayOutputWithContext(ctx context.Context) BucketStorageInfoArrayOutput

type BucketStorageInfoArrayInput added in v0.0.8

type BucketStorageInfoArrayInput interface {
	pulumi.Input

	ToBucketStorageInfoArrayOutput() BucketStorageInfoArrayOutput
	ToBucketStorageInfoArrayOutputWithContext(context.Context) BucketStorageInfoArrayOutput
}

BucketStorageInfoArrayInput is an input type that accepts BucketStorageInfoArray and BucketStorageInfoArrayOutput values. You can construct a concrete instance of `BucketStorageInfoArrayInput` via:

BucketStorageInfoArray{ BucketStorageInfoArgs{...} }

type BucketStorageInfoArrayOutput added in v0.0.8

type BucketStorageInfoArrayOutput struct{ *pulumi.OutputState }

func (BucketStorageInfoArrayOutput) ElementType added in v0.0.8

func (BucketStorageInfoArrayOutput) Index added in v0.0.8

func (BucketStorageInfoArrayOutput) ToBucketStorageInfoArrayOutput added in v0.0.8

func (o BucketStorageInfoArrayOutput) ToBucketStorageInfoArrayOutput() BucketStorageInfoArrayOutput

func (BucketStorageInfoArrayOutput) ToBucketStorageInfoArrayOutputWithContext added in v0.0.8

func (o BucketStorageInfoArrayOutput) ToBucketStorageInfoArrayOutputWithContext(ctx context.Context) BucketStorageInfoArrayOutput

type BucketStorageInfoInput added in v0.0.8

type BucketStorageInfoInput interface {
	pulumi.Input

	ToBucketStorageInfoOutput() BucketStorageInfoOutput
	ToBucketStorageInfoOutputWithContext(context.Context) BucketStorageInfoOutput
}

BucketStorageInfoInput is an input type that accepts BucketStorageInfoArgs and BucketStorageInfoOutput values. You can construct a concrete instance of `BucketStorageInfoInput` via:

BucketStorageInfoArgs{...}

type BucketStorageInfoOutput added in v0.0.8

type BucketStorageInfoOutput struct{ *pulumi.OutputState }

func (BucketStorageInfoOutput) ElementType added in v0.0.8

func (BucketStorageInfoOutput) ElementType() reflect.Type

func (BucketStorageInfoOutput) ObjectNumber added in v0.0.8

func (o BucketStorageInfoOutput) ObjectNumber() pulumi.IntPtrOutput

The number of objects stored in the bucket.

func (BucketStorageInfoOutput) Size added in v0.0.8

The stored size of the bucket.

func (BucketStorageInfoOutput) ToBucketStorageInfoOutput added in v0.0.8

func (o BucketStorageInfoOutput) ToBucketStorageInfoOutput() BucketStorageInfoOutput

func (BucketStorageInfoOutput) ToBucketStorageInfoOutputWithContext added in v0.0.8

func (o BucketStorageInfoOutput) ToBucketStorageInfoOutputWithContext(ctx context.Context) BucketStorageInfoOutput

type BucketWebsite

type BucketWebsite struct {
	// Specifies the error page returned when an error occurs during static website
	// access. Only HTML, JPG, PNG, BMP, and WEBP files under the root directory are supported.
	ErrorDocument *string `pulumi:"errorDocument"`
	// Unless using `redirectAllRequestsTo`. Specifies the default homepage of the
	// static website, only HTML web pages are supported. OBS only allows files such as `index.html` in the root directory of
	// a bucket to function as the default homepage. That is to say, do not set the default homepage with a multi-level
	// directory structure (for example, /page/index.html).
	IndexDocument *string `pulumi:"indexDocument"`
	// A hostname to redirect all website requests for this bucket to.
	// Hostname can optionally be prefixed with a protocol (`http://` or `https://`) to use when redirecting requests. The
	// default is the protocol that is used in the original request.
	RedirectAllRequestsTo *string `pulumi:"redirectAllRequestsTo"`
	// A JSON or XML format containing routing rules describing redirect behavior and
	// when redirects are applied. Each rule contains a `Condition` and a `Redirect` as shown in the following table:
	RoutingRules *string `pulumi:"routingRules"`
}

type BucketWebsiteArgs

type BucketWebsiteArgs struct {
	// Specifies the error page returned when an error occurs during static website
	// access. Only HTML, JPG, PNG, BMP, and WEBP files under the root directory are supported.
	ErrorDocument pulumi.StringPtrInput `pulumi:"errorDocument"`
	// Unless using `redirectAllRequestsTo`. Specifies the default homepage of the
	// static website, only HTML web pages are supported. OBS only allows files such as `index.html` in the root directory of
	// a bucket to function as the default homepage. That is to say, do not set the default homepage with a multi-level
	// directory structure (for example, /page/index.html).
	IndexDocument pulumi.StringPtrInput `pulumi:"indexDocument"`
	// A hostname to redirect all website requests for this bucket to.
	// Hostname can optionally be prefixed with a protocol (`http://` or `https://`) to use when redirecting requests. The
	// default is the protocol that is used in the original request.
	RedirectAllRequestsTo pulumi.StringPtrInput `pulumi:"redirectAllRequestsTo"`
	// A JSON or XML format containing routing rules describing redirect behavior and
	// when redirects are applied. Each rule contains a `Condition` and a `Redirect` as shown in the following table:
	RoutingRules pulumi.StringPtrInput `pulumi:"routingRules"`
}

func (BucketWebsiteArgs) ElementType

func (BucketWebsiteArgs) ElementType() reflect.Type

func (BucketWebsiteArgs) ToBucketWebsiteOutput

func (i BucketWebsiteArgs) ToBucketWebsiteOutput() BucketWebsiteOutput

func (BucketWebsiteArgs) ToBucketWebsiteOutputWithContext

func (i BucketWebsiteArgs) ToBucketWebsiteOutputWithContext(ctx context.Context) BucketWebsiteOutput

func (BucketWebsiteArgs) ToBucketWebsitePtrOutput

func (i BucketWebsiteArgs) ToBucketWebsitePtrOutput() BucketWebsitePtrOutput

func (BucketWebsiteArgs) ToBucketWebsitePtrOutputWithContext

func (i BucketWebsiteArgs) ToBucketWebsitePtrOutputWithContext(ctx context.Context) BucketWebsitePtrOutput

type BucketWebsiteInput

type BucketWebsiteInput interface {
	pulumi.Input

	ToBucketWebsiteOutput() BucketWebsiteOutput
	ToBucketWebsiteOutputWithContext(context.Context) BucketWebsiteOutput
}

BucketWebsiteInput is an input type that accepts BucketWebsiteArgs and BucketWebsiteOutput values. You can construct a concrete instance of `BucketWebsiteInput` via:

BucketWebsiteArgs{...}

type BucketWebsiteOutput

type BucketWebsiteOutput struct{ *pulumi.OutputState }

func (BucketWebsiteOutput) ElementType

func (BucketWebsiteOutput) ElementType() reflect.Type

func (BucketWebsiteOutput) ErrorDocument

func (o BucketWebsiteOutput) ErrorDocument() pulumi.StringPtrOutput

Specifies the error page returned when an error occurs during static website access. Only HTML, JPG, PNG, BMP, and WEBP files under the root directory are supported.

func (BucketWebsiteOutput) IndexDocument

func (o BucketWebsiteOutput) IndexDocument() pulumi.StringPtrOutput

Unless using `redirectAllRequestsTo`. Specifies the default homepage of the static website, only HTML web pages are supported. OBS only allows files such as `index.html` in the root directory of a bucket to function as the default homepage. That is to say, do not set the default homepage with a multi-level directory structure (for example, /page/index.html).

func (BucketWebsiteOutput) RedirectAllRequestsTo

func (o BucketWebsiteOutput) RedirectAllRequestsTo() pulumi.StringPtrOutput

A hostname to redirect all website requests for this bucket to. Hostname can optionally be prefixed with a protocol (`http://` or `https://`) to use when redirecting requests. The default is the protocol that is used in the original request.

func (BucketWebsiteOutput) RoutingRules

func (o BucketWebsiteOutput) RoutingRules() pulumi.StringPtrOutput

A JSON or XML format containing routing rules describing redirect behavior and when redirects are applied. Each rule contains a `Condition` and a `Redirect` as shown in the following table:

func (BucketWebsiteOutput) ToBucketWebsiteOutput

func (o BucketWebsiteOutput) ToBucketWebsiteOutput() BucketWebsiteOutput

func (BucketWebsiteOutput) ToBucketWebsiteOutputWithContext

func (o BucketWebsiteOutput) ToBucketWebsiteOutputWithContext(ctx context.Context) BucketWebsiteOutput

func (BucketWebsiteOutput) ToBucketWebsitePtrOutput

func (o BucketWebsiteOutput) ToBucketWebsitePtrOutput() BucketWebsitePtrOutput

func (BucketWebsiteOutput) ToBucketWebsitePtrOutputWithContext

func (o BucketWebsiteOutput) ToBucketWebsitePtrOutputWithContext(ctx context.Context) BucketWebsitePtrOutput

type BucketWebsitePtrInput

type BucketWebsitePtrInput interface {
	pulumi.Input

	ToBucketWebsitePtrOutput() BucketWebsitePtrOutput
	ToBucketWebsitePtrOutputWithContext(context.Context) BucketWebsitePtrOutput
}

BucketWebsitePtrInput is an input type that accepts BucketWebsiteArgs, BucketWebsitePtr and BucketWebsitePtrOutput values. You can construct a concrete instance of `BucketWebsitePtrInput` via:

        BucketWebsiteArgs{...}

or:

        nil

type BucketWebsitePtrOutput

type BucketWebsitePtrOutput struct{ *pulumi.OutputState }

func (BucketWebsitePtrOutput) Elem

func (BucketWebsitePtrOutput) ElementType

func (BucketWebsitePtrOutput) ElementType() reflect.Type

func (BucketWebsitePtrOutput) ErrorDocument

func (o BucketWebsitePtrOutput) ErrorDocument() pulumi.StringPtrOutput

Specifies the error page returned when an error occurs during static website access. Only HTML, JPG, PNG, BMP, and WEBP files under the root directory are supported.

func (BucketWebsitePtrOutput) IndexDocument

func (o BucketWebsitePtrOutput) IndexDocument() pulumi.StringPtrOutput

Unless using `redirectAllRequestsTo`. Specifies the default homepage of the static website, only HTML web pages are supported. OBS only allows files such as `index.html` in the root directory of a bucket to function as the default homepage. That is to say, do not set the default homepage with a multi-level directory structure (for example, /page/index.html).

func (BucketWebsitePtrOutput) RedirectAllRequestsTo

func (o BucketWebsitePtrOutput) RedirectAllRequestsTo() pulumi.StringPtrOutput

A hostname to redirect all website requests for this bucket to. Hostname can optionally be prefixed with a protocol (`http://` or `https://`) to use when redirecting requests. The default is the protocol that is used in the original request.

func (BucketWebsitePtrOutput) RoutingRules

A JSON or XML format containing routing rules describing redirect behavior and when redirects are applied. Each rule contains a `Condition` and a `Redirect` as shown in the following table:

func (BucketWebsitePtrOutput) ToBucketWebsitePtrOutput

func (o BucketWebsitePtrOutput) ToBucketWebsitePtrOutput() BucketWebsitePtrOutput

func (BucketWebsitePtrOutput) ToBucketWebsitePtrOutputWithContext

func (o BucketWebsitePtrOutput) ToBucketWebsitePtrOutputWithContext(ctx context.Context) BucketWebsitePtrOutput

type GetBucketsArgs

type GetBucketsArgs struct {
	// The name of the OBS bucket.
	Bucket *string `pulumi:"bucket"`
	// The enterprise project id of the OBS bucket.
	EnterpriseProjectId *string `pulumi:"enterpriseProjectId"`
	// The region in which to obtain the OBS bucket.
	// If omitted, the provider-level region will be used.
	Region *string `pulumi:"region"`
}

A collection of arguments for invoking getBuckets.

type GetBucketsBucket

type GetBucketsBucket struct {
	// The name of the OBS bucket.
	Bucket string `pulumi:"bucket"`
	// The date when the OBS bucket was created.
	CreatedAt string `pulumi:"createdAt"`
	// The enterprise project id of the OBS bucket.
	EnterpriseProjectId string `pulumi:"enterpriseProjectId"`
	// The region in which to obtain the OBS bucket.
	// If omitted, the provider-level region will be used.
	Region string `pulumi:"region"`
	// The storage class of the OBS bucket.
	StorageClass string `pulumi:"storageClass"`
}

type GetBucketsBucketArgs

type GetBucketsBucketArgs struct {
	// The name of the OBS bucket.
	Bucket pulumi.StringInput `pulumi:"bucket"`
	// The date when the OBS bucket was created.
	CreatedAt pulumi.StringInput `pulumi:"createdAt"`
	// The enterprise project id of the OBS bucket.
	EnterpriseProjectId pulumi.StringInput `pulumi:"enterpriseProjectId"`
	// The region in which to obtain the OBS bucket.
	// If omitted, the provider-level region will be used.
	Region pulumi.StringInput `pulumi:"region"`
	// The storage class of the OBS bucket.
	StorageClass pulumi.StringInput `pulumi:"storageClass"`
}

func (GetBucketsBucketArgs) ElementType

func (GetBucketsBucketArgs) ElementType() reflect.Type

func (GetBucketsBucketArgs) ToGetBucketsBucketOutput

func (i GetBucketsBucketArgs) ToGetBucketsBucketOutput() GetBucketsBucketOutput

func (GetBucketsBucketArgs) ToGetBucketsBucketOutputWithContext

func (i GetBucketsBucketArgs) ToGetBucketsBucketOutputWithContext(ctx context.Context) GetBucketsBucketOutput

type GetBucketsBucketArray

type GetBucketsBucketArray []GetBucketsBucketInput

func (GetBucketsBucketArray) ElementType

func (GetBucketsBucketArray) ElementType() reflect.Type

func (GetBucketsBucketArray) ToGetBucketsBucketArrayOutput

func (i GetBucketsBucketArray) ToGetBucketsBucketArrayOutput() GetBucketsBucketArrayOutput

func (GetBucketsBucketArray) ToGetBucketsBucketArrayOutputWithContext

func (i GetBucketsBucketArray) ToGetBucketsBucketArrayOutputWithContext(ctx context.Context) GetBucketsBucketArrayOutput

type GetBucketsBucketArrayInput

type GetBucketsBucketArrayInput interface {
	pulumi.Input

	ToGetBucketsBucketArrayOutput() GetBucketsBucketArrayOutput
	ToGetBucketsBucketArrayOutputWithContext(context.Context) GetBucketsBucketArrayOutput
}

GetBucketsBucketArrayInput is an input type that accepts GetBucketsBucketArray and GetBucketsBucketArrayOutput values. You can construct a concrete instance of `GetBucketsBucketArrayInput` via:

GetBucketsBucketArray{ GetBucketsBucketArgs{...} }

type GetBucketsBucketArrayOutput

type GetBucketsBucketArrayOutput struct{ *pulumi.OutputState }

func (GetBucketsBucketArrayOutput) ElementType

func (GetBucketsBucketArrayOutput) Index

func (GetBucketsBucketArrayOutput) ToGetBucketsBucketArrayOutput

func (o GetBucketsBucketArrayOutput) ToGetBucketsBucketArrayOutput() GetBucketsBucketArrayOutput

func (GetBucketsBucketArrayOutput) ToGetBucketsBucketArrayOutputWithContext

func (o GetBucketsBucketArrayOutput) ToGetBucketsBucketArrayOutputWithContext(ctx context.Context) GetBucketsBucketArrayOutput

type GetBucketsBucketInput

type GetBucketsBucketInput interface {
	pulumi.Input

	ToGetBucketsBucketOutput() GetBucketsBucketOutput
	ToGetBucketsBucketOutputWithContext(context.Context) GetBucketsBucketOutput
}

GetBucketsBucketInput is an input type that accepts GetBucketsBucketArgs and GetBucketsBucketOutput values. You can construct a concrete instance of `GetBucketsBucketInput` via:

GetBucketsBucketArgs{...}

type GetBucketsBucketOutput

type GetBucketsBucketOutput struct{ *pulumi.OutputState }

func (GetBucketsBucketOutput) Bucket

The name of the OBS bucket.

func (GetBucketsBucketOutput) CreatedAt

The date when the OBS bucket was created.

func (GetBucketsBucketOutput) ElementType

func (GetBucketsBucketOutput) ElementType() reflect.Type

func (GetBucketsBucketOutput) EnterpriseProjectId

func (o GetBucketsBucketOutput) EnterpriseProjectId() pulumi.StringOutput

The enterprise project id of the OBS bucket.

func (GetBucketsBucketOutput) Region

The region in which to obtain the OBS bucket. If omitted, the provider-level region will be used.

func (GetBucketsBucketOutput) StorageClass

func (o GetBucketsBucketOutput) StorageClass() pulumi.StringOutput

The storage class of the OBS bucket.

func (GetBucketsBucketOutput) ToGetBucketsBucketOutput

func (o GetBucketsBucketOutput) ToGetBucketsBucketOutput() GetBucketsBucketOutput

func (GetBucketsBucketOutput) ToGetBucketsBucketOutputWithContext

func (o GetBucketsBucketOutput) ToGetBucketsBucketOutputWithContext(ctx context.Context) GetBucketsBucketOutput

type GetBucketsOutputArgs

type GetBucketsOutputArgs struct {
	// The name of the OBS bucket.
	Bucket pulumi.StringPtrInput `pulumi:"bucket"`
	// The enterprise project id of the OBS bucket.
	EnterpriseProjectId pulumi.StringPtrInput `pulumi:"enterpriseProjectId"`
	// The region in which to obtain the OBS bucket.
	// If omitted, the provider-level region will be used.
	Region pulumi.StringPtrInput `pulumi:"region"`
}

A collection of arguments for invoking getBuckets.

func (GetBucketsOutputArgs) ElementType

func (GetBucketsOutputArgs) ElementType() reflect.Type

type GetBucketsResult

type GetBucketsResult struct {
	// The name of the OBS bucket.
	Bucket *string `pulumi:"bucket"`
	// A list of OBS buckets.
	Buckets []GetBucketsBucket `pulumi:"buckets"`
	// The enterprise project id of the OBS bucket.
	EnterpriseProjectId *string `pulumi:"enterpriseProjectId"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// The region where the OBS bucket belongs.
	Region *string `pulumi:"region"`
}

A collection of values returned by getBuckets.

func GetBuckets

func GetBuckets(ctx *pulumi.Context, args *GetBucketsArgs, opts ...pulumi.InvokeOption) (*GetBucketsResult, error)

Use this data source to get all OBS buckets.

```go package main

import (

"github.com/huaweicloud/pulumi-huaweicloud/sdk/go/huaweicloud/Obs"
"github.com/pulumi/pulumi-huaweicloud/sdk/go/huaweicloud/Obs"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Obs.GetBuckets(ctx, &obs.GetBucketsArgs{
			Bucket: pulumi.StringRef("your-bucket-name"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type GetBucketsResultOutput

type GetBucketsResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getBuckets.

func (GetBucketsResultOutput) Bucket

The name of the OBS bucket.

func (GetBucketsResultOutput) Buckets

A list of OBS buckets.

func (GetBucketsResultOutput) ElementType

func (GetBucketsResultOutput) ElementType() reflect.Type

func (GetBucketsResultOutput) EnterpriseProjectId

func (o GetBucketsResultOutput) EnterpriseProjectId() pulumi.StringPtrOutput

The enterprise project id of the OBS bucket.

func (GetBucketsResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetBucketsResultOutput) Region

The region where the OBS bucket belongs.

func (GetBucketsResultOutput) ToGetBucketsResultOutput

func (o GetBucketsResultOutput) ToGetBucketsResultOutput() GetBucketsResultOutput

func (GetBucketsResultOutput) ToGetBucketsResultOutputWithContext

func (o GetBucketsResultOutput) ToGetBucketsResultOutputWithContext(ctx context.Context) GetBucketsResultOutput

type LookupBucketObjectArgs

type LookupBucketObjectArgs struct {
	// The name of the bucket to put the file in.
	Bucket string `pulumi:"bucket"`
	// The name of the object once it is in the bucket.
	Key string `pulumi:"key"`
	// The region in which to obtain the OBS object. If omitted, the provider-level region will
	// be used.
	Region *string `pulumi:"region"`
}

A collection of arguments for invoking getBucketObject.

type LookupBucketObjectOutputArgs

type LookupBucketObjectOutputArgs struct {
	// The name of the bucket to put the file in.
	Bucket pulumi.StringInput `pulumi:"bucket"`
	// The name of the object once it is in the bucket.
	Key pulumi.StringInput `pulumi:"key"`
	// The region in which to obtain the OBS object. If omitted, the provider-level region will
	// be used.
	Region pulumi.StringPtrInput `pulumi:"region"`
}

A collection of arguments for invoking getBucketObject.

func (LookupBucketObjectOutputArgs) ElementType

type LookupBucketObjectResult

type LookupBucketObjectResult struct {
	// The content of an object which is available only for objects which have a human-readable Content-Type
	// (text/* and application/json) and smaller than **64KB**. This is to prevent printing unsafe characters and
	// potentially downloading large amount of data.
	Body   string `pulumi:"body"`
	Bucket string `pulumi:"bucket"`
	// a standard MIME type describing the format of the object data, e.g. application/octet-stream. All
	// Valid MIME Types are valid for this input.
	ContentType string `pulumi:"contentType"`
	// the ETag generated for the object (an MD5 sum of the object content). When the object is encrypted on the
	// server side, the ETag value is not the MD5 value of the object, but the unique identifier calculated through the
	// server-side encryption.
	Etag string `pulumi:"etag"`
	// The provider-assigned unique ID for this managed resource.
	Id     string `pulumi:"id"`
	Key    string `pulumi:"key"`
	Region string `pulumi:"region"`
	// the size of the object in bytes.
	Size int `pulumi:"size"`
	// specifies the storage class of the object.
	StorageClass string `pulumi:"storageClass"`
	// a unique version ID value for the object, if bucket versioning is enabled.
	VersionId string `pulumi:"versionId"`
}

A collection of values returned by getBucketObject.

func LookupBucketObject

func LookupBucketObject(ctx *pulumi.Context, args *LookupBucketObjectArgs, opts ...pulumi.InvokeOption) (*LookupBucketObjectResult, error)

Use this data source to get info of special HuaweiCloud obs object.

```go package main

import (

"github.com/huaweicloud/pulumi-huaweicloud/sdk/go/huaweicloud/Obs"
"github.com/pulumi/pulumi-huaweicloud/sdk/go/huaweicloud/Obs"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Obs.GetBucketObject(ctx, &obs.GetBucketObjectArgs{
			Bucket: "my-test-bucket",
			Key:    "new-key",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type LookupBucketObjectResultOutput

type LookupBucketObjectResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getBucketObject.

func (LookupBucketObjectResultOutput) Body

The content of an object which is available only for objects which have a human-readable Content-Type (text/* and application/json) and smaller than **64KB**. This is to prevent printing unsafe characters and potentially downloading large amount of data.

func (LookupBucketObjectResultOutput) Bucket

func (LookupBucketObjectResultOutput) ContentType

a standard MIME type describing the format of the object data, e.g. application/octet-stream. All Valid MIME Types are valid for this input.

func (LookupBucketObjectResultOutput) ElementType

func (LookupBucketObjectResultOutput) Etag

the ETag generated for the object (an MD5 sum of the object content). When the object is encrypted on the server side, the ETag value is not the MD5 value of the object, but the unique identifier calculated through the server-side encryption.

func (LookupBucketObjectResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (LookupBucketObjectResultOutput) Key

func (LookupBucketObjectResultOutput) Region

func (LookupBucketObjectResultOutput) Size

the size of the object in bytes.

func (LookupBucketObjectResultOutput) StorageClass

specifies the storage class of the object.

func (LookupBucketObjectResultOutput) ToLookupBucketObjectResultOutput

func (o LookupBucketObjectResultOutput) ToLookupBucketObjectResultOutput() LookupBucketObjectResultOutput

func (LookupBucketObjectResultOutput) ToLookupBucketObjectResultOutputWithContext

func (o LookupBucketObjectResultOutput) ToLookupBucketObjectResultOutputWithContext(ctx context.Context) LookupBucketObjectResultOutput

func (LookupBucketObjectResultOutput) VersionId

a unique version ID value for the object, if bucket versioning is enabled.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL