s3control

package
v4.25.0 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bucket

type Bucket struct {
	pulumi.CustomResourceState

	// Amazon Resource Name (ARN) of the bucket.
	Arn pulumi.StringOutput `pulumi:"arn"`
	// Name of the bucket.
	Bucket pulumi.StringOutput `pulumi:"bucket"`
	// UTC creation date in [RFC3339 format](https://tools.ietf.org/html/rfc3339#section-5.8).
	CreationDate pulumi.StringOutput `pulumi:"creationDate"`
	// Identifier of the Outpost to contain this bucket.
	OutpostId pulumi.StringOutput `pulumi:"outpostId"`
	// Boolean whether Public Access Block is enabled.
	PublicAccessBlockEnabled pulumi.BoolOutput `pulumi:"publicAccessBlockEnabled"`
	// Key-value map of resource tags. .If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
	Tags pulumi.StringMapOutput `pulumi:"tags"`
	// A map of tags assigned to the resource, including those inherited from the provider .
	TagsAll pulumi.StringMapOutput `pulumi:"tagsAll"`
}

Provides a resource to manage an S3 Control Bucket.

> This functionality is for managing [S3 on Outposts](https://docs.aws.amazon.com/AmazonS3/latest/dev/S3onOutposts.html). To manage S3 Buckets in an AWS Partition, see the `s3.Bucket` resource.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-aws/sdk/v4/go/aws/s3control"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := s3control.NewBucket(ctx, "example", &s3control.BucketArgs{
			Bucket:    pulumi.String("example"),
			OutpostId: pulumi.Any(data.Aws_outposts_outpost.Example.Id),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

S3 Control Buckets can be imported using Amazon Resource Name (ARN), e.g.

```sh

$ pulumi import aws:s3control/bucket:Bucket example arn:aws:s3-outposts:us-east-1:123456789012:outpost/op-12345678/bucket/example

```

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

func (*Bucket) ToBucketPtrOutput

func (i *Bucket) ToBucketPtrOutput() BucketPtrOutput

func (*Bucket) ToBucketPtrOutputWithContext

func (i *Bucket) ToBucketPtrOutputWithContext(ctx context.Context) BucketPtrOutput

type BucketArgs

type BucketArgs struct {
	// Name of the bucket.
	Bucket pulumi.StringInput
	// Identifier of the Outpost to contain this bucket.
	OutpostId pulumi.StringInput
	// Key-value map of resource tags. .If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
	Tags pulumi.StringMapInput
}

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 BucketInput

type BucketInput interface {
	pulumi.Input

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

type BucketLifecycleConfiguration

type BucketLifecycleConfiguration struct {
	pulumi.CustomResourceState

	// Amazon Resource Name (ARN) of the bucket.
	Bucket pulumi.StringOutput `pulumi:"bucket"`
	// Configuration block(s) containing lifecycle rules for the bucket.
	Rules BucketLifecycleConfigurationRuleArrayOutput `pulumi:"rules"`
}

Provides a resource to manage an S3 Control Bucket Lifecycle Configuration.

> **NOTE:** Each S3 Control Bucket can only have one Lifecycle Configuration. Using multiple of this resource against the same S3 Control Bucket will result in perpetual differences each provider run.

> This functionality is for managing [S3 on Outposts](https://docs.aws.amazon.com/AmazonS3/latest/dev/S3onOutposts.html). To manage S3 Bucket Lifecycle Configurations in an AWS Partition, see the `s3.Bucket` resource.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-aws/sdk/v4/go/aws/s3control"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := s3control.NewBucketLifecycleConfiguration(ctx, "example", &s3control.BucketLifecycleConfigurationArgs{
			Bucket: pulumi.Any(aws_s3control_bucket.Example.Arn),
			Rules: s3control.BucketLifecycleConfigurationRuleArray{
				&s3control.BucketLifecycleConfigurationRuleArgs{
					Expiration: &s3control.BucketLifecycleConfigurationRuleExpirationArgs{
						Days: pulumi.Int(365),
					},
					Filter: &s3control.BucketLifecycleConfigurationRuleFilterArgs{
						Prefix: pulumi.String("logs/"),
					},
					Id: pulumi.String("logs"),
				},
				&s3control.BucketLifecycleConfigurationRuleArgs{
					Expiration: &s3control.BucketLifecycleConfigurationRuleExpirationArgs{
						Days: pulumi.Int(7),
					},
					Filter: &s3control.BucketLifecycleConfigurationRuleFilterArgs{
						Prefix: pulumi.String("temp/"),
					},
					Id: pulumi.String("temp"),
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

S3 Control Bucket Lifecycle Configurations can be imported using the Amazon Resource Name (ARN), e.g.

```sh

$ pulumi import aws:s3control/bucketLifecycleConfiguration:BucketLifecycleConfiguration example arn:aws:s3-outposts:us-east-1:123456789012:outpost/op-12345678/bucket/example

```

func GetBucketLifecycleConfiguration

func GetBucketLifecycleConfiguration(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *BucketLifecycleConfigurationState, opts ...pulumi.ResourceOption) (*BucketLifecycleConfiguration, error)

GetBucketLifecycleConfiguration gets an existing BucketLifecycleConfiguration 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 NewBucketLifecycleConfiguration

func NewBucketLifecycleConfiguration(ctx *pulumi.Context,
	name string, args *BucketLifecycleConfigurationArgs, opts ...pulumi.ResourceOption) (*BucketLifecycleConfiguration, error)

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

func (*BucketLifecycleConfiguration) ElementType

func (*BucketLifecycleConfiguration) ElementType() reflect.Type

func (*BucketLifecycleConfiguration) ToBucketLifecycleConfigurationOutput

func (i *BucketLifecycleConfiguration) ToBucketLifecycleConfigurationOutput() BucketLifecycleConfigurationOutput

func (*BucketLifecycleConfiguration) ToBucketLifecycleConfigurationOutputWithContext

func (i *BucketLifecycleConfiguration) ToBucketLifecycleConfigurationOutputWithContext(ctx context.Context) BucketLifecycleConfigurationOutput

func (*BucketLifecycleConfiguration) ToBucketLifecycleConfigurationPtrOutput

func (i *BucketLifecycleConfiguration) ToBucketLifecycleConfigurationPtrOutput() BucketLifecycleConfigurationPtrOutput

func (*BucketLifecycleConfiguration) ToBucketLifecycleConfigurationPtrOutputWithContext

func (i *BucketLifecycleConfiguration) ToBucketLifecycleConfigurationPtrOutputWithContext(ctx context.Context) BucketLifecycleConfigurationPtrOutput

type BucketLifecycleConfigurationArgs

type BucketLifecycleConfigurationArgs struct {
	// Amazon Resource Name (ARN) of the bucket.
	Bucket pulumi.StringInput
	// Configuration block(s) containing lifecycle rules for the bucket.
	Rules BucketLifecycleConfigurationRuleArrayInput
}

The set of arguments for constructing a BucketLifecycleConfiguration resource.

func (BucketLifecycleConfigurationArgs) ElementType

type BucketLifecycleConfigurationArray

type BucketLifecycleConfigurationArray []BucketLifecycleConfigurationInput

func (BucketLifecycleConfigurationArray) ElementType

func (BucketLifecycleConfigurationArray) ToBucketLifecycleConfigurationArrayOutput

func (i BucketLifecycleConfigurationArray) ToBucketLifecycleConfigurationArrayOutput() BucketLifecycleConfigurationArrayOutput

func (BucketLifecycleConfigurationArray) ToBucketLifecycleConfigurationArrayOutputWithContext

func (i BucketLifecycleConfigurationArray) ToBucketLifecycleConfigurationArrayOutputWithContext(ctx context.Context) BucketLifecycleConfigurationArrayOutput

type BucketLifecycleConfigurationArrayInput

type BucketLifecycleConfigurationArrayInput interface {
	pulumi.Input

	ToBucketLifecycleConfigurationArrayOutput() BucketLifecycleConfigurationArrayOutput
	ToBucketLifecycleConfigurationArrayOutputWithContext(context.Context) BucketLifecycleConfigurationArrayOutput
}

BucketLifecycleConfigurationArrayInput is an input type that accepts BucketLifecycleConfigurationArray and BucketLifecycleConfigurationArrayOutput values. You can construct a concrete instance of `BucketLifecycleConfigurationArrayInput` via:

BucketLifecycleConfigurationArray{ BucketLifecycleConfigurationArgs{...} }

type BucketLifecycleConfigurationArrayOutput

type BucketLifecycleConfigurationArrayOutput struct{ *pulumi.OutputState }

func (BucketLifecycleConfigurationArrayOutput) ElementType

func (BucketLifecycleConfigurationArrayOutput) Index

func (BucketLifecycleConfigurationArrayOutput) ToBucketLifecycleConfigurationArrayOutput

func (o BucketLifecycleConfigurationArrayOutput) ToBucketLifecycleConfigurationArrayOutput() BucketLifecycleConfigurationArrayOutput

func (BucketLifecycleConfigurationArrayOutput) ToBucketLifecycleConfigurationArrayOutputWithContext

func (o BucketLifecycleConfigurationArrayOutput) ToBucketLifecycleConfigurationArrayOutputWithContext(ctx context.Context) BucketLifecycleConfigurationArrayOutput

type BucketLifecycleConfigurationInput

type BucketLifecycleConfigurationInput interface {
	pulumi.Input

	ToBucketLifecycleConfigurationOutput() BucketLifecycleConfigurationOutput
	ToBucketLifecycleConfigurationOutputWithContext(ctx context.Context) BucketLifecycleConfigurationOutput
}

type BucketLifecycleConfigurationMap

type BucketLifecycleConfigurationMap map[string]BucketLifecycleConfigurationInput

func (BucketLifecycleConfigurationMap) ElementType

func (BucketLifecycleConfigurationMap) ToBucketLifecycleConfigurationMapOutput

func (i BucketLifecycleConfigurationMap) ToBucketLifecycleConfigurationMapOutput() BucketLifecycleConfigurationMapOutput

func (BucketLifecycleConfigurationMap) ToBucketLifecycleConfigurationMapOutputWithContext

func (i BucketLifecycleConfigurationMap) ToBucketLifecycleConfigurationMapOutputWithContext(ctx context.Context) BucketLifecycleConfigurationMapOutput

type BucketLifecycleConfigurationMapInput

type BucketLifecycleConfigurationMapInput interface {
	pulumi.Input

	ToBucketLifecycleConfigurationMapOutput() BucketLifecycleConfigurationMapOutput
	ToBucketLifecycleConfigurationMapOutputWithContext(context.Context) BucketLifecycleConfigurationMapOutput
}

BucketLifecycleConfigurationMapInput is an input type that accepts BucketLifecycleConfigurationMap and BucketLifecycleConfigurationMapOutput values. You can construct a concrete instance of `BucketLifecycleConfigurationMapInput` via:

BucketLifecycleConfigurationMap{ "key": BucketLifecycleConfigurationArgs{...} }

type BucketLifecycleConfigurationMapOutput

type BucketLifecycleConfigurationMapOutput struct{ *pulumi.OutputState }

func (BucketLifecycleConfigurationMapOutput) ElementType

func (BucketLifecycleConfigurationMapOutput) MapIndex

func (BucketLifecycleConfigurationMapOutput) ToBucketLifecycleConfigurationMapOutput

func (o BucketLifecycleConfigurationMapOutput) ToBucketLifecycleConfigurationMapOutput() BucketLifecycleConfigurationMapOutput

func (BucketLifecycleConfigurationMapOutput) ToBucketLifecycleConfigurationMapOutputWithContext

func (o BucketLifecycleConfigurationMapOutput) ToBucketLifecycleConfigurationMapOutputWithContext(ctx context.Context) BucketLifecycleConfigurationMapOutput

type BucketLifecycleConfigurationOutput

type BucketLifecycleConfigurationOutput struct{ *pulumi.OutputState }

func (BucketLifecycleConfigurationOutput) ElementType

func (BucketLifecycleConfigurationOutput) ToBucketLifecycleConfigurationOutput

func (o BucketLifecycleConfigurationOutput) ToBucketLifecycleConfigurationOutput() BucketLifecycleConfigurationOutput

func (BucketLifecycleConfigurationOutput) ToBucketLifecycleConfigurationOutputWithContext

func (o BucketLifecycleConfigurationOutput) ToBucketLifecycleConfigurationOutputWithContext(ctx context.Context) BucketLifecycleConfigurationOutput

func (BucketLifecycleConfigurationOutput) ToBucketLifecycleConfigurationPtrOutput

func (o BucketLifecycleConfigurationOutput) ToBucketLifecycleConfigurationPtrOutput() BucketLifecycleConfigurationPtrOutput

func (BucketLifecycleConfigurationOutput) ToBucketLifecycleConfigurationPtrOutputWithContext

func (o BucketLifecycleConfigurationOutput) ToBucketLifecycleConfigurationPtrOutputWithContext(ctx context.Context) BucketLifecycleConfigurationPtrOutput

type BucketLifecycleConfigurationPtrInput

type BucketLifecycleConfigurationPtrInput interface {
	pulumi.Input

	ToBucketLifecycleConfigurationPtrOutput() BucketLifecycleConfigurationPtrOutput
	ToBucketLifecycleConfigurationPtrOutputWithContext(ctx context.Context) BucketLifecycleConfigurationPtrOutput
}

type BucketLifecycleConfigurationPtrOutput

type BucketLifecycleConfigurationPtrOutput struct{ *pulumi.OutputState }

func (BucketLifecycleConfigurationPtrOutput) Elem added in v4.15.0

func (BucketLifecycleConfigurationPtrOutput) ElementType

func (BucketLifecycleConfigurationPtrOutput) ToBucketLifecycleConfigurationPtrOutput

func (o BucketLifecycleConfigurationPtrOutput) ToBucketLifecycleConfigurationPtrOutput() BucketLifecycleConfigurationPtrOutput

func (BucketLifecycleConfigurationPtrOutput) ToBucketLifecycleConfigurationPtrOutputWithContext

func (o BucketLifecycleConfigurationPtrOutput) ToBucketLifecycleConfigurationPtrOutputWithContext(ctx context.Context) BucketLifecycleConfigurationPtrOutput

type BucketLifecycleConfigurationRule

type BucketLifecycleConfigurationRule struct {
	// Configuration block containing settings for abort incomplete multipart upload.
	AbortIncompleteMultipartUpload *BucketLifecycleConfigurationRuleAbortIncompleteMultipartUpload `pulumi:"abortIncompleteMultipartUpload"`
	// Configuration block containing settings for expiration of objects.
	Expiration *BucketLifecycleConfigurationRuleExpiration `pulumi:"expiration"`
	// Configuration block containing settings for filtering.
	Filter *BucketLifecycleConfigurationRuleFilter `pulumi:"filter"`
	// Unique identifier for the rule.
	Id string `pulumi:"id"`
	// Status of the rule. Valid values: `Enabled` and `Disabled`. Defaults to `Enabled`.
	Status *string `pulumi:"status"`
}

type BucketLifecycleConfigurationRuleAbortIncompleteMultipartUpload

type BucketLifecycleConfigurationRuleAbortIncompleteMultipartUpload struct {
	// Number of days after which Amazon S3 aborts an incomplete multipart upload.
	DaysAfterInitiation int `pulumi:"daysAfterInitiation"`
}

type BucketLifecycleConfigurationRuleAbortIncompleteMultipartUploadArgs

type BucketLifecycleConfigurationRuleAbortIncompleteMultipartUploadArgs struct {
	// Number of days after which Amazon S3 aborts an incomplete multipart upload.
	DaysAfterInitiation pulumi.IntInput `pulumi:"daysAfterInitiation"`
}

func (BucketLifecycleConfigurationRuleAbortIncompleteMultipartUploadArgs) ElementType

func (BucketLifecycleConfigurationRuleAbortIncompleteMultipartUploadArgs) ToBucketLifecycleConfigurationRuleAbortIncompleteMultipartUploadOutput

func (BucketLifecycleConfigurationRuleAbortIncompleteMultipartUploadArgs) ToBucketLifecycleConfigurationRuleAbortIncompleteMultipartUploadOutputWithContext

func (i BucketLifecycleConfigurationRuleAbortIncompleteMultipartUploadArgs) ToBucketLifecycleConfigurationRuleAbortIncompleteMultipartUploadOutputWithContext(ctx context.Context) BucketLifecycleConfigurationRuleAbortIncompleteMultipartUploadOutput

func (BucketLifecycleConfigurationRuleAbortIncompleteMultipartUploadArgs) ToBucketLifecycleConfigurationRuleAbortIncompleteMultipartUploadPtrOutput

func (BucketLifecycleConfigurationRuleAbortIncompleteMultipartUploadArgs) ToBucketLifecycleConfigurationRuleAbortIncompleteMultipartUploadPtrOutputWithContext

func (i BucketLifecycleConfigurationRuleAbortIncompleteMultipartUploadArgs) ToBucketLifecycleConfigurationRuleAbortIncompleteMultipartUploadPtrOutputWithContext(ctx context.Context) BucketLifecycleConfigurationRuleAbortIncompleteMultipartUploadPtrOutput

type BucketLifecycleConfigurationRuleAbortIncompleteMultipartUploadInput

type BucketLifecycleConfigurationRuleAbortIncompleteMultipartUploadInput interface {
	pulumi.Input

	ToBucketLifecycleConfigurationRuleAbortIncompleteMultipartUploadOutput() BucketLifecycleConfigurationRuleAbortIncompleteMultipartUploadOutput
	ToBucketLifecycleConfigurationRuleAbortIncompleteMultipartUploadOutputWithContext(context.Context) BucketLifecycleConfigurationRuleAbortIncompleteMultipartUploadOutput
}

BucketLifecycleConfigurationRuleAbortIncompleteMultipartUploadInput is an input type that accepts BucketLifecycleConfigurationRuleAbortIncompleteMultipartUploadArgs and BucketLifecycleConfigurationRuleAbortIncompleteMultipartUploadOutput values. You can construct a concrete instance of `BucketLifecycleConfigurationRuleAbortIncompleteMultipartUploadInput` via:

BucketLifecycleConfigurationRuleAbortIncompleteMultipartUploadArgs{...}

type BucketLifecycleConfigurationRuleAbortIncompleteMultipartUploadOutput

type BucketLifecycleConfigurationRuleAbortIncompleteMultipartUploadOutput struct{ *pulumi.OutputState }

func (BucketLifecycleConfigurationRuleAbortIncompleteMultipartUploadOutput) DaysAfterInitiation

Number of days after which Amazon S3 aborts an incomplete multipart upload.

func (BucketLifecycleConfigurationRuleAbortIncompleteMultipartUploadOutput) ElementType

func (BucketLifecycleConfigurationRuleAbortIncompleteMultipartUploadOutput) ToBucketLifecycleConfigurationRuleAbortIncompleteMultipartUploadOutput

func (BucketLifecycleConfigurationRuleAbortIncompleteMultipartUploadOutput) ToBucketLifecycleConfigurationRuleAbortIncompleteMultipartUploadOutputWithContext

func (o BucketLifecycleConfigurationRuleAbortIncompleteMultipartUploadOutput) ToBucketLifecycleConfigurationRuleAbortIncompleteMultipartUploadOutputWithContext(ctx context.Context) BucketLifecycleConfigurationRuleAbortIncompleteMultipartUploadOutput

func (BucketLifecycleConfigurationRuleAbortIncompleteMultipartUploadOutput) ToBucketLifecycleConfigurationRuleAbortIncompleteMultipartUploadPtrOutput

func (BucketLifecycleConfigurationRuleAbortIncompleteMultipartUploadOutput) ToBucketLifecycleConfigurationRuleAbortIncompleteMultipartUploadPtrOutputWithContext

func (o BucketLifecycleConfigurationRuleAbortIncompleteMultipartUploadOutput) ToBucketLifecycleConfigurationRuleAbortIncompleteMultipartUploadPtrOutputWithContext(ctx context.Context) BucketLifecycleConfigurationRuleAbortIncompleteMultipartUploadPtrOutput

type BucketLifecycleConfigurationRuleAbortIncompleteMultipartUploadPtrInput

type BucketLifecycleConfigurationRuleAbortIncompleteMultipartUploadPtrInput interface {
	pulumi.Input

	ToBucketLifecycleConfigurationRuleAbortIncompleteMultipartUploadPtrOutput() BucketLifecycleConfigurationRuleAbortIncompleteMultipartUploadPtrOutput
	ToBucketLifecycleConfigurationRuleAbortIncompleteMultipartUploadPtrOutputWithContext(context.Context) BucketLifecycleConfigurationRuleAbortIncompleteMultipartUploadPtrOutput
}

BucketLifecycleConfigurationRuleAbortIncompleteMultipartUploadPtrInput is an input type that accepts BucketLifecycleConfigurationRuleAbortIncompleteMultipartUploadArgs, BucketLifecycleConfigurationRuleAbortIncompleteMultipartUploadPtr and BucketLifecycleConfigurationRuleAbortIncompleteMultipartUploadPtrOutput values. You can construct a concrete instance of `BucketLifecycleConfigurationRuleAbortIncompleteMultipartUploadPtrInput` via:

        BucketLifecycleConfigurationRuleAbortIncompleteMultipartUploadArgs{...}

or:

        nil

type BucketLifecycleConfigurationRuleAbortIncompleteMultipartUploadPtrOutput

type BucketLifecycleConfigurationRuleAbortIncompleteMultipartUploadPtrOutput struct{ *pulumi.OutputState }

func (BucketLifecycleConfigurationRuleAbortIncompleteMultipartUploadPtrOutput) DaysAfterInitiation

Number of days after which Amazon S3 aborts an incomplete multipart upload.

func (BucketLifecycleConfigurationRuleAbortIncompleteMultipartUploadPtrOutput) Elem

func (BucketLifecycleConfigurationRuleAbortIncompleteMultipartUploadPtrOutput) ElementType

func (BucketLifecycleConfigurationRuleAbortIncompleteMultipartUploadPtrOutput) ToBucketLifecycleConfigurationRuleAbortIncompleteMultipartUploadPtrOutput

func (BucketLifecycleConfigurationRuleAbortIncompleteMultipartUploadPtrOutput) ToBucketLifecycleConfigurationRuleAbortIncompleteMultipartUploadPtrOutputWithContext

func (o BucketLifecycleConfigurationRuleAbortIncompleteMultipartUploadPtrOutput) ToBucketLifecycleConfigurationRuleAbortIncompleteMultipartUploadPtrOutputWithContext(ctx context.Context) BucketLifecycleConfigurationRuleAbortIncompleteMultipartUploadPtrOutput

type BucketLifecycleConfigurationRuleArgs

type BucketLifecycleConfigurationRuleArgs struct {
	// Configuration block containing settings for abort incomplete multipart upload.
	AbortIncompleteMultipartUpload BucketLifecycleConfigurationRuleAbortIncompleteMultipartUploadPtrInput `pulumi:"abortIncompleteMultipartUpload"`
	// Configuration block containing settings for expiration of objects.
	Expiration BucketLifecycleConfigurationRuleExpirationPtrInput `pulumi:"expiration"`
	// Configuration block containing settings for filtering.
	Filter BucketLifecycleConfigurationRuleFilterPtrInput `pulumi:"filter"`
	// Unique identifier for the rule.
	Id pulumi.StringInput `pulumi:"id"`
	// Status of the rule. Valid values: `Enabled` and `Disabled`. Defaults to `Enabled`.
	Status pulumi.StringPtrInput `pulumi:"status"`
}

func (BucketLifecycleConfigurationRuleArgs) ElementType

func (BucketLifecycleConfigurationRuleArgs) ToBucketLifecycleConfigurationRuleOutput

func (i BucketLifecycleConfigurationRuleArgs) ToBucketLifecycleConfigurationRuleOutput() BucketLifecycleConfigurationRuleOutput

func (BucketLifecycleConfigurationRuleArgs) ToBucketLifecycleConfigurationRuleOutputWithContext

func (i BucketLifecycleConfigurationRuleArgs) ToBucketLifecycleConfigurationRuleOutputWithContext(ctx context.Context) BucketLifecycleConfigurationRuleOutput

type BucketLifecycleConfigurationRuleArray

type BucketLifecycleConfigurationRuleArray []BucketLifecycleConfigurationRuleInput

func (BucketLifecycleConfigurationRuleArray) ElementType

func (BucketLifecycleConfigurationRuleArray) ToBucketLifecycleConfigurationRuleArrayOutput

func (i BucketLifecycleConfigurationRuleArray) ToBucketLifecycleConfigurationRuleArrayOutput() BucketLifecycleConfigurationRuleArrayOutput

func (BucketLifecycleConfigurationRuleArray) ToBucketLifecycleConfigurationRuleArrayOutputWithContext

func (i BucketLifecycleConfigurationRuleArray) ToBucketLifecycleConfigurationRuleArrayOutputWithContext(ctx context.Context) BucketLifecycleConfigurationRuleArrayOutput

type BucketLifecycleConfigurationRuleArrayInput

type BucketLifecycleConfigurationRuleArrayInput interface {
	pulumi.Input

	ToBucketLifecycleConfigurationRuleArrayOutput() BucketLifecycleConfigurationRuleArrayOutput
	ToBucketLifecycleConfigurationRuleArrayOutputWithContext(context.Context) BucketLifecycleConfigurationRuleArrayOutput
}

BucketLifecycleConfigurationRuleArrayInput is an input type that accepts BucketLifecycleConfigurationRuleArray and BucketLifecycleConfigurationRuleArrayOutput values. You can construct a concrete instance of `BucketLifecycleConfigurationRuleArrayInput` via:

BucketLifecycleConfigurationRuleArray{ BucketLifecycleConfigurationRuleArgs{...} }

type BucketLifecycleConfigurationRuleArrayOutput

type BucketLifecycleConfigurationRuleArrayOutput struct{ *pulumi.OutputState }

func (BucketLifecycleConfigurationRuleArrayOutput) ElementType

func (BucketLifecycleConfigurationRuleArrayOutput) Index

func (BucketLifecycleConfigurationRuleArrayOutput) ToBucketLifecycleConfigurationRuleArrayOutput

func (o BucketLifecycleConfigurationRuleArrayOutput) ToBucketLifecycleConfigurationRuleArrayOutput() BucketLifecycleConfigurationRuleArrayOutput

func (BucketLifecycleConfigurationRuleArrayOutput) ToBucketLifecycleConfigurationRuleArrayOutputWithContext

func (o BucketLifecycleConfigurationRuleArrayOutput) ToBucketLifecycleConfigurationRuleArrayOutputWithContext(ctx context.Context) BucketLifecycleConfigurationRuleArrayOutput

type BucketLifecycleConfigurationRuleExpiration

type BucketLifecycleConfigurationRuleExpiration struct {
	// Date the object is to be deleted. Should be in `YYYY-MM-DD` date format, e.g. `2020-09-30`.
	Date *string `pulumi:"date"`
	// Number of days before the object is to be deleted.
	Days *int `pulumi:"days"`
	// Enable to remove a delete marker with no noncurrent versions. Cannot be specified with `date` or `days`.
	ExpiredObjectDeleteMarker *bool `pulumi:"expiredObjectDeleteMarker"`
}

type BucketLifecycleConfigurationRuleExpirationArgs

type BucketLifecycleConfigurationRuleExpirationArgs struct {
	// Date the object is to be deleted. Should be in `YYYY-MM-DD` date format, e.g. `2020-09-30`.
	Date pulumi.StringPtrInput `pulumi:"date"`
	// Number of days before the object is to be deleted.
	Days pulumi.IntPtrInput `pulumi:"days"`
	// Enable to remove a delete marker with no noncurrent versions. Cannot be specified with `date` or `days`.
	ExpiredObjectDeleteMarker pulumi.BoolPtrInput `pulumi:"expiredObjectDeleteMarker"`
}

func (BucketLifecycleConfigurationRuleExpirationArgs) ElementType

func (BucketLifecycleConfigurationRuleExpirationArgs) ToBucketLifecycleConfigurationRuleExpirationOutput

func (i BucketLifecycleConfigurationRuleExpirationArgs) ToBucketLifecycleConfigurationRuleExpirationOutput() BucketLifecycleConfigurationRuleExpirationOutput

func (BucketLifecycleConfigurationRuleExpirationArgs) ToBucketLifecycleConfigurationRuleExpirationOutputWithContext

func (i BucketLifecycleConfigurationRuleExpirationArgs) ToBucketLifecycleConfigurationRuleExpirationOutputWithContext(ctx context.Context) BucketLifecycleConfigurationRuleExpirationOutput

func (BucketLifecycleConfigurationRuleExpirationArgs) ToBucketLifecycleConfigurationRuleExpirationPtrOutput

func (i BucketLifecycleConfigurationRuleExpirationArgs) ToBucketLifecycleConfigurationRuleExpirationPtrOutput() BucketLifecycleConfigurationRuleExpirationPtrOutput

func (BucketLifecycleConfigurationRuleExpirationArgs) ToBucketLifecycleConfigurationRuleExpirationPtrOutputWithContext

func (i BucketLifecycleConfigurationRuleExpirationArgs) ToBucketLifecycleConfigurationRuleExpirationPtrOutputWithContext(ctx context.Context) BucketLifecycleConfigurationRuleExpirationPtrOutput

type BucketLifecycleConfigurationRuleExpirationInput

type BucketLifecycleConfigurationRuleExpirationInput interface {
	pulumi.Input

	ToBucketLifecycleConfigurationRuleExpirationOutput() BucketLifecycleConfigurationRuleExpirationOutput
	ToBucketLifecycleConfigurationRuleExpirationOutputWithContext(context.Context) BucketLifecycleConfigurationRuleExpirationOutput
}

BucketLifecycleConfigurationRuleExpirationInput is an input type that accepts BucketLifecycleConfigurationRuleExpirationArgs and BucketLifecycleConfigurationRuleExpirationOutput values. You can construct a concrete instance of `BucketLifecycleConfigurationRuleExpirationInput` via:

BucketLifecycleConfigurationRuleExpirationArgs{...}

type BucketLifecycleConfigurationRuleExpirationOutput

type BucketLifecycleConfigurationRuleExpirationOutput struct{ *pulumi.OutputState }

func (BucketLifecycleConfigurationRuleExpirationOutput) Date

Date the object is to be deleted. Should be in `YYYY-MM-DD` date format, e.g. `2020-09-30`.

func (BucketLifecycleConfigurationRuleExpirationOutput) Days

Number of days before the object is to be deleted.

func (BucketLifecycleConfigurationRuleExpirationOutput) ElementType

func (BucketLifecycleConfigurationRuleExpirationOutput) ExpiredObjectDeleteMarker

Enable to remove a delete marker with no noncurrent versions. Cannot be specified with `date` or `days`.

func (BucketLifecycleConfigurationRuleExpirationOutput) ToBucketLifecycleConfigurationRuleExpirationOutput

func (o BucketLifecycleConfigurationRuleExpirationOutput) ToBucketLifecycleConfigurationRuleExpirationOutput() BucketLifecycleConfigurationRuleExpirationOutput

func (BucketLifecycleConfigurationRuleExpirationOutput) ToBucketLifecycleConfigurationRuleExpirationOutputWithContext

func (o BucketLifecycleConfigurationRuleExpirationOutput) ToBucketLifecycleConfigurationRuleExpirationOutputWithContext(ctx context.Context) BucketLifecycleConfigurationRuleExpirationOutput

func (BucketLifecycleConfigurationRuleExpirationOutput) ToBucketLifecycleConfigurationRuleExpirationPtrOutput

func (o BucketLifecycleConfigurationRuleExpirationOutput) ToBucketLifecycleConfigurationRuleExpirationPtrOutput() BucketLifecycleConfigurationRuleExpirationPtrOutput

func (BucketLifecycleConfigurationRuleExpirationOutput) ToBucketLifecycleConfigurationRuleExpirationPtrOutputWithContext

func (o BucketLifecycleConfigurationRuleExpirationOutput) ToBucketLifecycleConfigurationRuleExpirationPtrOutputWithContext(ctx context.Context) BucketLifecycleConfigurationRuleExpirationPtrOutput

type BucketLifecycleConfigurationRuleExpirationPtrInput

type BucketLifecycleConfigurationRuleExpirationPtrInput interface {
	pulumi.Input

	ToBucketLifecycleConfigurationRuleExpirationPtrOutput() BucketLifecycleConfigurationRuleExpirationPtrOutput
	ToBucketLifecycleConfigurationRuleExpirationPtrOutputWithContext(context.Context) BucketLifecycleConfigurationRuleExpirationPtrOutput
}

BucketLifecycleConfigurationRuleExpirationPtrInput is an input type that accepts BucketLifecycleConfigurationRuleExpirationArgs, BucketLifecycleConfigurationRuleExpirationPtr and BucketLifecycleConfigurationRuleExpirationPtrOutput values. You can construct a concrete instance of `BucketLifecycleConfigurationRuleExpirationPtrInput` via:

        BucketLifecycleConfigurationRuleExpirationArgs{...}

or:

        nil

type BucketLifecycleConfigurationRuleExpirationPtrOutput

type BucketLifecycleConfigurationRuleExpirationPtrOutput struct{ *pulumi.OutputState }

func (BucketLifecycleConfigurationRuleExpirationPtrOutput) Date

Date the object is to be deleted. Should be in `YYYY-MM-DD` date format, e.g. `2020-09-30`.

func (BucketLifecycleConfigurationRuleExpirationPtrOutput) Days

Number of days before the object is to be deleted.

func (BucketLifecycleConfigurationRuleExpirationPtrOutput) Elem

func (BucketLifecycleConfigurationRuleExpirationPtrOutput) ElementType

func (BucketLifecycleConfigurationRuleExpirationPtrOutput) ExpiredObjectDeleteMarker

Enable to remove a delete marker with no noncurrent versions. Cannot be specified with `date` or `days`.

func (BucketLifecycleConfigurationRuleExpirationPtrOutput) ToBucketLifecycleConfigurationRuleExpirationPtrOutput

func (o BucketLifecycleConfigurationRuleExpirationPtrOutput) ToBucketLifecycleConfigurationRuleExpirationPtrOutput() BucketLifecycleConfigurationRuleExpirationPtrOutput

func (BucketLifecycleConfigurationRuleExpirationPtrOutput) ToBucketLifecycleConfigurationRuleExpirationPtrOutputWithContext

func (o BucketLifecycleConfigurationRuleExpirationPtrOutput) ToBucketLifecycleConfigurationRuleExpirationPtrOutputWithContext(ctx context.Context) BucketLifecycleConfigurationRuleExpirationPtrOutput

type BucketLifecycleConfigurationRuleFilter

type BucketLifecycleConfigurationRuleFilter struct {
	// Object prefix for rule filtering.
	Prefix *string `pulumi:"prefix"`
	// Key-value map of object tags for rule filtering.
	Tags map[string]string `pulumi:"tags"`
}

type BucketLifecycleConfigurationRuleFilterArgs

type BucketLifecycleConfigurationRuleFilterArgs struct {
	// Object prefix for rule filtering.
	Prefix pulumi.StringPtrInput `pulumi:"prefix"`
	// Key-value map of object tags for rule filtering.
	Tags pulumi.StringMapInput `pulumi:"tags"`
}

func (BucketLifecycleConfigurationRuleFilterArgs) ElementType

func (BucketLifecycleConfigurationRuleFilterArgs) ToBucketLifecycleConfigurationRuleFilterOutput

func (i BucketLifecycleConfigurationRuleFilterArgs) ToBucketLifecycleConfigurationRuleFilterOutput() BucketLifecycleConfigurationRuleFilterOutput

func (BucketLifecycleConfigurationRuleFilterArgs) ToBucketLifecycleConfigurationRuleFilterOutputWithContext

func (i BucketLifecycleConfigurationRuleFilterArgs) ToBucketLifecycleConfigurationRuleFilterOutputWithContext(ctx context.Context) BucketLifecycleConfigurationRuleFilterOutput

func (BucketLifecycleConfigurationRuleFilterArgs) ToBucketLifecycleConfigurationRuleFilterPtrOutput

func (i BucketLifecycleConfigurationRuleFilterArgs) ToBucketLifecycleConfigurationRuleFilterPtrOutput() BucketLifecycleConfigurationRuleFilterPtrOutput

func (BucketLifecycleConfigurationRuleFilterArgs) ToBucketLifecycleConfigurationRuleFilterPtrOutputWithContext

func (i BucketLifecycleConfigurationRuleFilterArgs) ToBucketLifecycleConfigurationRuleFilterPtrOutputWithContext(ctx context.Context) BucketLifecycleConfigurationRuleFilterPtrOutput

type BucketLifecycleConfigurationRuleFilterInput

type BucketLifecycleConfigurationRuleFilterInput interface {
	pulumi.Input

	ToBucketLifecycleConfigurationRuleFilterOutput() BucketLifecycleConfigurationRuleFilterOutput
	ToBucketLifecycleConfigurationRuleFilterOutputWithContext(context.Context) BucketLifecycleConfigurationRuleFilterOutput
}

BucketLifecycleConfigurationRuleFilterInput is an input type that accepts BucketLifecycleConfigurationRuleFilterArgs and BucketLifecycleConfigurationRuleFilterOutput values. You can construct a concrete instance of `BucketLifecycleConfigurationRuleFilterInput` via:

BucketLifecycleConfigurationRuleFilterArgs{...}

type BucketLifecycleConfigurationRuleFilterOutput

type BucketLifecycleConfigurationRuleFilterOutput struct{ *pulumi.OutputState }

func (BucketLifecycleConfigurationRuleFilterOutput) ElementType

func (BucketLifecycleConfigurationRuleFilterOutput) Prefix

Object prefix for rule filtering.

func (BucketLifecycleConfigurationRuleFilterOutput) Tags

Key-value map of object tags for rule filtering.

func (BucketLifecycleConfigurationRuleFilterOutput) ToBucketLifecycleConfigurationRuleFilterOutput

func (o BucketLifecycleConfigurationRuleFilterOutput) ToBucketLifecycleConfigurationRuleFilterOutput() BucketLifecycleConfigurationRuleFilterOutput

func (BucketLifecycleConfigurationRuleFilterOutput) ToBucketLifecycleConfigurationRuleFilterOutputWithContext

func (o BucketLifecycleConfigurationRuleFilterOutput) ToBucketLifecycleConfigurationRuleFilterOutputWithContext(ctx context.Context) BucketLifecycleConfigurationRuleFilterOutput

func (BucketLifecycleConfigurationRuleFilterOutput) ToBucketLifecycleConfigurationRuleFilterPtrOutput

func (o BucketLifecycleConfigurationRuleFilterOutput) ToBucketLifecycleConfigurationRuleFilterPtrOutput() BucketLifecycleConfigurationRuleFilterPtrOutput

func (BucketLifecycleConfigurationRuleFilterOutput) ToBucketLifecycleConfigurationRuleFilterPtrOutputWithContext

func (o BucketLifecycleConfigurationRuleFilterOutput) ToBucketLifecycleConfigurationRuleFilterPtrOutputWithContext(ctx context.Context) BucketLifecycleConfigurationRuleFilterPtrOutput

type BucketLifecycleConfigurationRuleFilterPtrInput

type BucketLifecycleConfigurationRuleFilterPtrInput interface {
	pulumi.Input

	ToBucketLifecycleConfigurationRuleFilterPtrOutput() BucketLifecycleConfigurationRuleFilterPtrOutput
	ToBucketLifecycleConfigurationRuleFilterPtrOutputWithContext(context.Context) BucketLifecycleConfigurationRuleFilterPtrOutput
}

BucketLifecycleConfigurationRuleFilterPtrInput is an input type that accepts BucketLifecycleConfigurationRuleFilterArgs, BucketLifecycleConfigurationRuleFilterPtr and BucketLifecycleConfigurationRuleFilterPtrOutput values. You can construct a concrete instance of `BucketLifecycleConfigurationRuleFilterPtrInput` via:

        BucketLifecycleConfigurationRuleFilterArgs{...}

or:

        nil

type BucketLifecycleConfigurationRuleFilterPtrOutput

type BucketLifecycleConfigurationRuleFilterPtrOutput struct{ *pulumi.OutputState }

func (BucketLifecycleConfigurationRuleFilterPtrOutput) Elem

func (BucketLifecycleConfigurationRuleFilterPtrOutput) ElementType

func (BucketLifecycleConfigurationRuleFilterPtrOutput) Prefix

Object prefix for rule filtering.

func (BucketLifecycleConfigurationRuleFilterPtrOutput) Tags

Key-value map of object tags for rule filtering.

func (BucketLifecycleConfigurationRuleFilterPtrOutput) ToBucketLifecycleConfigurationRuleFilterPtrOutput

func (o BucketLifecycleConfigurationRuleFilterPtrOutput) ToBucketLifecycleConfigurationRuleFilterPtrOutput() BucketLifecycleConfigurationRuleFilterPtrOutput

func (BucketLifecycleConfigurationRuleFilterPtrOutput) ToBucketLifecycleConfigurationRuleFilterPtrOutputWithContext

func (o BucketLifecycleConfigurationRuleFilterPtrOutput) ToBucketLifecycleConfigurationRuleFilterPtrOutputWithContext(ctx context.Context) BucketLifecycleConfigurationRuleFilterPtrOutput

type BucketLifecycleConfigurationRuleInput

type BucketLifecycleConfigurationRuleInput interface {
	pulumi.Input

	ToBucketLifecycleConfigurationRuleOutput() BucketLifecycleConfigurationRuleOutput
	ToBucketLifecycleConfigurationRuleOutputWithContext(context.Context) BucketLifecycleConfigurationRuleOutput
}

BucketLifecycleConfigurationRuleInput is an input type that accepts BucketLifecycleConfigurationRuleArgs and BucketLifecycleConfigurationRuleOutput values. You can construct a concrete instance of `BucketLifecycleConfigurationRuleInput` via:

BucketLifecycleConfigurationRuleArgs{...}

type BucketLifecycleConfigurationRuleOutput

type BucketLifecycleConfigurationRuleOutput struct{ *pulumi.OutputState }

func (BucketLifecycleConfigurationRuleOutput) AbortIncompleteMultipartUpload

Configuration block containing settings for abort incomplete multipart upload.

func (BucketLifecycleConfigurationRuleOutput) ElementType

func (BucketLifecycleConfigurationRuleOutput) Expiration

Configuration block containing settings for expiration of objects.

func (BucketLifecycleConfigurationRuleOutput) Filter

Configuration block containing settings for filtering.

func (BucketLifecycleConfigurationRuleOutput) Id

Unique identifier for the rule.

func (BucketLifecycleConfigurationRuleOutput) Status

Status of the rule. Valid values: `Enabled` and `Disabled`. Defaults to `Enabled`.

func (BucketLifecycleConfigurationRuleOutput) ToBucketLifecycleConfigurationRuleOutput

func (o BucketLifecycleConfigurationRuleOutput) ToBucketLifecycleConfigurationRuleOutput() BucketLifecycleConfigurationRuleOutput

func (BucketLifecycleConfigurationRuleOutput) ToBucketLifecycleConfigurationRuleOutputWithContext

func (o BucketLifecycleConfigurationRuleOutput) ToBucketLifecycleConfigurationRuleOutputWithContext(ctx context.Context) BucketLifecycleConfigurationRuleOutput

type BucketLifecycleConfigurationState

type BucketLifecycleConfigurationState struct {
	// Amazon Resource Name (ARN) of the bucket.
	Bucket pulumi.StringPtrInput
	// Configuration block(s) containing lifecycle rules for the bucket.
	Rules BucketLifecycleConfigurationRuleArrayInput
}

func (BucketLifecycleConfigurationState) ElementType

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 BucketOutput

type BucketOutput struct{ *pulumi.OutputState }

func (BucketOutput) ElementType

func (BucketOutput) ElementType() reflect.Type

func (BucketOutput) ToBucketOutput

func (o BucketOutput) ToBucketOutput() BucketOutput

func (BucketOutput) ToBucketOutputWithContext

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

func (BucketOutput) ToBucketPtrOutput

func (o BucketOutput) ToBucketPtrOutput() BucketPtrOutput

func (BucketOutput) ToBucketPtrOutputWithContext

func (o BucketOutput) ToBucketPtrOutputWithContext(ctx context.Context) BucketPtrOutput

type BucketPolicy

type BucketPolicy struct {
	pulumi.CustomResourceState

	// Amazon Resource Name (ARN) of the bucket.
	Bucket pulumi.StringOutput `pulumi:"bucket"`
	// JSON string of the resource policy.
	Policy pulumi.StringOutput `pulumi:"policy"`
}

Provides a resource to manage an S3 Control Bucket Policy.

> This functionality is for managing [S3 on Outposts](https://docs.aws.amazon.com/AmazonS3/latest/dev/S3onOutposts.html). To manage S3 Bucket Policies in an AWS Partition, see the `s3.BucketPolicy` resource.

## Example Usage

```go package main

import (

"encoding/json"

"github.com/pulumi/pulumi-aws/sdk/v4/go/aws/s3control"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		tmpJSON0, err := json.Marshal(map[string]interface{}{
			"Id": "testBucketPolicy",
			"Statement": []map[string]interface{}{
				map[string]interface{}{
					"Action": "s3-outposts:PutBucketLifecycleConfiguration",
					"Effect": "Deny",
					"Principal": map[string]interface{}{
						"AWS": "*",
					},
					"Resource": aws_s3control_bucket.Example.Arn,
					"Sid":      "statement1",
				},
			},
			"Version": "2012-10-17",
		})
		if err != nil {
			return err
		}
		json0 := string(tmpJSON0)
		_, err := s3control.NewBucketPolicy(ctx, "example", &s3control.BucketPolicyArgs{
			Bucket: pulumi.Any(aws_s3control_bucket.Example.Arn),
			Policy: pulumi.String(json0),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

S3 Control Bucket Policies can be imported using the Amazon Resource Name (ARN), e.g.

```sh

$ pulumi import aws:s3control/bucketPolicy:BucketPolicy example arn:aws:s3-outposts:us-east-1:123456789012:outpost/op-12345678/bucket/example

```

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

func (*BucketPolicy) ToBucketPolicyPtrOutput

func (i *BucketPolicy) ToBucketPolicyPtrOutput() BucketPolicyPtrOutput

func (*BucketPolicy) ToBucketPolicyPtrOutputWithContext

func (i *BucketPolicy) ToBucketPolicyPtrOutputWithContext(ctx context.Context) BucketPolicyPtrOutput

type BucketPolicyArgs

type BucketPolicyArgs struct {
	// Amazon Resource Name (ARN) of the bucket.
	Bucket pulumi.StringInput
	// JSON string of the resource policy.
	Policy pulumi.StringInput
}

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) ElementType

func (BucketPolicyOutput) ElementType() reflect.Type

func (BucketPolicyOutput) ToBucketPolicyOutput

func (o BucketPolicyOutput) ToBucketPolicyOutput() BucketPolicyOutput

func (BucketPolicyOutput) ToBucketPolicyOutputWithContext

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

func (BucketPolicyOutput) ToBucketPolicyPtrOutput

func (o BucketPolicyOutput) ToBucketPolicyPtrOutput() BucketPolicyPtrOutput

func (BucketPolicyOutput) ToBucketPolicyPtrOutputWithContext

func (o BucketPolicyOutput) ToBucketPolicyPtrOutputWithContext(ctx context.Context) BucketPolicyPtrOutput

type BucketPolicyPtrInput

type BucketPolicyPtrInput interface {
	pulumi.Input

	ToBucketPolicyPtrOutput() BucketPolicyPtrOutput
	ToBucketPolicyPtrOutputWithContext(ctx context.Context) BucketPolicyPtrOutput
}

type BucketPolicyPtrOutput

type BucketPolicyPtrOutput struct{ *pulumi.OutputState }

func (BucketPolicyPtrOutput) Elem added in v4.15.0

func (BucketPolicyPtrOutput) ElementType

func (BucketPolicyPtrOutput) ElementType() reflect.Type

func (BucketPolicyPtrOutput) ToBucketPolicyPtrOutput

func (o BucketPolicyPtrOutput) ToBucketPolicyPtrOutput() BucketPolicyPtrOutput

func (BucketPolicyPtrOutput) ToBucketPolicyPtrOutputWithContext

func (o BucketPolicyPtrOutput) ToBucketPolicyPtrOutputWithContext(ctx context.Context) BucketPolicyPtrOutput

type BucketPolicyState

type BucketPolicyState struct {
	// Amazon Resource Name (ARN) of the bucket.
	Bucket pulumi.StringPtrInput
	// JSON string of the resource policy.
	Policy pulumi.StringPtrInput
}

func (BucketPolicyState) ElementType

func (BucketPolicyState) ElementType() reflect.Type

type BucketPtrInput

type BucketPtrInput interface {
	pulumi.Input

	ToBucketPtrOutput() BucketPtrOutput
	ToBucketPtrOutputWithContext(ctx context.Context) BucketPtrOutput
}

type BucketPtrOutput

type BucketPtrOutput struct{ *pulumi.OutputState }

func (BucketPtrOutput) Elem added in v4.15.0

func (o BucketPtrOutput) Elem() BucketOutput

func (BucketPtrOutput) ElementType

func (BucketPtrOutput) ElementType() reflect.Type

func (BucketPtrOutput) ToBucketPtrOutput

func (o BucketPtrOutput) ToBucketPtrOutput() BucketPtrOutput

func (BucketPtrOutput) ToBucketPtrOutputWithContext

func (o BucketPtrOutput) ToBucketPtrOutputWithContext(ctx context.Context) BucketPtrOutput

type BucketState

type BucketState struct {
	// Amazon Resource Name (ARN) of the bucket.
	Arn pulumi.StringPtrInput
	// Name of the bucket.
	Bucket pulumi.StringPtrInput
	// UTC creation date in [RFC3339 format](https://tools.ietf.org/html/rfc3339#section-5.8).
	CreationDate pulumi.StringPtrInput
	// Identifier of the Outpost to contain this bucket.
	OutpostId pulumi.StringPtrInput
	// Boolean whether Public Access Block is enabled.
	PublicAccessBlockEnabled pulumi.BoolPtrInput
	// Key-value map of resource tags. .If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
	Tags pulumi.StringMapInput
	// A map of tags assigned to the resource, including those inherited from the provider .
	TagsAll pulumi.StringMapInput
}

func (BucketState) ElementType

func (BucketState) ElementType() reflect.Type

Jump to

Keyboard shortcuts

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