s3control

package
v3.38.1 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 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.
	Tags pulumi.StringMapOutput `pulumi:"tags"`
}

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/v3/go/aws/s3control"
"github.com/pulumi/pulumi/sdk/v2/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 added in v3.13.0

func (*Bucket) ElementType() reflect.Type

func (*Bucket) ToBucketOutput added in v3.13.0

func (i *Bucket) ToBucketOutput() BucketOutput

func (*Bucket) ToBucketOutputWithContext added in v3.13.0

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

func (*Bucket) ToBucketPtrOutput added in v3.25.0

func (i *Bucket) ToBucketPtrOutput() BucketPtrOutput

func (*Bucket) ToBucketPtrOutputWithContext added in v3.25.0

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.
	Tags pulumi.StringMapInput
}

The set of arguments for constructing a Bucket resource.

func (BucketArgs) ElementType

func (BucketArgs) ElementType() reflect.Type

type BucketArray added in v3.25.0

type BucketArray []BucketInput

func (BucketArray) ElementType added in v3.25.0

func (BucketArray) ElementType() reflect.Type

func (BucketArray) ToBucketArrayOutput added in v3.25.0

func (i BucketArray) ToBucketArrayOutput() BucketArrayOutput

func (BucketArray) ToBucketArrayOutputWithContext added in v3.25.0

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

type BucketArrayInput added in v3.25.0

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 added in v3.25.0

type BucketArrayOutput struct{ *pulumi.OutputState }

func (BucketArrayOutput) ElementType added in v3.25.0

func (BucketArrayOutput) ElementType() reflect.Type

func (BucketArrayOutput) Index added in v3.25.0

func (BucketArrayOutput) ToBucketArrayOutput added in v3.25.0

func (o BucketArrayOutput) ToBucketArrayOutput() BucketArrayOutput

func (BucketArrayOutput) ToBucketArrayOutputWithContext added in v3.25.0

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

type BucketInput added in v3.13.0

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/v3/go/aws/s3control"
"github.com/pulumi/pulumi/sdk/v2/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 added in v3.13.0

func (*BucketLifecycleConfiguration) ElementType() reflect.Type

func (*BucketLifecycleConfiguration) ToBucketLifecycleConfigurationOutput added in v3.13.0

func (i *BucketLifecycleConfiguration) ToBucketLifecycleConfigurationOutput() BucketLifecycleConfigurationOutput

func (*BucketLifecycleConfiguration) ToBucketLifecycleConfigurationOutputWithContext added in v3.13.0

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

func (*BucketLifecycleConfiguration) ToBucketLifecycleConfigurationPtrOutput added in v3.25.0

func (i *BucketLifecycleConfiguration) ToBucketLifecycleConfigurationPtrOutput() BucketLifecycleConfigurationPtrOutput

func (*BucketLifecycleConfiguration) ToBucketLifecycleConfigurationPtrOutputWithContext added in v3.25.0

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 added in v3.25.0

type BucketLifecycleConfigurationArray []BucketLifecycleConfigurationInput

func (BucketLifecycleConfigurationArray) ElementType added in v3.25.0

func (BucketLifecycleConfigurationArray) ToBucketLifecycleConfigurationArrayOutput added in v3.25.0

func (i BucketLifecycleConfigurationArray) ToBucketLifecycleConfigurationArrayOutput() BucketLifecycleConfigurationArrayOutput

func (BucketLifecycleConfigurationArray) ToBucketLifecycleConfigurationArrayOutputWithContext added in v3.25.0

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

type BucketLifecycleConfigurationArrayInput added in v3.25.0

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 added in v3.25.0

type BucketLifecycleConfigurationArrayOutput struct{ *pulumi.OutputState }

func (BucketLifecycleConfigurationArrayOutput) ElementType added in v3.25.0

func (BucketLifecycleConfigurationArrayOutput) Index added in v3.25.0

func (BucketLifecycleConfigurationArrayOutput) ToBucketLifecycleConfigurationArrayOutput added in v3.25.0

func (o BucketLifecycleConfigurationArrayOutput) ToBucketLifecycleConfigurationArrayOutput() BucketLifecycleConfigurationArrayOutput

func (BucketLifecycleConfigurationArrayOutput) ToBucketLifecycleConfigurationArrayOutputWithContext added in v3.25.0

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

type BucketLifecycleConfigurationInput added in v3.13.0

type BucketLifecycleConfigurationInput interface {
	pulumi.Input

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

type BucketLifecycleConfigurationMap added in v3.25.0

type BucketLifecycleConfigurationMap map[string]BucketLifecycleConfigurationInput

func (BucketLifecycleConfigurationMap) ElementType added in v3.25.0

func (BucketLifecycleConfigurationMap) ToBucketLifecycleConfigurationMapOutput added in v3.25.0

func (i BucketLifecycleConfigurationMap) ToBucketLifecycleConfigurationMapOutput() BucketLifecycleConfigurationMapOutput

func (BucketLifecycleConfigurationMap) ToBucketLifecycleConfigurationMapOutputWithContext added in v3.25.0

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

type BucketLifecycleConfigurationMapInput added in v3.25.0

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 added in v3.25.0

type BucketLifecycleConfigurationMapOutput struct{ *pulumi.OutputState }

func (BucketLifecycleConfigurationMapOutput) ElementType added in v3.25.0

func (BucketLifecycleConfigurationMapOutput) MapIndex added in v3.25.0

func (BucketLifecycleConfigurationMapOutput) ToBucketLifecycleConfigurationMapOutput added in v3.25.0

func (o BucketLifecycleConfigurationMapOutput) ToBucketLifecycleConfigurationMapOutput() BucketLifecycleConfigurationMapOutput

func (BucketLifecycleConfigurationMapOutput) ToBucketLifecycleConfigurationMapOutputWithContext added in v3.25.0

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

type BucketLifecycleConfigurationOutput added in v3.13.0

type BucketLifecycleConfigurationOutput struct {
	*pulumi.OutputState
}

func (BucketLifecycleConfigurationOutput) ElementType added in v3.13.0

func (BucketLifecycleConfigurationOutput) ToBucketLifecycleConfigurationOutput added in v3.13.0

func (o BucketLifecycleConfigurationOutput) ToBucketLifecycleConfigurationOutput() BucketLifecycleConfigurationOutput

func (BucketLifecycleConfigurationOutput) ToBucketLifecycleConfigurationOutputWithContext added in v3.13.0

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

func (BucketLifecycleConfigurationOutput) ToBucketLifecycleConfigurationPtrOutput added in v3.25.0

func (o BucketLifecycleConfigurationOutput) ToBucketLifecycleConfigurationPtrOutput() BucketLifecycleConfigurationPtrOutput

func (BucketLifecycleConfigurationOutput) ToBucketLifecycleConfigurationPtrOutputWithContext added in v3.25.0

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

type BucketLifecycleConfigurationPtrInput added in v3.25.0

type BucketLifecycleConfigurationPtrInput interface {
	pulumi.Input

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

type BucketLifecycleConfigurationPtrOutput added in v3.25.0

type BucketLifecycleConfigurationPtrOutput struct {
	*pulumi.OutputState
}

func (BucketLifecycleConfigurationPtrOutput) ElementType added in v3.25.0

func (BucketLifecycleConfigurationPtrOutput) ToBucketLifecycleConfigurationPtrOutput added in v3.25.0

func (o BucketLifecycleConfigurationPtrOutput) ToBucketLifecycleConfigurationPtrOutput() BucketLifecycleConfigurationPtrOutput

func (BucketLifecycleConfigurationPtrOutput) ToBucketLifecycleConfigurationPtrOutputWithContext added in v3.25.0

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 added in v3.25.0

type BucketMap map[string]BucketInput

func (BucketMap) ElementType added in v3.25.0

func (BucketMap) ElementType() reflect.Type

func (BucketMap) ToBucketMapOutput added in v3.25.0

func (i BucketMap) ToBucketMapOutput() BucketMapOutput

func (BucketMap) ToBucketMapOutputWithContext added in v3.25.0

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

type BucketMapInput added in v3.25.0

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 added in v3.25.0

type BucketMapOutput struct{ *pulumi.OutputState }

func (BucketMapOutput) ElementType added in v3.25.0

func (BucketMapOutput) ElementType() reflect.Type

func (BucketMapOutput) MapIndex added in v3.25.0

func (BucketMapOutput) ToBucketMapOutput added in v3.25.0

func (o BucketMapOutput) ToBucketMapOutput() BucketMapOutput

func (BucketMapOutput) ToBucketMapOutputWithContext added in v3.25.0

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

type BucketOutput added in v3.13.0

type BucketOutput struct {
	*pulumi.OutputState
}

func (BucketOutput) ElementType added in v3.13.0

func (BucketOutput) ElementType() reflect.Type

func (BucketOutput) ToBucketOutput added in v3.13.0

func (o BucketOutput) ToBucketOutput() BucketOutput

func (BucketOutput) ToBucketOutputWithContext added in v3.13.0

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

func (BucketOutput) ToBucketPtrOutput added in v3.25.0

func (o BucketOutput) ToBucketPtrOutput() BucketPtrOutput

func (BucketOutput) ToBucketPtrOutputWithContext added in v3.25.0

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/v3/go/aws/s3control"
"github.com/pulumi/pulumi/sdk/v2/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 added in v3.13.0

func (*BucketPolicy) ElementType() reflect.Type

func (*BucketPolicy) ToBucketPolicyOutput added in v3.13.0

func (i *BucketPolicy) ToBucketPolicyOutput() BucketPolicyOutput

func (*BucketPolicy) ToBucketPolicyOutputWithContext added in v3.13.0

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

func (*BucketPolicy) ToBucketPolicyPtrOutput added in v3.25.0

func (i *BucketPolicy) ToBucketPolicyPtrOutput() BucketPolicyPtrOutput

func (*BucketPolicy) ToBucketPolicyPtrOutputWithContext added in v3.25.0

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 added in v3.25.0

type BucketPolicyArray []BucketPolicyInput

func (BucketPolicyArray) ElementType added in v3.25.0

func (BucketPolicyArray) ElementType() reflect.Type

func (BucketPolicyArray) ToBucketPolicyArrayOutput added in v3.25.0

func (i BucketPolicyArray) ToBucketPolicyArrayOutput() BucketPolicyArrayOutput

func (BucketPolicyArray) ToBucketPolicyArrayOutputWithContext added in v3.25.0

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

type BucketPolicyArrayInput added in v3.25.0

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 added in v3.25.0

type BucketPolicyArrayOutput struct{ *pulumi.OutputState }

func (BucketPolicyArrayOutput) ElementType added in v3.25.0

func (BucketPolicyArrayOutput) ElementType() reflect.Type

func (BucketPolicyArrayOutput) Index added in v3.25.0

func (BucketPolicyArrayOutput) ToBucketPolicyArrayOutput added in v3.25.0

func (o BucketPolicyArrayOutput) ToBucketPolicyArrayOutput() BucketPolicyArrayOutput

func (BucketPolicyArrayOutput) ToBucketPolicyArrayOutputWithContext added in v3.25.0

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

type BucketPolicyInput added in v3.13.0

type BucketPolicyInput interface {
	pulumi.Input

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

type BucketPolicyMap added in v3.25.0

type BucketPolicyMap map[string]BucketPolicyInput

func (BucketPolicyMap) ElementType added in v3.25.0

func (BucketPolicyMap) ElementType() reflect.Type

func (BucketPolicyMap) ToBucketPolicyMapOutput added in v3.25.0

func (i BucketPolicyMap) ToBucketPolicyMapOutput() BucketPolicyMapOutput

func (BucketPolicyMap) ToBucketPolicyMapOutputWithContext added in v3.25.0

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

type BucketPolicyMapInput added in v3.25.0

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 added in v3.25.0

type BucketPolicyMapOutput struct{ *pulumi.OutputState }

func (BucketPolicyMapOutput) ElementType added in v3.25.0

func (BucketPolicyMapOutput) ElementType() reflect.Type

func (BucketPolicyMapOutput) MapIndex added in v3.25.0

func (BucketPolicyMapOutput) ToBucketPolicyMapOutput added in v3.25.0

func (o BucketPolicyMapOutput) ToBucketPolicyMapOutput() BucketPolicyMapOutput

func (BucketPolicyMapOutput) ToBucketPolicyMapOutputWithContext added in v3.25.0

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

type BucketPolicyOutput added in v3.13.0

type BucketPolicyOutput struct {
	*pulumi.OutputState
}

func (BucketPolicyOutput) ElementType added in v3.13.0

func (BucketPolicyOutput) ElementType() reflect.Type

func (BucketPolicyOutput) ToBucketPolicyOutput added in v3.13.0

func (o BucketPolicyOutput) ToBucketPolicyOutput() BucketPolicyOutput

func (BucketPolicyOutput) ToBucketPolicyOutputWithContext added in v3.13.0

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

func (BucketPolicyOutput) ToBucketPolicyPtrOutput added in v3.25.0

func (o BucketPolicyOutput) ToBucketPolicyPtrOutput() BucketPolicyPtrOutput

func (BucketPolicyOutput) ToBucketPolicyPtrOutputWithContext added in v3.25.0

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

type BucketPolicyPtrInput added in v3.25.0

type BucketPolicyPtrInput interface {
	pulumi.Input

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

type BucketPolicyPtrOutput added in v3.25.0

type BucketPolicyPtrOutput struct {
	*pulumi.OutputState
}

func (BucketPolicyPtrOutput) ElementType added in v3.25.0

func (BucketPolicyPtrOutput) ElementType() reflect.Type

func (BucketPolicyPtrOutput) ToBucketPolicyPtrOutput added in v3.25.0

func (o BucketPolicyPtrOutput) ToBucketPolicyPtrOutput() BucketPolicyPtrOutput

func (BucketPolicyPtrOutput) ToBucketPolicyPtrOutputWithContext added in v3.25.0

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 added in v3.25.0

type BucketPtrInput interface {
	pulumi.Input

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

type BucketPtrOutput added in v3.25.0

type BucketPtrOutput struct {
	*pulumi.OutputState
}

func (BucketPtrOutput) ElementType added in v3.25.0

func (BucketPtrOutput) ElementType() reflect.Type

func (BucketPtrOutput) ToBucketPtrOutput added in v3.25.0

func (o BucketPtrOutput) ToBucketPtrOutput() BucketPtrOutput

func (BucketPtrOutput) ToBucketPtrOutputWithContext added in v3.25.0

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.
	Tags 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