lightsail

package
v5.43.0 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2023 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 added in v5.27.0

type Bucket struct {
	pulumi.CustomResourceState

	// The ARN of the lightsail bucket.
	Arn pulumi.StringOutput `pulumi:"arn"`
	// The resource Availability Zone. Follows the format us-east-2a (case-sensitive).
	AvailabilityZone pulumi.StringOutput `pulumi:"availabilityZone"`
	// The ID of the bundle to use for the bucket. A bucket bundle specifies the monthly cost, storage space, and data transfer quota for a bucket. Use the [get-bucket-bundles](https://docs.aws.amazon.com/cli/latest/reference/lightsail/get-bucket-bundles.html) cli command to get a list of bundle IDs that you can specify.
	BundleId pulumi.StringOutput `pulumi:"bundleId"`
	// The timestamp when the bucket was created.
	CreatedAt pulumi.StringOutput `pulumi:"createdAt"`
	// The name for the bucket.
	Name pulumi.StringOutput `pulumi:"name"`
	// The Amazon Web Services Region name.
	Region pulumi.StringOutput `pulumi:"region"`
	// The support code for the resource. Include this code in your email to support when you have questions about a resource in Lightsail. This code enables our support team to look up your Lightsail information more easily.
	SupportCode pulumi.StringOutput `pulumi:"supportCode"`
	// A map of tags to assign to the resource. To create a key-only tag, use an empty string as the value. 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 `defaultTags` configuration block.
	TagsAll pulumi.StringMapOutput `pulumi:"tagsAll"`
	Url     pulumi.StringOutput    `pulumi:"url"`
}

Provides a lightsail bucket.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-aws/sdk/v5/go/aws/lightsail"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := lightsail.NewBucket(ctx, "test", &lightsail.BucketArgs{
			BundleId: pulumi.String("small_1_0"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

`aws_lightsail_bucket` can be imported by using the `name` attribute, e.g.,

```sh

$ pulumi import aws:lightsail/bucket:Bucket test example-bucket

```

func GetBucket added in v5.27.0

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 added in v5.27.0

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 v5.27.0

func (*Bucket) ElementType() reflect.Type

func (*Bucket) ToBucketOutput added in v5.27.0

func (i *Bucket) ToBucketOutput() BucketOutput

func (*Bucket) ToBucketOutputWithContext added in v5.27.0

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

type BucketAccessKey added in v5.30.0

type BucketAccessKey struct {
	pulumi.CustomResourceState

	// The ID of the access key.
	AccessKeyId pulumi.StringOutput `pulumi:"accessKeyId"`
	// The name of the bucket that the new access key will belong to, and grant access to.
	BucketName pulumi.StringOutput `pulumi:"bucketName"`
	// The timestamp when the access key was created.
	CreatedAt pulumi.StringOutput `pulumi:"createdAt"`
	// The secret access key used to sign requests. This attribute is not available for imported resources. Note that this will be written to the state file.
	SecretAccessKey pulumi.StringOutput `pulumi:"secretAccessKey"`
	// The status of the access key.
	Status pulumi.StringOutput `pulumi:"status"`
}

Provides a lightsail bucket access key. This is a set of credentials that allow API requests to be made to the lightsail bucket.

## Import

`aws_lightsail_bucket_access_key` can be imported by using the `id` attribute, e.g.,

```sh

$ pulumi import aws:lightsail/bucketAccessKey:BucketAccessKey test example-bucket,AKIA47VOQ2KPR7LLRZ6D

```

func GetBucketAccessKey added in v5.30.0

func GetBucketAccessKey(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *BucketAccessKeyState, opts ...pulumi.ResourceOption) (*BucketAccessKey, error)

GetBucketAccessKey gets an existing BucketAccessKey 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 NewBucketAccessKey added in v5.30.0

func NewBucketAccessKey(ctx *pulumi.Context,
	name string, args *BucketAccessKeyArgs, opts ...pulumi.ResourceOption) (*BucketAccessKey, error)

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

func (*BucketAccessKey) ElementType added in v5.30.0

func (*BucketAccessKey) ElementType() reflect.Type

func (*BucketAccessKey) ToBucketAccessKeyOutput added in v5.30.0

func (i *BucketAccessKey) ToBucketAccessKeyOutput() BucketAccessKeyOutput

func (*BucketAccessKey) ToBucketAccessKeyOutputWithContext added in v5.30.0

func (i *BucketAccessKey) ToBucketAccessKeyOutputWithContext(ctx context.Context) BucketAccessKeyOutput

type BucketAccessKeyArgs added in v5.30.0

type BucketAccessKeyArgs struct {
	// The name of the bucket that the new access key will belong to, and grant access to.
	BucketName pulumi.StringInput
}

The set of arguments for constructing a BucketAccessKey resource.

func (BucketAccessKeyArgs) ElementType added in v5.30.0

func (BucketAccessKeyArgs) ElementType() reflect.Type

type BucketAccessKeyArray added in v5.30.0

type BucketAccessKeyArray []BucketAccessKeyInput

func (BucketAccessKeyArray) ElementType added in v5.30.0

func (BucketAccessKeyArray) ElementType() reflect.Type

func (BucketAccessKeyArray) ToBucketAccessKeyArrayOutput added in v5.30.0

func (i BucketAccessKeyArray) ToBucketAccessKeyArrayOutput() BucketAccessKeyArrayOutput

func (BucketAccessKeyArray) ToBucketAccessKeyArrayOutputWithContext added in v5.30.0

func (i BucketAccessKeyArray) ToBucketAccessKeyArrayOutputWithContext(ctx context.Context) BucketAccessKeyArrayOutput

type BucketAccessKeyArrayInput added in v5.30.0

type BucketAccessKeyArrayInput interface {
	pulumi.Input

	ToBucketAccessKeyArrayOutput() BucketAccessKeyArrayOutput
	ToBucketAccessKeyArrayOutputWithContext(context.Context) BucketAccessKeyArrayOutput
}

BucketAccessKeyArrayInput is an input type that accepts BucketAccessKeyArray and BucketAccessKeyArrayOutput values. You can construct a concrete instance of `BucketAccessKeyArrayInput` via:

BucketAccessKeyArray{ BucketAccessKeyArgs{...} }

type BucketAccessKeyArrayOutput added in v5.30.0

type BucketAccessKeyArrayOutput struct{ *pulumi.OutputState }

func (BucketAccessKeyArrayOutput) ElementType added in v5.30.0

func (BucketAccessKeyArrayOutput) ElementType() reflect.Type

func (BucketAccessKeyArrayOutput) Index added in v5.30.0

func (BucketAccessKeyArrayOutput) ToBucketAccessKeyArrayOutput added in v5.30.0

func (o BucketAccessKeyArrayOutput) ToBucketAccessKeyArrayOutput() BucketAccessKeyArrayOutput

func (BucketAccessKeyArrayOutput) ToBucketAccessKeyArrayOutputWithContext added in v5.30.0

func (o BucketAccessKeyArrayOutput) ToBucketAccessKeyArrayOutputWithContext(ctx context.Context) BucketAccessKeyArrayOutput

type BucketAccessKeyInput added in v5.30.0

type BucketAccessKeyInput interface {
	pulumi.Input

	ToBucketAccessKeyOutput() BucketAccessKeyOutput
	ToBucketAccessKeyOutputWithContext(ctx context.Context) BucketAccessKeyOutput
}

type BucketAccessKeyMap added in v5.30.0

type BucketAccessKeyMap map[string]BucketAccessKeyInput

func (BucketAccessKeyMap) ElementType added in v5.30.0

func (BucketAccessKeyMap) ElementType() reflect.Type

func (BucketAccessKeyMap) ToBucketAccessKeyMapOutput added in v5.30.0

func (i BucketAccessKeyMap) ToBucketAccessKeyMapOutput() BucketAccessKeyMapOutput

func (BucketAccessKeyMap) ToBucketAccessKeyMapOutputWithContext added in v5.30.0

func (i BucketAccessKeyMap) ToBucketAccessKeyMapOutputWithContext(ctx context.Context) BucketAccessKeyMapOutput

type BucketAccessKeyMapInput added in v5.30.0

type BucketAccessKeyMapInput interface {
	pulumi.Input

	ToBucketAccessKeyMapOutput() BucketAccessKeyMapOutput
	ToBucketAccessKeyMapOutputWithContext(context.Context) BucketAccessKeyMapOutput
}

BucketAccessKeyMapInput is an input type that accepts BucketAccessKeyMap and BucketAccessKeyMapOutput values. You can construct a concrete instance of `BucketAccessKeyMapInput` via:

BucketAccessKeyMap{ "key": BucketAccessKeyArgs{...} }

type BucketAccessKeyMapOutput added in v5.30.0

type BucketAccessKeyMapOutput struct{ *pulumi.OutputState }

func (BucketAccessKeyMapOutput) ElementType added in v5.30.0

func (BucketAccessKeyMapOutput) ElementType() reflect.Type

func (BucketAccessKeyMapOutput) MapIndex added in v5.30.0

func (BucketAccessKeyMapOutput) ToBucketAccessKeyMapOutput added in v5.30.0

func (o BucketAccessKeyMapOutput) ToBucketAccessKeyMapOutput() BucketAccessKeyMapOutput

func (BucketAccessKeyMapOutput) ToBucketAccessKeyMapOutputWithContext added in v5.30.0

func (o BucketAccessKeyMapOutput) ToBucketAccessKeyMapOutputWithContext(ctx context.Context) BucketAccessKeyMapOutput

type BucketAccessKeyOutput added in v5.30.0

type BucketAccessKeyOutput struct{ *pulumi.OutputState }

func (BucketAccessKeyOutput) AccessKeyId added in v5.30.0

func (o BucketAccessKeyOutput) AccessKeyId() pulumi.StringOutput

The ID of the access key.

func (BucketAccessKeyOutput) BucketName added in v5.30.0

func (o BucketAccessKeyOutput) BucketName() pulumi.StringOutput

The name of the bucket that the new access key will belong to, and grant access to.

func (BucketAccessKeyOutput) CreatedAt added in v5.30.0

The timestamp when the access key was created.

func (BucketAccessKeyOutput) ElementType added in v5.30.0

func (BucketAccessKeyOutput) ElementType() reflect.Type

func (BucketAccessKeyOutput) SecretAccessKey added in v5.30.0

func (o BucketAccessKeyOutput) SecretAccessKey() pulumi.StringOutput

The secret access key used to sign requests. This attribute is not available for imported resources. Note that this will be written to the state file.

func (BucketAccessKeyOutput) Status added in v5.30.0

The status of the access key.

func (BucketAccessKeyOutput) ToBucketAccessKeyOutput added in v5.30.0

func (o BucketAccessKeyOutput) ToBucketAccessKeyOutput() BucketAccessKeyOutput

func (BucketAccessKeyOutput) ToBucketAccessKeyOutputWithContext added in v5.30.0

func (o BucketAccessKeyOutput) ToBucketAccessKeyOutputWithContext(ctx context.Context) BucketAccessKeyOutput

type BucketAccessKeyState added in v5.30.0

type BucketAccessKeyState struct {
	// The ID of the access key.
	AccessKeyId pulumi.StringPtrInput
	// The name of the bucket that the new access key will belong to, and grant access to.
	BucketName pulumi.StringPtrInput
	// The timestamp when the access key was created.
	CreatedAt pulumi.StringPtrInput
	// The secret access key used to sign requests. This attribute is not available for imported resources. Note that this will be written to the state file.
	SecretAccessKey pulumi.StringPtrInput
	// The status of the access key.
	Status pulumi.StringPtrInput
}

func (BucketAccessKeyState) ElementType added in v5.30.0

func (BucketAccessKeyState) ElementType() reflect.Type

type BucketArgs added in v5.27.0

type BucketArgs struct {
	// The ID of the bundle to use for the bucket. A bucket bundle specifies the monthly cost, storage space, and data transfer quota for a bucket. Use the [get-bucket-bundles](https://docs.aws.amazon.com/cli/latest/reference/lightsail/get-bucket-bundles.html) cli command to get a list of bundle IDs that you can specify.
	BundleId pulumi.StringInput
	// The name for the bucket.
	Name pulumi.StringPtrInput
	// A map of tags to assign to the resource. To create a key-only tag, use an empty string as the value. 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 added in v5.27.0

func (BucketArgs) ElementType() reflect.Type

type BucketArray added in v5.27.0

type BucketArray []BucketInput

func (BucketArray) ElementType added in v5.27.0

func (BucketArray) ElementType() reflect.Type

func (BucketArray) ToBucketArrayOutput added in v5.27.0

func (i BucketArray) ToBucketArrayOutput() BucketArrayOutput

func (BucketArray) ToBucketArrayOutputWithContext added in v5.27.0

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

type BucketArrayInput added in v5.27.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 v5.27.0

type BucketArrayOutput struct{ *pulumi.OutputState }

func (BucketArrayOutput) ElementType added in v5.27.0

func (BucketArrayOutput) ElementType() reflect.Type

func (BucketArrayOutput) Index added in v5.27.0

func (BucketArrayOutput) ToBucketArrayOutput added in v5.27.0

func (o BucketArrayOutput) ToBucketArrayOutput() BucketArrayOutput

func (BucketArrayOutput) ToBucketArrayOutputWithContext added in v5.27.0

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

type BucketInput added in v5.27.0

type BucketInput interface {
	pulumi.Input

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

type BucketMap added in v5.27.0

type BucketMap map[string]BucketInput

func (BucketMap) ElementType added in v5.27.0

func (BucketMap) ElementType() reflect.Type

func (BucketMap) ToBucketMapOutput added in v5.27.0

func (i BucketMap) ToBucketMapOutput() BucketMapOutput

func (BucketMap) ToBucketMapOutputWithContext added in v5.27.0

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

type BucketMapInput added in v5.27.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 v5.27.0

type BucketMapOutput struct{ *pulumi.OutputState }

func (BucketMapOutput) ElementType added in v5.27.0

func (BucketMapOutput) ElementType() reflect.Type

func (BucketMapOutput) MapIndex added in v5.27.0

func (BucketMapOutput) ToBucketMapOutput added in v5.27.0

func (o BucketMapOutput) ToBucketMapOutput() BucketMapOutput

func (BucketMapOutput) ToBucketMapOutputWithContext added in v5.27.0

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

type BucketOutput added in v5.27.0

type BucketOutput struct{ *pulumi.OutputState }

func (BucketOutput) Arn added in v5.27.0

The ARN of the lightsail bucket.

func (BucketOutput) AvailabilityZone added in v5.27.0

func (o BucketOutput) AvailabilityZone() pulumi.StringOutput

The resource Availability Zone. Follows the format us-east-2a (case-sensitive).

func (BucketOutput) BundleId added in v5.27.0

func (o BucketOutput) BundleId() pulumi.StringOutput

The ID of the bundle to use for the bucket. A bucket bundle specifies the monthly cost, storage space, and data transfer quota for a bucket. Use the [get-bucket-bundles](https://docs.aws.amazon.com/cli/latest/reference/lightsail/get-bucket-bundles.html) cli command to get a list of bundle IDs that you can specify.

func (BucketOutput) CreatedAt added in v5.27.0

func (o BucketOutput) CreatedAt() pulumi.StringOutput

The timestamp when the bucket was created.

func (BucketOutput) ElementType added in v5.27.0

func (BucketOutput) ElementType() reflect.Type

func (BucketOutput) Name added in v5.27.0

func (o BucketOutput) Name() pulumi.StringOutput

The name for the bucket.

func (BucketOutput) Region added in v5.27.0

func (o BucketOutput) Region() pulumi.StringOutput

The Amazon Web Services Region name.

func (BucketOutput) SupportCode added in v5.27.0

func (o BucketOutput) SupportCode() pulumi.StringOutput

The support code for the resource. Include this code in your email to support when you have questions about a resource in Lightsail. This code enables our support team to look up your Lightsail information more easily.

func (BucketOutput) Tags added in v5.27.0

A map of tags to assign to the resource. To create a key-only tag, use an empty string as the value. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.

func (BucketOutput) TagsAll added in v5.27.0

func (o BucketOutput) TagsAll() pulumi.StringMapOutput

A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.

func (BucketOutput) ToBucketOutput added in v5.27.0

func (o BucketOutput) ToBucketOutput() BucketOutput

func (BucketOutput) ToBucketOutputWithContext added in v5.27.0

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

func (BucketOutput) Url added in v5.27.0

type BucketResourceAccess added in v5.31.0

type BucketResourceAccess struct {
	pulumi.CustomResourceState

	// The name of the bucket to grant access to.
	BucketName pulumi.StringOutput `pulumi:"bucketName"`
	// The name of the resource to be granted bucket access.
	ResourceName pulumi.StringOutput `pulumi:"resourceName"`
}

Provides a lightsail resource access to a bucket.

## Import

`aws_lightsail_bucket_resource_access` can be imported by using the `id` attribute, e.g.,

```sh

$ pulumi import aws:lightsail/bucketResourceAccess:BucketResourceAccess test example-bucket,example-instance

```

func GetBucketResourceAccess added in v5.31.0

func GetBucketResourceAccess(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *BucketResourceAccessState, opts ...pulumi.ResourceOption) (*BucketResourceAccess, error)

GetBucketResourceAccess gets an existing BucketResourceAccess 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 NewBucketResourceAccess added in v5.31.0

func NewBucketResourceAccess(ctx *pulumi.Context,
	name string, args *BucketResourceAccessArgs, opts ...pulumi.ResourceOption) (*BucketResourceAccess, error)

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

func (*BucketResourceAccess) ElementType added in v5.31.0

func (*BucketResourceAccess) ElementType() reflect.Type

func (*BucketResourceAccess) ToBucketResourceAccessOutput added in v5.31.0

func (i *BucketResourceAccess) ToBucketResourceAccessOutput() BucketResourceAccessOutput

func (*BucketResourceAccess) ToBucketResourceAccessOutputWithContext added in v5.31.0

func (i *BucketResourceAccess) ToBucketResourceAccessOutputWithContext(ctx context.Context) BucketResourceAccessOutput

type BucketResourceAccessArgs added in v5.31.0

type BucketResourceAccessArgs struct {
	// The name of the bucket to grant access to.
	BucketName pulumi.StringInput
	// The name of the resource to be granted bucket access.
	ResourceName pulumi.StringInput
}

The set of arguments for constructing a BucketResourceAccess resource.

func (BucketResourceAccessArgs) ElementType added in v5.31.0

func (BucketResourceAccessArgs) ElementType() reflect.Type

type BucketResourceAccessArray added in v5.31.0

type BucketResourceAccessArray []BucketResourceAccessInput

func (BucketResourceAccessArray) ElementType added in v5.31.0

func (BucketResourceAccessArray) ElementType() reflect.Type

func (BucketResourceAccessArray) ToBucketResourceAccessArrayOutput added in v5.31.0

func (i BucketResourceAccessArray) ToBucketResourceAccessArrayOutput() BucketResourceAccessArrayOutput

func (BucketResourceAccessArray) ToBucketResourceAccessArrayOutputWithContext added in v5.31.0

func (i BucketResourceAccessArray) ToBucketResourceAccessArrayOutputWithContext(ctx context.Context) BucketResourceAccessArrayOutput

type BucketResourceAccessArrayInput added in v5.31.0

type BucketResourceAccessArrayInput interface {
	pulumi.Input

	ToBucketResourceAccessArrayOutput() BucketResourceAccessArrayOutput
	ToBucketResourceAccessArrayOutputWithContext(context.Context) BucketResourceAccessArrayOutput
}

BucketResourceAccessArrayInput is an input type that accepts BucketResourceAccessArray and BucketResourceAccessArrayOutput values. You can construct a concrete instance of `BucketResourceAccessArrayInput` via:

BucketResourceAccessArray{ BucketResourceAccessArgs{...} }

type BucketResourceAccessArrayOutput added in v5.31.0

type BucketResourceAccessArrayOutput struct{ *pulumi.OutputState }

func (BucketResourceAccessArrayOutput) ElementType added in v5.31.0

func (BucketResourceAccessArrayOutput) Index added in v5.31.0

func (BucketResourceAccessArrayOutput) ToBucketResourceAccessArrayOutput added in v5.31.0

func (o BucketResourceAccessArrayOutput) ToBucketResourceAccessArrayOutput() BucketResourceAccessArrayOutput

func (BucketResourceAccessArrayOutput) ToBucketResourceAccessArrayOutputWithContext added in v5.31.0

func (o BucketResourceAccessArrayOutput) ToBucketResourceAccessArrayOutputWithContext(ctx context.Context) BucketResourceAccessArrayOutput

type BucketResourceAccessInput added in v5.31.0

type BucketResourceAccessInput interface {
	pulumi.Input

	ToBucketResourceAccessOutput() BucketResourceAccessOutput
	ToBucketResourceAccessOutputWithContext(ctx context.Context) BucketResourceAccessOutput
}

type BucketResourceAccessMap added in v5.31.0

type BucketResourceAccessMap map[string]BucketResourceAccessInput

func (BucketResourceAccessMap) ElementType added in v5.31.0

func (BucketResourceAccessMap) ElementType() reflect.Type

func (BucketResourceAccessMap) ToBucketResourceAccessMapOutput added in v5.31.0

func (i BucketResourceAccessMap) ToBucketResourceAccessMapOutput() BucketResourceAccessMapOutput

func (BucketResourceAccessMap) ToBucketResourceAccessMapOutputWithContext added in v5.31.0

func (i BucketResourceAccessMap) ToBucketResourceAccessMapOutputWithContext(ctx context.Context) BucketResourceAccessMapOutput

type BucketResourceAccessMapInput added in v5.31.0

type BucketResourceAccessMapInput interface {
	pulumi.Input

	ToBucketResourceAccessMapOutput() BucketResourceAccessMapOutput
	ToBucketResourceAccessMapOutputWithContext(context.Context) BucketResourceAccessMapOutput
}

BucketResourceAccessMapInput is an input type that accepts BucketResourceAccessMap and BucketResourceAccessMapOutput values. You can construct a concrete instance of `BucketResourceAccessMapInput` via:

BucketResourceAccessMap{ "key": BucketResourceAccessArgs{...} }

type BucketResourceAccessMapOutput added in v5.31.0

type BucketResourceAccessMapOutput struct{ *pulumi.OutputState }

func (BucketResourceAccessMapOutput) ElementType added in v5.31.0

func (BucketResourceAccessMapOutput) MapIndex added in v5.31.0

func (BucketResourceAccessMapOutput) ToBucketResourceAccessMapOutput added in v5.31.0

func (o BucketResourceAccessMapOutput) ToBucketResourceAccessMapOutput() BucketResourceAccessMapOutput

func (BucketResourceAccessMapOutput) ToBucketResourceAccessMapOutputWithContext added in v5.31.0

func (o BucketResourceAccessMapOutput) ToBucketResourceAccessMapOutputWithContext(ctx context.Context) BucketResourceAccessMapOutput

type BucketResourceAccessOutput added in v5.31.0

type BucketResourceAccessOutput struct{ *pulumi.OutputState }

func (BucketResourceAccessOutput) BucketName added in v5.31.0

The name of the bucket to grant access to.

func (BucketResourceAccessOutput) ElementType added in v5.31.0

func (BucketResourceAccessOutput) ElementType() reflect.Type

func (BucketResourceAccessOutput) ResourceName added in v5.31.0

The name of the resource to be granted bucket access.

func (BucketResourceAccessOutput) ToBucketResourceAccessOutput added in v5.31.0

func (o BucketResourceAccessOutput) ToBucketResourceAccessOutput() BucketResourceAccessOutput

func (BucketResourceAccessOutput) ToBucketResourceAccessOutputWithContext added in v5.31.0

func (o BucketResourceAccessOutput) ToBucketResourceAccessOutputWithContext(ctx context.Context) BucketResourceAccessOutput

type BucketResourceAccessState added in v5.31.0

type BucketResourceAccessState struct {
	// The name of the bucket to grant access to.
	BucketName pulumi.StringPtrInput
	// The name of the resource to be granted bucket access.
	ResourceName pulumi.StringPtrInput
}

func (BucketResourceAccessState) ElementType added in v5.31.0

func (BucketResourceAccessState) ElementType() reflect.Type

type BucketState added in v5.27.0

type BucketState struct {
	// The ARN of the lightsail bucket.
	Arn pulumi.StringPtrInput
	// The resource Availability Zone. Follows the format us-east-2a (case-sensitive).
	AvailabilityZone pulumi.StringPtrInput
	// The ID of the bundle to use for the bucket. A bucket bundle specifies the monthly cost, storage space, and data transfer quota for a bucket. Use the [get-bucket-bundles](https://docs.aws.amazon.com/cli/latest/reference/lightsail/get-bucket-bundles.html) cli command to get a list of bundle IDs that you can specify.
	BundleId pulumi.StringPtrInput
	// The timestamp when the bucket was created.
	CreatedAt pulumi.StringPtrInput
	// The name for the bucket.
	Name pulumi.StringPtrInput
	// The Amazon Web Services Region name.
	Region pulumi.StringPtrInput
	// The support code for the resource. Include this code in your email to support when you have questions about a resource in Lightsail. This code enables our support team to look up your Lightsail information more easily.
	SupportCode pulumi.StringPtrInput
	// A map of tags to assign to the resource. To create a key-only tag, use an empty string as the value. 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 `defaultTags` configuration block.
	TagsAll pulumi.StringMapInput
	Url     pulumi.StringPtrInput
}

func (BucketState) ElementType added in v5.27.0

func (BucketState) ElementType() reflect.Type

type Certificate added in v5.19.0

type Certificate struct {
	pulumi.CustomResourceState

	// The ARN of the lightsail certificate.
	Arn pulumi.StringOutput `pulumi:"arn"`
	// The timestamp when the instance was created.
	CreatedAt pulumi.StringOutput `pulumi:"createdAt"`
	// A domain name for which the certificate should be issued.
	DomainName pulumi.StringOutput `pulumi:"domainName"`
	// Set of domain validation objects which can be used to complete certificate validation. Can have more than one element, e.g., if SANs are defined.
	DomainValidationOptions CertificateDomainValidationOptionArrayOutput `pulumi:"domainValidationOptions"`
	// The name of the Lightsail load balancer.
	Name pulumi.StringOutput `pulumi:"name"`
	// Set of domains that should be SANs in the issued certificate. `domainName` attribute is automatically added as a Subject Alternative Name.
	SubjectAlternativeNames pulumi.StringArrayOutput `pulumi:"subjectAlternativeNames"`
	// A map of tags to assign to the resource. To create a key-only tag, use an empty string as the value. 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 `defaultTags` configuration block.
	TagsAll pulumi.StringMapOutput `pulumi:"tagsAll"`
}

Provides a lightsail certificate.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-aws/sdk/v5/go/aws/lightsail"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := lightsail.NewCertificate(ctx, "test", &lightsail.CertificateArgs{
			DomainName: pulumi.String("testdomain.com"),
			SubjectAlternativeNames: pulumi.StringArray{
				pulumi.String("www.testdomain.com"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

`aws_lightsail_certificate` can be imported using the certificate name, e.g.

```sh

$ pulumi import aws:lightsail/certificate:Certificate test CertificateName

```

func GetCertificate added in v5.19.0

func GetCertificate(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *CertificateState, opts ...pulumi.ResourceOption) (*Certificate, error)

GetCertificate gets an existing Certificate 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 NewCertificate added in v5.19.0

func NewCertificate(ctx *pulumi.Context,
	name string, args *CertificateArgs, opts ...pulumi.ResourceOption) (*Certificate, error)

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

func (*Certificate) ElementType added in v5.19.0

func (*Certificate) ElementType() reflect.Type

func (*Certificate) ToCertificateOutput added in v5.19.0

func (i *Certificate) ToCertificateOutput() CertificateOutput

func (*Certificate) ToCertificateOutputWithContext added in v5.19.0

func (i *Certificate) ToCertificateOutputWithContext(ctx context.Context) CertificateOutput

type CertificateArgs added in v5.19.0

type CertificateArgs struct {
	// A domain name for which the certificate should be issued.
	DomainName pulumi.StringPtrInput
	// The name of the Lightsail load balancer.
	Name pulumi.StringPtrInput
	// Set of domains that should be SANs in the issued certificate. `domainName` attribute is automatically added as a Subject Alternative Name.
	SubjectAlternativeNames pulumi.StringArrayInput
	// A map of tags to assign to the resource. To create a key-only tag, use an empty string as the value. 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 Certificate resource.

func (CertificateArgs) ElementType added in v5.19.0

func (CertificateArgs) ElementType() reflect.Type

type CertificateArray added in v5.19.0

type CertificateArray []CertificateInput

func (CertificateArray) ElementType added in v5.19.0

func (CertificateArray) ElementType() reflect.Type

func (CertificateArray) ToCertificateArrayOutput added in v5.19.0

func (i CertificateArray) ToCertificateArrayOutput() CertificateArrayOutput

func (CertificateArray) ToCertificateArrayOutputWithContext added in v5.19.0

func (i CertificateArray) ToCertificateArrayOutputWithContext(ctx context.Context) CertificateArrayOutput

type CertificateArrayInput added in v5.19.0

type CertificateArrayInput interface {
	pulumi.Input

	ToCertificateArrayOutput() CertificateArrayOutput
	ToCertificateArrayOutputWithContext(context.Context) CertificateArrayOutput
}

CertificateArrayInput is an input type that accepts CertificateArray and CertificateArrayOutput values. You can construct a concrete instance of `CertificateArrayInput` via:

CertificateArray{ CertificateArgs{...} }

type CertificateArrayOutput added in v5.19.0

type CertificateArrayOutput struct{ *pulumi.OutputState }

func (CertificateArrayOutput) ElementType added in v5.19.0

func (CertificateArrayOutput) ElementType() reflect.Type

func (CertificateArrayOutput) Index added in v5.19.0

func (CertificateArrayOutput) ToCertificateArrayOutput added in v5.19.0

func (o CertificateArrayOutput) ToCertificateArrayOutput() CertificateArrayOutput

func (CertificateArrayOutput) ToCertificateArrayOutputWithContext added in v5.19.0

func (o CertificateArrayOutput) ToCertificateArrayOutputWithContext(ctx context.Context) CertificateArrayOutput

type CertificateDomainValidationOption added in v5.19.0

type CertificateDomainValidationOption struct {
	// A domain name for which the certificate should be issued.
	DomainName          *string `pulumi:"domainName"`
	ResourceRecordName  *string `pulumi:"resourceRecordName"`
	ResourceRecordType  *string `pulumi:"resourceRecordType"`
	ResourceRecordValue *string `pulumi:"resourceRecordValue"`
}

type CertificateDomainValidationOptionArgs added in v5.19.0

type CertificateDomainValidationOptionArgs struct {
	// A domain name for which the certificate should be issued.
	DomainName          pulumi.StringPtrInput `pulumi:"domainName"`
	ResourceRecordName  pulumi.StringPtrInput `pulumi:"resourceRecordName"`
	ResourceRecordType  pulumi.StringPtrInput `pulumi:"resourceRecordType"`
	ResourceRecordValue pulumi.StringPtrInput `pulumi:"resourceRecordValue"`
}

func (CertificateDomainValidationOptionArgs) ElementType added in v5.19.0

func (CertificateDomainValidationOptionArgs) ToCertificateDomainValidationOptionOutput added in v5.19.0

func (i CertificateDomainValidationOptionArgs) ToCertificateDomainValidationOptionOutput() CertificateDomainValidationOptionOutput

func (CertificateDomainValidationOptionArgs) ToCertificateDomainValidationOptionOutputWithContext added in v5.19.0

func (i CertificateDomainValidationOptionArgs) ToCertificateDomainValidationOptionOutputWithContext(ctx context.Context) CertificateDomainValidationOptionOutput

type CertificateDomainValidationOptionArray added in v5.19.0

type CertificateDomainValidationOptionArray []CertificateDomainValidationOptionInput

func (CertificateDomainValidationOptionArray) ElementType added in v5.19.0

func (CertificateDomainValidationOptionArray) ToCertificateDomainValidationOptionArrayOutput added in v5.19.0

func (i CertificateDomainValidationOptionArray) ToCertificateDomainValidationOptionArrayOutput() CertificateDomainValidationOptionArrayOutput

func (CertificateDomainValidationOptionArray) ToCertificateDomainValidationOptionArrayOutputWithContext added in v5.19.0

func (i CertificateDomainValidationOptionArray) ToCertificateDomainValidationOptionArrayOutputWithContext(ctx context.Context) CertificateDomainValidationOptionArrayOutput

type CertificateDomainValidationOptionArrayInput added in v5.19.0

type CertificateDomainValidationOptionArrayInput interface {
	pulumi.Input

	ToCertificateDomainValidationOptionArrayOutput() CertificateDomainValidationOptionArrayOutput
	ToCertificateDomainValidationOptionArrayOutputWithContext(context.Context) CertificateDomainValidationOptionArrayOutput
}

CertificateDomainValidationOptionArrayInput is an input type that accepts CertificateDomainValidationOptionArray and CertificateDomainValidationOptionArrayOutput values. You can construct a concrete instance of `CertificateDomainValidationOptionArrayInput` via:

CertificateDomainValidationOptionArray{ CertificateDomainValidationOptionArgs{...} }

type CertificateDomainValidationOptionArrayOutput added in v5.19.0

type CertificateDomainValidationOptionArrayOutput struct{ *pulumi.OutputState }

func (CertificateDomainValidationOptionArrayOutput) ElementType added in v5.19.0

func (CertificateDomainValidationOptionArrayOutput) Index added in v5.19.0

func (CertificateDomainValidationOptionArrayOutput) ToCertificateDomainValidationOptionArrayOutput added in v5.19.0

func (o CertificateDomainValidationOptionArrayOutput) ToCertificateDomainValidationOptionArrayOutput() CertificateDomainValidationOptionArrayOutput

func (CertificateDomainValidationOptionArrayOutput) ToCertificateDomainValidationOptionArrayOutputWithContext added in v5.19.0

func (o CertificateDomainValidationOptionArrayOutput) ToCertificateDomainValidationOptionArrayOutputWithContext(ctx context.Context) CertificateDomainValidationOptionArrayOutput

type CertificateDomainValidationOptionInput added in v5.19.0

type CertificateDomainValidationOptionInput interface {
	pulumi.Input

	ToCertificateDomainValidationOptionOutput() CertificateDomainValidationOptionOutput
	ToCertificateDomainValidationOptionOutputWithContext(context.Context) CertificateDomainValidationOptionOutput
}

CertificateDomainValidationOptionInput is an input type that accepts CertificateDomainValidationOptionArgs and CertificateDomainValidationOptionOutput values. You can construct a concrete instance of `CertificateDomainValidationOptionInput` via:

CertificateDomainValidationOptionArgs{...}

type CertificateDomainValidationOptionOutput added in v5.19.0

type CertificateDomainValidationOptionOutput struct{ *pulumi.OutputState }

func (CertificateDomainValidationOptionOutput) DomainName added in v5.19.0

A domain name for which the certificate should be issued.

func (CertificateDomainValidationOptionOutput) ElementType added in v5.19.0

func (CertificateDomainValidationOptionOutput) ResourceRecordName added in v5.19.0

func (CertificateDomainValidationOptionOutput) ResourceRecordType added in v5.19.0

func (CertificateDomainValidationOptionOutput) ResourceRecordValue added in v5.19.0

func (CertificateDomainValidationOptionOutput) ToCertificateDomainValidationOptionOutput added in v5.19.0

func (o CertificateDomainValidationOptionOutput) ToCertificateDomainValidationOptionOutput() CertificateDomainValidationOptionOutput

func (CertificateDomainValidationOptionOutput) ToCertificateDomainValidationOptionOutputWithContext added in v5.19.0

func (o CertificateDomainValidationOptionOutput) ToCertificateDomainValidationOptionOutputWithContext(ctx context.Context) CertificateDomainValidationOptionOutput

type CertificateInput added in v5.19.0

type CertificateInput interface {
	pulumi.Input

	ToCertificateOutput() CertificateOutput
	ToCertificateOutputWithContext(ctx context.Context) CertificateOutput
}

type CertificateMap added in v5.19.0

type CertificateMap map[string]CertificateInput

func (CertificateMap) ElementType added in v5.19.0

func (CertificateMap) ElementType() reflect.Type

func (CertificateMap) ToCertificateMapOutput added in v5.19.0

func (i CertificateMap) ToCertificateMapOutput() CertificateMapOutput

func (CertificateMap) ToCertificateMapOutputWithContext added in v5.19.0

func (i CertificateMap) ToCertificateMapOutputWithContext(ctx context.Context) CertificateMapOutput

type CertificateMapInput added in v5.19.0

type CertificateMapInput interface {
	pulumi.Input

	ToCertificateMapOutput() CertificateMapOutput
	ToCertificateMapOutputWithContext(context.Context) CertificateMapOutput
}

CertificateMapInput is an input type that accepts CertificateMap and CertificateMapOutput values. You can construct a concrete instance of `CertificateMapInput` via:

CertificateMap{ "key": CertificateArgs{...} }

type CertificateMapOutput added in v5.19.0

type CertificateMapOutput struct{ *pulumi.OutputState }

func (CertificateMapOutput) ElementType added in v5.19.0

func (CertificateMapOutput) ElementType() reflect.Type

func (CertificateMapOutput) MapIndex added in v5.19.0

func (CertificateMapOutput) ToCertificateMapOutput added in v5.19.0

func (o CertificateMapOutput) ToCertificateMapOutput() CertificateMapOutput

func (CertificateMapOutput) ToCertificateMapOutputWithContext added in v5.19.0

func (o CertificateMapOutput) ToCertificateMapOutputWithContext(ctx context.Context) CertificateMapOutput

type CertificateOutput added in v5.19.0

type CertificateOutput struct{ *pulumi.OutputState }

func (CertificateOutput) Arn added in v5.19.0

The ARN of the lightsail certificate.

func (CertificateOutput) CreatedAt added in v5.19.0

func (o CertificateOutput) CreatedAt() pulumi.StringOutput

The timestamp when the instance was created.

func (CertificateOutput) DomainName added in v5.19.0

func (o CertificateOutput) DomainName() pulumi.StringOutput

A domain name for which the certificate should be issued.

func (CertificateOutput) DomainValidationOptions added in v5.19.0

Set of domain validation objects which can be used to complete certificate validation. Can have more than one element, e.g., if SANs are defined.

func (CertificateOutput) ElementType added in v5.19.0

func (CertificateOutput) ElementType() reflect.Type

func (CertificateOutput) Name added in v5.19.0

The name of the Lightsail load balancer.

func (CertificateOutput) SubjectAlternativeNames added in v5.19.0

func (o CertificateOutput) SubjectAlternativeNames() pulumi.StringArrayOutput

Set of domains that should be SANs in the issued certificate. `domainName` attribute is automatically added as a Subject Alternative Name.

func (CertificateOutput) Tags added in v5.19.0

A map of tags to assign to the resource. To create a key-only tag, use an empty string as the value. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.

func (CertificateOutput) TagsAll added in v5.19.0

A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.

func (CertificateOutput) ToCertificateOutput added in v5.19.0

func (o CertificateOutput) ToCertificateOutput() CertificateOutput

func (CertificateOutput) ToCertificateOutputWithContext added in v5.19.0

func (o CertificateOutput) ToCertificateOutputWithContext(ctx context.Context) CertificateOutput

type CertificateState added in v5.19.0

type CertificateState struct {
	// The ARN of the lightsail certificate.
	Arn pulumi.StringPtrInput
	// The timestamp when the instance was created.
	CreatedAt pulumi.StringPtrInput
	// A domain name for which the certificate should be issued.
	DomainName pulumi.StringPtrInput
	// Set of domain validation objects which can be used to complete certificate validation. Can have more than one element, e.g., if SANs are defined.
	DomainValidationOptions CertificateDomainValidationOptionArrayInput
	// The name of the Lightsail load balancer.
	Name pulumi.StringPtrInput
	// Set of domains that should be SANs in the issued certificate. `domainName` attribute is automatically added as a Subject Alternative Name.
	SubjectAlternativeNames pulumi.StringArrayInput
	// A map of tags to assign to the resource. To create a key-only tag, use an empty string as the value. 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 `defaultTags` configuration block.
	TagsAll pulumi.StringMapInput
}

func (CertificateState) ElementType added in v5.19.0

func (CertificateState) ElementType() reflect.Type

type ContainerService added in v5.9.0

type ContainerService struct {
	pulumi.CustomResourceState

	// The Amazon Resource Name (ARN) of the container service.
	Arn pulumi.StringOutput `pulumi:"arn"`
	// The Availability Zone. Follows the format us-east-2a (case-sensitive).
	AvailabilityZone pulumi.StringOutput `pulumi:"availabilityZone"`
	CreatedAt        pulumi.StringOutput `pulumi:"createdAt"`
	// A Boolean value indicating whether the container service is disabled. Defaults to `false`.
	IsDisabled pulumi.BoolPtrOutput `pulumi:"isDisabled"`
	// The name for the container service. Names must be of length 1 to 63, and be
	// unique within each AWS Region in your Lightsail account.
	Name pulumi.StringOutput `pulumi:"name"`
	// The power specification for the container service. The power specifies the amount of memory,
	// the number of vCPUs, and the monthly price of each node of the container service.
	// Possible values: `nano`, `micro`, `small`, `medium`, `large`, `xlarge`.
	Power pulumi.StringOutput `pulumi:"power"`
	// The ID of the power of the container service.
	PowerId pulumi.StringOutput `pulumi:"powerId"`
	// The principal ARN of the container service. The principal ARN can be used to create a trust
	// relationship between your standard AWS account and your Lightsail container service. This allows you to give your
	// service permission to access resources in your standard AWS account.
	PrincipalArn pulumi.StringOutput `pulumi:"principalArn"`
	// The private domain name of the container service. The private domain name is accessible only
	// by other resources within the default virtual private cloud (VPC) of your Lightsail account.
	PrivateDomainName pulumi.StringOutput `pulumi:"privateDomainName"`
	// An object to describe the configuration for the container service to access private container image repositories, such as Amazon Elastic Container Registry (Amazon ECR) private repositories. See Private Registry Access below for more details.
	PrivateRegistryAccess ContainerServicePrivateRegistryAccessOutput `pulumi:"privateRegistryAccess"`
	// The public domain names to use with the container service, such as example.com
	// and www.example.com. You can specify up to four public domain names for a container service. The domain names that you
	// specify are used when you create a deployment with a container configured as the public endpoint of your container
	// service. If you don't specify public domain names, then you can use the default domain of the container service.
	// Defined below.
	PublicDomainNames ContainerServicePublicDomainNamesPtrOutput `pulumi:"publicDomainNames"`
	// The Lightsail resource type of the container service (i.e., ContainerService).
	ResourceType pulumi.StringOutput `pulumi:"resourceType"`
	// The scale specification for the container service. The scale specifies the allocated compute
	// nodes of the container service.
	Scale pulumi.IntOutput `pulumi:"scale"`
	// The current state of the container service.
	State pulumi.StringOutput `pulumi:"state"`
	// Map of container service tags. To tag at launch, specify the tags in the Launch Template. 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
	// `defaultTags` configuration block.
	TagsAll pulumi.StringMapOutput `pulumi:"tagsAll"`
	// The publicly accessible URL of the container service. If no public endpoint is specified in the
	// currentDeployment, this URL returns a 404 response.
	Url pulumi.StringOutput `pulumi:"url"`
}

An Amazon Lightsail container service is a highly scalable compute and networking resource on which you can deploy, run, and manage containers. For more information, see [Container services in Amazon Lightsail](https://lightsail.aws.amazon.com/ls/docs/en_us/articles/amazon-lightsail-container-services).

> **Note:** For more information about the AWS Regions in which you can create Amazon Lightsail container services, see ["Regions and Availability Zones in Amazon Lightsail"](https://lightsail.aws.amazon.com/ls/docs/overview/article/understanding-regions-and-availability-zones-in-amazon-lightsail).

## Example Usage ### Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-aws/sdk/v5/go/aws/lightsail"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := lightsail.NewContainerService(ctx, "myContainerService", &lightsail.ContainerServiceArgs{
			IsDisabled: pulumi.Bool(false),
			Power:      pulumi.String("nano"),
			Scale:      pulumi.Int(1),
			Tags: pulumi.StringMap{
				"foo1": pulumi.String("bar1"),
				"foo2": pulumi.String(""),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` ### Public Domain Names

```go package main

import (

"github.com/pulumi/pulumi-aws/sdk/v5/go/aws/lightsail"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := lightsail.NewContainerService(ctx, "myContainerService", &lightsail.ContainerServiceArgs{
			PublicDomainNames: &lightsail.ContainerServicePublicDomainNamesArgs{
				Certificates: lightsail.ContainerServicePublicDomainNamesCertificateArray{
					&lightsail.ContainerServicePublicDomainNamesCertificateArgs{
						CertificateName: pulumi.String("example-certificate"),
						DomainNames: pulumi.StringArray{
							pulumi.String("www.example.com"),
						},
					},
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` ### Private Registry Access

```go package main

import (

"github.com/pulumi/pulumi/sdk/v3/go/pulumi" "github.com/pulumi/pulumi-aws/sdk/v5/go/aws/ecr" "github.com/pulumi/pulumi-aws/sdk/v5/go/aws/iam" "github.com/pulumi/pulumi-aws/sdk/v5/go/aws/lightsail" ) func main() { pulumi.Run(func(ctx *pulumi.Context) error { defaultContainerService, err := lightsail.NewContainerService(ctx, "defaultContainerService", &lightsail.ContainerServiceArgs{ PrivateRegistryAccess: &lightsail.ContainerServicePrivateRegistryAccessArgs{ EcrImagePullerRole: &lightsail.ContainerServicePrivateRegistryAccessEcrImagePullerRoleArgs{ IsActive: pulumi.Bool(true), }, }, }) if err != nil { return err } defaultPolicyDocument := defaultContainerService.PrivateRegistryAccess.ApplyT(func(privateRegistryAccess lightsail.ContainerServicePrivateRegistryAccess) (iam.GetPolicyDocumentResult, error) { return iam.GetPolicyDocumentOutput(ctx, iam.GetPolicyDocumentOutputArgs{ Statements: []iam.GetPolicyDocumentStatement{ { Effect: "Allow", Principals: []iam.GetPolicyDocumentStatementPrincipal{ { Type: "AWS", Identifiers: interface{}{ privateRegistryAccess.EcrImagePullerRole.PrincipalArn, }, }, }, Actions: []string{ "ecr:BatchGetImage", "ecr:GetDownloadUrlForLayer", }, }, }, }, nil), nil }).(iam.GetPolicyDocumentResultOutput) _, err = ecr.NewRepositoryPolicy(ctx, "defaultRepositoryPolicy", &ecr.RepositoryPolicyArgs{ Repository: pulumi.Any(aws_ecr_repository.Default.Name), Policy: defaultPolicyDocument.ApplyT(func(defaultPolicyDocument iam.GetPolicyDocumentResult) (*string, error) { return &defaultPolicyDocument.Json, nil }).(pulumi.StringPtrOutput), }) if err != nil { return err } return nil }) } ```

## Import

Lightsail Container Service can be imported using the `name`, e.g.,

```sh

$ pulumi import aws:lightsail/containerService:ContainerService my_container_service container-service-1

```

func GetContainerService added in v5.9.0

func GetContainerService(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *ContainerServiceState, opts ...pulumi.ResourceOption) (*ContainerService, error)

GetContainerService gets an existing ContainerService 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 NewContainerService added in v5.9.0

func NewContainerService(ctx *pulumi.Context,
	name string, args *ContainerServiceArgs, opts ...pulumi.ResourceOption) (*ContainerService, error)

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

func (*ContainerService) ElementType added in v5.9.0

func (*ContainerService) ElementType() reflect.Type

func (*ContainerService) ToContainerServiceOutput added in v5.9.0

func (i *ContainerService) ToContainerServiceOutput() ContainerServiceOutput

func (*ContainerService) ToContainerServiceOutputWithContext added in v5.9.0

func (i *ContainerService) ToContainerServiceOutputWithContext(ctx context.Context) ContainerServiceOutput

type ContainerServiceArgs added in v5.9.0

type ContainerServiceArgs struct {
	// A Boolean value indicating whether the container service is disabled. Defaults to `false`.
	IsDisabled pulumi.BoolPtrInput
	// The name for the container service. Names must be of length 1 to 63, and be
	// unique within each AWS Region in your Lightsail account.
	Name pulumi.StringPtrInput
	// The power specification for the container service. The power specifies the amount of memory,
	// the number of vCPUs, and the monthly price of each node of the container service.
	// Possible values: `nano`, `micro`, `small`, `medium`, `large`, `xlarge`.
	Power pulumi.StringInput
	// An object to describe the configuration for the container service to access private container image repositories, such as Amazon Elastic Container Registry (Amazon ECR) private repositories. See Private Registry Access below for more details.
	PrivateRegistryAccess ContainerServicePrivateRegistryAccessPtrInput
	// The public domain names to use with the container service, such as example.com
	// and www.example.com. You can specify up to four public domain names for a container service. The domain names that you
	// specify are used when you create a deployment with a container configured as the public endpoint of your container
	// service. If you don't specify public domain names, then you can use the default domain of the container service.
	// Defined below.
	PublicDomainNames ContainerServicePublicDomainNamesPtrInput
	// The scale specification for the container service. The scale specifies the allocated compute
	// nodes of the container service.
	Scale pulumi.IntInput
	// Map of container service tags. To tag at launch, specify the tags in the Launch Template. 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 ContainerService resource.

func (ContainerServiceArgs) ElementType added in v5.9.0

func (ContainerServiceArgs) ElementType() reflect.Type

type ContainerServiceArray added in v5.9.0

type ContainerServiceArray []ContainerServiceInput

func (ContainerServiceArray) ElementType added in v5.9.0

func (ContainerServiceArray) ElementType() reflect.Type

func (ContainerServiceArray) ToContainerServiceArrayOutput added in v5.9.0

func (i ContainerServiceArray) ToContainerServiceArrayOutput() ContainerServiceArrayOutput

func (ContainerServiceArray) ToContainerServiceArrayOutputWithContext added in v5.9.0

func (i ContainerServiceArray) ToContainerServiceArrayOutputWithContext(ctx context.Context) ContainerServiceArrayOutput

type ContainerServiceArrayInput added in v5.9.0

type ContainerServiceArrayInput interface {
	pulumi.Input

	ToContainerServiceArrayOutput() ContainerServiceArrayOutput
	ToContainerServiceArrayOutputWithContext(context.Context) ContainerServiceArrayOutput
}

ContainerServiceArrayInput is an input type that accepts ContainerServiceArray and ContainerServiceArrayOutput values. You can construct a concrete instance of `ContainerServiceArrayInput` via:

ContainerServiceArray{ ContainerServiceArgs{...} }

type ContainerServiceArrayOutput added in v5.9.0

type ContainerServiceArrayOutput struct{ *pulumi.OutputState }

func (ContainerServiceArrayOutput) ElementType added in v5.9.0

func (ContainerServiceArrayOutput) Index added in v5.9.0

func (ContainerServiceArrayOutput) ToContainerServiceArrayOutput added in v5.9.0

func (o ContainerServiceArrayOutput) ToContainerServiceArrayOutput() ContainerServiceArrayOutput

func (ContainerServiceArrayOutput) ToContainerServiceArrayOutputWithContext added in v5.9.0

func (o ContainerServiceArrayOutput) ToContainerServiceArrayOutputWithContext(ctx context.Context) ContainerServiceArrayOutput

type ContainerServiceDeploymentVersion added in v5.9.0

type ContainerServiceDeploymentVersion struct {
	pulumi.CustomResourceState

	// A set of configuration blocks that describe the settings of the containers that will be launched on the container service. Maximum of 53. Detailed below.
	Containers ContainerServiceDeploymentVersionContainerArrayOutput `pulumi:"containers"`
	// The timestamp when the deployment was created.
	CreatedAt pulumi.StringOutput `pulumi:"createdAt"`
	// A configuration block that describes the settings of the public endpoint for the container service. Detailed below.
	PublicEndpoint ContainerServiceDeploymentVersionPublicEndpointPtrOutput `pulumi:"publicEndpoint"`
	// The name for the container service.
	ServiceName pulumi.StringOutput `pulumi:"serviceName"`
	// The current state of the container service.
	State pulumi.StringOutput `pulumi:"state"`
	// The version number of the deployment.
	Version pulumi.IntOutput `pulumi:"version"`
}

Provides a resource to manage a deployment version for your Amazon Lightsail container service.

> **NOTE:** The Amazon Lightsail container service must be enabled to create a deployment.

> **NOTE:** This resource allows you to manage an Amazon Lightsail container service deployment version but the provider cannot destroy it. Removing this resource from your configuration will remove it from your statefile.

## Example Usage ### Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-aws/sdk/v5/go/aws/lightsail"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := lightsail.NewContainerServiceDeploymentVersion(ctx, "example", &lightsail.ContainerServiceDeploymentVersionArgs{
			Containers: lightsail.ContainerServiceDeploymentVersionContainerArray{
				&lightsail.ContainerServiceDeploymentVersionContainerArgs{
					ContainerName: pulumi.String("hello-world"),
					Image:         pulumi.String("amazon/amazon-lightsail:hello-world"),
					Commands:      pulumi.StringArray{},
					Environment: pulumi.StringMap{
						"MY_ENVIRONMENT_VARIABLE": pulumi.String("my_value"),
					},
					Ports: pulumi.StringMap{
						"80": pulumi.String("HTTP"),
					},
				},
			},
			PublicEndpoint: &lightsail.ContainerServiceDeploymentVersionPublicEndpointArgs{
				ContainerName: pulumi.String("hello-world"),
				ContainerPort: pulumi.Int(80),
				HealthCheck: &lightsail.ContainerServiceDeploymentVersionPublicEndpointHealthCheckArgs{
					HealthyThreshold:   pulumi.Int(2),
					UnhealthyThreshold: pulumi.Int(2),
					TimeoutSeconds:     pulumi.Int(2),
					IntervalSeconds:    pulumi.Int(5),
					Path:               pulumi.String("/"),
					SuccessCodes:       pulumi.String("200-499"),
				},
			},
			ServiceName: pulumi.Any(aws_lightsail_container_service.Example.Name),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Lightsail Container Service Deployment Version can be imported using the `service_name` and `version` separated by a slash (`/`), e.g.,

```sh

$ pulumi import aws:lightsail/containerServiceDeploymentVersion:ContainerServiceDeploymentVersion example container-service-1/1

```

func GetContainerServiceDeploymentVersion added in v5.9.0

func GetContainerServiceDeploymentVersion(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *ContainerServiceDeploymentVersionState, opts ...pulumi.ResourceOption) (*ContainerServiceDeploymentVersion, error)

GetContainerServiceDeploymentVersion gets an existing ContainerServiceDeploymentVersion 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 NewContainerServiceDeploymentVersion added in v5.9.0

func NewContainerServiceDeploymentVersion(ctx *pulumi.Context,
	name string, args *ContainerServiceDeploymentVersionArgs, opts ...pulumi.ResourceOption) (*ContainerServiceDeploymentVersion, error)

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

func (*ContainerServiceDeploymentVersion) ElementType added in v5.9.0

func (*ContainerServiceDeploymentVersion) ToContainerServiceDeploymentVersionOutput added in v5.9.0

func (i *ContainerServiceDeploymentVersion) ToContainerServiceDeploymentVersionOutput() ContainerServiceDeploymentVersionOutput

func (*ContainerServiceDeploymentVersion) ToContainerServiceDeploymentVersionOutputWithContext added in v5.9.0

func (i *ContainerServiceDeploymentVersion) ToContainerServiceDeploymentVersionOutputWithContext(ctx context.Context) ContainerServiceDeploymentVersionOutput

type ContainerServiceDeploymentVersionArgs added in v5.9.0

type ContainerServiceDeploymentVersionArgs struct {
	// A set of configuration blocks that describe the settings of the containers that will be launched on the container service. Maximum of 53. Detailed below.
	Containers ContainerServiceDeploymentVersionContainerArrayInput
	// A configuration block that describes the settings of the public endpoint for the container service. Detailed below.
	PublicEndpoint ContainerServiceDeploymentVersionPublicEndpointPtrInput
	// The name for the container service.
	ServiceName pulumi.StringInput
}

The set of arguments for constructing a ContainerServiceDeploymentVersion resource.

func (ContainerServiceDeploymentVersionArgs) ElementType added in v5.9.0

type ContainerServiceDeploymentVersionArray added in v5.9.0

type ContainerServiceDeploymentVersionArray []ContainerServiceDeploymentVersionInput

func (ContainerServiceDeploymentVersionArray) ElementType added in v5.9.0

func (ContainerServiceDeploymentVersionArray) ToContainerServiceDeploymentVersionArrayOutput added in v5.9.0

func (i ContainerServiceDeploymentVersionArray) ToContainerServiceDeploymentVersionArrayOutput() ContainerServiceDeploymentVersionArrayOutput

func (ContainerServiceDeploymentVersionArray) ToContainerServiceDeploymentVersionArrayOutputWithContext added in v5.9.0

func (i ContainerServiceDeploymentVersionArray) ToContainerServiceDeploymentVersionArrayOutputWithContext(ctx context.Context) ContainerServiceDeploymentVersionArrayOutput

type ContainerServiceDeploymentVersionArrayInput added in v5.9.0

type ContainerServiceDeploymentVersionArrayInput interface {
	pulumi.Input

	ToContainerServiceDeploymentVersionArrayOutput() ContainerServiceDeploymentVersionArrayOutput
	ToContainerServiceDeploymentVersionArrayOutputWithContext(context.Context) ContainerServiceDeploymentVersionArrayOutput
}

ContainerServiceDeploymentVersionArrayInput is an input type that accepts ContainerServiceDeploymentVersionArray and ContainerServiceDeploymentVersionArrayOutput values. You can construct a concrete instance of `ContainerServiceDeploymentVersionArrayInput` via:

ContainerServiceDeploymentVersionArray{ ContainerServiceDeploymentVersionArgs{...} }

type ContainerServiceDeploymentVersionArrayOutput added in v5.9.0

type ContainerServiceDeploymentVersionArrayOutput struct{ *pulumi.OutputState }

func (ContainerServiceDeploymentVersionArrayOutput) ElementType added in v5.9.0

func (ContainerServiceDeploymentVersionArrayOutput) Index added in v5.9.0

func (ContainerServiceDeploymentVersionArrayOutput) ToContainerServiceDeploymentVersionArrayOutput added in v5.9.0

func (o ContainerServiceDeploymentVersionArrayOutput) ToContainerServiceDeploymentVersionArrayOutput() ContainerServiceDeploymentVersionArrayOutput

func (ContainerServiceDeploymentVersionArrayOutput) ToContainerServiceDeploymentVersionArrayOutputWithContext added in v5.9.0

func (o ContainerServiceDeploymentVersionArrayOutput) ToContainerServiceDeploymentVersionArrayOutputWithContext(ctx context.Context) ContainerServiceDeploymentVersionArrayOutput

type ContainerServiceDeploymentVersionContainer added in v5.9.0

type ContainerServiceDeploymentVersionContainer struct {
	// The launch command for the container. A list of string.
	Commands []string `pulumi:"commands"`
	// The name for the container.
	ContainerName string `pulumi:"containerName"`
	// A key-value map of the environment variables of the container.
	Environment map[string]string `pulumi:"environment"`
	// The name of the image used for the container. Container images sourced from your Lightsail container service, that are registered and stored on your service, start with a colon (`:`). For example, `:container-service-1.mystaticwebsite.1`. Container images sourced from a public registry like Docker Hub don't start with a colon. For example, `nginx:latest` or `nginx`.
	Image string `pulumi:"image"`
	// A key-value map of the open firewall ports of the container. Valid values: `HTTP`, `HTTPS`, `TCP`, `UDP`.
	Ports map[string]string `pulumi:"ports"`
}

type ContainerServiceDeploymentVersionContainerArgs added in v5.9.0

type ContainerServiceDeploymentVersionContainerArgs struct {
	// The launch command for the container. A list of string.
	Commands pulumi.StringArrayInput `pulumi:"commands"`
	// The name for the container.
	ContainerName pulumi.StringInput `pulumi:"containerName"`
	// A key-value map of the environment variables of the container.
	Environment pulumi.StringMapInput `pulumi:"environment"`
	// The name of the image used for the container. Container images sourced from your Lightsail container service, that are registered and stored on your service, start with a colon (`:`). For example, `:container-service-1.mystaticwebsite.1`. Container images sourced from a public registry like Docker Hub don't start with a colon. For example, `nginx:latest` or `nginx`.
	Image pulumi.StringInput `pulumi:"image"`
	// A key-value map of the open firewall ports of the container. Valid values: `HTTP`, `HTTPS`, `TCP`, `UDP`.
	Ports pulumi.StringMapInput `pulumi:"ports"`
}

func (ContainerServiceDeploymentVersionContainerArgs) ElementType added in v5.9.0

func (ContainerServiceDeploymentVersionContainerArgs) ToContainerServiceDeploymentVersionContainerOutput added in v5.9.0

func (i ContainerServiceDeploymentVersionContainerArgs) ToContainerServiceDeploymentVersionContainerOutput() ContainerServiceDeploymentVersionContainerOutput

func (ContainerServiceDeploymentVersionContainerArgs) ToContainerServiceDeploymentVersionContainerOutputWithContext added in v5.9.0

func (i ContainerServiceDeploymentVersionContainerArgs) ToContainerServiceDeploymentVersionContainerOutputWithContext(ctx context.Context) ContainerServiceDeploymentVersionContainerOutput

type ContainerServiceDeploymentVersionContainerArray added in v5.9.0

type ContainerServiceDeploymentVersionContainerArray []ContainerServiceDeploymentVersionContainerInput

func (ContainerServiceDeploymentVersionContainerArray) ElementType added in v5.9.0

func (ContainerServiceDeploymentVersionContainerArray) ToContainerServiceDeploymentVersionContainerArrayOutput added in v5.9.0

func (i ContainerServiceDeploymentVersionContainerArray) ToContainerServiceDeploymentVersionContainerArrayOutput() ContainerServiceDeploymentVersionContainerArrayOutput

func (ContainerServiceDeploymentVersionContainerArray) ToContainerServiceDeploymentVersionContainerArrayOutputWithContext added in v5.9.0

func (i ContainerServiceDeploymentVersionContainerArray) ToContainerServiceDeploymentVersionContainerArrayOutputWithContext(ctx context.Context) ContainerServiceDeploymentVersionContainerArrayOutput

type ContainerServiceDeploymentVersionContainerArrayInput added in v5.9.0

type ContainerServiceDeploymentVersionContainerArrayInput interface {
	pulumi.Input

	ToContainerServiceDeploymentVersionContainerArrayOutput() ContainerServiceDeploymentVersionContainerArrayOutput
	ToContainerServiceDeploymentVersionContainerArrayOutputWithContext(context.Context) ContainerServiceDeploymentVersionContainerArrayOutput
}

ContainerServiceDeploymentVersionContainerArrayInput is an input type that accepts ContainerServiceDeploymentVersionContainerArray and ContainerServiceDeploymentVersionContainerArrayOutput values. You can construct a concrete instance of `ContainerServiceDeploymentVersionContainerArrayInput` via:

ContainerServiceDeploymentVersionContainerArray{ ContainerServiceDeploymentVersionContainerArgs{...} }

type ContainerServiceDeploymentVersionContainerArrayOutput added in v5.9.0

type ContainerServiceDeploymentVersionContainerArrayOutput struct{ *pulumi.OutputState }

func (ContainerServiceDeploymentVersionContainerArrayOutput) ElementType added in v5.9.0

func (ContainerServiceDeploymentVersionContainerArrayOutput) Index added in v5.9.0

func (ContainerServiceDeploymentVersionContainerArrayOutput) ToContainerServiceDeploymentVersionContainerArrayOutput added in v5.9.0

func (ContainerServiceDeploymentVersionContainerArrayOutput) ToContainerServiceDeploymentVersionContainerArrayOutputWithContext added in v5.9.0

func (o ContainerServiceDeploymentVersionContainerArrayOutput) ToContainerServiceDeploymentVersionContainerArrayOutputWithContext(ctx context.Context) ContainerServiceDeploymentVersionContainerArrayOutput

type ContainerServiceDeploymentVersionContainerInput added in v5.9.0

type ContainerServiceDeploymentVersionContainerInput interface {
	pulumi.Input

	ToContainerServiceDeploymentVersionContainerOutput() ContainerServiceDeploymentVersionContainerOutput
	ToContainerServiceDeploymentVersionContainerOutputWithContext(context.Context) ContainerServiceDeploymentVersionContainerOutput
}

ContainerServiceDeploymentVersionContainerInput is an input type that accepts ContainerServiceDeploymentVersionContainerArgs and ContainerServiceDeploymentVersionContainerOutput values. You can construct a concrete instance of `ContainerServiceDeploymentVersionContainerInput` via:

ContainerServiceDeploymentVersionContainerArgs{...}

type ContainerServiceDeploymentVersionContainerOutput added in v5.9.0

type ContainerServiceDeploymentVersionContainerOutput struct{ *pulumi.OutputState }

func (ContainerServiceDeploymentVersionContainerOutput) Commands added in v5.9.0

The launch command for the container. A list of string.

func (ContainerServiceDeploymentVersionContainerOutput) ContainerName added in v5.9.0

The name for the container.

func (ContainerServiceDeploymentVersionContainerOutput) ElementType added in v5.9.0

func (ContainerServiceDeploymentVersionContainerOutput) Environment added in v5.9.0

A key-value map of the environment variables of the container.

func (ContainerServiceDeploymentVersionContainerOutput) Image added in v5.9.0

The name of the image used for the container. Container images sourced from your Lightsail container service, that are registered and stored on your service, start with a colon (`:`). For example, `:container-service-1.mystaticwebsite.1`. Container images sourced from a public registry like Docker Hub don't start with a colon. For example, `nginx:latest` or `nginx`.

func (ContainerServiceDeploymentVersionContainerOutput) Ports added in v5.9.0

A key-value map of the open firewall ports of the container. Valid values: `HTTP`, `HTTPS`, `TCP`, `UDP`.

func (ContainerServiceDeploymentVersionContainerOutput) ToContainerServiceDeploymentVersionContainerOutput added in v5.9.0

func (o ContainerServiceDeploymentVersionContainerOutput) ToContainerServiceDeploymentVersionContainerOutput() ContainerServiceDeploymentVersionContainerOutput

func (ContainerServiceDeploymentVersionContainerOutput) ToContainerServiceDeploymentVersionContainerOutputWithContext added in v5.9.0

func (o ContainerServiceDeploymentVersionContainerOutput) ToContainerServiceDeploymentVersionContainerOutputWithContext(ctx context.Context) ContainerServiceDeploymentVersionContainerOutput

type ContainerServiceDeploymentVersionInput added in v5.9.0

type ContainerServiceDeploymentVersionInput interface {
	pulumi.Input

	ToContainerServiceDeploymentVersionOutput() ContainerServiceDeploymentVersionOutput
	ToContainerServiceDeploymentVersionOutputWithContext(ctx context.Context) ContainerServiceDeploymentVersionOutput
}

type ContainerServiceDeploymentVersionMap added in v5.9.0

type ContainerServiceDeploymentVersionMap map[string]ContainerServiceDeploymentVersionInput

func (ContainerServiceDeploymentVersionMap) ElementType added in v5.9.0

func (ContainerServiceDeploymentVersionMap) ToContainerServiceDeploymentVersionMapOutput added in v5.9.0

func (i ContainerServiceDeploymentVersionMap) ToContainerServiceDeploymentVersionMapOutput() ContainerServiceDeploymentVersionMapOutput

func (ContainerServiceDeploymentVersionMap) ToContainerServiceDeploymentVersionMapOutputWithContext added in v5.9.0

func (i ContainerServiceDeploymentVersionMap) ToContainerServiceDeploymentVersionMapOutputWithContext(ctx context.Context) ContainerServiceDeploymentVersionMapOutput

type ContainerServiceDeploymentVersionMapInput added in v5.9.0

type ContainerServiceDeploymentVersionMapInput interface {
	pulumi.Input

	ToContainerServiceDeploymentVersionMapOutput() ContainerServiceDeploymentVersionMapOutput
	ToContainerServiceDeploymentVersionMapOutputWithContext(context.Context) ContainerServiceDeploymentVersionMapOutput
}

ContainerServiceDeploymentVersionMapInput is an input type that accepts ContainerServiceDeploymentVersionMap and ContainerServiceDeploymentVersionMapOutput values. You can construct a concrete instance of `ContainerServiceDeploymentVersionMapInput` via:

ContainerServiceDeploymentVersionMap{ "key": ContainerServiceDeploymentVersionArgs{...} }

type ContainerServiceDeploymentVersionMapOutput added in v5.9.0

type ContainerServiceDeploymentVersionMapOutput struct{ *pulumi.OutputState }

func (ContainerServiceDeploymentVersionMapOutput) ElementType added in v5.9.0

func (ContainerServiceDeploymentVersionMapOutput) MapIndex added in v5.9.0

func (ContainerServiceDeploymentVersionMapOutput) ToContainerServiceDeploymentVersionMapOutput added in v5.9.0

func (o ContainerServiceDeploymentVersionMapOutput) ToContainerServiceDeploymentVersionMapOutput() ContainerServiceDeploymentVersionMapOutput

func (ContainerServiceDeploymentVersionMapOutput) ToContainerServiceDeploymentVersionMapOutputWithContext added in v5.9.0

func (o ContainerServiceDeploymentVersionMapOutput) ToContainerServiceDeploymentVersionMapOutputWithContext(ctx context.Context) ContainerServiceDeploymentVersionMapOutput

type ContainerServiceDeploymentVersionOutput added in v5.9.0

type ContainerServiceDeploymentVersionOutput struct{ *pulumi.OutputState }

func (ContainerServiceDeploymentVersionOutput) Containers added in v5.9.0

A set of configuration blocks that describe the settings of the containers that will be launched on the container service. Maximum of 53. Detailed below.

func (ContainerServiceDeploymentVersionOutput) CreatedAt added in v5.9.0

The timestamp when the deployment was created.

func (ContainerServiceDeploymentVersionOutput) ElementType added in v5.9.0

func (ContainerServiceDeploymentVersionOutput) PublicEndpoint added in v5.9.0

A configuration block that describes the settings of the public endpoint for the container service. Detailed below.

func (ContainerServiceDeploymentVersionOutput) ServiceName added in v5.9.0

The name for the container service.

func (ContainerServiceDeploymentVersionOutput) State added in v5.9.0

The current state of the container service.

func (ContainerServiceDeploymentVersionOutput) ToContainerServiceDeploymentVersionOutput added in v5.9.0

func (o ContainerServiceDeploymentVersionOutput) ToContainerServiceDeploymentVersionOutput() ContainerServiceDeploymentVersionOutput

func (ContainerServiceDeploymentVersionOutput) ToContainerServiceDeploymentVersionOutputWithContext added in v5.9.0

func (o ContainerServiceDeploymentVersionOutput) ToContainerServiceDeploymentVersionOutputWithContext(ctx context.Context) ContainerServiceDeploymentVersionOutput

func (ContainerServiceDeploymentVersionOutput) Version added in v5.9.0

The version number of the deployment.

type ContainerServiceDeploymentVersionPublicEndpoint added in v5.9.0

type ContainerServiceDeploymentVersionPublicEndpoint struct {
	// The name of the container for the endpoint.
	ContainerName string `pulumi:"containerName"`
	// The port of the container to which traffic is forwarded to.
	ContainerPort int `pulumi:"containerPort"`
	// A configuration block that describes the health check configuration of the container. Detailed below.
	HealthCheck ContainerServiceDeploymentVersionPublicEndpointHealthCheck `pulumi:"healthCheck"`
}

type ContainerServiceDeploymentVersionPublicEndpointArgs added in v5.9.0

type ContainerServiceDeploymentVersionPublicEndpointArgs struct {
	// The name of the container for the endpoint.
	ContainerName pulumi.StringInput `pulumi:"containerName"`
	// The port of the container to which traffic is forwarded to.
	ContainerPort pulumi.IntInput `pulumi:"containerPort"`
	// A configuration block that describes the health check configuration of the container. Detailed below.
	HealthCheck ContainerServiceDeploymentVersionPublicEndpointHealthCheckInput `pulumi:"healthCheck"`
}

func (ContainerServiceDeploymentVersionPublicEndpointArgs) ElementType added in v5.9.0

func (ContainerServiceDeploymentVersionPublicEndpointArgs) ToContainerServiceDeploymentVersionPublicEndpointOutput added in v5.9.0

func (i ContainerServiceDeploymentVersionPublicEndpointArgs) ToContainerServiceDeploymentVersionPublicEndpointOutput() ContainerServiceDeploymentVersionPublicEndpointOutput

func (ContainerServiceDeploymentVersionPublicEndpointArgs) ToContainerServiceDeploymentVersionPublicEndpointOutputWithContext added in v5.9.0

func (i ContainerServiceDeploymentVersionPublicEndpointArgs) ToContainerServiceDeploymentVersionPublicEndpointOutputWithContext(ctx context.Context) ContainerServiceDeploymentVersionPublicEndpointOutput

func (ContainerServiceDeploymentVersionPublicEndpointArgs) ToContainerServiceDeploymentVersionPublicEndpointPtrOutput added in v5.9.0

func (i ContainerServiceDeploymentVersionPublicEndpointArgs) ToContainerServiceDeploymentVersionPublicEndpointPtrOutput() ContainerServiceDeploymentVersionPublicEndpointPtrOutput

func (ContainerServiceDeploymentVersionPublicEndpointArgs) ToContainerServiceDeploymentVersionPublicEndpointPtrOutputWithContext added in v5.9.0

func (i ContainerServiceDeploymentVersionPublicEndpointArgs) ToContainerServiceDeploymentVersionPublicEndpointPtrOutputWithContext(ctx context.Context) ContainerServiceDeploymentVersionPublicEndpointPtrOutput

type ContainerServiceDeploymentVersionPublicEndpointHealthCheck added in v5.9.0

type ContainerServiceDeploymentVersionPublicEndpointHealthCheck struct {
	// The number of consecutive health checks successes required before moving the container to the Healthy state. Defaults to 2.
	HealthyThreshold *int `pulumi:"healthyThreshold"`
	// The approximate interval, in seconds, between health checks of an individual container. You can specify between 5 and 300 seconds. Defaults to 5.
	IntervalSeconds *int `pulumi:"intervalSeconds"`
	// The path on the container on which to perform the health check. Defaults to "/".
	Path *string `pulumi:"path"`
	// The HTTP codes to use when checking for a successful response from a container. You can specify values between 200 and 499. Defaults to "200-499".
	SuccessCodes *string `pulumi:"successCodes"`
	// The amount of time, in seconds, during which no response means a failed health check. You can specify between 2 and 60 seconds. Defaults to 2.
	TimeoutSeconds *int `pulumi:"timeoutSeconds"`
	// The number of consecutive health checks failures required before moving the container to the Unhealthy state. Defaults to 2.
	UnhealthyThreshold *int `pulumi:"unhealthyThreshold"`
}

type ContainerServiceDeploymentVersionPublicEndpointHealthCheckArgs added in v5.9.0

type ContainerServiceDeploymentVersionPublicEndpointHealthCheckArgs struct {
	// The number of consecutive health checks successes required before moving the container to the Healthy state. Defaults to 2.
	HealthyThreshold pulumi.IntPtrInput `pulumi:"healthyThreshold"`
	// The approximate interval, in seconds, between health checks of an individual container. You can specify between 5 and 300 seconds. Defaults to 5.
	IntervalSeconds pulumi.IntPtrInput `pulumi:"intervalSeconds"`
	// The path on the container on which to perform the health check. Defaults to "/".
	Path pulumi.StringPtrInput `pulumi:"path"`
	// The HTTP codes to use when checking for a successful response from a container. You can specify values between 200 and 499. Defaults to "200-499".
	SuccessCodes pulumi.StringPtrInput `pulumi:"successCodes"`
	// The amount of time, in seconds, during which no response means a failed health check. You can specify between 2 and 60 seconds. Defaults to 2.
	TimeoutSeconds pulumi.IntPtrInput `pulumi:"timeoutSeconds"`
	// The number of consecutive health checks failures required before moving the container to the Unhealthy state. Defaults to 2.
	UnhealthyThreshold pulumi.IntPtrInput `pulumi:"unhealthyThreshold"`
}

func (ContainerServiceDeploymentVersionPublicEndpointHealthCheckArgs) ElementType added in v5.9.0

func (ContainerServiceDeploymentVersionPublicEndpointHealthCheckArgs) ToContainerServiceDeploymentVersionPublicEndpointHealthCheckOutput added in v5.9.0

func (ContainerServiceDeploymentVersionPublicEndpointHealthCheckArgs) ToContainerServiceDeploymentVersionPublicEndpointHealthCheckOutputWithContext added in v5.9.0

func (i ContainerServiceDeploymentVersionPublicEndpointHealthCheckArgs) ToContainerServiceDeploymentVersionPublicEndpointHealthCheckOutputWithContext(ctx context.Context) ContainerServiceDeploymentVersionPublicEndpointHealthCheckOutput

func (ContainerServiceDeploymentVersionPublicEndpointHealthCheckArgs) ToContainerServiceDeploymentVersionPublicEndpointHealthCheckPtrOutput added in v5.9.0

func (ContainerServiceDeploymentVersionPublicEndpointHealthCheckArgs) ToContainerServiceDeploymentVersionPublicEndpointHealthCheckPtrOutputWithContext added in v5.9.0

func (i ContainerServiceDeploymentVersionPublicEndpointHealthCheckArgs) ToContainerServiceDeploymentVersionPublicEndpointHealthCheckPtrOutputWithContext(ctx context.Context) ContainerServiceDeploymentVersionPublicEndpointHealthCheckPtrOutput

type ContainerServiceDeploymentVersionPublicEndpointHealthCheckInput added in v5.9.0

type ContainerServiceDeploymentVersionPublicEndpointHealthCheckInput interface {
	pulumi.Input

	ToContainerServiceDeploymentVersionPublicEndpointHealthCheckOutput() ContainerServiceDeploymentVersionPublicEndpointHealthCheckOutput
	ToContainerServiceDeploymentVersionPublicEndpointHealthCheckOutputWithContext(context.Context) ContainerServiceDeploymentVersionPublicEndpointHealthCheckOutput
}

ContainerServiceDeploymentVersionPublicEndpointHealthCheckInput is an input type that accepts ContainerServiceDeploymentVersionPublicEndpointHealthCheckArgs and ContainerServiceDeploymentVersionPublicEndpointHealthCheckOutput values. You can construct a concrete instance of `ContainerServiceDeploymentVersionPublicEndpointHealthCheckInput` via:

ContainerServiceDeploymentVersionPublicEndpointHealthCheckArgs{...}

type ContainerServiceDeploymentVersionPublicEndpointHealthCheckOutput added in v5.9.0

type ContainerServiceDeploymentVersionPublicEndpointHealthCheckOutput struct{ *pulumi.OutputState }

func (ContainerServiceDeploymentVersionPublicEndpointHealthCheckOutput) ElementType added in v5.9.0

func (ContainerServiceDeploymentVersionPublicEndpointHealthCheckOutput) HealthyThreshold added in v5.9.0

The number of consecutive health checks successes required before moving the container to the Healthy state. Defaults to 2.

func (ContainerServiceDeploymentVersionPublicEndpointHealthCheckOutput) IntervalSeconds added in v5.9.0

The approximate interval, in seconds, between health checks of an individual container. You can specify between 5 and 300 seconds. Defaults to 5.

func (ContainerServiceDeploymentVersionPublicEndpointHealthCheckOutput) Path added in v5.9.0

The path on the container on which to perform the health check. Defaults to "/".

func (ContainerServiceDeploymentVersionPublicEndpointHealthCheckOutput) SuccessCodes added in v5.9.0

The HTTP codes to use when checking for a successful response from a container. You can specify values between 200 and 499. Defaults to "200-499".

func (ContainerServiceDeploymentVersionPublicEndpointHealthCheckOutput) TimeoutSeconds added in v5.9.0

The amount of time, in seconds, during which no response means a failed health check. You can specify between 2 and 60 seconds. Defaults to 2.

func (ContainerServiceDeploymentVersionPublicEndpointHealthCheckOutput) ToContainerServiceDeploymentVersionPublicEndpointHealthCheckOutput added in v5.9.0

func (ContainerServiceDeploymentVersionPublicEndpointHealthCheckOutput) ToContainerServiceDeploymentVersionPublicEndpointHealthCheckOutputWithContext added in v5.9.0

func (o ContainerServiceDeploymentVersionPublicEndpointHealthCheckOutput) ToContainerServiceDeploymentVersionPublicEndpointHealthCheckOutputWithContext(ctx context.Context) ContainerServiceDeploymentVersionPublicEndpointHealthCheckOutput

func (ContainerServiceDeploymentVersionPublicEndpointHealthCheckOutput) ToContainerServiceDeploymentVersionPublicEndpointHealthCheckPtrOutput added in v5.9.0

func (ContainerServiceDeploymentVersionPublicEndpointHealthCheckOutput) ToContainerServiceDeploymentVersionPublicEndpointHealthCheckPtrOutputWithContext added in v5.9.0

func (o ContainerServiceDeploymentVersionPublicEndpointHealthCheckOutput) ToContainerServiceDeploymentVersionPublicEndpointHealthCheckPtrOutputWithContext(ctx context.Context) ContainerServiceDeploymentVersionPublicEndpointHealthCheckPtrOutput

func (ContainerServiceDeploymentVersionPublicEndpointHealthCheckOutput) UnhealthyThreshold added in v5.9.0

The number of consecutive health checks failures required before moving the container to the Unhealthy state. Defaults to 2.

type ContainerServiceDeploymentVersionPublicEndpointHealthCheckPtrInput added in v5.9.0

type ContainerServiceDeploymentVersionPublicEndpointHealthCheckPtrInput interface {
	pulumi.Input

	ToContainerServiceDeploymentVersionPublicEndpointHealthCheckPtrOutput() ContainerServiceDeploymentVersionPublicEndpointHealthCheckPtrOutput
	ToContainerServiceDeploymentVersionPublicEndpointHealthCheckPtrOutputWithContext(context.Context) ContainerServiceDeploymentVersionPublicEndpointHealthCheckPtrOutput
}

ContainerServiceDeploymentVersionPublicEndpointHealthCheckPtrInput is an input type that accepts ContainerServiceDeploymentVersionPublicEndpointHealthCheckArgs, ContainerServiceDeploymentVersionPublicEndpointHealthCheckPtr and ContainerServiceDeploymentVersionPublicEndpointHealthCheckPtrOutput values. You can construct a concrete instance of `ContainerServiceDeploymentVersionPublicEndpointHealthCheckPtrInput` via:

        ContainerServiceDeploymentVersionPublicEndpointHealthCheckArgs{...}

or:

        nil

type ContainerServiceDeploymentVersionPublicEndpointHealthCheckPtrOutput added in v5.9.0

type ContainerServiceDeploymentVersionPublicEndpointHealthCheckPtrOutput struct{ *pulumi.OutputState }

func (ContainerServiceDeploymentVersionPublicEndpointHealthCheckPtrOutput) Elem added in v5.9.0

func (ContainerServiceDeploymentVersionPublicEndpointHealthCheckPtrOutput) ElementType added in v5.9.0

func (ContainerServiceDeploymentVersionPublicEndpointHealthCheckPtrOutput) HealthyThreshold added in v5.9.0

The number of consecutive health checks successes required before moving the container to the Healthy state. Defaults to 2.

func (ContainerServiceDeploymentVersionPublicEndpointHealthCheckPtrOutput) IntervalSeconds added in v5.9.0

The approximate interval, in seconds, between health checks of an individual container. You can specify between 5 and 300 seconds. Defaults to 5.

func (ContainerServiceDeploymentVersionPublicEndpointHealthCheckPtrOutput) Path added in v5.9.0

The path on the container on which to perform the health check. Defaults to "/".

func (ContainerServiceDeploymentVersionPublicEndpointHealthCheckPtrOutput) SuccessCodes added in v5.9.0

The HTTP codes to use when checking for a successful response from a container. You can specify values between 200 and 499. Defaults to "200-499".

func (ContainerServiceDeploymentVersionPublicEndpointHealthCheckPtrOutput) TimeoutSeconds added in v5.9.0

The amount of time, in seconds, during which no response means a failed health check. You can specify between 2 and 60 seconds. Defaults to 2.

func (ContainerServiceDeploymentVersionPublicEndpointHealthCheckPtrOutput) ToContainerServiceDeploymentVersionPublicEndpointHealthCheckPtrOutput added in v5.9.0

func (ContainerServiceDeploymentVersionPublicEndpointHealthCheckPtrOutput) ToContainerServiceDeploymentVersionPublicEndpointHealthCheckPtrOutputWithContext added in v5.9.0

func (o ContainerServiceDeploymentVersionPublicEndpointHealthCheckPtrOutput) ToContainerServiceDeploymentVersionPublicEndpointHealthCheckPtrOutputWithContext(ctx context.Context) ContainerServiceDeploymentVersionPublicEndpointHealthCheckPtrOutput

func (ContainerServiceDeploymentVersionPublicEndpointHealthCheckPtrOutput) UnhealthyThreshold added in v5.9.0

The number of consecutive health checks failures required before moving the container to the Unhealthy state. Defaults to 2.

type ContainerServiceDeploymentVersionPublicEndpointInput added in v5.9.0

type ContainerServiceDeploymentVersionPublicEndpointInput interface {
	pulumi.Input

	ToContainerServiceDeploymentVersionPublicEndpointOutput() ContainerServiceDeploymentVersionPublicEndpointOutput
	ToContainerServiceDeploymentVersionPublicEndpointOutputWithContext(context.Context) ContainerServiceDeploymentVersionPublicEndpointOutput
}

ContainerServiceDeploymentVersionPublicEndpointInput is an input type that accepts ContainerServiceDeploymentVersionPublicEndpointArgs and ContainerServiceDeploymentVersionPublicEndpointOutput values. You can construct a concrete instance of `ContainerServiceDeploymentVersionPublicEndpointInput` via:

ContainerServiceDeploymentVersionPublicEndpointArgs{...}

type ContainerServiceDeploymentVersionPublicEndpointOutput added in v5.9.0

type ContainerServiceDeploymentVersionPublicEndpointOutput struct{ *pulumi.OutputState }

func (ContainerServiceDeploymentVersionPublicEndpointOutput) ContainerName added in v5.9.0

The name of the container for the endpoint.

func (ContainerServiceDeploymentVersionPublicEndpointOutput) ContainerPort added in v5.9.0

The port of the container to which traffic is forwarded to.

func (ContainerServiceDeploymentVersionPublicEndpointOutput) ElementType added in v5.9.0

func (ContainerServiceDeploymentVersionPublicEndpointOutput) HealthCheck added in v5.9.0

A configuration block that describes the health check configuration of the container. Detailed below.

func (ContainerServiceDeploymentVersionPublicEndpointOutput) ToContainerServiceDeploymentVersionPublicEndpointOutput added in v5.9.0

func (ContainerServiceDeploymentVersionPublicEndpointOutput) ToContainerServiceDeploymentVersionPublicEndpointOutputWithContext added in v5.9.0

func (o ContainerServiceDeploymentVersionPublicEndpointOutput) ToContainerServiceDeploymentVersionPublicEndpointOutputWithContext(ctx context.Context) ContainerServiceDeploymentVersionPublicEndpointOutput

func (ContainerServiceDeploymentVersionPublicEndpointOutput) ToContainerServiceDeploymentVersionPublicEndpointPtrOutput added in v5.9.0

func (o ContainerServiceDeploymentVersionPublicEndpointOutput) ToContainerServiceDeploymentVersionPublicEndpointPtrOutput() ContainerServiceDeploymentVersionPublicEndpointPtrOutput

func (ContainerServiceDeploymentVersionPublicEndpointOutput) ToContainerServiceDeploymentVersionPublicEndpointPtrOutputWithContext added in v5.9.0

func (o ContainerServiceDeploymentVersionPublicEndpointOutput) ToContainerServiceDeploymentVersionPublicEndpointPtrOutputWithContext(ctx context.Context) ContainerServiceDeploymentVersionPublicEndpointPtrOutput

type ContainerServiceDeploymentVersionPublicEndpointPtrInput added in v5.9.0

type ContainerServiceDeploymentVersionPublicEndpointPtrInput interface {
	pulumi.Input

	ToContainerServiceDeploymentVersionPublicEndpointPtrOutput() ContainerServiceDeploymentVersionPublicEndpointPtrOutput
	ToContainerServiceDeploymentVersionPublicEndpointPtrOutputWithContext(context.Context) ContainerServiceDeploymentVersionPublicEndpointPtrOutput
}

ContainerServiceDeploymentVersionPublicEndpointPtrInput is an input type that accepts ContainerServiceDeploymentVersionPublicEndpointArgs, ContainerServiceDeploymentVersionPublicEndpointPtr and ContainerServiceDeploymentVersionPublicEndpointPtrOutput values. You can construct a concrete instance of `ContainerServiceDeploymentVersionPublicEndpointPtrInput` via:

        ContainerServiceDeploymentVersionPublicEndpointArgs{...}

or:

        nil

type ContainerServiceDeploymentVersionPublicEndpointPtrOutput added in v5.9.0

type ContainerServiceDeploymentVersionPublicEndpointPtrOutput struct{ *pulumi.OutputState }

func (ContainerServiceDeploymentVersionPublicEndpointPtrOutput) ContainerName added in v5.9.0

The name of the container for the endpoint.

func (ContainerServiceDeploymentVersionPublicEndpointPtrOutput) ContainerPort added in v5.9.0

The port of the container to which traffic is forwarded to.

func (ContainerServiceDeploymentVersionPublicEndpointPtrOutput) Elem added in v5.9.0

func (ContainerServiceDeploymentVersionPublicEndpointPtrOutput) ElementType added in v5.9.0

func (ContainerServiceDeploymentVersionPublicEndpointPtrOutput) HealthCheck added in v5.9.0

A configuration block that describes the health check configuration of the container. Detailed below.

func (ContainerServiceDeploymentVersionPublicEndpointPtrOutput) ToContainerServiceDeploymentVersionPublicEndpointPtrOutput added in v5.9.0

func (ContainerServiceDeploymentVersionPublicEndpointPtrOutput) ToContainerServiceDeploymentVersionPublicEndpointPtrOutputWithContext added in v5.9.0

func (o ContainerServiceDeploymentVersionPublicEndpointPtrOutput) ToContainerServiceDeploymentVersionPublicEndpointPtrOutputWithContext(ctx context.Context) ContainerServiceDeploymentVersionPublicEndpointPtrOutput

type ContainerServiceDeploymentVersionState added in v5.9.0

type ContainerServiceDeploymentVersionState struct {
	// A set of configuration blocks that describe the settings of the containers that will be launched on the container service. Maximum of 53. Detailed below.
	Containers ContainerServiceDeploymentVersionContainerArrayInput
	// The timestamp when the deployment was created.
	CreatedAt pulumi.StringPtrInput
	// A configuration block that describes the settings of the public endpoint for the container service. Detailed below.
	PublicEndpoint ContainerServiceDeploymentVersionPublicEndpointPtrInput
	// The name for the container service.
	ServiceName pulumi.StringPtrInput
	// The current state of the container service.
	State pulumi.StringPtrInput
	// The version number of the deployment.
	Version pulumi.IntPtrInput
}

func (ContainerServiceDeploymentVersionState) ElementType added in v5.9.0

type ContainerServiceInput added in v5.9.0

type ContainerServiceInput interface {
	pulumi.Input

	ToContainerServiceOutput() ContainerServiceOutput
	ToContainerServiceOutputWithContext(ctx context.Context) ContainerServiceOutput
}

type ContainerServiceMap added in v5.9.0

type ContainerServiceMap map[string]ContainerServiceInput

func (ContainerServiceMap) ElementType added in v5.9.0

func (ContainerServiceMap) ElementType() reflect.Type

func (ContainerServiceMap) ToContainerServiceMapOutput added in v5.9.0

func (i ContainerServiceMap) ToContainerServiceMapOutput() ContainerServiceMapOutput

func (ContainerServiceMap) ToContainerServiceMapOutputWithContext added in v5.9.0

func (i ContainerServiceMap) ToContainerServiceMapOutputWithContext(ctx context.Context) ContainerServiceMapOutput

type ContainerServiceMapInput added in v5.9.0

type ContainerServiceMapInput interface {
	pulumi.Input

	ToContainerServiceMapOutput() ContainerServiceMapOutput
	ToContainerServiceMapOutputWithContext(context.Context) ContainerServiceMapOutput
}

ContainerServiceMapInput is an input type that accepts ContainerServiceMap and ContainerServiceMapOutput values. You can construct a concrete instance of `ContainerServiceMapInput` via:

ContainerServiceMap{ "key": ContainerServiceArgs{...} }

type ContainerServiceMapOutput added in v5.9.0

type ContainerServiceMapOutput struct{ *pulumi.OutputState }

func (ContainerServiceMapOutput) ElementType added in v5.9.0

func (ContainerServiceMapOutput) ElementType() reflect.Type

func (ContainerServiceMapOutput) MapIndex added in v5.9.0

func (ContainerServiceMapOutput) ToContainerServiceMapOutput added in v5.9.0

func (o ContainerServiceMapOutput) ToContainerServiceMapOutput() ContainerServiceMapOutput

func (ContainerServiceMapOutput) ToContainerServiceMapOutputWithContext added in v5.9.0

func (o ContainerServiceMapOutput) ToContainerServiceMapOutputWithContext(ctx context.Context) ContainerServiceMapOutput

type ContainerServiceOutput added in v5.9.0

type ContainerServiceOutput struct{ *pulumi.OutputState }

func (ContainerServiceOutput) Arn added in v5.9.0

The Amazon Resource Name (ARN) of the container service.

func (ContainerServiceOutput) AvailabilityZone added in v5.9.0

func (o ContainerServiceOutput) AvailabilityZone() pulumi.StringOutput

The Availability Zone. Follows the format us-east-2a (case-sensitive).

func (ContainerServiceOutput) CreatedAt added in v5.9.0

func (ContainerServiceOutput) ElementType added in v5.9.0

func (ContainerServiceOutput) ElementType() reflect.Type

func (ContainerServiceOutput) IsDisabled added in v5.9.0

A Boolean value indicating whether the container service is disabled. Defaults to `false`.

func (ContainerServiceOutput) Name added in v5.9.0

The name for the container service. Names must be of length 1 to 63, and be unique within each AWS Region in your Lightsail account.

func (ContainerServiceOutput) Power added in v5.9.0

The power specification for the container service. The power specifies the amount of memory, the number of vCPUs, and the monthly price of each node of the container service. Possible values: `nano`, `micro`, `small`, `medium`, `large`, `xlarge`.

func (ContainerServiceOutput) PowerId added in v5.9.0

The ID of the power of the container service.

func (ContainerServiceOutput) PrincipalArn added in v5.9.0

func (o ContainerServiceOutput) PrincipalArn() pulumi.StringOutput

The principal ARN of the container service. The principal ARN can be used to create a trust relationship between your standard AWS account and your Lightsail container service. This allows you to give your service permission to access resources in your standard AWS account.

func (ContainerServiceOutput) PrivateDomainName added in v5.9.0

func (o ContainerServiceOutput) PrivateDomainName() pulumi.StringOutput

The private domain name of the container service. The private domain name is accessible only by other resources within the default virtual private cloud (VPC) of your Lightsail account.

func (ContainerServiceOutput) PrivateRegistryAccess added in v5.19.0

An object to describe the configuration for the container service to access private container image repositories, such as Amazon Elastic Container Registry (Amazon ECR) private repositories. See Private Registry Access below for more details.

func (ContainerServiceOutput) PublicDomainNames added in v5.9.0

The public domain names to use with the container service, such as example.com and www.example.com. You can specify up to four public domain names for a container service. The domain names that you specify are used when you create a deployment with a container configured as the public endpoint of your container service. If you don't specify public domain names, then you can use the default domain of the container service. Defined below.

func (ContainerServiceOutput) ResourceType added in v5.9.0

func (o ContainerServiceOutput) ResourceType() pulumi.StringOutput

The Lightsail resource type of the container service (i.e., ContainerService).

func (ContainerServiceOutput) Scale added in v5.9.0

The scale specification for the container service. The scale specifies the allocated compute nodes of the container service.

func (ContainerServiceOutput) State added in v5.9.0

The current state of the container service.

func (ContainerServiceOutput) Tags added in v5.9.0

Map of container service tags. To tag at launch, specify the tags in the Launch Template. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.

func (ContainerServiceOutput) TagsAll added in v5.9.0

A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.

func (ContainerServiceOutput) ToContainerServiceOutput added in v5.9.0

func (o ContainerServiceOutput) ToContainerServiceOutput() ContainerServiceOutput

func (ContainerServiceOutput) ToContainerServiceOutputWithContext added in v5.9.0

func (o ContainerServiceOutput) ToContainerServiceOutputWithContext(ctx context.Context) ContainerServiceOutput

func (ContainerServiceOutput) Url added in v5.9.0

The publicly accessible URL of the container service. If no public endpoint is specified in the currentDeployment, this URL returns a 404 response.

type ContainerServicePrivateRegistryAccess added in v5.19.0

type ContainerServicePrivateRegistryAccess struct {
	// Describes a request to configure an Amazon Lightsail container service to access private container image repositories, such as Amazon Elastic Container Registry (Amazon ECR) private repositories. See ECR Image Puller Role below for more details.
	EcrImagePullerRole *ContainerServicePrivateRegistryAccessEcrImagePullerRole `pulumi:"ecrImagePullerRole"`
}

type ContainerServicePrivateRegistryAccessArgs added in v5.19.0

type ContainerServicePrivateRegistryAccessArgs struct {
	// Describes a request to configure an Amazon Lightsail container service to access private container image repositories, such as Amazon Elastic Container Registry (Amazon ECR) private repositories. See ECR Image Puller Role below for more details.
	EcrImagePullerRole ContainerServicePrivateRegistryAccessEcrImagePullerRolePtrInput `pulumi:"ecrImagePullerRole"`
}

func (ContainerServicePrivateRegistryAccessArgs) ElementType added in v5.19.0

func (ContainerServicePrivateRegistryAccessArgs) ToContainerServicePrivateRegistryAccessOutput added in v5.19.0

func (i ContainerServicePrivateRegistryAccessArgs) ToContainerServicePrivateRegistryAccessOutput() ContainerServicePrivateRegistryAccessOutput

func (ContainerServicePrivateRegistryAccessArgs) ToContainerServicePrivateRegistryAccessOutputWithContext added in v5.19.0

func (i ContainerServicePrivateRegistryAccessArgs) ToContainerServicePrivateRegistryAccessOutputWithContext(ctx context.Context) ContainerServicePrivateRegistryAccessOutput

func (ContainerServicePrivateRegistryAccessArgs) ToContainerServicePrivateRegistryAccessPtrOutput added in v5.19.0

func (i ContainerServicePrivateRegistryAccessArgs) ToContainerServicePrivateRegistryAccessPtrOutput() ContainerServicePrivateRegistryAccessPtrOutput

func (ContainerServicePrivateRegistryAccessArgs) ToContainerServicePrivateRegistryAccessPtrOutputWithContext added in v5.19.0

func (i ContainerServicePrivateRegistryAccessArgs) ToContainerServicePrivateRegistryAccessPtrOutputWithContext(ctx context.Context) ContainerServicePrivateRegistryAccessPtrOutput

type ContainerServicePrivateRegistryAccessEcrImagePullerRole added in v5.19.0

type ContainerServicePrivateRegistryAccessEcrImagePullerRole struct {
	// A Boolean value that indicates whether to activate the role. The default is `false`.
	IsActive *bool `pulumi:"isActive"`
	// The principal ARN of the container service. The principal ARN can be used to create a trust
	// relationship between your standard AWS account and your Lightsail container service. This allows you to give your
	// service permission to access resources in your standard AWS account.
	PrincipalArn *string `pulumi:"principalArn"`
}

type ContainerServicePrivateRegistryAccessEcrImagePullerRoleArgs added in v5.19.0

type ContainerServicePrivateRegistryAccessEcrImagePullerRoleArgs struct {
	// A Boolean value that indicates whether to activate the role. The default is `false`.
	IsActive pulumi.BoolPtrInput `pulumi:"isActive"`
	// The principal ARN of the container service. The principal ARN can be used to create a trust
	// relationship between your standard AWS account and your Lightsail container service. This allows you to give your
	// service permission to access resources in your standard AWS account.
	PrincipalArn pulumi.StringPtrInput `pulumi:"principalArn"`
}

func (ContainerServicePrivateRegistryAccessEcrImagePullerRoleArgs) ElementType added in v5.19.0

func (ContainerServicePrivateRegistryAccessEcrImagePullerRoleArgs) ToContainerServicePrivateRegistryAccessEcrImagePullerRoleOutput added in v5.19.0

func (ContainerServicePrivateRegistryAccessEcrImagePullerRoleArgs) ToContainerServicePrivateRegistryAccessEcrImagePullerRoleOutputWithContext added in v5.19.0

func (i ContainerServicePrivateRegistryAccessEcrImagePullerRoleArgs) ToContainerServicePrivateRegistryAccessEcrImagePullerRoleOutputWithContext(ctx context.Context) ContainerServicePrivateRegistryAccessEcrImagePullerRoleOutput

func (ContainerServicePrivateRegistryAccessEcrImagePullerRoleArgs) ToContainerServicePrivateRegistryAccessEcrImagePullerRolePtrOutput added in v5.19.0

func (ContainerServicePrivateRegistryAccessEcrImagePullerRoleArgs) ToContainerServicePrivateRegistryAccessEcrImagePullerRolePtrOutputWithContext added in v5.19.0

func (i ContainerServicePrivateRegistryAccessEcrImagePullerRoleArgs) ToContainerServicePrivateRegistryAccessEcrImagePullerRolePtrOutputWithContext(ctx context.Context) ContainerServicePrivateRegistryAccessEcrImagePullerRolePtrOutput

type ContainerServicePrivateRegistryAccessEcrImagePullerRoleInput added in v5.19.0

type ContainerServicePrivateRegistryAccessEcrImagePullerRoleInput interface {
	pulumi.Input

	ToContainerServicePrivateRegistryAccessEcrImagePullerRoleOutput() ContainerServicePrivateRegistryAccessEcrImagePullerRoleOutput
	ToContainerServicePrivateRegistryAccessEcrImagePullerRoleOutputWithContext(context.Context) ContainerServicePrivateRegistryAccessEcrImagePullerRoleOutput
}

ContainerServicePrivateRegistryAccessEcrImagePullerRoleInput is an input type that accepts ContainerServicePrivateRegistryAccessEcrImagePullerRoleArgs and ContainerServicePrivateRegistryAccessEcrImagePullerRoleOutput values. You can construct a concrete instance of `ContainerServicePrivateRegistryAccessEcrImagePullerRoleInput` via:

ContainerServicePrivateRegistryAccessEcrImagePullerRoleArgs{...}

type ContainerServicePrivateRegistryAccessEcrImagePullerRoleOutput added in v5.19.0

type ContainerServicePrivateRegistryAccessEcrImagePullerRoleOutput struct{ *pulumi.OutputState }

func (ContainerServicePrivateRegistryAccessEcrImagePullerRoleOutput) ElementType added in v5.19.0

func (ContainerServicePrivateRegistryAccessEcrImagePullerRoleOutput) IsActive added in v5.19.0

A Boolean value that indicates whether to activate the role. The default is `false`.

func (ContainerServicePrivateRegistryAccessEcrImagePullerRoleOutput) PrincipalArn added in v5.19.0

The principal ARN of the container service. The principal ARN can be used to create a trust relationship between your standard AWS account and your Lightsail container service. This allows you to give your service permission to access resources in your standard AWS account.

func (ContainerServicePrivateRegistryAccessEcrImagePullerRoleOutput) ToContainerServicePrivateRegistryAccessEcrImagePullerRoleOutput added in v5.19.0

func (ContainerServicePrivateRegistryAccessEcrImagePullerRoleOutput) ToContainerServicePrivateRegistryAccessEcrImagePullerRoleOutputWithContext added in v5.19.0

func (o ContainerServicePrivateRegistryAccessEcrImagePullerRoleOutput) ToContainerServicePrivateRegistryAccessEcrImagePullerRoleOutputWithContext(ctx context.Context) ContainerServicePrivateRegistryAccessEcrImagePullerRoleOutput

func (ContainerServicePrivateRegistryAccessEcrImagePullerRoleOutput) ToContainerServicePrivateRegistryAccessEcrImagePullerRolePtrOutput added in v5.19.0

func (ContainerServicePrivateRegistryAccessEcrImagePullerRoleOutput) ToContainerServicePrivateRegistryAccessEcrImagePullerRolePtrOutputWithContext added in v5.19.0

func (o ContainerServicePrivateRegistryAccessEcrImagePullerRoleOutput) ToContainerServicePrivateRegistryAccessEcrImagePullerRolePtrOutputWithContext(ctx context.Context) ContainerServicePrivateRegistryAccessEcrImagePullerRolePtrOutput

type ContainerServicePrivateRegistryAccessEcrImagePullerRolePtrInput added in v5.19.0

type ContainerServicePrivateRegistryAccessEcrImagePullerRolePtrInput interface {
	pulumi.Input

	ToContainerServicePrivateRegistryAccessEcrImagePullerRolePtrOutput() ContainerServicePrivateRegistryAccessEcrImagePullerRolePtrOutput
	ToContainerServicePrivateRegistryAccessEcrImagePullerRolePtrOutputWithContext(context.Context) ContainerServicePrivateRegistryAccessEcrImagePullerRolePtrOutput
}

ContainerServicePrivateRegistryAccessEcrImagePullerRolePtrInput is an input type that accepts ContainerServicePrivateRegistryAccessEcrImagePullerRoleArgs, ContainerServicePrivateRegistryAccessEcrImagePullerRolePtr and ContainerServicePrivateRegistryAccessEcrImagePullerRolePtrOutput values. You can construct a concrete instance of `ContainerServicePrivateRegistryAccessEcrImagePullerRolePtrInput` via:

        ContainerServicePrivateRegistryAccessEcrImagePullerRoleArgs{...}

or:

        nil

type ContainerServicePrivateRegistryAccessEcrImagePullerRolePtrOutput added in v5.19.0

type ContainerServicePrivateRegistryAccessEcrImagePullerRolePtrOutput struct{ *pulumi.OutputState }

func (ContainerServicePrivateRegistryAccessEcrImagePullerRolePtrOutput) Elem added in v5.19.0

func (ContainerServicePrivateRegistryAccessEcrImagePullerRolePtrOutput) ElementType added in v5.19.0

func (ContainerServicePrivateRegistryAccessEcrImagePullerRolePtrOutput) IsActive added in v5.19.0

A Boolean value that indicates whether to activate the role. The default is `false`.

func (ContainerServicePrivateRegistryAccessEcrImagePullerRolePtrOutput) PrincipalArn added in v5.19.0

The principal ARN of the container service. The principal ARN can be used to create a trust relationship between your standard AWS account and your Lightsail container service. This allows you to give your service permission to access resources in your standard AWS account.

func (ContainerServicePrivateRegistryAccessEcrImagePullerRolePtrOutput) ToContainerServicePrivateRegistryAccessEcrImagePullerRolePtrOutput added in v5.19.0

func (ContainerServicePrivateRegistryAccessEcrImagePullerRolePtrOutput) ToContainerServicePrivateRegistryAccessEcrImagePullerRolePtrOutputWithContext added in v5.19.0

func (o ContainerServicePrivateRegistryAccessEcrImagePullerRolePtrOutput) ToContainerServicePrivateRegistryAccessEcrImagePullerRolePtrOutputWithContext(ctx context.Context) ContainerServicePrivateRegistryAccessEcrImagePullerRolePtrOutput

type ContainerServicePrivateRegistryAccessInput added in v5.19.0

type ContainerServicePrivateRegistryAccessInput interface {
	pulumi.Input

	ToContainerServicePrivateRegistryAccessOutput() ContainerServicePrivateRegistryAccessOutput
	ToContainerServicePrivateRegistryAccessOutputWithContext(context.Context) ContainerServicePrivateRegistryAccessOutput
}

ContainerServicePrivateRegistryAccessInput is an input type that accepts ContainerServicePrivateRegistryAccessArgs and ContainerServicePrivateRegistryAccessOutput values. You can construct a concrete instance of `ContainerServicePrivateRegistryAccessInput` via:

ContainerServicePrivateRegistryAccessArgs{...}

type ContainerServicePrivateRegistryAccessOutput added in v5.19.0

type ContainerServicePrivateRegistryAccessOutput struct{ *pulumi.OutputState }

func (ContainerServicePrivateRegistryAccessOutput) EcrImagePullerRole added in v5.19.0

Describes a request to configure an Amazon Lightsail container service to access private container image repositories, such as Amazon Elastic Container Registry (Amazon ECR) private repositories. See ECR Image Puller Role below for more details.

func (ContainerServicePrivateRegistryAccessOutput) ElementType added in v5.19.0

func (ContainerServicePrivateRegistryAccessOutput) ToContainerServicePrivateRegistryAccessOutput added in v5.19.0

func (o ContainerServicePrivateRegistryAccessOutput) ToContainerServicePrivateRegistryAccessOutput() ContainerServicePrivateRegistryAccessOutput

func (ContainerServicePrivateRegistryAccessOutput) ToContainerServicePrivateRegistryAccessOutputWithContext added in v5.19.0

func (o ContainerServicePrivateRegistryAccessOutput) ToContainerServicePrivateRegistryAccessOutputWithContext(ctx context.Context) ContainerServicePrivateRegistryAccessOutput

func (ContainerServicePrivateRegistryAccessOutput) ToContainerServicePrivateRegistryAccessPtrOutput added in v5.19.0

func (o ContainerServicePrivateRegistryAccessOutput) ToContainerServicePrivateRegistryAccessPtrOutput() ContainerServicePrivateRegistryAccessPtrOutput

func (ContainerServicePrivateRegistryAccessOutput) ToContainerServicePrivateRegistryAccessPtrOutputWithContext added in v5.19.0

func (o ContainerServicePrivateRegistryAccessOutput) ToContainerServicePrivateRegistryAccessPtrOutputWithContext(ctx context.Context) ContainerServicePrivateRegistryAccessPtrOutput

type ContainerServicePrivateRegistryAccessPtrInput added in v5.19.0

type ContainerServicePrivateRegistryAccessPtrInput interface {
	pulumi.Input

	ToContainerServicePrivateRegistryAccessPtrOutput() ContainerServicePrivateRegistryAccessPtrOutput
	ToContainerServicePrivateRegistryAccessPtrOutputWithContext(context.Context) ContainerServicePrivateRegistryAccessPtrOutput
}

ContainerServicePrivateRegistryAccessPtrInput is an input type that accepts ContainerServicePrivateRegistryAccessArgs, ContainerServicePrivateRegistryAccessPtr and ContainerServicePrivateRegistryAccessPtrOutput values. You can construct a concrete instance of `ContainerServicePrivateRegistryAccessPtrInput` via:

        ContainerServicePrivateRegistryAccessArgs{...}

or:

        nil

type ContainerServicePrivateRegistryAccessPtrOutput added in v5.19.0

type ContainerServicePrivateRegistryAccessPtrOutput struct{ *pulumi.OutputState }

func (ContainerServicePrivateRegistryAccessPtrOutput) EcrImagePullerRole added in v5.19.0

Describes a request to configure an Amazon Lightsail container service to access private container image repositories, such as Amazon Elastic Container Registry (Amazon ECR) private repositories. See ECR Image Puller Role below for more details.

func (ContainerServicePrivateRegistryAccessPtrOutput) Elem added in v5.19.0

func (ContainerServicePrivateRegistryAccessPtrOutput) ElementType added in v5.19.0

func (ContainerServicePrivateRegistryAccessPtrOutput) ToContainerServicePrivateRegistryAccessPtrOutput added in v5.19.0

func (o ContainerServicePrivateRegistryAccessPtrOutput) ToContainerServicePrivateRegistryAccessPtrOutput() ContainerServicePrivateRegistryAccessPtrOutput

func (ContainerServicePrivateRegistryAccessPtrOutput) ToContainerServicePrivateRegistryAccessPtrOutputWithContext added in v5.19.0

func (o ContainerServicePrivateRegistryAccessPtrOutput) ToContainerServicePrivateRegistryAccessPtrOutputWithContext(ctx context.Context) ContainerServicePrivateRegistryAccessPtrOutput

type ContainerServicePublicDomainNames added in v5.9.0

type ContainerServicePublicDomainNames struct {
	Certificates []ContainerServicePublicDomainNamesCertificate `pulumi:"certificates"`
}

type ContainerServicePublicDomainNamesArgs added in v5.9.0

type ContainerServicePublicDomainNamesArgs struct {
	Certificates ContainerServicePublicDomainNamesCertificateArrayInput `pulumi:"certificates"`
}

func (ContainerServicePublicDomainNamesArgs) ElementType added in v5.9.0

func (ContainerServicePublicDomainNamesArgs) ToContainerServicePublicDomainNamesOutput added in v5.9.0

func (i ContainerServicePublicDomainNamesArgs) ToContainerServicePublicDomainNamesOutput() ContainerServicePublicDomainNamesOutput

func (ContainerServicePublicDomainNamesArgs) ToContainerServicePublicDomainNamesOutputWithContext added in v5.9.0

func (i ContainerServicePublicDomainNamesArgs) ToContainerServicePublicDomainNamesOutputWithContext(ctx context.Context) ContainerServicePublicDomainNamesOutput

func (ContainerServicePublicDomainNamesArgs) ToContainerServicePublicDomainNamesPtrOutput added in v5.9.0

func (i ContainerServicePublicDomainNamesArgs) ToContainerServicePublicDomainNamesPtrOutput() ContainerServicePublicDomainNamesPtrOutput

func (ContainerServicePublicDomainNamesArgs) ToContainerServicePublicDomainNamesPtrOutputWithContext added in v5.9.0

func (i ContainerServicePublicDomainNamesArgs) ToContainerServicePublicDomainNamesPtrOutputWithContext(ctx context.Context) ContainerServicePublicDomainNamesPtrOutput

type ContainerServicePublicDomainNamesCertificate added in v5.9.0

type ContainerServicePublicDomainNamesCertificate struct {
	CertificateName string   `pulumi:"certificateName"`
	DomainNames     []string `pulumi:"domainNames"`
}

type ContainerServicePublicDomainNamesCertificateArgs added in v5.9.0

type ContainerServicePublicDomainNamesCertificateArgs struct {
	CertificateName pulumi.StringInput      `pulumi:"certificateName"`
	DomainNames     pulumi.StringArrayInput `pulumi:"domainNames"`
}

func (ContainerServicePublicDomainNamesCertificateArgs) ElementType added in v5.9.0

func (ContainerServicePublicDomainNamesCertificateArgs) ToContainerServicePublicDomainNamesCertificateOutput added in v5.9.0

func (i ContainerServicePublicDomainNamesCertificateArgs) ToContainerServicePublicDomainNamesCertificateOutput() ContainerServicePublicDomainNamesCertificateOutput

func (ContainerServicePublicDomainNamesCertificateArgs) ToContainerServicePublicDomainNamesCertificateOutputWithContext added in v5.9.0

func (i ContainerServicePublicDomainNamesCertificateArgs) ToContainerServicePublicDomainNamesCertificateOutputWithContext(ctx context.Context) ContainerServicePublicDomainNamesCertificateOutput

type ContainerServicePublicDomainNamesCertificateArray added in v5.9.0

type ContainerServicePublicDomainNamesCertificateArray []ContainerServicePublicDomainNamesCertificateInput

func (ContainerServicePublicDomainNamesCertificateArray) ElementType added in v5.9.0

func (ContainerServicePublicDomainNamesCertificateArray) ToContainerServicePublicDomainNamesCertificateArrayOutput added in v5.9.0

func (i ContainerServicePublicDomainNamesCertificateArray) ToContainerServicePublicDomainNamesCertificateArrayOutput() ContainerServicePublicDomainNamesCertificateArrayOutput

func (ContainerServicePublicDomainNamesCertificateArray) ToContainerServicePublicDomainNamesCertificateArrayOutputWithContext added in v5.9.0

func (i ContainerServicePublicDomainNamesCertificateArray) ToContainerServicePublicDomainNamesCertificateArrayOutputWithContext(ctx context.Context) ContainerServicePublicDomainNamesCertificateArrayOutput

type ContainerServicePublicDomainNamesCertificateArrayInput added in v5.9.0

type ContainerServicePublicDomainNamesCertificateArrayInput interface {
	pulumi.Input

	ToContainerServicePublicDomainNamesCertificateArrayOutput() ContainerServicePublicDomainNamesCertificateArrayOutput
	ToContainerServicePublicDomainNamesCertificateArrayOutputWithContext(context.Context) ContainerServicePublicDomainNamesCertificateArrayOutput
}

ContainerServicePublicDomainNamesCertificateArrayInput is an input type that accepts ContainerServicePublicDomainNamesCertificateArray and ContainerServicePublicDomainNamesCertificateArrayOutput values. You can construct a concrete instance of `ContainerServicePublicDomainNamesCertificateArrayInput` via:

ContainerServicePublicDomainNamesCertificateArray{ ContainerServicePublicDomainNamesCertificateArgs{...} }

type ContainerServicePublicDomainNamesCertificateArrayOutput added in v5.9.0

type ContainerServicePublicDomainNamesCertificateArrayOutput struct{ *pulumi.OutputState }

func (ContainerServicePublicDomainNamesCertificateArrayOutput) ElementType added in v5.9.0

func (ContainerServicePublicDomainNamesCertificateArrayOutput) Index added in v5.9.0

func (ContainerServicePublicDomainNamesCertificateArrayOutput) ToContainerServicePublicDomainNamesCertificateArrayOutput added in v5.9.0

func (ContainerServicePublicDomainNamesCertificateArrayOutput) ToContainerServicePublicDomainNamesCertificateArrayOutputWithContext added in v5.9.0

func (o ContainerServicePublicDomainNamesCertificateArrayOutput) ToContainerServicePublicDomainNamesCertificateArrayOutputWithContext(ctx context.Context) ContainerServicePublicDomainNamesCertificateArrayOutput

type ContainerServicePublicDomainNamesCertificateInput added in v5.9.0

type ContainerServicePublicDomainNamesCertificateInput interface {
	pulumi.Input

	ToContainerServicePublicDomainNamesCertificateOutput() ContainerServicePublicDomainNamesCertificateOutput
	ToContainerServicePublicDomainNamesCertificateOutputWithContext(context.Context) ContainerServicePublicDomainNamesCertificateOutput
}

ContainerServicePublicDomainNamesCertificateInput is an input type that accepts ContainerServicePublicDomainNamesCertificateArgs and ContainerServicePublicDomainNamesCertificateOutput values. You can construct a concrete instance of `ContainerServicePublicDomainNamesCertificateInput` via:

ContainerServicePublicDomainNamesCertificateArgs{...}

type ContainerServicePublicDomainNamesCertificateOutput added in v5.9.0

type ContainerServicePublicDomainNamesCertificateOutput struct{ *pulumi.OutputState }

func (ContainerServicePublicDomainNamesCertificateOutput) CertificateName added in v5.9.0

func (ContainerServicePublicDomainNamesCertificateOutput) DomainNames added in v5.9.0

func (ContainerServicePublicDomainNamesCertificateOutput) ElementType added in v5.9.0

func (ContainerServicePublicDomainNamesCertificateOutput) ToContainerServicePublicDomainNamesCertificateOutput added in v5.9.0

func (o ContainerServicePublicDomainNamesCertificateOutput) ToContainerServicePublicDomainNamesCertificateOutput() ContainerServicePublicDomainNamesCertificateOutput

func (ContainerServicePublicDomainNamesCertificateOutput) ToContainerServicePublicDomainNamesCertificateOutputWithContext added in v5.9.0

func (o ContainerServicePublicDomainNamesCertificateOutput) ToContainerServicePublicDomainNamesCertificateOutputWithContext(ctx context.Context) ContainerServicePublicDomainNamesCertificateOutput

type ContainerServicePublicDomainNamesInput added in v5.9.0

type ContainerServicePublicDomainNamesInput interface {
	pulumi.Input

	ToContainerServicePublicDomainNamesOutput() ContainerServicePublicDomainNamesOutput
	ToContainerServicePublicDomainNamesOutputWithContext(context.Context) ContainerServicePublicDomainNamesOutput
}

ContainerServicePublicDomainNamesInput is an input type that accepts ContainerServicePublicDomainNamesArgs and ContainerServicePublicDomainNamesOutput values. You can construct a concrete instance of `ContainerServicePublicDomainNamesInput` via:

ContainerServicePublicDomainNamesArgs{...}

type ContainerServicePublicDomainNamesOutput added in v5.9.0

type ContainerServicePublicDomainNamesOutput struct{ *pulumi.OutputState }

func (ContainerServicePublicDomainNamesOutput) Certificates added in v5.9.0

func (ContainerServicePublicDomainNamesOutput) ElementType added in v5.9.0

func (ContainerServicePublicDomainNamesOutput) ToContainerServicePublicDomainNamesOutput added in v5.9.0

func (o ContainerServicePublicDomainNamesOutput) ToContainerServicePublicDomainNamesOutput() ContainerServicePublicDomainNamesOutput

func (ContainerServicePublicDomainNamesOutput) ToContainerServicePublicDomainNamesOutputWithContext added in v5.9.0

func (o ContainerServicePublicDomainNamesOutput) ToContainerServicePublicDomainNamesOutputWithContext(ctx context.Context) ContainerServicePublicDomainNamesOutput

func (ContainerServicePublicDomainNamesOutput) ToContainerServicePublicDomainNamesPtrOutput added in v5.9.0

func (o ContainerServicePublicDomainNamesOutput) ToContainerServicePublicDomainNamesPtrOutput() ContainerServicePublicDomainNamesPtrOutput

func (ContainerServicePublicDomainNamesOutput) ToContainerServicePublicDomainNamesPtrOutputWithContext added in v5.9.0

func (o ContainerServicePublicDomainNamesOutput) ToContainerServicePublicDomainNamesPtrOutputWithContext(ctx context.Context) ContainerServicePublicDomainNamesPtrOutput

type ContainerServicePublicDomainNamesPtrInput added in v5.9.0

type ContainerServicePublicDomainNamesPtrInput interface {
	pulumi.Input

	ToContainerServicePublicDomainNamesPtrOutput() ContainerServicePublicDomainNamesPtrOutput
	ToContainerServicePublicDomainNamesPtrOutputWithContext(context.Context) ContainerServicePublicDomainNamesPtrOutput
}

ContainerServicePublicDomainNamesPtrInput is an input type that accepts ContainerServicePublicDomainNamesArgs, ContainerServicePublicDomainNamesPtr and ContainerServicePublicDomainNamesPtrOutput values. You can construct a concrete instance of `ContainerServicePublicDomainNamesPtrInput` via:

        ContainerServicePublicDomainNamesArgs{...}

or:

        nil

type ContainerServicePublicDomainNamesPtrOutput added in v5.9.0

type ContainerServicePublicDomainNamesPtrOutput struct{ *pulumi.OutputState }

func (ContainerServicePublicDomainNamesPtrOutput) Certificates added in v5.9.0

func (ContainerServicePublicDomainNamesPtrOutput) Elem added in v5.9.0

func (ContainerServicePublicDomainNamesPtrOutput) ElementType added in v5.9.0

func (ContainerServicePublicDomainNamesPtrOutput) ToContainerServicePublicDomainNamesPtrOutput added in v5.9.0

func (o ContainerServicePublicDomainNamesPtrOutput) ToContainerServicePublicDomainNamesPtrOutput() ContainerServicePublicDomainNamesPtrOutput

func (ContainerServicePublicDomainNamesPtrOutput) ToContainerServicePublicDomainNamesPtrOutputWithContext added in v5.9.0

func (o ContainerServicePublicDomainNamesPtrOutput) ToContainerServicePublicDomainNamesPtrOutputWithContext(ctx context.Context) ContainerServicePublicDomainNamesPtrOutput

type ContainerServiceState added in v5.9.0

type ContainerServiceState struct {
	// The Amazon Resource Name (ARN) of the container service.
	Arn pulumi.StringPtrInput
	// The Availability Zone. Follows the format us-east-2a (case-sensitive).
	AvailabilityZone pulumi.StringPtrInput
	CreatedAt        pulumi.StringPtrInput
	// A Boolean value indicating whether the container service is disabled. Defaults to `false`.
	IsDisabled pulumi.BoolPtrInput
	// The name for the container service. Names must be of length 1 to 63, and be
	// unique within each AWS Region in your Lightsail account.
	Name pulumi.StringPtrInput
	// The power specification for the container service. The power specifies the amount of memory,
	// the number of vCPUs, and the monthly price of each node of the container service.
	// Possible values: `nano`, `micro`, `small`, `medium`, `large`, `xlarge`.
	Power pulumi.StringPtrInput
	// The ID of the power of the container service.
	PowerId pulumi.StringPtrInput
	// The principal ARN of the container service. The principal ARN can be used to create a trust
	// relationship between your standard AWS account and your Lightsail container service. This allows you to give your
	// service permission to access resources in your standard AWS account.
	PrincipalArn pulumi.StringPtrInput
	// The private domain name of the container service. The private domain name is accessible only
	// by other resources within the default virtual private cloud (VPC) of your Lightsail account.
	PrivateDomainName pulumi.StringPtrInput
	// An object to describe the configuration for the container service to access private container image repositories, such as Amazon Elastic Container Registry (Amazon ECR) private repositories. See Private Registry Access below for more details.
	PrivateRegistryAccess ContainerServicePrivateRegistryAccessPtrInput
	// The public domain names to use with the container service, such as example.com
	// and www.example.com. You can specify up to four public domain names for a container service. The domain names that you
	// specify are used when you create a deployment with a container configured as the public endpoint of your container
	// service. If you don't specify public domain names, then you can use the default domain of the container service.
	// Defined below.
	PublicDomainNames ContainerServicePublicDomainNamesPtrInput
	// The Lightsail resource type of the container service (i.e., ContainerService).
	ResourceType pulumi.StringPtrInput
	// The scale specification for the container service. The scale specifies the allocated compute
	// nodes of the container service.
	Scale pulumi.IntPtrInput
	// The current state of the container service.
	State pulumi.StringPtrInput
	// Map of container service tags. To tag at launch, specify the tags in the Launch Template. 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
	// `defaultTags` configuration block.
	TagsAll pulumi.StringMapInput
	// The publicly accessible URL of the container service. If no public endpoint is specified in the
	// currentDeployment, this URL returns a 404 response.
	Url pulumi.StringPtrInput
}

func (ContainerServiceState) ElementType added in v5.9.0

func (ContainerServiceState) ElementType() reflect.Type

type Database added in v5.10.0

type Database struct {
	pulumi.CustomResourceState

	// When true , applies changes immediately. When false , applies changes during the preferred maintenance window. Some changes may cause an outage.
	ApplyImmediately pulumi.BoolOutput `pulumi:"applyImmediately"`
	// The ARN of the Lightsail instance (matches `id`).
	Arn pulumi.StringOutput `pulumi:"arn"`
	// The Availability Zone in which to create your new database. Use the us-east-2a case-sensitive format.
	AvailabilityZone pulumi.StringOutput `pulumi:"availabilityZone"`
	// When true, enables automated backup retention for your database. When false, disables automated backup retention for your database. Disabling backup retention deletes all automated database backups. Before disabling this, you may want to create a snapshot of your database.
	BackupRetentionEnabled pulumi.BoolPtrOutput `pulumi:"backupRetentionEnabled"`
	// The blueprint ID for your new database. A blueprint describes the major engine version of a database. You can get a list of database blueprints IDs by using the AWS CLI command: `aws lightsail get-relational-database-blueprints`
	BlueprintId pulumi.StringOutput `pulumi:"blueprintId"`
	// The bundle ID for your new database. A bundle describes the performance specifications for your database (see list below). You can get a list of database bundle IDs by using the AWS CLI command: `aws lightsail get-relational-database-bundles`.
	BundleId pulumi.StringOutput `pulumi:"bundleId"`
	// The certificate associated with the database.
	CaCertificateIdentifier pulumi.StringOutput `pulumi:"caCertificateIdentifier"`
	// The number of vCPUs for the database.
	CpuCount pulumi.IntOutput `pulumi:"cpuCount"`
	// The timestamp when the instance was created.
	CreatedAt pulumi.StringOutput `pulumi:"createdAt"`
	// The size of the disk for the database.
	DiskSize pulumi.Float64Output `pulumi:"diskSize"`
	// The database software (for example, MySQL).
	Engine pulumi.StringOutput `pulumi:"engine"`
	// The database engine version (for example, 5.7.23).
	EngineVersion pulumi.StringOutput `pulumi:"engineVersion"`
	// The name of the database snapshot created if skip final snapshot is false, which is the default value for that parameter.
	FinalSnapshotName pulumi.StringPtrOutput `pulumi:"finalSnapshotName"`
	// The name of the master database created when the Lightsail database resource is created.
	MasterDatabaseName pulumi.StringOutput `pulumi:"masterDatabaseName"`
	// The master endpoint fqdn for the database.
	MasterEndpointAddress pulumi.StringOutput `pulumi:"masterEndpointAddress"`
	// The master endpoint network port for the database.
	MasterEndpointPort pulumi.IntOutput `pulumi:"masterEndpointPort"`
	// The password for the master user of your new database. The password can include any printable ASCII character except "/", """, or "@".
	MasterPassword pulumi.StringOutput `pulumi:"masterPassword"`
	// The master user name for your new database.
	MasterUsername pulumi.StringOutput `pulumi:"masterUsername"`
	// The daily time range during which automated backups are created for your new database if automated backups are enabled. Must be in the hh24:mi-hh24:mi format. Example: `16:00-16:30`. Specified in Coordinated Universal Time (UTC).
	PreferredBackupWindow pulumi.StringOutput `pulumi:"preferredBackupWindow"`
	// The weekly time range during which system maintenance can occur on your new database. Must be in the ddd:hh24:mi-ddd:hh24:mi format. Specified in Coordinated Universal Time (UTC). Example: `Tue:17:00-Tue:17:30`
	PreferredMaintenanceWindow pulumi.StringOutput `pulumi:"preferredMaintenanceWindow"`
	// Specifies the accessibility options for your new database. A value of true specifies a database that is available to resources outside of your Lightsail account. A value of false specifies a database that is available only to your Lightsail resources in the same region as your database.
	PubliclyAccessible pulumi.BoolPtrOutput `pulumi:"publiclyAccessible"`
	// The amount of RAM in GB for the database.
	RamSize                pulumi.Float64Output `pulumi:"ramSize"`
	RelationalDatabaseName pulumi.StringOutput  `pulumi:"relationalDatabaseName"`
	// Describes the secondary Availability Zone of a high availability database. The secondary database is used for failover support of a high availability database.
	SecondaryAvailabilityZone pulumi.StringOutput `pulumi:"secondaryAvailabilityZone"`
	// Determines whether a final database snapshot is created before your database is deleted. If true is specified, no database snapshot is created. If false is specified, a database snapshot is created before your database is deleted. You must specify the final relational database snapshot name parameter if the skip final snapshot parameter is false.
	SkipFinalSnapshot pulumi.BoolPtrOutput `pulumi:"skipFinalSnapshot"`
	// The support code for the database. Include this code in your email to support when you have questions about a database in Lightsail. This code enables our support team to look up your Lightsail information more easily.
	SupportCode pulumi.StringOutput `pulumi:"supportCode"`
	// A map of tags to assign to the resource. To create a key-only tag, use an empty string as the value.
	Tags pulumi.StringMapOutput `pulumi:"tags"`
	// A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
	TagsAll pulumi.StringMapOutput `pulumi:"tagsAll"`
}

Provides a Lightsail Database. Amazon Lightsail is a service to provide easy virtual private servers with custom software already setup. See [What is Amazon Lightsail?](https://lightsail.aws.amazon.com/ls/docs/getting-started/article/what-is-amazon-lightsail) for more information.

> **Note:** Lightsail is currently only supported in a limited number of AWS Regions, please see ["Regions and Availability Zones"](https://aws.amazon.com/about-aws/global-infrastructure/regional-product-services/) for more details

## Example Usage ## Blueprint Ids

A list of all available Lightsail Blueprints for Relational Databases the [aws lightsail get-relational-database-blueprints](https://docs.aws.amazon.com/cli/latest/reference/lightsail/get-relational-database-blueprints.html) aws cli command.

### Examples

- `mysql80` - `postgres12`

### Prefix

A Blueprint ID starts with a prefix of the engine type.

### Suffix

A Blueprint ID has a sufix of the engine version.

## Bundles

A list of all available Lightsail Bundles for Relational Databases the [aws lightsail get-relational-database-bundles](https://docs.aws.amazon.com/cli/latest/reference/lightsail/get-relational-database-bundles.html) aws cli command.

### Examples

- `small10` - `smallHa10` - `large10` - `largeHa10`

### Prefix

A Bundle ID starts with one of the below size prefixes:

- `micro_` - `small_` - `medium_` - `large_`

### Infixes (Optional for HA Database)

A Bundle Id can have the following infix added in order to use the HA option of the selected bundle.

- `ha_`

### Suffix

A Bundle ID ends with one of the following suffix: `10`

## Import

Lightsail Databases can be imported using their name, e.g.

```sh

$ pulumi import aws:lightsail/database:Database foo 'bar'

```

func GetDatabase added in v5.10.0

func GetDatabase(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *DatabaseState, opts ...pulumi.ResourceOption) (*Database, error)

GetDatabase gets an existing Database 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 NewDatabase added in v5.10.0

func NewDatabase(ctx *pulumi.Context,
	name string, args *DatabaseArgs, opts ...pulumi.ResourceOption) (*Database, error)

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

func (*Database) ElementType added in v5.10.0

func (*Database) ElementType() reflect.Type

func (*Database) ToDatabaseOutput added in v5.10.0

func (i *Database) ToDatabaseOutput() DatabaseOutput

func (*Database) ToDatabaseOutputWithContext added in v5.10.0

func (i *Database) ToDatabaseOutputWithContext(ctx context.Context) DatabaseOutput

type DatabaseArgs added in v5.10.0

type DatabaseArgs struct {
	// When true , applies changes immediately. When false , applies changes during the preferred maintenance window. Some changes may cause an outage.
	ApplyImmediately pulumi.BoolPtrInput
	// The Availability Zone in which to create your new database. Use the us-east-2a case-sensitive format.
	AvailabilityZone pulumi.StringPtrInput
	// When true, enables automated backup retention for your database. When false, disables automated backup retention for your database. Disabling backup retention deletes all automated database backups. Before disabling this, you may want to create a snapshot of your database.
	BackupRetentionEnabled pulumi.BoolPtrInput
	// The blueprint ID for your new database. A blueprint describes the major engine version of a database. You can get a list of database blueprints IDs by using the AWS CLI command: `aws lightsail get-relational-database-blueprints`
	BlueprintId pulumi.StringInput
	// The bundle ID for your new database. A bundle describes the performance specifications for your database (see list below). You can get a list of database bundle IDs by using the AWS CLI command: `aws lightsail get-relational-database-bundles`.
	BundleId pulumi.StringInput
	// The name of the database snapshot created if skip final snapshot is false, which is the default value for that parameter.
	FinalSnapshotName pulumi.StringPtrInput
	// The name of the master database created when the Lightsail database resource is created.
	MasterDatabaseName pulumi.StringInput
	// The password for the master user of your new database. The password can include any printable ASCII character except "/", """, or "@".
	MasterPassword pulumi.StringInput
	// The master user name for your new database.
	MasterUsername pulumi.StringInput
	// The daily time range during which automated backups are created for your new database if automated backups are enabled. Must be in the hh24:mi-hh24:mi format. Example: `16:00-16:30`. Specified in Coordinated Universal Time (UTC).
	PreferredBackupWindow pulumi.StringPtrInput
	// The weekly time range during which system maintenance can occur on your new database. Must be in the ddd:hh24:mi-ddd:hh24:mi format. Specified in Coordinated Universal Time (UTC). Example: `Tue:17:00-Tue:17:30`
	PreferredMaintenanceWindow pulumi.StringPtrInput
	// Specifies the accessibility options for your new database. A value of true specifies a database that is available to resources outside of your Lightsail account. A value of false specifies a database that is available only to your Lightsail resources in the same region as your database.
	PubliclyAccessible     pulumi.BoolPtrInput
	RelationalDatabaseName pulumi.StringInput
	// Determines whether a final database snapshot is created before your database is deleted. If true is specified, no database snapshot is created. If false is specified, a database snapshot is created before your database is deleted. You must specify the final relational database snapshot name parameter if the skip final snapshot parameter is false.
	SkipFinalSnapshot pulumi.BoolPtrInput
	// A map of tags to assign to the resource. To create a key-only tag, use an empty string as the value.
	Tags pulumi.StringMapInput
}

The set of arguments for constructing a Database resource.

func (DatabaseArgs) ElementType added in v5.10.0

func (DatabaseArgs) ElementType() reflect.Type

type DatabaseArray added in v5.10.0

type DatabaseArray []DatabaseInput

func (DatabaseArray) ElementType added in v5.10.0

func (DatabaseArray) ElementType() reflect.Type

func (DatabaseArray) ToDatabaseArrayOutput added in v5.10.0

func (i DatabaseArray) ToDatabaseArrayOutput() DatabaseArrayOutput

func (DatabaseArray) ToDatabaseArrayOutputWithContext added in v5.10.0

func (i DatabaseArray) ToDatabaseArrayOutputWithContext(ctx context.Context) DatabaseArrayOutput

type DatabaseArrayInput added in v5.10.0

type DatabaseArrayInput interface {
	pulumi.Input

	ToDatabaseArrayOutput() DatabaseArrayOutput
	ToDatabaseArrayOutputWithContext(context.Context) DatabaseArrayOutput
}

DatabaseArrayInput is an input type that accepts DatabaseArray and DatabaseArrayOutput values. You can construct a concrete instance of `DatabaseArrayInput` via:

DatabaseArray{ DatabaseArgs{...} }

type DatabaseArrayOutput added in v5.10.0

type DatabaseArrayOutput struct{ *pulumi.OutputState }

func (DatabaseArrayOutput) ElementType added in v5.10.0

func (DatabaseArrayOutput) ElementType() reflect.Type

func (DatabaseArrayOutput) Index added in v5.10.0

func (DatabaseArrayOutput) ToDatabaseArrayOutput added in v5.10.0

func (o DatabaseArrayOutput) ToDatabaseArrayOutput() DatabaseArrayOutput

func (DatabaseArrayOutput) ToDatabaseArrayOutputWithContext added in v5.10.0

func (o DatabaseArrayOutput) ToDatabaseArrayOutputWithContext(ctx context.Context) DatabaseArrayOutput

type DatabaseInput added in v5.10.0

type DatabaseInput interface {
	pulumi.Input

	ToDatabaseOutput() DatabaseOutput
	ToDatabaseOutputWithContext(ctx context.Context) DatabaseOutput
}

type DatabaseMap added in v5.10.0

type DatabaseMap map[string]DatabaseInput

func (DatabaseMap) ElementType added in v5.10.0

func (DatabaseMap) ElementType() reflect.Type

func (DatabaseMap) ToDatabaseMapOutput added in v5.10.0

func (i DatabaseMap) ToDatabaseMapOutput() DatabaseMapOutput

func (DatabaseMap) ToDatabaseMapOutputWithContext added in v5.10.0

func (i DatabaseMap) ToDatabaseMapOutputWithContext(ctx context.Context) DatabaseMapOutput

type DatabaseMapInput added in v5.10.0

type DatabaseMapInput interface {
	pulumi.Input

	ToDatabaseMapOutput() DatabaseMapOutput
	ToDatabaseMapOutputWithContext(context.Context) DatabaseMapOutput
}

DatabaseMapInput is an input type that accepts DatabaseMap and DatabaseMapOutput values. You can construct a concrete instance of `DatabaseMapInput` via:

DatabaseMap{ "key": DatabaseArgs{...} }

type DatabaseMapOutput added in v5.10.0

type DatabaseMapOutput struct{ *pulumi.OutputState }

func (DatabaseMapOutput) ElementType added in v5.10.0

func (DatabaseMapOutput) ElementType() reflect.Type

func (DatabaseMapOutput) MapIndex added in v5.10.0

func (DatabaseMapOutput) ToDatabaseMapOutput added in v5.10.0

func (o DatabaseMapOutput) ToDatabaseMapOutput() DatabaseMapOutput

func (DatabaseMapOutput) ToDatabaseMapOutputWithContext added in v5.10.0

func (o DatabaseMapOutput) ToDatabaseMapOutputWithContext(ctx context.Context) DatabaseMapOutput

type DatabaseOutput added in v5.10.0

type DatabaseOutput struct{ *pulumi.OutputState }

func (DatabaseOutput) ApplyImmediately added in v5.10.0

func (o DatabaseOutput) ApplyImmediately() pulumi.BoolOutput

When true , applies changes immediately. When false , applies changes during the preferred maintenance window. Some changes may cause an outage.

func (DatabaseOutput) Arn added in v5.10.0

The ARN of the Lightsail instance (matches `id`).

func (DatabaseOutput) AvailabilityZone added in v5.10.0

func (o DatabaseOutput) AvailabilityZone() pulumi.StringOutput

The Availability Zone in which to create your new database. Use the us-east-2a case-sensitive format.

func (DatabaseOutput) BackupRetentionEnabled added in v5.10.0

func (o DatabaseOutput) BackupRetentionEnabled() pulumi.BoolPtrOutput

When true, enables automated backup retention for your database. When false, disables automated backup retention for your database. Disabling backup retention deletes all automated database backups. Before disabling this, you may want to create a snapshot of your database.

func (DatabaseOutput) BlueprintId added in v5.10.0

func (o DatabaseOutput) BlueprintId() pulumi.StringOutput

The blueprint ID for your new database. A blueprint describes the major engine version of a database. You can get a list of database blueprints IDs by using the AWS CLI command: `aws lightsail get-relational-database-blueprints`

func (DatabaseOutput) BundleId added in v5.10.0

func (o DatabaseOutput) BundleId() pulumi.StringOutput

The bundle ID for your new database. A bundle describes the performance specifications for your database (see list below). You can get a list of database bundle IDs by using the AWS CLI command: `aws lightsail get-relational-database-bundles`.

func (DatabaseOutput) CaCertificateIdentifier added in v5.10.0

func (o DatabaseOutput) CaCertificateIdentifier() pulumi.StringOutput

The certificate associated with the database.

func (DatabaseOutput) CpuCount added in v5.10.0

func (o DatabaseOutput) CpuCount() pulumi.IntOutput

The number of vCPUs for the database.

func (DatabaseOutput) CreatedAt added in v5.10.0

func (o DatabaseOutput) CreatedAt() pulumi.StringOutput

The timestamp when the instance was created.

func (DatabaseOutput) DiskSize added in v5.10.0

func (o DatabaseOutput) DiskSize() pulumi.Float64Output

The size of the disk for the database.

func (DatabaseOutput) ElementType added in v5.10.0

func (DatabaseOutput) ElementType() reflect.Type

func (DatabaseOutput) Engine added in v5.10.0

func (o DatabaseOutput) Engine() pulumi.StringOutput

The database software (for example, MySQL).

func (DatabaseOutput) EngineVersion added in v5.10.0

func (o DatabaseOutput) EngineVersion() pulumi.StringOutput

The database engine version (for example, 5.7.23).

func (DatabaseOutput) FinalSnapshotName added in v5.10.0

func (o DatabaseOutput) FinalSnapshotName() pulumi.StringPtrOutput

The name of the database snapshot created if skip final snapshot is false, which is the default value for that parameter.

func (DatabaseOutput) MasterDatabaseName added in v5.10.0

func (o DatabaseOutput) MasterDatabaseName() pulumi.StringOutput

The name of the master database created when the Lightsail database resource is created.

func (DatabaseOutput) MasterEndpointAddress added in v5.10.0

func (o DatabaseOutput) MasterEndpointAddress() pulumi.StringOutput

The master endpoint fqdn for the database.

func (DatabaseOutput) MasterEndpointPort added in v5.10.0

func (o DatabaseOutput) MasterEndpointPort() pulumi.IntOutput

The master endpoint network port for the database.

func (DatabaseOutput) MasterPassword added in v5.10.0

func (o DatabaseOutput) MasterPassword() pulumi.StringOutput

The password for the master user of your new database. The password can include any printable ASCII character except "/", """, or "@".

func (DatabaseOutput) MasterUsername added in v5.10.0

func (o DatabaseOutput) MasterUsername() pulumi.StringOutput

The master user name for your new database.

func (DatabaseOutput) PreferredBackupWindow added in v5.10.0

func (o DatabaseOutput) PreferredBackupWindow() pulumi.StringOutput

The daily time range during which automated backups are created for your new database if automated backups are enabled. Must be in the hh24:mi-hh24:mi format. Example: `16:00-16:30`. Specified in Coordinated Universal Time (UTC).

func (DatabaseOutput) PreferredMaintenanceWindow added in v5.10.0

func (o DatabaseOutput) PreferredMaintenanceWindow() pulumi.StringOutput

The weekly time range during which system maintenance can occur on your new database. Must be in the ddd:hh24:mi-ddd:hh24:mi format. Specified in Coordinated Universal Time (UTC). Example: `Tue:17:00-Tue:17:30`

func (DatabaseOutput) PubliclyAccessible added in v5.10.0

func (o DatabaseOutput) PubliclyAccessible() pulumi.BoolPtrOutput

Specifies the accessibility options for your new database. A value of true specifies a database that is available to resources outside of your Lightsail account. A value of false specifies a database that is available only to your Lightsail resources in the same region as your database.

func (DatabaseOutput) RamSize added in v5.10.0

func (o DatabaseOutput) RamSize() pulumi.Float64Output

The amount of RAM in GB for the database.

func (DatabaseOutput) RelationalDatabaseName added in v5.10.0

func (o DatabaseOutput) RelationalDatabaseName() pulumi.StringOutput

func (DatabaseOutput) SecondaryAvailabilityZone added in v5.10.0

func (o DatabaseOutput) SecondaryAvailabilityZone() pulumi.StringOutput

Describes the secondary Availability Zone of a high availability database. The secondary database is used for failover support of a high availability database.

func (DatabaseOutput) SkipFinalSnapshot added in v5.10.0

func (o DatabaseOutput) SkipFinalSnapshot() pulumi.BoolPtrOutput

Determines whether a final database snapshot is created before your database is deleted. If true is specified, no database snapshot is created. If false is specified, a database snapshot is created before your database is deleted. You must specify the final relational database snapshot name parameter if the skip final snapshot parameter is false.

func (DatabaseOutput) SupportCode added in v5.10.0

func (o DatabaseOutput) SupportCode() pulumi.StringOutput

The support code for the database. Include this code in your email to support when you have questions about a database in Lightsail. This code enables our support team to look up your Lightsail information more easily.

func (DatabaseOutput) Tags added in v5.10.0

A map of tags to assign to the resource. To create a key-only tag, use an empty string as the value.

func (DatabaseOutput) TagsAll added in v5.10.0

A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.

func (DatabaseOutput) ToDatabaseOutput added in v5.10.0

func (o DatabaseOutput) ToDatabaseOutput() DatabaseOutput

func (DatabaseOutput) ToDatabaseOutputWithContext added in v5.10.0

func (o DatabaseOutput) ToDatabaseOutputWithContext(ctx context.Context) DatabaseOutput

type DatabaseState added in v5.10.0

type DatabaseState struct {
	// When true , applies changes immediately. When false , applies changes during the preferred maintenance window. Some changes may cause an outage.
	ApplyImmediately pulumi.BoolPtrInput
	// The ARN of the Lightsail instance (matches `id`).
	Arn pulumi.StringPtrInput
	// The Availability Zone in which to create your new database. Use the us-east-2a case-sensitive format.
	AvailabilityZone pulumi.StringPtrInput
	// When true, enables automated backup retention for your database. When false, disables automated backup retention for your database. Disabling backup retention deletes all automated database backups. Before disabling this, you may want to create a snapshot of your database.
	BackupRetentionEnabled pulumi.BoolPtrInput
	// The blueprint ID for your new database. A blueprint describes the major engine version of a database. You can get a list of database blueprints IDs by using the AWS CLI command: `aws lightsail get-relational-database-blueprints`
	BlueprintId pulumi.StringPtrInput
	// The bundle ID for your new database. A bundle describes the performance specifications for your database (see list below). You can get a list of database bundle IDs by using the AWS CLI command: `aws lightsail get-relational-database-bundles`.
	BundleId pulumi.StringPtrInput
	// The certificate associated with the database.
	CaCertificateIdentifier pulumi.StringPtrInput
	// The number of vCPUs for the database.
	CpuCount pulumi.IntPtrInput
	// The timestamp when the instance was created.
	CreatedAt pulumi.StringPtrInput
	// The size of the disk for the database.
	DiskSize pulumi.Float64PtrInput
	// The database software (for example, MySQL).
	Engine pulumi.StringPtrInput
	// The database engine version (for example, 5.7.23).
	EngineVersion pulumi.StringPtrInput
	// The name of the database snapshot created if skip final snapshot is false, which is the default value for that parameter.
	FinalSnapshotName pulumi.StringPtrInput
	// The name of the master database created when the Lightsail database resource is created.
	MasterDatabaseName pulumi.StringPtrInput
	// The master endpoint fqdn for the database.
	MasterEndpointAddress pulumi.StringPtrInput
	// The master endpoint network port for the database.
	MasterEndpointPort pulumi.IntPtrInput
	// The password for the master user of your new database. The password can include any printable ASCII character except "/", """, or "@".
	MasterPassword pulumi.StringPtrInput
	// The master user name for your new database.
	MasterUsername pulumi.StringPtrInput
	// The daily time range during which automated backups are created for your new database if automated backups are enabled. Must be in the hh24:mi-hh24:mi format. Example: `16:00-16:30`. Specified in Coordinated Universal Time (UTC).
	PreferredBackupWindow pulumi.StringPtrInput
	// The weekly time range during which system maintenance can occur on your new database. Must be in the ddd:hh24:mi-ddd:hh24:mi format. Specified in Coordinated Universal Time (UTC). Example: `Tue:17:00-Tue:17:30`
	PreferredMaintenanceWindow pulumi.StringPtrInput
	// Specifies the accessibility options for your new database. A value of true specifies a database that is available to resources outside of your Lightsail account. A value of false specifies a database that is available only to your Lightsail resources in the same region as your database.
	PubliclyAccessible pulumi.BoolPtrInput
	// The amount of RAM in GB for the database.
	RamSize                pulumi.Float64PtrInput
	RelationalDatabaseName pulumi.StringPtrInput
	// Describes the secondary Availability Zone of a high availability database. The secondary database is used for failover support of a high availability database.
	SecondaryAvailabilityZone pulumi.StringPtrInput
	// Determines whether a final database snapshot is created before your database is deleted. If true is specified, no database snapshot is created. If false is specified, a database snapshot is created before your database is deleted. You must specify the final relational database snapshot name parameter if the skip final snapshot parameter is false.
	SkipFinalSnapshot pulumi.BoolPtrInput
	// The support code for the database. Include this code in your email to support when you have questions about a database in Lightsail. This code enables our support team to look up your Lightsail information more easily.
	SupportCode pulumi.StringPtrInput
	// A map of tags to assign to the resource. To create a key-only tag, use an empty string as the value.
	Tags pulumi.StringMapInput
	// A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
	TagsAll pulumi.StringMapInput
}

func (DatabaseState) ElementType added in v5.10.0

func (DatabaseState) ElementType() reflect.Type

type Disk added in v5.20.0

type Disk struct {
	pulumi.CustomResourceState

	// The ARN of the Lightsail load balancer.
	Arn pulumi.StringOutput `pulumi:"arn"`
	// The Availability Zone in which to create your disk.
	AvailabilityZone pulumi.StringOutput `pulumi:"availabilityZone"`
	// The timestamp when the load balancer was created.
	CreatedAt pulumi.StringOutput `pulumi:"createdAt"`
	// The name of the Lightsail load balancer.
	Name pulumi.StringOutput `pulumi:"name"`
	// The instance port the load balancer will connect.
	SizeInGb pulumi.IntOutput `pulumi:"sizeInGb"`
	// The support code for the disk. Include this code in your email to support when you have questions about a disk in Lightsail. This code enables our support team to look up your Lightsail information more easily.
	SupportCode pulumi.StringOutput `pulumi:"supportCode"`
	// A map of tags to assign to the resource. To create a key-only tag, use an empty string as the value. 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 `defaultTags` configuration block.
	TagsAll pulumi.StringMapOutput `pulumi:"tagsAll"`
}

Provides a Lightsail Disk resource.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-aws/sdk/v5/go/aws"
"github.com/pulumi/pulumi-aws/sdk/v5/go/aws/lightsail"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		available, err := aws.GetAvailabilityZones(ctx, &aws.GetAvailabilityZonesArgs{
			State: pulumi.StringRef("available"),
			Filters: []aws.GetAvailabilityZonesFilter{
				{
					Name: "opt-in-status",
					Values: []string{
						"opt-in-not-required",
					},
				},
			},
		}, nil)
		if err != nil {
			return err
		}
		_, err = lightsail.NewDisk(ctx, "test", &lightsail.DiskArgs{
			SizeInGb:         pulumi.Int(8),
			AvailabilityZone: *pulumi.String(available.Names[0]),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

`aws_lightsail_disk` can be imported by using the name attribute, e.g.,

```sh

$ pulumi import aws:lightsail/disk:Disk test test

```

func GetDisk added in v5.20.0

func GetDisk(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *DiskState, opts ...pulumi.ResourceOption) (*Disk, error)

GetDisk gets an existing Disk 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 NewDisk added in v5.20.0

func NewDisk(ctx *pulumi.Context,
	name string, args *DiskArgs, opts ...pulumi.ResourceOption) (*Disk, error)

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

func (*Disk) ElementType added in v5.20.0

func (*Disk) ElementType() reflect.Type

func (*Disk) ToDiskOutput added in v5.20.0

func (i *Disk) ToDiskOutput() DiskOutput

func (*Disk) ToDiskOutputWithContext added in v5.20.0

func (i *Disk) ToDiskOutputWithContext(ctx context.Context) DiskOutput

type DiskArgs added in v5.20.0

type DiskArgs struct {
	// The Availability Zone in which to create your disk.
	AvailabilityZone pulumi.StringInput
	// The name of the Lightsail load balancer.
	Name pulumi.StringPtrInput
	// The instance port the load balancer will connect.
	SizeInGb pulumi.IntInput
	// A map of tags to assign to the resource. To create a key-only tag, use an empty string as the value. 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 Disk resource.

func (DiskArgs) ElementType added in v5.20.0

func (DiskArgs) ElementType() reflect.Type

type DiskArray added in v5.20.0

type DiskArray []DiskInput

func (DiskArray) ElementType added in v5.20.0

func (DiskArray) ElementType() reflect.Type

func (DiskArray) ToDiskArrayOutput added in v5.20.0

func (i DiskArray) ToDiskArrayOutput() DiskArrayOutput

func (DiskArray) ToDiskArrayOutputWithContext added in v5.20.0

func (i DiskArray) ToDiskArrayOutputWithContext(ctx context.Context) DiskArrayOutput

type DiskArrayInput added in v5.20.0

type DiskArrayInput interface {
	pulumi.Input

	ToDiskArrayOutput() DiskArrayOutput
	ToDiskArrayOutputWithContext(context.Context) DiskArrayOutput
}

DiskArrayInput is an input type that accepts DiskArray and DiskArrayOutput values. You can construct a concrete instance of `DiskArrayInput` via:

DiskArray{ DiskArgs{...} }

type DiskArrayOutput added in v5.20.0

type DiskArrayOutput struct{ *pulumi.OutputState }

func (DiskArrayOutput) ElementType added in v5.20.0

func (DiskArrayOutput) ElementType() reflect.Type

func (DiskArrayOutput) Index added in v5.20.0

func (DiskArrayOutput) ToDiskArrayOutput added in v5.20.0

func (o DiskArrayOutput) ToDiskArrayOutput() DiskArrayOutput

func (DiskArrayOutput) ToDiskArrayOutputWithContext added in v5.20.0

func (o DiskArrayOutput) ToDiskArrayOutputWithContext(ctx context.Context) DiskArrayOutput

type DiskInput added in v5.20.0

type DiskInput interface {
	pulumi.Input

	ToDiskOutput() DiskOutput
	ToDiskOutputWithContext(ctx context.Context) DiskOutput
}

type DiskMap added in v5.20.0

type DiskMap map[string]DiskInput

func (DiskMap) ElementType added in v5.20.0

func (DiskMap) ElementType() reflect.Type

func (DiskMap) ToDiskMapOutput added in v5.20.0

func (i DiskMap) ToDiskMapOutput() DiskMapOutput

func (DiskMap) ToDiskMapOutputWithContext added in v5.20.0

func (i DiskMap) ToDiskMapOutputWithContext(ctx context.Context) DiskMapOutput

type DiskMapInput added in v5.20.0

type DiskMapInput interface {
	pulumi.Input

	ToDiskMapOutput() DiskMapOutput
	ToDiskMapOutputWithContext(context.Context) DiskMapOutput
}

DiskMapInput is an input type that accepts DiskMap and DiskMapOutput values. You can construct a concrete instance of `DiskMapInput` via:

DiskMap{ "key": DiskArgs{...} }

type DiskMapOutput added in v5.20.0

type DiskMapOutput struct{ *pulumi.OutputState }

func (DiskMapOutput) ElementType added in v5.20.0

func (DiskMapOutput) ElementType() reflect.Type

func (DiskMapOutput) MapIndex added in v5.20.0

func (DiskMapOutput) ToDiskMapOutput added in v5.20.0

func (o DiskMapOutput) ToDiskMapOutput() DiskMapOutput

func (DiskMapOutput) ToDiskMapOutputWithContext added in v5.20.0

func (o DiskMapOutput) ToDiskMapOutputWithContext(ctx context.Context) DiskMapOutput

type DiskOutput added in v5.20.0

type DiskOutput struct{ *pulumi.OutputState }

func (DiskOutput) Arn added in v5.20.0

func (o DiskOutput) Arn() pulumi.StringOutput

The ARN of the Lightsail load balancer.

func (DiskOutput) AvailabilityZone added in v5.20.0

func (o DiskOutput) AvailabilityZone() pulumi.StringOutput

The Availability Zone in which to create your disk.

func (DiskOutput) CreatedAt added in v5.20.0

func (o DiskOutput) CreatedAt() pulumi.StringOutput

The timestamp when the load balancer was created.

func (DiskOutput) ElementType added in v5.20.0

func (DiskOutput) ElementType() reflect.Type

func (DiskOutput) Name added in v5.20.0

func (o DiskOutput) Name() pulumi.StringOutput

The name of the Lightsail load balancer.

func (DiskOutput) SizeInGb added in v5.20.0

func (o DiskOutput) SizeInGb() pulumi.IntOutput

The instance port the load balancer will connect.

func (DiskOutput) SupportCode added in v5.20.0

func (o DiskOutput) SupportCode() pulumi.StringOutput

The support code for the disk. Include this code in your email to support when you have questions about a disk in Lightsail. This code enables our support team to look up your Lightsail information more easily.

func (DiskOutput) Tags added in v5.20.0

A map of tags to assign to the resource. To create a key-only tag, use an empty string as the value. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.

func (DiskOutput) TagsAll added in v5.20.0

func (o DiskOutput) TagsAll() pulumi.StringMapOutput

A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.

func (DiskOutput) ToDiskOutput added in v5.20.0

func (o DiskOutput) ToDiskOutput() DiskOutput

func (DiskOutput) ToDiskOutputWithContext added in v5.20.0

func (o DiskOutput) ToDiskOutputWithContext(ctx context.Context) DiskOutput

type DiskState added in v5.20.0

type DiskState struct {
	// The ARN of the Lightsail load balancer.
	Arn pulumi.StringPtrInput
	// The Availability Zone in which to create your disk.
	AvailabilityZone pulumi.StringPtrInput
	// The timestamp when the load balancer was created.
	CreatedAt pulumi.StringPtrInput
	// The name of the Lightsail load balancer.
	Name pulumi.StringPtrInput
	// The instance port the load balancer will connect.
	SizeInGb pulumi.IntPtrInput
	// The support code for the disk. Include this code in your email to support when you have questions about a disk in Lightsail. This code enables our support team to look up your Lightsail information more easily.
	SupportCode pulumi.StringPtrInput
	// A map of tags to assign to the resource. To create a key-only tag, use an empty string as the value. 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 `defaultTags` configuration block.
	TagsAll pulumi.StringMapInput
}

func (DiskState) ElementType added in v5.20.0

func (DiskState) ElementType() reflect.Type

type Disk_attachment added in v5.20.0

type Disk_attachment struct {
	pulumi.CustomResourceState

	// The name of the Lightsail Disk.
	DiskName pulumi.StringOutput `pulumi:"diskName"`
	// The disk path to expose to the instance.
	DiskPath pulumi.StringOutput `pulumi:"diskPath"`
	// The name of the Lightsail Instance to attach to.
	InstanceName pulumi.StringOutput `pulumi:"instanceName"`
}

Attaches a Lightsail disk to a Lightsail Instance

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-aws/sdk/v5/go/aws"
"github.com/pulumi/pulumi-aws/sdk/v5/go/aws/lightsail"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		available, err := aws.GetAvailabilityZones(ctx, &aws.GetAvailabilityZonesArgs{
			State: pulumi.StringRef("available"),
			Filters: []aws.GetAvailabilityZonesFilter{
				{
					Name: "opt-in-status",
					Values: []string{
						"opt-in-not-required",
					},
				},
			},
		}, nil)
		if err != nil {
			return err
		}
		testDisk, err := lightsail.NewDisk(ctx, "testDisk", &lightsail.DiskArgs{
			SizeInGb:         pulumi.Int(8),
			AvailabilityZone: *pulumi.String(available.Names[0]),
		})
		if err != nil {
			return err
		}
		testInstance, err := lightsail.NewInstance(ctx, "testInstance", &lightsail.InstanceArgs{
			AvailabilityZone: *pulumi.String(available.Names[0]),
			BlueprintId:      pulumi.String("amazon_linux_2"),
			BundleId:         pulumi.String("nano_1_0"),
		})
		if err != nil {
			return err
		}
		_, err = lightsail.NewDisk_attachment(ctx, "testDisk_attachment", &lightsail.Disk_attachmentArgs{
			DiskName:     testDisk.Name,
			InstanceName: testInstance.Name,
			DiskPath:     pulumi.String("/dev/xvdf"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

`aws_lightsail_disk` can be imported by using the id attribute, e.g.,

```sh

$ pulumi import aws:lightsail/disk_attachment:Disk_attachment test test-disk,test-instance

```

func GetDisk_attachment added in v5.20.0

func GetDisk_attachment(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *Disk_attachmentState, opts ...pulumi.ResourceOption) (*Disk_attachment, error)

GetDisk_attachment gets an existing Disk_attachment 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 NewDisk_attachment added in v5.20.0

func NewDisk_attachment(ctx *pulumi.Context,
	name string, args *Disk_attachmentArgs, opts ...pulumi.ResourceOption) (*Disk_attachment, error)

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

func (*Disk_attachment) ElementType added in v5.20.0

func (*Disk_attachment) ElementType() reflect.Type

func (*Disk_attachment) ToDisk_attachmentOutput added in v5.20.0

func (i *Disk_attachment) ToDisk_attachmentOutput() Disk_attachmentOutput

func (*Disk_attachment) ToDisk_attachmentOutputWithContext added in v5.20.0

func (i *Disk_attachment) ToDisk_attachmentOutputWithContext(ctx context.Context) Disk_attachmentOutput

type Disk_attachmentArgs added in v5.20.0

type Disk_attachmentArgs struct {
	// The name of the Lightsail Disk.
	DiskName pulumi.StringInput
	// The disk path to expose to the instance.
	DiskPath pulumi.StringInput
	// The name of the Lightsail Instance to attach to.
	InstanceName pulumi.StringInput
}

The set of arguments for constructing a Disk_attachment resource.

func (Disk_attachmentArgs) ElementType added in v5.20.0

func (Disk_attachmentArgs) ElementType() reflect.Type

type Disk_attachmentArray added in v5.20.0

type Disk_attachmentArray []Disk_attachmentInput

func (Disk_attachmentArray) ElementType added in v5.20.0

func (Disk_attachmentArray) ElementType() reflect.Type

func (Disk_attachmentArray) ToDisk_attachmentArrayOutput added in v5.20.0

func (i Disk_attachmentArray) ToDisk_attachmentArrayOutput() Disk_attachmentArrayOutput

func (Disk_attachmentArray) ToDisk_attachmentArrayOutputWithContext added in v5.20.0

func (i Disk_attachmentArray) ToDisk_attachmentArrayOutputWithContext(ctx context.Context) Disk_attachmentArrayOutput

type Disk_attachmentArrayInput added in v5.20.0

type Disk_attachmentArrayInput interface {
	pulumi.Input

	ToDisk_attachmentArrayOutput() Disk_attachmentArrayOutput
	ToDisk_attachmentArrayOutputWithContext(context.Context) Disk_attachmentArrayOutput
}

Disk_attachmentArrayInput is an input type that accepts Disk_attachmentArray and Disk_attachmentArrayOutput values. You can construct a concrete instance of `Disk_attachmentArrayInput` via:

Disk_attachmentArray{ Disk_attachmentArgs{...} }

type Disk_attachmentArrayOutput added in v5.20.0

type Disk_attachmentArrayOutput struct{ *pulumi.OutputState }

func (Disk_attachmentArrayOutput) ElementType added in v5.20.0

func (Disk_attachmentArrayOutput) ElementType() reflect.Type

func (Disk_attachmentArrayOutput) Index added in v5.20.0

func (Disk_attachmentArrayOutput) ToDisk_attachmentArrayOutput added in v5.20.0

func (o Disk_attachmentArrayOutput) ToDisk_attachmentArrayOutput() Disk_attachmentArrayOutput

func (Disk_attachmentArrayOutput) ToDisk_attachmentArrayOutputWithContext added in v5.20.0

func (o Disk_attachmentArrayOutput) ToDisk_attachmentArrayOutputWithContext(ctx context.Context) Disk_attachmentArrayOutput

type Disk_attachmentInput added in v5.20.0

type Disk_attachmentInput interface {
	pulumi.Input

	ToDisk_attachmentOutput() Disk_attachmentOutput
	ToDisk_attachmentOutputWithContext(ctx context.Context) Disk_attachmentOutput
}

type Disk_attachmentMap added in v5.20.0

type Disk_attachmentMap map[string]Disk_attachmentInput

func (Disk_attachmentMap) ElementType added in v5.20.0

func (Disk_attachmentMap) ElementType() reflect.Type

func (Disk_attachmentMap) ToDisk_attachmentMapOutput added in v5.20.0

func (i Disk_attachmentMap) ToDisk_attachmentMapOutput() Disk_attachmentMapOutput

func (Disk_attachmentMap) ToDisk_attachmentMapOutputWithContext added in v5.20.0

func (i Disk_attachmentMap) ToDisk_attachmentMapOutputWithContext(ctx context.Context) Disk_attachmentMapOutput

type Disk_attachmentMapInput added in v5.20.0

type Disk_attachmentMapInput interface {
	pulumi.Input

	ToDisk_attachmentMapOutput() Disk_attachmentMapOutput
	ToDisk_attachmentMapOutputWithContext(context.Context) Disk_attachmentMapOutput
}

Disk_attachmentMapInput is an input type that accepts Disk_attachmentMap and Disk_attachmentMapOutput values. You can construct a concrete instance of `Disk_attachmentMapInput` via:

Disk_attachmentMap{ "key": Disk_attachmentArgs{...} }

type Disk_attachmentMapOutput added in v5.20.0

type Disk_attachmentMapOutput struct{ *pulumi.OutputState }

func (Disk_attachmentMapOutput) ElementType added in v5.20.0

func (Disk_attachmentMapOutput) ElementType() reflect.Type

func (Disk_attachmentMapOutput) MapIndex added in v5.20.0

func (Disk_attachmentMapOutput) ToDisk_attachmentMapOutput added in v5.20.0

func (o Disk_attachmentMapOutput) ToDisk_attachmentMapOutput() Disk_attachmentMapOutput

func (Disk_attachmentMapOutput) ToDisk_attachmentMapOutputWithContext added in v5.20.0

func (o Disk_attachmentMapOutput) ToDisk_attachmentMapOutputWithContext(ctx context.Context) Disk_attachmentMapOutput

type Disk_attachmentOutput added in v5.20.0

type Disk_attachmentOutput struct{ *pulumi.OutputState }

func (Disk_attachmentOutput) DiskName added in v5.20.0

The name of the Lightsail Disk.

func (Disk_attachmentOutput) DiskPath added in v5.20.0

The disk path to expose to the instance.

func (Disk_attachmentOutput) ElementType added in v5.20.0

func (Disk_attachmentOutput) ElementType() reflect.Type

func (Disk_attachmentOutput) InstanceName added in v5.20.0

func (o Disk_attachmentOutput) InstanceName() pulumi.StringOutput

The name of the Lightsail Instance to attach to.

func (Disk_attachmentOutput) ToDisk_attachmentOutput added in v5.20.0

func (o Disk_attachmentOutput) ToDisk_attachmentOutput() Disk_attachmentOutput

func (Disk_attachmentOutput) ToDisk_attachmentOutputWithContext added in v5.20.0

func (o Disk_attachmentOutput) ToDisk_attachmentOutputWithContext(ctx context.Context) Disk_attachmentOutput

type Disk_attachmentState added in v5.20.0

type Disk_attachmentState struct {
	// The name of the Lightsail Disk.
	DiskName pulumi.StringPtrInput
	// The disk path to expose to the instance.
	DiskPath pulumi.StringPtrInput
	// The name of the Lightsail Instance to attach to.
	InstanceName pulumi.StringPtrInput
}

func (Disk_attachmentState) ElementType added in v5.20.0

func (Disk_attachmentState) ElementType() reflect.Type

type Distribution added in v5.36.0

type Distribution struct {
	pulumi.CustomResourceState

	// The alternate domain names of the distribution.
	AlternativeDomainNames pulumi.StringArrayOutput `pulumi:"alternativeDomainNames"`
	// The Amazon Resource Name (ARN) of the distribution.
	Arn pulumi.StringOutput `pulumi:"arn"`
	// Bundle ID to use for the distribution.
	BundleId pulumi.StringOutput `pulumi:"bundleId"`
	// An object that describes the cache behavior settings of the distribution. Detailed below
	//
	// The following arguments are optional:
	CacheBehaviorSettings DistributionCacheBehaviorSettingsPtrOutput `pulumi:"cacheBehaviorSettings"`
	// A set of configuration blocks that describe the per-path cache behavior of the distribution. Detailed below
	CacheBehaviors DistributionCacheBehaviorArrayOutput `pulumi:"cacheBehaviors"`
	// The name of the SSL/TLS certificate attached to the distribution, if any.
	CertificateName pulumi.StringPtrOutput `pulumi:"certificateName"`
	// The timestamp when the distribution was created.
	CreatedAt pulumi.StringOutput `pulumi:"createdAt"`
	// Object that describes the default cache behavior of the distribution. Detailed below
	DefaultCacheBehavior DistributionDefaultCacheBehaviorOutput `pulumi:"defaultCacheBehavior"`
	// The domain name of the distribution.
	DomainName pulumi.StringOutput `pulumi:"domainName"`
	// The IP address type of the distribution. Default: `dualstack`.
	IpAddressType pulumi.StringPtrOutput `pulumi:"ipAddressType"`
	// Indicates whether the distribution is enabled. Default: `true`.
	IsEnabled pulumi.BoolPtrOutput `pulumi:"isEnabled"`
	// An object that describes the location of the distribution, such as the AWS Region and Availability Zone. Detailed below
	Locations DistributionLocationArrayOutput `pulumi:"locations"`
	// Name of the distribution.
	Name pulumi.StringOutput `pulumi:"name"`
	// Object that describes the origin resource of the distribution, such as a Lightsail instance, bucket, or load balancer. Detailed below
	Origin DistributionOriginOutput `pulumi:"origin"`
	// The public DNS of the origin.
	OriginPublicDns pulumi.StringOutput `pulumi:"originPublicDns"`
	// The resource type of the origin resource (e.g., Instance).
	ResourceType pulumi.StringOutput `pulumi:"resourceType"`
	// The status of the distribution.
	Status pulumi.StringOutput `pulumi:"status"`
	// The support code. Include this code in your email to support when you have questions about your Lightsail distribution. This code enables our support team to look up your Lightsail information more easily.
	SupportCode pulumi.StringOutput `pulumi:"supportCode"`
	// Map of tags for the Lightsail Distribution. 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 `defaultTags` configuration block.
	TagsAll pulumi.StringMapOutput `pulumi:"tagsAll"`
}

Resource for managing an AWS Lightsail Distribution.

## Example Usage ### Basic Usage

Below is a basic example with a bucket as an origin.

```go package main

import (

"github.com/pulumi/pulumi-aws/sdk/v5/go/aws/lightsail"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		testBucket, err := lightsail.NewBucket(ctx, "testBucket", &lightsail.BucketArgs{
			BundleId: pulumi.String("small_1_0"),
		})
		if err != nil {
			return err
		}
		_, err = lightsail.NewDistribution(ctx, "testDistribution", &lightsail.DistributionArgs{
			BundleId: pulumi.String("small_1_0"),
			Origin: &lightsail.DistributionOriginArgs{
				Name:       testBucket.Name,
				RegionName: testBucket.Region,
			},
			DefaultCacheBehavior: &lightsail.DistributionDefaultCacheBehaviorArgs{
				Behavior: pulumi.String("cache"),
			},
			CacheBehaviorSettings: &lightsail.DistributionCacheBehaviorSettingsArgs{
				AllowedHttpMethods: pulumi.String("GET,HEAD,OPTIONS,PUT,PATCH,POST,DELETE"),
				CachedHttpMethods:  pulumi.String("GET,HEAD"),
				DefaultTtl:         pulumi.Int(86400),
				MaximumTtl:         pulumi.Int(31536000),
				MinimumTtl:         pulumi.Int(0),
				ForwardedCookies: &lightsail.DistributionCacheBehaviorSettingsForwardedCookiesArgs{
					Option: pulumi.String("none"),
				},
				ForwardedHeaders: &lightsail.DistributionCacheBehaviorSettingsForwardedHeadersArgs{
					Option: pulumi.String("default"),
				},
				ForwardedQueryStrings: &lightsail.DistributionCacheBehaviorSettingsForwardedQueryStringsArgs{
					Option: pulumi.Bool(false),
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` ### instance origin example

Below is an example of an instance as the origin.

```go package main

import (

"github.com/pulumi/pulumi-aws/sdk/v5/go/aws"
"github.com/pulumi/pulumi-aws/sdk/v5/go/aws/lightsail"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		available, err := aws.GetAvailabilityZones(ctx, &aws.GetAvailabilityZonesArgs{
			State: pulumi.StringRef("available"),
			Filters: []aws.GetAvailabilityZonesFilter{
				{
					Name: "opt-in-status",
					Values: []string{
						"opt-in-not-required",
					},
				},
			},
		}, nil)
		if err != nil {
			return err
		}
		testStaticIp, err := lightsail.NewStaticIp(ctx, "testStaticIp", nil)
		if err != nil {
			return err
		}
		testInstance, err := lightsail.NewInstance(ctx, "testInstance", &lightsail.InstanceArgs{
			AvailabilityZone: *pulumi.String(available.Names[0]),
			BlueprintId:      pulumi.String("amazon_linux_2"),
			BundleId:         pulumi.String("micro_1_0"),
		})
		if err != nil {
			return err
		}
		testStaticIpAttachment, err := lightsail.NewStaticIpAttachment(ctx, "testStaticIpAttachment", &lightsail.StaticIpAttachmentArgs{
			StaticIpName: testStaticIp.Name,
			InstanceName: testInstance.Name,
		})
		if err != nil {
			return err
		}
		_, err = lightsail.NewDistribution(ctx, "testDistribution", &lightsail.DistributionArgs{
			BundleId: pulumi.String("small_1_0"),
			Origin: &lightsail.DistributionOriginArgs{
				Name:       testInstance.Name,
				RegionName: *pulumi.String(available.Id),
			},
			DefaultCacheBehavior: &lightsail.DistributionDefaultCacheBehaviorArgs{
				Behavior: pulumi.String("cache"),
			},
		}, pulumi.DependsOn([]pulumi.Resource{
			testStaticIpAttachment,
		}))
		if err != nil {
			return err
		}
		return nil
	})
}

``` ### lb origin example

Below is an example with a load balancer as an origin

```go package main

import (

"github.com/pulumi/pulumi-aws/sdk/v5/go/aws"
"github.com/pulumi/pulumi-aws/sdk/v5/go/aws/lightsail"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		available, err := aws.GetAvailabilityZones(ctx, &aws.GetAvailabilityZonesArgs{
			State: pulumi.StringRef("available"),
			Filters: []aws.GetAvailabilityZonesFilter{
				{
					Name: "opt-in-status",
					Values: []string{
						"opt-in-not-required",
					},
				},
			},
		}, nil)
		if err != nil {
			return err
		}
		testLb, err := lightsail.NewLb(ctx, "testLb", &lightsail.LbArgs{
			HealthCheckPath: pulumi.String("/"),
			InstancePort:    pulumi.Int(80),
			Tags: pulumi.StringMap{
				"foo": pulumi.String("bar"),
			},
		})
		if err != nil {
			return err
		}
		testInstance, err := lightsail.NewInstance(ctx, "testInstance", &lightsail.InstanceArgs{
			AvailabilityZone: *pulumi.String(available.Names[0]),
			BlueprintId:      pulumi.String("amazon_linux_2"),
			BundleId:         pulumi.String("nano_1_0"),
		})
		if err != nil {
			return err
		}
		testLbAttachment, err := lightsail.NewLbAttachment(ctx, "testLbAttachment", &lightsail.LbAttachmentArgs{
			LbName:       testLb.Name,
			InstanceName: testInstance.Name,
		})
		if err != nil {
			return err
		}
		_, err = lightsail.NewDistribution(ctx, "testDistribution", &lightsail.DistributionArgs{
			BundleId: pulumi.String("small_1_0"),
			Origin: &lightsail.DistributionOriginArgs{
				Name:       testLb.Name,
				RegionName: *pulumi.String(available.Id),
			},
			DefaultCacheBehavior: &lightsail.DistributionDefaultCacheBehaviorArgs{
				Behavior: pulumi.String("cache"),
			},
		}, pulumi.DependsOn([]pulumi.Resource{
			testLbAttachment,
		}))
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Lightsail Distribution can be imported using the `id`, e.g.,

```sh

$ pulumi import aws:lightsail/distribution:Distribution example rft-8012925589

```

func GetDistribution added in v5.36.0

func GetDistribution(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *DistributionState, opts ...pulumi.ResourceOption) (*Distribution, error)

GetDistribution gets an existing Distribution 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 NewDistribution added in v5.36.0

func NewDistribution(ctx *pulumi.Context,
	name string, args *DistributionArgs, opts ...pulumi.ResourceOption) (*Distribution, error)

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

func (*Distribution) ElementType added in v5.36.0

func (*Distribution) ElementType() reflect.Type

func (*Distribution) ToDistributionOutput added in v5.36.0

func (i *Distribution) ToDistributionOutput() DistributionOutput

func (*Distribution) ToDistributionOutputWithContext added in v5.36.0

func (i *Distribution) ToDistributionOutputWithContext(ctx context.Context) DistributionOutput

type DistributionArgs added in v5.36.0

type DistributionArgs struct {
	// Bundle ID to use for the distribution.
	BundleId pulumi.StringInput
	// An object that describes the cache behavior settings of the distribution. Detailed below
	//
	// The following arguments are optional:
	CacheBehaviorSettings DistributionCacheBehaviorSettingsPtrInput
	// A set of configuration blocks that describe the per-path cache behavior of the distribution. Detailed below
	CacheBehaviors DistributionCacheBehaviorArrayInput
	// The name of the SSL/TLS certificate attached to the distribution, if any.
	CertificateName pulumi.StringPtrInput
	// Object that describes the default cache behavior of the distribution. Detailed below
	DefaultCacheBehavior DistributionDefaultCacheBehaviorInput
	// The IP address type of the distribution. Default: `dualstack`.
	IpAddressType pulumi.StringPtrInput
	// Indicates whether the distribution is enabled. Default: `true`.
	IsEnabled pulumi.BoolPtrInput
	// Name of the distribution.
	Name pulumi.StringPtrInput
	// Object that describes the origin resource of the distribution, such as a Lightsail instance, bucket, or load balancer. Detailed below
	Origin DistributionOriginInput
	// Map of tags for the Lightsail Distribution. 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 Distribution resource.

func (DistributionArgs) ElementType added in v5.36.0

func (DistributionArgs) ElementType() reflect.Type

type DistributionArray added in v5.36.0

type DistributionArray []DistributionInput

func (DistributionArray) ElementType added in v5.36.0

func (DistributionArray) ElementType() reflect.Type

func (DistributionArray) ToDistributionArrayOutput added in v5.36.0

func (i DistributionArray) ToDistributionArrayOutput() DistributionArrayOutput

func (DistributionArray) ToDistributionArrayOutputWithContext added in v5.36.0

func (i DistributionArray) ToDistributionArrayOutputWithContext(ctx context.Context) DistributionArrayOutput

type DistributionArrayInput added in v5.36.0

type DistributionArrayInput interface {
	pulumi.Input

	ToDistributionArrayOutput() DistributionArrayOutput
	ToDistributionArrayOutputWithContext(context.Context) DistributionArrayOutput
}

DistributionArrayInput is an input type that accepts DistributionArray and DistributionArrayOutput values. You can construct a concrete instance of `DistributionArrayInput` via:

DistributionArray{ DistributionArgs{...} }

type DistributionArrayOutput added in v5.36.0

type DistributionArrayOutput struct{ *pulumi.OutputState }

func (DistributionArrayOutput) ElementType added in v5.36.0

func (DistributionArrayOutput) ElementType() reflect.Type

func (DistributionArrayOutput) Index added in v5.36.0

func (DistributionArrayOutput) ToDistributionArrayOutput added in v5.36.0

func (o DistributionArrayOutput) ToDistributionArrayOutput() DistributionArrayOutput

func (DistributionArrayOutput) ToDistributionArrayOutputWithContext added in v5.36.0

func (o DistributionArrayOutput) ToDistributionArrayOutputWithContext(ctx context.Context) DistributionArrayOutput

type DistributionCacheBehavior added in v5.36.0

type DistributionCacheBehavior struct {
	// The cache behavior for the specified path.
	Behavior string `pulumi:"behavior"`
	// The path to a directory or file to cached, or not cache. Use an asterisk symbol to specify wildcard directories (path/to/assets/\*), and file types (\*.html, \*jpg, \*js). Directories and file paths are case-sensitive.
	Path string `pulumi:"path"`
}

type DistributionCacheBehaviorArgs added in v5.36.0

type DistributionCacheBehaviorArgs struct {
	// The cache behavior for the specified path.
	Behavior pulumi.StringInput `pulumi:"behavior"`
	// The path to a directory or file to cached, or not cache. Use an asterisk symbol to specify wildcard directories (path/to/assets/\*), and file types (\*.html, \*jpg, \*js). Directories and file paths are case-sensitive.
	Path pulumi.StringInput `pulumi:"path"`
}

func (DistributionCacheBehaviorArgs) ElementType added in v5.36.0

func (DistributionCacheBehaviorArgs) ToDistributionCacheBehaviorOutput added in v5.36.0

func (i DistributionCacheBehaviorArgs) ToDistributionCacheBehaviorOutput() DistributionCacheBehaviorOutput

func (DistributionCacheBehaviorArgs) ToDistributionCacheBehaviorOutputWithContext added in v5.36.0

func (i DistributionCacheBehaviorArgs) ToDistributionCacheBehaviorOutputWithContext(ctx context.Context) DistributionCacheBehaviorOutput

type DistributionCacheBehaviorArray added in v5.36.0

type DistributionCacheBehaviorArray []DistributionCacheBehaviorInput

func (DistributionCacheBehaviorArray) ElementType added in v5.36.0

func (DistributionCacheBehaviorArray) ToDistributionCacheBehaviorArrayOutput added in v5.36.0

func (i DistributionCacheBehaviorArray) ToDistributionCacheBehaviorArrayOutput() DistributionCacheBehaviorArrayOutput

func (DistributionCacheBehaviorArray) ToDistributionCacheBehaviorArrayOutputWithContext added in v5.36.0

func (i DistributionCacheBehaviorArray) ToDistributionCacheBehaviorArrayOutputWithContext(ctx context.Context) DistributionCacheBehaviorArrayOutput

type DistributionCacheBehaviorArrayInput added in v5.36.0

type DistributionCacheBehaviorArrayInput interface {
	pulumi.Input

	ToDistributionCacheBehaviorArrayOutput() DistributionCacheBehaviorArrayOutput
	ToDistributionCacheBehaviorArrayOutputWithContext(context.Context) DistributionCacheBehaviorArrayOutput
}

DistributionCacheBehaviorArrayInput is an input type that accepts DistributionCacheBehaviorArray and DistributionCacheBehaviorArrayOutput values. You can construct a concrete instance of `DistributionCacheBehaviorArrayInput` via:

DistributionCacheBehaviorArray{ DistributionCacheBehaviorArgs{...} }

type DistributionCacheBehaviorArrayOutput added in v5.36.0

type DistributionCacheBehaviorArrayOutput struct{ *pulumi.OutputState }

func (DistributionCacheBehaviorArrayOutput) ElementType added in v5.36.0

func (DistributionCacheBehaviorArrayOutput) Index added in v5.36.0

func (DistributionCacheBehaviorArrayOutput) ToDistributionCacheBehaviorArrayOutput added in v5.36.0

func (o DistributionCacheBehaviorArrayOutput) ToDistributionCacheBehaviorArrayOutput() DistributionCacheBehaviorArrayOutput

func (DistributionCacheBehaviorArrayOutput) ToDistributionCacheBehaviorArrayOutputWithContext added in v5.36.0

func (o DistributionCacheBehaviorArrayOutput) ToDistributionCacheBehaviorArrayOutputWithContext(ctx context.Context) DistributionCacheBehaviorArrayOutput

type DistributionCacheBehaviorInput added in v5.36.0

type DistributionCacheBehaviorInput interface {
	pulumi.Input

	ToDistributionCacheBehaviorOutput() DistributionCacheBehaviorOutput
	ToDistributionCacheBehaviorOutputWithContext(context.Context) DistributionCacheBehaviorOutput
}

DistributionCacheBehaviorInput is an input type that accepts DistributionCacheBehaviorArgs and DistributionCacheBehaviorOutput values. You can construct a concrete instance of `DistributionCacheBehaviorInput` via:

DistributionCacheBehaviorArgs{...}

type DistributionCacheBehaviorOutput added in v5.36.0

type DistributionCacheBehaviorOutput struct{ *pulumi.OutputState }

func (DistributionCacheBehaviorOutput) Behavior added in v5.36.0

The cache behavior for the specified path.

func (DistributionCacheBehaviorOutput) ElementType added in v5.36.0

func (DistributionCacheBehaviorOutput) Path added in v5.36.0

The path to a directory or file to cached, or not cache. Use an asterisk symbol to specify wildcard directories (path/to/assets/\*), and file types (\*.html, \*jpg, \*js). Directories and file paths are case-sensitive.

func (DistributionCacheBehaviorOutput) ToDistributionCacheBehaviorOutput added in v5.36.0

func (o DistributionCacheBehaviorOutput) ToDistributionCacheBehaviorOutput() DistributionCacheBehaviorOutput

func (DistributionCacheBehaviorOutput) ToDistributionCacheBehaviorOutputWithContext added in v5.36.0

func (o DistributionCacheBehaviorOutput) ToDistributionCacheBehaviorOutputWithContext(ctx context.Context) DistributionCacheBehaviorOutput

type DistributionCacheBehaviorSettings added in v5.36.0

type DistributionCacheBehaviorSettings struct {
	// The HTTP methods that are processed and forwarded to the distribution's origin.
	AllowedHttpMethods *string `pulumi:"allowedHttpMethods"`
	// The HTTP method responses that are cached by your distribution.
	CachedHttpMethods *string `pulumi:"cachedHttpMethods"`
	// The default amount of time that objects stay in the distribution's cache before the distribution forwards another request to the origin to determine whether the content has been updated.
	DefaultTtl *int `pulumi:"defaultTtl"`
	// An object that describes the cookies that are forwarded to the origin. Your content is cached based on the cookies that are forwarded. Detailed below
	ForwardedCookies *DistributionCacheBehaviorSettingsForwardedCookies `pulumi:"forwardedCookies"`
	// An object that describes the headers that are forwarded to the origin. Your content is cached based on the headers that are forwarded. Detailed below
	ForwardedHeaders *DistributionCacheBehaviorSettingsForwardedHeaders `pulumi:"forwardedHeaders"`
	// An object that describes the query strings that are forwarded to the origin. Your content is cached based on the query strings that are forwarded. Detailed below
	ForwardedQueryStrings *DistributionCacheBehaviorSettingsForwardedQueryStrings `pulumi:"forwardedQueryStrings"`
	// The maximum amount of time that objects stay in the distribution's cache before the distribution forwards another request to the origin to determine whether the object has been updated.
	MaximumTtl *int `pulumi:"maximumTtl"`
	// The minimum amount of time that objects stay in the distribution's cache before the distribution forwards another request to the origin to determine whether the object has been updated.
	MinimumTtl *int `pulumi:"minimumTtl"`
}

type DistributionCacheBehaviorSettingsArgs added in v5.36.0

type DistributionCacheBehaviorSettingsArgs struct {
	// The HTTP methods that are processed and forwarded to the distribution's origin.
	AllowedHttpMethods pulumi.StringPtrInput `pulumi:"allowedHttpMethods"`
	// The HTTP method responses that are cached by your distribution.
	CachedHttpMethods pulumi.StringPtrInput `pulumi:"cachedHttpMethods"`
	// The default amount of time that objects stay in the distribution's cache before the distribution forwards another request to the origin to determine whether the content has been updated.
	DefaultTtl pulumi.IntPtrInput `pulumi:"defaultTtl"`
	// An object that describes the cookies that are forwarded to the origin. Your content is cached based on the cookies that are forwarded. Detailed below
	ForwardedCookies DistributionCacheBehaviorSettingsForwardedCookiesPtrInput `pulumi:"forwardedCookies"`
	// An object that describes the headers that are forwarded to the origin. Your content is cached based on the headers that are forwarded. Detailed below
	ForwardedHeaders DistributionCacheBehaviorSettingsForwardedHeadersPtrInput `pulumi:"forwardedHeaders"`
	// An object that describes the query strings that are forwarded to the origin. Your content is cached based on the query strings that are forwarded. Detailed below
	ForwardedQueryStrings DistributionCacheBehaviorSettingsForwardedQueryStringsPtrInput `pulumi:"forwardedQueryStrings"`
	// The maximum amount of time that objects stay in the distribution's cache before the distribution forwards another request to the origin to determine whether the object has been updated.
	MaximumTtl pulumi.IntPtrInput `pulumi:"maximumTtl"`
	// The minimum amount of time that objects stay in the distribution's cache before the distribution forwards another request to the origin to determine whether the object has been updated.
	MinimumTtl pulumi.IntPtrInput `pulumi:"minimumTtl"`
}

func (DistributionCacheBehaviorSettingsArgs) ElementType added in v5.36.0

func (DistributionCacheBehaviorSettingsArgs) ToDistributionCacheBehaviorSettingsOutput added in v5.36.0

func (i DistributionCacheBehaviorSettingsArgs) ToDistributionCacheBehaviorSettingsOutput() DistributionCacheBehaviorSettingsOutput

func (DistributionCacheBehaviorSettingsArgs) ToDistributionCacheBehaviorSettingsOutputWithContext added in v5.36.0

func (i DistributionCacheBehaviorSettingsArgs) ToDistributionCacheBehaviorSettingsOutputWithContext(ctx context.Context) DistributionCacheBehaviorSettingsOutput

func (DistributionCacheBehaviorSettingsArgs) ToDistributionCacheBehaviorSettingsPtrOutput added in v5.36.0

func (i DistributionCacheBehaviorSettingsArgs) ToDistributionCacheBehaviorSettingsPtrOutput() DistributionCacheBehaviorSettingsPtrOutput

func (DistributionCacheBehaviorSettingsArgs) ToDistributionCacheBehaviorSettingsPtrOutputWithContext added in v5.36.0

func (i DistributionCacheBehaviorSettingsArgs) ToDistributionCacheBehaviorSettingsPtrOutputWithContext(ctx context.Context) DistributionCacheBehaviorSettingsPtrOutput

type DistributionCacheBehaviorSettingsForwardedCookies added in v5.36.0

type DistributionCacheBehaviorSettingsForwardedCookies struct {
	// The specific cookies to forward to your distribution's origin.
	CookiesAllowLists []string `pulumi:"cookiesAllowLists"`
	// Specifies which cookies to forward to the distribution's origin for a cache behavior: all, none, or allow-list to forward only the cookies specified in the cookiesAllowList parameter.
	Option *string `pulumi:"option"`
}

type DistributionCacheBehaviorSettingsForwardedCookiesArgs added in v5.36.0

type DistributionCacheBehaviorSettingsForwardedCookiesArgs struct {
	// The specific cookies to forward to your distribution's origin.
	CookiesAllowLists pulumi.StringArrayInput `pulumi:"cookiesAllowLists"`
	// Specifies which cookies to forward to the distribution's origin for a cache behavior: all, none, or allow-list to forward only the cookies specified in the cookiesAllowList parameter.
	Option pulumi.StringPtrInput `pulumi:"option"`
}

func (DistributionCacheBehaviorSettingsForwardedCookiesArgs) ElementType added in v5.36.0

func (DistributionCacheBehaviorSettingsForwardedCookiesArgs) ToDistributionCacheBehaviorSettingsForwardedCookiesOutput added in v5.36.0

func (i DistributionCacheBehaviorSettingsForwardedCookiesArgs) ToDistributionCacheBehaviorSettingsForwardedCookiesOutput() DistributionCacheBehaviorSettingsForwardedCookiesOutput

func (DistributionCacheBehaviorSettingsForwardedCookiesArgs) ToDistributionCacheBehaviorSettingsForwardedCookiesOutputWithContext added in v5.36.0

func (i DistributionCacheBehaviorSettingsForwardedCookiesArgs) ToDistributionCacheBehaviorSettingsForwardedCookiesOutputWithContext(ctx context.Context) DistributionCacheBehaviorSettingsForwardedCookiesOutput

func (DistributionCacheBehaviorSettingsForwardedCookiesArgs) ToDistributionCacheBehaviorSettingsForwardedCookiesPtrOutput added in v5.36.0

func (i DistributionCacheBehaviorSettingsForwardedCookiesArgs) ToDistributionCacheBehaviorSettingsForwardedCookiesPtrOutput() DistributionCacheBehaviorSettingsForwardedCookiesPtrOutput

func (DistributionCacheBehaviorSettingsForwardedCookiesArgs) ToDistributionCacheBehaviorSettingsForwardedCookiesPtrOutputWithContext added in v5.36.0

func (i DistributionCacheBehaviorSettingsForwardedCookiesArgs) ToDistributionCacheBehaviorSettingsForwardedCookiesPtrOutputWithContext(ctx context.Context) DistributionCacheBehaviorSettingsForwardedCookiesPtrOutput

type DistributionCacheBehaviorSettingsForwardedCookiesInput added in v5.36.0

type DistributionCacheBehaviorSettingsForwardedCookiesInput interface {
	pulumi.Input

	ToDistributionCacheBehaviorSettingsForwardedCookiesOutput() DistributionCacheBehaviorSettingsForwardedCookiesOutput
	ToDistributionCacheBehaviorSettingsForwardedCookiesOutputWithContext(context.Context) DistributionCacheBehaviorSettingsForwardedCookiesOutput
}

DistributionCacheBehaviorSettingsForwardedCookiesInput is an input type that accepts DistributionCacheBehaviorSettingsForwardedCookiesArgs and DistributionCacheBehaviorSettingsForwardedCookiesOutput values. You can construct a concrete instance of `DistributionCacheBehaviorSettingsForwardedCookiesInput` via:

DistributionCacheBehaviorSettingsForwardedCookiesArgs{...}

type DistributionCacheBehaviorSettingsForwardedCookiesOutput added in v5.36.0

type DistributionCacheBehaviorSettingsForwardedCookiesOutput struct{ *pulumi.OutputState }

func (DistributionCacheBehaviorSettingsForwardedCookiesOutput) CookiesAllowLists added in v5.36.0

The specific cookies to forward to your distribution's origin.

func (DistributionCacheBehaviorSettingsForwardedCookiesOutput) ElementType added in v5.36.0

func (DistributionCacheBehaviorSettingsForwardedCookiesOutput) Option added in v5.36.0

Specifies which cookies to forward to the distribution's origin for a cache behavior: all, none, or allow-list to forward only the cookies specified in the cookiesAllowList parameter.

func (DistributionCacheBehaviorSettingsForwardedCookiesOutput) ToDistributionCacheBehaviorSettingsForwardedCookiesOutput added in v5.36.0

func (DistributionCacheBehaviorSettingsForwardedCookiesOutput) ToDistributionCacheBehaviorSettingsForwardedCookiesOutputWithContext added in v5.36.0

func (o DistributionCacheBehaviorSettingsForwardedCookiesOutput) ToDistributionCacheBehaviorSettingsForwardedCookiesOutputWithContext(ctx context.Context) DistributionCacheBehaviorSettingsForwardedCookiesOutput

func (DistributionCacheBehaviorSettingsForwardedCookiesOutput) ToDistributionCacheBehaviorSettingsForwardedCookiesPtrOutput added in v5.36.0

func (DistributionCacheBehaviorSettingsForwardedCookiesOutput) ToDistributionCacheBehaviorSettingsForwardedCookiesPtrOutputWithContext added in v5.36.0

func (o DistributionCacheBehaviorSettingsForwardedCookiesOutput) ToDistributionCacheBehaviorSettingsForwardedCookiesPtrOutputWithContext(ctx context.Context) DistributionCacheBehaviorSettingsForwardedCookiesPtrOutput

type DistributionCacheBehaviorSettingsForwardedCookiesPtrInput added in v5.36.0

type DistributionCacheBehaviorSettingsForwardedCookiesPtrInput interface {
	pulumi.Input

	ToDistributionCacheBehaviorSettingsForwardedCookiesPtrOutput() DistributionCacheBehaviorSettingsForwardedCookiesPtrOutput
	ToDistributionCacheBehaviorSettingsForwardedCookiesPtrOutputWithContext(context.Context) DistributionCacheBehaviorSettingsForwardedCookiesPtrOutput
}

DistributionCacheBehaviorSettingsForwardedCookiesPtrInput is an input type that accepts DistributionCacheBehaviorSettingsForwardedCookiesArgs, DistributionCacheBehaviorSettingsForwardedCookiesPtr and DistributionCacheBehaviorSettingsForwardedCookiesPtrOutput values. You can construct a concrete instance of `DistributionCacheBehaviorSettingsForwardedCookiesPtrInput` via:

        DistributionCacheBehaviorSettingsForwardedCookiesArgs{...}

or:

        nil

type DistributionCacheBehaviorSettingsForwardedCookiesPtrOutput added in v5.36.0

type DistributionCacheBehaviorSettingsForwardedCookiesPtrOutput struct{ *pulumi.OutputState }

func (DistributionCacheBehaviorSettingsForwardedCookiesPtrOutput) CookiesAllowLists added in v5.36.0

The specific cookies to forward to your distribution's origin.

func (DistributionCacheBehaviorSettingsForwardedCookiesPtrOutput) Elem added in v5.36.0

func (DistributionCacheBehaviorSettingsForwardedCookiesPtrOutput) ElementType added in v5.36.0

func (DistributionCacheBehaviorSettingsForwardedCookiesPtrOutput) Option added in v5.36.0

Specifies which cookies to forward to the distribution's origin for a cache behavior: all, none, or allow-list to forward only the cookies specified in the cookiesAllowList parameter.

func (DistributionCacheBehaviorSettingsForwardedCookiesPtrOutput) ToDistributionCacheBehaviorSettingsForwardedCookiesPtrOutput added in v5.36.0

func (DistributionCacheBehaviorSettingsForwardedCookiesPtrOutput) ToDistributionCacheBehaviorSettingsForwardedCookiesPtrOutputWithContext added in v5.36.0

func (o DistributionCacheBehaviorSettingsForwardedCookiesPtrOutput) ToDistributionCacheBehaviorSettingsForwardedCookiesPtrOutputWithContext(ctx context.Context) DistributionCacheBehaviorSettingsForwardedCookiesPtrOutput

type DistributionCacheBehaviorSettingsForwardedHeaders added in v5.36.0

type DistributionCacheBehaviorSettingsForwardedHeaders struct {
	// The specific headers to forward to your distribution's origin.
	HeadersAllowLists []string `pulumi:"headersAllowLists"`
	// The headers that you want your distribution to forward to your origin and base caching on.
	Option *string `pulumi:"option"`
}

type DistributionCacheBehaviorSettingsForwardedHeadersArgs added in v5.36.0

type DistributionCacheBehaviorSettingsForwardedHeadersArgs struct {
	// The specific headers to forward to your distribution's origin.
	HeadersAllowLists pulumi.StringArrayInput `pulumi:"headersAllowLists"`
	// The headers that you want your distribution to forward to your origin and base caching on.
	Option pulumi.StringPtrInput `pulumi:"option"`
}

func (DistributionCacheBehaviorSettingsForwardedHeadersArgs) ElementType added in v5.36.0

func (DistributionCacheBehaviorSettingsForwardedHeadersArgs) ToDistributionCacheBehaviorSettingsForwardedHeadersOutput added in v5.36.0

func (i DistributionCacheBehaviorSettingsForwardedHeadersArgs) ToDistributionCacheBehaviorSettingsForwardedHeadersOutput() DistributionCacheBehaviorSettingsForwardedHeadersOutput

func (DistributionCacheBehaviorSettingsForwardedHeadersArgs) ToDistributionCacheBehaviorSettingsForwardedHeadersOutputWithContext added in v5.36.0

func (i DistributionCacheBehaviorSettingsForwardedHeadersArgs) ToDistributionCacheBehaviorSettingsForwardedHeadersOutputWithContext(ctx context.Context) DistributionCacheBehaviorSettingsForwardedHeadersOutput

func (DistributionCacheBehaviorSettingsForwardedHeadersArgs) ToDistributionCacheBehaviorSettingsForwardedHeadersPtrOutput added in v5.36.0

func (i DistributionCacheBehaviorSettingsForwardedHeadersArgs) ToDistributionCacheBehaviorSettingsForwardedHeadersPtrOutput() DistributionCacheBehaviorSettingsForwardedHeadersPtrOutput

func (DistributionCacheBehaviorSettingsForwardedHeadersArgs) ToDistributionCacheBehaviorSettingsForwardedHeadersPtrOutputWithContext added in v5.36.0

func (i DistributionCacheBehaviorSettingsForwardedHeadersArgs) ToDistributionCacheBehaviorSettingsForwardedHeadersPtrOutputWithContext(ctx context.Context) DistributionCacheBehaviorSettingsForwardedHeadersPtrOutput

type DistributionCacheBehaviorSettingsForwardedHeadersInput added in v5.36.0

type DistributionCacheBehaviorSettingsForwardedHeadersInput interface {
	pulumi.Input

	ToDistributionCacheBehaviorSettingsForwardedHeadersOutput() DistributionCacheBehaviorSettingsForwardedHeadersOutput
	ToDistributionCacheBehaviorSettingsForwardedHeadersOutputWithContext(context.Context) DistributionCacheBehaviorSettingsForwardedHeadersOutput
}

DistributionCacheBehaviorSettingsForwardedHeadersInput is an input type that accepts DistributionCacheBehaviorSettingsForwardedHeadersArgs and DistributionCacheBehaviorSettingsForwardedHeadersOutput values. You can construct a concrete instance of `DistributionCacheBehaviorSettingsForwardedHeadersInput` via:

DistributionCacheBehaviorSettingsForwardedHeadersArgs{...}

type DistributionCacheBehaviorSettingsForwardedHeadersOutput added in v5.36.0

type DistributionCacheBehaviorSettingsForwardedHeadersOutput struct{ *pulumi.OutputState }

func (DistributionCacheBehaviorSettingsForwardedHeadersOutput) ElementType added in v5.36.0

func (DistributionCacheBehaviorSettingsForwardedHeadersOutput) HeadersAllowLists added in v5.36.0

The specific headers to forward to your distribution's origin.

func (DistributionCacheBehaviorSettingsForwardedHeadersOutput) Option added in v5.36.0

The headers that you want your distribution to forward to your origin and base caching on.

func (DistributionCacheBehaviorSettingsForwardedHeadersOutput) ToDistributionCacheBehaviorSettingsForwardedHeadersOutput added in v5.36.0

func (DistributionCacheBehaviorSettingsForwardedHeadersOutput) ToDistributionCacheBehaviorSettingsForwardedHeadersOutputWithContext added in v5.36.0

func (o DistributionCacheBehaviorSettingsForwardedHeadersOutput) ToDistributionCacheBehaviorSettingsForwardedHeadersOutputWithContext(ctx context.Context) DistributionCacheBehaviorSettingsForwardedHeadersOutput

func (DistributionCacheBehaviorSettingsForwardedHeadersOutput) ToDistributionCacheBehaviorSettingsForwardedHeadersPtrOutput added in v5.36.0

func (DistributionCacheBehaviorSettingsForwardedHeadersOutput) ToDistributionCacheBehaviorSettingsForwardedHeadersPtrOutputWithContext added in v5.36.0

func (o DistributionCacheBehaviorSettingsForwardedHeadersOutput) ToDistributionCacheBehaviorSettingsForwardedHeadersPtrOutputWithContext(ctx context.Context) DistributionCacheBehaviorSettingsForwardedHeadersPtrOutput

type DistributionCacheBehaviorSettingsForwardedHeadersPtrInput added in v5.36.0

type DistributionCacheBehaviorSettingsForwardedHeadersPtrInput interface {
	pulumi.Input

	ToDistributionCacheBehaviorSettingsForwardedHeadersPtrOutput() DistributionCacheBehaviorSettingsForwardedHeadersPtrOutput
	ToDistributionCacheBehaviorSettingsForwardedHeadersPtrOutputWithContext(context.Context) DistributionCacheBehaviorSettingsForwardedHeadersPtrOutput
}

DistributionCacheBehaviorSettingsForwardedHeadersPtrInput is an input type that accepts DistributionCacheBehaviorSettingsForwardedHeadersArgs, DistributionCacheBehaviorSettingsForwardedHeadersPtr and DistributionCacheBehaviorSettingsForwardedHeadersPtrOutput values. You can construct a concrete instance of `DistributionCacheBehaviorSettingsForwardedHeadersPtrInput` via:

        DistributionCacheBehaviorSettingsForwardedHeadersArgs{...}

or:

        nil

type DistributionCacheBehaviorSettingsForwardedHeadersPtrOutput added in v5.36.0

type DistributionCacheBehaviorSettingsForwardedHeadersPtrOutput struct{ *pulumi.OutputState }

func (DistributionCacheBehaviorSettingsForwardedHeadersPtrOutput) Elem added in v5.36.0

func (DistributionCacheBehaviorSettingsForwardedHeadersPtrOutput) ElementType added in v5.36.0

func (DistributionCacheBehaviorSettingsForwardedHeadersPtrOutput) HeadersAllowLists added in v5.36.0

The specific headers to forward to your distribution's origin.

func (DistributionCacheBehaviorSettingsForwardedHeadersPtrOutput) Option added in v5.36.0

The headers that you want your distribution to forward to your origin and base caching on.

func (DistributionCacheBehaviorSettingsForwardedHeadersPtrOutput) ToDistributionCacheBehaviorSettingsForwardedHeadersPtrOutput added in v5.36.0

func (DistributionCacheBehaviorSettingsForwardedHeadersPtrOutput) ToDistributionCacheBehaviorSettingsForwardedHeadersPtrOutputWithContext added in v5.36.0

func (o DistributionCacheBehaviorSettingsForwardedHeadersPtrOutput) ToDistributionCacheBehaviorSettingsForwardedHeadersPtrOutputWithContext(ctx context.Context) DistributionCacheBehaviorSettingsForwardedHeadersPtrOutput

type DistributionCacheBehaviorSettingsForwardedQueryStrings added in v5.36.0

type DistributionCacheBehaviorSettingsForwardedQueryStrings struct {
	// Indicates whether the distribution forwards and caches based on query strings.
	Option *bool `pulumi:"option"`
	// The specific query strings that the distribution forwards to the origin.
	QueryStringsAllowedLists []string `pulumi:"queryStringsAllowedLists"`
}

type DistributionCacheBehaviorSettingsForwardedQueryStringsArgs added in v5.36.0

type DistributionCacheBehaviorSettingsForwardedQueryStringsArgs struct {
	// Indicates whether the distribution forwards and caches based on query strings.
	Option pulumi.BoolPtrInput `pulumi:"option"`
	// The specific query strings that the distribution forwards to the origin.
	QueryStringsAllowedLists pulumi.StringArrayInput `pulumi:"queryStringsAllowedLists"`
}

func (DistributionCacheBehaviorSettingsForwardedQueryStringsArgs) ElementType added in v5.36.0

func (DistributionCacheBehaviorSettingsForwardedQueryStringsArgs) ToDistributionCacheBehaviorSettingsForwardedQueryStringsOutput added in v5.36.0

func (DistributionCacheBehaviorSettingsForwardedQueryStringsArgs) ToDistributionCacheBehaviorSettingsForwardedQueryStringsOutputWithContext added in v5.36.0

func (i DistributionCacheBehaviorSettingsForwardedQueryStringsArgs) ToDistributionCacheBehaviorSettingsForwardedQueryStringsOutputWithContext(ctx context.Context) DistributionCacheBehaviorSettingsForwardedQueryStringsOutput

func (DistributionCacheBehaviorSettingsForwardedQueryStringsArgs) ToDistributionCacheBehaviorSettingsForwardedQueryStringsPtrOutput added in v5.36.0

func (DistributionCacheBehaviorSettingsForwardedQueryStringsArgs) ToDistributionCacheBehaviorSettingsForwardedQueryStringsPtrOutputWithContext added in v5.36.0

func (i DistributionCacheBehaviorSettingsForwardedQueryStringsArgs) ToDistributionCacheBehaviorSettingsForwardedQueryStringsPtrOutputWithContext(ctx context.Context) DistributionCacheBehaviorSettingsForwardedQueryStringsPtrOutput

type DistributionCacheBehaviorSettingsForwardedQueryStringsInput added in v5.36.0

type DistributionCacheBehaviorSettingsForwardedQueryStringsInput interface {
	pulumi.Input

	ToDistributionCacheBehaviorSettingsForwardedQueryStringsOutput() DistributionCacheBehaviorSettingsForwardedQueryStringsOutput
	ToDistributionCacheBehaviorSettingsForwardedQueryStringsOutputWithContext(context.Context) DistributionCacheBehaviorSettingsForwardedQueryStringsOutput
}

DistributionCacheBehaviorSettingsForwardedQueryStringsInput is an input type that accepts DistributionCacheBehaviorSettingsForwardedQueryStringsArgs and DistributionCacheBehaviorSettingsForwardedQueryStringsOutput values. You can construct a concrete instance of `DistributionCacheBehaviorSettingsForwardedQueryStringsInput` via:

DistributionCacheBehaviorSettingsForwardedQueryStringsArgs{...}

type DistributionCacheBehaviorSettingsForwardedQueryStringsOutput added in v5.36.0

type DistributionCacheBehaviorSettingsForwardedQueryStringsOutput struct{ *pulumi.OutputState }

func (DistributionCacheBehaviorSettingsForwardedQueryStringsOutput) ElementType added in v5.36.0

func (DistributionCacheBehaviorSettingsForwardedQueryStringsOutput) Option added in v5.36.0

Indicates whether the distribution forwards and caches based on query strings.

func (DistributionCacheBehaviorSettingsForwardedQueryStringsOutput) QueryStringsAllowedLists added in v5.36.0

The specific query strings that the distribution forwards to the origin.

func (DistributionCacheBehaviorSettingsForwardedQueryStringsOutput) ToDistributionCacheBehaviorSettingsForwardedQueryStringsOutput added in v5.36.0

func (DistributionCacheBehaviorSettingsForwardedQueryStringsOutput) ToDistributionCacheBehaviorSettingsForwardedQueryStringsOutputWithContext added in v5.36.0

func (o DistributionCacheBehaviorSettingsForwardedQueryStringsOutput) ToDistributionCacheBehaviorSettingsForwardedQueryStringsOutputWithContext(ctx context.Context) DistributionCacheBehaviorSettingsForwardedQueryStringsOutput

func (DistributionCacheBehaviorSettingsForwardedQueryStringsOutput) ToDistributionCacheBehaviorSettingsForwardedQueryStringsPtrOutput added in v5.36.0

func (DistributionCacheBehaviorSettingsForwardedQueryStringsOutput) ToDistributionCacheBehaviorSettingsForwardedQueryStringsPtrOutputWithContext added in v5.36.0

func (o DistributionCacheBehaviorSettingsForwardedQueryStringsOutput) ToDistributionCacheBehaviorSettingsForwardedQueryStringsPtrOutputWithContext(ctx context.Context) DistributionCacheBehaviorSettingsForwardedQueryStringsPtrOutput

type DistributionCacheBehaviorSettingsForwardedQueryStringsPtrInput added in v5.36.0

type DistributionCacheBehaviorSettingsForwardedQueryStringsPtrInput interface {
	pulumi.Input

	ToDistributionCacheBehaviorSettingsForwardedQueryStringsPtrOutput() DistributionCacheBehaviorSettingsForwardedQueryStringsPtrOutput
	ToDistributionCacheBehaviorSettingsForwardedQueryStringsPtrOutputWithContext(context.Context) DistributionCacheBehaviorSettingsForwardedQueryStringsPtrOutput
}

DistributionCacheBehaviorSettingsForwardedQueryStringsPtrInput is an input type that accepts DistributionCacheBehaviorSettingsForwardedQueryStringsArgs, DistributionCacheBehaviorSettingsForwardedQueryStringsPtr and DistributionCacheBehaviorSettingsForwardedQueryStringsPtrOutput values. You can construct a concrete instance of `DistributionCacheBehaviorSettingsForwardedQueryStringsPtrInput` via:

        DistributionCacheBehaviorSettingsForwardedQueryStringsArgs{...}

or:

        nil

type DistributionCacheBehaviorSettingsForwardedQueryStringsPtrOutput added in v5.36.0

type DistributionCacheBehaviorSettingsForwardedQueryStringsPtrOutput struct{ *pulumi.OutputState }

func (DistributionCacheBehaviorSettingsForwardedQueryStringsPtrOutput) Elem added in v5.36.0

func (DistributionCacheBehaviorSettingsForwardedQueryStringsPtrOutput) ElementType added in v5.36.0

func (DistributionCacheBehaviorSettingsForwardedQueryStringsPtrOutput) Option added in v5.36.0

Indicates whether the distribution forwards and caches based on query strings.

func (DistributionCacheBehaviorSettingsForwardedQueryStringsPtrOutput) QueryStringsAllowedLists added in v5.36.0

The specific query strings that the distribution forwards to the origin.

func (DistributionCacheBehaviorSettingsForwardedQueryStringsPtrOutput) ToDistributionCacheBehaviorSettingsForwardedQueryStringsPtrOutput added in v5.36.0

func (DistributionCacheBehaviorSettingsForwardedQueryStringsPtrOutput) ToDistributionCacheBehaviorSettingsForwardedQueryStringsPtrOutputWithContext added in v5.36.0

func (o DistributionCacheBehaviorSettingsForwardedQueryStringsPtrOutput) ToDistributionCacheBehaviorSettingsForwardedQueryStringsPtrOutputWithContext(ctx context.Context) DistributionCacheBehaviorSettingsForwardedQueryStringsPtrOutput

type DistributionCacheBehaviorSettingsInput added in v5.36.0

type DistributionCacheBehaviorSettingsInput interface {
	pulumi.Input

	ToDistributionCacheBehaviorSettingsOutput() DistributionCacheBehaviorSettingsOutput
	ToDistributionCacheBehaviorSettingsOutputWithContext(context.Context) DistributionCacheBehaviorSettingsOutput
}

DistributionCacheBehaviorSettingsInput is an input type that accepts DistributionCacheBehaviorSettingsArgs and DistributionCacheBehaviorSettingsOutput values. You can construct a concrete instance of `DistributionCacheBehaviorSettingsInput` via:

DistributionCacheBehaviorSettingsArgs{...}

type DistributionCacheBehaviorSettingsOutput added in v5.36.0

type DistributionCacheBehaviorSettingsOutput struct{ *pulumi.OutputState }

func (DistributionCacheBehaviorSettingsOutput) AllowedHttpMethods added in v5.36.0

The HTTP methods that are processed and forwarded to the distribution's origin.

func (DistributionCacheBehaviorSettingsOutput) CachedHttpMethods added in v5.36.0

The HTTP method responses that are cached by your distribution.

func (DistributionCacheBehaviorSettingsOutput) DefaultTtl added in v5.36.0

The default amount of time that objects stay in the distribution's cache before the distribution forwards another request to the origin to determine whether the content has been updated.

func (DistributionCacheBehaviorSettingsOutput) ElementType added in v5.36.0

func (DistributionCacheBehaviorSettingsOutput) ForwardedCookies added in v5.36.0

An object that describes the cookies that are forwarded to the origin. Your content is cached based on the cookies that are forwarded. Detailed below

func (DistributionCacheBehaviorSettingsOutput) ForwardedHeaders added in v5.36.0

An object that describes the headers that are forwarded to the origin. Your content is cached based on the headers that are forwarded. Detailed below

func (DistributionCacheBehaviorSettingsOutput) ForwardedQueryStrings added in v5.36.0

An object that describes the query strings that are forwarded to the origin. Your content is cached based on the query strings that are forwarded. Detailed below

func (DistributionCacheBehaviorSettingsOutput) MaximumTtl added in v5.36.0

The maximum amount of time that objects stay in the distribution's cache before the distribution forwards another request to the origin to determine whether the object has been updated.

func (DistributionCacheBehaviorSettingsOutput) MinimumTtl added in v5.36.0

The minimum amount of time that objects stay in the distribution's cache before the distribution forwards another request to the origin to determine whether the object has been updated.

func (DistributionCacheBehaviorSettingsOutput) ToDistributionCacheBehaviorSettingsOutput added in v5.36.0

func (o DistributionCacheBehaviorSettingsOutput) ToDistributionCacheBehaviorSettingsOutput() DistributionCacheBehaviorSettingsOutput

func (DistributionCacheBehaviorSettingsOutput) ToDistributionCacheBehaviorSettingsOutputWithContext added in v5.36.0

func (o DistributionCacheBehaviorSettingsOutput) ToDistributionCacheBehaviorSettingsOutputWithContext(ctx context.Context) DistributionCacheBehaviorSettingsOutput

func (DistributionCacheBehaviorSettingsOutput) ToDistributionCacheBehaviorSettingsPtrOutput added in v5.36.0

func (o DistributionCacheBehaviorSettingsOutput) ToDistributionCacheBehaviorSettingsPtrOutput() DistributionCacheBehaviorSettingsPtrOutput

func (DistributionCacheBehaviorSettingsOutput) ToDistributionCacheBehaviorSettingsPtrOutputWithContext added in v5.36.0

func (o DistributionCacheBehaviorSettingsOutput) ToDistributionCacheBehaviorSettingsPtrOutputWithContext(ctx context.Context) DistributionCacheBehaviorSettingsPtrOutput

type DistributionCacheBehaviorSettingsPtrInput added in v5.36.0

type DistributionCacheBehaviorSettingsPtrInput interface {
	pulumi.Input

	ToDistributionCacheBehaviorSettingsPtrOutput() DistributionCacheBehaviorSettingsPtrOutput
	ToDistributionCacheBehaviorSettingsPtrOutputWithContext(context.Context) DistributionCacheBehaviorSettingsPtrOutput
}

DistributionCacheBehaviorSettingsPtrInput is an input type that accepts DistributionCacheBehaviorSettingsArgs, DistributionCacheBehaviorSettingsPtr and DistributionCacheBehaviorSettingsPtrOutput values. You can construct a concrete instance of `DistributionCacheBehaviorSettingsPtrInput` via:

        DistributionCacheBehaviorSettingsArgs{...}

or:

        nil

type DistributionCacheBehaviorSettingsPtrOutput added in v5.36.0

type DistributionCacheBehaviorSettingsPtrOutput struct{ *pulumi.OutputState }

func (DistributionCacheBehaviorSettingsPtrOutput) AllowedHttpMethods added in v5.36.0

The HTTP methods that are processed and forwarded to the distribution's origin.

func (DistributionCacheBehaviorSettingsPtrOutput) CachedHttpMethods added in v5.36.0

The HTTP method responses that are cached by your distribution.

func (DistributionCacheBehaviorSettingsPtrOutput) DefaultTtl added in v5.36.0

The default amount of time that objects stay in the distribution's cache before the distribution forwards another request to the origin to determine whether the content has been updated.

func (DistributionCacheBehaviorSettingsPtrOutput) Elem added in v5.36.0

func (DistributionCacheBehaviorSettingsPtrOutput) ElementType added in v5.36.0

func (DistributionCacheBehaviorSettingsPtrOutput) ForwardedCookies added in v5.36.0

An object that describes the cookies that are forwarded to the origin. Your content is cached based on the cookies that are forwarded. Detailed below

func (DistributionCacheBehaviorSettingsPtrOutput) ForwardedHeaders added in v5.36.0

An object that describes the headers that are forwarded to the origin. Your content is cached based on the headers that are forwarded. Detailed below

func (DistributionCacheBehaviorSettingsPtrOutput) ForwardedQueryStrings added in v5.36.0

An object that describes the query strings that are forwarded to the origin. Your content is cached based on the query strings that are forwarded. Detailed below

func (DistributionCacheBehaviorSettingsPtrOutput) MaximumTtl added in v5.36.0

The maximum amount of time that objects stay in the distribution's cache before the distribution forwards another request to the origin to determine whether the object has been updated.

func (DistributionCacheBehaviorSettingsPtrOutput) MinimumTtl added in v5.36.0

The minimum amount of time that objects stay in the distribution's cache before the distribution forwards another request to the origin to determine whether the object has been updated.

func (DistributionCacheBehaviorSettingsPtrOutput) ToDistributionCacheBehaviorSettingsPtrOutput added in v5.36.0

func (o DistributionCacheBehaviorSettingsPtrOutput) ToDistributionCacheBehaviorSettingsPtrOutput() DistributionCacheBehaviorSettingsPtrOutput

func (DistributionCacheBehaviorSettingsPtrOutput) ToDistributionCacheBehaviorSettingsPtrOutputWithContext added in v5.36.0

func (o DistributionCacheBehaviorSettingsPtrOutput) ToDistributionCacheBehaviorSettingsPtrOutputWithContext(ctx context.Context) DistributionCacheBehaviorSettingsPtrOutput

type DistributionDefaultCacheBehavior added in v5.36.0

type DistributionDefaultCacheBehavior struct {
	// The cache behavior of the distribution. Valid values: `cache` and `dont-cache`.
	Behavior string `pulumi:"behavior"`
}

type DistributionDefaultCacheBehaviorArgs added in v5.36.0

type DistributionDefaultCacheBehaviorArgs struct {
	// The cache behavior of the distribution. Valid values: `cache` and `dont-cache`.
	Behavior pulumi.StringInput `pulumi:"behavior"`
}

func (DistributionDefaultCacheBehaviorArgs) ElementType added in v5.36.0

func (DistributionDefaultCacheBehaviorArgs) ToDistributionDefaultCacheBehaviorOutput added in v5.36.0

func (i DistributionDefaultCacheBehaviorArgs) ToDistributionDefaultCacheBehaviorOutput() DistributionDefaultCacheBehaviorOutput

func (DistributionDefaultCacheBehaviorArgs) ToDistributionDefaultCacheBehaviorOutputWithContext added in v5.36.0

func (i DistributionDefaultCacheBehaviorArgs) ToDistributionDefaultCacheBehaviorOutputWithContext(ctx context.Context) DistributionDefaultCacheBehaviorOutput

func (DistributionDefaultCacheBehaviorArgs) ToDistributionDefaultCacheBehaviorPtrOutput added in v5.36.0

func (i DistributionDefaultCacheBehaviorArgs) ToDistributionDefaultCacheBehaviorPtrOutput() DistributionDefaultCacheBehaviorPtrOutput

func (DistributionDefaultCacheBehaviorArgs) ToDistributionDefaultCacheBehaviorPtrOutputWithContext added in v5.36.0

func (i DistributionDefaultCacheBehaviorArgs) ToDistributionDefaultCacheBehaviorPtrOutputWithContext(ctx context.Context) DistributionDefaultCacheBehaviorPtrOutput

type DistributionDefaultCacheBehaviorInput added in v5.36.0

type DistributionDefaultCacheBehaviorInput interface {
	pulumi.Input

	ToDistributionDefaultCacheBehaviorOutput() DistributionDefaultCacheBehaviorOutput
	ToDistributionDefaultCacheBehaviorOutputWithContext(context.Context) DistributionDefaultCacheBehaviorOutput
}

DistributionDefaultCacheBehaviorInput is an input type that accepts DistributionDefaultCacheBehaviorArgs and DistributionDefaultCacheBehaviorOutput values. You can construct a concrete instance of `DistributionDefaultCacheBehaviorInput` via:

DistributionDefaultCacheBehaviorArgs{...}

type DistributionDefaultCacheBehaviorOutput added in v5.36.0

type DistributionDefaultCacheBehaviorOutput struct{ *pulumi.OutputState }

func (DistributionDefaultCacheBehaviorOutput) Behavior added in v5.36.0

The cache behavior of the distribution. Valid values: `cache` and `dont-cache`.

func (DistributionDefaultCacheBehaviorOutput) ElementType added in v5.36.0

func (DistributionDefaultCacheBehaviorOutput) ToDistributionDefaultCacheBehaviorOutput added in v5.36.0

func (o DistributionDefaultCacheBehaviorOutput) ToDistributionDefaultCacheBehaviorOutput() DistributionDefaultCacheBehaviorOutput

func (DistributionDefaultCacheBehaviorOutput) ToDistributionDefaultCacheBehaviorOutputWithContext added in v5.36.0

func (o DistributionDefaultCacheBehaviorOutput) ToDistributionDefaultCacheBehaviorOutputWithContext(ctx context.Context) DistributionDefaultCacheBehaviorOutput

func (DistributionDefaultCacheBehaviorOutput) ToDistributionDefaultCacheBehaviorPtrOutput added in v5.36.0

func (o DistributionDefaultCacheBehaviorOutput) ToDistributionDefaultCacheBehaviorPtrOutput() DistributionDefaultCacheBehaviorPtrOutput

func (DistributionDefaultCacheBehaviorOutput) ToDistributionDefaultCacheBehaviorPtrOutputWithContext added in v5.36.0

func (o DistributionDefaultCacheBehaviorOutput) ToDistributionDefaultCacheBehaviorPtrOutputWithContext(ctx context.Context) DistributionDefaultCacheBehaviorPtrOutput

type DistributionDefaultCacheBehaviorPtrInput added in v5.36.0

type DistributionDefaultCacheBehaviorPtrInput interface {
	pulumi.Input

	ToDistributionDefaultCacheBehaviorPtrOutput() DistributionDefaultCacheBehaviorPtrOutput
	ToDistributionDefaultCacheBehaviorPtrOutputWithContext(context.Context) DistributionDefaultCacheBehaviorPtrOutput
}

DistributionDefaultCacheBehaviorPtrInput is an input type that accepts DistributionDefaultCacheBehaviorArgs, DistributionDefaultCacheBehaviorPtr and DistributionDefaultCacheBehaviorPtrOutput values. You can construct a concrete instance of `DistributionDefaultCacheBehaviorPtrInput` via:

        DistributionDefaultCacheBehaviorArgs{...}

or:

        nil

type DistributionDefaultCacheBehaviorPtrOutput added in v5.36.0

type DistributionDefaultCacheBehaviorPtrOutput struct{ *pulumi.OutputState }

func (DistributionDefaultCacheBehaviorPtrOutput) Behavior added in v5.36.0

The cache behavior of the distribution. Valid values: `cache` and `dont-cache`.

func (DistributionDefaultCacheBehaviorPtrOutput) Elem added in v5.36.0

func (DistributionDefaultCacheBehaviorPtrOutput) ElementType added in v5.36.0

func (DistributionDefaultCacheBehaviorPtrOutput) ToDistributionDefaultCacheBehaviorPtrOutput added in v5.36.0

func (o DistributionDefaultCacheBehaviorPtrOutput) ToDistributionDefaultCacheBehaviorPtrOutput() DistributionDefaultCacheBehaviorPtrOutput

func (DistributionDefaultCacheBehaviorPtrOutput) ToDistributionDefaultCacheBehaviorPtrOutputWithContext added in v5.36.0

func (o DistributionDefaultCacheBehaviorPtrOutput) ToDistributionDefaultCacheBehaviorPtrOutputWithContext(ctx context.Context) DistributionDefaultCacheBehaviorPtrOutput

type DistributionInput added in v5.36.0

type DistributionInput interface {
	pulumi.Input

	ToDistributionOutput() DistributionOutput
	ToDistributionOutputWithContext(ctx context.Context) DistributionOutput
}

type DistributionLocation added in v5.36.0

type DistributionLocation struct {
	// The Availability Zone. Follows the format us-east-2a (case-sensitive).
	AvailabilityZone string `pulumi:"availabilityZone"`
	// The AWS Region name of the origin resource.
	RegionName string `pulumi:"regionName"`
}

type DistributionLocationArgs added in v5.36.0

type DistributionLocationArgs struct {
	// The Availability Zone. Follows the format us-east-2a (case-sensitive).
	AvailabilityZone pulumi.StringInput `pulumi:"availabilityZone"`
	// The AWS Region name of the origin resource.
	RegionName pulumi.StringInput `pulumi:"regionName"`
}

func (DistributionLocationArgs) ElementType added in v5.36.0

func (DistributionLocationArgs) ElementType() reflect.Type

func (DistributionLocationArgs) ToDistributionLocationOutput added in v5.36.0

func (i DistributionLocationArgs) ToDistributionLocationOutput() DistributionLocationOutput

func (DistributionLocationArgs) ToDistributionLocationOutputWithContext added in v5.36.0

func (i DistributionLocationArgs) ToDistributionLocationOutputWithContext(ctx context.Context) DistributionLocationOutput

type DistributionLocationArray added in v5.36.0

type DistributionLocationArray []DistributionLocationInput

func (DistributionLocationArray) ElementType added in v5.36.0

func (DistributionLocationArray) ElementType() reflect.Type

func (DistributionLocationArray) ToDistributionLocationArrayOutput added in v5.36.0

func (i DistributionLocationArray) ToDistributionLocationArrayOutput() DistributionLocationArrayOutput

func (DistributionLocationArray) ToDistributionLocationArrayOutputWithContext added in v5.36.0

func (i DistributionLocationArray) ToDistributionLocationArrayOutputWithContext(ctx context.Context) DistributionLocationArrayOutput

type DistributionLocationArrayInput added in v5.36.0

type DistributionLocationArrayInput interface {
	pulumi.Input

	ToDistributionLocationArrayOutput() DistributionLocationArrayOutput
	ToDistributionLocationArrayOutputWithContext(context.Context) DistributionLocationArrayOutput
}

DistributionLocationArrayInput is an input type that accepts DistributionLocationArray and DistributionLocationArrayOutput values. You can construct a concrete instance of `DistributionLocationArrayInput` via:

DistributionLocationArray{ DistributionLocationArgs{...} }

type DistributionLocationArrayOutput added in v5.36.0

type DistributionLocationArrayOutput struct{ *pulumi.OutputState }

func (DistributionLocationArrayOutput) ElementType added in v5.36.0

func (DistributionLocationArrayOutput) Index added in v5.36.0

func (DistributionLocationArrayOutput) ToDistributionLocationArrayOutput added in v5.36.0

func (o DistributionLocationArrayOutput) ToDistributionLocationArrayOutput() DistributionLocationArrayOutput

func (DistributionLocationArrayOutput) ToDistributionLocationArrayOutputWithContext added in v5.36.0

func (o DistributionLocationArrayOutput) ToDistributionLocationArrayOutputWithContext(ctx context.Context) DistributionLocationArrayOutput

type DistributionLocationInput added in v5.36.0

type DistributionLocationInput interface {
	pulumi.Input

	ToDistributionLocationOutput() DistributionLocationOutput
	ToDistributionLocationOutputWithContext(context.Context) DistributionLocationOutput
}

DistributionLocationInput is an input type that accepts DistributionLocationArgs and DistributionLocationOutput values. You can construct a concrete instance of `DistributionLocationInput` via:

DistributionLocationArgs{...}

type DistributionLocationOutput added in v5.36.0

type DistributionLocationOutput struct{ *pulumi.OutputState }

func (DistributionLocationOutput) AvailabilityZone added in v5.36.0

func (o DistributionLocationOutput) AvailabilityZone() pulumi.StringOutput

The Availability Zone. Follows the format us-east-2a (case-sensitive).

func (DistributionLocationOutput) ElementType added in v5.36.0

func (DistributionLocationOutput) ElementType() reflect.Type

func (DistributionLocationOutput) RegionName added in v5.36.0

The AWS Region name of the origin resource.

func (DistributionLocationOutput) ToDistributionLocationOutput added in v5.36.0

func (o DistributionLocationOutput) ToDistributionLocationOutput() DistributionLocationOutput

func (DistributionLocationOutput) ToDistributionLocationOutputWithContext added in v5.36.0

func (o DistributionLocationOutput) ToDistributionLocationOutputWithContext(ctx context.Context) DistributionLocationOutput

type DistributionMap added in v5.36.0

type DistributionMap map[string]DistributionInput

func (DistributionMap) ElementType added in v5.36.0

func (DistributionMap) ElementType() reflect.Type

func (DistributionMap) ToDistributionMapOutput added in v5.36.0

func (i DistributionMap) ToDistributionMapOutput() DistributionMapOutput

func (DistributionMap) ToDistributionMapOutputWithContext added in v5.36.0

func (i DistributionMap) ToDistributionMapOutputWithContext(ctx context.Context) DistributionMapOutput

type DistributionMapInput added in v5.36.0

type DistributionMapInput interface {
	pulumi.Input

	ToDistributionMapOutput() DistributionMapOutput
	ToDistributionMapOutputWithContext(context.Context) DistributionMapOutput
}

DistributionMapInput is an input type that accepts DistributionMap and DistributionMapOutput values. You can construct a concrete instance of `DistributionMapInput` via:

DistributionMap{ "key": DistributionArgs{...} }

type DistributionMapOutput added in v5.36.0

type DistributionMapOutput struct{ *pulumi.OutputState }

func (DistributionMapOutput) ElementType added in v5.36.0

func (DistributionMapOutput) ElementType() reflect.Type

func (DistributionMapOutput) MapIndex added in v5.36.0

func (DistributionMapOutput) ToDistributionMapOutput added in v5.36.0

func (o DistributionMapOutput) ToDistributionMapOutput() DistributionMapOutput

func (DistributionMapOutput) ToDistributionMapOutputWithContext added in v5.36.0

func (o DistributionMapOutput) ToDistributionMapOutputWithContext(ctx context.Context) DistributionMapOutput

type DistributionOrigin added in v5.36.0

type DistributionOrigin struct {
	// The name of the origin resource. Your origin can be an instance with an attached static IP, a bucket, or a load balancer that has at least one instance attached to it.
	Name string `pulumi:"name"`
	// The protocol that your Amazon Lightsail distribution uses when establishing a connection with your origin to pull content.
	ProtocolPolicy *string `pulumi:"protocolPolicy"`
	// The AWS Region name of the origin resource.
	RegionName string `pulumi:"regionName"`
	// The resource type of the origin resource (e.g., Instance).
	ResourceType *string `pulumi:"resourceType"`
}

type DistributionOriginArgs added in v5.36.0

type DistributionOriginArgs struct {
	// The name of the origin resource. Your origin can be an instance with an attached static IP, a bucket, or a load balancer that has at least one instance attached to it.
	Name pulumi.StringInput `pulumi:"name"`
	// The protocol that your Amazon Lightsail distribution uses when establishing a connection with your origin to pull content.
	ProtocolPolicy pulumi.StringPtrInput `pulumi:"protocolPolicy"`
	// The AWS Region name of the origin resource.
	RegionName pulumi.StringInput `pulumi:"regionName"`
	// The resource type of the origin resource (e.g., Instance).
	ResourceType pulumi.StringPtrInput `pulumi:"resourceType"`
}

func (DistributionOriginArgs) ElementType added in v5.36.0

func (DistributionOriginArgs) ElementType() reflect.Type

func (DistributionOriginArgs) ToDistributionOriginOutput added in v5.36.0

func (i DistributionOriginArgs) ToDistributionOriginOutput() DistributionOriginOutput

func (DistributionOriginArgs) ToDistributionOriginOutputWithContext added in v5.36.0

func (i DistributionOriginArgs) ToDistributionOriginOutputWithContext(ctx context.Context) DistributionOriginOutput

func (DistributionOriginArgs) ToDistributionOriginPtrOutput added in v5.36.0

func (i DistributionOriginArgs) ToDistributionOriginPtrOutput() DistributionOriginPtrOutput

func (DistributionOriginArgs) ToDistributionOriginPtrOutputWithContext added in v5.36.0

func (i DistributionOriginArgs) ToDistributionOriginPtrOutputWithContext(ctx context.Context) DistributionOriginPtrOutput

type DistributionOriginInput added in v5.36.0

type DistributionOriginInput interface {
	pulumi.Input

	ToDistributionOriginOutput() DistributionOriginOutput
	ToDistributionOriginOutputWithContext(context.Context) DistributionOriginOutput
}

DistributionOriginInput is an input type that accepts DistributionOriginArgs and DistributionOriginOutput values. You can construct a concrete instance of `DistributionOriginInput` via:

DistributionOriginArgs{...}

type DistributionOriginOutput added in v5.36.0

type DistributionOriginOutput struct{ *pulumi.OutputState }

func (DistributionOriginOutput) ElementType added in v5.36.0

func (DistributionOriginOutput) ElementType() reflect.Type

func (DistributionOriginOutput) Name added in v5.36.0

The name of the origin resource. Your origin can be an instance with an attached static IP, a bucket, or a load balancer that has at least one instance attached to it.

func (DistributionOriginOutput) ProtocolPolicy added in v5.36.0

func (o DistributionOriginOutput) ProtocolPolicy() pulumi.StringPtrOutput

The protocol that your Amazon Lightsail distribution uses when establishing a connection with your origin to pull content.

func (DistributionOriginOutput) RegionName added in v5.36.0

The AWS Region name of the origin resource.

func (DistributionOriginOutput) ResourceType added in v5.36.0

The resource type of the origin resource (e.g., Instance).

func (DistributionOriginOutput) ToDistributionOriginOutput added in v5.36.0

func (o DistributionOriginOutput) ToDistributionOriginOutput() DistributionOriginOutput

func (DistributionOriginOutput) ToDistributionOriginOutputWithContext added in v5.36.0

func (o DistributionOriginOutput) ToDistributionOriginOutputWithContext(ctx context.Context) DistributionOriginOutput

func (DistributionOriginOutput) ToDistributionOriginPtrOutput added in v5.36.0

func (o DistributionOriginOutput) ToDistributionOriginPtrOutput() DistributionOriginPtrOutput

func (DistributionOriginOutput) ToDistributionOriginPtrOutputWithContext added in v5.36.0

func (o DistributionOriginOutput) ToDistributionOriginPtrOutputWithContext(ctx context.Context) DistributionOriginPtrOutput

type DistributionOriginPtrInput added in v5.36.0

type DistributionOriginPtrInput interface {
	pulumi.Input

	ToDistributionOriginPtrOutput() DistributionOriginPtrOutput
	ToDistributionOriginPtrOutputWithContext(context.Context) DistributionOriginPtrOutput
}

DistributionOriginPtrInput is an input type that accepts DistributionOriginArgs, DistributionOriginPtr and DistributionOriginPtrOutput values. You can construct a concrete instance of `DistributionOriginPtrInput` via:

        DistributionOriginArgs{...}

or:

        nil

func DistributionOriginPtr added in v5.36.0

func DistributionOriginPtr(v *DistributionOriginArgs) DistributionOriginPtrInput

type DistributionOriginPtrOutput added in v5.36.0

type DistributionOriginPtrOutput struct{ *pulumi.OutputState }

func (DistributionOriginPtrOutput) Elem added in v5.36.0

func (DistributionOriginPtrOutput) ElementType added in v5.36.0

func (DistributionOriginPtrOutput) Name added in v5.36.0

The name of the origin resource. Your origin can be an instance with an attached static IP, a bucket, or a load balancer that has at least one instance attached to it.

func (DistributionOriginPtrOutput) ProtocolPolicy added in v5.36.0

The protocol that your Amazon Lightsail distribution uses when establishing a connection with your origin to pull content.

func (DistributionOriginPtrOutput) RegionName added in v5.36.0

The AWS Region name of the origin resource.

func (DistributionOriginPtrOutput) ResourceType added in v5.36.0

The resource type of the origin resource (e.g., Instance).

func (DistributionOriginPtrOutput) ToDistributionOriginPtrOutput added in v5.36.0

func (o DistributionOriginPtrOutput) ToDistributionOriginPtrOutput() DistributionOriginPtrOutput

func (DistributionOriginPtrOutput) ToDistributionOriginPtrOutputWithContext added in v5.36.0

func (o DistributionOriginPtrOutput) ToDistributionOriginPtrOutputWithContext(ctx context.Context) DistributionOriginPtrOutput

type DistributionOutput added in v5.36.0

type DistributionOutput struct{ *pulumi.OutputState }

func (DistributionOutput) AlternativeDomainNames added in v5.36.0

func (o DistributionOutput) AlternativeDomainNames() pulumi.StringArrayOutput

The alternate domain names of the distribution.

func (DistributionOutput) Arn added in v5.36.0

The Amazon Resource Name (ARN) of the distribution.

func (DistributionOutput) BundleId added in v5.36.0

func (o DistributionOutput) BundleId() pulumi.StringOutput

Bundle ID to use for the distribution.

func (DistributionOutput) CacheBehaviorSettings added in v5.36.0

An object that describes the cache behavior settings of the distribution. Detailed below

The following arguments are optional:

func (DistributionOutput) CacheBehaviors added in v5.36.0

A set of configuration blocks that describe the per-path cache behavior of the distribution. Detailed below

func (DistributionOutput) CertificateName added in v5.36.0

func (o DistributionOutput) CertificateName() pulumi.StringPtrOutput

The name of the SSL/TLS certificate attached to the distribution, if any.

func (DistributionOutput) CreatedAt added in v5.36.0

func (o DistributionOutput) CreatedAt() pulumi.StringOutput

The timestamp when the distribution was created.

func (DistributionOutput) DefaultCacheBehavior added in v5.36.0

Object that describes the default cache behavior of the distribution. Detailed below

func (DistributionOutput) DomainName added in v5.36.0

func (o DistributionOutput) DomainName() pulumi.StringOutput

The domain name of the distribution.

func (DistributionOutput) ElementType added in v5.36.0

func (DistributionOutput) ElementType() reflect.Type

func (DistributionOutput) IpAddressType added in v5.36.0

func (o DistributionOutput) IpAddressType() pulumi.StringPtrOutput

The IP address type of the distribution. Default: `dualstack`.

func (DistributionOutput) IsEnabled added in v5.36.0

func (o DistributionOutput) IsEnabled() pulumi.BoolPtrOutput

Indicates whether the distribution is enabled. Default: `true`.

func (DistributionOutput) Locations added in v5.36.0

An object that describes the location of the distribution, such as the AWS Region and Availability Zone. Detailed below

func (DistributionOutput) Name added in v5.36.0

Name of the distribution.

func (DistributionOutput) Origin added in v5.36.0

Object that describes the origin resource of the distribution, such as a Lightsail instance, bucket, or load balancer. Detailed below

func (DistributionOutput) OriginPublicDns added in v5.36.0

func (o DistributionOutput) OriginPublicDns() pulumi.StringOutput

The public DNS of the origin.

func (DistributionOutput) ResourceType added in v5.36.0

func (o DistributionOutput) ResourceType() pulumi.StringOutput

The resource type of the origin resource (e.g., Instance).

func (DistributionOutput) Status added in v5.36.0

The status of the distribution.

func (DistributionOutput) SupportCode added in v5.36.0

func (o DistributionOutput) SupportCode() pulumi.StringOutput

The support code. Include this code in your email to support when you have questions about your Lightsail distribution. This code enables our support team to look up your Lightsail information more easily.

func (DistributionOutput) Tags added in v5.36.0

Map of tags for the Lightsail Distribution. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.

func (DistributionOutput) TagsAll added in v5.36.0

A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.

func (DistributionOutput) ToDistributionOutput added in v5.36.0

func (o DistributionOutput) ToDistributionOutput() DistributionOutput

func (DistributionOutput) ToDistributionOutputWithContext added in v5.36.0

func (o DistributionOutput) ToDistributionOutputWithContext(ctx context.Context) DistributionOutput

type DistributionState added in v5.36.0

type DistributionState struct {
	// The alternate domain names of the distribution.
	AlternativeDomainNames pulumi.StringArrayInput
	// The Amazon Resource Name (ARN) of the distribution.
	Arn pulumi.StringPtrInput
	// Bundle ID to use for the distribution.
	BundleId pulumi.StringPtrInput
	// An object that describes the cache behavior settings of the distribution. Detailed below
	//
	// The following arguments are optional:
	CacheBehaviorSettings DistributionCacheBehaviorSettingsPtrInput
	// A set of configuration blocks that describe the per-path cache behavior of the distribution. Detailed below
	CacheBehaviors DistributionCacheBehaviorArrayInput
	// The name of the SSL/TLS certificate attached to the distribution, if any.
	CertificateName pulumi.StringPtrInput
	// The timestamp when the distribution was created.
	CreatedAt pulumi.StringPtrInput
	// Object that describes the default cache behavior of the distribution. Detailed below
	DefaultCacheBehavior DistributionDefaultCacheBehaviorPtrInput
	// The domain name of the distribution.
	DomainName pulumi.StringPtrInput
	// The IP address type of the distribution. Default: `dualstack`.
	IpAddressType pulumi.StringPtrInput
	// Indicates whether the distribution is enabled. Default: `true`.
	IsEnabled pulumi.BoolPtrInput
	// An object that describes the location of the distribution, such as the AWS Region and Availability Zone. Detailed below
	Locations DistributionLocationArrayInput
	// Name of the distribution.
	Name pulumi.StringPtrInput
	// Object that describes the origin resource of the distribution, such as a Lightsail instance, bucket, or load balancer. Detailed below
	Origin DistributionOriginPtrInput
	// The public DNS of the origin.
	OriginPublicDns pulumi.StringPtrInput
	// The resource type of the origin resource (e.g., Instance).
	ResourceType pulumi.StringPtrInput
	// The status of the distribution.
	Status pulumi.StringPtrInput
	// The support code. Include this code in your email to support when you have questions about your Lightsail distribution. This code enables our support team to look up your Lightsail information more easily.
	SupportCode pulumi.StringPtrInput
	// Map of tags for the Lightsail Distribution. 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 `defaultTags` configuration block.
	TagsAll pulumi.StringMapInput
}

func (DistributionState) ElementType added in v5.36.0

func (DistributionState) ElementType() reflect.Type

type Domain

type Domain struct {
	pulumi.CustomResourceState

	// The ARN of the Lightsail domain
	Arn pulumi.StringOutput `pulumi:"arn"`
	// The name of the Lightsail domain to manage
	DomainName pulumi.StringOutput `pulumi:"domainName"`
}

Creates a domain resource for the specified domain (e.g., example.com). You cannot register a new domain name using Lightsail. You must register a domain name using Amazon Route 53 or another domain name registrar. If you have already registered your domain, you can enter its name in this parameter to manage the DNS records for that domain.

> **Note:** Lightsail is currently only supported in a limited number of AWS Regions, please see ["Regions and Availability Zones in Amazon Lightsail"](https://lightsail.aws.amazon.com/ls/docs/overview/article/understanding-regions-and-availability-zones-in-amazon-lightsail) for more details

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-aws/sdk/v5/go/aws/lightsail"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := lightsail.NewDomain(ctx, "domainTest", &lightsail.DomainArgs{
			DomainName: pulumi.String("mydomain.com"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

func GetDomain

func GetDomain(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *DomainState, opts ...pulumi.ResourceOption) (*Domain, error)

GetDomain gets an existing Domain 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 NewDomain

func NewDomain(ctx *pulumi.Context,
	name string, args *DomainArgs, opts ...pulumi.ResourceOption) (*Domain, error)

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

func (*Domain) ElementType

func (*Domain) ElementType() reflect.Type

func (*Domain) ToDomainOutput

func (i *Domain) ToDomainOutput() DomainOutput

func (*Domain) ToDomainOutputWithContext

func (i *Domain) ToDomainOutputWithContext(ctx context.Context) DomainOutput

type DomainArgs

type DomainArgs struct {
	// The name of the Lightsail domain to manage
	DomainName pulumi.StringInput
}

The set of arguments for constructing a Domain resource.

func (DomainArgs) ElementType

func (DomainArgs) ElementType() reflect.Type

type DomainArray

type DomainArray []DomainInput

func (DomainArray) ElementType

func (DomainArray) ElementType() reflect.Type

func (DomainArray) ToDomainArrayOutput

func (i DomainArray) ToDomainArrayOutput() DomainArrayOutput

func (DomainArray) ToDomainArrayOutputWithContext

func (i DomainArray) ToDomainArrayOutputWithContext(ctx context.Context) DomainArrayOutput

type DomainArrayInput

type DomainArrayInput interface {
	pulumi.Input

	ToDomainArrayOutput() DomainArrayOutput
	ToDomainArrayOutputWithContext(context.Context) DomainArrayOutput
}

DomainArrayInput is an input type that accepts DomainArray and DomainArrayOutput values. You can construct a concrete instance of `DomainArrayInput` via:

DomainArray{ DomainArgs{...} }

type DomainArrayOutput

type DomainArrayOutput struct{ *pulumi.OutputState }

func (DomainArrayOutput) ElementType

func (DomainArrayOutput) ElementType() reflect.Type

func (DomainArrayOutput) Index

func (DomainArrayOutput) ToDomainArrayOutput

func (o DomainArrayOutput) ToDomainArrayOutput() DomainArrayOutput

func (DomainArrayOutput) ToDomainArrayOutputWithContext

func (o DomainArrayOutput) ToDomainArrayOutputWithContext(ctx context.Context) DomainArrayOutput

type DomainEntry added in v5.19.0

type DomainEntry struct {
	pulumi.CustomResourceState

	// The name of the Lightsail domain in which to create the entry
	DomainName pulumi.StringOutput `pulumi:"domainName"`
	// If the entry should be an alias Defaults to `false`
	IsAlias pulumi.BoolPtrOutput `pulumi:"isAlias"`
	// Name of the entry record
	Name pulumi.StringOutput `pulumi:"name"`
	// Target of the domain entry
	Target pulumi.StringOutput `pulumi:"target"`
	// Type of record
	Type pulumi.StringOutput `pulumi:"type"`
}

Creates a domain entry resource

> **NOTE on `id`:** In an effort to simplify imports, this resource `id` field has been updated to the standard resource id separator, a comma (`,`). For backward compatibility, the previous separator (underscore `_`) can still be used to read and import existing resources. When state is refreshed, the `id` will be updated to use the new standard separator. The previous separator will be deprecated in a future major release.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-aws/sdk/v5/go/aws/lightsail"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := lightsail.NewDomain(ctx, "testDomain", &lightsail.DomainArgs{
			DomainName: pulumi.String("mydomain.com"),
		})
		if err != nil {
			return err
		}
		_, err = lightsail.NewDomainEntry(ctx, "testDomainEntry", &lightsail.DomainEntryArgs{
			DomainName: pulumi.Any(aws_lightsail_domain.Domain_test.Domain_name),
			Type:       pulumi.String("A"),
			Target:     pulumi.String("127.0.0.1"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

`aws_lightsail_domain_entry` can be imported by using the id attribute, e.g.,

```sh

$ pulumi import aws:lightsail/domainEntry:DomainEntry example www,mydomain.com,A,127.0.0.1

```

func GetDomainEntry added in v5.19.0

func GetDomainEntry(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *DomainEntryState, opts ...pulumi.ResourceOption) (*DomainEntry, error)

GetDomainEntry gets an existing DomainEntry 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 NewDomainEntry added in v5.19.0

func NewDomainEntry(ctx *pulumi.Context,
	name string, args *DomainEntryArgs, opts ...pulumi.ResourceOption) (*DomainEntry, error)

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

func (*DomainEntry) ElementType added in v5.19.0

func (*DomainEntry) ElementType() reflect.Type

func (*DomainEntry) ToDomainEntryOutput added in v5.19.0

func (i *DomainEntry) ToDomainEntryOutput() DomainEntryOutput

func (*DomainEntry) ToDomainEntryOutputWithContext added in v5.19.0

func (i *DomainEntry) ToDomainEntryOutputWithContext(ctx context.Context) DomainEntryOutput

type DomainEntryArgs added in v5.19.0

type DomainEntryArgs struct {
	// The name of the Lightsail domain in which to create the entry
	DomainName pulumi.StringInput
	// If the entry should be an alias Defaults to `false`
	IsAlias pulumi.BoolPtrInput
	// Name of the entry record
	Name pulumi.StringPtrInput
	// Target of the domain entry
	Target pulumi.StringInput
	// Type of record
	Type pulumi.StringInput
}

The set of arguments for constructing a DomainEntry resource.

func (DomainEntryArgs) ElementType added in v5.19.0

func (DomainEntryArgs) ElementType() reflect.Type

type DomainEntryArray added in v5.19.0

type DomainEntryArray []DomainEntryInput

func (DomainEntryArray) ElementType added in v5.19.0

func (DomainEntryArray) ElementType() reflect.Type

func (DomainEntryArray) ToDomainEntryArrayOutput added in v5.19.0

func (i DomainEntryArray) ToDomainEntryArrayOutput() DomainEntryArrayOutput

func (DomainEntryArray) ToDomainEntryArrayOutputWithContext added in v5.19.0

func (i DomainEntryArray) ToDomainEntryArrayOutputWithContext(ctx context.Context) DomainEntryArrayOutput

type DomainEntryArrayInput added in v5.19.0

type DomainEntryArrayInput interface {
	pulumi.Input

	ToDomainEntryArrayOutput() DomainEntryArrayOutput
	ToDomainEntryArrayOutputWithContext(context.Context) DomainEntryArrayOutput
}

DomainEntryArrayInput is an input type that accepts DomainEntryArray and DomainEntryArrayOutput values. You can construct a concrete instance of `DomainEntryArrayInput` via:

DomainEntryArray{ DomainEntryArgs{...} }

type DomainEntryArrayOutput added in v5.19.0

type DomainEntryArrayOutput struct{ *pulumi.OutputState }

func (DomainEntryArrayOutput) ElementType added in v5.19.0

func (DomainEntryArrayOutput) ElementType() reflect.Type

func (DomainEntryArrayOutput) Index added in v5.19.0

func (DomainEntryArrayOutput) ToDomainEntryArrayOutput added in v5.19.0

func (o DomainEntryArrayOutput) ToDomainEntryArrayOutput() DomainEntryArrayOutput

func (DomainEntryArrayOutput) ToDomainEntryArrayOutputWithContext added in v5.19.0

func (o DomainEntryArrayOutput) ToDomainEntryArrayOutputWithContext(ctx context.Context) DomainEntryArrayOutput

type DomainEntryInput added in v5.19.0

type DomainEntryInput interface {
	pulumi.Input

	ToDomainEntryOutput() DomainEntryOutput
	ToDomainEntryOutputWithContext(ctx context.Context) DomainEntryOutput
}

type DomainEntryMap added in v5.19.0

type DomainEntryMap map[string]DomainEntryInput

func (DomainEntryMap) ElementType added in v5.19.0

func (DomainEntryMap) ElementType() reflect.Type

func (DomainEntryMap) ToDomainEntryMapOutput added in v5.19.0

func (i DomainEntryMap) ToDomainEntryMapOutput() DomainEntryMapOutput

func (DomainEntryMap) ToDomainEntryMapOutputWithContext added in v5.19.0

func (i DomainEntryMap) ToDomainEntryMapOutputWithContext(ctx context.Context) DomainEntryMapOutput

type DomainEntryMapInput added in v5.19.0

type DomainEntryMapInput interface {
	pulumi.Input

	ToDomainEntryMapOutput() DomainEntryMapOutput
	ToDomainEntryMapOutputWithContext(context.Context) DomainEntryMapOutput
}

DomainEntryMapInput is an input type that accepts DomainEntryMap and DomainEntryMapOutput values. You can construct a concrete instance of `DomainEntryMapInput` via:

DomainEntryMap{ "key": DomainEntryArgs{...} }

type DomainEntryMapOutput added in v5.19.0

type DomainEntryMapOutput struct{ *pulumi.OutputState }

func (DomainEntryMapOutput) ElementType added in v5.19.0

func (DomainEntryMapOutput) ElementType() reflect.Type

func (DomainEntryMapOutput) MapIndex added in v5.19.0

func (DomainEntryMapOutput) ToDomainEntryMapOutput added in v5.19.0

func (o DomainEntryMapOutput) ToDomainEntryMapOutput() DomainEntryMapOutput

func (DomainEntryMapOutput) ToDomainEntryMapOutputWithContext added in v5.19.0

func (o DomainEntryMapOutput) ToDomainEntryMapOutputWithContext(ctx context.Context) DomainEntryMapOutput

type DomainEntryOutput added in v5.19.0

type DomainEntryOutput struct{ *pulumi.OutputState }

func (DomainEntryOutput) DomainName added in v5.19.0

func (o DomainEntryOutput) DomainName() pulumi.StringOutput

The name of the Lightsail domain in which to create the entry

func (DomainEntryOutput) ElementType added in v5.19.0

func (DomainEntryOutput) ElementType() reflect.Type

func (DomainEntryOutput) IsAlias added in v5.19.0

If the entry should be an alias Defaults to `false`

func (DomainEntryOutput) Name added in v5.19.0

Name of the entry record

func (DomainEntryOutput) Target added in v5.19.0

Target of the domain entry

func (DomainEntryOutput) ToDomainEntryOutput added in v5.19.0

func (o DomainEntryOutput) ToDomainEntryOutput() DomainEntryOutput

func (DomainEntryOutput) ToDomainEntryOutputWithContext added in v5.19.0

func (o DomainEntryOutput) ToDomainEntryOutputWithContext(ctx context.Context) DomainEntryOutput

func (DomainEntryOutput) Type added in v5.19.0

Type of record

type DomainEntryState added in v5.19.0

type DomainEntryState struct {
	// The name of the Lightsail domain in which to create the entry
	DomainName pulumi.StringPtrInput
	// If the entry should be an alias Defaults to `false`
	IsAlias pulumi.BoolPtrInput
	// Name of the entry record
	Name pulumi.StringPtrInput
	// Target of the domain entry
	Target pulumi.StringPtrInput
	// Type of record
	Type pulumi.StringPtrInput
}

func (DomainEntryState) ElementType added in v5.19.0

func (DomainEntryState) ElementType() reflect.Type

type DomainInput

type DomainInput interface {
	pulumi.Input

	ToDomainOutput() DomainOutput
	ToDomainOutputWithContext(ctx context.Context) DomainOutput
}

type DomainMap

type DomainMap map[string]DomainInput

func (DomainMap) ElementType

func (DomainMap) ElementType() reflect.Type

func (DomainMap) ToDomainMapOutput

func (i DomainMap) ToDomainMapOutput() DomainMapOutput

func (DomainMap) ToDomainMapOutputWithContext

func (i DomainMap) ToDomainMapOutputWithContext(ctx context.Context) DomainMapOutput

type DomainMapInput

type DomainMapInput interface {
	pulumi.Input

	ToDomainMapOutput() DomainMapOutput
	ToDomainMapOutputWithContext(context.Context) DomainMapOutput
}

DomainMapInput is an input type that accepts DomainMap and DomainMapOutput values. You can construct a concrete instance of `DomainMapInput` via:

DomainMap{ "key": DomainArgs{...} }

type DomainMapOutput

type DomainMapOutput struct{ *pulumi.OutputState }

func (DomainMapOutput) ElementType

func (DomainMapOutput) ElementType() reflect.Type

func (DomainMapOutput) MapIndex

func (DomainMapOutput) ToDomainMapOutput

func (o DomainMapOutput) ToDomainMapOutput() DomainMapOutput

func (DomainMapOutput) ToDomainMapOutputWithContext

func (o DomainMapOutput) ToDomainMapOutputWithContext(ctx context.Context) DomainMapOutput

type DomainOutput

type DomainOutput struct{ *pulumi.OutputState }

func (DomainOutput) Arn added in v5.4.0

The ARN of the Lightsail domain

func (DomainOutput) DomainName added in v5.4.0

func (o DomainOutput) DomainName() pulumi.StringOutput

The name of the Lightsail domain to manage

func (DomainOutput) ElementType

func (DomainOutput) ElementType() reflect.Type

func (DomainOutput) ToDomainOutput

func (o DomainOutput) ToDomainOutput() DomainOutput

func (DomainOutput) ToDomainOutputWithContext

func (o DomainOutput) ToDomainOutputWithContext(ctx context.Context) DomainOutput

type DomainState

type DomainState struct {
	// The ARN of the Lightsail domain
	Arn pulumi.StringPtrInput
	// The name of the Lightsail domain to manage
	DomainName pulumi.StringPtrInput
}

func (DomainState) ElementType

func (DomainState) ElementType() reflect.Type

type Instance

type Instance struct {
	pulumi.CustomResourceState

	// The add on configuration for the instance. Detailed below.
	AddOn InstanceAddOnPtrOutput `pulumi:"addOn"`
	// The ARN of the Lightsail instance (matches `id`).
	Arn pulumi.StringOutput `pulumi:"arn"`
	// The Availability Zone in which to create your
	// instance (see list below)
	AvailabilityZone pulumi.StringOutput `pulumi:"availabilityZone"`
	// The ID for a virtual private server image. A list of available blueprint IDs can be obtained using the AWS CLI command: `aws lightsail get-blueprints`
	BlueprintId pulumi.StringOutput `pulumi:"blueprintId"`
	// The bundle of specification information (see list below)
	BundleId pulumi.StringOutput `pulumi:"bundleId"`
	// The number of vCPUs the instance has.
	CpuCount pulumi.IntOutput `pulumi:"cpuCount"`
	// The timestamp when the instance was created.
	CreatedAt pulumi.StringOutput `pulumi:"createdAt"`
	// The IP address type of the Lightsail Instance. Valid Values: `dualstack` | `ipv4`.
	IpAddressType pulumi.StringPtrOutput `pulumi:"ipAddressType"`
	// (**Deprecated**) The first IPv6 address of the Lightsail instance. Use `ipv6Addresses` attribute instead.
	//
	// Deprecated: use `ipv6_addresses` attribute instead
	Ipv6Address pulumi.StringOutput `pulumi:"ipv6Address"`
	// List of IPv6 addresses for the Lightsail instance.
	Ipv6Addresses pulumi.StringArrayOutput `pulumi:"ipv6Addresses"`
	// A Boolean value indicating whether this instance has a static IP assigned to it.
	IsStaticIp pulumi.BoolOutput `pulumi:"isStaticIp"`
	// The name of your key pair. Created in the
	// Lightsail console (cannot use `ec2.KeyPair` at this time)
	KeyPairName pulumi.StringPtrOutput `pulumi:"keyPairName"`
	// The name of the Lightsail Instance. Names be unique within each AWS Region in your Lightsail account.
	Name pulumi.StringOutput `pulumi:"name"`
	// The private IP address of the instance.
	PrivateIpAddress pulumi.StringOutput `pulumi:"privateIpAddress"`
	// The public IP address of the instance.
	PublicIpAddress pulumi.StringOutput `pulumi:"publicIpAddress"`
	// The amount of RAM in GB on the instance (e.g., 1.0).
	RamSize pulumi.Float64Output `pulumi:"ramSize"`
	// A map of tags to assign to the resource. To create a key-only tag, use an empty string as the value. .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 `defaultTags` configuration block.
	TagsAll pulumi.StringMapOutput `pulumi:"tagsAll"`
	// Single lined launch script as a string to configure server with additional user data
	UserData pulumi.StringPtrOutput `pulumi:"userData"`
	// The user name for connecting to the instance (e.g., ec2-user).
	Username pulumi.StringOutput `pulumi:"username"`
}

Provides a Lightsail Instance. Amazon Lightsail is a service to provide easy virtual private servers with custom software already setup. See [What is Amazon Lightsail?](https://lightsail.aws.amazon.com/ls/docs/getting-started/article/what-is-amazon-lightsail) for more information.

> **Note:** Lightsail is currently only supported in a limited number of AWS Regions, please see ["Regions and Availability Zones in Amazon Lightsail"](https://lightsail.aws.amazon.com/ls/docs/overview/article/understanding-regions-and-availability-zones-in-amazon-lightsail) for more details

## Example Usage ### Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-aws/sdk/v5/go/aws/lightsail"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := lightsail.NewInstance(ctx, "gitlabTest", &lightsail.InstanceArgs{
			AvailabilityZone: pulumi.String("us-east-1b"),
			BlueprintId:      pulumi.String("amazon_linux_2"),
			BundleId:         pulumi.String("nano_1_0"),
			KeyPairName:      pulumi.String("some_key_name"),
			Tags: pulumi.StringMap{
				"foo": pulumi.String("bar"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` ### Example With User Data

Lightsail user data is handled differently than ec2 user data. Lightsail user data only accepts a single lined string. The below example shows installing apache and creating the index page.

```go package main

import (

"github.com/pulumi/pulumi-aws/sdk/v5/go/aws/lightsail"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := lightsail.NewInstance(ctx, "custom", &lightsail.InstanceArgs{
			AvailabilityZone: pulumi.String("us-east-1b"),
			BlueprintId:      pulumi.String("amazon_linux_2"),
			BundleId:         pulumi.String("nano_1_0"),
			UserData:         pulumi.String("sudo yum install -y httpd && sudo systemctl start httpd && sudo systemctl enable httpd && echo '<h1>Deployed via Pulumi</h1>' | sudo tee /var/www/html/index.html"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` ### Enable Auto Snapshots

```go package main

import (

"github.com/pulumi/pulumi-aws/sdk/v5/go/aws/lightsail"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := lightsail.NewInstance(ctx, "test", &lightsail.InstanceArgs{
			AddOn: &lightsail.InstanceAddOnArgs{
				SnapshotTime: pulumi.String("06:00"),
				Status:       pulumi.String("Enabled"),
				Type:         pulumi.String("AutoSnapshot"),
			},
			AvailabilityZone: pulumi.String("us-east-1b"),
			BlueprintId:      pulumi.String("amazon_linux_2"),
			BundleId:         pulumi.String("nano_1_0"),
			Tags: pulumi.StringMap{
				"foo": pulumi.String("bar"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` ## Availability Zones

Lightsail currently supports the following Availability Zones (e.g., `us-east-1a`):

- `ap-northeast-1{a,c,d}` - `ap-northeast-2{a,c}` - `ap-south-1{a,b}` - `ap-southeast-1{a,b,c}` - `ap-southeast-2{a,b,c}` - `ca-central-1{a,b}` - `eu-central-1{a,b,c}` - `eu-west-1{a,b,c}` - `eu-west-2{a,b,c}` - `eu-west-3{a,b,c}` - `us-east-1{a,b,c,d,e,f}` - `us-east-2{a,b,c}` - `us-west-2{a,b,c}`

## Bundles

Lightsail currently supports the following Bundle IDs (e.g., an instance in `ap-northeast-1` would use `small20`):

### Prefix

A Bundle ID starts with one of the below size prefixes:

- `nano_` - `micro_` - `small_` - `medium_` - `large_` - `xlarge_` - `2xlarge_`

### Suffix

A Bundle ID ends with one of the following suffixes depending on Availability Zone:

- ap-northeast-1: `20` - ap-northeast-2: `20` - ap-south-1: `21` - ap-southeast-1: `20` - ap-southeast-2: `22` - ca-central-1: `20` - eu-central-1: `20` - eu-west-1: `20` - eu-west-2: `20` - eu-west-3: `20` - us-east-1: `20` - us-east-2: `20` - us-west-2: `20`

## Import

Lightsail Instances can be imported using their name, e.g.,

```sh

$ pulumi import aws:lightsail/instance:Instance gitlab_test 'custom_gitlab'

```

func GetInstance

func GetInstance(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *InstanceState, opts ...pulumi.ResourceOption) (*Instance, error)

GetInstance gets an existing Instance 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 NewInstance

func NewInstance(ctx *pulumi.Context,
	name string, args *InstanceArgs, opts ...pulumi.ResourceOption) (*Instance, error)

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

func (*Instance) ElementType

func (*Instance) ElementType() reflect.Type

func (*Instance) ToInstanceOutput

func (i *Instance) ToInstanceOutput() InstanceOutput

func (*Instance) ToInstanceOutputWithContext

func (i *Instance) ToInstanceOutputWithContext(ctx context.Context) InstanceOutput

type InstanceAddOn added in v5.27.0

type InstanceAddOn struct {
	// The daily time when an automatic snapshot will be created. Must be in HH:00 format, and in an hourly increment and specified in Coordinated Universal Time (UTC). The snapshot will be automatically created between the time specified and up to 45 minutes after.
	SnapshotTime string `pulumi:"snapshotTime"`
	// The status of the add on. Valid Values: `Enabled`, `Disabled`.
	Status string `pulumi:"status"`
	// The add-on type. There is currently only one valid type `AutoSnapshot`.
	Type string `pulumi:"type"`
}

type InstanceAddOnArgs added in v5.27.0

type InstanceAddOnArgs struct {
	// The daily time when an automatic snapshot will be created. Must be in HH:00 format, and in an hourly increment and specified in Coordinated Universal Time (UTC). The snapshot will be automatically created between the time specified and up to 45 minutes after.
	SnapshotTime pulumi.StringInput `pulumi:"snapshotTime"`
	// The status of the add on. Valid Values: `Enabled`, `Disabled`.
	Status pulumi.StringInput `pulumi:"status"`
	// The add-on type. There is currently only one valid type `AutoSnapshot`.
	Type pulumi.StringInput `pulumi:"type"`
}

func (InstanceAddOnArgs) ElementType added in v5.27.0

func (InstanceAddOnArgs) ElementType() reflect.Type

func (InstanceAddOnArgs) ToInstanceAddOnOutput added in v5.27.0

func (i InstanceAddOnArgs) ToInstanceAddOnOutput() InstanceAddOnOutput

func (InstanceAddOnArgs) ToInstanceAddOnOutputWithContext added in v5.27.0

func (i InstanceAddOnArgs) ToInstanceAddOnOutputWithContext(ctx context.Context) InstanceAddOnOutput

func (InstanceAddOnArgs) ToInstanceAddOnPtrOutput added in v5.27.0

func (i InstanceAddOnArgs) ToInstanceAddOnPtrOutput() InstanceAddOnPtrOutput

func (InstanceAddOnArgs) ToInstanceAddOnPtrOutputWithContext added in v5.27.0

func (i InstanceAddOnArgs) ToInstanceAddOnPtrOutputWithContext(ctx context.Context) InstanceAddOnPtrOutput

type InstanceAddOnInput added in v5.27.0

type InstanceAddOnInput interface {
	pulumi.Input

	ToInstanceAddOnOutput() InstanceAddOnOutput
	ToInstanceAddOnOutputWithContext(context.Context) InstanceAddOnOutput
}

InstanceAddOnInput is an input type that accepts InstanceAddOnArgs and InstanceAddOnOutput values. You can construct a concrete instance of `InstanceAddOnInput` via:

InstanceAddOnArgs{...}

type InstanceAddOnOutput added in v5.27.0

type InstanceAddOnOutput struct{ *pulumi.OutputState }

func (InstanceAddOnOutput) ElementType added in v5.27.0

func (InstanceAddOnOutput) ElementType() reflect.Type

func (InstanceAddOnOutput) SnapshotTime added in v5.27.0

func (o InstanceAddOnOutput) SnapshotTime() pulumi.StringOutput

The daily time when an automatic snapshot will be created. Must be in HH:00 format, and in an hourly increment and specified in Coordinated Universal Time (UTC). The snapshot will be automatically created between the time specified and up to 45 minutes after.

func (InstanceAddOnOutput) Status added in v5.27.0

The status of the add on. Valid Values: `Enabled`, `Disabled`.

func (InstanceAddOnOutput) ToInstanceAddOnOutput added in v5.27.0

func (o InstanceAddOnOutput) ToInstanceAddOnOutput() InstanceAddOnOutput

func (InstanceAddOnOutput) ToInstanceAddOnOutputWithContext added in v5.27.0

func (o InstanceAddOnOutput) ToInstanceAddOnOutputWithContext(ctx context.Context) InstanceAddOnOutput

func (InstanceAddOnOutput) ToInstanceAddOnPtrOutput added in v5.27.0

func (o InstanceAddOnOutput) ToInstanceAddOnPtrOutput() InstanceAddOnPtrOutput

func (InstanceAddOnOutput) ToInstanceAddOnPtrOutputWithContext added in v5.27.0

func (o InstanceAddOnOutput) ToInstanceAddOnPtrOutputWithContext(ctx context.Context) InstanceAddOnPtrOutput

func (InstanceAddOnOutput) Type added in v5.27.0

The add-on type. There is currently only one valid type `AutoSnapshot`.

type InstanceAddOnPtrInput added in v5.27.0

type InstanceAddOnPtrInput interface {
	pulumi.Input

	ToInstanceAddOnPtrOutput() InstanceAddOnPtrOutput
	ToInstanceAddOnPtrOutputWithContext(context.Context) InstanceAddOnPtrOutput
}

InstanceAddOnPtrInput is an input type that accepts InstanceAddOnArgs, InstanceAddOnPtr and InstanceAddOnPtrOutput values. You can construct a concrete instance of `InstanceAddOnPtrInput` via:

        InstanceAddOnArgs{...}

or:

        nil

func InstanceAddOnPtr added in v5.27.0

func InstanceAddOnPtr(v *InstanceAddOnArgs) InstanceAddOnPtrInput

type InstanceAddOnPtrOutput added in v5.27.0

type InstanceAddOnPtrOutput struct{ *pulumi.OutputState }

func (InstanceAddOnPtrOutput) Elem added in v5.27.0

func (InstanceAddOnPtrOutput) ElementType added in v5.27.0

func (InstanceAddOnPtrOutput) ElementType() reflect.Type

func (InstanceAddOnPtrOutput) SnapshotTime added in v5.27.0

The daily time when an automatic snapshot will be created. Must be in HH:00 format, and in an hourly increment and specified in Coordinated Universal Time (UTC). The snapshot will be automatically created between the time specified and up to 45 minutes after.

func (InstanceAddOnPtrOutput) Status added in v5.27.0

The status of the add on. Valid Values: `Enabled`, `Disabled`.

func (InstanceAddOnPtrOutput) ToInstanceAddOnPtrOutput added in v5.27.0

func (o InstanceAddOnPtrOutput) ToInstanceAddOnPtrOutput() InstanceAddOnPtrOutput

func (InstanceAddOnPtrOutput) ToInstanceAddOnPtrOutputWithContext added in v5.27.0

func (o InstanceAddOnPtrOutput) ToInstanceAddOnPtrOutputWithContext(ctx context.Context) InstanceAddOnPtrOutput

func (InstanceAddOnPtrOutput) Type added in v5.27.0

The add-on type. There is currently only one valid type `AutoSnapshot`.

type InstanceArgs

type InstanceArgs struct {
	// The add on configuration for the instance. Detailed below.
	AddOn InstanceAddOnPtrInput
	// The Availability Zone in which to create your
	// instance (see list below)
	AvailabilityZone pulumi.StringInput
	// The ID for a virtual private server image. A list of available blueprint IDs can be obtained using the AWS CLI command: `aws lightsail get-blueprints`
	BlueprintId pulumi.StringInput
	// The bundle of specification information (see list below)
	BundleId pulumi.StringInput
	// The IP address type of the Lightsail Instance. Valid Values: `dualstack` | `ipv4`.
	IpAddressType pulumi.StringPtrInput
	// The name of your key pair. Created in the
	// Lightsail console (cannot use `ec2.KeyPair` at this time)
	KeyPairName pulumi.StringPtrInput
	// The name of the Lightsail Instance. Names be unique within each AWS Region in your Lightsail account.
	Name pulumi.StringPtrInput
	// A map of tags to assign to the resource. To create a key-only tag, use an empty string as the value. .If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
	Tags pulumi.StringMapInput
	// Single lined launch script as a string to configure server with additional user data
	UserData pulumi.StringPtrInput
}

The set of arguments for constructing a Instance resource.

func (InstanceArgs) ElementType

func (InstanceArgs) ElementType() reflect.Type

type InstanceArray

type InstanceArray []InstanceInput

func (InstanceArray) ElementType

func (InstanceArray) ElementType() reflect.Type

func (InstanceArray) ToInstanceArrayOutput

func (i InstanceArray) ToInstanceArrayOutput() InstanceArrayOutput

func (InstanceArray) ToInstanceArrayOutputWithContext

func (i InstanceArray) ToInstanceArrayOutputWithContext(ctx context.Context) InstanceArrayOutput

type InstanceArrayInput

type InstanceArrayInput interface {
	pulumi.Input

	ToInstanceArrayOutput() InstanceArrayOutput
	ToInstanceArrayOutputWithContext(context.Context) InstanceArrayOutput
}

InstanceArrayInput is an input type that accepts InstanceArray and InstanceArrayOutput values. You can construct a concrete instance of `InstanceArrayInput` via:

InstanceArray{ InstanceArgs{...} }

type InstanceArrayOutput

type InstanceArrayOutput struct{ *pulumi.OutputState }

func (InstanceArrayOutput) ElementType

func (InstanceArrayOutput) ElementType() reflect.Type

func (InstanceArrayOutput) Index

func (InstanceArrayOutput) ToInstanceArrayOutput

func (o InstanceArrayOutput) ToInstanceArrayOutput() InstanceArrayOutput

func (InstanceArrayOutput) ToInstanceArrayOutputWithContext

func (o InstanceArrayOutput) ToInstanceArrayOutputWithContext(ctx context.Context) InstanceArrayOutput

type InstanceInput

type InstanceInput interface {
	pulumi.Input

	ToInstanceOutput() InstanceOutput
	ToInstanceOutputWithContext(ctx context.Context) InstanceOutput
}

type InstanceMap

type InstanceMap map[string]InstanceInput

func (InstanceMap) ElementType

func (InstanceMap) ElementType() reflect.Type

func (InstanceMap) ToInstanceMapOutput

func (i InstanceMap) ToInstanceMapOutput() InstanceMapOutput

func (InstanceMap) ToInstanceMapOutputWithContext

func (i InstanceMap) ToInstanceMapOutputWithContext(ctx context.Context) InstanceMapOutput

type InstanceMapInput

type InstanceMapInput interface {
	pulumi.Input

	ToInstanceMapOutput() InstanceMapOutput
	ToInstanceMapOutputWithContext(context.Context) InstanceMapOutput
}

InstanceMapInput is an input type that accepts InstanceMap and InstanceMapOutput values. You can construct a concrete instance of `InstanceMapInput` via:

InstanceMap{ "key": InstanceArgs{...} }

type InstanceMapOutput

type InstanceMapOutput struct{ *pulumi.OutputState }

func (InstanceMapOutput) ElementType

func (InstanceMapOutput) ElementType() reflect.Type

func (InstanceMapOutput) MapIndex

func (InstanceMapOutput) ToInstanceMapOutput

func (o InstanceMapOutput) ToInstanceMapOutput() InstanceMapOutput

func (InstanceMapOutput) ToInstanceMapOutputWithContext

func (o InstanceMapOutput) ToInstanceMapOutputWithContext(ctx context.Context) InstanceMapOutput

type InstanceOutput

type InstanceOutput struct{ *pulumi.OutputState }

func (InstanceOutput) AddOn added in v5.27.0

The add on configuration for the instance. Detailed below.

func (InstanceOutput) Arn added in v5.4.0

The ARN of the Lightsail instance (matches `id`).

func (InstanceOutput) AvailabilityZone added in v5.4.0

func (o InstanceOutput) AvailabilityZone() pulumi.StringOutput

The Availability Zone in which to create your instance (see list below)

func (InstanceOutput) BlueprintId added in v5.4.0

func (o InstanceOutput) BlueprintId() pulumi.StringOutput

The ID for a virtual private server image. A list of available blueprint IDs can be obtained using the AWS CLI command: `aws lightsail get-blueprints`

func (InstanceOutput) BundleId added in v5.4.0

func (o InstanceOutput) BundleId() pulumi.StringOutput

The bundle of specification information (see list below)

func (InstanceOutput) CpuCount added in v5.4.0

func (o InstanceOutput) CpuCount() pulumi.IntOutput

The number of vCPUs the instance has.

func (InstanceOutput) CreatedAt added in v5.4.0

func (o InstanceOutput) CreatedAt() pulumi.StringOutput

The timestamp when the instance was created.

func (InstanceOutput) ElementType

func (InstanceOutput) ElementType() reflect.Type

func (InstanceOutput) IpAddressType added in v5.21.0

func (o InstanceOutput) IpAddressType() pulumi.StringPtrOutput

The IP address type of the Lightsail Instance. Valid Values: `dualstack` | `ipv4`.

func (InstanceOutput) Ipv6Address deprecated added in v5.4.0

func (o InstanceOutput) Ipv6Address() pulumi.StringOutput

(**Deprecated**) The first IPv6 address of the Lightsail instance. Use `ipv6Addresses` attribute instead.

Deprecated: use `ipv6_addresses` attribute instead

func (InstanceOutput) Ipv6Addresses added in v5.4.0

func (o InstanceOutput) Ipv6Addresses() pulumi.StringArrayOutput

List of IPv6 addresses for the Lightsail instance.

func (InstanceOutput) IsStaticIp added in v5.4.0

func (o InstanceOutput) IsStaticIp() pulumi.BoolOutput

A Boolean value indicating whether this instance has a static IP assigned to it.

func (InstanceOutput) KeyPairName added in v5.4.0

func (o InstanceOutput) KeyPairName() pulumi.StringPtrOutput

The name of your key pair. Created in the Lightsail console (cannot use `ec2.KeyPair` at this time)

func (InstanceOutput) Name added in v5.4.0

The name of the Lightsail Instance. Names be unique within each AWS Region in your Lightsail account.

func (InstanceOutput) PrivateIpAddress added in v5.4.0

func (o InstanceOutput) PrivateIpAddress() pulumi.StringOutput

The private IP address of the instance.

func (InstanceOutput) PublicIpAddress added in v5.4.0

func (o InstanceOutput) PublicIpAddress() pulumi.StringOutput

The public IP address of the instance.

func (InstanceOutput) RamSize added in v5.4.0

func (o InstanceOutput) RamSize() pulumi.Float64Output

The amount of RAM in GB on the instance (e.g., 1.0).

func (InstanceOutput) Tags added in v5.4.0

A map of tags to assign to the resource. To create a key-only tag, use an empty string as the value. .If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.

func (InstanceOutput) TagsAll added in v5.4.0

A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.

func (InstanceOutput) ToInstanceOutput

func (o InstanceOutput) ToInstanceOutput() InstanceOutput

func (InstanceOutput) ToInstanceOutputWithContext

func (o InstanceOutput) ToInstanceOutputWithContext(ctx context.Context) InstanceOutput

func (InstanceOutput) UserData added in v5.4.0

func (o InstanceOutput) UserData() pulumi.StringPtrOutput

Single lined launch script as a string to configure server with additional user data

func (InstanceOutput) Username added in v5.4.0

func (o InstanceOutput) Username() pulumi.StringOutput

The user name for connecting to the instance (e.g., ec2-user).

type InstancePublicPorts

type InstancePublicPorts struct {
	pulumi.CustomResourceState

	// Name of the Lightsail Instance.
	InstanceName pulumi.StringOutput `pulumi:"instanceName"`
	// Configuration block with port information. AWS closes all currently open ports that are not included in the `portInfo`. Detailed below.
	PortInfos InstancePublicPortsPortInfoArrayOutput `pulumi:"portInfos"`
}

Opens ports for a specific Amazon Lightsail instance, and specifies the IP addresses allowed to connect to the instance through the ports, and the protocol.

> See [What is Amazon Lightsail?](https://lightsail.aws.amazon.com/ls/docs/getting-started/article/what-is-amazon-lightsail) for more information.

> **Note:** Lightsail is currently only supported in a limited number of AWS Regions, please see ["Regions and Availability Zones in Amazon Lightsail"](https://lightsail.aws.amazon.com/ls/docs/overview/article/understanding-regions-and-availability-zones-in-amazon-lightsail) for more details.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-aws/sdk/v5/go/aws/lightsail"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		testInstance, err := lightsail.NewInstance(ctx, "testInstance", &lightsail.InstanceArgs{
			AvailabilityZone: pulumi.Any(data.Aws_availability_zones.Available.Names[0]),
			BlueprintId:      pulumi.String("amazon_linux_2"),
			BundleId:         pulumi.String("nano_1_0"),
		})
		if err != nil {
			return err
		}
		_, err = lightsail.NewInstancePublicPorts(ctx, "testInstancePublicPorts", &lightsail.InstancePublicPortsArgs{
			InstanceName: testInstance.Name,
			PortInfos: lightsail.InstancePublicPortsPortInfoArray{
				&lightsail.InstancePublicPortsPortInfoArgs{
					Protocol: pulumi.String("tcp"),
					FromPort: pulumi.Int(80),
					ToPort:   pulumi.Int(80),
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

func GetInstancePublicPorts

func GetInstancePublicPorts(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *InstancePublicPortsState, opts ...pulumi.ResourceOption) (*InstancePublicPorts, error)

GetInstancePublicPorts gets an existing InstancePublicPorts 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 NewInstancePublicPorts

func NewInstancePublicPorts(ctx *pulumi.Context,
	name string, args *InstancePublicPortsArgs, opts ...pulumi.ResourceOption) (*InstancePublicPorts, error)

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

func (*InstancePublicPorts) ElementType

func (*InstancePublicPorts) ElementType() reflect.Type

func (*InstancePublicPorts) ToInstancePublicPortsOutput

func (i *InstancePublicPorts) ToInstancePublicPortsOutput() InstancePublicPortsOutput

func (*InstancePublicPorts) ToInstancePublicPortsOutputWithContext

func (i *InstancePublicPorts) ToInstancePublicPortsOutputWithContext(ctx context.Context) InstancePublicPortsOutput

type InstancePublicPortsArgs

type InstancePublicPortsArgs struct {
	// Name of the Lightsail Instance.
	InstanceName pulumi.StringInput
	// Configuration block with port information. AWS closes all currently open ports that are not included in the `portInfo`. Detailed below.
	PortInfos InstancePublicPortsPortInfoArrayInput
}

The set of arguments for constructing a InstancePublicPorts resource.

func (InstancePublicPortsArgs) ElementType

func (InstancePublicPortsArgs) ElementType() reflect.Type

type InstancePublicPortsArray

type InstancePublicPortsArray []InstancePublicPortsInput

func (InstancePublicPortsArray) ElementType

func (InstancePublicPortsArray) ElementType() reflect.Type

func (InstancePublicPortsArray) ToInstancePublicPortsArrayOutput

func (i InstancePublicPortsArray) ToInstancePublicPortsArrayOutput() InstancePublicPortsArrayOutput

func (InstancePublicPortsArray) ToInstancePublicPortsArrayOutputWithContext

func (i InstancePublicPortsArray) ToInstancePublicPortsArrayOutputWithContext(ctx context.Context) InstancePublicPortsArrayOutput

type InstancePublicPortsArrayInput

type InstancePublicPortsArrayInput interface {
	pulumi.Input

	ToInstancePublicPortsArrayOutput() InstancePublicPortsArrayOutput
	ToInstancePublicPortsArrayOutputWithContext(context.Context) InstancePublicPortsArrayOutput
}

InstancePublicPortsArrayInput is an input type that accepts InstancePublicPortsArray and InstancePublicPortsArrayOutput values. You can construct a concrete instance of `InstancePublicPortsArrayInput` via:

InstancePublicPortsArray{ InstancePublicPortsArgs{...} }

type InstancePublicPortsArrayOutput

type InstancePublicPortsArrayOutput struct{ *pulumi.OutputState }

func (InstancePublicPortsArrayOutput) ElementType

func (InstancePublicPortsArrayOutput) Index

func (InstancePublicPortsArrayOutput) ToInstancePublicPortsArrayOutput

func (o InstancePublicPortsArrayOutput) ToInstancePublicPortsArrayOutput() InstancePublicPortsArrayOutput

func (InstancePublicPortsArrayOutput) ToInstancePublicPortsArrayOutputWithContext

func (o InstancePublicPortsArrayOutput) ToInstancePublicPortsArrayOutputWithContext(ctx context.Context) InstancePublicPortsArrayOutput

type InstancePublicPortsInput

type InstancePublicPortsInput interface {
	pulumi.Input

	ToInstancePublicPortsOutput() InstancePublicPortsOutput
	ToInstancePublicPortsOutputWithContext(ctx context.Context) InstancePublicPortsOutput
}

type InstancePublicPortsMap

type InstancePublicPortsMap map[string]InstancePublicPortsInput

func (InstancePublicPortsMap) ElementType

func (InstancePublicPortsMap) ElementType() reflect.Type

func (InstancePublicPortsMap) ToInstancePublicPortsMapOutput

func (i InstancePublicPortsMap) ToInstancePublicPortsMapOutput() InstancePublicPortsMapOutput

func (InstancePublicPortsMap) ToInstancePublicPortsMapOutputWithContext

func (i InstancePublicPortsMap) ToInstancePublicPortsMapOutputWithContext(ctx context.Context) InstancePublicPortsMapOutput

type InstancePublicPortsMapInput

type InstancePublicPortsMapInput interface {
	pulumi.Input

	ToInstancePublicPortsMapOutput() InstancePublicPortsMapOutput
	ToInstancePublicPortsMapOutputWithContext(context.Context) InstancePublicPortsMapOutput
}

InstancePublicPortsMapInput is an input type that accepts InstancePublicPortsMap and InstancePublicPortsMapOutput values. You can construct a concrete instance of `InstancePublicPortsMapInput` via:

InstancePublicPortsMap{ "key": InstancePublicPortsArgs{...} }

type InstancePublicPortsMapOutput

type InstancePublicPortsMapOutput struct{ *pulumi.OutputState }

func (InstancePublicPortsMapOutput) ElementType

func (InstancePublicPortsMapOutput) MapIndex

func (InstancePublicPortsMapOutput) ToInstancePublicPortsMapOutput

func (o InstancePublicPortsMapOutput) ToInstancePublicPortsMapOutput() InstancePublicPortsMapOutput

func (InstancePublicPortsMapOutput) ToInstancePublicPortsMapOutputWithContext

func (o InstancePublicPortsMapOutput) ToInstancePublicPortsMapOutputWithContext(ctx context.Context) InstancePublicPortsMapOutput

type InstancePublicPortsOutput

type InstancePublicPortsOutput struct{ *pulumi.OutputState }

func (InstancePublicPortsOutput) ElementType

func (InstancePublicPortsOutput) ElementType() reflect.Type

func (InstancePublicPortsOutput) InstanceName added in v5.4.0

Name of the Lightsail Instance.

func (InstancePublicPortsOutput) PortInfos added in v5.4.0

Configuration block with port information. AWS closes all currently open ports that are not included in the `portInfo`. Detailed below.

func (InstancePublicPortsOutput) ToInstancePublicPortsOutput

func (o InstancePublicPortsOutput) ToInstancePublicPortsOutput() InstancePublicPortsOutput

func (InstancePublicPortsOutput) ToInstancePublicPortsOutputWithContext

func (o InstancePublicPortsOutput) ToInstancePublicPortsOutputWithContext(ctx context.Context) InstancePublicPortsOutput

type InstancePublicPortsPortInfo

type InstancePublicPortsPortInfo struct {
	// Set of CIDR aliases that define access for a preconfigured range of IP addresses.
	CidrListAliases []string `pulumi:"cidrListAliases"`
	// Set of CIDR blocks.
	Cidrs []string `pulumi:"cidrs"`
	// First port in a range of open ports on an instance.
	FromPort  int      `pulumi:"fromPort"`
	Ipv6Cidrs []string `pulumi:"ipv6Cidrs"`
	// IP protocol name. Valid values are `tcp`, `all`, `udp`, and `icmp`.
	Protocol string `pulumi:"protocol"`
	// Last port in a range of open ports on an instance.
	//
	// The following arguments are optional:
	ToPort int `pulumi:"toPort"`
}

type InstancePublicPortsPortInfoArgs

type InstancePublicPortsPortInfoArgs struct {
	// Set of CIDR aliases that define access for a preconfigured range of IP addresses.
	CidrListAliases pulumi.StringArrayInput `pulumi:"cidrListAliases"`
	// Set of CIDR blocks.
	Cidrs pulumi.StringArrayInput `pulumi:"cidrs"`
	// First port in a range of open ports on an instance.
	FromPort  pulumi.IntInput         `pulumi:"fromPort"`
	Ipv6Cidrs pulumi.StringArrayInput `pulumi:"ipv6Cidrs"`
	// IP protocol name. Valid values are `tcp`, `all`, `udp`, and `icmp`.
	Protocol pulumi.StringInput `pulumi:"protocol"`
	// Last port in a range of open ports on an instance.
	//
	// The following arguments are optional:
	ToPort pulumi.IntInput `pulumi:"toPort"`
}

func (InstancePublicPortsPortInfoArgs) ElementType

func (InstancePublicPortsPortInfoArgs) ToInstancePublicPortsPortInfoOutput

func (i InstancePublicPortsPortInfoArgs) ToInstancePublicPortsPortInfoOutput() InstancePublicPortsPortInfoOutput

func (InstancePublicPortsPortInfoArgs) ToInstancePublicPortsPortInfoOutputWithContext

func (i InstancePublicPortsPortInfoArgs) ToInstancePublicPortsPortInfoOutputWithContext(ctx context.Context) InstancePublicPortsPortInfoOutput

type InstancePublicPortsPortInfoArray

type InstancePublicPortsPortInfoArray []InstancePublicPortsPortInfoInput

func (InstancePublicPortsPortInfoArray) ElementType

func (InstancePublicPortsPortInfoArray) ToInstancePublicPortsPortInfoArrayOutput

func (i InstancePublicPortsPortInfoArray) ToInstancePublicPortsPortInfoArrayOutput() InstancePublicPortsPortInfoArrayOutput

func (InstancePublicPortsPortInfoArray) ToInstancePublicPortsPortInfoArrayOutputWithContext

func (i InstancePublicPortsPortInfoArray) ToInstancePublicPortsPortInfoArrayOutputWithContext(ctx context.Context) InstancePublicPortsPortInfoArrayOutput

type InstancePublicPortsPortInfoArrayInput

type InstancePublicPortsPortInfoArrayInput interface {
	pulumi.Input

	ToInstancePublicPortsPortInfoArrayOutput() InstancePublicPortsPortInfoArrayOutput
	ToInstancePublicPortsPortInfoArrayOutputWithContext(context.Context) InstancePublicPortsPortInfoArrayOutput
}

InstancePublicPortsPortInfoArrayInput is an input type that accepts InstancePublicPortsPortInfoArray and InstancePublicPortsPortInfoArrayOutput values. You can construct a concrete instance of `InstancePublicPortsPortInfoArrayInput` via:

InstancePublicPortsPortInfoArray{ InstancePublicPortsPortInfoArgs{...} }

type InstancePublicPortsPortInfoArrayOutput

type InstancePublicPortsPortInfoArrayOutput struct{ *pulumi.OutputState }

func (InstancePublicPortsPortInfoArrayOutput) ElementType

func (InstancePublicPortsPortInfoArrayOutput) Index

func (InstancePublicPortsPortInfoArrayOutput) ToInstancePublicPortsPortInfoArrayOutput

func (o InstancePublicPortsPortInfoArrayOutput) ToInstancePublicPortsPortInfoArrayOutput() InstancePublicPortsPortInfoArrayOutput

func (InstancePublicPortsPortInfoArrayOutput) ToInstancePublicPortsPortInfoArrayOutputWithContext

func (o InstancePublicPortsPortInfoArrayOutput) ToInstancePublicPortsPortInfoArrayOutputWithContext(ctx context.Context) InstancePublicPortsPortInfoArrayOutput

type InstancePublicPortsPortInfoInput

type InstancePublicPortsPortInfoInput interface {
	pulumi.Input

	ToInstancePublicPortsPortInfoOutput() InstancePublicPortsPortInfoOutput
	ToInstancePublicPortsPortInfoOutputWithContext(context.Context) InstancePublicPortsPortInfoOutput
}

InstancePublicPortsPortInfoInput is an input type that accepts InstancePublicPortsPortInfoArgs and InstancePublicPortsPortInfoOutput values. You can construct a concrete instance of `InstancePublicPortsPortInfoInput` via:

InstancePublicPortsPortInfoArgs{...}

type InstancePublicPortsPortInfoOutput

type InstancePublicPortsPortInfoOutput struct{ *pulumi.OutputState }

func (InstancePublicPortsPortInfoOutput) CidrListAliases added in v5.27.0

Set of CIDR aliases that define access for a preconfigured range of IP addresses.

func (InstancePublicPortsPortInfoOutput) Cidrs

Set of CIDR blocks.

func (InstancePublicPortsPortInfoOutput) ElementType

func (InstancePublicPortsPortInfoOutput) FromPort

First port in a range of open ports on an instance.

func (InstancePublicPortsPortInfoOutput) Ipv6Cidrs added in v5.21.0

func (InstancePublicPortsPortInfoOutput) Protocol

IP protocol name. Valid values are `tcp`, `all`, `udp`, and `icmp`.

func (InstancePublicPortsPortInfoOutput) ToInstancePublicPortsPortInfoOutput

func (o InstancePublicPortsPortInfoOutput) ToInstancePublicPortsPortInfoOutput() InstancePublicPortsPortInfoOutput

func (InstancePublicPortsPortInfoOutput) ToInstancePublicPortsPortInfoOutputWithContext

func (o InstancePublicPortsPortInfoOutput) ToInstancePublicPortsPortInfoOutputWithContext(ctx context.Context) InstancePublicPortsPortInfoOutput

func (InstancePublicPortsPortInfoOutput) ToPort

Last port in a range of open ports on an instance.

The following arguments are optional:

type InstancePublicPortsState

type InstancePublicPortsState struct {
	// Name of the Lightsail Instance.
	InstanceName pulumi.StringPtrInput
	// Configuration block with port information. AWS closes all currently open ports that are not included in the `portInfo`. Detailed below.
	PortInfos InstancePublicPortsPortInfoArrayInput
}

func (InstancePublicPortsState) ElementType

func (InstancePublicPortsState) ElementType() reflect.Type

type InstanceState

type InstanceState struct {
	// The add on configuration for the instance. Detailed below.
	AddOn InstanceAddOnPtrInput
	// The ARN of the Lightsail instance (matches `id`).
	Arn pulumi.StringPtrInput
	// The Availability Zone in which to create your
	// instance (see list below)
	AvailabilityZone pulumi.StringPtrInput
	// The ID for a virtual private server image. A list of available blueprint IDs can be obtained using the AWS CLI command: `aws lightsail get-blueprints`
	BlueprintId pulumi.StringPtrInput
	// The bundle of specification information (see list below)
	BundleId pulumi.StringPtrInput
	// The number of vCPUs the instance has.
	CpuCount pulumi.IntPtrInput
	// The timestamp when the instance was created.
	CreatedAt pulumi.StringPtrInput
	// The IP address type of the Lightsail Instance. Valid Values: `dualstack` | `ipv4`.
	IpAddressType pulumi.StringPtrInput
	// (**Deprecated**) The first IPv6 address of the Lightsail instance. Use `ipv6Addresses` attribute instead.
	//
	// Deprecated: use `ipv6_addresses` attribute instead
	Ipv6Address pulumi.StringPtrInput
	// List of IPv6 addresses for the Lightsail instance.
	Ipv6Addresses pulumi.StringArrayInput
	// A Boolean value indicating whether this instance has a static IP assigned to it.
	IsStaticIp pulumi.BoolPtrInput
	// The name of your key pair. Created in the
	// Lightsail console (cannot use `ec2.KeyPair` at this time)
	KeyPairName pulumi.StringPtrInput
	// The name of the Lightsail Instance. Names be unique within each AWS Region in your Lightsail account.
	Name pulumi.StringPtrInput
	// The private IP address of the instance.
	PrivateIpAddress pulumi.StringPtrInput
	// The public IP address of the instance.
	PublicIpAddress pulumi.StringPtrInput
	// The amount of RAM in GB on the instance (e.g., 1.0).
	RamSize pulumi.Float64PtrInput
	// A map of tags to assign to the resource. To create a key-only tag, use an empty string as the value. .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 `defaultTags` configuration block.
	TagsAll pulumi.StringMapInput
	// Single lined launch script as a string to configure server with additional user data
	UserData pulumi.StringPtrInput
	// The user name for connecting to the instance (e.g., ec2-user).
	Username pulumi.StringPtrInput
}

func (InstanceState) ElementType

func (InstanceState) ElementType() reflect.Type

type KeyPair

type KeyPair struct {
	pulumi.CustomResourceState

	// The ARN of the Lightsail key pair
	Arn pulumi.StringOutput `pulumi:"arn"`
	// The MD5 public key fingerprint for the encrypted
	// private key
	EncryptedFingerprint pulumi.StringOutput `pulumi:"encryptedFingerprint"`
	// the private key material, base 64 encoded and
	// encrypted with the given `pgpKey`. This is only populated when creating a new
	// key and `pgpKey` is supplied
	EncryptedPrivateKey pulumi.StringOutput `pulumi:"encryptedPrivateKey"`
	// The MD5 public key fingerprint as specified in section 4 of RFC 4716.
	Fingerprint pulumi.StringOutput `pulumi:"fingerprint"`
	// The name of the Lightsail Key Pair. If omitted, a unique
	// name will be generated by this provider
	Name       pulumi.StringOutput    `pulumi:"name"`
	NamePrefix pulumi.StringPtrOutput `pulumi:"namePrefix"`
	// An optional PGP key to encrypt the resulting private
	// key material. Only used when creating a new key pair
	PgpKey pulumi.StringPtrOutput `pulumi:"pgpKey"`
	// the private key, base64 encoded. This is only populated
	// when creating a new key, and when no `pgpKey` is provided
	PrivateKey pulumi.StringOutput `pulumi:"privateKey"`
	// The public key material. This public key will be
	// imported into Lightsail
	//
	// > **NOTE:** a PGP key is not required, however it is strongly encouraged.
	// Without a PGP key, the private key material will be stored in state unencrypted.
	// `pgpKey` is ignored if `publicKey` is supplied.
	PublicKey pulumi.StringOutput `pulumi:"publicKey"`
}

Provides a Lightsail Key Pair, for use with Lightsail Instances. These key pairs are separate from EC2 Key Pairs, and must be created or imported for use with Lightsail.

> **Note:** Lightsail is currently only supported in a limited number of AWS Regions, please see ["Regions and Availability Zones in Amazon Lightsail"](https://lightsail.aws.amazon.com/ls/docs/overview/article/understanding-regions-and-availability-zones-in-amazon-lightsail) for more details

## Example Usage ### Create New Key Pair

```go package main

import (

"github.com/pulumi/pulumi-aws/sdk/v5/go/aws/lightsail"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := lightsail.NewKeyPair(ctx, "lgKeyPair", nil)
		if err != nil {
			return err
		}
		return nil
	})
}

``` ### Create New Key Pair with PGP Encrypted Private Key

```go package main

import (

"github.com/pulumi/pulumi-aws/sdk/v5/go/aws/lightsail"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := lightsail.NewKeyPair(ctx, "lgKeyPair", &lightsail.KeyPairArgs{
			PgpKey: pulumi.String("keybase:keybaseusername"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` ### Existing Public Key Import

```go package main

import (

"os"

"github.com/pulumi/pulumi-aws/sdk/v5/go/aws/lightsail"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func readFileOrPanic(path string) pulumi.StringPtrInput {
	data, err := os.ReadFile(path)
	if err != nil {
		panic(err.Error())
	}
	return pulumi.String(string(data))
}

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := lightsail.NewKeyPair(ctx, "lgKeyPair", &lightsail.KeyPairArgs{
			PublicKey: readFileOrPanic("~/.ssh/id_rsa.pub"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Lightsail Key Pairs cannot be imported, because the private and public key are only available on initial creation.

func GetKeyPair

func GetKeyPair(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *KeyPairState, opts ...pulumi.ResourceOption) (*KeyPair, error)

GetKeyPair gets an existing KeyPair 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 NewKeyPair

func NewKeyPair(ctx *pulumi.Context,
	name string, args *KeyPairArgs, opts ...pulumi.ResourceOption) (*KeyPair, error)

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

func (*KeyPair) ElementType

func (*KeyPair) ElementType() reflect.Type

func (*KeyPair) ToKeyPairOutput

func (i *KeyPair) ToKeyPairOutput() KeyPairOutput

func (*KeyPair) ToKeyPairOutputWithContext

func (i *KeyPair) ToKeyPairOutputWithContext(ctx context.Context) KeyPairOutput

type KeyPairArgs

type KeyPairArgs struct {
	// The name of the Lightsail Key Pair. If omitted, a unique
	// name will be generated by this provider
	Name       pulumi.StringPtrInput
	NamePrefix pulumi.StringPtrInput
	// An optional PGP key to encrypt the resulting private
	// key material. Only used when creating a new key pair
	PgpKey pulumi.StringPtrInput
	// The public key material. This public key will be
	// imported into Lightsail
	//
	// > **NOTE:** a PGP key is not required, however it is strongly encouraged.
	// Without a PGP key, the private key material will be stored in state unencrypted.
	// `pgpKey` is ignored if `publicKey` is supplied.
	PublicKey pulumi.StringPtrInput
}

The set of arguments for constructing a KeyPair resource.

func (KeyPairArgs) ElementType

func (KeyPairArgs) ElementType() reflect.Type

type KeyPairArray

type KeyPairArray []KeyPairInput

func (KeyPairArray) ElementType

func (KeyPairArray) ElementType() reflect.Type

func (KeyPairArray) ToKeyPairArrayOutput

func (i KeyPairArray) ToKeyPairArrayOutput() KeyPairArrayOutput

func (KeyPairArray) ToKeyPairArrayOutputWithContext

func (i KeyPairArray) ToKeyPairArrayOutputWithContext(ctx context.Context) KeyPairArrayOutput

type KeyPairArrayInput

type KeyPairArrayInput interface {
	pulumi.Input

	ToKeyPairArrayOutput() KeyPairArrayOutput
	ToKeyPairArrayOutputWithContext(context.Context) KeyPairArrayOutput
}

KeyPairArrayInput is an input type that accepts KeyPairArray and KeyPairArrayOutput values. You can construct a concrete instance of `KeyPairArrayInput` via:

KeyPairArray{ KeyPairArgs{...} }

type KeyPairArrayOutput

type KeyPairArrayOutput struct{ *pulumi.OutputState }

func (KeyPairArrayOutput) ElementType

func (KeyPairArrayOutput) ElementType() reflect.Type

func (KeyPairArrayOutput) Index

func (KeyPairArrayOutput) ToKeyPairArrayOutput

func (o KeyPairArrayOutput) ToKeyPairArrayOutput() KeyPairArrayOutput

func (KeyPairArrayOutput) ToKeyPairArrayOutputWithContext

func (o KeyPairArrayOutput) ToKeyPairArrayOutputWithContext(ctx context.Context) KeyPairArrayOutput

type KeyPairInput

type KeyPairInput interface {
	pulumi.Input

	ToKeyPairOutput() KeyPairOutput
	ToKeyPairOutputWithContext(ctx context.Context) KeyPairOutput
}

type KeyPairMap

type KeyPairMap map[string]KeyPairInput

func (KeyPairMap) ElementType

func (KeyPairMap) ElementType() reflect.Type

func (KeyPairMap) ToKeyPairMapOutput

func (i KeyPairMap) ToKeyPairMapOutput() KeyPairMapOutput

func (KeyPairMap) ToKeyPairMapOutputWithContext

func (i KeyPairMap) ToKeyPairMapOutputWithContext(ctx context.Context) KeyPairMapOutput

type KeyPairMapInput

type KeyPairMapInput interface {
	pulumi.Input

	ToKeyPairMapOutput() KeyPairMapOutput
	ToKeyPairMapOutputWithContext(context.Context) KeyPairMapOutput
}

KeyPairMapInput is an input type that accepts KeyPairMap and KeyPairMapOutput values. You can construct a concrete instance of `KeyPairMapInput` via:

KeyPairMap{ "key": KeyPairArgs{...} }

type KeyPairMapOutput

type KeyPairMapOutput struct{ *pulumi.OutputState }

func (KeyPairMapOutput) ElementType

func (KeyPairMapOutput) ElementType() reflect.Type

func (KeyPairMapOutput) MapIndex

func (KeyPairMapOutput) ToKeyPairMapOutput

func (o KeyPairMapOutput) ToKeyPairMapOutput() KeyPairMapOutput

func (KeyPairMapOutput) ToKeyPairMapOutputWithContext

func (o KeyPairMapOutput) ToKeyPairMapOutputWithContext(ctx context.Context) KeyPairMapOutput

type KeyPairOutput

type KeyPairOutput struct{ *pulumi.OutputState }

func (KeyPairOutput) Arn added in v5.4.0

The ARN of the Lightsail key pair

func (KeyPairOutput) ElementType

func (KeyPairOutput) ElementType() reflect.Type

func (KeyPairOutput) EncryptedFingerprint added in v5.4.0

func (o KeyPairOutput) EncryptedFingerprint() pulumi.StringOutput

The MD5 public key fingerprint for the encrypted private key

func (KeyPairOutput) EncryptedPrivateKey added in v5.4.0

func (o KeyPairOutput) EncryptedPrivateKey() pulumi.StringOutput

the private key material, base 64 encoded and encrypted with the given `pgpKey`. This is only populated when creating a new key and `pgpKey` is supplied

func (KeyPairOutput) Fingerprint added in v5.4.0

func (o KeyPairOutput) Fingerprint() pulumi.StringOutput

The MD5 public key fingerprint as specified in section 4 of RFC 4716.

func (KeyPairOutput) Name added in v5.4.0

The name of the Lightsail Key Pair. If omitted, a unique name will be generated by this provider

func (KeyPairOutput) NamePrefix added in v5.4.0

func (o KeyPairOutput) NamePrefix() pulumi.StringPtrOutput

func (KeyPairOutput) PgpKey added in v5.4.0

An optional PGP key to encrypt the resulting private key material. Only used when creating a new key pair

func (KeyPairOutput) PrivateKey added in v5.4.0

func (o KeyPairOutput) PrivateKey() pulumi.StringOutput

the private key, base64 encoded. This is only populated when creating a new key, and when no `pgpKey` is provided

func (KeyPairOutput) PublicKey added in v5.4.0

func (o KeyPairOutput) PublicKey() pulumi.StringOutput

The public key material. This public key will be imported into Lightsail

> **NOTE:** a PGP key is not required, however it is strongly encouraged. Without a PGP key, the private key material will be stored in state unencrypted. `pgpKey` is ignored if `publicKey` is supplied.

func (KeyPairOutput) ToKeyPairOutput

func (o KeyPairOutput) ToKeyPairOutput() KeyPairOutput

func (KeyPairOutput) ToKeyPairOutputWithContext

func (o KeyPairOutput) ToKeyPairOutputWithContext(ctx context.Context) KeyPairOutput

type KeyPairState

type KeyPairState struct {
	// The ARN of the Lightsail key pair
	Arn pulumi.StringPtrInput
	// The MD5 public key fingerprint for the encrypted
	// private key
	EncryptedFingerprint pulumi.StringPtrInput
	// the private key material, base 64 encoded and
	// encrypted with the given `pgpKey`. This is only populated when creating a new
	// key and `pgpKey` is supplied
	EncryptedPrivateKey pulumi.StringPtrInput
	// The MD5 public key fingerprint as specified in section 4 of RFC 4716.
	Fingerprint pulumi.StringPtrInput
	// The name of the Lightsail Key Pair. If omitted, a unique
	// name will be generated by this provider
	Name       pulumi.StringPtrInput
	NamePrefix pulumi.StringPtrInput
	// An optional PGP key to encrypt the resulting private
	// key material. Only used when creating a new key pair
	PgpKey pulumi.StringPtrInput
	// the private key, base64 encoded. This is only populated
	// when creating a new key, and when no `pgpKey` is provided
	PrivateKey pulumi.StringPtrInput
	// The public key material. This public key will be
	// imported into Lightsail
	//
	// > **NOTE:** a PGP key is not required, however it is strongly encouraged.
	// Without a PGP key, the private key material will be stored in state unencrypted.
	// `pgpKey` is ignored if `publicKey` is supplied.
	PublicKey pulumi.StringPtrInput
}

func (KeyPairState) ElementType

func (KeyPairState) ElementType() reflect.Type

type Lb added in v5.19.0

type Lb struct {
	pulumi.CustomResourceState

	// The ARN of the Lightsail load balancer.
	Arn pulumi.StringOutput `pulumi:"arn"`
	// The timestamp when the load balancer was created.
	CreatedAt pulumi.StringOutput `pulumi:"createdAt"`
	// The DNS name of the load balancer.
	DnsName pulumi.StringOutput `pulumi:"dnsName"`
	// The health check path of the load balancer. Default value "/".
	HealthCheckPath pulumi.StringPtrOutput `pulumi:"healthCheckPath"`
	// The instance port the load balancer will connect.
	InstancePort  pulumi.IntOutput       `pulumi:"instancePort"`
	IpAddressType pulumi.StringPtrOutput `pulumi:"ipAddressType"`
	// The name of the Lightsail load balancer.
	Name pulumi.StringOutput `pulumi:"name"`
	// The protocol of the load balancer.
	Protocol pulumi.StringOutput `pulumi:"protocol"`
	// The public ports of the load balancer.
	PublicPorts pulumi.IntArrayOutput `pulumi:"publicPorts"`
	// The support code for the database. Include this code in your email to support when you have questions about a database in Lightsail. This code enables our support team to look up your Lightsail information more easily.
	SupportCode pulumi.StringOutput `pulumi:"supportCode"`
	// A map of tags to assign to the resource. To create a key-only tag, use an empty string as the value. 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 `defaultTags` configuration block.
	TagsAll pulumi.StringMapOutput `pulumi:"tagsAll"`
}

Creates a Lightsail load balancer resource.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-aws/sdk/v5/go/aws/lightsail"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := lightsail.NewLb(ctx, "test", &lightsail.LbArgs{
			HealthCheckPath: pulumi.String("/"),
			InstancePort:    pulumi.Int(80),
			Tags: pulumi.StringMap{
				"foo": pulumi.String("bar"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

`aws_lightsail_lb` can be imported by using the name attribute, e.g.,

```sh

$ pulumi import aws:lightsail/lb:Lb test example-load-balancer

```

func GetLb added in v5.19.0

func GetLb(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *LbState, opts ...pulumi.ResourceOption) (*Lb, error)

GetLb gets an existing Lb 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 NewLb added in v5.19.0

func NewLb(ctx *pulumi.Context,
	name string, args *LbArgs, opts ...pulumi.ResourceOption) (*Lb, error)

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

func (*Lb) ElementType added in v5.19.0

func (*Lb) ElementType() reflect.Type

func (*Lb) ToLbOutput added in v5.19.0

func (i *Lb) ToLbOutput() LbOutput

func (*Lb) ToLbOutputWithContext added in v5.19.0

func (i *Lb) ToLbOutputWithContext(ctx context.Context) LbOutput

type LbArgs added in v5.19.0

type LbArgs struct {
	// The health check path of the load balancer. Default value "/".
	HealthCheckPath pulumi.StringPtrInput
	// The instance port the load balancer will connect.
	InstancePort  pulumi.IntInput
	IpAddressType pulumi.StringPtrInput
	// The name of the Lightsail load balancer.
	Name pulumi.StringPtrInput
	// A map of tags to assign to the resource. To create a key-only tag, use an empty string as the value. 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 Lb resource.

func (LbArgs) ElementType added in v5.19.0

func (LbArgs) ElementType() reflect.Type

type LbArray added in v5.19.0

type LbArray []LbInput

func (LbArray) ElementType added in v5.19.0

func (LbArray) ElementType() reflect.Type

func (LbArray) ToLbArrayOutput added in v5.19.0

func (i LbArray) ToLbArrayOutput() LbArrayOutput

func (LbArray) ToLbArrayOutputWithContext added in v5.19.0

func (i LbArray) ToLbArrayOutputWithContext(ctx context.Context) LbArrayOutput

type LbArrayInput added in v5.19.0

type LbArrayInput interface {
	pulumi.Input

	ToLbArrayOutput() LbArrayOutput
	ToLbArrayOutputWithContext(context.Context) LbArrayOutput
}

LbArrayInput is an input type that accepts LbArray and LbArrayOutput values. You can construct a concrete instance of `LbArrayInput` via:

LbArray{ LbArgs{...} }

type LbArrayOutput added in v5.19.0

type LbArrayOutput struct{ *pulumi.OutputState }

func (LbArrayOutput) ElementType added in v5.19.0

func (LbArrayOutput) ElementType() reflect.Type

func (LbArrayOutput) Index added in v5.19.0

func (LbArrayOutput) ToLbArrayOutput added in v5.19.0

func (o LbArrayOutput) ToLbArrayOutput() LbArrayOutput

func (LbArrayOutput) ToLbArrayOutputWithContext added in v5.19.0

func (o LbArrayOutput) ToLbArrayOutputWithContext(ctx context.Context) LbArrayOutput

type LbAttachment added in v5.19.0

type LbAttachment struct {
	pulumi.CustomResourceState

	// The name of the instance to attach to the load balancer.
	InstanceName pulumi.StringOutput `pulumi:"instanceName"`
	// The name of the Lightsail load balancer.
	LbName pulumi.StringOutput `pulumi:"lbName"`
}

Attaches a Lightsail Instance to a Lightsail Load Balancer.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-aws/sdk/v5/go/aws"
"github.com/pulumi/pulumi-aws/sdk/v5/go/aws/lightsail"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		available, err := aws.GetAvailabilityZones(ctx, &aws.GetAvailabilityZonesArgs{
			State: pulumi.StringRef("available"),
			Filters: []aws.GetAvailabilityZonesFilter{
				{
					Name: "opt-in-status",
					Values: []string{
						"opt-in-not-required",
					},
				},
			},
		}, nil)
		if err != nil {
			return err
		}
		testLb, err := lightsail.NewLb(ctx, "testLb", &lightsail.LbArgs{
			HealthCheckPath: pulumi.String("/"),
			InstancePort:    pulumi.Int(80),
			Tags: pulumi.StringMap{
				"foo": pulumi.String("bar"),
			},
		})
		if err != nil {
			return err
		}
		testInstance, err := lightsail.NewInstance(ctx, "testInstance", &lightsail.InstanceArgs{
			AvailabilityZone: *pulumi.String(available.Names[0]),
			BlueprintId:      pulumi.String("amazon_linux_2"),
			BundleId:         pulumi.String("nano_1_0"),
		})
		if err != nil {
			return err
		}
		_, err = lightsail.NewLbAttachment(ctx, "testLbAttachment", &lightsail.LbAttachmentArgs{
			LbName:       testLb.Name,
			InstanceName: testInstance.Name,
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

`aws_lightsail_lb_attachment` can be imported by using the name attribute, e.g.,

```sh

$ pulumi import aws:lightsail/lbAttachment:LbAttachment test example-load-balancer,example-instance

```

func GetLbAttachment added in v5.19.0

func GetLbAttachment(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *LbAttachmentState, opts ...pulumi.ResourceOption) (*LbAttachment, error)

GetLbAttachment gets an existing LbAttachment 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 NewLbAttachment added in v5.19.0

func NewLbAttachment(ctx *pulumi.Context,
	name string, args *LbAttachmentArgs, opts ...pulumi.ResourceOption) (*LbAttachment, error)

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

func (*LbAttachment) ElementType added in v5.19.0

func (*LbAttachment) ElementType() reflect.Type

func (*LbAttachment) ToLbAttachmentOutput added in v5.19.0

func (i *LbAttachment) ToLbAttachmentOutput() LbAttachmentOutput

func (*LbAttachment) ToLbAttachmentOutputWithContext added in v5.19.0

func (i *LbAttachment) ToLbAttachmentOutputWithContext(ctx context.Context) LbAttachmentOutput

type LbAttachmentArgs added in v5.19.0

type LbAttachmentArgs struct {
	// The name of the instance to attach to the load balancer.
	InstanceName pulumi.StringInput
	// The name of the Lightsail load balancer.
	LbName pulumi.StringInput
}

The set of arguments for constructing a LbAttachment resource.

func (LbAttachmentArgs) ElementType added in v5.19.0

func (LbAttachmentArgs) ElementType() reflect.Type

type LbAttachmentArray added in v5.19.0

type LbAttachmentArray []LbAttachmentInput

func (LbAttachmentArray) ElementType added in v5.19.0

func (LbAttachmentArray) ElementType() reflect.Type

func (LbAttachmentArray) ToLbAttachmentArrayOutput added in v5.19.0

func (i LbAttachmentArray) ToLbAttachmentArrayOutput() LbAttachmentArrayOutput

func (LbAttachmentArray) ToLbAttachmentArrayOutputWithContext added in v5.19.0

func (i LbAttachmentArray) ToLbAttachmentArrayOutputWithContext(ctx context.Context) LbAttachmentArrayOutput

type LbAttachmentArrayInput added in v5.19.0

type LbAttachmentArrayInput interface {
	pulumi.Input

	ToLbAttachmentArrayOutput() LbAttachmentArrayOutput
	ToLbAttachmentArrayOutputWithContext(context.Context) LbAttachmentArrayOutput
}

LbAttachmentArrayInput is an input type that accepts LbAttachmentArray and LbAttachmentArrayOutput values. You can construct a concrete instance of `LbAttachmentArrayInput` via:

LbAttachmentArray{ LbAttachmentArgs{...} }

type LbAttachmentArrayOutput added in v5.19.0

type LbAttachmentArrayOutput struct{ *pulumi.OutputState }

func (LbAttachmentArrayOutput) ElementType added in v5.19.0

func (LbAttachmentArrayOutput) ElementType() reflect.Type

func (LbAttachmentArrayOutput) Index added in v5.19.0

func (LbAttachmentArrayOutput) ToLbAttachmentArrayOutput added in v5.19.0

func (o LbAttachmentArrayOutput) ToLbAttachmentArrayOutput() LbAttachmentArrayOutput

func (LbAttachmentArrayOutput) ToLbAttachmentArrayOutputWithContext added in v5.19.0

func (o LbAttachmentArrayOutput) ToLbAttachmentArrayOutputWithContext(ctx context.Context) LbAttachmentArrayOutput

type LbAttachmentInput added in v5.19.0

type LbAttachmentInput interface {
	pulumi.Input

	ToLbAttachmentOutput() LbAttachmentOutput
	ToLbAttachmentOutputWithContext(ctx context.Context) LbAttachmentOutput
}

type LbAttachmentMap added in v5.19.0

type LbAttachmentMap map[string]LbAttachmentInput

func (LbAttachmentMap) ElementType added in v5.19.0

func (LbAttachmentMap) ElementType() reflect.Type

func (LbAttachmentMap) ToLbAttachmentMapOutput added in v5.19.0

func (i LbAttachmentMap) ToLbAttachmentMapOutput() LbAttachmentMapOutput

func (LbAttachmentMap) ToLbAttachmentMapOutputWithContext added in v5.19.0

func (i LbAttachmentMap) ToLbAttachmentMapOutputWithContext(ctx context.Context) LbAttachmentMapOutput

type LbAttachmentMapInput added in v5.19.0

type LbAttachmentMapInput interface {
	pulumi.Input

	ToLbAttachmentMapOutput() LbAttachmentMapOutput
	ToLbAttachmentMapOutputWithContext(context.Context) LbAttachmentMapOutput
}

LbAttachmentMapInput is an input type that accepts LbAttachmentMap and LbAttachmentMapOutput values. You can construct a concrete instance of `LbAttachmentMapInput` via:

LbAttachmentMap{ "key": LbAttachmentArgs{...} }

type LbAttachmentMapOutput added in v5.19.0

type LbAttachmentMapOutput struct{ *pulumi.OutputState }

func (LbAttachmentMapOutput) ElementType added in v5.19.0

func (LbAttachmentMapOutput) ElementType() reflect.Type

func (LbAttachmentMapOutput) MapIndex added in v5.19.0

func (LbAttachmentMapOutput) ToLbAttachmentMapOutput added in v5.19.0

func (o LbAttachmentMapOutput) ToLbAttachmentMapOutput() LbAttachmentMapOutput

func (LbAttachmentMapOutput) ToLbAttachmentMapOutputWithContext added in v5.19.0

func (o LbAttachmentMapOutput) ToLbAttachmentMapOutputWithContext(ctx context.Context) LbAttachmentMapOutput

type LbAttachmentOutput added in v5.19.0

type LbAttachmentOutput struct{ *pulumi.OutputState }

func (LbAttachmentOutput) ElementType added in v5.19.0

func (LbAttachmentOutput) ElementType() reflect.Type

func (LbAttachmentOutput) InstanceName added in v5.19.0

func (o LbAttachmentOutput) InstanceName() pulumi.StringOutput

The name of the instance to attach to the load balancer.

func (LbAttachmentOutput) LbName added in v5.19.0

The name of the Lightsail load balancer.

func (LbAttachmentOutput) ToLbAttachmentOutput added in v5.19.0

func (o LbAttachmentOutput) ToLbAttachmentOutput() LbAttachmentOutput

func (LbAttachmentOutput) ToLbAttachmentOutputWithContext added in v5.19.0

func (o LbAttachmentOutput) ToLbAttachmentOutputWithContext(ctx context.Context) LbAttachmentOutput

type LbAttachmentState added in v5.19.0

type LbAttachmentState struct {
	// The name of the instance to attach to the load balancer.
	InstanceName pulumi.StringPtrInput
	// The name of the Lightsail load balancer.
	LbName pulumi.StringPtrInput
}

func (LbAttachmentState) ElementType added in v5.19.0

func (LbAttachmentState) ElementType() reflect.Type

type LbCertificate added in v5.20.0

type LbCertificate struct {
	pulumi.CustomResourceState

	// The ARN of the lightsail certificate.
	Arn pulumi.StringOutput `pulumi:"arn"`
	// The timestamp when the instance was created.
	CreatedAt pulumi.StringOutput `pulumi:"createdAt"`
	// The domain name (e.g., example.com) for your SSL/TLS certificate.
	DomainName              pulumi.StringOutput                            `pulumi:"domainName"`
	DomainValidationRecords LbCertificateDomainValidationRecordArrayOutput `pulumi:"domainValidationRecords"`
	// The load balancer name where you want to create the SSL/TLS certificate.
	LbName pulumi.StringOutput `pulumi:"lbName"`
	// The SSL/TLS certificate name.
	Name pulumi.StringOutput `pulumi:"name"`
	// Set of domains that should be SANs in the issued certificate. `domainName` attribute is automatically added as a Subject Alternative Name.
	SubjectAlternativeNames pulumi.StringArrayOutput `pulumi:"subjectAlternativeNames"`
	SupportCode             pulumi.StringOutput      `pulumi:"supportCode"`
}

Creates a Lightsail load balancer Certificate resource.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-aws/sdk/v5/go/aws/lightsail"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		testLb, err := lightsail.NewLb(ctx, "testLb", &lightsail.LbArgs{
			HealthCheckPath: pulumi.String("/"),
			InstancePort:    pulumi.Int(80),
			Tags: pulumi.StringMap{
				"foo": pulumi.String("bar"),
			},
		})
		if err != nil {
			return err
		}
		_, err = lightsail.NewLbCertificate(ctx, "testLbCertificate", &lightsail.LbCertificateArgs{
			LbName:     testLb.ID(),
			DomainName: pulumi.String("test.com"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

`aws_lightsail_lb_certificate` can be imported by using the id attribute, e.g.,

```sh

$ pulumi import aws:lightsail/lbCertificate:LbCertificate test example-load-balancer,example-load-balancer-certificate

```

func GetLbCertificate added in v5.20.0

func GetLbCertificate(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *LbCertificateState, opts ...pulumi.ResourceOption) (*LbCertificate, error)

GetLbCertificate gets an existing LbCertificate 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 NewLbCertificate added in v5.20.0

func NewLbCertificate(ctx *pulumi.Context,
	name string, args *LbCertificateArgs, opts ...pulumi.ResourceOption) (*LbCertificate, error)

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

func (*LbCertificate) ElementType added in v5.20.0

func (*LbCertificate) ElementType() reflect.Type

func (*LbCertificate) ToLbCertificateOutput added in v5.20.0

func (i *LbCertificate) ToLbCertificateOutput() LbCertificateOutput

func (*LbCertificate) ToLbCertificateOutputWithContext added in v5.20.0

func (i *LbCertificate) ToLbCertificateOutputWithContext(ctx context.Context) LbCertificateOutput

type LbCertificateArgs added in v5.20.0

type LbCertificateArgs struct {
	// The domain name (e.g., example.com) for your SSL/TLS certificate.
	DomainName pulumi.StringPtrInput
	// The load balancer name where you want to create the SSL/TLS certificate.
	LbName pulumi.StringInput
	// The SSL/TLS certificate name.
	Name pulumi.StringPtrInput
	// Set of domains that should be SANs in the issued certificate. `domainName` attribute is automatically added as a Subject Alternative Name.
	SubjectAlternativeNames pulumi.StringArrayInput
}

The set of arguments for constructing a LbCertificate resource.

func (LbCertificateArgs) ElementType added in v5.20.0

func (LbCertificateArgs) ElementType() reflect.Type

type LbCertificateArray added in v5.20.0

type LbCertificateArray []LbCertificateInput

func (LbCertificateArray) ElementType added in v5.20.0

func (LbCertificateArray) ElementType() reflect.Type

func (LbCertificateArray) ToLbCertificateArrayOutput added in v5.20.0

func (i LbCertificateArray) ToLbCertificateArrayOutput() LbCertificateArrayOutput

func (LbCertificateArray) ToLbCertificateArrayOutputWithContext added in v5.20.0

func (i LbCertificateArray) ToLbCertificateArrayOutputWithContext(ctx context.Context) LbCertificateArrayOutput

type LbCertificateArrayInput added in v5.20.0

type LbCertificateArrayInput interface {
	pulumi.Input

	ToLbCertificateArrayOutput() LbCertificateArrayOutput
	ToLbCertificateArrayOutputWithContext(context.Context) LbCertificateArrayOutput
}

LbCertificateArrayInput is an input type that accepts LbCertificateArray and LbCertificateArrayOutput values. You can construct a concrete instance of `LbCertificateArrayInput` via:

LbCertificateArray{ LbCertificateArgs{...} }

type LbCertificateArrayOutput added in v5.20.0

type LbCertificateArrayOutput struct{ *pulumi.OutputState }

func (LbCertificateArrayOutput) ElementType added in v5.20.0

func (LbCertificateArrayOutput) ElementType() reflect.Type

func (LbCertificateArrayOutput) Index added in v5.20.0

func (LbCertificateArrayOutput) ToLbCertificateArrayOutput added in v5.20.0

func (o LbCertificateArrayOutput) ToLbCertificateArrayOutput() LbCertificateArrayOutput

func (LbCertificateArrayOutput) ToLbCertificateArrayOutputWithContext added in v5.20.0

func (o LbCertificateArrayOutput) ToLbCertificateArrayOutputWithContext(ctx context.Context) LbCertificateArrayOutput

type LbCertificateAttachment added in v5.20.0

type LbCertificateAttachment struct {
	pulumi.CustomResourceState

	// The name of your SSL/TLS certificate.
	CertificateName pulumi.StringOutput `pulumi:"certificateName"`
	// The name of the load balancer to which you want to associate the SSL/TLS certificate.
	LbName pulumi.StringOutput `pulumi:"lbName"`
}

Attaches a Lightsail Load Balancer Certificate to a Lightsail Load Balancer.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-aws/sdk/v5/go/aws/lightsail"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		testLb, err := lightsail.NewLb(ctx, "testLb", &lightsail.LbArgs{
			HealthCheckPath: pulumi.String("/"),
			InstancePort:    pulumi.Int(80),
			Tags: pulumi.StringMap{
				"foo": pulumi.String("bar"),
			},
		})
		if err != nil {
			return err
		}
		testLbCertificate, err := lightsail.NewLbCertificate(ctx, "testLbCertificate", &lightsail.LbCertificateArgs{
			LbName:     testLb.ID(),
			DomainName: pulumi.String("test.com"),
		})
		if err != nil {
			return err
		}
		_, err = lightsail.NewLbCertificateAttachment(ctx, "testLbCertificateAttachment", &lightsail.LbCertificateAttachmentArgs{
			LbName:          testLb.Name,
			CertificateName: testLbCertificate.Name,
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

`aws_lightsail_lb_certificate_attachment` can be imported by using the name attribute, e.g.,

```sh

$ pulumi import aws:lightsail/lbCertificateAttachment:LbCertificateAttachment test example-load-balancer,example-certificate

```

func GetLbCertificateAttachment added in v5.20.0

func GetLbCertificateAttachment(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *LbCertificateAttachmentState, opts ...pulumi.ResourceOption) (*LbCertificateAttachment, error)

GetLbCertificateAttachment gets an existing LbCertificateAttachment 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 NewLbCertificateAttachment added in v5.20.0

func NewLbCertificateAttachment(ctx *pulumi.Context,
	name string, args *LbCertificateAttachmentArgs, opts ...pulumi.ResourceOption) (*LbCertificateAttachment, error)

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

func (*LbCertificateAttachment) ElementType added in v5.20.0

func (*LbCertificateAttachment) ElementType() reflect.Type

func (*LbCertificateAttachment) ToLbCertificateAttachmentOutput added in v5.20.0

func (i *LbCertificateAttachment) ToLbCertificateAttachmentOutput() LbCertificateAttachmentOutput

func (*LbCertificateAttachment) ToLbCertificateAttachmentOutputWithContext added in v5.20.0

func (i *LbCertificateAttachment) ToLbCertificateAttachmentOutputWithContext(ctx context.Context) LbCertificateAttachmentOutput

type LbCertificateAttachmentArgs added in v5.20.0

type LbCertificateAttachmentArgs struct {
	// The name of your SSL/TLS certificate.
	CertificateName pulumi.StringInput
	// The name of the load balancer to which you want to associate the SSL/TLS certificate.
	LbName pulumi.StringInput
}

The set of arguments for constructing a LbCertificateAttachment resource.

func (LbCertificateAttachmentArgs) ElementType added in v5.20.0

type LbCertificateAttachmentArray added in v5.20.0

type LbCertificateAttachmentArray []LbCertificateAttachmentInput

func (LbCertificateAttachmentArray) ElementType added in v5.20.0

func (LbCertificateAttachmentArray) ToLbCertificateAttachmentArrayOutput added in v5.20.0

func (i LbCertificateAttachmentArray) ToLbCertificateAttachmentArrayOutput() LbCertificateAttachmentArrayOutput

func (LbCertificateAttachmentArray) ToLbCertificateAttachmentArrayOutputWithContext added in v5.20.0

func (i LbCertificateAttachmentArray) ToLbCertificateAttachmentArrayOutputWithContext(ctx context.Context) LbCertificateAttachmentArrayOutput

type LbCertificateAttachmentArrayInput added in v5.20.0

type LbCertificateAttachmentArrayInput interface {
	pulumi.Input

	ToLbCertificateAttachmentArrayOutput() LbCertificateAttachmentArrayOutput
	ToLbCertificateAttachmentArrayOutputWithContext(context.Context) LbCertificateAttachmentArrayOutput
}

LbCertificateAttachmentArrayInput is an input type that accepts LbCertificateAttachmentArray and LbCertificateAttachmentArrayOutput values. You can construct a concrete instance of `LbCertificateAttachmentArrayInput` via:

LbCertificateAttachmentArray{ LbCertificateAttachmentArgs{...} }

type LbCertificateAttachmentArrayOutput added in v5.20.0

type LbCertificateAttachmentArrayOutput struct{ *pulumi.OutputState }

func (LbCertificateAttachmentArrayOutput) ElementType added in v5.20.0

func (LbCertificateAttachmentArrayOutput) Index added in v5.20.0

func (LbCertificateAttachmentArrayOutput) ToLbCertificateAttachmentArrayOutput added in v5.20.0

func (o LbCertificateAttachmentArrayOutput) ToLbCertificateAttachmentArrayOutput() LbCertificateAttachmentArrayOutput

func (LbCertificateAttachmentArrayOutput) ToLbCertificateAttachmentArrayOutputWithContext added in v5.20.0

func (o LbCertificateAttachmentArrayOutput) ToLbCertificateAttachmentArrayOutputWithContext(ctx context.Context) LbCertificateAttachmentArrayOutput

type LbCertificateAttachmentInput added in v5.20.0

type LbCertificateAttachmentInput interface {
	pulumi.Input

	ToLbCertificateAttachmentOutput() LbCertificateAttachmentOutput
	ToLbCertificateAttachmentOutputWithContext(ctx context.Context) LbCertificateAttachmentOutput
}

type LbCertificateAttachmentMap added in v5.20.0

type LbCertificateAttachmentMap map[string]LbCertificateAttachmentInput

func (LbCertificateAttachmentMap) ElementType added in v5.20.0

func (LbCertificateAttachmentMap) ElementType() reflect.Type

func (LbCertificateAttachmentMap) ToLbCertificateAttachmentMapOutput added in v5.20.0

func (i LbCertificateAttachmentMap) ToLbCertificateAttachmentMapOutput() LbCertificateAttachmentMapOutput

func (LbCertificateAttachmentMap) ToLbCertificateAttachmentMapOutputWithContext added in v5.20.0

func (i LbCertificateAttachmentMap) ToLbCertificateAttachmentMapOutputWithContext(ctx context.Context) LbCertificateAttachmentMapOutput

type LbCertificateAttachmentMapInput added in v5.20.0

type LbCertificateAttachmentMapInput interface {
	pulumi.Input

	ToLbCertificateAttachmentMapOutput() LbCertificateAttachmentMapOutput
	ToLbCertificateAttachmentMapOutputWithContext(context.Context) LbCertificateAttachmentMapOutput
}

LbCertificateAttachmentMapInput is an input type that accepts LbCertificateAttachmentMap and LbCertificateAttachmentMapOutput values. You can construct a concrete instance of `LbCertificateAttachmentMapInput` via:

LbCertificateAttachmentMap{ "key": LbCertificateAttachmentArgs{...} }

type LbCertificateAttachmentMapOutput added in v5.20.0

type LbCertificateAttachmentMapOutput struct{ *pulumi.OutputState }

func (LbCertificateAttachmentMapOutput) ElementType added in v5.20.0

func (LbCertificateAttachmentMapOutput) MapIndex added in v5.20.0

func (LbCertificateAttachmentMapOutput) ToLbCertificateAttachmentMapOutput added in v5.20.0

func (o LbCertificateAttachmentMapOutput) ToLbCertificateAttachmentMapOutput() LbCertificateAttachmentMapOutput

func (LbCertificateAttachmentMapOutput) ToLbCertificateAttachmentMapOutputWithContext added in v5.20.0

func (o LbCertificateAttachmentMapOutput) ToLbCertificateAttachmentMapOutputWithContext(ctx context.Context) LbCertificateAttachmentMapOutput

type LbCertificateAttachmentOutput added in v5.20.0

type LbCertificateAttachmentOutput struct{ *pulumi.OutputState }

func (LbCertificateAttachmentOutput) CertificateName added in v5.20.0

The name of your SSL/TLS certificate.

func (LbCertificateAttachmentOutput) ElementType added in v5.20.0

func (LbCertificateAttachmentOutput) LbName added in v5.20.0

The name of the load balancer to which you want to associate the SSL/TLS certificate.

func (LbCertificateAttachmentOutput) ToLbCertificateAttachmentOutput added in v5.20.0

func (o LbCertificateAttachmentOutput) ToLbCertificateAttachmentOutput() LbCertificateAttachmentOutput

func (LbCertificateAttachmentOutput) ToLbCertificateAttachmentOutputWithContext added in v5.20.0

func (o LbCertificateAttachmentOutput) ToLbCertificateAttachmentOutputWithContext(ctx context.Context) LbCertificateAttachmentOutput

type LbCertificateAttachmentState added in v5.20.0

type LbCertificateAttachmentState struct {
	// The name of your SSL/TLS certificate.
	CertificateName pulumi.StringPtrInput
	// The name of the load balancer to which you want to associate the SSL/TLS certificate.
	LbName pulumi.StringPtrInput
}

func (LbCertificateAttachmentState) ElementType added in v5.20.0

type LbCertificateDomainValidationRecord added in v5.20.0

type LbCertificateDomainValidationRecord struct {
	// The domain name (e.g., example.com) for your SSL/TLS certificate.
	DomainName          *string `pulumi:"domainName"`
	ResourceRecordName  *string `pulumi:"resourceRecordName"`
	ResourceRecordType  *string `pulumi:"resourceRecordType"`
	ResourceRecordValue *string `pulumi:"resourceRecordValue"`
}

type LbCertificateDomainValidationRecordArgs added in v5.20.0

type LbCertificateDomainValidationRecordArgs struct {
	// The domain name (e.g., example.com) for your SSL/TLS certificate.
	DomainName          pulumi.StringPtrInput `pulumi:"domainName"`
	ResourceRecordName  pulumi.StringPtrInput `pulumi:"resourceRecordName"`
	ResourceRecordType  pulumi.StringPtrInput `pulumi:"resourceRecordType"`
	ResourceRecordValue pulumi.StringPtrInput `pulumi:"resourceRecordValue"`
}

func (LbCertificateDomainValidationRecordArgs) ElementType added in v5.20.0

func (LbCertificateDomainValidationRecordArgs) ToLbCertificateDomainValidationRecordOutput added in v5.20.0

func (i LbCertificateDomainValidationRecordArgs) ToLbCertificateDomainValidationRecordOutput() LbCertificateDomainValidationRecordOutput

func (LbCertificateDomainValidationRecordArgs) ToLbCertificateDomainValidationRecordOutputWithContext added in v5.20.0

func (i LbCertificateDomainValidationRecordArgs) ToLbCertificateDomainValidationRecordOutputWithContext(ctx context.Context) LbCertificateDomainValidationRecordOutput

type LbCertificateDomainValidationRecordArray added in v5.20.0

type LbCertificateDomainValidationRecordArray []LbCertificateDomainValidationRecordInput

func (LbCertificateDomainValidationRecordArray) ElementType added in v5.20.0

func (LbCertificateDomainValidationRecordArray) ToLbCertificateDomainValidationRecordArrayOutput added in v5.20.0

func (i LbCertificateDomainValidationRecordArray) ToLbCertificateDomainValidationRecordArrayOutput() LbCertificateDomainValidationRecordArrayOutput

func (LbCertificateDomainValidationRecordArray) ToLbCertificateDomainValidationRecordArrayOutputWithContext added in v5.20.0

func (i LbCertificateDomainValidationRecordArray) ToLbCertificateDomainValidationRecordArrayOutputWithContext(ctx context.Context) LbCertificateDomainValidationRecordArrayOutput

type LbCertificateDomainValidationRecordArrayInput added in v5.20.0

type LbCertificateDomainValidationRecordArrayInput interface {
	pulumi.Input

	ToLbCertificateDomainValidationRecordArrayOutput() LbCertificateDomainValidationRecordArrayOutput
	ToLbCertificateDomainValidationRecordArrayOutputWithContext(context.Context) LbCertificateDomainValidationRecordArrayOutput
}

LbCertificateDomainValidationRecordArrayInput is an input type that accepts LbCertificateDomainValidationRecordArray and LbCertificateDomainValidationRecordArrayOutput values. You can construct a concrete instance of `LbCertificateDomainValidationRecordArrayInput` via:

LbCertificateDomainValidationRecordArray{ LbCertificateDomainValidationRecordArgs{...} }

type LbCertificateDomainValidationRecordArrayOutput added in v5.20.0

type LbCertificateDomainValidationRecordArrayOutput struct{ *pulumi.OutputState }

func (LbCertificateDomainValidationRecordArrayOutput) ElementType added in v5.20.0

func (LbCertificateDomainValidationRecordArrayOutput) Index added in v5.20.0

func (LbCertificateDomainValidationRecordArrayOutput) ToLbCertificateDomainValidationRecordArrayOutput added in v5.20.0

func (o LbCertificateDomainValidationRecordArrayOutput) ToLbCertificateDomainValidationRecordArrayOutput() LbCertificateDomainValidationRecordArrayOutput

func (LbCertificateDomainValidationRecordArrayOutput) ToLbCertificateDomainValidationRecordArrayOutputWithContext added in v5.20.0

func (o LbCertificateDomainValidationRecordArrayOutput) ToLbCertificateDomainValidationRecordArrayOutputWithContext(ctx context.Context) LbCertificateDomainValidationRecordArrayOutput

type LbCertificateDomainValidationRecordInput added in v5.20.0

type LbCertificateDomainValidationRecordInput interface {
	pulumi.Input

	ToLbCertificateDomainValidationRecordOutput() LbCertificateDomainValidationRecordOutput
	ToLbCertificateDomainValidationRecordOutputWithContext(context.Context) LbCertificateDomainValidationRecordOutput
}

LbCertificateDomainValidationRecordInput is an input type that accepts LbCertificateDomainValidationRecordArgs and LbCertificateDomainValidationRecordOutput values. You can construct a concrete instance of `LbCertificateDomainValidationRecordInput` via:

LbCertificateDomainValidationRecordArgs{...}

type LbCertificateDomainValidationRecordOutput added in v5.20.0

type LbCertificateDomainValidationRecordOutput struct{ *pulumi.OutputState }

func (LbCertificateDomainValidationRecordOutput) DomainName added in v5.20.0

The domain name (e.g., example.com) for your SSL/TLS certificate.

func (LbCertificateDomainValidationRecordOutput) ElementType added in v5.20.0

func (LbCertificateDomainValidationRecordOutput) ResourceRecordName added in v5.20.0

func (LbCertificateDomainValidationRecordOutput) ResourceRecordType added in v5.20.0

func (LbCertificateDomainValidationRecordOutput) ResourceRecordValue added in v5.20.0

func (LbCertificateDomainValidationRecordOutput) ToLbCertificateDomainValidationRecordOutput added in v5.20.0

func (o LbCertificateDomainValidationRecordOutput) ToLbCertificateDomainValidationRecordOutput() LbCertificateDomainValidationRecordOutput

func (LbCertificateDomainValidationRecordOutput) ToLbCertificateDomainValidationRecordOutputWithContext added in v5.20.0

func (o LbCertificateDomainValidationRecordOutput) ToLbCertificateDomainValidationRecordOutputWithContext(ctx context.Context) LbCertificateDomainValidationRecordOutput

type LbCertificateInput added in v5.20.0

type LbCertificateInput interface {
	pulumi.Input

	ToLbCertificateOutput() LbCertificateOutput
	ToLbCertificateOutputWithContext(ctx context.Context) LbCertificateOutput
}

type LbCertificateMap added in v5.20.0

type LbCertificateMap map[string]LbCertificateInput

func (LbCertificateMap) ElementType added in v5.20.0

func (LbCertificateMap) ElementType() reflect.Type

func (LbCertificateMap) ToLbCertificateMapOutput added in v5.20.0

func (i LbCertificateMap) ToLbCertificateMapOutput() LbCertificateMapOutput

func (LbCertificateMap) ToLbCertificateMapOutputWithContext added in v5.20.0

func (i LbCertificateMap) ToLbCertificateMapOutputWithContext(ctx context.Context) LbCertificateMapOutput

type LbCertificateMapInput added in v5.20.0

type LbCertificateMapInput interface {
	pulumi.Input

	ToLbCertificateMapOutput() LbCertificateMapOutput
	ToLbCertificateMapOutputWithContext(context.Context) LbCertificateMapOutput
}

LbCertificateMapInput is an input type that accepts LbCertificateMap and LbCertificateMapOutput values. You can construct a concrete instance of `LbCertificateMapInput` via:

LbCertificateMap{ "key": LbCertificateArgs{...} }

type LbCertificateMapOutput added in v5.20.0

type LbCertificateMapOutput struct{ *pulumi.OutputState }

func (LbCertificateMapOutput) ElementType added in v5.20.0

func (LbCertificateMapOutput) ElementType() reflect.Type

func (LbCertificateMapOutput) MapIndex added in v5.20.0

func (LbCertificateMapOutput) ToLbCertificateMapOutput added in v5.20.0

func (o LbCertificateMapOutput) ToLbCertificateMapOutput() LbCertificateMapOutput

func (LbCertificateMapOutput) ToLbCertificateMapOutputWithContext added in v5.20.0

func (o LbCertificateMapOutput) ToLbCertificateMapOutputWithContext(ctx context.Context) LbCertificateMapOutput

type LbCertificateOutput added in v5.20.0

type LbCertificateOutput struct{ *pulumi.OutputState }

func (LbCertificateOutput) Arn added in v5.20.0

The ARN of the lightsail certificate.

func (LbCertificateOutput) CreatedAt added in v5.20.0

func (o LbCertificateOutput) CreatedAt() pulumi.StringOutput

The timestamp when the instance was created.

func (LbCertificateOutput) DomainName added in v5.20.0

func (o LbCertificateOutput) DomainName() pulumi.StringOutput

The domain name (e.g., example.com) for your SSL/TLS certificate.

func (LbCertificateOutput) DomainValidationRecords added in v5.20.0

func (LbCertificateOutput) ElementType added in v5.20.0

func (LbCertificateOutput) ElementType() reflect.Type

func (LbCertificateOutput) LbName added in v5.20.0

The load balancer name where you want to create the SSL/TLS certificate.

func (LbCertificateOutput) Name added in v5.20.0

The SSL/TLS certificate name.

func (LbCertificateOutput) SubjectAlternativeNames added in v5.20.0

func (o LbCertificateOutput) SubjectAlternativeNames() pulumi.StringArrayOutput

Set of domains that should be SANs in the issued certificate. `domainName` attribute is automatically added as a Subject Alternative Name.

func (LbCertificateOutput) SupportCode added in v5.20.0

func (o LbCertificateOutput) SupportCode() pulumi.StringOutput

func (LbCertificateOutput) ToLbCertificateOutput added in v5.20.0

func (o LbCertificateOutput) ToLbCertificateOutput() LbCertificateOutput

func (LbCertificateOutput) ToLbCertificateOutputWithContext added in v5.20.0

func (o LbCertificateOutput) ToLbCertificateOutputWithContext(ctx context.Context) LbCertificateOutput

type LbCertificateState added in v5.20.0

type LbCertificateState struct {
	// The ARN of the lightsail certificate.
	Arn pulumi.StringPtrInput
	// The timestamp when the instance was created.
	CreatedAt pulumi.StringPtrInput
	// The domain name (e.g., example.com) for your SSL/TLS certificate.
	DomainName              pulumi.StringPtrInput
	DomainValidationRecords LbCertificateDomainValidationRecordArrayInput
	// The load balancer name where you want to create the SSL/TLS certificate.
	LbName pulumi.StringPtrInput
	// The SSL/TLS certificate name.
	Name pulumi.StringPtrInput
	// Set of domains that should be SANs in the issued certificate. `domainName` attribute is automatically added as a Subject Alternative Name.
	SubjectAlternativeNames pulumi.StringArrayInput
	SupportCode             pulumi.StringPtrInput
}

func (LbCertificateState) ElementType added in v5.20.0

func (LbCertificateState) ElementType() reflect.Type

type LbHttpsRedirectionPolicy added in v5.21.0

type LbHttpsRedirectionPolicy struct {
	pulumi.CustomResourceState

	// The Https Redirection state of the load balancer. `true` to activate http to https redirection or `false` to deactivate http to https redirection.
	Enabled pulumi.BoolOutput `pulumi:"enabled"`
	// The name of the load balancer to which you want to enable http to https redirection.
	LbName pulumi.StringOutput `pulumi:"lbName"`
}

Configures Https Redirection for a Lightsail Load Balancer. A valid Certificate must be attached to the load balancer in order to enable https redirection.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-aws/sdk/v5/go/aws/lightsail"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		testLb, err := lightsail.NewLb(ctx, "testLb", &lightsail.LbArgs{
			HealthCheckPath: pulumi.String("/"),
			InstancePort:    pulumi.Int(80),
			Tags: pulumi.StringMap{
				"foo": pulumi.String("bar"),
			},
		})
		if err != nil {
			return err
		}
		testLbCertificate, err := lightsail.NewLbCertificate(ctx, "testLbCertificate", &lightsail.LbCertificateArgs{
			LbName:     testLb.ID(),
			DomainName: pulumi.String("test.com"),
		})
		if err != nil {
			return err
		}
		_, err = lightsail.NewLbCertificateAttachment(ctx, "testLbCertificateAttachment", &lightsail.LbCertificateAttachmentArgs{
			LbName:          testLb.Name,
			CertificateName: testLbCertificate.Name,
		})
		if err != nil {
			return err
		}
		_, err = lightsail.NewLbHttpsRedirectionPolicy(ctx, "testLbHttpsRedirectionPolicy", &lightsail.LbHttpsRedirectionPolicyArgs{
			LbName:  testLb.Name,
			Enabled: pulumi.Bool(true),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

`aws_lightsail_lb_https_redirection_policy` can be imported by using the `lb_name` attribute, e.g.,

```sh

$ pulumi import aws:lightsail/lbHttpsRedirectionPolicy:LbHttpsRedirectionPolicy test example-load-balancer

```

func GetLbHttpsRedirectionPolicy added in v5.21.0

func GetLbHttpsRedirectionPolicy(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *LbHttpsRedirectionPolicyState, opts ...pulumi.ResourceOption) (*LbHttpsRedirectionPolicy, error)

GetLbHttpsRedirectionPolicy gets an existing LbHttpsRedirectionPolicy 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 NewLbHttpsRedirectionPolicy added in v5.21.0

func NewLbHttpsRedirectionPolicy(ctx *pulumi.Context,
	name string, args *LbHttpsRedirectionPolicyArgs, opts ...pulumi.ResourceOption) (*LbHttpsRedirectionPolicy, error)

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

func (*LbHttpsRedirectionPolicy) ElementType added in v5.21.0

func (*LbHttpsRedirectionPolicy) ElementType() reflect.Type

func (*LbHttpsRedirectionPolicy) ToLbHttpsRedirectionPolicyOutput added in v5.21.0

func (i *LbHttpsRedirectionPolicy) ToLbHttpsRedirectionPolicyOutput() LbHttpsRedirectionPolicyOutput

func (*LbHttpsRedirectionPolicy) ToLbHttpsRedirectionPolicyOutputWithContext added in v5.21.0

func (i *LbHttpsRedirectionPolicy) ToLbHttpsRedirectionPolicyOutputWithContext(ctx context.Context) LbHttpsRedirectionPolicyOutput

type LbHttpsRedirectionPolicyArgs added in v5.21.0

type LbHttpsRedirectionPolicyArgs struct {
	// The Https Redirection state of the load balancer. `true` to activate http to https redirection or `false` to deactivate http to https redirection.
	Enabled pulumi.BoolInput
	// The name of the load balancer to which you want to enable http to https redirection.
	LbName pulumi.StringInput
}

The set of arguments for constructing a LbHttpsRedirectionPolicy resource.

func (LbHttpsRedirectionPolicyArgs) ElementType added in v5.21.0

type LbHttpsRedirectionPolicyArray added in v5.21.0

type LbHttpsRedirectionPolicyArray []LbHttpsRedirectionPolicyInput

func (LbHttpsRedirectionPolicyArray) ElementType added in v5.21.0

func (LbHttpsRedirectionPolicyArray) ToLbHttpsRedirectionPolicyArrayOutput added in v5.21.0

func (i LbHttpsRedirectionPolicyArray) ToLbHttpsRedirectionPolicyArrayOutput() LbHttpsRedirectionPolicyArrayOutput

func (LbHttpsRedirectionPolicyArray) ToLbHttpsRedirectionPolicyArrayOutputWithContext added in v5.21.0

func (i LbHttpsRedirectionPolicyArray) ToLbHttpsRedirectionPolicyArrayOutputWithContext(ctx context.Context) LbHttpsRedirectionPolicyArrayOutput

type LbHttpsRedirectionPolicyArrayInput added in v5.21.0

type LbHttpsRedirectionPolicyArrayInput interface {
	pulumi.Input

	ToLbHttpsRedirectionPolicyArrayOutput() LbHttpsRedirectionPolicyArrayOutput
	ToLbHttpsRedirectionPolicyArrayOutputWithContext(context.Context) LbHttpsRedirectionPolicyArrayOutput
}

LbHttpsRedirectionPolicyArrayInput is an input type that accepts LbHttpsRedirectionPolicyArray and LbHttpsRedirectionPolicyArrayOutput values. You can construct a concrete instance of `LbHttpsRedirectionPolicyArrayInput` via:

LbHttpsRedirectionPolicyArray{ LbHttpsRedirectionPolicyArgs{...} }

type LbHttpsRedirectionPolicyArrayOutput added in v5.21.0

type LbHttpsRedirectionPolicyArrayOutput struct{ *pulumi.OutputState }

func (LbHttpsRedirectionPolicyArrayOutput) ElementType added in v5.21.0

func (LbHttpsRedirectionPolicyArrayOutput) Index added in v5.21.0

func (LbHttpsRedirectionPolicyArrayOutput) ToLbHttpsRedirectionPolicyArrayOutput added in v5.21.0

func (o LbHttpsRedirectionPolicyArrayOutput) ToLbHttpsRedirectionPolicyArrayOutput() LbHttpsRedirectionPolicyArrayOutput

func (LbHttpsRedirectionPolicyArrayOutput) ToLbHttpsRedirectionPolicyArrayOutputWithContext added in v5.21.0

func (o LbHttpsRedirectionPolicyArrayOutput) ToLbHttpsRedirectionPolicyArrayOutputWithContext(ctx context.Context) LbHttpsRedirectionPolicyArrayOutput

type LbHttpsRedirectionPolicyInput added in v5.21.0

type LbHttpsRedirectionPolicyInput interface {
	pulumi.Input

	ToLbHttpsRedirectionPolicyOutput() LbHttpsRedirectionPolicyOutput
	ToLbHttpsRedirectionPolicyOutputWithContext(ctx context.Context) LbHttpsRedirectionPolicyOutput
}

type LbHttpsRedirectionPolicyMap added in v5.21.0

type LbHttpsRedirectionPolicyMap map[string]LbHttpsRedirectionPolicyInput

func (LbHttpsRedirectionPolicyMap) ElementType added in v5.21.0

func (LbHttpsRedirectionPolicyMap) ToLbHttpsRedirectionPolicyMapOutput added in v5.21.0

func (i LbHttpsRedirectionPolicyMap) ToLbHttpsRedirectionPolicyMapOutput() LbHttpsRedirectionPolicyMapOutput

func (LbHttpsRedirectionPolicyMap) ToLbHttpsRedirectionPolicyMapOutputWithContext added in v5.21.0

func (i LbHttpsRedirectionPolicyMap) ToLbHttpsRedirectionPolicyMapOutputWithContext(ctx context.Context) LbHttpsRedirectionPolicyMapOutput

type LbHttpsRedirectionPolicyMapInput added in v5.21.0

type LbHttpsRedirectionPolicyMapInput interface {
	pulumi.Input

	ToLbHttpsRedirectionPolicyMapOutput() LbHttpsRedirectionPolicyMapOutput
	ToLbHttpsRedirectionPolicyMapOutputWithContext(context.Context) LbHttpsRedirectionPolicyMapOutput
}

LbHttpsRedirectionPolicyMapInput is an input type that accepts LbHttpsRedirectionPolicyMap and LbHttpsRedirectionPolicyMapOutput values. You can construct a concrete instance of `LbHttpsRedirectionPolicyMapInput` via:

LbHttpsRedirectionPolicyMap{ "key": LbHttpsRedirectionPolicyArgs{...} }

type LbHttpsRedirectionPolicyMapOutput added in v5.21.0

type LbHttpsRedirectionPolicyMapOutput struct{ *pulumi.OutputState }

func (LbHttpsRedirectionPolicyMapOutput) ElementType added in v5.21.0

func (LbHttpsRedirectionPolicyMapOutput) MapIndex added in v5.21.0

func (LbHttpsRedirectionPolicyMapOutput) ToLbHttpsRedirectionPolicyMapOutput added in v5.21.0

func (o LbHttpsRedirectionPolicyMapOutput) ToLbHttpsRedirectionPolicyMapOutput() LbHttpsRedirectionPolicyMapOutput

func (LbHttpsRedirectionPolicyMapOutput) ToLbHttpsRedirectionPolicyMapOutputWithContext added in v5.21.0

func (o LbHttpsRedirectionPolicyMapOutput) ToLbHttpsRedirectionPolicyMapOutputWithContext(ctx context.Context) LbHttpsRedirectionPolicyMapOutput

type LbHttpsRedirectionPolicyOutput added in v5.21.0

type LbHttpsRedirectionPolicyOutput struct{ *pulumi.OutputState }

func (LbHttpsRedirectionPolicyOutput) ElementType added in v5.21.0

func (LbHttpsRedirectionPolicyOutput) Enabled added in v5.21.0

The Https Redirection state of the load balancer. `true` to activate http to https redirection or `false` to deactivate http to https redirection.

func (LbHttpsRedirectionPolicyOutput) LbName added in v5.21.0

The name of the load balancer to which you want to enable http to https redirection.

func (LbHttpsRedirectionPolicyOutput) ToLbHttpsRedirectionPolicyOutput added in v5.21.0

func (o LbHttpsRedirectionPolicyOutput) ToLbHttpsRedirectionPolicyOutput() LbHttpsRedirectionPolicyOutput

func (LbHttpsRedirectionPolicyOutput) ToLbHttpsRedirectionPolicyOutputWithContext added in v5.21.0

func (o LbHttpsRedirectionPolicyOutput) ToLbHttpsRedirectionPolicyOutputWithContext(ctx context.Context) LbHttpsRedirectionPolicyOutput

type LbHttpsRedirectionPolicyState added in v5.21.0

type LbHttpsRedirectionPolicyState struct {
	// The Https Redirection state of the load balancer. `true` to activate http to https redirection or `false` to deactivate http to https redirection.
	Enabled pulumi.BoolPtrInput
	// The name of the load balancer to which you want to enable http to https redirection.
	LbName pulumi.StringPtrInput
}

func (LbHttpsRedirectionPolicyState) ElementType added in v5.21.0

type LbInput added in v5.19.0

type LbInput interface {
	pulumi.Input

	ToLbOutput() LbOutput
	ToLbOutputWithContext(ctx context.Context) LbOutput
}

type LbMap added in v5.19.0

type LbMap map[string]LbInput

func (LbMap) ElementType added in v5.19.0

func (LbMap) ElementType() reflect.Type

func (LbMap) ToLbMapOutput added in v5.19.0

func (i LbMap) ToLbMapOutput() LbMapOutput

func (LbMap) ToLbMapOutputWithContext added in v5.19.0

func (i LbMap) ToLbMapOutputWithContext(ctx context.Context) LbMapOutput

type LbMapInput added in v5.19.0

type LbMapInput interface {
	pulumi.Input

	ToLbMapOutput() LbMapOutput
	ToLbMapOutputWithContext(context.Context) LbMapOutput
}

LbMapInput is an input type that accepts LbMap and LbMapOutput values. You can construct a concrete instance of `LbMapInput` via:

LbMap{ "key": LbArgs{...} }

type LbMapOutput added in v5.19.0

type LbMapOutput struct{ *pulumi.OutputState }

func (LbMapOutput) ElementType added in v5.19.0

func (LbMapOutput) ElementType() reflect.Type

func (LbMapOutput) MapIndex added in v5.19.0

func (o LbMapOutput) MapIndex(k pulumi.StringInput) LbOutput

func (LbMapOutput) ToLbMapOutput added in v5.19.0

func (o LbMapOutput) ToLbMapOutput() LbMapOutput

func (LbMapOutput) ToLbMapOutputWithContext added in v5.19.0

func (o LbMapOutput) ToLbMapOutputWithContext(ctx context.Context) LbMapOutput

type LbOutput added in v5.19.0

type LbOutput struct{ *pulumi.OutputState }

func (LbOutput) Arn added in v5.19.0

func (o LbOutput) Arn() pulumi.StringOutput

The ARN of the Lightsail load balancer.

func (LbOutput) CreatedAt added in v5.19.0

func (o LbOutput) CreatedAt() pulumi.StringOutput

The timestamp when the load balancer was created.

func (LbOutput) DnsName added in v5.19.0

func (o LbOutput) DnsName() pulumi.StringOutput

The DNS name of the load balancer.

func (LbOutput) ElementType added in v5.19.0

func (LbOutput) ElementType() reflect.Type

func (LbOutput) HealthCheckPath added in v5.19.0

func (o LbOutput) HealthCheckPath() pulumi.StringPtrOutput

The health check path of the load balancer. Default value "/".

func (LbOutput) InstancePort added in v5.19.0

func (o LbOutput) InstancePort() pulumi.IntOutput

The instance port the load balancer will connect.

func (LbOutput) IpAddressType added in v5.19.0

func (o LbOutput) IpAddressType() pulumi.StringPtrOutput

func (LbOutput) Name added in v5.19.0

func (o LbOutput) Name() pulumi.StringOutput

The name of the Lightsail load balancer.

func (LbOutput) Protocol added in v5.19.0

func (o LbOutput) Protocol() pulumi.StringOutput

The protocol of the load balancer.

func (LbOutput) PublicPorts added in v5.19.0

func (o LbOutput) PublicPorts() pulumi.IntArrayOutput

The public ports of the load balancer.

func (LbOutput) SupportCode added in v5.19.0

func (o LbOutput) SupportCode() pulumi.StringOutput

The support code for the database. Include this code in your email to support when you have questions about a database in Lightsail. This code enables our support team to look up your Lightsail information more easily.

func (LbOutput) Tags added in v5.19.0

func (o LbOutput) Tags() pulumi.StringMapOutput

A map of tags to assign to the resource. To create a key-only tag, use an empty string as the value. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.

func (LbOutput) TagsAll added in v5.19.0

func (o LbOutput) TagsAll() pulumi.StringMapOutput

A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.

func (LbOutput) ToLbOutput added in v5.19.0

func (o LbOutput) ToLbOutput() LbOutput

func (LbOutput) ToLbOutputWithContext added in v5.19.0

func (o LbOutput) ToLbOutputWithContext(ctx context.Context) LbOutput

type LbState added in v5.19.0

type LbState struct {
	// The ARN of the Lightsail load balancer.
	Arn pulumi.StringPtrInput
	// The timestamp when the load balancer was created.
	CreatedAt pulumi.StringPtrInput
	// The DNS name of the load balancer.
	DnsName pulumi.StringPtrInput
	// The health check path of the load balancer. Default value "/".
	HealthCheckPath pulumi.StringPtrInput
	// The instance port the load balancer will connect.
	InstancePort  pulumi.IntPtrInput
	IpAddressType pulumi.StringPtrInput
	// The name of the Lightsail load balancer.
	Name pulumi.StringPtrInput
	// The protocol of the load balancer.
	Protocol pulumi.StringPtrInput
	// The public ports of the load balancer.
	PublicPorts pulumi.IntArrayInput
	// The support code for the database. Include this code in your email to support when you have questions about a database in Lightsail. This code enables our support team to look up your Lightsail information more easily.
	SupportCode pulumi.StringPtrInput
	// A map of tags to assign to the resource. To create a key-only tag, use an empty string as the value. 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 `defaultTags` configuration block.
	TagsAll pulumi.StringMapInput
}

func (LbState) ElementType added in v5.19.0

func (LbState) ElementType() reflect.Type

type LbStickinessPolicy added in v5.20.0

type LbStickinessPolicy struct {
	pulumi.CustomResourceState

	// The cookie duration in seconds. This determines the length of the session stickiness.
	CookieDuration pulumi.IntOutput `pulumi:"cookieDuration"`
	// The Session Stickiness state of the load balancer. `true` to activate session stickiness or `false` to deactivate session stickiness.
	Enabled pulumi.BoolOutput `pulumi:"enabled"`
	// The name of the load balancer to which you want to enable session stickiness.
	LbName pulumi.StringOutput `pulumi:"lbName"`
}

Configures Session Stickiness for a Lightsail Load Balancer.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-aws/sdk/v5/go/aws/lightsail"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		testLb, err := lightsail.NewLb(ctx, "testLb", &lightsail.LbArgs{
			HealthCheckPath: pulumi.String("/"),
			InstancePort:    pulumi.Int(80),
			Tags: pulumi.StringMap{
				"foo": pulumi.String("bar"),
			},
		})
		if err != nil {
			return err
		}
		_, err = lightsail.NewLbStickinessPolicy(ctx, "testLbStickinessPolicy", &lightsail.LbStickinessPolicyArgs{
			LbName:         testLb.Name,
			CookieDuration: pulumi.Int(900),
			Enabled:        pulumi.Bool(true),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

`aws_lightsail_lb_stickiness_policy` can be imported by using the `lb_name` attribute, e.g.,

```sh

$ pulumi import aws:lightsail/lbStickinessPolicy:LbStickinessPolicy test example-load-balancer

```

func GetLbStickinessPolicy added in v5.20.0

func GetLbStickinessPolicy(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *LbStickinessPolicyState, opts ...pulumi.ResourceOption) (*LbStickinessPolicy, error)

GetLbStickinessPolicy gets an existing LbStickinessPolicy 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 NewLbStickinessPolicy added in v5.20.0

func NewLbStickinessPolicy(ctx *pulumi.Context,
	name string, args *LbStickinessPolicyArgs, opts ...pulumi.ResourceOption) (*LbStickinessPolicy, error)

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

func (*LbStickinessPolicy) ElementType added in v5.20.0

func (*LbStickinessPolicy) ElementType() reflect.Type

func (*LbStickinessPolicy) ToLbStickinessPolicyOutput added in v5.20.0

func (i *LbStickinessPolicy) ToLbStickinessPolicyOutput() LbStickinessPolicyOutput

func (*LbStickinessPolicy) ToLbStickinessPolicyOutputWithContext added in v5.20.0

func (i *LbStickinessPolicy) ToLbStickinessPolicyOutputWithContext(ctx context.Context) LbStickinessPolicyOutput

type LbStickinessPolicyArgs added in v5.20.0

type LbStickinessPolicyArgs struct {
	// The cookie duration in seconds. This determines the length of the session stickiness.
	CookieDuration pulumi.IntInput
	// The Session Stickiness state of the load balancer. `true` to activate session stickiness or `false` to deactivate session stickiness.
	Enabled pulumi.BoolInput
	// The name of the load balancer to which you want to enable session stickiness.
	LbName pulumi.StringInput
}

The set of arguments for constructing a LbStickinessPolicy resource.

func (LbStickinessPolicyArgs) ElementType added in v5.20.0

func (LbStickinessPolicyArgs) ElementType() reflect.Type

type LbStickinessPolicyArray added in v5.20.0

type LbStickinessPolicyArray []LbStickinessPolicyInput

func (LbStickinessPolicyArray) ElementType added in v5.20.0

func (LbStickinessPolicyArray) ElementType() reflect.Type

func (LbStickinessPolicyArray) ToLbStickinessPolicyArrayOutput added in v5.20.0

func (i LbStickinessPolicyArray) ToLbStickinessPolicyArrayOutput() LbStickinessPolicyArrayOutput

func (LbStickinessPolicyArray) ToLbStickinessPolicyArrayOutputWithContext added in v5.20.0

func (i LbStickinessPolicyArray) ToLbStickinessPolicyArrayOutputWithContext(ctx context.Context) LbStickinessPolicyArrayOutput

type LbStickinessPolicyArrayInput added in v5.20.0

type LbStickinessPolicyArrayInput interface {
	pulumi.Input

	ToLbStickinessPolicyArrayOutput() LbStickinessPolicyArrayOutput
	ToLbStickinessPolicyArrayOutputWithContext(context.Context) LbStickinessPolicyArrayOutput
}

LbStickinessPolicyArrayInput is an input type that accepts LbStickinessPolicyArray and LbStickinessPolicyArrayOutput values. You can construct a concrete instance of `LbStickinessPolicyArrayInput` via:

LbStickinessPolicyArray{ LbStickinessPolicyArgs{...} }

type LbStickinessPolicyArrayOutput added in v5.20.0

type LbStickinessPolicyArrayOutput struct{ *pulumi.OutputState }

func (LbStickinessPolicyArrayOutput) ElementType added in v5.20.0

func (LbStickinessPolicyArrayOutput) Index added in v5.20.0

func (LbStickinessPolicyArrayOutput) ToLbStickinessPolicyArrayOutput added in v5.20.0

func (o LbStickinessPolicyArrayOutput) ToLbStickinessPolicyArrayOutput() LbStickinessPolicyArrayOutput

func (LbStickinessPolicyArrayOutput) ToLbStickinessPolicyArrayOutputWithContext added in v5.20.0

func (o LbStickinessPolicyArrayOutput) ToLbStickinessPolicyArrayOutputWithContext(ctx context.Context) LbStickinessPolicyArrayOutput

type LbStickinessPolicyInput added in v5.20.0

type LbStickinessPolicyInput interface {
	pulumi.Input

	ToLbStickinessPolicyOutput() LbStickinessPolicyOutput
	ToLbStickinessPolicyOutputWithContext(ctx context.Context) LbStickinessPolicyOutput
}

type LbStickinessPolicyMap added in v5.20.0

type LbStickinessPolicyMap map[string]LbStickinessPolicyInput

func (LbStickinessPolicyMap) ElementType added in v5.20.0

func (LbStickinessPolicyMap) ElementType() reflect.Type

func (LbStickinessPolicyMap) ToLbStickinessPolicyMapOutput added in v5.20.0

func (i LbStickinessPolicyMap) ToLbStickinessPolicyMapOutput() LbStickinessPolicyMapOutput

func (LbStickinessPolicyMap) ToLbStickinessPolicyMapOutputWithContext added in v5.20.0

func (i LbStickinessPolicyMap) ToLbStickinessPolicyMapOutputWithContext(ctx context.Context) LbStickinessPolicyMapOutput

type LbStickinessPolicyMapInput added in v5.20.0

type LbStickinessPolicyMapInput interface {
	pulumi.Input

	ToLbStickinessPolicyMapOutput() LbStickinessPolicyMapOutput
	ToLbStickinessPolicyMapOutputWithContext(context.Context) LbStickinessPolicyMapOutput
}

LbStickinessPolicyMapInput is an input type that accepts LbStickinessPolicyMap and LbStickinessPolicyMapOutput values. You can construct a concrete instance of `LbStickinessPolicyMapInput` via:

LbStickinessPolicyMap{ "key": LbStickinessPolicyArgs{...} }

type LbStickinessPolicyMapOutput added in v5.20.0

type LbStickinessPolicyMapOutput struct{ *pulumi.OutputState }

func (LbStickinessPolicyMapOutput) ElementType added in v5.20.0

func (LbStickinessPolicyMapOutput) MapIndex added in v5.20.0

func (LbStickinessPolicyMapOutput) ToLbStickinessPolicyMapOutput added in v5.20.0

func (o LbStickinessPolicyMapOutput) ToLbStickinessPolicyMapOutput() LbStickinessPolicyMapOutput

func (LbStickinessPolicyMapOutput) ToLbStickinessPolicyMapOutputWithContext added in v5.20.0

func (o LbStickinessPolicyMapOutput) ToLbStickinessPolicyMapOutputWithContext(ctx context.Context) LbStickinessPolicyMapOutput

type LbStickinessPolicyOutput added in v5.20.0

type LbStickinessPolicyOutput struct{ *pulumi.OutputState }

func (LbStickinessPolicyOutput) CookieDuration added in v5.20.0

func (o LbStickinessPolicyOutput) CookieDuration() pulumi.IntOutput

The cookie duration in seconds. This determines the length of the session stickiness.

func (LbStickinessPolicyOutput) ElementType added in v5.20.0

func (LbStickinessPolicyOutput) ElementType() reflect.Type

func (LbStickinessPolicyOutput) Enabled added in v5.20.0

The Session Stickiness state of the load balancer. `true` to activate session stickiness or `false` to deactivate session stickiness.

func (LbStickinessPolicyOutput) LbName added in v5.20.0

The name of the load balancer to which you want to enable session stickiness.

func (LbStickinessPolicyOutput) ToLbStickinessPolicyOutput added in v5.20.0

func (o LbStickinessPolicyOutput) ToLbStickinessPolicyOutput() LbStickinessPolicyOutput

func (LbStickinessPolicyOutput) ToLbStickinessPolicyOutputWithContext added in v5.20.0

func (o LbStickinessPolicyOutput) ToLbStickinessPolicyOutputWithContext(ctx context.Context) LbStickinessPolicyOutput

type LbStickinessPolicyState added in v5.20.0

type LbStickinessPolicyState struct {
	// The cookie duration in seconds. This determines the length of the session stickiness.
	CookieDuration pulumi.IntPtrInput
	// The Session Stickiness state of the load balancer. `true` to activate session stickiness or `false` to deactivate session stickiness.
	Enabled pulumi.BoolPtrInput
	// The name of the load balancer to which you want to enable session stickiness.
	LbName pulumi.StringPtrInput
}

func (LbStickinessPolicyState) ElementType added in v5.20.0

func (LbStickinessPolicyState) ElementType() reflect.Type

type StaticIp

type StaticIp struct {
	pulumi.CustomResourceState

	// The ARN of the Lightsail static IP
	Arn pulumi.StringOutput `pulumi:"arn"`
	// The allocated static IP address
	IpAddress pulumi.StringOutput `pulumi:"ipAddress"`
	// The name for the allocated static IP
	Name pulumi.StringOutput `pulumi:"name"`
	// The support code.
	SupportCode pulumi.StringOutput `pulumi:"supportCode"`
}

Allocates a static IP address.

> **Note:** Lightsail is currently only supported in a limited number of AWS Regions, please see ["Regions and Availability Zones in Amazon Lightsail"](https://lightsail.aws.amazon.com/ls/docs/overview/article/understanding-regions-and-availability-zones-in-amazon-lightsail) for more details

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-aws/sdk/v5/go/aws/lightsail"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := lightsail.NewStaticIp(ctx, "test", nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

func GetStaticIp

func GetStaticIp(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *StaticIpState, opts ...pulumi.ResourceOption) (*StaticIp, error)

GetStaticIp gets an existing StaticIp 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 NewStaticIp

func NewStaticIp(ctx *pulumi.Context,
	name string, args *StaticIpArgs, opts ...pulumi.ResourceOption) (*StaticIp, error)

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

func (*StaticIp) ElementType

func (*StaticIp) ElementType() reflect.Type

func (*StaticIp) ToStaticIpOutput

func (i *StaticIp) ToStaticIpOutput() StaticIpOutput

func (*StaticIp) ToStaticIpOutputWithContext

func (i *StaticIp) ToStaticIpOutputWithContext(ctx context.Context) StaticIpOutput

type StaticIpArgs

type StaticIpArgs struct {
	// The name for the allocated static IP
	Name pulumi.StringPtrInput
}

The set of arguments for constructing a StaticIp resource.

func (StaticIpArgs) ElementType

func (StaticIpArgs) ElementType() reflect.Type

type StaticIpArray

type StaticIpArray []StaticIpInput

func (StaticIpArray) ElementType

func (StaticIpArray) ElementType() reflect.Type

func (StaticIpArray) ToStaticIpArrayOutput

func (i StaticIpArray) ToStaticIpArrayOutput() StaticIpArrayOutput

func (StaticIpArray) ToStaticIpArrayOutputWithContext

func (i StaticIpArray) ToStaticIpArrayOutputWithContext(ctx context.Context) StaticIpArrayOutput

type StaticIpArrayInput

type StaticIpArrayInput interface {
	pulumi.Input

	ToStaticIpArrayOutput() StaticIpArrayOutput
	ToStaticIpArrayOutputWithContext(context.Context) StaticIpArrayOutput
}

StaticIpArrayInput is an input type that accepts StaticIpArray and StaticIpArrayOutput values. You can construct a concrete instance of `StaticIpArrayInput` via:

StaticIpArray{ StaticIpArgs{...} }

type StaticIpArrayOutput

type StaticIpArrayOutput struct{ *pulumi.OutputState }

func (StaticIpArrayOutput) ElementType

func (StaticIpArrayOutput) ElementType() reflect.Type

func (StaticIpArrayOutput) Index

func (StaticIpArrayOutput) ToStaticIpArrayOutput

func (o StaticIpArrayOutput) ToStaticIpArrayOutput() StaticIpArrayOutput

func (StaticIpArrayOutput) ToStaticIpArrayOutputWithContext

func (o StaticIpArrayOutput) ToStaticIpArrayOutputWithContext(ctx context.Context) StaticIpArrayOutput

type StaticIpAttachment

type StaticIpAttachment struct {
	pulumi.CustomResourceState

	// The name of the Lightsail instance to attach the IP to
	InstanceName pulumi.StringOutput `pulumi:"instanceName"`
	// The allocated static IP address
	IpAddress pulumi.StringOutput `pulumi:"ipAddress"`
	// The name of the allocated static IP
	StaticIpName pulumi.StringOutput `pulumi:"staticIpName"`
}

Provides a static IP address attachment - relationship between a Lightsail static IP & Lightsail instance.

> **Note:** Lightsail is currently only supported in a limited number of AWS Regions, please see ["Regions and Availability Zones in Amazon Lightsail"](https://lightsail.aws.amazon.com/ls/docs/overview/article/understanding-regions-and-availability-zones-in-amazon-lightsail) for more details

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-aws/sdk/v5/go/aws/lightsail"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		testStaticIp, err := lightsail.NewStaticIp(ctx, "testStaticIp", nil)
		if err != nil {
			return err
		}
		testInstance, err := lightsail.NewInstance(ctx, "testInstance", &lightsail.InstanceArgs{
			AvailabilityZone: pulumi.String("us-east-1b"),
			BlueprintId:      pulumi.String("string"),
			BundleId:         pulumi.String("string"),
			KeyPairName:      pulumi.String("some_key_name"),
		})
		if err != nil {
			return err
		}
		_, err = lightsail.NewStaticIpAttachment(ctx, "testStaticIpAttachment", &lightsail.StaticIpAttachmentArgs{
			StaticIpName: testStaticIp.ID(),
			InstanceName: testInstance.ID(),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

func GetStaticIpAttachment

func GetStaticIpAttachment(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *StaticIpAttachmentState, opts ...pulumi.ResourceOption) (*StaticIpAttachment, error)

GetStaticIpAttachment gets an existing StaticIpAttachment 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 NewStaticIpAttachment

func NewStaticIpAttachment(ctx *pulumi.Context,
	name string, args *StaticIpAttachmentArgs, opts ...pulumi.ResourceOption) (*StaticIpAttachment, error)

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

func (*StaticIpAttachment) ElementType

func (*StaticIpAttachment) ElementType() reflect.Type

func (*StaticIpAttachment) ToStaticIpAttachmentOutput

func (i *StaticIpAttachment) ToStaticIpAttachmentOutput() StaticIpAttachmentOutput

func (*StaticIpAttachment) ToStaticIpAttachmentOutputWithContext

func (i *StaticIpAttachment) ToStaticIpAttachmentOutputWithContext(ctx context.Context) StaticIpAttachmentOutput

type StaticIpAttachmentArgs

type StaticIpAttachmentArgs struct {
	// The name of the Lightsail instance to attach the IP to
	InstanceName pulumi.StringInput
	// The name of the allocated static IP
	StaticIpName pulumi.StringInput
}

The set of arguments for constructing a StaticIpAttachment resource.

func (StaticIpAttachmentArgs) ElementType

func (StaticIpAttachmentArgs) ElementType() reflect.Type

type StaticIpAttachmentArray

type StaticIpAttachmentArray []StaticIpAttachmentInput

func (StaticIpAttachmentArray) ElementType

func (StaticIpAttachmentArray) ElementType() reflect.Type

func (StaticIpAttachmentArray) ToStaticIpAttachmentArrayOutput

func (i StaticIpAttachmentArray) ToStaticIpAttachmentArrayOutput() StaticIpAttachmentArrayOutput

func (StaticIpAttachmentArray) ToStaticIpAttachmentArrayOutputWithContext

func (i StaticIpAttachmentArray) ToStaticIpAttachmentArrayOutputWithContext(ctx context.Context) StaticIpAttachmentArrayOutput

type StaticIpAttachmentArrayInput

type StaticIpAttachmentArrayInput interface {
	pulumi.Input

	ToStaticIpAttachmentArrayOutput() StaticIpAttachmentArrayOutput
	ToStaticIpAttachmentArrayOutputWithContext(context.Context) StaticIpAttachmentArrayOutput
}

StaticIpAttachmentArrayInput is an input type that accepts StaticIpAttachmentArray and StaticIpAttachmentArrayOutput values. You can construct a concrete instance of `StaticIpAttachmentArrayInput` via:

StaticIpAttachmentArray{ StaticIpAttachmentArgs{...} }

type StaticIpAttachmentArrayOutput

type StaticIpAttachmentArrayOutput struct{ *pulumi.OutputState }

func (StaticIpAttachmentArrayOutput) ElementType

func (StaticIpAttachmentArrayOutput) Index

func (StaticIpAttachmentArrayOutput) ToStaticIpAttachmentArrayOutput

func (o StaticIpAttachmentArrayOutput) ToStaticIpAttachmentArrayOutput() StaticIpAttachmentArrayOutput

func (StaticIpAttachmentArrayOutput) ToStaticIpAttachmentArrayOutputWithContext

func (o StaticIpAttachmentArrayOutput) ToStaticIpAttachmentArrayOutputWithContext(ctx context.Context) StaticIpAttachmentArrayOutput

type StaticIpAttachmentInput

type StaticIpAttachmentInput interface {
	pulumi.Input

	ToStaticIpAttachmentOutput() StaticIpAttachmentOutput
	ToStaticIpAttachmentOutputWithContext(ctx context.Context) StaticIpAttachmentOutput
}

type StaticIpAttachmentMap

type StaticIpAttachmentMap map[string]StaticIpAttachmentInput

func (StaticIpAttachmentMap) ElementType

func (StaticIpAttachmentMap) ElementType() reflect.Type

func (StaticIpAttachmentMap) ToStaticIpAttachmentMapOutput

func (i StaticIpAttachmentMap) ToStaticIpAttachmentMapOutput() StaticIpAttachmentMapOutput

func (StaticIpAttachmentMap) ToStaticIpAttachmentMapOutputWithContext

func (i StaticIpAttachmentMap) ToStaticIpAttachmentMapOutputWithContext(ctx context.Context) StaticIpAttachmentMapOutput

type StaticIpAttachmentMapInput

type StaticIpAttachmentMapInput interface {
	pulumi.Input

	ToStaticIpAttachmentMapOutput() StaticIpAttachmentMapOutput
	ToStaticIpAttachmentMapOutputWithContext(context.Context) StaticIpAttachmentMapOutput
}

StaticIpAttachmentMapInput is an input type that accepts StaticIpAttachmentMap and StaticIpAttachmentMapOutput values. You can construct a concrete instance of `StaticIpAttachmentMapInput` via:

StaticIpAttachmentMap{ "key": StaticIpAttachmentArgs{...} }

type StaticIpAttachmentMapOutput

type StaticIpAttachmentMapOutput struct{ *pulumi.OutputState }

func (StaticIpAttachmentMapOutput) ElementType

func (StaticIpAttachmentMapOutput) MapIndex

func (StaticIpAttachmentMapOutput) ToStaticIpAttachmentMapOutput

func (o StaticIpAttachmentMapOutput) ToStaticIpAttachmentMapOutput() StaticIpAttachmentMapOutput

func (StaticIpAttachmentMapOutput) ToStaticIpAttachmentMapOutputWithContext

func (o StaticIpAttachmentMapOutput) ToStaticIpAttachmentMapOutputWithContext(ctx context.Context) StaticIpAttachmentMapOutput

type StaticIpAttachmentOutput

type StaticIpAttachmentOutput struct{ *pulumi.OutputState }

func (StaticIpAttachmentOutput) ElementType

func (StaticIpAttachmentOutput) ElementType() reflect.Type

func (StaticIpAttachmentOutput) InstanceName added in v5.4.0

func (o StaticIpAttachmentOutput) InstanceName() pulumi.StringOutput

The name of the Lightsail instance to attach the IP to

func (StaticIpAttachmentOutput) IpAddress added in v5.4.0

The allocated static IP address

func (StaticIpAttachmentOutput) StaticIpName added in v5.4.0

func (o StaticIpAttachmentOutput) StaticIpName() pulumi.StringOutput

The name of the allocated static IP

func (StaticIpAttachmentOutput) ToStaticIpAttachmentOutput

func (o StaticIpAttachmentOutput) ToStaticIpAttachmentOutput() StaticIpAttachmentOutput

func (StaticIpAttachmentOutput) ToStaticIpAttachmentOutputWithContext

func (o StaticIpAttachmentOutput) ToStaticIpAttachmentOutputWithContext(ctx context.Context) StaticIpAttachmentOutput

type StaticIpAttachmentState

type StaticIpAttachmentState struct {
	// The name of the Lightsail instance to attach the IP to
	InstanceName pulumi.StringPtrInput
	// The allocated static IP address
	IpAddress pulumi.StringPtrInput
	// The name of the allocated static IP
	StaticIpName pulumi.StringPtrInput
}

func (StaticIpAttachmentState) ElementType

func (StaticIpAttachmentState) ElementType() reflect.Type

type StaticIpInput

type StaticIpInput interface {
	pulumi.Input

	ToStaticIpOutput() StaticIpOutput
	ToStaticIpOutputWithContext(ctx context.Context) StaticIpOutput
}

type StaticIpMap

type StaticIpMap map[string]StaticIpInput

func (StaticIpMap) ElementType

func (StaticIpMap) ElementType() reflect.Type

func (StaticIpMap) ToStaticIpMapOutput

func (i StaticIpMap) ToStaticIpMapOutput() StaticIpMapOutput

func (StaticIpMap) ToStaticIpMapOutputWithContext

func (i StaticIpMap) ToStaticIpMapOutputWithContext(ctx context.Context) StaticIpMapOutput

type StaticIpMapInput

type StaticIpMapInput interface {
	pulumi.Input

	ToStaticIpMapOutput() StaticIpMapOutput
	ToStaticIpMapOutputWithContext(context.Context) StaticIpMapOutput
}

StaticIpMapInput is an input type that accepts StaticIpMap and StaticIpMapOutput values. You can construct a concrete instance of `StaticIpMapInput` via:

StaticIpMap{ "key": StaticIpArgs{...} }

type StaticIpMapOutput

type StaticIpMapOutput struct{ *pulumi.OutputState }

func (StaticIpMapOutput) ElementType

func (StaticIpMapOutput) ElementType() reflect.Type

func (StaticIpMapOutput) MapIndex

func (StaticIpMapOutput) ToStaticIpMapOutput

func (o StaticIpMapOutput) ToStaticIpMapOutput() StaticIpMapOutput

func (StaticIpMapOutput) ToStaticIpMapOutputWithContext

func (o StaticIpMapOutput) ToStaticIpMapOutputWithContext(ctx context.Context) StaticIpMapOutput

type StaticIpOutput

type StaticIpOutput struct{ *pulumi.OutputState }

func (StaticIpOutput) Arn added in v5.4.0

The ARN of the Lightsail static IP

func (StaticIpOutput) ElementType

func (StaticIpOutput) ElementType() reflect.Type

func (StaticIpOutput) IpAddress added in v5.4.0

func (o StaticIpOutput) IpAddress() pulumi.StringOutput

The allocated static IP address

func (StaticIpOutput) Name added in v5.4.0

The name for the allocated static IP

func (StaticIpOutput) SupportCode added in v5.4.0

func (o StaticIpOutput) SupportCode() pulumi.StringOutput

The support code.

func (StaticIpOutput) ToStaticIpOutput

func (o StaticIpOutput) ToStaticIpOutput() StaticIpOutput

func (StaticIpOutput) ToStaticIpOutputWithContext

func (o StaticIpOutput) ToStaticIpOutputWithContext(ctx context.Context) StaticIpOutput

type StaticIpState

type StaticIpState struct {
	// The ARN of the Lightsail static IP
	Arn pulumi.StringPtrInput
	// The allocated static IP address
	IpAddress pulumi.StringPtrInput
	// The name for the allocated static IP
	Name pulumi.StringPtrInput
	// The support code.
	SupportCode pulumi.StringPtrInput
}

func (StaticIpState) ElementType

func (StaticIpState) ElementType() reflect.Type

Jump to

Keyboard shortcuts

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