lightsail

package
v7.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bucket

type Bucket struct {
	pulumi.CustomResourceState

	// ARN of the Lightsail bucket.
	Arn pulumi.StringOutput `pulumi:"arn"`
	// Availability Zone. Follows the format us-east-2a (case-sensitive).
	AvailabilityZone pulumi.StringOutput `pulumi:"availabilityZone"`
	// Bundle ID 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"`
	// Date and time when the bucket was created.
	CreatedAt pulumi.StringOutput `pulumi:"createdAt"`
	// Whether to force delete non-empty buckets using `pulumi destroy`. AWS by default will not delete a bucket which is not empty, to prevent losing bucket data and affecting other resources in Lightsail. If `forceDelete` is set to `true` the bucket will be deleted even when not empty.
	ForceDelete pulumi.BoolPtrOutput `pulumi:"forceDelete"`
	// Name for the bucket.
	//
	// The following arguments are optional:
	Name pulumi.StringOutput `pulumi:"name"`
	// Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
	Region pulumi.StringOutput `pulumi:"region"`
	// 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"`
	// 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"`
	// Map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
	TagsAll pulumi.StringMapOutput `pulumi:"tagsAll"`
	// URL of the bucket.
	Url pulumi.StringOutput `pulumi:"url"`
}

Manages a Lightsail bucket. Use this resource to create and manage object storage buckets for storing files, images, and other data in Lightsail.

## Example Usage

```go package main

import (

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

)

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

```

## Import

Using `pulumi import`, import `aws_lightsail_bucket` using the `name` attribute. For example:

```sh $ pulumi import aws:lightsail/bucket:Bucket example example-bucket ```

func GetBucket

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

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

func NewBucket

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

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

func (*Bucket) ElementType

func (*Bucket) ElementType() reflect.Type

func (*Bucket) ToBucketOutput

func (i *Bucket) ToBucketOutput() BucketOutput

func (*Bucket) ToBucketOutputWithContext

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

type BucketAccessKey

type BucketAccessKey struct {
	pulumi.CustomResourceState

	// Access key ID.
	AccessKeyId pulumi.StringOutput `pulumi:"accessKeyId"`
	// Name of the bucket that the access key will belong to and grant access to.
	BucketName pulumi.StringOutput `pulumi:"bucketName"`
	// Date and time when the access key was created.
	CreatedAt pulumi.StringOutput `pulumi:"createdAt"`
	// Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
	Region pulumi.StringOutput `pulumi:"region"`
	// 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"`
	// Status of the access key.
	Status pulumi.StringOutput `pulumi:"status"`
}

Manages a Lightsail bucket access key. Use this resource to create credentials that allow programmatic access to your Lightsail bucket via API requests.

## Example Usage

```go package main

import (

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

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := lightsail.NewBucket(ctx, "example", &lightsail.BucketArgs{
			Name:     pulumi.String("example-bucket"),
			BundleId: pulumi.String("small_1_0"),
		})
		if err != nil {
			return err
		}
		_, err = lightsail.NewBucketAccessKey(ctx, "example", &lightsail.BucketAccessKeyArgs{
			BucketName: example.ID(),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Using `pulumi import`, import `aws_lightsail_bucket_access_key` using the `id` attribute. For example:

```sh $ pulumi import aws:lightsail/bucketAccessKey:BucketAccessKey example example-bucket,AKIAIOSFODNN7EXAMPLE ```

func GetBucketAccessKey

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

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

func (*BucketAccessKey) ElementType() reflect.Type

func (*BucketAccessKey) ToBucketAccessKeyOutput

func (i *BucketAccessKey) ToBucketAccessKeyOutput() BucketAccessKeyOutput

func (*BucketAccessKey) ToBucketAccessKeyOutputWithContext

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

type BucketAccessKeyArgs

type BucketAccessKeyArgs struct {
	// Name of the bucket that the access key will belong to and grant access to.
	BucketName pulumi.StringInput
	// Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
	Region pulumi.StringPtrInput
}

The set of arguments for constructing a BucketAccessKey resource.

func (BucketAccessKeyArgs) ElementType

func (BucketAccessKeyArgs) ElementType() reflect.Type

type BucketAccessKeyArray

type BucketAccessKeyArray []BucketAccessKeyInput

func (BucketAccessKeyArray) ElementType

func (BucketAccessKeyArray) ElementType() reflect.Type

func (BucketAccessKeyArray) ToBucketAccessKeyArrayOutput

func (i BucketAccessKeyArray) ToBucketAccessKeyArrayOutput() BucketAccessKeyArrayOutput

func (BucketAccessKeyArray) ToBucketAccessKeyArrayOutputWithContext

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

type BucketAccessKeyArrayInput

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

type BucketAccessKeyArrayOutput struct{ *pulumi.OutputState }

func (BucketAccessKeyArrayOutput) ElementType

func (BucketAccessKeyArrayOutput) ElementType() reflect.Type

func (BucketAccessKeyArrayOutput) Index

func (BucketAccessKeyArrayOutput) ToBucketAccessKeyArrayOutput

func (o BucketAccessKeyArrayOutput) ToBucketAccessKeyArrayOutput() BucketAccessKeyArrayOutput

func (BucketAccessKeyArrayOutput) ToBucketAccessKeyArrayOutputWithContext

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

type BucketAccessKeyInput

type BucketAccessKeyInput interface {
	pulumi.Input

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

type BucketAccessKeyMap

type BucketAccessKeyMap map[string]BucketAccessKeyInput

func (BucketAccessKeyMap) ElementType

func (BucketAccessKeyMap) ElementType() reflect.Type

func (BucketAccessKeyMap) ToBucketAccessKeyMapOutput

func (i BucketAccessKeyMap) ToBucketAccessKeyMapOutput() BucketAccessKeyMapOutput

func (BucketAccessKeyMap) ToBucketAccessKeyMapOutputWithContext

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

type BucketAccessKeyMapInput

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

type BucketAccessKeyMapOutput struct{ *pulumi.OutputState }

func (BucketAccessKeyMapOutput) ElementType

func (BucketAccessKeyMapOutput) ElementType() reflect.Type

func (BucketAccessKeyMapOutput) MapIndex

func (BucketAccessKeyMapOutput) ToBucketAccessKeyMapOutput

func (o BucketAccessKeyMapOutput) ToBucketAccessKeyMapOutput() BucketAccessKeyMapOutput

func (BucketAccessKeyMapOutput) ToBucketAccessKeyMapOutputWithContext

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

type BucketAccessKeyOutput

type BucketAccessKeyOutput struct{ *pulumi.OutputState }

func (BucketAccessKeyOutput) AccessKeyId

func (o BucketAccessKeyOutput) AccessKeyId() pulumi.StringOutput

Access key ID.

func (BucketAccessKeyOutput) BucketName

func (o BucketAccessKeyOutput) BucketName() pulumi.StringOutput

Name of the bucket that the access key will belong to and grant access to.

func (BucketAccessKeyOutput) CreatedAt

Date and time when the access key was created.

func (BucketAccessKeyOutput) ElementType

func (BucketAccessKeyOutput) ElementType() reflect.Type

func (BucketAccessKeyOutput) Region

Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.

func (BucketAccessKeyOutput) SecretAccessKey

func (o BucketAccessKeyOutput) SecretAccessKey() pulumi.StringOutput

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

Status of the access key.

func (BucketAccessKeyOutput) ToBucketAccessKeyOutput

func (o BucketAccessKeyOutput) ToBucketAccessKeyOutput() BucketAccessKeyOutput

func (BucketAccessKeyOutput) ToBucketAccessKeyOutputWithContext

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

type BucketAccessKeyState

type BucketAccessKeyState struct {
	// Access key ID.
	AccessKeyId pulumi.StringPtrInput
	// Name of the bucket that the access key will belong to and grant access to.
	BucketName pulumi.StringPtrInput
	// Date and time when the access key was created.
	CreatedAt pulumi.StringPtrInput
	// Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
	Region pulumi.StringPtrInput
	// 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
	// Status of the access key.
	Status pulumi.StringPtrInput
}

func (BucketAccessKeyState) ElementType

func (BucketAccessKeyState) ElementType() reflect.Type

type BucketArgs

type BucketArgs struct {
	// Bundle ID 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
	// Whether to force delete non-empty buckets using `pulumi destroy`. AWS by default will not delete a bucket which is not empty, to prevent losing bucket data and affecting other resources in Lightsail. If `forceDelete` is set to `true` the bucket will be deleted even when not empty.
	ForceDelete pulumi.BoolPtrInput
	// Name for the bucket.
	//
	// The following arguments are optional:
	Name pulumi.StringPtrInput
	// Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
	Region pulumi.StringPtrInput
	// 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

func (BucketArgs) ElementType() reflect.Type

type BucketArray

type BucketArray []BucketInput

func (BucketArray) ElementType

func (BucketArray) ElementType() reflect.Type

func (BucketArray) ToBucketArrayOutput

func (i BucketArray) ToBucketArrayOutput() BucketArrayOutput

func (BucketArray) ToBucketArrayOutputWithContext

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

type BucketArrayInput

type BucketArrayInput interface {
	pulumi.Input

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

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

BucketArray{ BucketArgs{...} }

type BucketArrayOutput

type BucketArrayOutput struct{ *pulumi.OutputState }

func (BucketArrayOutput) ElementType

func (BucketArrayOutput) ElementType() reflect.Type

func (BucketArrayOutput) Index

func (BucketArrayOutput) ToBucketArrayOutput

func (o BucketArrayOutput) ToBucketArrayOutput() BucketArrayOutput

func (BucketArrayOutput) ToBucketArrayOutputWithContext

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

type BucketInput

type BucketInput interface {
	pulumi.Input

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

type BucketMap

type BucketMap map[string]BucketInput

func (BucketMap) ElementType

func (BucketMap) ElementType() reflect.Type

func (BucketMap) ToBucketMapOutput

func (i BucketMap) ToBucketMapOutput() BucketMapOutput

func (BucketMap) ToBucketMapOutputWithContext

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

type BucketMapInput

type BucketMapInput interface {
	pulumi.Input

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

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

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

type BucketMapOutput

type BucketMapOutput struct{ *pulumi.OutputState }

func (BucketMapOutput) ElementType

func (BucketMapOutput) ElementType() reflect.Type

func (BucketMapOutput) MapIndex

func (BucketMapOutput) ToBucketMapOutput

func (o BucketMapOutput) ToBucketMapOutput() BucketMapOutput

func (BucketMapOutput) ToBucketMapOutputWithContext

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

type BucketOutput

type BucketOutput struct{ *pulumi.OutputState }

func (BucketOutput) Arn

ARN of the Lightsail bucket.

func (BucketOutput) AvailabilityZone

func (o BucketOutput) AvailabilityZone() pulumi.StringOutput

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

func (BucketOutput) BundleId

func (o BucketOutput) BundleId() pulumi.StringOutput

Bundle ID 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

func (o BucketOutput) CreatedAt() pulumi.StringOutput

Date and time when the bucket was created.

func (BucketOutput) ElementType

func (BucketOutput) ElementType() reflect.Type

func (BucketOutput) ForceDelete

func (o BucketOutput) ForceDelete() pulumi.BoolPtrOutput

Whether to force delete non-empty buckets using `pulumi destroy`. AWS by default will not delete a bucket which is not empty, to prevent losing bucket data and affecting other resources in Lightsail. If `forceDelete` is set to `true` the bucket will be deleted even when not empty.

func (BucketOutput) Name

func (o BucketOutput) Name() pulumi.StringOutput

Name for the bucket.

The following arguments are optional:

func (BucketOutput) Region

func (o BucketOutput) Region() pulumi.StringOutput

Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.

func (BucketOutput) SupportCode

func (o BucketOutput) SupportCode() pulumi.StringOutput

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

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

func (o BucketOutput) TagsAll() pulumi.StringMapOutput

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

func (BucketOutput) ToBucketOutput

func (o BucketOutput) ToBucketOutput() BucketOutput

func (BucketOutput) ToBucketOutputWithContext

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

func (BucketOutput) Url

URL of the bucket.

type BucketResourceAccess

type BucketResourceAccess struct {
	pulumi.CustomResourceState

	// Name of the bucket to grant access to.
	BucketName pulumi.StringOutput `pulumi:"bucketName"`
	// Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
	Region pulumi.StringOutput `pulumi:"region"`
	// Name of the resource to grant bucket access.
	ResourceName pulumi.StringOutput `pulumi:"resourceName"`
}

Manages a Lightsail bucket resource access. Use this resource to grant a Lightsail resource (such as an instance) access to a specific bucket.

## Example Usage

```go package main

import (

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

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := lightsail.NewBucket(ctx, "example", &lightsail.BucketArgs{
			Name:     pulumi.String("example-bucket"),
			BundleId: pulumi.String("small_1_0"),
		})
		if err != nil {
			return err
		}
		exampleInstance, err := lightsail.NewInstance(ctx, "example", &lightsail.InstanceArgs{
			Name:             pulumi.String("example-instance"),
			AvailabilityZone: pulumi.String("us-east-1b"),
			BlueprintId:      pulumi.String("amazon_linux_2"),
			BundleId:         pulumi.String("nano_3_0"),
		})
		if err != nil {
			return err
		}
		_, err = lightsail.NewBucketResourceAccess(ctx, "example", &lightsail.BucketResourceAccessArgs{
			BucketName:   example.ID(),
			ResourceName: exampleInstance.ID(),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Using `pulumi import`, import `aws_lightsail_bucket_resource_access` using the `id` attribute. For example:

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

func GetBucketResourceAccess

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

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

func (*BucketResourceAccess) ElementType() reflect.Type

func (*BucketResourceAccess) ToBucketResourceAccessOutput

func (i *BucketResourceAccess) ToBucketResourceAccessOutput() BucketResourceAccessOutput

func (*BucketResourceAccess) ToBucketResourceAccessOutputWithContext

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

type BucketResourceAccessArgs

type BucketResourceAccessArgs struct {
	// Name of the bucket to grant access to.
	BucketName pulumi.StringInput
	// Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
	Region pulumi.StringPtrInput
	// Name of the resource to grant bucket access.
	ResourceName pulumi.StringInput
}

The set of arguments for constructing a BucketResourceAccess resource.

func (BucketResourceAccessArgs) ElementType

func (BucketResourceAccessArgs) ElementType() reflect.Type

type BucketResourceAccessArray

type BucketResourceAccessArray []BucketResourceAccessInput

func (BucketResourceAccessArray) ElementType

func (BucketResourceAccessArray) ElementType() reflect.Type

func (BucketResourceAccessArray) ToBucketResourceAccessArrayOutput

func (i BucketResourceAccessArray) ToBucketResourceAccessArrayOutput() BucketResourceAccessArrayOutput

func (BucketResourceAccessArray) ToBucketResourceAccessArrayOutputWithContext

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

type BucketResourceAccessArrayInput

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

type BucketResourceAccessArrayOutput struct{ *pulumi.OutputState }

func (BucketResourceAccessArrayOutput) ElementType

func (BucketResourceAccessArrayOutput) Index

func (BucketResourceAccessArrayOutput) ToBucketResourceAccessArrayOutput

func (o BucketResourceAccessArrayOutput) ToBucketResourceAccessArrayOutput() BucketResourceAccessArrayOutput

func (BucketResourceAccessArrayOutput) ToBucketResourceAccessArrayOutputWithContext

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

type BucketResourceAccessInput

type BucketResourceAccessInput interface {
	pulumi.Input

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

type BucketResourceAccessMap

type BucketResourceAccessMap map[string]BucketResourceAccessInput

func (BucketResourceAccessMap) ElementType

func (BucketResourceAccessMap) ElementType() reflect.Type

func (BucketResourceAccessMap) ToBucketResourceAccessMapOutput

func (i BucketResourceAccessMap) ToBucketResourceAccessMapOutput() BucketResourceAccessMapOutput

func (BucketResourceAccessMap) ToBucketResourceAccessMapOutputWithContext

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

type BucketResourceAccessMapInput

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

type BucketResourceAccessMapOutput struct{ *pulumi.OutputState }

func (BucketResourceAccessMapOutput) ElementType

func (BucketResourceAccessMapOutput) MapIndex

func (BucketResourceAccessMapOutput) ToBucketResourceAccessMapOutput

func (o BucketResourceAccessMapOutput) ToBucketResourceAccessMapOutput() BucketResourceAccessMapOutput

func (BucketResourceAccessMapOutput) ToBucketResourceAccessMapOutputWithContext

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

type BucketResourceAccessOutput

type BucketResourceAccessOutput struct{ *pulumi.OutputState }

func (BucketResourceAccessOutput) BucketName

Name of the bucket to grant access to.

func (BucketResourceAccessOutput) ElementType

func (BucketResourceAccessOutput) ElementType() reflect.Type

func (BucketResourceAccessOutput) Region

Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.

func (BucketResourceAccessOutput) ResourceName

Name of the resource to grant bucket access.

func (BucketResourceAccessOutput) ToBucketResourceAccessOutput

func (o BucketResourceAccessOutput) ToBucketResourceAccessOutput() BucketResourceAccessOutput

func (BucketResourceAccessOutput) ToBucketResourceAccessOutputWithContext

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

type BucketResourceAccessState

type BucketResourceAccessState struct {
	// Name of the bucket to grant access to.
	BucketName pulumi.StringPtrInput
	// Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
	Region pulumi.StringPtrInput
	// Name of the resource to grant bucket access.
	ResourceName pulumi.StringPtrInput
}

func (BucketResourceAccessState) ElementType

func (BucketResourceAccessState) ElementType() reflect.Type

type BucketState

type BucketState struct {
	// ARN of the Lightsail bucket.
	Arn pulumi.StringPtrInput
	// Availability Zone. Follows the format us-east-2a (case-sensitive).
	AvailabilityZone pulumi.StringPtrInput
	// Bundle ID 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
	// Date and time when the bucket was created.
	CreatedAt pulumi.StringPtrInput
	// Whether to force delete non-empty buckets using `pulumi destroy`. AWS by default will not delete a bucket which is not empty, to prevent losing bucket data and affecting other resources in Lightsail. If `forceDelete` is set to `true` the bucket will be deleted even when not empty.
	ForceDelete pulumi.BoolPtrInput
	// Name for the bucket.
	//
	// The following arguments are optional:
	Name pulumi.StringPtrInput
	// Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
	Region pulumi.StringPtrInput
	// 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
	// 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
	// Map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
	TagsAll pulumi.StringMapInput
	// URL of the bucket.
	Url pulumi.StringPtrInput
}

func (BucketState) ElementType

func (BucketState) ElementType() reflect.Type

type Certificate

type Certificate struct {
	pulumi.CustomResourceState

	// ARN of the certificate.
	Arn pulumi.StringOutput `pulumi:"arn"`
	// Date and time when the certificate was created.
	CreatedAt pulumi.StringOutput `pulumi:"createdAt"`
	// 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. Each element contains the following attributes:
	DomainValidationOptions CertificateDomainValidationOptionArrayOutput `pulumi:"domainValidationOptions"`
	// Name of the certificate.
	//
	// The following arguments are optional:
	Name pulumi.StringOutput `pulumi:"name"`
	// Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
	Region pulumi.StringOutput `pulumi:"region"`
	// 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"`
	// 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"`
	// Map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
	TagsAll pulumi.StringMapOutput `pulumi:"tagsAll"`
}

Manages a Lightsail certificate. Use this resource to create and manage SSL/TLS certificates for securing custom domains with your Lightsail resources.

## Example Usage

```go package main

import (

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

)

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

```

## Import

Using `pulumi import`, import `aws_lightsail_certificate` using the certificate name. For example:

```sh $ pulumi import aws:lightsail/certificate:Certificate example example-certificate ```

func GetCertificate

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

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

func (*Certificate) ElementType() reflect.Type

func (*Certificate) ToCertificateOutput

func (i *Certificate) ToCertificateOutput() CertificateOutput

func (*Certificate) ToCertificateOutputWithContext

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

type CertificateArgs

type CertificateArgs struct {
	// Domain name for which the certificate should be issued.
	DomainName pulumi.StringPtrInput
	// Name of the certificate.
	//
	// The following arguments are optional:
	Name pulumi.StringPtrInput
	// Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
	Region 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
	// 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

func (CertificateArgs) ElementType() reflect.Type

type CertificateArray

type CertificateArray []CertificateInput

func (CertificateArray) ElementType

func (CertificateArray) ElementType() reflect.Type

func (CertificateArray) ToCertificateArrayOutput

func (i CertificateArray) ToCertificateArrayOutput() CertificateArrayOutput

func (CertificateArray) ToCertificateArrayOutputWithContext

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

type CertificateArrayInput

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

type CertificateArrayOutput struct{ *pulumi.OutputState }

func (CertificateArrayOutput) ElementType

func (CertificateArrayOutput) ElementType() reflect.Type

func (CertificateArrayOutput) Index

func (CertificateArrayOutput) ToCertificateArrayOutput

func (o CertificateArrayOutput) ToCertificateArrayOutput() CertificateArrayOutput

func (CertificateArrayOutput) ToCertificateArrayOutputWithContext

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

type CertificateDomainValidationOption

type CertificateDomainValidationOption struct {
	// Domain name for which the certificate should be issued.
	DomainName *string `pulumi:"domainName"`
	// Name of the DNS record to create to validate the certificate.
	ResourceRecordName *string `pulumi:"resourceRecordName"`
	// Type of DNS record to create to validate the certificate.
	ResourceRecordType *string `pulumi:"resourceRecordType"`
	// Value of the DNS record to create to validate the certificate.
	ResourceRecordValue *string `pulumi:"resourceRecordValue"`
}

type CertificateDomainValidationOptionArgs

type CertificateDomainValidationOptionArgs struct {
	// Domain name for which the certificate should be issued.
	DomainName pulumi.StringPtrInput `pulumi:"domainName"`
	// Name of the DNS record to create to validate the certificate.
	ResourceRecordName pulumi.StringPtrInput `pulumi:"resourceRecordName"`
	// Type of DNS record to create to validate the certificate.
	ResourceRecordType pulumi.StringPtrInput `pulumi:"resourceRecordType"`
	// Value of the DNS record to create to validate the certificate.
	ResourceRecordValue pulumi.StringPtrInput `pulumi:"resourceRecordValue"`
}

func (CertificateDomainValidationOptionArgs) ElementType

func (CertificateDomainValidationOptionArgs) ToCertificateDomainValidationOptionOutput

func (i CertificateDomainValidationOptionArgs) ToCertificateDomainValidationOptionOutput() CertificateDomainValidationOptionOutput

func (CertificateDomainValidationOptionArgs) ToCertificateDomainValidationOptionOutputWithContext

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

type CertificateDomainValidationOptionArray

type CertificateDomainValidationOptionArray []CertificateDomainValidationOptionInput

func (CertificateDomainValidationOptionArray) ElementType

func (CertificateDomainValidationOptionArray) ToCertificateDomainValidationOptionArrayOutput

func (i CertificateDomainValidationOptionArray) ToCertificateDomainValidationOptionArrayOutput() CertificateDomainValidationOptionArrayOutput

func (CertificateDomainValidationOptionArray) ToCertificateDomainValidationOptionArrayOutputWithContext

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

type CertificateDomainValidationOptionArrayInput

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

type CertificateDomainValidationOptionArrayOutput struct{ *pulumi.OutputState }

func (CertificateDomainValidationOptionArrayOutput) ElementType

func (CertificateDomainValidationOptionArrayOutput) Index

func (CertificateDomainValidationOptionArrayOutput) ToCertificateDomainValidationOptionArrayOutput

func (o CertificateDomainValidationOptionArrayOutput) ToCertificateDomainValidationOptionArrayOutput() CertificateDomainValidationOptionArrayOutput

func (CertificateDomainValidationOptionArrayOutput) ToCertificateDomainValidationOptionArrayOutputWithContext

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

type CertificateDomainValidationOptionInput

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

type CertificateDomainValidationOptionOutput struct{ *pulumi.OutputState }

func (CertificateDomainValidationOptionOutput) DomainName

Domain name for which the certificate should be issued.

func (CertificateDomainValidationOptionOutput) ElementType

func (CertificateDomainValidationOptionOutput) ResourceRecordName

Name of the DNS record to create to validate the certificate.

func (CertificateDomainValidationOptionOutput) ResourceRecordType

Type of DNS record to create to validate the certificate.

func (CertificateDomainValidationOptionOutput) ResourceRecordValue

Value of the DNS record to create to validate the certificate.

func (CertificateDomainValidationOptionOutput) ToCertificateDomainValidationOptionOutput

func (o CertificateDomainValidationOptionOutput) ToCertificateDomainValidationOptionOutput() CertificateDomainValidationOptionOutput

func (CertificateDomainValidationOptionOutput) ToCertificateDomainValidationOptionOutputWithContext

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

type CertificateInput

type CertificateInput interface {
	pulumi.Input

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

type CertificateMap

type CertificateMap map[string]CertificateInput

func (CertificateMap) ElementType

func (CertificateMap) ElementType() reflect.Type

func (CertificateMap) ToCertificateMapOutput

func (i CertificateMap) ToCertificateMapOutput() CertificateMapOutput

func (CertificateMap) ToCertificateMapOutputWithContext

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

type CertificateMapInput

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

type CertificateMapOutput struct{ *pulumi.OutputState }

func (CertificateMapOutput) ElementType

func (CertificateMapOutput) ElementType() reflect.Type

func (CertificateMapOutput) MapIndex

func (CertificateMapOutput) ToCertificateMapOutput

func (o CertificateMapOutput) ToCertificateMapOutput() CertificateMapOutput

func (CertificateMapOutput) ToCertificateMapOutputWithContext

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

type CertificateOutput

type CertificateOutput struct{ *pulumi.OutputState }

func (CertificateOutput) Arn

ARN of the certificate.

func (CertificateOutput) CreatedAt

func (o CertificateOutput) CreatedAt() pulumi.StringOutput

Date and time when the certificate was created.

func (CertificateOutput) DomainName

func (o CertificateOutput) DomainName() pulumi.StringOutput

Domain name for which the certificate should be issued.

func (CertificateOutput) DomainValidationOptions

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. Each element contains the following attributes:

func (CertificateOutput) ElementType

func (CertificateOutput) ElementType() reflect.Type

func (CertificateOutput) Name

Name of the certificate.

The following arguments are optional:

func (CertificateOutput) Region

Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.

func (CertificateOutput) SubjectAlternativeNames

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

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

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

func (CertificateOutput) ToCertificateOutput

func (o CertificateOutput) ToCertificateOutput() CertificateOutput

func (CertificateOutput) ToCertificateOutputWithContext

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

type CertificateState

type CertificateState struct {
	// ARN of the certificate.
	Arn pulumi.StringPtrInput
	// Date and time when the certificate was created.
	CreatedAt pulumi.StringPtrInput
	// 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. Each element contains the following attributes:
	DomainValidationOptions CertificateDomainValidationOptionArrayInput
	// Name of the certificate.
	//
	// The following arguments are optional:
	Name pulumi.StringPtrInput
	// Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
	Region 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
	// 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
	// Map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
	TagsAll pulumi.StringMapInput
}

func (CertificateState) ElementType

func (CertificateState) ElementType() reflect.Type

type ContainerService

type ContainerService struct {
	pulumi.CustomResourceState

	// ARN of the container service.
	Arn pulumi.StringOutput `pulumi:"arn"`
	// Availability Zone. Follows the format us-east-2a (case-sensitive).
	AvailabilityZone pulumi.StringOutput `pulumi:"availabilityZone"`
	// Date and time when the container service was created.
	CreatedAt pulumi.StringOutput `pulumi:"createdAt"`
	// Whether to disable the container service. Defaults to `false`.
	IsDisabled pulumi.BoolPtrOutput `pulumi:"isDisabled"`
	// Name of 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"`
	// 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"`
	// Power ID of the container service.
	PowerId pulumi.StringOutput `pulumi:"powerId"`
	// 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.
	PrincipalArn pulumi.StringOutput `pulumi:"principalArn"`
	// 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"`
	// Configuration for the container service to access private container image repositories, such as Amazon Elastic Container Registry (Amazon ECR) private repositories. See below.
	PrivateRegistryAccess ContainerServicePrivateRegistryAccessOutput `pulumi:"privateRegistryAccess"`
	// 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. See below.
	PublicDomainNames ContainerServicePublicDomainNamesPtrOutput `pulumi:"publicDomainNames"`
	// Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
	Region pulumi.StringOutput `pulumi:"region"`
	// Lightsail resource type of the container service (i.e., ContainerService).
	ResourceType pulumi.StringOutput `pulumi:"resourceType"`
	// Scale specification for the container service. The scale specifies the allocated compute nodes of the container service.
	//
	// The following arguments are optional:
	Scale pulumi.IntOutput `pulumi:"scale"`
	// Current state of the container service.
	State pulumi.StringOutput `pulumi:"state"`
	// 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"`
	// Map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
	TagsAll pulumi.StringMapOutput `pulumi:"tagsAll"`
	// 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"`
}

Manages a Lightsail container service. Use this resource to create and manage a scalable compute and networking platform for deploying, running, and managing containerized applications in Lightsail.

> **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).

> **NOTE:** You must create and validate an SSL/TLS certificate before you can use `publicDomainNames` with your container service. For more information, see [Enabling and managing custom domains for your Amazon Lightsail container services](https://lightsail.aws.amazon.com/ls/docs/en_us/articles/amazon-lightsail-creating-container-services-certificates).

## Example Usage

### Basic Usage

```go package main

import (

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

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := lightsail.NewContainerService(ctx, "example", &lightsail.ContainerServiceArgs{
			Name:       pulumi.String("container-service-1"),
			Power:      pulumi.String("nano"),
			Scale:      pulumi.Int(1),
			IsDisabled: pulumi.Bool(false),
			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/v7/go/aws/lightsail"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := lightsail.NewContainerService(ctx, "example", &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-aws/sdk/v7/go/aws/ecr"
"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/iam"
"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/lightsail"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

) func main() { pulumi.Run(func(ctx *pulumi.Context) error { exampleContainerService, err := lightsail.NewContainerService(ctx, "example", &lightsail.ContainerServiceArgs{ PrivateRegistryAccess: &lightsail.ContainerServicePrivateRegistryAccessArgs{ EcrImagePullerRole: &lightsail.ContainerServicePrivateRegistryAccessEcrImagePullerRoleArgs{ IsActive: pulumi.Bool(true), }, }, }) if err != nil { return err } example := exampleContainerService.PrivateRegistryAccess.ApplyT(func(privateRegistryAccess lightsail.ContainerServicePrivateRegistryAccess) (iam.GetPolicyDocumentResult, error) { return iam.GetPolicyDocumentResult(interface{}(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, "example", &ecr.RepositoryPolicyArgs{ Repository: pulumi.Any(exampleAwsEcrRepository.Name), Policy: pulumi.String(example.ApplyT(func(example iam.GetPolicyDocumentResult) (*string, error) { return &example.Json, nil }).(pulumi.StringPtrOutput)), }) if err != nil { return err } return nil }) } ```

## Import

Using `pulumi import`, import Lightsail Container Service using the `name`. For example:

```sh $ pulumi import aws:lightsail/containerService:ContainerService example container-service-1 ```

func GetContainerService

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

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

func (*ContainerService) ElementType() reflect.Type

func (*ContainerService) ToContainerServiceOutput

func (i *ContainerService) ToContainerServiceOutput() ContainerServiceOutput

func (*ContainerService) ToContainerServiceOutputWithContext

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

type ContainerServiceArgs

type ContainerServiceArgs struct {
	// Whether to disable the container service. Defaults to `false`.
	IsDisabled pulumi.BoolPtrInput
	// Name of 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
	// 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
	// Configuration for the container service to access private container image repositories, such as Amazon Elastic Container Registry (Amazon ECR) private repositories. See below.
	PrivateRegistryAccess ContainerServicePrivateRegistryAccessPtrInput
	// 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. See below.
	PublicDomainNames ContainerServicePublicDomainNamesPtrInput
	// Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
	Region pulumi.StringPtrInput
	// Scale specification for the container service. The scale specifies the allocated compute nodes of the container service.
	//
	// The following arguments are optional:
	Scale pulumi.IntInput
	// 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 ContainerService resource.

func (ContainerServiceArgs) ElementType

func (ContainerServiceArgs) ElementType() reflect.Type

type ContainerServiceArray

type ContainerServiceArray []ContainerServiceInput

func (ContainerServiceArray) ElementType

func (ContainerServiceArray) ElementType() reflect.Type

func (ContainerServiceArray) ToContainerServiceArrayOutput

func (i ContainerServiceArray) ToContainerServiceArrayOutput() ContainerServiceArrayOutput

func (ContainerServiceArray) ToContainerServiceArrayOutputWithContext

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

type ContainerServiceArrayInput

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

type ContainerServiceArrayOutput struct{ *pulumi.OutputState }

func (ContainerServiceArrayOutput) ElementType

func (ContainerServiceArrayOutput) Index

func (ContainerServiceArrayOutput) ToContainerServiceArrayOutput

func (o ContainerServiceArrayOutput) ToContainerServiceArrayOutput() ContainerServiceArrayOutput

func (ContainerServiceArrayOutput) ToContainerServiceArrayOutputWithContext

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

type ContainerServiceDeploymentVersion

type ContainerServiceDeploymentVersion struct {
	pulumi.CustomResourceState

	// Set of configuration blocks that describe the settings of the containers that will be launched on the container service. Maximum of 53. See below.
	Containers ContainerServiceDeploymentVersionContainerArrayOutput `pulumi:"containers"`
	// Date and time when the deployment was created.
	CreatedAt pulumi.StringOutput `pulumi:"createdAt"`
	// Configuration block that describes the settings of the public endpoint for the container service. See below.
	PublicEndpoint ContainerServiceDeploymentVersionPublicEndpointPtrOutput `pulumi:"publicEndpoint"`
	// Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
	Region pulumi.StringOutput `pulumi:"region"`
	// Name of the container service.
	//
	// The following arguments are optional:
	ServiceName pulumi.StringOutput `pulumi:"serviceName"`
	// Current state of the container service.
	State pulumi.StringOutput `pulumi:"state"`
	// Version number of the deployment.
	Version pulumi.IntOutput `pulumi:"version"`
}

Manages a Lightsail container service deployment version. Use this resource to deploy containerized applications to your Lightsail container service with specific container configurations and settings.

> **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/v7/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(exampleAwsLightsailContainerService.Name),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Using `pulumi import`, import Lightsail Container Service Deployment Version using the `service_name` and `version` separated by a slash (`/`). For example:

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

func GetContainerServiceDeploymentVersion

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

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

func (*ContainerServiceDeploymentVersion) ToContainerServiceDeploymentVersionOutput

func (i *ContainerServiceDeploymentVersion) ToContainerServiceDeploymentVersionOutput() ContainerServiceDeploymentVersionOutput

func (*ContainerServiceDeploymentVersion) ToContainerServiceDeploymentVersionOutputWithContext

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

type ContainerServiceDeploymentVersionArgs

type ContainerServiceDeploymentVersionArgs struct {
	// Set of configuration blocks that describe the settings of the containers that will be launched on the container service. Maximum of 53. See below.
	Containers ContainerServiceDeploymentVersionContainerArrayInput
	// Configuration block that describes the settings of the public endpoint for the container service. See below.
	PublicEndpoint ContainerServiceDeploymentVersionPublicEndpointPtrInput
	// Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
	Region pulumi.StringPtrInput
	// Name of the container service.
	//
	// The following arguments are optional:
	ServiceName pulumi.StringInput
}

The set of arguments for constructing a ContainerServiceDeploymentVersion resource.

func (ContainerServiceDeploymentVersionArgs) ElementType

type ContainerServiceDeploymentVersionArray

type ContainerServiceDeploymentVersionArray []ContainerServiceDeploymentVersionInput

func (ContainerServiceDeploymentVersionArray) ElementType

func (ContainerServiceDeploymentVersionArray) ToContainerServiceDeploymentVersionArrayOutput

func (i ContainerServiceDeploymentVersionArray) ToContainerServiceDeploymentVersionArrayOutput() ContainerServiceDeploymentVersionArrayOutput

func (ContainerServiceDeploymentVersionArray) ToContainerServiceDeploymentVersionArrayOutputWithContext

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

type ContainerServiceDeploymentVersionArrayInput

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

type ContainerServiceDeploymentVersionArrayOutput struct{ *pulumi.OutputState }

func (ContainerServiceDeploymentVersionArrayOutput) ElementType

func (ContainerServiceDeploymentVersionArrayOutput) Index

func (ContainerServiceDeploymentVersionArrayOutput) ToContainerServiceDeploymentVersionArrayOutput

func (o ContainerServiceDeploymentVersionArrayOutput) ToContainerServiceDeploymentVersionArrayOutput() ContainerServiceDeploymentVersionArrayOutput

func (ContainerServiceDeploymentVersionArrayOutput) ToContainerServiceDeploymentVersionArrayOutputWithContext

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

type ContainerServiceDeploymentVersionContainer

type ContainerServiceDeploymentVersionContainer struct {
	// Launch command for the container. A list of strings.
	Commands []string `pulumi:"commands"`
	// Name of the container.
	ContainerName string `pulumi:"containerName"`
	// Key-value map of the environment variables of the container.
	Environment map[string]string `pulumi:"environment"`
	// 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"`
	// 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

type ContainerServiceDeploymentVersionContainerArgs struct {
	// Launch command for the container. A list of strings.
	Commands pulumi.StringArrayInput `pulumi:"commands"`
	// Name of the container.
	ContainerName pulumi.StringInput `pulumi:"containerName"`
	// Key-value map of the environment variables of the container.
	Environment pulumi.StringMapInput `pulumi:"environment"`
	// 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"`
	// 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

func (ContainerServiceDeploymentVersionContainerArgs) ToContainerServiceDeploymentVersionContainerOutput

func (i ContainerServiceDeploymentVersionContainerArgs) ToContainerServiceDeploymentVersionContainerOutput() ContainerServiceDeploymentVersionContainerOutput

func (ContainerServiceDeploymentVersionContainerArgs) ToContainerServiceDeploymentVersionContainerOutputWithContext

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

type ContainerServiceDeploymentVersionContainerArray

type ContainerServiceDeploymentVersionContainerArray []ContainerServiceDeploymentVersionContainerInput

func (ContainerServiceDeploymentVersionContainerArray) ElementType

func (ContainerServiceDeploymentVersionContainerArray) ToContainerServiceDeploymentVersionContainerArrayOutput

func (i ContainerServiceDeploymentVersionContainerArray) ToContainerServiceDeploymentVersionContainerArrayOutput() ContainerServiceDeploymentVersionContainerArrayOutput

func (ContainerServiceDeploymentVersionContainerArray) ToContainerServiceDeploymentVersionContainerArrayOutputWithContext

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

type ContainerServiceDeploymentVersionContainerArrayInput

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

type ContainerServiceDeploymentVersionContainerArrayOutput struct{ *pulumi.OutputState }

func (ContainerServiceDeploymentVersionContainerArrayOutput) ElementType

func (ContainerServiceDeploymentVersionContainerArrayOutput) Index

func (ContainerServiceDeploymentVersionContainerArrayOutput) ToContainerServiceDeploymentVersionContainerArrayOutput

func (ContainerServiceDeploymentVersionContainerArrayOutput) ToContainerServiceDeploymentVersionContainerArrayOutputWithContext

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

type ContainerServiceDeploymentVersionContainerInput

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

type ContainerServiceDeploymentVersionContainerOutput struct{ *pulumi.OutputState }

func (ContainerServiceDeploymentVersionContainerOutput) Commands

Launch command for the container. A list of strings.

func (ContainerServiceDeploymentVersionContainerOutput) ContainerName

Name of the container.

func (ContainerServiceDeploymentVersionContainerOutput) ElementType

func (ContainerServiceDeploymentVersionContainerOutput) Environment

Key-value map of the environment variables of the container.

func (ContainerServiceDeploymentVersionContainerOutput) Image

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

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

func (ContainerServiceDeploymentVersionContainerOutput) ToContainerServiceDeploymentVersionContainerOutput

func (o ContainerServiceDeploymentVersionContainerOutput) ToContainerServiceDeploymentVersionContainerOutput() ContainerServiceDeploymentVersionContainerOutput

func (ContainerServiceDeploymentVersionContainerOutput) ToContainerServiceDeploymentVersionContainerOutputWithContext

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

type ContainerServiceDeploymentVersionInput

type ContainerServiceDeploymentVersionInput interface {
	pulumi.Input

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

type ContainerServiceDeploymentVersionMap

type ContainerServiceDeploymentVersionMap map[string]ContainerServiceDeploymentVersionInput

func (ContainerServiceDeploymentVersionMap) ElementType

func (ContainerServiceDeploymentVersionMap) ToContainerServiceDeploymentVersionMapOutput

func (i ContainerServiceDeploymentVersionMap) ToContainerServiceDeploymentVersionMapOutput() ContainerServiceDeploymentVersionMapOutput

func (ContainerServiceDeploymentVersionMap) ToContainerServiceDeploymentVersionMapOutputWithContext

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

type ContainerServiceDeploymentVersionMapInput

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

type ContainerServiceDeploymentVersionMapOutput struct{ *pulumi.OutputState }

func (ContainerServiceDeploymentVersionMapOutput) ElementType

func (ContainerServiceDeploymentVersionMapOutput) MapIndex

func (ContainerServiceDeploymentVersionMapOutput) ToContainerServiceDeploymentVersionMapOutput

func (o ContainerServiceDeploymentVersionMapOutput) ToContainerServiceDeploymentVersionMapOutput() ContainerServiceDeploymentVersionMapOutput

func (ContainerServiceDeploymentVersionMapOutput) ToContainerServiceDeploymentVersionMapOutputWithContext

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

type ContainerServiceDeploymentVersionOutput

type ContainerServiceDeploymentVersionOutput struct{ *pulumi.OutputState }

func (ContainerServiceDeploymentVersionOutput) Containers

Set of configuration blocks that describe the settings of the containers that will be launched on the container service. Maximum of 53. See below.

func (ContainerServiceDeploymentVersionOutput) CreatedAt

Date and time when the deployment was created.

func (ContainerServiceDeploymentVersionOutput) ElementType

func (ContainerServiceDeploymentVersionOutput) PublicEndpoint

Configuration block that describes the settings of the public endpoint for the container service. See below.

func (ContainerServiceDeploymentVersionOutput) Region

Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.

func (ContainerServiceDeploymentVersionOutput) ServiceName

Name of the container service.

The following arguments are optional:

func (ContainerServiceDeploymentVersionOutput) State

Current state of the container service.

func (ContainerServiceDeploymentVersionOutput) ToContainerServiceDeploymentVersionOutput

func (o ContainerServiceDeploymentVersionOutput) ToContainerServiceDeploymentVersionOutput() ContainerServiceDeploymentVersionOutput

func (ContainerServiceDeploymentVersionOutput) ToContainerServiceDeploymentVersionOutputWithContext

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

func (ContainerServiceDeploymentVersionOutput) Version

Version number of the deployment.

type ContainerServiceDeploymentVersionPublicEndpoint

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

type ContainerServiceDeploymentVersionPublicEndpointArgs

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

func (ContainerServiceDeploymentVersionPublicEndpointArgs) ElementType

func (ContainerServiceDeploymentVersionPublicEndpointArgs) ToContainerServiceDeploymentVersionPublicEndpointOutput

func (i ContainerServiceDeploymentVersionPublicEndpointArgs) ToContainerServiceDeploymentVersionPublicEndpointOutput() ContainerServiceDeploymentVersionPublicEndpointOutput

func (ContainerServiceDeploymentVersionPublicEndpointArgs) ToContainerServiceDeploymentVersionPublicEndpointOutputWithContext

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

func (ContainerServiceDeploymentVersionPublicEndpointArgs) ToContainerServiceDeploymentVersionPublicEndpointPtrOutput

func (i ContainerServiceDeploymentVersionPublicEndpointArgs) ToContainerServiceDeploymentVersionPublicEndpointPtrOutput() ContainerServiceDeploymentVersionPublicEndpointPtrOutput

func (ContainerServiceDeploymentVersionPublicEndpointArgs) ToContainerServiceDeploymentVersionPublicEndpointPtrOutputWithContext

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

type ContainerServiceDeploymentVersionPublicEndpointHealthCheck

type ContainerServiceDeploymentVersionPublicEndpointHealthCheck struct {
	// Number of consecutive health check successes required before moving the container to the Healthy state. Defaults to 2.
	HealthyThreshold *int `pulumi:"healthyThreshold"`
	// 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"`
	// Path on the container on which to perform the health check. Defaults to "/".
	Path *string `pulumi:"path"`
	// 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"`
	// 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"`
	// Number of consecutive health check failures required before moving the container to the Unhealthy state. Defaults to 2.
	UnhealthyThreshold *int `pulumi:"unhealthyThreshold"`
}

type ContainerServiceDeploymentVersionPublicEndpointHealthCheckArgs

type ContainerServiceDeploymentVersionPublicEndpointHealthCheckArgs struct {
	// Number of consecutive health check successes required before moving the container to the Healthy state. Defaults to 2.
	HealthyThreshold pulumi.IntPtrInput `pulumi:"healthyThreshold"`
	// 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"`
	// Path on the container on which to perform the health check. Defaults to "/".
	Path pulumi.StringPtrInput `pulumi:"path"`
	// 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"`
	// 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"`
	// Number of consecutive health check failures required before moving the container to the Unhealthy state. Defaults to 2.
	UnhealthyThreshold pulumi.IntPtrInput `pulumi:"unhealthyThreshold"`
}

func (ContainerServiceDeploymentVersionPublicEndpointHealthCheckArgs) ElementType

func (ContainerServiceDeploymentVersionPublicEndpointHealthCheckArgs) ToContainerServiceDeploymentVersionPublicEndpointHealthCheckOutput

func (ContainerServiceDeploymentVersionPublicEndpointHealthCheckArgs) ToContainerServiceDeploymentVersionPublicEndpointHealthCheckOutputWithContext

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

func (ContainerServiceDeploymentVersionPublicEndpointHealthCheckArgs) ToContainerServiceDeploymentVersionPublicEndpointHealthCheckPtrOutput

func (ContainerServiceDeploymentVersionPublicEndpointHealthCheckArgs) ToContainerServiceDeploymentVersionPublicEndpointHealthCheckPtrOutputWithContext

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

type ContainerServiceDeploymentVersionPublicEndpointHealthCheckInput

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

type ContainerServiceDeploymentVersionPublicEndpointHealthCheckOutput struct{ *pulumi.OutputState }

func (ContainerServiceDeploymentVersionPublicEndpointHealthCheckOutput) ElementType

func (ContainerServiceDeploymentVersionPublicEndpointHealthCheckOutput) HealthyThreshold

Number of consecutive health check successes required before moving the container to the Healthy state. Defaults to 2.

func (ContainerServiceDeploymentVersionPublicEndpointHealthCheckOutput) IntervalSeconds

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

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

func (ContainerServiceDeploymentVersionPublicEndpointHealthCheckOutput) SuccessCodes

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

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

func (ContainerServiceDeploymentVersionPublicEndpointHealthCheckOutput) ToContainerServiceDeploymentVersionPublicEndpointHealthCheckOutputWithContext

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

func (ContainerServiceDeploymentVersionPublicEndpointHealthCheckOutput) ToContainerServiceDeploymentVersionPublicEndpointHealthCheckPtrOutput

func (ContainerServiceDeploymentVersionPublicEndpointHealthCheckOutput) ToContainerServiceDeploymentVersionPublicEndpointHealthCheckPtrOutputWithContext

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

func (ContainerServiceDeploymentVersionPublicEndpointHealthCheckOutput) UnhealthyThreshold

Number of consecutive health check failures required before moving the container to the Unhealthy state. Defaults to 2.

type ContainerServiceDeploymentVersionPublicEndpointHealthCheckPtrInput

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

type ContainerServiceDeploymentVersionPublicEndpointHealthCheckPtrOutput struct{ *pulumi.OutputState }

func (ContainerServiceDeploymentVersionPublicEndpointHealthCheckPtrOutput) Elem

func (ContainerServiceDeploymentVersionPublicEndpointHealthCheckPtrOutput) ElementType

func (ContainerServiceDeploymentVersionPublicEndpointHealthCheckPtrOutput) HealthyThreshold

Number of consecutive health check successes required before moving the container to the Healthy state. Defaults to 2.

func (ContainerServiceDeploymentVersionPublicEndpointHealthCheckPtrOutput) IntervalSeconds

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

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

func (ContainerServiceDeploymentVersionPublicEndpointHealthCheckPtrOutput) SuccessCodes

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

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

func (ContainerServiceDeploymentVersionPublicEndpointHealthCheckPtrOutput) ToContainerServiceDeploymentVersionPublicEndpointHealthCheckPtrOutputWithContext

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

func (ContainerServiceDeploymentVersionPublicEndpointHealthCheckPtrOutput) UnhealthyThreshold

Number of consecutive health check failures required before moving the container to the Unhealthy state. Defaults to 2.

type ContainerServiceDeploymentVersionPublicEndpointInput

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

type ContainerServiceDeploymentVersionPublicEndpointOutput struct{ *pulumi.OutputState }

func (ContainerServiceDeploymentVersionPublicEndpointOutput) ContainerName

Name of the container for the endpoint.

func (ContainerServiceDeploymentVersionPublicEndpointOutput) ContainerPort

Port of the container to which traffic is forwarded to.

func (ContainerServiceDeploymentVersionPublicEndpointOutput) ElementType

func (ContainerServiceDeploymentVersionPublicEndpointOutput) HealthCheck

Configuration block that describes the health check configuration of the container. See below.

func (ContainerServiceDeploymentVersionPublicEndpointOutput) ToContainerServiceDeploymentVersionPublicEndpointOutput

func (ContainerServiceDeploymentVersionPublicEndpointOutput) ToContainerServiceDeploymentVersionPublicEndpointOutputWithContext

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

func (ContainerServiceDeploymentVersionPublicEndpointOutput) ToContainerServiceDeploymentVersionPublicEndpointPtrOutput

func (o ContainerServiceDeploymentVersionPublicEndpointOutput) ToContainerServiceDeploymentVersionPublicEndpointPtrOutput() ContainerServiceDeploymentVersionPublicEndpointPtrOutput

func (ContainerServiceDeploymentVersionPublicEndpointOutput) ToContainerServiceDeploymentVersionPublicEndpointPtrOutputWithContext

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

type ContainerServiceDeploymentVersionPublicEndpointPtrInput

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

type ContainerServiceDeploymentVersionPublicEndpointPtrOutput struct{ *pulumi.OutputState }

func (ContainerServiceDeploymentVersionPublicEndpointPtrOutput) ContainerName

Name of the container for the endpoint.

func (ContainerServiceDeploymentVersionPublicEndpointPtrOutput) ContainerPort

Port of the container to which traffic is forwarded to.

func (ContainerServiceDeploymentVersionPublicEndpointPtrOutput) Elem

func (ContainerServiceDeploymentVersionPublicEndpointPtrOutput) ElementType

func (ContainerServiceDeploymentVersionPublicEndpointPtrOutput) HealthCheck

Configuration block that describes the health check configuration of the container. See below.

func (ContainerServiceDeploymentVersionPublicEndpointPtrOutput) ToContainerServiceDeploymentVersionPublicEndpointPtrOutput

func (ContainerServiceDeploymentVersionPublicEndpointPtrOutput) ToContainerServiceDeploymentVersionPublicEndpointPtrOutputWithContext

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

type ContainerServiceDeploymentVersionState

type ContainerServiceDeploymentVersionState struct {
	// Set of configuration blocks that describe the settings of the containers that will be launched on the container service. Maximum of 53. See below.
	Containers ContainerServiceDeploymentVersionContainerArrayInput
	// Date and time when the deployment was created.
	CreatedAt pulumi.StringPtrInput
	// Configuration block that describes the settings of the public endpoint for the container service. See below.
	PublicEndpoint ContainerServiceDeploymentVersionPublicEndpointPtrInput
	// Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
	Region pulumi.StringPtrInput
	// Name of the container service.
	//
	// The following arguments are optional:
	ServiceName pulumi.StringPtrInput
	// Current state of the container service.
	State pulumi.StringPtrInput
	// Version number of the deployment.
	Version pulumi.IntPtrInput
}

func (ContainerServiceDeploymentVersionState) ElementType

type ContainerServiceInput

type ContainerServiceInput interface {
	pulumi.Input

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

type ContainerServiceMap

type ContainerServiceMap map[string]ContainerServiceInput

func (ContainerServiceMap) ElementType

func (ContainerServiceMap) ElementType() reflect.Type

func (ContainerServiceMap) ToContainerServiceMapOutput

func (i ContainerServiceMap) ToContainerServiceMapOutput() ContainerServiceMapOutput

func (ContainerServiceMap) ToContainerServiceMapOutputWithContext

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

type ContainerServiceMapInput

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

type ContainerServiceMapOutput struct{ *pulumi.OutputState }

func (ContainerServiceMapOutput) ElementType

func (ContainerServiceMapOutput) ElementType() reflect.Type

func (ContainerServiceMapOutput) MapIndex

func (ContainerServiceMapOutput) ToContainerServiceMapOutput

func (o ContainerServiceMapOutput) ToContainerServiceMapOutput() ContainerServiceMapOutput

func (ContainerServiceMapOutput) ToContainerServiceMapOutputWithContext

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

type ContainerServiceOutput

type ContainerServiceOutput struct{ *pulumi.OutputState }

func (ContainerServiceOutput) Arn

ARN of the container service.

func (ContainerServiceOutput) AvailabilityZone

func (o ContainerServiceOutput) AvailabilityZone() pulumi.StringOutput

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

func (ContainerServiceOutput) CreatedAt

Date and time when the container service was created.

func (ContainerServiceOutput) ElementType

func (ContainerServiceOutput) ElementType() reflect.Type

func (ContainerServiceOutput) IsDisabled

Whether to disable the container service. Defaults to `false`.

func (ContainerServiceOutput) Name

Name of 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

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

Power ID of the container service.

func (ContainerServiceOutput) PrincipalArn

func (o ContainerServiceOutput) PrincipalArn() pulumi.StringOutput

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.

func (ContainerServiceOutput) PrivateDomainName

func (o ContainerServiceOutput) PrivateDomainName() pulumi.StringOutput

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

Configuration for the container service to access private container image repositories, such as Amazon Elastic Container Registry (Amazon ECR) private repositories. See below.

func (ContainerServiceOutput) PublicDomainNames

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. See below.

func (ContainerServiceOutput) Region

Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.

func (ContainerServiceOutput) ResourceType

func (o ContainerServiceOutput) ResourceType() pulumi.StringOutput

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

func (ContainerServiceOutput) Scale

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

The following arguments are optional:

func (ContainerServiceOutput) State

Current state of the container service.

func (ContainerServiceOutput) Tags

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 (ContainerServiceOutput) TagsAll

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

func (ContainerServiceOutput) ToContainerServiceOutput

func (o ContainerServiceOutput) ToContainerServiceOutput() ContainerServiceOutput

func (ContainerServiceOutput) ToContainerServiceOutputWithContext

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

func (ContainerServiceOutput) Url

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

type ContainerServicePrivateRegistryAccess

type ContainerServicePrivateRegistryAccess struct {
	// Configuration to access private container image repositories, such as Amazon Elastic Container Registry (Amazon ECR) private repositories. See below.
	EcrImagePullerRole *ContainerServicePrivateRegistryAccessEcrImagePullerRole `pulumi:"ecrImagePullerRole"`
}

type ContainerServicePrivateRegistryAccessArgs

type ContainerServicePrivateRegistryAccessArgs struct {
	// Configuration to access private container image repositories, such as Amazon Elastic Container Registry (Amazon ECR) private repositories. See below.
	EcrImagePullerRole ContainerServicePrivateRegistryAccessEcrImagePullerRolePtrInput `pulumi:"ecrImagePullerRole"`
}

func (ContainerServicePrivateRegistryAccessArgs) ElementType

func (ContainerServicePrivateRegistryAccessArgs) ToContainerServicePrivateRegistryAccessOutput

func (i ContainerServicePrivateRegistryAccessArgs) ToContainerServicePrivateRegistryAccessOutput() ContainerServicePrivateRegistryAccessOutput

func (ContainerServicePrivateRegistryAccessArgs) ToContainerServicePrivateRegistryAccessOutputWithContext

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

func (ContainerServicePrivateRegistryAccessArgs) ToContainerServicePrivateRegistryAccessPtrOutput

func (i ContainerServicePrivateRegistryAccessArgs) ToContainerServicePrivateRegistryAccessPtrOutput() ContainerServicePrivateRegistryAccessPtrOutput

func (ContainerServicePrivateRegistryAccessArgs) ToContainerServicePrivateRegistryAccessPtrOutputWithContext

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

type ContainerServicePrivateRegistryAccessEcrImagePullerRole

type ContainerServicePrivateRegistryAccessEcrImagePullerRole struct {
	// Whether to activate the role. Defaults to `false`.
	IsActive *bool `pulumi:"isActive"`
	// 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.
	PrincipalArn *string `pulumi:"principalArn"`
}

type ContainerServicePrivateRegistryAccessEcrImagePullerRoleArgs

type ContainerServicePrivateRegistryAccessEcrImagePullerRoleArgs struct {
	// Whether to activate the role. Defaults to `false`.
	IsActive pulumi.BoolPtrInput `pulumi:"isActive"`
	// 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.
	PrincipalArn pulumi.StringPtrInput `pulumi:"principalArn"`
}

func (ContainerServicePrivateRegistryAccessEcrImagePullerRoleArgs) ElementType

func (ContainerServicePrivateRegistryAccessEcrImagePullerRoleArgs) ToContainerServicePrivateRegistryAccessEcrImagePullerRoleOutput

func (ContainerServicePrivateRegistryAccessEcrImagePullerRoleArgs) ToContainerServicePrivateRegistryAccessEcrImagePullerRoleOutputWithContext

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

func (ContainerServicePrivateRegistryAccessEcrImagePullerRoleArgs) ToContainerServicePrivateRegistryAccessEcrImagePullerRolePtrOutput

func (ContainerServicePrivateRegistryAccessEcrImagePullerRoleArgs) ToContainerServicePrivateRegistryAccessEcrImagePullerRolePtrOutputWithContext

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

type ContainerServicePrivateRegistryAccessEcrImagePullerRoleInput

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

type ContainerServicePrivateRegistryAccessEcrImagePullerRoleOutput struct{ *pulumi.OutputState }

func (ContainerServicePrivateRegistryAccessEcrImagePullerRoleOutput) ElementType

func (ContainerServicePrivateRegistryAccessEcrImagePullerRoleOutput) IsActive

Whether to activate the role. Defaults to `false`.

func (ContainerServicePrivateRegistryAccessEcrImagePullerRoleOutput) PrincipalArn

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.

func (ContainerServicePrivateRegistryAccessEcrImagePullerRoleOutput) ToContainerServicePrivateRegistryAccessEcrImagePullerRoleOutput

func (ContainerServicePrivateRegistryAccessEcrImagePullerRoleOutput) ToContainerServicePrivateRegistryAccessEcrImagePullerRoleOutputWithContext

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

func (ContainerServicePrivateRegistryAccessEcrImagePullerRoleOutput) ToContainerServicePrivateRegistryAccessEcrImagePullerRolePtrOutput

func (ContainerServicePrivateRegistryAccessEcrImagePullerRoleOutput) ToContainerServicePrivateRegistryAccessEcrImagePullerRolePtrOutputWithContext

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

type ContainerServicePrivateRegistryAccessEcrImagePullerRolePtrInput

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

type ContainerServicePrivateRegistryAccessEcrImagePullerRolePtrOutput struct{ *pulumi.OutputState }

func (ContainerServicePrivateRegistryAccessEcrImagePullerRolePtrOutput) Elem

func (ContainerServicePrivateRegistryAccessEcrImagePullerRolePtrOutput) ElementType

func (ContainerServicePrivateRegistryAccessEcrImagePullerRolePtrOutput) IsActive

Whether to activate the role. Defaults to `false`.

func (ContainerServicePrivateRegistryAccessEcrImagePullerRolePtrOutput) PrincipalArn

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.

func (ContainerServicePrivateRegistryAccessEcrImagePullerRolePtrOutput) ToContainerServicePrivateRegistryAccessEcrImagePullerRolePtrOutput

func (ContainerServicePrivateRegistryAccessEcrImagePullerRolePtrOutput) ToContainerServicePrivateRegistryAccessEcrImagePullerRolePtrOutputWithContext

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

type ContainerServicePrivateRegistryAccessInput

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

type ContainerServicePrivateRegistryAccessOutput struct{ *pulumi.OutputState }

func (ContainerServicePrivateRegistryAccessOutput) EcrImagePullerRole

Configuration to access private container image repositories, such as Amazon Elastic Container Registry (Amazon ECR) private repositories. See below.

func (ContainerServicePrivateRegistryAccessOutput) ElementType

func (ContainerServicePrivateRegistryAccessOutput) ToContainerServicePrivateRegistryAccessOutput

func (o ContainerServicePrivateRegistryAccessOutput) ToContainerServicePrivateRegistryAccessOutput() ContainerServicePrivateRegistryAccessOutput

func (ContainerServicePrivateRegistryAccessOutput) ToContainerServicePrivateRegistryAccessOutputWithContext

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

func (ContainerServicePrivateRegistryAccessOutput) ToContainerServicePrivateRegistryAccessPtrOutput

func (o ContainerServicePrivateRegistryAccessOutput) ToContainerServicePrivateRegistryAccessPtrOutput() ContainerServicePrivateRegistryAccessPtrOutput

func (ContainerServicePrivateRegistryAccessOutput) ToContainerServicePrivateRegistryAccessPtrOutputWithContext

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

type ContainerServicePrivateRegistryAccessPtrInput

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

type ContainerServicePrivateRegistryAccessPtrOutput struct{ *pulumi.OutputState }

func (ContainerServicePrivateRegistryAccessPtrOutput) EcrImagePullerRole

Configuration to access private container image repositories, such as Amazon Elastic Container Registry (Amazon ECR) private repositories. See below.

func (ContainerServicePrivateRegistryAccessPtrOutput) Elem

func (ContainerServicePrivateRegistryAccessPtrOutput) ElementType

func (ContainerServicePrivateRegistryAccessPtrOutput) ToContainerServicePrivateRegistryAccessPtrOutput

func (o ContainerServicePrivateRegistryAccessPtrOutput) ToContainerServicePrivateRegistryAccessPtrOutput() ContainerServicePrivateRegistryAccessPtrOutput

func (ContainerServicePrivateRegistryAccessPtrOutput) ToContainerServicePrivateRegistryAccessPtrOutputWithContext

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

type ContainerServicePublicDomainNames

type ContainerServicePublicDomainNames struct {
	// Set of certificate configurations for the public domain names. Each element contains the following attributes:
	Certificates []ContainerServicePublicDomainNamesCertificate `pulumi:"certificates"`
}

type ContainerServicePublicDomainNamesArgs

type ContainerServicePublicDomainNamesArgs struct {
	// Set of certificate configurations for the public domain names. Each element contains the following attributes:
	Certificates ContainerServicePublicDomainNamesCertificateArrayInput `pulumi:"certificates"`
}

func (ContainerServicePublicDomainNamesArgs) ElementType

func (ContainerServicePublicDomainNamesArgs) ToContainerServicePublicDomainNamesOutput

func (i ContainerServicePublicDomainNamesArgs) ToContainerServicePublicDomainNamesOutput() ContainerServicePublicDomainNamesOutput

func (ContainerServicePublicDomainNamesArgs) ToContainerServicePublicDomainNamesOutputWithContext

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

func (ContainerServicePublicDomainNamesArgs) ToContainerServicePublicDomainNamesPtrOutput

func (i ContainerServicePublicDomainNamesArgs) ToContainerServicePublicDomainNamesPtrOutput() ContainerServicePublicDomainNamesPtrOutput

func (ContainerServicePublicDomainNamesArgs) ToContainerServicePublicDomainNamesPtrOutputWithContext

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

type ContainerServicePublicDomainNamesCertificate

type ContainerServicePublicDomainNamesCertificate struct {
	// Name of the certificate.
	CertificateName string `pulumi:"certificateName"`
	// List of domain names for the certificate.
	DomainNames []string `pulumi:"domainNames"`
}

type ContainerServicePublicDomainNamesCertificateArgs

type ContainerServicePublicDomainNamesCertificateArgs struct {
	// Name of the certificate.
	CertificateName pulumi.StringInput `pulumi:"certificateName"`
	// List of domain names for the certificate.
	DomainNames pulumi.StringArrayInput `pulumi:"domainNames"`
}

func (ContainerServicePublicDomainNamesCertificateArgs) ElementType

func (ContainerServicePublicDomainNamesCertificateArgs) ToContainerServicePublicDomainNamesCertificateOutput

func (i ContainerServicePublicDomainNamesCertificateArgs) ToContainerServicePublicDomainNamesCertificateOutput() ContainerServicePublicDomainNamesCertificateOutput

func (ContainerServicePublicDomainNamesCertificateArgs) ToContainerServicePublicDomainNamesCertificateOutputWithContext

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

type ContainerServicePublicDomainNamesCertificateArray

type ContainerServicePublicDomainNamesCertificateArray []ContainerServicePublicDomainNamesCertificateInput

func (ContainerServicePublicDomainNamesCertificateArray) ElementType

func (ContainerServicePublicDomainNamesCertificateArray) ToContainerServicePublicDomainNamesCertificateArrayOutput

func (i ContainerServicePublicDomainNamesCertificateArray) ToContainerServicePublicDomainNamesCertificateArrayOutput() ContainerServicePublicDomainNamesCertificateArrayOutput

func (ContainerServicePublicDomainNamesCertificateArray) ToContainerServicePublicDomainNamesCertificateArrayOutputWithContext

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

type ContainerServicePublicDomainNamesCertificateArrayInput

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

type ContainerServicePublicDomainNamesCertificateArrayOutput struct{ *pulumi.OutputState }

func (ContainerServicePublicDomainNamesCertificateArrayOutput) ElementType

func (ContainerServicePublicDomainNamesCertificateArrayOutput) Index

func (ContainerServicePublicDomainNamesCertificateArrayOutput) ToContainerServicePublicDomainNamesCertificateArrayOutput

func (ContainerServicePublicDomainNamesCertificateArrayOutput) ToContainerServicePublicDomainNamesCertificateArrayOutputWithContext

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

type ContainerServicePublicDomainNamesCertificateInput

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

type ContainerServicePublicDomainNamesCertificateOutput struct{ *pulumi.OutputState }

func (ContainerServicePublicDomainNamesCertificateOutput) CertificateName

Name of the certificate.

func (ContainerServicePublicDomainNamesCertificateOutput) DomainNames

List of domain names for the certificate.

func (ContainerServicePublicDomainNamesCertificateOutput) ElementType

func (ContainerServicePublicDomainNamesCertificateOutput) ToContainerServicePublicDomainNamesCertificateOutput

func (o ContainerServicePublicDomainNamesCertificateOutput) ToContainerServicePublicDomainNamesCertificateOutput() ContainerServicePublicDomainNamesCertificateOutput

func (ContainerServicePublicDomainNamesCertificateOutput) ToContainerServicePublicDomainNamesCertificateOutputWithContext

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

type ContainerServicePublicDomainNamesInput

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

type ContainerServicePublicDomainNamesOutput struct{ *pulumi.OutputState }

func (ContainerServicePublicDomainNamesOutput) Certificates

Set of certificate configurations for the public domain names. Each element contains the following attributes:

func (ContainerServicePublicDomainNamesOutput) ElementType

func (ContainerServicePublicDomainNamesOutput) ToContainerServicePublicDomainNamesOutput

func (o ContainerServicePublicDomainNamesOutput) ToContainerServicePublicDomainNamesOutput() ContainerServicePublicDomainNamesOutput

func (ContainerServicePublicDomainNamesOutput) ToContainerServicePublicDomainNamesOutputWithContext

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

func (ContainerServicePublicDomainNamesOutput) ToContainerServicePublicDomainNamesPtrOutput

func (o ContainerServicePublicDomainNamesOutput) ToContainerServicePublicDomainNamesPtrOutput() ContainerServicePublicDomainNamesPtrOutput

func (ContainerServicePublicDomainNamesOutput) ToContainerServicePublicDomainNamesPtrOutputWithContext

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

type ContainerServicePublicDomainNamesPtrInput

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

type ContainerServicePublicDomainNamesPtrOutput struct{ *pulumi.OutputState }

func (ContainerServicePublicDomainNamesPtrOutput) Certificates

Set of certificate configurations for the public domain names. Each element contains the following attributes:

func (ContainerServicePublicDomainNamesPtrOutput) Elem

func (ContainerServicePublicDomainNamesPtrOutput) ElementType

func (ContainerServicePublicDomainNamesPtrOutput) ToContainerServicePublicDomainNamesPtrOutput

func (o ContainerServicePublicDomainNamesPtrOutput) ToContainerServicePublicDomainNamesPtrOutput() ContainerServicePublicDomainNamesPtrOutput

func (ContainerServicePublicDomainNamesPtrOutput) ToContainerServicePublicDomainNamesPtrOutputWithContext

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

type ContainerServiceState

type ContainerServiceState struct {
	// ARN of the container service.
	Arn pulumi.StringPtrInput
	// Availability Zone. Follows the format us-east-2a (case-sensitive).
	AvailabilityZone pulumi.StringPtrInput
	// Date and time when the container service was created.
	CreatedAt pulumi.StringPtrInput
	// Whether to disable the container service. Defaults to `false`.
	IsDisabled pulumi.BoolPtrInput
	// Name of 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
	// 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
	// Power ID of the container service.
	PowerId pulumi.StringPtrInput
	// 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.
	PrincipalArn pulumi.StringPtrInput
	// 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
	// Configuration for the container service to access private container image repositories, such as Amazon Elastic Container Registry (Amazon ECR) private repositories. See below.
	PrivateRegistryAccess ContainerServicePrivateRegistryAccessPtrInput
	// 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. See below.
	PublicDomainNames ContainerServicePublicDomainNamesPtrInput
	// Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
	Region pulumi.StringPtrInput
	// Lightsail resource type of the container service (i.e., ContainerService).
	ResourceType pulumi.StringPtrInput
	// Scale specification for the container service. The scale specifies the allocated compute nodes of the container service.
	//
	// The following arguments are optional:
	Scale pulumi.IntPtrInput
	// Current state of the container service.
	State pulumi.StringPtrInput
	// 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
	// Map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
	TagsAll pulumi.StringMapInput
	// 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

func (ContainerServiceState) ElementType() reflect.Type

type Database

type Database struct {
	pulumi.CustomResourceState

	// Whether to apply changes immediately. When false, applies changes during the preferred maintenance window. Some changes may cause an outage.
	ApplyImmediately pulumi.BoolOutput `pulumi:"applyImmediately"`
	// ARN of the database (matches `id`).
	Arn pulumi.StringOutput `pulumi:"arn"`
	// Availability Zone in which to create your database. Use the us-east-2a case-sensitive format.
	AvailabilityZone pulumi.StringOutput `pulumi:"availabilityZone"`
	// Whether to enable 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"`
	// Blueprint ID for your 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"`
	// Bundle ID for your 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"`
	// Certificate associated with the database.
	CaCertificateIdentifier pulumi.StringOutput `pulumi:"caCertificateIdentifier"`
	// Number of vCPUs for the database.
	CpuCount pulumi.IntOutput `pulumi:"cpuCount"`
	// Date and time when the database was created.
	CreatedAt pulumi.StringOutput `pulumi:"createdAt"`
	// Size of the disk for the database.
	DiskSize pulumi.Float64Output `pulumi:"diskSize"`
	// Database software (for example, MySQL).
	Engine pulumi.StringOutput `pulumi:"engine"`
	// Database engine version (for example, 5.7.23).
	EngineVersion pulumi.StringOutput `pulumi:"engineVersion"`
	// 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"`
	// Name of the master database created when the Lightsail database resource is created.
	MasterDatabaseName pulumi.StringOutput `pulumi:"masterDatabaseName"`
	// Master endpoint FQDN for the database.
	MasterEndpointAddress pulumi.StringOutput `pulumi:"masterEndpointAddress"`
	// Master endpoint network port for the database.
	MasterEndpointPort pulumi.IntOutput `pulumi:"masterEndpointPort"`
	// Password for the master user of your database. The password can include any printable ASCII character except "/", """, or "@".
	MasterPassword pulumi.StringOutput `pulumi:"masterPassword"`
	// Master user name for your database.
	MasterUsername pulumi.StringOutput `pulumi:"masterUsername"`
	// Daily time range during which automated backups are created for your 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"`
	// Weekly time range during which system maintenance can occur on your 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"`
	// Whether the database is accessible to resources outside of your Lightsail account. 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"`
	// Amount of RAM in GB for the database.
	RamSize pulumi.Float64Output `pulumi:"ramSize"`
	// Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
	Region pulumi.StringOutput `pulumi:"region"`
	// Name to use for your Lightsail database resource. Names be unique within each AWS Region in your Lightsail account.
	//
	// The following arguments are optional:
	RelationalDatabaseName pulumi.StringOutput `pulumi:"relationalDatabaseName"`
	// 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"`
	// 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"`
	// 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"`
	// 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"`
	// Map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
	TagsAll pulumi.StringMapOutput `pulumi:"tagsAll"`
}

Manages a Lightsail database. Use this resource to create and manage fully managed database instances with automated backups, monitoring, and maintenance in Lightsail.

> **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

### Basic MySQL Blueprint

```go package main

import (

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

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := lightsail.NewDatabase(ctx, "example", &lightsail.DatabaseArgs{
			RelationalDatabaseName: pulumi.String("example-database"),
			AvailabilityZone:       pulumi.String("us-east-1a"),
			MasterDatabaseName:     pulumi.String("exampledb"),
			MasterPassword:         pulumi.String("examplepassword123"),
			MasterUsername:         pulumi.String("exampleuser"),
			BlueprintId:            pulumi.String("mysql_8_0"),
			BundleId:               pulumi.String("micro_1_0"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

### Basic PostgreSQL Blueprint

```go package main

import (

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

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := lightsail.NewDatabase(ctx, "example", &lightsail.DatabaseArgs{
			RelationalDatabaseName: pulumi.String("example-database"),
			AvailabilityZone:       pulumi.String("us-east-1a"),
			MasterDatabaseName:     pulumi.String("exampledb"),
			MasterPassword:         pulumi.String("examplepassword123"),
			MasterUsername:         pulumi.String("exampleuser"),
			BlueprintId:            pulumi.String("postgres_12"),
			BundleId:               pulumi.String("micro_1_0"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

### Custom Backup and Maintenance Windows

Below is an example that sets a custom backup and maintenance window. Times are specified in UTC. This example will allow daily backups to take place between 16:00 and 16:30 each day. This example also requires any maintenance tasks (anything that would cause an outage, including changing some attributes) to take place on Tuesdays between 17:00 and 17:30. An action taken against this database that would cause an outage will wait until this time window to make the requested changes.

```go package main

import (

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

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := lightsail.NewDatabase(ctx, "example", &lightsail.DatabaseArgs{
			RelationalDatabaseName:     pulumi.String("example-database"),
			AvailabilityZone:           pulumi.String("us-east-1a"),
			MasterDatabaseName:         pulumi.String("exampledb"),
			MasterPassword:             pulumi.String("examplepassword123"),
			MasterUsername:             pulumi.String("exampleuser"),
			BlueprintId:                pulumi.String("postgres_12"),
			BundleId:                   pulumi.String("micro_1_0"),
			PreferredBackupWindow:      pulumi.String("16:00-16:30"),
			PreferredMaintenanceWindow: pulumi.String("Tue:17:00-Tue:17:30"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

### Final Snapshots

To enable creating a final snapshot of your database on deletion, use the `finalSnapshotName` argument to provide a name to be used for the snapshot.

```go package main

import (

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

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := lightsail.NewDatabase(ctx, "example", &lightsail.DatabaseArgs{
			RelationalDatabaseName:     pulumi.String("example-database"),
			AvailabilityZone:           pulumi.String("us-east-1a"),
			MasterDatabaseName:         pulumi.String("exampledb"),
			MasterPassword:             pulumi.String("examplepassword123"),
			MasterUsername:             pulumi.String("exampleuser"),
			BlueprintId:                pulumi.String("postgres_12"),
			BundleId:                   pulumi.String("micro_1_0"),
			PreferredBackupWindow:      pulumi.String("16:00-16:30"),
			PreferredMaintenanceWindow: pulumi.String("Tue:17:00-Tue:17:30"),
			FinalSnapshotName:          pulumi.String("example-final-snapshot"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

### Apply Immediately

To enable applying changes immediately instead of waiting for a maintenance window, use the `applyImmediately` argument.

```go package main

import (

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

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := lightsail.NewDatabase(ctx, "example", &lightsail.DatabaseArgs{
			RelationalDatabaseName: pulumi.String("example-database"),
			AvailabilityZone:       pulumi.String("us-east-1a"),
			MasterDatabaseName:     pulumi.String("exampledb"),
			MasterPassword:         pulumi.String("examplepassword123"),
			MasterUsername:         pulumi.String("exampleuser"),
			BlueprintId:            pulumi.String("postgres_12"),
			BundleId:               pulumi.String("micro_1_0"),
			ApplyImmediately:       pulumi.Bool(true),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## 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 suffix 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

Using `pulumi import`, import Lightsail Databases using their name. For example:

```sh $ pulumi import aws:lightsail/database:Database example example-database ```

func GetDatabase

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

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

func (*Database) ElementType() reflect.Type

func (*Database) ToDatabaseOutput

func (i *Database) ToDatabaseOutput() DatabaseOutput

func (*Database) ToDatabaseOutputWithContext

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

type DatabaseArgs

type DatabaseArgs struct {
	// Whether to apply changes immediately. When false, applies changes during the preferred maintenance window. Some changes may cause an outage.
	ApplyImmediately pulumi.BoolPtrInput
	// Availability Zone in which to create your database. Use the us-east-2a case-sensitive format.
	AvailabilityZone pulumi.StringPtrInput
	// Whether to enable 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
	// Blueprint ID for your 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
	// Bundle ID for your 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
	// Name of the database snapshot created if skip final snapshot is false, which is the default value for that parameter.
	FinalSnapshotName pulumi.StringPtrInput
	// Name of the master database created when the Lightsail database resource is created.
	MasterDatabaseName pulumi.StringInput
	// Password for the master user of your database. The password can include any printable ASCII character except "/", """, or "@".
	MasterPassword pulumi.StringInput
	// Master user name for your database.
	MasterUsername pulumi.StringInput
	// Daily time range during which automated backups are created for your 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
	// Weekly time range during which system maintenance can occur on your 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
	// Whether the database is accessible to resources outside of your Lightsail account. 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
	// Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
	Region pulumi.StringPtrInput
	// Name to use for your Lightsail database resource. Names be unique within each AWS Region in your Lightsail account.
	//
	// The following arguments are optional:
	RelationalDatabaseName pulumi.StringInput
	// 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
	// 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 Database resource.

func (DatabaseArgs) ElementType

func (DatabaseArgs) ElementType() reflect.Type

type DatabaseArray

type DatabaseArray []DatabaseInput

func (DatabaseArray) ElementType

func (DatabaseArray) ElementType() reflect.Type

func (DatabaseArray) ToDatabaseArrayOutput

func (i DatabaseArray) ToDatabaseArrayOutput() DatabaseArrayOutput

func (DatabaseArray) ToDatabaseArrayOutputWithContext

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

type DatabaseArrayInput

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

type DatabaseArrayOutput struct{ *pulumi.OutputState }

func (DatabaseArrayOutput) ElementType

func (DatabaseArrayOutput) ElementType() reflect.Type

func (DatabaseArrayOutput) Index

func (DatabaseArrayOutput) ToDatabaseArrayOutput

func (o DatabaseArrayOutput) ToDatabaseArrayOutput() DatabaseArrayOutput

func (DatabaseArrayOutput) ToDatabaseArrayOutputWithContext

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

type DatabaseInput

type DatabaseInput interface {
	pulumi.Input

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

type DatabaseMap

type DatabaseMap map[string]DatabaseInput

func (DatabaseMap) ElementType

func (DatabaseMap) ElementType() reflect.Type

func (DatabaseMap) ToDatabaseMapOutput

func (i DatabaseMap) ToDatabaseMapOutput() DatabaseMapOutput

func (DatabaseMap) ToDatabaseMapOutputWithContext

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

type DatabaseMapInput

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

type DatabaseMapOutput struct{ *pulumi.OutputState }

func (DatabaseMapOutput) ElementType

func (DatabaseMapOutput) ElementType() reflect.Type

func (DatabaseMapOutput) MapIndex

func (DatabaseMapOutput) ToDatabaseMapOutput

func (o DatabaseMapOutput) ToDatabaseMapOutput() DatabaseMapOutput

func (DatabaseMapOutput) ToDatabaseMapOutputWithContext

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

type DatabaseOutput

type DatabaseOutput struct{ *pulumi.OutputState }

func (DatabaseOutput) ApplyImmediately

func (o DatabaseOutput) ApplyImmediately() pulumi.BoolOutput

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

func (DatabaseOutput) Arn

ARN of the database (matches `id`).

func (DatabaseOutput) AvailabilityZone

func (o DatabaseOutput) AvailabilityZone() pulumi.StringOutput

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

func (DatabaseOutput) BackupRetentionEnabled

func (o DatabaseOutput) BackupRetentionEnabled() pulumi.BoolPtrOutput

Whether to enable 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

func (o DatabaseOutput) BlueprintId() pulumi.StringOutput

Blueprint ID for your 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

func (o DatabaseOutput) BundleId() pulumi.StringOutput

Bundle ID for your 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

func (o DatabaseOutput) CaCertificateIdentifier() pulumi.StringOutput

Certificate associated with the database.

func (DatabaseOutput) CpuCount

func (o DatabaseOutput) CpuCount() pulumi.IntOutput

Number of vCPUs for the database.

func (DatabaseOutput) CreatedAt

func (o DatabaseOutput) CreatedAt() pulumi.StringOutput

Date and time when the database was created.

func (DatabaseOutput) DiskSize

func (o DatabaseOutput) DiskSize() pulumi.Float64Output

Size of the disk for the database.

func (DatabaseOutput) ElementType

func (DatabaseOutput) ElementType() reflect.Type

func (DatabaseOutput) Engine

func (o DatabaseOutput) Engine() pulumi.StringOutput

Database software (for example, MySQL).

func (DatabaseOutput) EngineVersion

func (o DatabaseOutput) EngineVersion() pulumi.StringOutput

Database engine version (for example, 5.7.23).

func (DatabaseOutput) FinalSnapshotName

func (o DatabaseOutput) FinalSnapshotName() pulumi.StringPtrOutput

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

func (DatabaseOutput) MasterDatabaseName

func (o DatabaseOutput) MasterDatabaseName() pulumi.StringOutput

Name of the master database created when the Lightsail database resource is created.

func (DatabaseOutput) MasterEndpointAddress

func (o DatabaseOutput) MasterEndpointAddress() pulumi.StringOutput

Master endpoint FQDN for the database.

func (DatabaseOutput) MasterEndpointPort

func (o DatabaseOutput) MasterEndpointPort() pulumi.IntOutput

Master endpoint network port for the database.

func (DatabaseOutput) MasterPassword

func (o DatabaseOutput) MasterPassword() pulumi.StringOutput

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

func (DatabaseOutput) MasterUsername

func (o DatabaseOutput) MasterUsername() pulumi.StringOutput

Master user name for your database.

func (DatabaseOutput) PreferredBackupWindow

func (o DatabaseOutput) PreferredBackupWindow() pulumi.StringOutput

Daily time range during which automated backups are created for your 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

func (o DatabaseOutput) PreferredMaintenanceWindow() pulumi.StringOutput

Weekly time range during which system maintenance can occur on your 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

func (o DatabaseOutput) PubliclyAccessible() pulumi.BoolPtrOutput

Whether the database is accessible to resources outside of your Lightsail account. 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

func (o DatabaseOutput) RamSize() pulumi.Float64Output

Amount of RAM in GB for the database.

func (DatabaseOutput) Region

func (o DatabaseOutput) Region() pulumi.StringOutput

Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.

func (DatabaseOutput) RelationalDatabaseName

func (o DatabaseOutput) RelationalDatabaseName() pulumi.StringOutput

Name to use for your Lightsail database resource. Names be unique within each AWS Region in your Lightsail account.

The following arguments are optional:

func (DatabaseOutput) SecondaryAvailabilityZone

func (o DatabaseOutput) SecondaryAvailabilityZone() pulumi.StringOutput

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

func (DatabaseOutput) SkipFinalSnapshot

func (o DatabaseOutput) SkipFinalSnapshot() pulumi.BoolPtrOutput

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

func (o DatabaseOutput) SupportCode() pulumi.StringOutput

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

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 (DatabaseOutput) TagsAll

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

func (DatabaseOutput) ToDatabaseOutput

func (o DatabaseOutput) ToDatabaseOutput() DatabaseOutput

func (DatabaseOutput) ToDatabaseOutputWithContext

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

type DatabaseState

type DatabaseState struct {
	// Whether to apply changes immediately. When false, applies changes during the preferred maintenance window. Some changes may cause an outage.
	ApplyImmediately pulumi.BoolPtrInput
	// ARN of the database (matches `id`).
	Arn pulumi.StringPtrInput
	// Availability Zone in which to create your database. Use the us-east-2a case-sensitive format.
	AvailabilityZone pulumi.StringPtrInput
	// Whether to enable 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
	// Blueprint ID for your 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
	// Bundle ID for your 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
	// Certificate associated with the database.
	CaCertificateIdentifier pulumi.StringPtrInput
	// Number of vCPUs for the database.
	CpuCount pulumi.IntPtrInput
	// Date and time when the database was created.
	CreatedAt pulumi.StringPtrInput
	// Size of the disk for the database.
	DiskSize pulumi.Float64PtrInput
	// Database software (for example, MySQL).
	Engine pulumi.StringPtrInput
	// Database engine version (for example, 5.7.23).
	EngineVersion pulumi.StringPtrInput
	// Name of the database snapshot created if skip final snapshot is false, which is the default value for that parameter.
	FinalSnapshotName pulumi.StringPtrInput
	// Name of the master database created when the Lightsail database resource is created.
	MasterDatabaseName pulumi.StringPtrInput
	// Master endpoint FQDN for the database.
	MasterEndpointAddress pulumi.StringPtrInput
	// Master endpoint network port for the database.
	MasterEndpointPort pulumi.IntPtrInput
	// Password for the master user of your database. The password can include any printable ASCII character except "/", """, or "@".
	MasterPassword pulumi.StringPtrInput
	// Master user name for your database.
	MasterUsername pulumi.StringPtrInput
	// Daily time range during which automated backups are created for your 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
	// Weekly time range during which system maintenance can occur on your 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
	// Whether the database is accessible to resources outside of your Lightsail account. 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
	// Amount of RAM in GB for the database.
	RamSize pulumi.Float64PtrInput
	// Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
	Region pulumi.StringPtrInput
	// Name to use for your Lightsail database resource. Names be unique within each AWS Region in your Lightsail account.
	//
	// The following arguments are optional:
	RelationalDatabaseName pulumi.StringPtrInput
	// Secondary Availability Zone of a high availability database. The secondary database is used for failover support of a high availability database.
	SecondaryAvailabilityZone pulumi.StringPtrInput
	// 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
	// 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
	// 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
	// Map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
	TagsAll pulumi.StringMapInput
}

func (DatabaseState) ElementType

func (DatabaseState) ElementType() reflect.Type

type Disk

type Disk struct {
	pulumi.CustomResourceState

	// ARN of the disk.
	Arn pulumi.StringOutput `pulumi:"arn"`
	// Availability Zone in which to create the disk.
	AvailabilityZone pulumi.StringOutput `pulumi:"availabilityZone"`
	// Date and time when the disk was created.
	CreatedAt pulumi.StringOutput `pulumi:"createdAt"`
	// Name of the disk. Must begin with an alphabetic character and contain only alphanumeric characters, underscores, hyphens, and dots.
	Name pulumi.StringOutput `pulumi:"name"`
	// Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
	Region pulumi.StringOutput `pulumi:"region"`
	// Size of the disk in GB.
	//
	// The following arguments are optional:
	SizeInGb pulumi.IntOutput `pulumi:"sizeInGb"`
	// Support code for the disk. Include this code in your email to support when you have questions about a disk in Lightsail.
	SupportCode pulumi.StringOutput `pulumi:"supportCode"`
	// 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"`
	// Map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
	TagsAll pulumi.StringMapOutput `pulumi:"tagsAll"`
}

Manages a Lightsail disk. Use this resource to create additional block storage that can be attached to Lightsail instances for extra storage capacity.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-aws/sdk/v7/go/aws"
"github.com/pulumi/pulumi-aws/sdk/v7/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, "example", &lightsail.DiskArgs{
			Name:             pulumi.String("example-disk"),
			SizeInGb:         pulumi.Int(8),
			AvailabilityZone: pulumi.String(available.Names[0]),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Using `pulumi import`, import `aws_lightsail_disk` using the name attribute. For example:

```sh $ pulumi import aws:lightsail/disk:Disk example example-disk ```

func GetDisk

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

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

func (*Disk) ElementType() reflect.Type

func (*Disk) ToDiskOutput

func (i *Disk) ToDiskOutput() DiskOutput

func (*Disk) ToDiskOutputWithContext

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

type DiskArgs

type DiskArgs struct {
	// Availability Zone in which to create the disk.
	AvailabilityZone pulumi.StringInput
	// Name of the disk. Must begin with an alphabetic character and contain only alphanumeric characters, underscores, hyphens, and dots.
	Name pulumi.StringPtrInput
	// Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
	Region pulumi.StringPtrInput
	// Size of the disk in GB.
	//
	// The following arguments are optional:
	SizeInGb pulumi.IntInput
	// 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

func (DiskArgs) ElementType() reflect.Type

type DiskArray

type DiskArray []DiskInput

func (DiskArray) ElementType

func (DiskArray) ElementType() reflect.Type

func (DiskArray) ToDiskArrayOutput

func (i DiskArray) ToDiskArrayOutput() DiskArrayOutput

func (DiskArray) ToDiskArrayOutputWithContext

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

type DiskArrayInput

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

type DiskArrayOutput struct{ *pulumi.OutputState }

func (DiskArrayOutput) ElementType

func (DiskArrayOutput) ElementType() reflect.Type

func (DiskArrayOutput) Index

func (DiskArrayOutput) ToDiskArrayOutput

func (o DiskArrayOutput) ToDiskArrayOutput() DiskArrayOutput

func (DiskArrayOutput) ToDiskArrayOutputWithContext

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

type DiskInput

type DiskInput interface {
	pulumi.Input

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

type DiskMap

type DiskMap map[string]DiskInput

func (DiskMap) ElementType

func (DiskMap) ElementType() reflect.Type

func (DiskMap) ToDiskMapOutput

func (i DiskMap) ToDiskMapOutput() DiskMapOutput

func (DiskMap) ToDiskMapOutputWithContext

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

type DiskMapInput

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

type DiskMapOutput struct{ *pulumi.OutputState }

func (DiskMapOutput) ElementType

func (DiskMapOutput) ElementType() reflect.Type

func (DiskMapOutput) MapIndex

func (DiskMapOutput) ToDiskMapOutput

func (o DiskMapOutput) ToDiskMapOutput() DiskMapOutput

func (DiskMapOutput) ToDiskMapOutputWithContext

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

type DiskOutput

type DiskOutput struct{ *pulumi.OutputState }

func (DiskOutput) Arn

func (o DiskOutput) Arn() pulumi.StringOutput

ARN of the disk.

func (DiskOutput) AvailabilityZone

func (o DiskOutput) AvailabilityZone() pulumi.StringOutput

Availability Zone in which to create the disk.

func (DiskOutput) CreatedAt

func (o DiskOutput) CreatedAt() pulumi.StringOutput

Date and time when the disk was created.

func (DiskOutput) ElementType

func (DiskOutput) ElementType() reflect.Type

func (DiskOutput) Name

func (o DiskOutput) Name() pulumi.StringOutput

Name of the disk. Must begin with an alphabetic character and contain only alphanumeric characters, underscores, hyphens, and dots.

func (DiskOutput) Region

func (o DiskOutput) Region() pulumi.StringOutput

Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.

func (DiskOutput) SizeInGb

func (o DiskOutput) SizeInGb() pulumi.IntOutput

Size of the disk in GB.

The following arguments are optional:

func (DiskOutput) SupportCode

func (o DiskOutput) SupportCode() pulumi.StringOutput

Support code for the disk. Include this code in your email to support when you have questions about a disk in Lightsail.

func (DiskOutput) Tags

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

func (o DiskOutput) TagsAll() pulumi.StringMapOutput

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

func (DiskOutput) ToDiskOutput

func (o DiskOutput) ToDiskOutput() DiskOutput

func (DiskOutput) ToDiskOutputWithContext

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

type DiskState

type DiskState struct {
	// ARN of the disk.
	Arn pulumi.StringPtrInput
	// Availability Zone in which to create the disk.
	AvailabilityZone pulumi.StringPtrInput
	// Date and time when the disk was created.
	CreatedAt pulumi.StringPtrInput
	// Name of the disk. Must begin with an alphabetic character and contain only alphanumeric characters, underscores, hyphens, and dots.
	Name pulumi.StringPtrInput
	// Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
	Region pulumi.StringPtrInput
	// Size of the disk in GB.
	//
	// The following arguments are optional:
	SizeInGb pulumi.IntPtrInput
	// Support code for the disk. Include this code in your email to support when you have questions about a disk in Lightsail.
	SupportCode pulumi.StringPtrInput
	// 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
	// Map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
	TagsAll pulumi.StringMapInput
}

func (DiskState) ElementType

func (DiskState) ElementType() reflect.Type

type Disk_attachment

type Disk_attachment struct {
	pulumi.CustomResourceState

	// Name of the Lightsail disk.
	DiskName pulumi.StringOutput `pulumi:"diskName"`
	// Disk path to expose to the instance.
	DiskPath pulumi.StringOutput `pulumi:"diskPath"`
	// Name of the Lightsail instance to attach to.
	InstanceName pulumi.StringOutput `pulumi:"instanceName"`
	// Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
	Region pulumi.StringOutput `pulumi:"region"`
}

Manages a Lightsail disk attachment. Use this resource to attach additional storage disks to your Lightsail instances for expanded storage capacity.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-aws/sdk/v7/go/aws"
"github.com/pulumi/pulumi-aws/sdk/v7/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
		}
		example, err := lightsail.NewDisk(ctx, "example", &lightsail.DiskArgs{
			Name:             pulumi.String("example-disk"),
			SizeInGb:         pulumi.Int(8),
			AvailabilityZone: pulumi.String(available.Names[0]),
		})
		if err != nil {
			return err
		}
		exampleInstance, err := lightsail.NewInstance(ctx, "example", &lightsail.InstanceArgs{
			Name:             pulumi.String("example-instance"),
			AvailabilityZone: pulumi.String(available.Names[0]),
			BlueprintId:      pulumi.String("amazon_linux_2"),
			BundleId:         pulumi.String("nano_3_0"),
		})
		if err != nil {
			return err
		}
		_, err = lightsail.NewDisk_attachment(ctx, "example", &lightsail.Disk_attachmentArgs{
			DiskName:     example.Name,
			InstanceName: exampleInstance.Name,
			DiskPath:     pulumi.String("/dev/xvdf"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Using `pulumi import`, import `aws_lightsail_disk_attachment` using the id attribute. For example:

```sh $ pulumi import aws:lightsail/disk_attachment:Disk_attachment example example-disk,example-instance ```

func GetDisk_attachment

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

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

func (*Disk_attachment) ElementType() reflect.Type

func (*Disk_attachment) ToDisk_attachmentOutput

func (i *Disk_attachment) ToDisk_attachmentOutput() Disk_attachmentOutput

func (*Disk_attachment) ToDisk_attachmentOutputWithContext

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

type Disk_attachmentArgs

type Disk_attachmentArgs struct {
	// Name of the Lightsail disk.
	DiskName pulumi.StringInput
	// Disk path to expose to the instance.
	DiskPath pulumi.StringInput
	// Name of the Lightsail instance to attach to.
	InstanceName pulumi.StringInput
	// Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
	Region pulumi.StringPtrInput
}

The set of arguments for constructing a Disk_attachment resource.

func (Disk_attachmentArgs) ElementType

func (Disk_attachmentArgs) ElementType() reflect.Type

type Disk_attachmentArray

type Disk_attachmentArray []Disk_attachmentInput

func (Disk_attachmentArray) ElementType

func (Disk_attachmentArray) ElementType() reflect.Type

func (Disk_attachmentArray) ToDisk_attachmentArrayOutput

func (i Disk_attachmentArray) ToDisk_attachmentArrayOutput() Disk_attachmentArrayOutput

func (Disk_attachmentArray) ToDisk_attachmentArrayOutputWithContext

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

type Disk_attachmentArrayInput

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

type Disk_attachmentArrayOutput struct{ *pulumi.OutputState }

func (Disk_attachmentArrayOutput) ElementType

func (Disk_attachmentArrayOutput) ElementType() reflect.Type

func (Disk_attachmentArrayOutput) Index

func (Disk_attachmentArrayOutput) ToDisk_attachmentArrayOutput

func (o Disk_attachmentArrayOutput) ToDisk_attachmentArrayOutput() Disk_attachmentArrayOutput

func (Disk_attachmentArrayOutput) ToDisk_attachmentArrayOutputWithContext

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

type Disk_attachmentInput

type Disk_attachmentInput interface {
	pulumi.Input

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

type Disk_attachmentMap

type Disk_attachmentMap map[string]Disk_attachmentInput

func (Disk_attachmentMap) ElementType

func (Disk_attachmentMap) ElementType() reflect.Type

func (Disk_attachmentMap) ToDisk_attachmentMapOutput

func (i Disk_attachmentMap) ToDisk_attachmentMapOutput() Disk_attachmentMapOutput

func (Disk_attachmentMap) ToDisk_attachmentMapOutputWithContext

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

type Disk_attachmentMapInput

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

type Disk_attachmentMapOutput struct{ *pulumi.OutputState }

func (Disk_attachmentMapOutput) ElementType

func (Disk_attachmentMapOutput) ElementType() reflect.Type

func (Disk_attachmentMapOutput) MapIndex

func (Disk_attachmentMapOutput) ToDisk_attachmentMapOutput

func (o Disk_attachmentMapOutput) ToDisk_attachmentMapOutput() Disk_attachmentMapOutput

func (Disk_attachmentMapOutput) ToDisk_attachmentMapOutputWithContext

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

type Disk_attachmentOutput

type Disk_attachmentOutput struct{ *pulumi.OutputState }

func (Disk_attachmentOutput) DiskName

Name of the Lightsail disk.

func (Disk_attachmentOutput) DiskPath

Disk path to expose to the instance.

func (Disk_attachmentOutput) ElementType

func (Disk_attachmentOutput) ElementType() reflect.Type

func (Disk_attachmentOutput) InstanceName

func (o Disk_attachmentOutput) InstanceName() pulumi.StringOutput

Name of the Lightsail instance to attach to.

func (Disk_attachmentOutput) Region

Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.

func (Disk_attachmentOutput) ToDisk_attachmentOutput

func (o Disk_attachmentOutput) ToDisk_attachmentOutput() Disk_attachmentOutput

func (Disk_attachmentOutput) ToDisk_attachmentOutputWithContext

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

type Disk_attachmentState

type Disk_attachmentState struct {
	// Name of the Lightsail disk.
	DiskName pulumi.StringPtrInput
	// Disk path to expose to the instance.
	DiskPath pulumi.StringPtrInput
	// Name of the Lightsail instance to attach to.
	InstanceName pulumi.StringPtrInput
	// Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
	Region pulumi.StringPtrInput
}

func (Disk_attachmentState) ElementType

func (Disk_attachmentState) ElementType() reflect.Type

type Distribution

type Distribution struct {
	pulumi.CustomResourceState

	// Alternate domain names of the distribution.
	AlternativeDomainNames pulumi.StringArrayOutput `pulumi:"alternativeDomainNames"`
	// ARN of the distribution.
	Arn pulumi.StringOutput `pulumi:"arn"`
	// Bundle ID to use for the distribution.
	BundleId pulumi.StringOutput `pulumi:"bundleId"`
	// Cache behavior settings of the distribution. See below.
	CacheBehaviorSettings DistributionCacheBehaviorSettingsPtrOutput `pulumi:"cacheBehaviorSettings"`
	// Per-path cache behavior of the distribution. See below.
	CacheBehaviors DistributionCacheBehaviorArrayOutput `pulumi:"cacheBehaviors"`
	// Name of the SSL/TLS certificate attached to the distribution.
	CertificateName pulumi.StringPtrOutput `pulumi:"certificateName"`
	// Timestamp when the distribution was created.
	CreatedAt pulumi.StringOutput `pulumi:"createdAt"`
	// Default cache behavior of the distribution. See below.
	DefaultCacheBehavior DistributionDefaultCacheBehaviorOutput `pulumi:"defaultCacheBehavior"`
	// Domain name of the distribution.
	DomainName pulumi.StringOutput `pulumi:"domainName"`
	// IP address type of the distribution. Valid values: `dualstack`, `ipv4`. Default: `dualstack`.
	IpAddressType pulumi.StringPtrOutput `pulumi:"ipAddressType"`
	// Whether the distribution is enabled. Default: `true`.
	IsEnabled pulumi.BoolPtrOutput `pulumi:"isEnabled"`
	// Location of the distribution, such as the AWS Region and Availability Zone. See below.
	Locations DistributionLocationArrayOutput `pulumi:"locations"`
	// Name of the distribution.
	Name pulumi.StringOutput `pulumi:"name"`
	// Origin resource of the distribution, such as a Lightsail instance, bucket, or load balancer. See below.
	//
	// The following arguments are optional:
	Origin DistributionOriginOutput `pulumi:"origin"`
	// Public DNS of the origin.
	// * `origin[0].resource_type` - Resource type of the origin resource (e.g., Instance).
	OriginPublicDns pulumi.StringOutput `pulumi:"originPublicDns"`
	// Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
	Region pulumi.StringOutput `pulumi:"region"`
	// Lightsail resource type (e.g., Distribution).
	ResourceType pulumi.StringOutput `pulumi:"resourceType"`
	// Status of the distribution.
	Status pulumi.StringOutput `pulumi:"status"`
	// 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"`
	// Map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
	TagsAll pulumi.StringMapOutput `pulumi:"tagsAll"`
}

Manages a Lightsail content delivery network (CDN) distribution. Use this resource to cache content at edge locations and reduce latency for users accessing your content.

## Example Usage

### Basic Usage

```go package main

import (

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

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := lightsail.NewBucket(ctx, "example", &lightsail.BucketArgs{
			Name:     pulumi.String("example-bucket"),
			BundleId: pulumi.String("small_1_0"),
		})
		if err != nil {
			return err
		}
		_, err = lightsail.NewDistribution(ctx, "example", &lightsail.DistributionArgs{
			Name:     pulumi.String("example-distribution"),
			BundleId: pulumi.String("small_1_0"),
			Origin: &lightsail.DistributionOriginArgs{
				Name:       example.Name,
				RegionName: example.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

```go package main

import (

"github.com/pulumi/pulumi-aws/sdk/v7/go/aws"
"github.com/pulumi/pulumi-aws/sdk/v7/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
		}
		exampleStaticIp, err := lightsail.NewStaticIp(ctx, "example", &lightsail.StaticIpArgs{
			Name: pulumi.String("example-static-ip"),
		})
		if err != nil {
			return err
		}
		exampleInstance, err := lightsail.NewInstance(ctx, "example", &lightsail.InstanceArgs{
			Name:             pulumi.String("example-instance"),
			AvailabilityZone: pulumi.String(available.Names[0]),
			BlueprintId:      pulumi.String("amazon_linux_2"),
			BundleId:         pulumi.String("micro_1_0"),
		})
		if err != nil {
			return err
		}
		example, err := lightsail.NewStaticIpAttachment(ctx, "example", &lightsail.StaticIpAttachmentArgs{
			StaticIpName: exampleStaticIp.Name,
			InstanceName: exampleInstance.Name,
		})
		if err != nil {
			return err
		}
		_, err = lightsail.NewDistribution(ctx, "example", &lightsail.DistributionArgs{
			Name:     pulumi.String("example-distribution"),
			BundleId: pulumi.String("small_1_0"),
			Origin: &lightsail.DistributionOriginArgs{
				Name:       exampleInstance.Name,
				RegionName: pulumi.String(available.Id),
			},
			DefaultCacheBehavior: &lightsail.DistributionDefaultCacheBehaviorArgs{
				Behavior: pulumi.String("cache"),
			},
		}, pulumi.DependsOn([]pulumi.Resource{
			example,
		}))
		if err != nil {
			return err
		}
		return nil
	})
}

```

### Load Balancer Origin

```go package main

import (

"github.com/pulumi/pulumi-aws/sdk/v7/go/aws"
"github.com/pulumi/pulumi-aws/sdk/v7/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
		}
		example, err := lightsail.NewLb(ctx, "example", &lightsail.LbArgs{
			Name:            pulumi.String("example-load-balancer"),
			HealthCheckPath: pulumi.String("/"),
			InstancePort:    pulumi.Int(80),
			Tags: pulumi.StringMap{
				"foo": pulumi.String("bar"),
			},
		})
		if err != nil {
			return err
		}
		exampleInstance, err := lightsail.NewInstance(ctx, "example", &lightsail.InstanceArgs{
			Name:             pulumi.String("example-instance"),
			AvailabilityZone: pulumi.String(available.Names[0]),
			BlueprintId:      pulumi.String("amazon_linux_2"),
			BundleId:         pulumi.String("nano_3_0"),
		})
		if err != nil {
			return err
		}
		exampleLbAttachment, err := lightsail.NewLbAttachment(ctx, "example", &lightsail.LbAttachmentArgs{
			LbName:       example.Name,
			InstanceName: exampleInstance.Name,
		})
		if err != nil {
			return err
		}
		_, err = lightsail.NewDistribution(ctx, "example", &lightsail.DistributionArgs{
			Name:     pulumi.String("example-distribution"),
			BundleId: pulumi.String("small_1_0"),
			Origin: &lightsail.DistributionOriginArgs{
				Name:       example.Name,
				RegionName: pulumi.String(available.Id),
			},
			DefaultCacheBehavior: &lightsail.DistributionDefaultCacheBehaviorArgs{
				Behavior: pulumi.String("cache"),
			},
		}, pulumi.DependsOn([]pulumi.Resource{
			exampleLbAttachment,
		}))
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Using `pulumi import`, import Lightsail Distribution using the `name`. For example:

```sh $ pulumi import aws:lightsail/distribution:Distribution example example-distribution ```

func GetDistribution

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

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

func (*Distribution) ElementType() reflect.Type

func (*Distribution) ToDistributionOutput

func (i *Distribution) ToDistributionOutput() DistributionOutput

func (*Distribution) ToDistributionOutputWithContext

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

type DistributionArgs

type DistributionArgs struct {
	// Bundle ID to use for the distribution.
	BundleId pulumi.StringInput
	// Cache behavior settings of the distribution. See below.
	CacheBehaviorSettings DistributionCacheBehaviorSettingsPtrInput
	// Per-path cache behavior of the distribution. See below.
	CacheBehaviors DistributionCacheBehaviorArrayInput
	// Name of the SSL/TLS certificate attached to the distribution.
	CertificateName pulumi.StringPtrInput
	// Default cache behavior of the distribution. See below.
	DefaultCacheBehavior DistributionDefaultCacheBehaviorInput
	// IP address type of the distribution. Valid values: `dualstack`, `ipv4`. Default: `dualstack`.
	IpAddressType pulumi.StringPtrInput
	// Whether the distribution is enabled. Default: `true`.
	IsEnabled pulumi.BoolPtrInput
	// Name of the distribution.
	Name pulumi.StringPtrInput
	// Origin resource of the distribution, such as a Lightsail instance, bucket, or load balancer. See below.
	//
	// The following arguments are optional:
	Origin DistributionOriginInput
	// Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
	Region 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
}

The set of arguments for constructing a Distribution resource.

func (DistributionArgs) ElementType

func (DistributionArgs) ElementType() reflect.Type

type DistributionArray

type DistributionArray []DistributionInput

func (DistributionArray) ElementType

func (DistributionArray) ElementType() reflect.Type

func (DistributionArray) ToDistributionArrayOutput

func (i DistributionArray) ToDistributionArrayOutput() DistributionArrayOutput

func (DistributionArray) ToDistributionArrayOutputWithContext

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

type DistributionArrayInput

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

type DistributionArrayOutput struct{ *pulumi.OutputState }

func (DistributionArrayOutput) ElementType

func (DistributionArrayOutput) ElementType() reflect.Type

func (DistributionArrayOutput) Index

func (DistributionArrayOutput) ToDistributionArrayOutput

func (o DistributionArrayOutput) ToDistributionArrayOutput() DistributionArrayOutput

func (DistributionArrayOutput) ToDistributionArrayOutputWithContext

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

type DistributionCacheBehavior

type DistributionCacheBehavior struct {
	// Cache behavior for the specified path. Valid values: `cache`, `dont-cache`.
	Behavior string `pulumi:"behavior"`
	// Path to a directory or file to cache, 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

type DistributionCacheBehaviorArgs struct {
	// Cache behavior for the specified path. Valid values: `cache`, `dont-cache`.
	Behavior pulumi.StringInput `pulumi:"behavior"`
	// Path to a directory or file to cache, 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

func (DistributionCacheBehaviorArgs) ToDistributionCacheBehaviorOutput

func (i DistributionCacheBehaviorArgs) ToDistributionCacheBehaviorOutput() DistributionCacheBehaviorOutput

func (DistributionCacheBehaviorArgs) ToDistributionCacheBehaviorOutputWithContext

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

type DistributionCacheBehaviorArray

type DistributionCacheBehaviorArray []DistributionCacheBehaviorInput

func (DistributionCacheBehaviorArray) ElementType

func (DistributionCacheBehaviorArray) ToDistributionCacheBehaviorArrayOutput

func (i DistributionCacheBehaviorArray) ToDistributionCacheBehaviorArrayOutput() DistributionCacheBehaviorArrayOutput

func (DistributionCacheBehaviorArray) ToDistributionCacheBehaviorArrayOutputWithContext

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

type DistributionCacheBehaviorArrayInput

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

type DistributionCacheBehaviorArrayOutput struct{ *pulumi.OutputState }

func (DistributionCacheBehaviorArrayOutput) ElementType

func (DistributionCacheBehaviorArrayOutput) Index

func (DistributionCacheBehaviorArrayOutput) ToDistributionCacheBehaviorArrayOutput

func (o DistributionCacheBehaviorArrayOutput) ToDistributionCacheBehaviorArrayOutput() DistributionCacheBehaviorArrayOutput

func (DistributionCacheBehaviorArrayOutput) ToDistributionCacheBehaviorArrayOutputWithContext

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

type DistributionCacheBehaviorInput

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

type DistributionCacheBehaviorOutput struct{ *pulumi.OutputState }

func (DistributionCacheBehaviorOutput) Behavior

Cache behavior for the specified path. Valid values: `cache`, `dont-cache`.

func (DistributionCacheBehaviorOutput) ElementType

func (DistributionCacheBehaviorOutput) Path

Path to a directory or file to cache, 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

func (o DistributionCacheBehaviorOutput) ToDistributionCacheBehaviorOutput() DistributionCacheBehaviorOutput

func (DistributionCacheBehaviorOutput) ToDistributionCacheBehaviorOutputWithContext

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

type DistributionCacheBehaviorSettings

type DistributionCacheBehaviorSettings struct {
	// HTTP methods that are processed and forwarded to the distribution's origin.
	AllowedHttpMethods *string `pulumi:"allowedHttpMethods"`
	// HTTP method responses that are cached by your distribution.
	CachedHttpMethods *string `pulumi:"cachedHttpMethods"`
	// 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"`
	// Cookies that are forwarded to the origin. Your content is cached based on the cookies that are forwarded. See below.
	ForwardedCookies *DistributionCacheBehaviorSettingsForwardedCookies `pulumi:"forwardedCookies"`
	// Headers that are forwarded to the origin. Your content is cached based on the headers that are forwarded. See below.
	ForwardedHeaders *DistributionCacheBehaviorSettingsForwardedHeaders `pulumi:"forwardedHeaders"`
	// Query strings that are forwarded to the origin. Your content is cached based on the query strings that are forwarded. See below.
	ForwardedQueryStrings *DistributionCacheBehaviorSettingsForwardedQueryStrings `pulumi:"forwardedQueryStrings"`
	// 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"`
	// 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

type DistributionCacheBehaviorSettingsArgs struct {
	// HTTP methods that are processed and forwarded to the distribution's origin.
	AllowedHttpMethods pulumi.StringPtrInput `pulumi:"allowedHttpMethods"`
	// HTTP method responses that are cached by your distribution.
	CachedHttpMethods pulumi.StringPtrInput `pulumi:"cachedHttpMethods"`
	// 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"`
	// Cookies that are forwarded to the origin. Your content is cached based on the cookies that are forwarded. See below.
	ForwardedCookies DistributionCacheBehaviorSettingsForwardedCookiesPtrInput `pulumi:"forwardedCookies"`
	// Headers that are forwarded to the origin. Your content is cached based on the headers that are forwarded. See below.
	ForwardedHeaders DistributionCacheBehaviorSettingsForwardedHeadersPtrInput `pulumi:"forwardedHeaders"`
	// Query strings that are forwarded to the origin. Your content is cached based on the query strings that are forwarded. See below.
	ForwardedQueryStrings DistributionCacheBehaviorSettingsForwardedQueryStringsPtrInput `pulumi:"forwardedQueryStrings"`
	// 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"`
	// 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

func (DistributionCacheBehaviorSettingsArgs) ToDistributionCacheBehaviorSettingsOutput

func (i DistributionCacheBehaviorSettingsArgs) ToDistributionCacheBehaviorSettingsOutput() DistributionCacheBehaviorSettingsOutput

func (DistributionCacheBehaviorSettingsArgs) ToDistributionCacheBehaviorSettingsOutputWithContext

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

func (DistributionCacheBehaviorSettingsArgs) ToDistributionCacheBehaviorSettingsPtrOutput

func (i DistributionCacheBehaviorSettingsArgs) ToDistributionCacheBehaviorSettingsPtrOutput() DistributionCacheBehaviorSettingsPtrOutput

func (DistributionCacheBehaviorSettingsArgs) ToDistributionCacheBehaviorSettingsPtrOutputWithContext

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

type DistributionCacheBehaviorSettingsForwardedCookies

type DistributionCacheBehaviorSettingsForwardedCookies struct {
	// Specific cookies to forward to your distribution's origin.
	CookiesAllowLists []string `pulumi:"cookiesAllowLists"`
	// Which cookies to forward to the distribution's origin for a cache behavior. Valid values: `all`, `none`, `allow-list`.
	Option *string `pulumi:"option"`
}

type DistributionCacheBehaviorSettingsForwardedCookiesArgs

type DistributionCacheBehaviorSettingsForwardedCookiesArgs struct {
	// Specific cookies to forward to your distribution's origin.
	CookiesAllowLists pulumi.StringArrayInput `pulumi:"cookiesAllowLists"`
	// Which cookies to forward to the distribution's origin for a cache behavior. Valid values: `all`, `none`, `allow-list`.
	Option pulumi.StringPtrInput `pulumi:"option"`
}

func (DistributionCacheBehaviorSettingsForwardedCookiesArgs) ElementType

func (DistributionCacheBehaviorSettingsForwardedCookiesArgs) ToDistributionCacheBehaviorSettingsForwardedCookiesOutput

func (i DistributionCacheBehaviorSettingsForwardedCookiesArgs) ToDistributionCacheBehaviorSettingsForwardedCookiesOutput() DistributionCacheBehaviorSettingsForwardedCookiesOutput

func (DistributionCacheBehaviorSettingsForwardedCookiesArgs) ToDistributionCacheBehaviorSettingsForwardedCookiesOutputWithContext

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

func (DistributionCacheBehaviorSettingsForwardedCookiesArgs) ToDistributionCacheBehaviorSettingsForwardedCookiesPtrOutput

func (i DistributionCacheBehaviorSettingsForwardedCookiesArgs) ToDistributionCacheBehaviorSettingsForwardedCookiesPtrOutput() DistributionCacheBehaviorSettingsForwardedCookiesPtrOutput

func (DistributionCacheBehaviorSettingsForwardedCookiesArgs) ToDistributionCacheBehaviorSettingsForwardedCookiesPtrOutputWithContext

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

type DistributionCacheBehaviorSettingsForwardedCookiesInput

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

type DistributionCacheBehaviorSettingsForwardedCookiesOutput struct{ *pulumi.OutputState }

func (DistributionCacheBehaviorSettingsForwardedCookiesOutput) CookiesAllowLists

Specific cookies to forward to your distribution's origin.

func (DistributionCacheBehaviorSettingsForwardedCookiesOutput) ElementType

func (DistributionCacheBehaviorSettingsForwardedCookiesOutput) Option

Which cookies to forward to the distribution's origin for a cache behavior. Valid values: `all`, `none`, `allow-list`.

func (DistributionCacheBehaviorSettingsForwardedCookiesOutput) ToDistributionCacheBehaviorSettingsForwardedCookiesOutput

func (DistributionCacheBehaviorSettingsForwardedCookiesOutput) ToDistributionCacheBehaviorSettingsForwardedCookiesOutputWithContext

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

func (DistributionCacheBehaviorSettingsForwardedCookiesOutput) ToDistributionCacheBehaviorSettingsForwardedCookiesPtrOutput

func (DistributionCacheBehaviorSettingsForwardedCookiesOutput) ToDistributionCacheBehaviorSettingsForwardedCookiesPtrOutputWithContext

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

type DistributionCacheBehaviorSettingsForwardedCookiesPtrInput

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

type DistributionCacheBehaviorSettingsForwardedCookiesPtrOutput struct{ *pulumi.OutputState }

func (DistributionCacheBehaviorSettingsForwardedCookiesPtrOutput) CookiesAllowLists

Specific cookies to forward to your distribution's origin.

func (DistributionCacheBehaviorSettingsForwardedCookiesPtrOutput) Elem

func (DistributionCacheBehaviorSettingsForwardedCookiesPtrOutput) ElementType

func (DistributionCacheBehaviorSettingsForwardedCookiesPtrOutput) Option

Which cookies to forward to the distribution's origin for a cache behavior. Valid values: `all`, `none`, `allow-list`.

func (DistributionCacheBehaviorSettingsForwardedCookiesPtrOutput) ToDistributionCacheBehaviorSettingsForwardedCookiesPtrOutput

func (DistributionCacheBehaviorSettingsForwardedCookiesPtrOutput) ToDistributionCacheBehaviorSettingsForwardedCookiesPtrOutputWithContext

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

type DistributionCacheBehaviorSettingsForwardedHeaders

type DistributionCacheBehaviorSettingsForwardedHeaders struct {
	// Specific headers to forward to your distribution's origin.
	HeadersAllowLists []string `pulumi:"headersAllowLists"`
	// Headers that you want your distribution to forward to your origin and base caching on. Valid values: `default`, `allow-list`, `all`.
	Option *string `pulumi:"option"`
}

type DistributionCacheBehaviorSettingsForwardedHeadersArgs

type DistributionCacheBehaviorSettingsForwardedHeadersArgs struct {
	// Specific headers to forward to your distribution's origin.
	HeadersAllowLists pulumi.StringArrayInput `pulumi:"headersAllowLists"`
	// Headers that you want your distribution to forward to your origin and base caching on. Valid values: `default`, `allow-list`, `all`.
	Option pulumi.StringPtrInput `pulumi:"option"`
}

func (DistributionCacheBehaviorSettingsForwardedHeadersArgs) ElementType

func (DistributionCacheBehaviorSettingsForwardedHeadersArgs) ToDistributionCacheBehaviorSettingsForwardedHeadersOutput

func (i DistributionCacheBehaviorSettingsForwardedHeadersArgs) ToDistributionCacheBehaviorSettingsForwardedHeadersOutput() DistributionCacheBehaviorSettingsForwardedHeadersOutput

func (DistributionCacheBehaviorSettingsForwardedHeadersArgs) ToDistributionCacheBehaviorSettingsForwardedHeadersOutputWithContext

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

func (DistributionCacheBehaviorSettingsForwardedHeadersArgs) ToDistributionCacheBehaviorSettingsForwardedHeadersPtrOutput

func (i DistributionCacheBehaviorSettingsForwardedHeadersArgs) ToDistributionCacheBehaviorSettingsForwardedHeadersPtrOutput() DistributionCacheBehaviorSettingsForwardedHeadersPtrOutput

func (DistributionCacheBehaviorSettingsForwardedHeadersArgs) ToDistributionCacheBehaviorSettingsForwardedHeadersPtrOutputWithContext

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

type DistributionCacheBehaviorSettingsForwardedHeadersInput

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

type DistributionCacheBehaviorSettingsForwardedHeadersOutput struct{ *pulumi.OutputState }

func (DistributionCacheBehaviorSettingsForwardedHeadersOutput) ElementType

func (DistributionCacheBehaviorSettingsForwardedHeadersOutput) HeadersAllowLists

Specific headers to forward to your distribution's origin.

func (DistributionCacheBehaviorSettingsForwardedHeadersOutput) Option

Headers that you want your distribution to forward to your origin and base caching on. Valid values: `default`, `allow-list`, `all`.

func (DistributionCacheBehaviorSettingsForwardedHeadersOutput) ToDistributionCacheBehaviorSettingsForwardedHeadersOutput

func (DistributionCacheBehaviorSettingsForwardedHeadersOutput) ToDistributionCacheBehaviorSettingsForwardedHeadersOutputWithContext

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

func (DistributionCacheBehaviorSettingsForwardedHeadersOutput) ToDistributionCacheBehaviorSettingsForwardedHeadersPtrOutput

func (DistributionCacheBehaviorSettingsForwardedHeadersOutput) ToDistributionCacheBehaviorSettingsForwardedHeadersPtrOutputWithContext

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

type DistributionCacheBehaviorSettingsForwardedHeadersPtrInput

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

type DistributionCacheBehaviorSettingsForwardedHeadersPtrOutput struct{ *pulumi.OutputState }

func (DistributionCacheBehaviorSettingsForwardedHeadersPtrOutput) Elem

func (DistributionCacheBehaviorSettingsForwardedHeadersPtrOutput) ElementType

func (DistributionCacheBehaviorSettingsForwardedHeadersPtrOutput) HeadersAllowLists

Specific headers to forward to your distribution's origin.

func (DistributionCacheBehaviorSettingsForwardedHeadersPtrOutput) Option

Headers that you want your distribution to forward to your origin and base caching on. Valid values: `default`, `allow-list`, `all`.

func (DistributionCacheBehaviorSettingsForwardedHeadersPtrOutput) ToDistributionCacheBehaviorSettingsForwardedHeadersPtrOutput

func (DistributionCacheBehaviorSettingsForwardedHeadersPtrOutput) ToDistributionCacheBehaviorSettingsForwardedHeadersPtrOutputWithContext

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

type DistributionCacheBehaviorSettingsForwardedQueryStrings

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

type DistributionCacheBehaviorSettingsForwardedQueryStringsArgs

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

func (DistributionCacheBehaviorSettingsForwardedQueryStringsArgs) ElementType

func (DistributionCacheBehaviorSettingsForwardedQueryStringsArgs) ToDistributionCacheBehaviorSettingsForwardedQueryStringsOutput

func (DistributionCacheBehaviorSettingsForwardedQueryStringsArgs) ToDistributionCacheBehaviorSettingsForwardedQueryStringsOutputWithContext

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

func (DistributionCacheBehaviorSettingsForwardedQueryStringsArgs) ToDistributionCacheBehaviorSettingsForwardedQueryStringsPtrOutput

func (DistributionCacheBehaviorSettingsForwardedQueryStringsArgs) ToDistributionCacheBehaviorSettingsForwardedQueryStringsPtrOutputWithContext

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

type DistributionCacheBehaviorSettingsForwardedQueryStringsInput

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

type DistributionCacheBehaviorSettingsForwardedQueryStringsOutput struct{ *pulumi.OutputState }

func (DistributionCacheBehaviorSettingsForwardedQueryStringsOutput) ElementType

func (DistributionCacheBehaviorSettingsForwardedQueryStringsOutput) Option

Whether the distribution forwards and caches based on query strings.

func (DistributionCacheBehaviorSettingsForwardedQueryStringsOutput) QueryStringsAllowedLists

Specific query strings that the distribution forwards to the origin.

func (DistributionCacheBehaviorSettingsForwardedQueryStringsOutput) ToDistributionCacheBehaviorSettingsForwardedQueryStringsOutput

func (DistributionCacheBehaviorSettingsForwardedQueryStringsOutput) ToDistributionCacheBehaviorSettingsForwardedQueryStringsOutputWithContext

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

func (DistributionCacheBehaviorSettingsForwardedQueryStringsOutput) ToDistributionCacheBehaviorSettingsForwardedQueryStringsPtrOutput

func (DistributionCacheBehaviorSettingsForwardedQueryStringsOutput) ToDistributionCacheBehaviorSettingsForwardedQueryStringsPtrOutputWithContext

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

type DistributionCacheBehaviorSettingsForwardedQueryStringsPtrInput

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

type DistributionCacheBehaviorSettingsForwardedQueryStringsPtrOutput struct{ *pulumi.OutputState }

func (DistributionCacheBehaviorSettingsForwardedQueryStringsPtrOutput) Elem

func (DistributionCacheBehaviorSettingsForwardedQueryStringsPtrOutput) ElementType

func (DistributionCacheBehaviorSettingsForwardedQueryStringsPtrOutput) Option

Whether the distribution forwards and caches based on query strings.

func (DistributionCacheBehaviorSettingsForwardedQueryStringsPtrOutput) QueryStringsAllowedLists

Specific query strings that the distribution forwards to the origin.

func (DistributionCacheBehaviorSettingsForwardedQueryStringsPtrOutput) ToDistributionCacheBehaviorSettingsForwardedQueryStringsPtrOutput

func (DistributionCacheBehaviorSettingsForwardedQueryStringsPtrOutput) ToDistributionCacheBehaviorSettingsForwardedQueryStringsPtrOutputWithContext

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

type DistributionCacheBehaviorSettingsInput

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

type DistributionCacheBehaviorSettingsOutput struct{ *pulumi.OutputState }

func (DistributionCacheBehaviorSettingsOutput) AllowedHttpMethods

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

func (DistributionCacheBehaviorSettingsOutput) CachedHttpMethods

HTTP method responses that are cached by your distribution.

func (DistributionCacheBehaviorSettingsOutput) DefaultTtl

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

func (DistributionCacheBehaviorSettingsOutput) ForwardedCookies

Cookies that are forwarded to the origin. Your content is cached based on the cookies that are forwarded. See below.

func (DistributionCacheBehaviorSettingsOutput) ForwardedHeaders

Headers that are forwarded to the origin. Your content is cached based on the headers that are forwarded. See below.

func (DistributionCacheBehaviorSettingsOutput) ForwardedQueryStrings

Query strings that are forwarded to the origin. Your content is cached based on the query strings that are forwarded. See below.

func (DistributionCacheBehaviorSettingsOutput) MaximumTtl

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

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

func (o DistributionCacheBehaviorSettingsOutput) ToDistributionCacheBehaviorSettingsOutput() DistributionCacheBehaviorSettingsOutput

func (DistributionCacheBehaviorSettingsOutput) ToDistributionCacheBehaviorSettingsOutputWithContext

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

func (DistributionCacheBehaviorSettingsOutput) ToDistributionCacheBehaviorSettingsPtrOutput

func (o DistributionCacheBehaviorSettingsOutput) ToDistributionCacheBehaviorSettingsPtrOutput() DistributionCacheBehaviorSettingsPtrOutput

func (DistributionCacheBehaviorSettingsOutput) ToDistributionCacheBehaviorSettingsPtrOutputWithContext

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

type DistributionCacheBehaviorSettingsPtrInput

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

type DistributionCacheBehaviorSettingsPtrOutput struct{ *pulumi.OutputState }

func (DistributionCacheBehaviorSettingsPtrOutput) AllowedHttpMethods

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

func (DistributionCacheBehaviorSettingsPtrOutput) CachedHttpMethods

HTTP method responses that are cached by your distribution.

func (DistributionCacheBehaviorSettingsPtrOutput) DefaultTtl

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

func (DistributionCacheBehaviorSettingsPtrOutput) ElementType

func (DistributionCacheBehaviorSettingsPtrOutput) ForwardedCookies

Cookies that are forwarded to the origin. Your content is cached based on the cookies that are forwarded. See below.

func (DistributionCacheBehaviorSettingsPtrOutput) ForwardedHeaders

Headers that are forwarded to the origin. Your content is cached based on the headers that are forwarded. See below.

func (DistributionCacheBehaviorSettingsPtrOutput) ForwardedQueryStrings

Query strings that are forwarded to the origin. Your content is cached based on the query strings that are forwarded. See below.

func (DistributionCacheBehaviorSettingsPtrOutput) MaximumTtl

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

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

func (o DistributionCacheBehaviorSettingsPtrOutput) ToDistributionCacheBehaviorSettingsPtrOutput() DistributionCacheBehaviorSettingsPtrOutput

func (DistributionCacheBehaviorSettingsPtrOutput) ToDistributionCacheBehaviorSettingsPtrOutputWithContext

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

type DistributionDefaultCacheBehavior

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

type DistributionDefaultCacheBehaviorArgs

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

func (DistributionDefaultCacheBehaviorArgs) ElementType

func (DistributionDefaultCacheBehaviorArgs) ToDistributionDefaultCacheBehaviorOutput

func (i DistributionDefaultCacheBehaviorArgs) ToDistributionDefaultCacheBehaviorOutput() DistributionDefaultCacheBehaviorOutput

func (DistributionDefaultCacheBehaviorArgs) ToDistributionDefaultCacheBehaviorOutputWithContext

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

func (DistributionDefaultCacheBehaviorArgs) ToDistributionDefaultCacheBehaviorPtrOutput

func (i DistributionDefaultCacheBehaviorArgs) ToDistributionDefaultCacheBehaviorPtrOutput() DistributionDefaultCacheBehaviorPtrOutput

func (DistributionDefaultCacheBehaviorArgs) ToDistributionDefaultCacheBehaviorPtrOutputWithContext

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

type DistributionDefaultCacheBehaviorInput

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

type DistributionDefaultCacheBehaviorOutput struct{ *pulumi.OutputState }

func (DistributionDefaultCacheBehaviorOutput) Behavior

Cache behavior of the distribution. Valid values: `cache`, `dont-cache`.

func (DistributionDefaultCacheBehaviorOutput) ElementType

func (DistributionDefaultCacheBehaviorOutput) ToDistributionDefaultCacheBehaviorOutput

func (o DistributionDefaultCacheBehaviorOutput) ToDistributionDefaultCacheBehaviorOutput() DistributionDefaultCacheBehaviorOutput

func (DistributionDefaultCacheBehaviorOutput) ToDistributionDefaultCacheBehaviorOutputWithContext

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

func (DistributionDefaultCacheBehaviorOutput) ToDistributionDefaultCacheBehaviorPtrOutput

func (o DistributionDefaultCacheBehaviorOutput) ToDistributionDefaultCacheBehaviorPtrOutput() DistributionDefaultCacheBehaviorPtrOutput

func (DistributionDefaultCacheBehaviorOutput) ToDistributionDefaultCacheBehaviorPtrOutputWithContext

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

type DistributionDefaultCacheBehaviorPtrInput

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

type DistributionDefaultCacheBehaviorPtrOutput struct{ *pulumi.OutputState }

func (DistributionDefaultCacheBehaviorPtrOutput) Behavior

Cache behavior of the distribution. Valid values: `cache`, `dont-cache`.

func (DistributionDefaultCacheBehaviorPtrOutput) Elem

func (DistributionDefaultCacheBehaviorPtrOutput) ElementType

func (DistributionDefaultCacheBehaviorPtrOutput) ToDistributionDefaultCacheBehaviorPtrOutput

func (o DistributionDefaultCacheBehaviorPtrOutput) ToDistributionDefaultCacheBehaviorPtrOutput() DistributionDefaultCacheBehaviorPtrOutput

func (DistributionDefaultCacheBehaviorPtrOutput) ToDistributionDefaultCacheBehaviorPtrOutputWithContext

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

type DistributionInput

type DistributionInput interface {
	pulumi.Input

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

type DistributionLocation

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

type DistributionLocationArgs

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

func (DistributionLocationArgs) ElementType

func (DistributionLocationArgs) ElementType() reflect.Type

func (DistributionLocationArgs) ToDistributionLocationOutput

func (i DistributionLocationArgs) ToDistributionLocationOutput() DistributionLocationOutput

func (DistributionLocationArgs) ToDistributionLocationOutputWithContext

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

type DistributionLocationArray

type DistributionLocationArray []DistributionLocationInput

func (DistributionLocationArray) ElementType

func (DistributionLocationArray) ElementType() reflect.Type

func (DistributionLocationArray) ToDistributionLocationArrayOutput

func (i DistributionLocationArray) ToDistributionLocationArrayOutput() DistributionLocationArrayOutput

func (DistributionLocationArray) ToDistributionLocationArrayOutputWithContext

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

type DistributionLocationArrayInput

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

type DistributionLocationArrayOutput struct{ *pulumi.OutputState }

func (DistributionLocationArrayOutput) ElementType

func (DistributionLocationArrayOutput) Index

func (DistributionLocationArrayOutput) ToDistributionLocationArrayOutput

func (o DistributionLocationArrayOutput) ToDistributionLocationArrayOutput() DistributionLocationArrayOutput

func (DistributionLocationArrayOutput) ToDistributionLocationArrayOutputWithContext

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

type DistributionLocationInput

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

type DistributionLocationOutput struct{ *pulumi.OutputState }

func (DistributionLocationOutput) AvailabilityZone

func (o DistributionLocationOutput) AvailabilityZone() pulumi.StringOutput

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

func (DistributionLocationOutput) ElementType

func (DistributionLocationOutput) ElementType() reflect.Type

func (DistributionLocationOutput) RegionName

AWS Region name.

func (DistributionLocationOutput) ToDistributionLocationOutput

func (o DistributionLocationOutput) ToDistributionLocationOutput() DistributionLocationOutput

func (DistributionLocationOutput) ToDistributionLocationOutputWithContext

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

type DistributionMap

type DistributionMap map[string]DistributionInput

func (DistributionMap) ElementType

func (DistributionMap) ElementType() reflect.Type

func (DistributionMap) ToDistributionMapOutput

func (i DistributionMap) ToDistributionMapOutput() DistributionMapOutput

func (DistributionMap) ToDistributionMapOutputWithContext

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

type DistributionMapInput

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

type DistributionMapOutput struct{ *pulumi.OutputState }

func (DistributionMapOutput) ElementType

func (DistributionMapOutput) ElementType() reflect.Type

func (DistributionMapOutput) MapIndex

func (DistributionMapOutput) ToDistributionMapOutput

func (o DistributionMapOutput) ToDistributionMapOutput() DistributionMapOutput

func (DistributionMapOutput) ToDistributionMapOutputWithContext

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

type DistributionOrigin

type DistributionOrigin struct {
	// 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"`
	// Protocol that your Amazon Lightsail distribution uses when establishing a connection with your origin to pull content.
	ProtocolPolicy *string `pulumi:"protocolPolicy"`
	// AWS Region name of the origin resource.
	RegionName string `pulumi:"regionName"`
	// Lightsail resource type (e.g., Distribution).
	ResourceType *string `pulumi:"resourceType"`
}

type DistributionOriginArgs

type DistributionOriginArgs struct {
	// 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"`
	// Protocol that your Amazon Lightsail distribution uses when establishing a connection with your origin to pull content.
	ProtocolPolicy pulumi.StringPtrInput `pulumi:"protocolPolicy"`
	// AWS Region name of the origin resource.
	RegionName pulumi.StringInput `pulumi:"regionName"`
	// Lightsail resource type (e.g., Distribution).
	ResourceType pulumi.StringPtrInput `pulumi:"resourceType"`
}

func (DistributionOriginArgs) ElementType

func (DistributionOriginArgs) ElementType() reflect.Type

func (DistributionOriginArgs) ToDistributionOriginOutput

func (i DistributionOriginArgs) ToDistributionOriginOutput() DistributionOriginOutput

func (DistributionOriginArgs) ToDistributionOriginOutputWithContext

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

func (DistributionOriginArgs) ToDistributionOriginPtrOutput

func (i DistributionOriginArgs) ToDistributionOriginPtrOutput() DistributionOriginPtrOutput

func (DistributionOriginArgs) ToDistributionOriginPtrOutputWithContext

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

type DistributionOriginInput

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

type DistributionOriginOutput struct{ *pulumi.OutputState }

func (DistributionOriginOutput) ElementType

func (DistributionOriginOutput) ElementType() reflect.Type

func (DistributionOriginOutput) Name

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

func (o DistributionOriginOutput) ProtocolPolicy() pulumi.StringPtrOutput

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

func (DistributionOriginOutput) RegionName

AWS Region name of the origin resource.

func (DistributionOriginOutput) ResourceType

Lightsail resource type (e.g., Distribution).

func (DistributionOriginOutput) ToDistributionOriginOutput

func (o DistributionOriginOutput) ToDistributionOriginOutput() DistributionOriginOutput

func (DistributionOriginOutput) ToDistributionOriginOutputWithContext

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

func (DistributionOriginOutput) ToDistributionOriginPtrOutput

func (o DistributionOriginOutput) ToDistributionOriginPtrOutput() DistributionOriginPtrOutput

func (DistributionOriginOutput) ToDistributionOriginPtrOutputWithContext

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

type DistributionOriginPtrInput

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

type DistributionOriginPtrOutput

type DistributionOriginPtrOutput struct{ *pulumi.OutputState }

func (DistributionOriginPtrOutput) Elem

func (DistributionOriginPtrOutput) ElementType

func (DistributionOriginPtrOutput) Name

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

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

func (DistributionOriginPtrOutput) RegionName

AWS Region name of the origin resource.

func (DistributionOriginPtrOutput) ResourceType

Lightsail resource type (e.g., Distribution).

func (DistributionOriginPtrOutput) ToDistributionOriginPtrOutput

func (o DistributionOriginPtrOutput) ToDistributionOriginPtrOutput() DistributionOriginPtrOutput

func (DistributionOriginPtrOutput) ToDistributionOriginPtrOutputWithContext

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

type DistributionOutput

type DistributionOutput struct{ *pulumi.OutputState }

func (DistributionOutput) AlternativeDomainNames

func (o DistributionOutput) AlternativeDomainNames() pulumi.StringArrayOutput

Alternate domain names of the distribution.

func (DistributionOutput) Arn

ARN of the distribution.

func (DistributionOutput) BundleId

func (o DistributionOutput) BundleId() pulumi.StringOutput

Bundle ID to use for the distribution.

func (DistributionOutput) CacheBehaviorSettings

Cache behavior settings of the distribution. See below.

func (DistributionOutput) CacheBehaviors

Per-path cache behavior of the distribution. See below.

func (DistributionOutput) CertificateName

func (o DistributionOutput) CertificateName() pulumi.StringPtrOutput

Name of the SSL/TLS certificate attached to the distribution.

func (DistributionOutput) CreatedAt

func (o DistributionOutput) CreatedAt() pulumi.StringOutput

Timestamp when the distribution was created.

func (DistributionOutput) DefaultCacheBehavior

Default cache behavior of the distribution. See below.

func (DistributionOutput) DomainName

func (o DistributionOutput) DomainName() pulumi.StringOutput

Domain name of the distribution.

func (DistributionOutput) ElementType

func (DistributionOutput) ElementType() reflect.Type

func (DistributionOutput) IpAddressType

func (o DistributionOutput) IpAddressType() pulumi.StringPtrOutput

IP address type of the distribution. Valid values: `dualstack`, `ipv4`. Default: `dualstack`.

func (DistributionOutput) IsEnabled

func (o DistributionOutput) IsEnabled() pulumi.BoolPtrOutput

Whether the distribution is enabled. Default: `true`.

func (DistributionOutput) Locations

Location of the distribution, such as the AWS Region and Availability Zone. See below.

func (DistributionOutput) Name

Name of the distribution.

func (DistributionOutput) Origin

Origin resource of the distribution, such as a Lightsail instance, bucket, or load balancer. See below.

The following arguments are optional:

func (DistributionOutput) OriginPublicDns

func (o DistributionOutput) OriginPublicDns() pulumi.StringOutput

Public DNS of the origin. * `origin[0].resource_type` - Resource type of the origin resource (e.g., Instance).

func (DistributionOutput) Region

Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.

func (DistributionOutput) ResourceType

func (o DistributionOutput) ResourceType() pulumi.StringOutput

Lightsail resource type (e.g., Distribution).

func (DistributionOutput) Status

Status of the distribution.

func (DistributionOutput) SupportCode

func (o DistributionOutput) SupportCode() pulumi.StringOutput

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

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

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

func (DistributionOutput) ToDistributionOutput

func (o DistributionOutput) ToDistributionOutput() DistributionOutput

func (DistributionOutput) ToDistributionOutputWithContext

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

type DistributionState

type DistributionState struct {
	// Alternate domain names of the distribution.
	AlternativeDomainNames pulumi.StringArrayInput
	// ARN of the distribution.
	Arn pulumi.StringPtrInput
	// Bundle ID to use for the distribution.
	BundleId pulumi.StringPtrInput
	// Cache behavior settings of the distribution. See below.
	CacheBehaviorSettings DistributionCacheBehaviorSettingsPtrInput
	// Per-path cache behavior of the distribution. See below.
	CacheBehaviors DistributionCacheBehaviorArrayInput
	// Name of the SSL/TLS certificate attached to the distribution.
	CertificateName pulumi.StringPtrInput
	// Timestamp when the distribution was created.
	CreatedAt pulumi.StringPtrInput
	// Default cache behavior of the distribution. See below.
	DefaultCacheBehavior DistributionDefaultCacheBehaviorPtrInput
	// Domain name of the distribution.
	DomainName pulumi.StringPtrInput
	// IP address type of the distribution. Valid values: `dualstack`, `ipv4`. Default: `dualstack`.
	IpAddressType pulumi.StringPtrInput
	// Whether the distribution is enabled. Default: `true`.
	IsEnabled pulumi.BoolPtrInput
	// Location of the distribution, such as the AWS Region and Availability Zone. See below.
	Locations DistributionLocationArrayInput
	// Name of the distribution.
	Name pulumi.StringPtrInput
	// Origin resource of the distribution, such as a Lightsail instance, bucket, or load balancer. See below.
	//
	// The following arguments are optional:
	Origin DistributionOriginPtrInput
	// Public DNS of the origin.
	// * `origin[0].resource_type` - Resource type of the origin resource (e.g., Instance).
	OriginPublicDns pulumi.StringPtrInput
	// Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
	Region pulumi.StringPtrInput
	// Lightsail resource type (e.g., Distribution).
	ResourceType pulumi.StringPtrInput
	// Status of the distribution.
	Status pulumi.StringPtrInput
	// 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
	// Map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
	TagsAll pulumi.StringMapInput
}

func (DistributionState) ElementType

func (DistributionState) ElementType() reflect.Type

type Domain

type Domain struct {
	pulumi.CustomResourceState

	// ARN of the Lightsail domain.
	Arn pulumi.StringOutput `pulumi:"arn"`
	// Name of the Lightsail domain to manage.
	//
	// The following arguments are optional:
	DomainName pulumi.StringOutput `pulumi:"domainName"`
	// Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
	Region pulumi.StringOutput `pulumi:"region"`
}

Manages a Lightsail domain for DNS management. Use this resource to manage DNS records for a domain that you have already registered with a domain registrar.

> **Note:** You cannot register a new domain name using Lightsail. Register your domain using Amazon Route 53 or another domain name registrar before using this resource.

> **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/v7/go/aws/lightsail"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := lightsail.NewDomain(ctx, "example", &lightsail.DomainArgs{
			DomainName: pulumi.String("example.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 {
	// Name of the Lightsail domain to manage.
	//
	// The following arguments are optional:
	DomainName pulumi.StringInput
	// Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
	Region pulumi.StringPtrInput
}

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

type DomainEntry struct {
	pulumi.CustomResourceState

	// Name of the Lightsail domain in which to create the entry.
	DomainName pulumi.StringOutput `pulumi:"domainName"`
	// Whether the entry should be an alias. Default: `false`.
	IsAlias pulumi.BoolPtrOutput `pulumi:"isAlias"`
	// Name of the entry record.
	Name pulumi.StringOutput `pulumi:"name"`
	// Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
	Region pulumi.StringOutput `pulumi:"region"`
	// Target of the domain entry.
	Target pulumi.StringOutput `pulumi:"target"`
	// Type of record. Valid values: `A`, `AAAA`, `CNAME`, `MX`, `NS`, `SOA`, `SRV`, `TXT`.
	//
	// The following arguments are optional:
	Type pulumi.StringOutput `pulumi:"type"`
}

Manages a Lightsail domain entry (DNS record). Use this resource to define how DNS queries for your domain are handled.

> **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/v7/go/aws/lightsail"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := lightsail.NewDomain(ctx, "example", &lightsail.DomainArgs{
			DomainName: pulumi.String("example.com"),
		})
		if err != nil {
			return err
		}
		_, err = lightsail.NewDomainEntry(ctx, "example", &lightsail.DomainEntryArgs{
			DomainName: example.DomainName,
			Name:       pulumi.String("www"),
			Type:       pulumi.String("A"),
			Target:     pulumi.String("127.0.0.1"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Using `pulumi import`, import Lightsail Domain Entry using the id attribute. For example:

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

func GetDomainEntry

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

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

func (*DomainEntry) ElementType() reflect.Type

func (*DomainEntry) ToDomainEntryOutput

func (i *DomainEntry) ToDomainEntryOutput() DomainEntryOutput

func (*DomainEntry) ToDomainEntryOutputWithContext

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

type DomainEntryArgs

type DomainEntryArgs struct {
	// Name of the Lightsail domain in which to create the entry.
	DomainName pulumi.StringInput
	// Whether the entry should be an alias. Default: `false`.
	IsAlias pulumi.BoolPtrInput
	// Name of the entry record.
	Name pulumi.StringPtrInput
	// Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
	Region pulumi.StringPtrInput
	// Target of the domain entry.
	Target pulumi.StringInput
	// Type of record. Valid values: `A`, `AAAA`, `CNAME`, `MX`, `NS`, `SOA`, `SRV`, `TXT`.
	//
	// The following arguments are optional:
	Type pulumi.StringInput
}

The set of arguments for constructing a DomainEntry resource.

func (DomainEntryArgs) ElementType

func (DomainEntryArgs) ElementType() reflect.Type

type DomainEntryArray

type DomainEntryArray []DomainEntryInput

func (DomainEntryArray) ElementType

func (DomainEntryArray) ElementType() reflect.Type

func (DomainEntryArray) ToDomainEntryArrayOutput

func (i DomainEntryArray) ToDomainEntryArrayOutput() DomainEntryArrayOutput

func (DomainEntryArray) ToDomainEntryArrayOutputWithContext

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

type DomainEntryArrayInput

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

type DomainEntryArrayOutput struct{ *pulumi.OutputState }

func (DomainEntryArrayOutput) ElementType

func (DomainEntryArrayOutput) ElementType() reflect.Type

func (DomainEntryArrayOutput) Index

func (DomainEntryArrayOutput) ToDomainEntryArrayOutput

func (o DomainEntryArrayOutput) ToDomainEntryArrayOutput() DomainEntryArrayOutput

func (DomainEntryArrayOutput) ToDomainEntryArrayOutputWithContext

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

type DomainEntryInput

type DomainEntryInput interface {
	pulumi.Input

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

type DomainEntryMap

type DomainEntryMap map[string]DomainEntryInput

func (DomainEntryMap) ElementType

func (DomainEntryMap) ElementType() reflect.Type

func (DomainEntryMap) ToDomainEntryMapOutput

func (i DomainEntryMap) ToDomainEntryMapOutput() DomainEntryMapOutput

func (DomainEntryMap) ToDomainEntryMapOutputWithContext

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

type DomainEntryMapInput

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

type DomainEntryMapOutput struct{ *pulumi.OutputState }

func (DomainEntryMapOutput) ElementType

func (DomainEntryMapOutput) ElementType() reflect.Type

func (DomainEntryMapOutput) MapIndex

func (DomainEntryMapOutput) ToDomainEntryMapOutput

func (o DomainEntryMapOutput) ToDomainEntryMapOutput() DomainEntryMapOutput

func (DomainEntryMapOutput) ToDomainEntryMapOutputWithContext

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

type DomainEntryOutput

type DomainEntryOutput struct{ *pulumi.OutputState }

func (DomainEntryOutput) DomainName

func (o DomainEntryOutput) DomainName() pulumi.StringOutput

Name of the Lightsail domain in which to create the entry.

func (DomainEntryOutput) ElementType

func (DomainEntryOutput) ElementType() reflect.Type

func (DomainEntryOutput) IsAlias

Whether the entry should be an alias. Default: `false`.

func (DomainEntryOutput) Name

Name of the entry record.

func (DomainEntryOutput) Region

Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.

func (DomainEntryOutput) Target

Target of the domain entry.

func (DomainEntryOutput) ToDomainEntryOutput

func (o DomainEntryOutput) ToDomainEntryOutput() DomainEntryOutput

func (DomainEntryOutput) ToDomainEntryOutputWithContext

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

func (DomainEntryOutput) Type

Type of record. Valid values: `A`, `AAAA`, `CNAME`, `MX`, `NS`, `SOA`, `SRV`, `TXT`.

The following arguments are optional:

type DomainEntryState

type DomainEntryState struct {
	// Name of the Lightsail domain in which to create the entry.
	DomainName pulumi.StringPtrInput
	// Whether the entry should be an alias. Default: `false`.
	IsAlias pulumi.BoolPtrInput
	// Name of the entry record.
	Name pulumi.StringPtrInput
	// Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
	Region pulumi.StringPtrInput
	// Target of the domain entry.
	Target pulumi.StringPtrInput
	// Type of record. Valid values: `A`, `AAAA`, `CNAME`, `MX`, `NS`, `SOA`, `SRV`, `TXT`.
	//
	// The following arguments are optional:
	Type pulumi.StringPtrInput
}

func (DomainEntryState) ElementType

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

ARN of the Lightsail domain.

func (DomainOutput) DomainName

func (o DomainOutput) DomainName() pulumi.StringOutput

Name of the Lightsail domain to manage.

The following arguments are optional:

func (DomainOutput) ElementType

func (DomainOutput) ElementType() reflect.Type

func (DomainOutput) Region

func (o DomainOutput) Region() pulumi.StringOutput

Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.

func (DomainOutput) ToDomainOutput

func (o DomainOutput) ToDomainOutput() DomainOutput

func (DomainOutput) ToDomainOutputWithContext

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

type DomainState

type DomainState struct {
	// ARN of the Lightsail domain.
	Arn pulumi.StringPtrInput
	// Name of the Lightsail domain to manage.
	//
	// The following arguments are optional:
	DomainName pulumi.StringPtrInput
	// Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
	Region pulumi.StringPtrInput
}

func (DomainState) ElementType

func (DomainState) ElementType() reflect.Type

type Instance

type Instance struct {
	pulumi.CustomResourceState

	// Add-on configuration for the instance. See below.
	AddOn InstanceAddOnPtrOutput `pulumi:"addOn"`
	// ARN of the Lightsail instance (matches `id`).
	Arn pulumi.StringOutput `pulumi:"arn"`
	// Availability Zone in which to create your instance. A list of available zones can be obtained using the AWS CLI command: [`aws lightsail get-regions --include-availability-zones`](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/lightsail/get-regions.html).
	AvailabilityZone pulumi.StringOutput `pulumi:"availabilityZone"`
	// 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`](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/lightsail/get-blueprints.html).
	BlueprintId pulumi.StringOutput `pulumi:"blueprintId"`
	// Bundle of specification information. A list of available bundle IDs can be obtained using the AWS CLI command: [`aws lightsail get-bundles`](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/lightsail/get-bundles.html).
	BundleId pulumi.StringOutput `pulumi:"bundleId"`
	// Number of vCPUs the instance has.
	CpuCount pulumi.IntOutput `pulumi:"cpuCount"`
	// Timestamp when the instance was created.
	CreatedAt pulumi.StringOutput `pulumi:"createdAt"`
	// IP address type of the Lightsail Instance. Valid values: `dualstack`, `ipv4`, `ipv6`. Default: `dualstack`.
	IpAddressType pulumi.StringPtrOutput `pulumi:"ipAddressType"`
	// List of IPv6 addresses for the Lightsail instance.
	Ipv6Addresses pulumi.StringArrayOutput `pulumi:"ipv6Addresses"`
	// Whether this instance has a static IP assigned to it.
	IsStaticIp pulumi.BoolOutput `pulumi:"isStaticIp"`
	// Name of your key pair. Created in the Lightsail console (cannot use `ec2.KeyPair` at this time).
	KeyPairName pulumi.StringPtrOutput `pulumi:"keyPairName"`
	// Name of the Lightsail Instance. Names must be unique within each AWS Region in your Lightsail account.
	//
	// The following arguments are optional:
	Name pulumi.StringOutput `pulumi:"name"`
	// Private IP address of the instance.
	PrivateIpAddress pulumi.StringOutput `pulumi:"privateIpAddress"`
	// Public IP address of the instance.
	PublicIpAddress pulumi.StringOutput `pulumi:"publicIpAddress"`
	// Amount of RAM in GB on the instance (e.g., 1.0).
	RamSize pulumi.Float64Output `pulumi:"ramSize"`
	// Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
	Region pulumi.StringOutput `pulumi:"region"`
	// 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"`
	// 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"`
	// User name for connecting to the instance (e.g., ec2-user).
	Username pulumi.StringOutput `pulumi:"username"`
}

Manages a Lightsail Instance. Use this resource to create easy virtual private servers with custom software already setup.

> **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/v7/go/aws/lightsail"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := lightsail.NewInstance(ctx, "example", &lightsail.InstanceArgs{
			Name:             pulumi.String("example"),
			AvailabilityZone: pulumi.String("us-east-1b"),
			BlueprintId:      pulumi.String("amazon_linux_2"),
			BundleId:         pulumi.String("nano_3_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/v7/go/aws/lightsail"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := lightsail.NewInstance(ctx, "example", &lightsail.InstanceArgs{
			Name:             pulumi.String("example"),
			AvailabilityZone: pulumi.String("us-east-1b"),
			BlueprintId:      pulumi.String("amazon_linux_2"),
			BundleId:         pulumi.String("nano_3_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/v7/go/aws/lightsail"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

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

```

## Import

Using `pulumi import`, import Lightsail Instances using their name. For example:

```sh $ pulumi import aws:lightsail/instance:Instance example 'example' ```

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

type InstanceAddOn struct {
	// 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"`
	// Status of the add-on. Valid values: `Enabled`, `Disabled`.
	Status string `pulumi:"status"`
	// Add-on type. There is currently only one valid type `AutoSnapshot`.
	Type string `pulumi:"type"`
}

type InstanceAddOnArgs

type InstanceAddOnArgs struct {
	// 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"`
	// Status of the add-on. Valid values: `Enabled`, `Disabled`.
	Status pulumi.StringInput `pulumi:"status"`
	// Add-on type. There is currently only one valid type `AutoSnapshot`.
	Type pulumi.StringInput `pulumi:"type"`
}

func (InstanceAddOnArgs) ElementType

func (InstanceAddOnArgs) ElementType() reflect.Type

func (InstanceAddOnArgs) ToInstanceAddOnOutput

func (i InstanceAddOnArgs) ToInstanceAddOnOutput() InstanceAddOnOutput

func (InstanceAddOnArgs) ToInstanceAddOnOutputWithContext

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

func (InstanceAddOnArgs) ToInstanceAddOnPtrOutput

func (i InstanceAddOnArgs) ToInstanceAddOnPtrOutput() InstanceAddOnPtrOutput

func (InstanceAddOnArgs) ToInstanceAddOnPtrOutputWithContext

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

type InstanceAddOnInput

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

type InstanceAddOnOutput struct{ *pulumi.OutputState }

func (InstanceAddOnOutput) ElementType

func (InstanceAddOnOutput) ElementType() reflect.Type

func (InstanceAddOnOutput) SnapshotTime

func (o InstanceAddOnOutput) SnapshotTime() pulumi.StringOutput

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

Status of the add-on. Valid values: `Enabled`, `Disabled`.

func (InstanceAddOnOutput) ToInstanceAddOnOutput

func (o InstanceAddOnOutput) ToInstanceAddOnOutput() InstanceAddOnOutput

func (InstanceAddOnOutput) ToInstanceAddOnOutputWithContext

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

func (InstanceAddOnOutput) ToInstanceAddOnPtrOutput

func (o InstanceAddOnOutput) ToInstanceAddOnPtrOutput() InstanceAddOnPtrOutput

func (InstanceAddOnOutput) ToInstanceAddOnPtrOutputWithContext

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

func (InstanceAddOnOutput) Type

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

type InstanceAddOnPtrInput

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

type InstanceAddOnPtrOutput

type InstanceAddOnPtrOutput struct{ *pulumi.OutputState }

func (InstanceAddOnPtrOutput) Elem

func (InstanceAddOnPtrOutput) ElementType

func (InstanceAddOnPtrOutput) ElementType() reflect.Type

func (InstanceAddOnPtrOutput) SnapshotTime

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

Status of the add-on. Valid values: `Enabled`, `Disabled`.

func (InstanceAddOnPtrOutput) ToInstanceAddOnPtrOutput

func (o InstanceAddOnPtrOutput) ToInstanceAddOnPtrOutput() InstanceAddOnPtrOutput

func (InstanceAddOnPtrOutput) ToInstanceAddOnPtrOutputWithContext

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

func (InstanceAddOnPtrOutput) Type

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

type InstanceArgs

type InstanceArgs struct {
	// Add-on configuration for the instance. See below.
	AddOn InstanceAddOnPtrInput
	// Availability Zone in which to create your instance. A list of available zones can be obtained using the AWS CLI command: [`aws lightsail get-regions --include-availability-zones`](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/lightsail/get-regions.html).
	AvailabilityZone pulumi.StringInput
	// 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`](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/lightsail/get-blueprints.html).
	BlueprintId pulumi.StringInput
	// Bundle of specification information. A list of available bundle IDs can be obtained using the AWS CLI command: [`aws lightsail get-bundles`](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/lightsail/get-bundles.html).
	BundleId pulumi.StringInput
	// IP address type of the Lightsail Instance. Valid values: `dualstack`, `ipv4`, `ipv6`. Default: `dualstack`.
	IpAddressType pulumi.StringPtrInput
	// Name of your key pair. Created in the Lightsail console (cannot use `ec2.KeyPair` at this time).
	KeyPairName pulumi.StringPtrInput
	// Name of the Lightsail Instance. Names must be unique within each AWS Region in your Lightsail account.
	//
	// The following arguments are optional:
	Name pulumi.StringPtrInput
	// Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
	Region pulumi.StringPtrInput
	// 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

Add-on configuration for the instance. See below.

func (InstanceOutput) Arn

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

func (InstanceOutput) AvailabilityZone

func (o InstanceOutput) AvailabilityZone() pulumi.StringOutput

Availability Zone in which to create your instance. A list of available zones can be obtained using the AWS CLI command: [`aws lightsail get-regions --include-availability-zones`](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/lightsail/get-regions.html).

func (InstanceOutput) BlueprintId

func (o InstanceOutput) BlueprintId() pulumi.StringOutput

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`](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/lightsail/get-blueprints.html).

func (InstanceOutput) BundleId

func (o InstanceOutput) BundleId() pulumi.StringOutput

Bundle of specification information. A list of available bundle IDs can be obtained using the AWS CLI command: [`aws lightsail get-bundles`](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/lightsail/get-bundles.html).

func (InstanceOutput) CpuCount

func (o InstanceOutput) CpuCount() pulumi.IntOutput

Number of vCPUs the instance has.

func (InstanceOutput) CreatedAt

func (o InstanceOutput) CreatedAt() pulumi.StringOutput

Timestamp when the instance was created.

func (InstanceOutput) ElementType

func (InstanceOutput) ElementType() reflect.Type

func (InstanceOutput) IpAddressType

func (o InstanceOutput) IpAddressType() pulumi.StringPtrOutput

IP address type of the Lightsail Instance. Valid values: `dualstack`, `ipv4`, `ipv6`. Default: `dualstack`.

func (InstanceOutput) Ipv6Addresses

func (o InstanceOutput) Ipv6Addresses() pulumi.StringArrayOutput

List of IPv6 addresses for the Lightsail instance.

func (InstanceOutput) IsStaticIp

func (o InstanceOutput) IsStaticIp() pulumi.BoolOutput

Whether this instance has a static IP assigned to it.

func (InstanceOutput) KeyPairName

func (o InstanceOutput) KeyPairName() pulumi.StringPtrOutput

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

func (InstanceOutput) Name

Name of the Lightsail Instance. Names must be unique within each AWS Region in your Lightsail account.

The following arguments are optional:

func (InstanceOutput) PrivateIpAddress

func (o InstanceOutput) PrivateIpAddress() pulumi.StringOutput

Private IP address of the instance.

func (InstanceOutput) PublicIpAddress

func (o InstanceOutput) PublicIpAddress() pulumi.StringOutput

Public IP address of the instance.

func (InstanceOutput) RamSize

func (o InstanceOutput) RamSize() pulumi.Float64Output

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

func (InstanceOutput) Region

func (o InstanceOutput) Region() pulumi.StringOutput

Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.

func (InstanceOutput) Tags

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

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

func (o InstanceOutput) UserData() pulumi.StringPtrOutput

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

func (InstanceOutput) Username

func (o InstanceOutput) Username() pulumi.StringOutput

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

type InstancePublicPorts

type InstancePublicPorts struct {
	pulumi.CustomResourceState

	// Name of the instance for which to open ports.
	InstanceName pulumi.StringOutput `pulumi:"instanceName"`
	// Descriptor of the ports to open for the specified instance. AWS closes all currently open ports that are not included in this argument. See `portInfo` Block for details.
	//
	// The following arguments are optional:
	PortInfos InstancePublicPortsPortInfoArrayOutput `pulumi:"portInfos"`
	// Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
	Region pulumi.StringOutput `pulumi:"region"`
}

Manages public ports for a Lightsail instance. Use this resource to open ports for a specific Amazon Lightsail instance and specify 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/v7/go/aws"
"github.com/pulumi/pulumi-aws/sdk/v7/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
		}
		example, err := lightsail.NewInstance(ctx, "example", &lightsail.InstanceArgs{
			Name:             pulumi.String("example-instance"),
			AvailabilityZone: pulumi.String(available.Names[0]),
			BlueprintId:      pulumi.String("amazon_linux_2"),
			BundleId:         pulumi.String("nano_3_0"),
		})
		if err != nil {
			return err
		}
		_, err = lightsail.NewInstancePublicPorts(ctx, "example", &lightsail.InstancePublicPortsArgs{
			InstanceName: example.Name,
			PortInfos: lightsail.InstancePublicPortsPortInfoArray{
				&lightsail.InstancePublicPortsPortInfoArgs{
					Protocol: pulumi.String("tcp"),
					FromPort: pulumi.Int(80),
					ToPort:   pulumi.Int(80),
				},
				&lightsail.InstancePublicPortsPortInfoArgs{
					Protocol: pulumi.String("tcp"),
					FromPort: pulumi.Int(443),
					ToPort:   pulumi.Int(443),
					Cidrs: pulumi.StringArray{
						pulumi.String("192.168.1.0/24"),
					},
				},
			},
		})
		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 instance for which to open ports.
	InstanceName pulumi.StringInput
	// Descriptor of the ports to open for the specified instance. AWS closes all currently open ports that are not included in this argument. See `portInfo` Block for details.
	//
	// The following arguments are optional:
	PortInfos InstancePublicPortsPortInfoArrayInput
	// Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
	Region pulumi.StringPtrInput
}

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

Name of the instance for which to open ports.

func (InstancePublicPortsOutput) PortInfos

Descriptor of the ports to open for the specified instance. AWS closes all currently open ports that are not included in this argument. See `portInfo` Block for details.

The following arguments are optional:

func (InstancePublicPortsOutput) Region

Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.

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 IPv4 addresses or ranges of IPv4 addresses (in CIDR notation) that are allowed to connect to an instance through the ports, and the protocol.
	Cidrs []string `pulumi:"cidrs"`
	// First port in a range of open ports on an instance. See [PortInfo](https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_PortInfo.html) for details.
	FromPort int `pulumi:"fromPort"`
	// Set of IPv6 addresses or ranges of IPv6 addresses (in CIDR notation) that are allowed to connect to an instance through the ports, and the protocol.
	Ipv6Cidrs []string `pulumi:"ipv6Cidrs"`
	// IP protocol name. Valid values: `tcp`, `all`, `udp`, `icmp`, `icmpv6`. See [PortInfo](https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_PortInfo.html) for details.
	Protocol string `pulumi:"protocol"`
	// Last port in a range of open ports on an instance. See [PortInfo](https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_PortInfo.html) for details.
	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 IPv4 addresses or ranges of IPv4 addresses (in CIDR notation) that are allowed to connect to an instance through the ports, and the protocol.
	Cidrs pulumi.StringArrayInput `pulumi:"cidrs"`
	// First port in a range of open ports on an instance. See [PortInfo](https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_PortInfo.html) for details.
	FromPort pulumi.IntInput `pulumi:"fromPort"`
	// Set of IPv6 addresses or ranges of IPv6 addresses (in CIDR notation) that are allowed to connect to an instance through the ports, and the protocol.
	Ipv6Cidrs pulumi.StringArrayInput `pulumi:"ipv6Cidrs"`
	// IP protocol name. Valid values: `tcp`, `all`, `udp`, `icmp`, `icmpv6`. See [PortInfo](https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_PortInfo.html) for details.
	Protocol pulumi.StringInput `pulumi:"protocol"`
	// Last port in a range of open ports on an instance. See [PortInfo](https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_PortInfo.html) for details.
	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

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

func (InstancePublicPortsPortInfoOutput) Cidrs

Set of IPv4 addresses or ranges of IPv4 addresses (in CIDR notation) that are allowed to connect to an instance through the ports, and the protocol.

func (InstancePublicPortsPortInfoOutput) ElementType

func (InstancePublicPortsPortInfoOutput) FromPort

First port in a range of open ports on an instance. See [PortInfo](https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_PortInfo.html) for details.

func (InstancePublicPortsPortInfoOutput) Ipv6Cidrs

Set of IPv6 addresses or ranges of IPv6 addresses (in CIDR notation) that are allowed to connect to an instance through the ports, and the protocol.

func (InstancePublicPortsPortInfoOutput) Protocol

IP protocol name. Valid values: `tcp`, `all`, `udp`, `icmp`, `icmpv6`. See [PortInfo](https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_PortInfo.html) for details.

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. See [PortInfo](https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_PortInfo.html) for details.

type InstancePublicPortsState

type InstancePublicPortsState struct {
	// Name of the instance for which to open ports.
	InstanceName pulumi.StringPtrInput
	// Descriptor of the ports to open for the specified instance. AWS closes all currently open ports that are not included in this argument. See `portInfo` Block for details.
	//
	// The following arguments are optional:
	PortInfos InstancePublicPortsPortInfoArrayInput
	// Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
	Region pulumi.StringPtrInput
}

func (InstancePublicPortsState) ElementType

func (InstancePublicPortsState) ElementType() reflect.Type

type InstanceState

type InstanceState struct {
	// Add-on configuration for the instance. See below.
	AddOn InstanceAddOnPtrInput
	// ARN of the Lightsail instance (matches `id`).
	Arn pulumi.StringPtrInput
	// Availability Zone in which to create your instance. A list of available zones can be obtained using the AWS CLI command: [`aws lightsail get-regions --include-availability-zones`](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/lightsail/get-regions.html).
	AvailabilityZone pulumi.StringPtrInput
	// 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`](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/lightsail/get-blueprints.html).
	BlueprintId pulumi.StringPtrInput
	// Bundle of specification information. A list of available bundle IDs can be obtained using the AWS CLI command: [`aws lightsail get-bundles`](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/lightsail/get-bundles.html).
	BundleId pulumi.StringPtrInput
	// Number of vCPUs the instance has.
	CpuCount pulumi.IntPtrInput
	// Timestamp when the instance was created.
	CreatedAt pulumi.StringPtrInput
	// IP address type of the Lightsail Instance. Valid values: `dualstack`, `ipv4`, `ipv6`. Default: `dualstack`.
	IpAddressType pulumi.StringPtrInput
	// List of IPv6 addresses for the Lightsail instance.
	Ipv6Addresses pulumi.StringArrayInput
	// Whether this instance has a static IP assigned to it.
	IsStaticIp pulumi.BoolPtrInput
	// Name of your key pair. Created in the Lightsail console (cannot use `ec2.KeyPair` at this time).
	KeyPairName pulumi.StringPtrInput
	// Name of the Lightsail Instance. Names must be unique within each AWS Region in your Lightsail account.
	//
	// The following arguments are optional:
	Name pulumi.StringPtrInput
	// Private IP address of the instance.
	PrivateIpAddress pulumi.StringPtrInput
	// Public IP address of the instance.
	PublicIpAddress pulumi.StringPtrInput
	// Amount of RAM in GB on the instance (e.g., 1.0).
	RamSize pulumi.Float64PtrInput
	// Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
	Region pulumi.StringPtrInput
	// 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
	// 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
	// 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

	// ARN of the Lightsail key pair.
	Arn pulumi.StringOutput `pulumi:"arn"`
	// MD5 public key fingerprint for the encrypted private key.
	EncryptedFingerprint pulumi.StringOutput `pulumi:"encryptedFingerprint"`
	// 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"`
	// MD5 public key fingerprint as specified in section 4 of RFC 4716.
	Fingerprint pulumi.StringOutput `pulumi:"fingerprint"`
	// Name of the Lightsail Key Pair. If omitted, the provider will assign a random, unique name. Conflicts with `namePrefix`.
	Name pulumi.StringOutput `pulumi:"name"`
	// Creates a unique name beginning with the specified prefix. Conflicts with `name`.
	NamePrefix pulumi.StringOutput `pulumi:"namePrefix"`
	// PGP key to encrypt the resulting private key material. Only used when creating a new key pair.
	PgpKey pulumi.StringPtrOutput `pulumi:"pgpKey"`
	// Private key, base64 encoded. This is only populated when creating a new key, and when no `pgpKey` is provided.
	PrivateKey pulumi.StringOutput `pulumi:"privateKey"`
	// Public key material. This public key will be imported into Lightsail.
	PublicKey pulumi.StringOutput `pulumi:"publicKey"`
	// Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
	Region pulumi.StringOutput `pulumi:"region"`
	// 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.
	//
	// > **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.
	Tags pulumi.StringMapOutput `pulumi:"tags"`
	// Map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
	TagsAll pulumi.StringMapOutput `pulumi:"tagsAll"`
}

Manages a Lightsail Key Pair for use with Lightsail Instances. Use this resource to create or import key pairs that are separate from EC2 Key Pairs and required for Lightsail instances.

> **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/v7/go/aws/lightsail"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := lightsail.NewKeyPair(ctx, "example", &lightsail.KeyPairArgs{
			Name: pulumi.String("example"),
		})
		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/v7/go/aws/lightsail"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

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

```

### Existing Public Key Import

```go package main

import (

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

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		invokeFile, err := std.File(ctx, &std.FileArgs{
			Input: "~/.ssh/id_rsa.pub",
		}, nil)
		if err != nil {
			return err
		}
		_, err = lightsail.NewKeyPair(ctx, "example", &lightsail.KeyPairArgs{
			Name:      pulumi.String("example"),
			PublicKey: pulumi.String(invokeFile.Result),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

You cannot import Lightsail Key Pairs 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 {
	// Name of the Lightsail Key Pair. If omitted, the provider will assign a random, unique name. Conflicts with `namePrefix`.
	Name pulumi.StringPtrInput
	// Creates a unique name beginning with the specified prefix. Conflicts with `name`.
	NamePrefix pulumi.StringPtrInput
	// PGP key to encrypt the resulting private key material. Only used when creating a new key pair.
	PgpKey pulumi.StringPtrInput
	// Public key material. This public key will be imported into Lightsail.
	PublicKey pulumi.StringPtrInput
	// Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
	Region pulumi.StringPtrInput
	// 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.
	//
	// > **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.
	Tags pulumi.StringMapInput
}

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

ARN of the Lightsail key pair.

func (KeyPairOutput) ElementType

func (KeyPairOutput) ElementType() reflect.Type

func (KeyPairOutput) EncryptedFingerprint

func (o KeyPairOutput) EncryptedFingerprint() pulumi.StringOutput

MD5 public key fingerprint for the encrypted private key.

func (KeyPairOutput) EncryptedPrivateKey

func (o KeyPairOutput) EncryptedPrivateKey() pulumi.StringOutput

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

func (o KeyPairOutput) Fingerprint() pulumi.StringOutput

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

func (KeyPairOutput) Name

Name of the Lightsail Key Pair. If omitted, the provider will assign a random, unique name. Conflicts with `namePrefix`.

func (KeyPairOutput) NamePrefix

func (o KeyPairOutput) NamePrefix() pulumi.StringOutput

Creates a unique name beginning with the specified prefix. Conflicts with `name`.

func (KeyPairOutput) PgpKey

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

func (KeyPairOutput) PrivateKey

func (o KeyPairOutput) PrivateKey() pulumi.StringOutput

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

func (KeyPairOutput) PublicKey

func (o KeyPairOutput) PublicKey() pulumi.StringOutput

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

func (KeyPairOutput) Region

func (o KeyPairOutput) Region() pulumi.StringOutput

Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.

func (KeyPairOutput) Tags

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.

> **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) TagsAll

func (o KeyPairOutput) TagsAll() pulumi.StringMapOutput

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

func (KeyPairOutput) ToKeyPairOutput

func (o KeyPairOutput) ToKeyPairOutput() KeyPairOutput

func (KeyPairOutput) ToKeyPairOutputWithContext

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

type KeyPairState

type KeyPairState struct {
	// ARN of the Lightsail key pair.
	Arn pulumi.StringPtrInput
	// MD5 public key fingerprint for the encrypted private key.
	EncryptedFingerprint pulumi.StringPtrInput
	// 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
	// MD5 public key fingerprint as specified in section 4 of RFC 4716.
	Fingerprint pulumi.StringPtrInput
	// Name of the Lightsail Key Pair. If omitted, the provider will assign a random, unique name. Conflicts with `namePrefix`.
	Name pulumi.StringPtrInput
	// Creates a unique name beginning with the specified prefix. Conflicts with `name`.
	NamePrefix pulumi.StringPtrInput
	// PGP key to encrypt the resulting private key material. Only used when creating a new key pair.
	PgpKey pulumi.StringPtrInput
	// Private key, base64 encoded. This is only populated when creating a new key, and when no `pgpKey` is provided.
	PrivateKey pulumi.StringPtrInput
	// Public key material. This public key will be imported into Lightsail.
	PublicKey pulumi.StringPtrInput
	// Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
	Region pulumi.StringPtrInput
	// 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.
	//
	// > **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.
	Tags pulumi.StringMapInput
	// Map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
	TagsAll pulumi.StringMapInput
}

func (KeyPairState) ElementType

func (KeyPairState) ElementType() reflect.Type

type Lb

type Lb struct {
	pulumi.CustomResourceState

	// ARN of the Lightsail load balancer.
	Arn pulumi.StringOutput `pulumi:"arn"`
	// Timestamp when the load balancer was created.
	CreatedAt pulumi.StringOutput `pulumi:"createdAt"`
	// DNS name of the load balancer.
	DnsName pulumi.StringOutput `pulumi:"dnsName"`
	// Health check path of the load balancer. Default value `/`.
	HealthCheckPath pulumi.StringPtrOutput `pulumi:"healthCheckPath"`
	// Instance port the load balancer will connect to.
	InstancePort pulumi.IntOutput `pulumi:"instancePort"`
	// IP address type of the load balancer. Valid values: `dualstack`, `ipv4`. Default value `dualstack`.
	IpAddressType pulumi.StringPtrOutput `pulumi:"ipAddressType"`
	// Name of the Lightsail load balancer.
	//
	// The following arguments are optional:
	Name pulumi.StringOutput `pulumi:"name"`
	// Protocol of the load balancer.
	Protocol pulumi.StringOutput `pulumi:"protocol"`
	// Public ports of the load balancer.
	PublicPorts pulumi.IntArrayOutput `pulumi:"publicPorts"`
	// Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
	Region pulumi.StringOutput `pulumi:"region"`
	// Support code for the load balancer. Include this code in your email to support when you have questions about a load balancer in Lightsail. This code enables our support team to look up your Lightsail information more easily.
	SupportCode pulumi.StringOutput `pulumi:"supportCode"`
	// 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"`
	// Map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
	TagsAll pulumi.StringMapOutput `pulumi:"tagsAll"`
}

Manages a Lightsail load balancer resource.

Use this resource to distribute incoming traffic across multiple Lightsail instances to improve application availability and performance.

## Example Usage

```go package main

import (

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

)

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

```

## Import

Using `pulumi import`, import `aws_lightsail_lb` using the name attribute. For example:

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

func GetLb

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

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

func (*Lb) ElementType() reflect.Type

func (*Lb) ToLbOutput

func (i *Lb) ToLbOutput() LbOutput

func (*Lb) ToLbOutputWithContext

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

type LbArgs

type LbArgs struct {
	// Health check path of the load balancer. Default value `/`.
	HealthCheckPath pulumi.StringPtrInput
	// Instance port the load balancer will connect to.
	InstancePort pulumi.IntInput
	// IP address type of the load balancer. Valid values: `dualstack`, `ipv4`. Default value `dualstack`.
	IpAddressType pulumi.StringPtrInput
	// Name of the Lightsail load balancer.
	//
	// The following arguments are optional:
	Name pulumi.StringPtrInput
	// Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
	Region pulumi.StringPtrInput
	// 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

func (LbArgs) ElementType() reflect.Type

type LbArray

type LbArray []LbInput

func (LbArray) ElementType

func (LbArray) ElementType() reflect.Type

func (LbArray) ToLbArrayOutput

func (i LbArray) ToLbArrayOutput() LbArrayOutput

func (LbArray) ToLbArrayOutputWithContext

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

type LbArrayInput

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

type LbArrayOutput struct{ *pulumi.OutputState }

func (LbArrayOutput) ElementType

func (LbArrayOutput) ElementType() reflect.Type

func (LbArrayOutput) Index

func (LbArrayOutput) ToLbArrayOutput

func (o LbArrayOutput) ToLbArrayOutput() LbArrayOutput

func (LbArrayOutput) ToLbArrayOutputWithContext

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

type LbAttachment

type LbAttachment struct {
	pulumi.CustomResourceState

	// Name of the instance to attach to the load balancer.
	InstanceName pulumi.StringOutput `pulumi:"instanceName"`
	// Name of the Lightsail load balancer.
	//
	// The following arguments are optional:
	LbName pulumi.StringOutput `pulumi:"lbName"`
	// Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
	Region pulumi.StringOutput `pulumi:"region"`
}

Manages a Lightsail Load Balancer Attachment. Use this resource to attach Lightsail instances to a load balancer for distributing traffic across multiple instances.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-aws/sdk/v7/go/aws"
"github.com/pulumi/pulumi-aws/sdk/v7/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
		}
		example, err := lightsail.NewLb(ctx, "example", &lightsail.LbArgs{
			Name:            pulumi.String("example-load-balancer"),
			HealthCheckPath: pulumi.String("/"),
			InstancePort:    pulumi.Int(80),
			Tags: pulumi.StringMap{
				"foo": pulumi.String("bar"),
			},
		})
		if err != nil {
			return err
		}
		exampleInstance, err := lightsail.NewInstance(ctx, "example", &lightsail.InstanceArgs{
			Name:             pulumi.String("example-instance"),
			AvailabilityZone: pulumi.String(available.Names[0]),
			BlueprintId:      pulumi.String("amazon_linux_2"),
			BundleId:         pulumi.String("nano_3_0"),
		})
		if err != nil {
			return err
		}
		_, err = lightsail.NewLbAttachment(ctx, "example", &lightsail.LbAttachmentArgs{
			LbName:       example.Name,
			InstanceName: exampleInstance.Name,
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Using `pulumi import`, import `aws_lightsail_lb_attachment` using the name attribute. For example:

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

func GetLbAttachment

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

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

func (*LbAttachment) ElementType() reflect.Type

func (*LbAttachment) ToLbAttachmentOutput

func (i *LbAttachment) ToLbAttachmentOutput() LbAttachmentOutput

func (*LbAttachment) ToLbAttachmentOutputWithContext

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

type LbAttachmentArgs

type LbAttachmentArgs struct {
	// Name of the instance to attach to the load balancer.
	InstanceName pulumi.StringInput
	// Name of the Lightsail load balancer.
	//
	// The following arguments are optional:
	LbName pulumi.StringInput
	// Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
	Region pulumi.StringPtrInput
}

The set of arguments for constructing a LbAttachment resource.

func (LbAttachmentArgs) ElementType

func (LbAttachmentArgs) ElementType() reflect.Type

type LbAttachmentArray

type LbAttachmentArray []LbAttachmentInput

func (LbAttachmentArray) ElementType

func (LbAttachmentArray) ElementType() reflect.Type

func (LbAttachmentArray) ToLbAttachmentArrayOutput

func (i LbAttachmentArray) ToLbAttachmentArrayOutput() LbAttachmentArrayOutput

func (LbAttachmentArray) ToLbAttachmentArrayOutputWithContext

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

type LbAttachmentArrayInput

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

type LbAttachmentArrayOutput struct{ *pulumi.OutputState }

func (LbAttachmentArrayOutput) ElementType

func (LbAttachmentArrayOutput) ElementType() reflect.Type

func (LbAttachmentArrayOutput) Index

func (LbAttachmentArrayOutput) ToLbAttachmentArrayOutput

func (o LbAttachmentArrayOutput) ToLbAttachmentArrayOutput() LbAttachmentArrayOutput

func (LbAttachmentArrayOutput) ToLbAttachmentArrayOutputWithContext

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

type LbAttachmentInput

type LbAttachmentInput interface {
	pulumi.Input

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

type LbAttachmentMap

type LbAttachmentMap map[string]LbAttachmentInput

func (LbAttachmentMap) ElementType

func (LbAttachmentMap) ElementType() reflect.Type

func (LbAttachmentMap) ToLbAttachmentMapOutput

func (i LbAttachmentMap) ToLbAttachmentMapOutput() LbAttachmentMapOutput

func (LbAttachmentMap) ToLbAttachmentMapOutputWithContext

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

type LbAttachmentMapInput

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

type LbAttachmentMapOutput struct{ *pulumi.OutputState }

func (LbAttachmentMapOutput) ElementType

func (LbAttachmentMapOutput) ElementType() reflect.Type

func (LbAttachmentMapOutput) MapIndex

func (LbAttachmentMapOutput) ToLbAttachmentMapOutput

func (o LbAttachmentMapOutput) ToLbAttachmentMapOutput() LbAttachmentMapOutput

func (LbAttachmentMapOutput) ToLbAttachmentMapOutputWithContext

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

type LbAttachmentOutput

type LbAttachmentOutput struct{ *pulumi.OutputState }

func (LbAttachmentOutput) ElementType

func (LbAttachmentOutput) ElementType() reflect.Type

func (LbAttachmentOutput) InstanceName

func (o LbAttachmentOutput) InstanceName() pulumi.StringOutput

Name of the instance to attach to the load balancer.

func (LbAttachmentOutput) LbName

Name of the Lightsail load balancer.

The following arguments are optional:

func (LbAttachmentOutput) Region

Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.

func (LbAttachmentOutput) ToLbAttachmentOutput

func (o LbAttachmentOutput) ToLbAttachmentOutput() LbAttachmentOutput

func (LbAttachmentOutput) ToLbAttachmentOutputWithContext

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

type LbAttachmentState

type LbAttachmentState struct {
	// Name of the instance to attach to the load balancer.
	InstanceName pulumi.StringPtrInput
	// Name of the Lightsail load balancer.
	//
	// The following arguments are optional:
	LbName pulumi.StringPtrInput
	// Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
	Region pulumi.StringPtrInput
}

func (LbAttachmentState) ElementType

func (LbAttachmentState) ElementType() reflect.Type

type LbCertificate

type LbCertificate struct {
	pulumi.CustomResourceState

	// ARN of the lightsail certificate.
	Arn pulumi.StringOutput `pulumi:"arn"`
	// Timestamp when the instance was created.
	CreatedAt pulumi.StringOutput `pulumi:"createdAt"`
	// Domain name (e.g., example.com) for your SSL/TLS certificate.
	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.
	DomainValidationRecords LbCertificateDomainValidationRecordArrayOutput `pulumi:"domainValidationRecords"`
	// Load balancer name where you want to create the SSL/TLS certificate.
	LbName pulumi.StringOutput `pulumi:"lbName"`
	// SSL/TLS certificate name.
	//
	// The following arguments are optional:
	Name pulumi.StringOutput `pulumi:"name"`
	// Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
	Region pulumi.StringOutput `pulumi:"region"`
	// 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"`
	// Support code for the certificate.
	SupportCode pulumi.StringOutput `pulumi:"supportCode"`
}

Manages a Lightsail Load Balancer Certificate.

Use this resource to create and manage SSL/TLS certificates for Lightsail Load Balancers. The certificate must be validated before it can be attached to a load balancer to enable HTTPS traffic.

## Example Usage

```go package main

import (

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

)

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

```

## Import

Using `pulumi import`, import `aws_lightsail_lb_certificate` using the id attribute. For example:

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

func GetLbCertificate

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

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

func (*LbCertificate) ElementType() reflect.Type

func (*LbCertificate) ToLbCertificateOutput

func (i *LbCertificate) ToLbCertificateOutput() LbCertificateOutput

func (*LbCertificate) ToLbCertificateOutputWithContext

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

type LbCertificateArgs

type LbCertificateArgs struct {
	// Domain name (e.g., example.com) for your SSL/TLS certificate.
	DomainName pulumi.StringPtrInput
	// Load balancer name where you want to create the SSL/TLS certificate.
	LbName pulumi.StringInput
	// SSL/TLS certificate name.
	//
	// The following arguments are optional:
	Name pulumi.StringPtrInput
	// Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
	Region 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

func (LbCertificateArgs) ElementType() reflect.Type

type LbCertificateArray

type LbCertificateArray []LbCertificateInput

func (LbCertificateArray) ElementType

func (LbCertificateArray) ElementType() reflect.Type

func (LbCertificateArray) ToLbCertificateArrayOutput

func (i LbCertificateArray) ToLbCertificateArrayOutput() LbCertificateArrayOutput

func (LbCertificateArray) ToLbCertificateArrayOutputWithContext

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

type LbCertificateArrayInput

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

type LbCertificateArrayOutput struct{ *pulumi.OutputState }

func (LbCertificateArrayOutput) ElementType

func (LbCertificateArrayOutput) ElementType() reflect.Type

func (LbCertificateArrayOutput) Index

func (LbCertificateArrayOutput) ToLbCertificateArrayOutput

func (o LbCertificateArrayOutput) ToLbCertificateArrayOutput() LbCertificateArrayOutput

func (LbCertificateArrayOutput) ToLbCertificateArrayOutputWithContext

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

type LbCertificateAttachment

type LbCertificateAttachment struct {
	pulumi.CustomResourceState

	// Name of your SSL/TLS certificate.
	CertificateName pulumi.StringOutput `pulumi:"certificateName"`
	// Name of the load balancer to which you want to associate the SSL/TLS certificate.
	//
	// The following arguments are optional:
	LbName pulumi.StringOutput `pulumi:"lbName"`
	// Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
	Region pulumi.StringOutput `pulumi:"region"`
}

Manages a Lightsail Load Balancer Certificate attachment to a Lightsail Load Balancer.

Use this resource to attach a validated SSL/TLS certificate to a Lightsail Load Balancer to enable HTTPS traffic. The certificate must be validated before it can be attached to the load balancer.

## Example Usage

```go package main

import (

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

)

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

```

## Import

Using `pulumi import`, import `aws_lightsail_lb_certificate_attachment` using the name attribute. For example:

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

func GetLbCertificateAttachment

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

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

func (*LbCertificateAttachment) ElementType() reflect.Type

func (*LbCertificateAttachment) ToLbCertificateAttachmentOutput

func (i *LbCertificateAttachment) ToLbCertificateAttachmentOutput() LbCertificateAttachmentOutput

func (*LbCertificateAttachment) ToLbCertificateAttachmentOutputWithContext

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

type LbCertificateAttachmentArgs

type LbCertificateAttachmentArgs struct {
	// Name of your SSL/TLS certificate.
	CertificateName pulumi.StringInput
	// Name of the load balancer to which you want to associate the SSL/TLS certificate.
	//
	// The following arguments are optional:
	LbName pulumi.StringInput
	// Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
	Region pulumi.StringPtrInput
}

The set of arguments for constructing a LbCertificateAttachment resource.

func (LbCertificateAttachmentArgs) ElementType

type LbCertificateAttachmentArray

type LbCertificateAttachmentArray []LbCertificateAttachmentInput

func (LbCertificateAttachmentArray) ElementType

func (LbCertificateAttachmentArray) ToLbCertificateAttachmentArrayOutput

func (i LbCertificateAttachmentArray) ToLbCertificateAttachmentArrayOutput() LbCertificateAttachmentArrayOutput

func (LbCertificateAttachmentArray) ToLbCertificateAttachmentArrayOutputWithContext

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

type LbCertificateAttachmentArrayInput

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

type LbCertificateAttachmentArrayOutput struct{ *pulumi.OutputState }

func (LbCertificateAttachmentArrayOutput) ElementType

func (LbCertificateAttachmentArrayOutput) Index

func (LbCertificateAttachmentArrayOutput) ToLbCertificateAttachmentArrayOutput

func (o LbCertificateAttachmentArrayOutput) ToLbCertificateAttachmentArrayOutput() LbCertificateAttachmentArrayOutput

func (LbCertificateAttachmentArrayOutput) ToLbCertificateAttachmentArrayOutputWithContext

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

type LbCertificateAttachmentInput

type LbCertificateAttachmentInput interface {
	pulumi.Input

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

type LbCertificateAttachmentMap

type LbCertificateAttachmentMap map[string]LbCertificateAttachmentInput

func (LbCertificateAttachmentMap) ElementType

func (LbCertificateAttachmentMap) ElementType() reflect.Type

func (LbCertificateAttachmentMap) ToLbCertificateAttachmentMapOutput

func (i LbCertificateAttachmentMap) ToLbCertificateAttachmentMapOutput() LbCertificateAttachmentMapOutput

func (LbCertificateAttachmentMap) ToLbCertificateAttachmentMapOutputWithContext

func (i LbCertificateAttachmentMap) ToLbCertificateAttachmentMapOutputWithContext(ctx context.Context) LbCertificateAttachmentMapOutput

type LbCertificateAttachmentMapInput

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

type LbCertificateAttachmentMapOutput struct{ *pulumi.OutputState }

func (LbCertificateAttachmentMapOutput) ElementType

func (LbCertificateAttachmentMapOutput) MapIndex

func (LbCertificateAttachmentMapOutput) ToLbCertificateAttachmentMapOutput

func (o LbCertificateAttachmentMapOutput) ToLbCertificateAttachmentMapOutput() LbCertificateAttachmentMapOutput

func (LbCertificateAttachmentMapOutput) ToLbCertificateAttachmentMapOutputWithContext

func (o LbCertificateAttachmentMapOutput) ToLbCertificateAttachmentMapOutputWithContext(ctx context.Context) LbCertificateAttachmentMapOutput

type LbCertificateAttachmentOutput

type LbCertificateAttachmentOutput struct{ *pulumi.OutputState }

func (LbCertificateAttachmentOutput) CertificateName

Name of your SSL/TLS certificate.

func (LbCertificateAttachmentOutput) ElementType

func (LbCertificateAttachmentOutput) LbName

Name of the load balancer to which you want to associate the SSL/TLS certificate.

The following arguments are optional:

func (LbCertificateAttachmentOutput) Region

Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.

func (LbCertificateAttachmentOutput) ToLbCertificateAttachmentOutput

func (o LbCertificateAttachmentOutput) ToLbCertificateAttachmentOutput() LbCertificateAttachmentOutput

func (LbCertificateAttachmentOutput) ToLbCertificateAttachmentOutputWithContext

func (o LbCertificateAttachmentOutput) ToLbCertificateAttachmentOutputWithContext(ctx context.Context) LbCertificateAttachmentOutput

type LbCertificateAttachmentState

type LbCertificateAttachmentState struct {
	// Name of your SSL/TLS certificate.
	CertificateName pulumi.StringPtrInput
	// Name of the load balancer to which you want to associate the SSL/TLS certificate.
	//
	// The following arguments are optional:
	LbName pulumi.StringPtrInput
	// Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
	Region pulumi.StringPtrInput
}

func (LbCertificateAttachmentState) ElementType

type LbCertificateDomainValidationRecord

type LbCertificateDomainValidationRecord struct {
	// 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

type LbCertificateDomainValidationRecordArgs struct {
	// 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

func (LbCertificateDomainValidationRecordArgs) ToLbCertificateDomainValidationRecordOutput

func (i LbCertificateDomainValidationRecordArgs) ToLbCertificateDomainValidationRecordOutput() LbCertificateDomainValidationRecordOutput

func (LbCertificateDomainValidationRecordArgs) ToLbCertificateDomainValidationRecordOutputWithContext

func (i LbCertificateDomainValidationRecordArgs) ToLbCertificateDomainValidationRecordOutputWithContext(ctx context.Context) LbCertificateDomainValidationRecordOutput

type LbCertificateDomainValidationRecordArray

type LbCertificateDomainValidationRecordArray []LbCertificateDomainValidationRecordInput

func (LbCertificateDomainValidationRecordArray) ElementType

func (LbCertificateDomainValidationRecordArray) ToLbCertificateDomainValidationRecordArrayOutput

func (i LbCertificateDomainValidationRecordArray) ToLbCertificateDomainValidationRecordArrayOutput() LbCertificateDomainValidationRecordArrayOutput

func (LbCertificateDomainValidationRecordArray) ToLbCertificateDomainValidationRecordArrayOutputWithContext

func (i LbCertificateDomainValidationRecordArray) ToLbCertificateDomainValidationRecordArrayOutputWithContext(ctx context.Context) LbCertificateDomainValidationRecordArrayOutput

type LbCertificateDomainValidationRecordArrayInput

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

type LbCertificateDomainValidationRecordArrayOutput struct{ *pulumi.OutputState }

func (LbCertificateDomainValidationRecordArrayOutput) ElementType

func (LbCertificateDomainValidationRecordArrayOutput) Index

func (LbCertificateDomainValidationRecordArrayOutput) ToLbCertificateDomainValidationRecordArrayOutput

func (o LbCertificateDomainValidationRecordArrayOutput) ToLbCertificateDomainValidationRecordArrayOutput() LbCertificateDomainValidationRecordArrayOutput

func (LbCertificateDomainValidationRecordArrayOutput) ToLbCertificateDomainValidationRecordArrayOutputWithContext

func (o LbCertificateDomainValidationRecordArrayOutput) ToLbCertificateDomainValidationRecordArrayOutputWithContext(ctx context.Context) LbCertificateDomainValidationRecordArrayOutput

type LbCertificateDomainValidationRecordInput

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

type LbCertificateDomainValidationRecordOutput struct{ *pulumi.OutputState }

func (LbCertificateDomainValidationRecordOutput) DomainName

Domain name (e.g., example.com) for your SSL/TLS certificate.

func (LbCertificateDomainValidationRecordOutput) ElementType

func (LbCertificateDomainValidationRecordOutput) ResourceRecordName

func (LbCertificateDomainValidationRecordOutput) ResourceRecordType

func (LbCertificateDomainValidationRecordOutput) ResourceRecordValue

func (LbCertificateDomainValidationRecordOutput) ToLbCertificateDomainValidationRecordOutput

func (o LbCertificateDomainValidationRecordOutput) ToLbCertificateDomainValidationRecordOutput() LbCertificateDomainValidationRecordOutput

func (LbCertificateDomainValidationRecordOutput) ToLbCertificateDomainValidationRecordOutputWithContext

func (o LbCertificateDomainValidationRecordOutput) ToLbCertificateDomainValidationRecordOutputWithContext(ctx context.Context) LbCertificateDomainValidationRecordOutput

type LbCertificateInput

type LbCertificateInput interface {
	pulumi.Input

	ToLbCertificateOutput() LbCertificateOutput
	ToLbCertificateOutputWithContext(ctx context.Context) LbCertificateOutput
}

type LbCertificateMap

type LbCertificateMap map[string]LbCertificateInput

func (LbCertificateMap) ElementType

func (LbCertificateMap) ElementType() reflect.Type

func (LbCertificateMap) ToLbCertificateMapOutput

func (i LbCertificateMap) ToLbCertificateMapOutput() LbCertificateMapOutput

func (LbCertificateMap) ToLbCertificateMapOutputWithContext

func (i LbCertificateMap) ToLbCertificateMapOutputWithContext(ctx context.Context) LbCertificateMapOutput

type LbCertificateMapInput

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

type LbCertificateMapOutput struct{ *pulumi.OutputState }

func (LbCertificateMapOutput) ElementType

func (LbCertificateMapOutput) ElementType() reflect.Type

func (LbCertificateMapOutput) MapIndex

func (LbCertificateMapOutput) ToLbCertificateMapOutput

func (o LbCertificateMapOutput) ToLbCertificateMapOutput() LbCertificateMapOutput

func (LbCertificateMapOutput) ToLbCertificateMapOutputWithContext

func (o LbCertificateMapOutput) ToLbCertificateMapOutputWithContext(ctx context.Context) LbCertificateMapOutput

type LbCertificateOutput

type LbCertificateOutput struct{ *pulumi.OutputState }

func (LbCertificateOutput) Arn

ARN of the lightsail certificate.

func (LbCertificateOutput) CreatedAt

func (o LbCertificateOutput) CreatedAt() pulumi.StringOutput

Timestamp when the instance was created.

func (LbCertificateOutput) DomainName

func (o LbCertificateOutput) DomainName() pulumi.StringOutput

Domain name (e.g., example.com) for your SSL/TLS certificate.

func (LbCertificateOutput) DomainValidationRecords

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

func (LbCertificateOutput) ElementType() reflect.Type

func (LbCertificateOutput) LbName

Load balancer name where you want to create the SSL/TLS certificate.

func (LbCertificateOutput) Name

SSL/TLS certificate name.

The following arguments are optional:

func (LbCertificateOutput) Region

Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.

func (LbCertificateOutput) SubjectAlternativeNames

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

func (o LbCertificateOutput) SupportCode() pulumi.StringOutput

Support code for the certificate.

func (LbCertificateOutput) ToLbCertificateOutput

func (o LbCertificateOutput) ToLbCertificateOutput() LbCertificateOutput

func (LbCertificateOutput) ToLbCertificateOutputWithContext

func (o LbCertificateOutput) ToLbCertificateOutputWithContext(ctx context.Context) LbCertificateOutput

type LbCertificateState

type LbCertificateState struct {
	// ARN of the lightsail certificate.
	Arn pulumi.StringPtrInput
	// Timestamp when the instance was created.
	CreatedAt pulumi.StringPtrInput
	// Domain name (e.g., example.com) for your SSL/TLS certificate.
	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.
	DomainValidationRecords LbCertificateDomainValidationRecordArrayInput
	// Load balancer name where you want to create the SSL/TLS certificate.
	LbName pulumi.StringPtrInput
	// SSL/TLS certificate name.
	//
	// The following arguments are optional:
	Name pulumi.StringPtrInput
	// Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
	Region 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
	// Support code for the certificate.
	SupportCode pulumi.StringPtrInput
}

func (LbCertificateState) ElementType

func (LbCertificateState) ElementType() reflect.Type

type LbHttpsRedirectionPolicy

type LbHttpsRedirectionPolicy struct {
	pulumi.CustomResourceState

	// Whether to enable HTTP to HTTPS redirection. `true` to activate HTTP to HTTPS redirection or `false` to deactivate HTTP to HTTPS redirection.
	Enabled pulumi.BoolOutput `pulumi:"enabled"`
	// Name of the load balancer to which you want to enable HTTP to HTTPS redirection.
	//
	// The following arguments are optional:
	LbName pulumi.StringOutput `pulumi:"lbName"`
	// Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
	Region pulumi.StringOutput `pulumi:"region"`
}

Manages HTTPS redirection for a Lightsail Load Balancer.

Use this resource to configure automatic redirection of HTTP traffic to HTTPS on a Lightsail Load Balancer. A valid certificate must be attached to the load balancer before enabling HTTPS redirection.

## Example Usage

```go package main

import (

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

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := lightsail.NewLb(ctx, "example", &lightsail.LbArgs{
			Name:            pulumi.String("example-load-balancer"),
			HealthCheckPath: pulumi.String("/"),
			InstancePort:    pulumi.Int(80),
			Tags: pulumi.StringMap{
				"foo": pulumi.String("bar"),
			},
		})
		if err != nil {
			return err
		}
		exampleLbCertificate, err := lightsail.NewLbCertificate(ctx, "example", &lightsail.LbCertificateArgs{
			Name:       pulumi.String("example-load-balancer-certificate"),
			LbName:     example.ID(),
			DomainName: pulumi.String("example.com"),
		})
		if err != nil {
			return err
		}
		_, err = lightsail.NewLbCertificateAttachment(ctx, "example", &lightsail.LbCertificateAttachmentArgs{
			LbName:          example.Name,
			CertificateName: exampleLbCertificate.Name,
		})
		if err != nil {
			return err
		}
		_, err = lightsail.NewLbHttpsRedirectionPolicy(ctx, "example", &lightsail.LbHttpsRedirectionPolicyArgs{
			LbName:  example.Name,
			Enabled: pulumi.Bool(true),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Using `pulumi import`, import `aws_lightsail_lb_https_redirection_policy` using the `lb_name` attribute. For example:

```sh $ pulumi import aws:lightsail/lbHttpsRedirectionPolicy:LbHttpsRedirectionPolicy example example-load-balancer ```

func GetLbHttpsRedirectionPolicy

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

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

func (*LbHttpsRedirectionPolicy) ElementType() reflect.Type

func (*LbHttpsRedirectionPolicy) ToLbHttpsRedirectionPolicyOutput

func (i *LbHttpsRedirectionPolicy) ToLbHttpsRedirectionPolicyOutput() LbHttpsRedirectionPolicyOutput

func (*LbHttpsRedirectionPolicy) ToLbHttpsRedirectionPolicyOutputWithContext

func (i *LbHttpsRedirectionPolicy) ToLbHttpsRedirectionPolicyOutputWithContext(ctx context.Context) LbHttpsRedirectionPolicyOutput

type LbHttpsRedirectionPolicyArgs

type LbHttpsRedirectionPolicyArgs struct {
	// Whether to enable HTTP to HTTPS redirection. `true` to activate HTTP to HTTPS redirection or `false` to deactivate HTTP to HTTPS redirection.
	Enabled pulumi.BoolInput
	// Name of the load balancer to which you want to enable HTTP to HTTPS redirection.
	//
	// The following arguments are optional:
	LbName pulumi.StringInput
	// Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
	Region pulumi.StringPtrInput
}

The set of arguments for constructing a LbHttpsRedirectionPolicy resource.

func (LbHttpsRedirectionPolicyArgs) ElementType

type LbHttpsRedirectionPolicyArray

type LbHttpsRedirectionPolicyArray []LbHttpsRedirectionPolicyInput

func (LbHttpsRedirectionPolicyArray) ElementType

func (LbHttpsRedirectionPolicyArray) ToLbHttpsRedirectionPolicyArrayOutput

func (i LbHttpsRedirectionPolicyArray) ToLbHttpsRedirectionPolicyArrayOutput() LbHttpsRedirectionPolicyArrayOutput

func (LbHttpsRedirectionPolicyArray) ToLbHttpsRedirectionPolicyArrayOutputWithContext

func (i LbHttpsRedirectionPolicyArray) ToLbHttpsRedirectionPolicyArrayOutputWithContext(ctx context.Context) LbHttpsRedirectionPolicyArrayOutput

type LbHttpsRedirectionPolicyArrayInput

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

type LbHttpsRedirectionPolicyArrayOutput struct{ *pulumi.OutputState }

func (LbHttpsRedirectionPolicyArrayOutput) ElementType

func (LbHttpsRedirectionPolicyArrayOutput) Index

func (LbHttpsRedirectionPolicyArrayOutput) ToLbHttpsRedirectionPolicyArrayOutput

func (o LbHttpsRedirectionPolicyArrayOutput) ToLbHttpsRedirectionPolicyArrayOutput() LbHttpsRedirectionPolicyArrayOutput

func (LbHttpsRedirectionPolicyArrayOutput) ToLbHttpsRedirectionPolicyArrayOutputWithContext

func (o LbHttpsRedirectionPolicyArrayOutput) ToLbHttpsRedirectionPolicyArrayOutputWithContext(ctx context.Context) LbHttpsRedirectionPolicyArrayOutput

type LbHttpsRedirectionPolicyInput

type LbHttpsRedirectionPolicyInput interface {
	pulumi.Input

	ToLbHttpsRedirectionPolicyOutput() LbHttpsRedirectionPolicyOutput
	ToLbHttpsRedirectionPolicyOutputWithContext(ctx context.Context) LbHttpsRedirectionPolicyOutput
}

type LbHttpsRedirectionPolicyMap

type LbHttpsRedirectionPolicyMap map[string]LbHttpsRedirectionPolicyInput

func (LbHttpsRedirectionPolicyMap) ElementType

func (LbHttpsRedirectionPolicyMap) ToLbHttpsRedirectionPolicyMapOutput

func (i LbHttpsRedirectionPolicyMap) ToLbHttpsRedirectionPolicyMapOutput() LbHttpsRedirectionPolicyMapOutput

func (LbHttpsRedirectionPolicyMap) ToLbHttpsRedirectionPolicyMapOutputWithContext

func (i LbHttpsRedirectionPolicyMap) ToLbHttpsRedirectionPolicyMapOutputWithContext(ctx context.Context) LbHttpsRedirectionPolicyMapOutput

type LbHttpsRedirectionPolicyMapInput

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

type LbHttpsRedirectionPolicyMapOutput struct{ *pulumi.OutputState }

func (LbHttpsRedirectionPolicyMapOutput) ElementType

func (LbHttpsRedirectionPolicyMapOutput) MapIndex

func (LbHttpsRedirectionPolicyMapOutput) ToLbHttpsRedirectionPolicyMapOutput

func (o LbHttpsRedirectionPolicyMapOutput) ToLbHttpsRedirectionPolicyMapOutput() LbHttpsRedirectionPolicyMapOutput

func (LbHttpsRedirectionPolicyMapOutput) ToLbHttpsRedirectionPolicyMapOutputWithContext

func (o LbHttpsRedirectionPolicyMapOutput) ToLbHttpsRedirectionPolicyMapOutputWithContext(ctx context.Context) LbHttpsRedirectionPolicyMapOutput

type LbHttpsRedirectionPolicyOutput

type LbHttpsRedirectionPolicyOutput struct{ *pulumi.OutputState }

func (LbHttpsRedirectionPolicyOutput) ElementType

func (LbHttpsRedirectionPolicyOutput) Enabled

Whether to enable HTTP to HTTPS redirection. `true` to activate HTTP to HTTPS redirection or `false` to deactivate HTTP to HTTPS redirection.

func (LbHttpsRedirectionPolicyOutput) LbName

Name of the load balancer to which you want to enable HTTP to HTTPS redirection.

The following arguments are optional:

func (LbHttpsRedirectionPolicyOutput) Region

Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.

func (LbHttpsRedirectionPolicyOutput) ToLbHttpsRedirectionPolicyOutput

func (o LbHttpsRedirectionPolicyOutput) ToLbHttpsRedirectionPolicyOutput() LbHttpsRedirectionPolicyOutput

func (LbHttpsRedirectionPolicyOutput) ToLbHttpsRedirectionPolicyOutputWithContext

func (o LbHttpsRedirectionPolicyOutput) ToLbHttpsRedirectionPolicyOutputWithContext(ctx context.Context) LbHttpsRedirectionPolicyOutput

type LbHttpsRedirectionPolicyState

type LbHttpsRedirectionPolicyState struct {
	// Whether to enable HTTP to HTTPS redirection. `true` to activate HTTP to HTTPS redirection or `false` to deactivate HTTP to HTTPS redirection.
	Enabled pulumi.BoolPtrInput
	// Name of the load balancer to which you want to enable HTTP to HTTPS redirection.
	//
	// The following arguments are optional:
	LbName pulumi.StringPtrInput
	// Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
	Region pulumi.StringPtrInput
}

func (LbHttpsRedirectionPolicyState) ElementType

type LbInput

type LbInput interface {
	pulumi.Input

	ToLbOutput() LbOutput
	ToLbOutputWithContext(ctx context.Context) LbOutput
}

type LbMap

type LbMap map[string]LbInput

func (LbMap) ElementType

func (LbMap) ElementType() reflect.Type

func (LbMap) ToLbMapOutput

func (i LbMap) ToLbMapOutput() LbMapOutput

func (LbMap) ToLbMapOutputWithContext

func (i LbMap) ToLbMapOutputWithContext(ctx context.Context) LbMapOutput

type LbMapInput

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

type LbMapOutput struct{ *pulumi.OutputState }

func (LbMapOutput) ElementType

func (LbMapOutput) ElementType() reflect.Type

func (LbMapOutput) MapIndex

func (o LbMapOutput) MapIndex(k pulumi.StringInput) LbOutput

func (LbMapOutput) ToLbMapOutput

func (o LbMapOutput) ToLbMapOutput() LbMapOutput

func (LbMapOutput) ToLbMapOutputWithContext

func (o LbMapOutput) ToLbMapOutputWithContext(ctx context.Context) LbMapOutput

type LbOutput

type LbOutput struct{ *pulumi.OutputState }

func (LbOutput) Arn

func (o LbOutput) Arn() pulumi.StringOutput

ARN of the Lightsail load balancer.

func (LbOutput) CreatedAt

func (o LbOutput) CreatedAt() pulumi.StringOutput

Timestamp when the load balancer was created.

func (LbOutput) DnsName

func (o LbOutput) DnsName() pulumi.StringOutput

DNS name of the load balancer.

func (LbOutput) ElementType

func (LbOutput) ElementType() reflect.Type

func (LbOutput) HealthCheckPath

func (o LbOutput) HealthCheckPath() pulumi.StringPtrOutput

Health check path of the load balancer. Default value `/`.

func (LbOutput) InstancePort

func (o LbOutput) InstancePort() pulumi.IntOutput

Instance port the load balancer will connect to.

func (LbOutput) IpAddressType

func (o LbOutput) IpAddressType() pulumi.StringPtrOutput

IP address type of the load balancer. Valid values: `dualstack`, `ipv4`. Default value `dualstack`.

func (LbOutput) Name

func (o LbOutput) Name() pulumi.StringOutput

Name of the Lightsail load balancer.

The following arguments are optional:

func (LbOutput) Protocol

func (o LbOutput) Protocol() pulumi.StringOutput

Protocol of the load balancer.

func (LbOutput) PublicPorts

func (o LbOutput) PublicPorts() pulumi.IntArrayOutput

Public ports of the load balancer.

func (LbOutput) Region

func (o LbOutput) Region() pulumi.StringOutput

Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.

func (LbOutput) SupportCode

func (o LbOutput) SupportCode() pulumi.StringOutput

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

func (LbOutput) Tags

func (o LbOutput) Tags() pulumi.StringMapOutput

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

func (o LbOutput) TagsAll() pulumi.StringMapOutput

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

func (LbOutput) ToLbOutput

func (o LbOutput) ToLbOutput() LbOutput

func (LbOutput) ToLbOutputWithContext

func (o LbOutput) ToLbOutputWithContext(ctx context.Context) LbOutput

type LbState

type LbState struct {
	// ARN of the Lightsail load balancer.
	Arn pulumi.StringPtrInput
	// Timestamp when the load balancer was created.
	CreatedAt pulumi.StringPtrInput
	// DNS name of the load balancer.
	DnsName pulumi.StringPtrInput
	// Health check path of the load balancer. Default value `/`.
	HealthCheckPath pulumi.StringPtrInput
	// Instance port the load balancer will connect to.
	InstancePort pulumi.IntPtrInput
	// IP address type of the load balancer. Valid values: `dualstack`, `ipv4`. Default value `dualstack`.
	IpAddressType pulumi.StringPtrInput
	// Name of the Lightsail load balancer.
	//
	// The following arguments are optional:
	Name pulumi.StringPtrInput
	// Protocol of the load balancer.
	Protocol pulumi.StringPtrInput
	// Public ports of the load balancer.
	PublicPorts pulumi.IntArrayInput
	// Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
	Region pulumi.StringPtrInput
	// Support code for the load balancer. Include this code in your email to support when you have questions about a load balancer in Lightsail. This code enables our support team to look up your Lightsail information more easily.
	SupportCode pulumi.StringPtrInput
	// 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
	// Map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
	TagsAll pulumi.StringMapInput
}

func (LbState) ElementType

func (LbState) ElementType() reflect.Type

type LbStickinessPolicy

type LbStickinessPolicy struct {
	pulumi.CustomResourceState

	// Cookie duration in seconds. This determines the length of the session stickiness.
	CookieDuration pulumi.IntOutput `pulumi:"cookieDuration"`
	// Whether to enable session stickiness for the load balancer.
	Enabled pulumi.BoolOutput `pulumi:"enabled"`
	// Name of the load balancer to which you want to enable session stickiness.
	//
	// The following arguments are optional:
	LbName pulumi.StringOutput `pulumi:"lbName"`
	// Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
	Region pulumi.StringOutput `pulumi:"region"`
}

Manages session stickiness for a Lightsail Load Balancer.

Use this resource to configure session stickiness to ensure that user sessions are consistently routed to the same backend instance. This helps maintain session state for applications that store session data locally on the server.

## Example Usage

```go package main

import (

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

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := lightsail.NewLb(ctx, "example", &lightsail.LbArgs{
			Name:            pulumi.String("example-load-balancer"),
			HealthCheckPath: pulumi.String("/"),
			InstancePort:    pulumi.Int(80),
			Tags: pulumi.StringMap{
				"foo": pulumi.String("bar"),
			},
		})
		if err != nil {
			return err
		}
		_, err = lightsail.NewLbStickinessPolicy(ctx, "example", &lightsail.LbStickinessPolicyArgs{
			LbName:         example.Name,
			CookieDuration: pulumi.Int(900),
			Enabled:        pulumi.Bool(true),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Using `pulumi import`, import `aws_lightsail_lb_stickiness_policy` using the `lb_name` attribute. For example:

```sh $ pulumi import aws:lightsail/lbStickinessPolicy:LbStickinessPolicy example example-load-balancer ```

func GetLbStickinessPolicy

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

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

func (*LbStickinessPolicy) ElementType() reflect.Type

func (*LbStickinessPolicy) ToLbStickinessPolicyOutput

func (i *LbStickinessPolicy) ToLbStickinessPolicyOutput() LbStickinessPolicyOutput

func (*LbStickinessPolicy) ToLbStickinessPolicyOutputWithContext

func (i *LbStickinessPolicy) ToLbStickinessPolicyOutputWithContext(ctx context.Context) LbStickinessPolicyOutput

type LbStickinessPolicyArgs

type LbStickinessPolicyArgs struct {
	// Cookie duration in seconds. This determines the length of the session stickiness.
	CookieDuration pulumi.IntInput
	// Whether to enable session stickiness for the load balancer.
	Enabled pulumi.BoolInput
	// Name of the load balancer to which you want to enable session stickiness.
	//
	// The following arguments are optional:
	LbName pulumi.StringInput
	// Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
	Region pulumi.StringPtrInput
}

The set of arguments for constructing a LbStickinessPolicy resource.

func (LbStickinessPolicyArgs) ElementType

func (LbStickinessPolicyArgs) ElementType() reflect.Type

type LbStickinessPolicyArray

type LbStickinessPolicyArray []LbStickinessPolicyInput

func (LbStickinessPolicyArray) ElementType

func (LbStickinessPolicyArray) ElementType() reflect.Type

func (LbStickinessPolicyArray) ToLbStickinessPolicyArrayOutput

func (i LbStickinessPolicyArray) ToLbStickinessPolicyArrayOutput() LbStickinessPolicyArrayOutput

func (LbStickinessPolicyArray) ToLbStickinessPolicyArrayOutputWithContext

func (i LbStickinessPolicyArray) ToLbStickinessPolicyArrayOutputWithContext(ctx context.Context) LbStickinessPolicyArrayOutput

type LbStickinessPolicyArrayInput

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

type LbStickinessPolicyArrayOutput struct{ *pulumi.OutputState }

func (LbStickinessPolicyArrayOutput) ElementType

func (LbStickinessPolicyArrayOutput) Index

func (LbStickinessPolicyArrayOutput) ToLbStickinessPolicyArrayOutput

func (o LbStickinessPolicyArrayOutput) ToLbStickinessPolicyArrayOutput() LbStickinessPolicyArrayOutput

func (LbStickinessPolicyArrayOutput) ToLbStickinessPolicyArrayOutputWithContext

func (o LbStickinessPolicyArrayOutput) ToLbStickinessPolicyArrayOutputWithContext(ctx context.Context) LbStickinessPolicyArrayOutput

type LbStickinessPolicyInput

type LbStickinessPolicyInput interface {
	pulumi.Input

	ToLbStickinessPolicyOutput() LbStickinessPolicyOutput
	ToLbStickinessPolicyOutputWithContext(ctx context.Context) LbStickinessPolicyOutput
}

type LbStickinessPolicyMap

type LbStickinessPolicyMap map[string]LbStickinessPolicyInput

func (LbStickinessPolicyMap) ElementType

func (LbStickinessPolicyMap) ElementType() reflect.Type

func (LbStickinessPolicyMap) ToLbStickinessPolicyMapOutput

func (i LbStickinessPolicyMap) ToLbStickinessPolicyMapOutput() LbStickinessPolicyMapOutput

func (LbStickinessPolicyMap) ToLbStickinessPolicyMapOutputWithContext

func (i LbStickinessPolicyMap) ToLbStickinessPolicyMapOutputWithContext(ctx context.Context) LbStickinessPolicyMapOutput

type LbStickinessPolicyMapInput

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

type LbStickinessPolicyMapOutput struct{ *pulumi.OutputState }

func (LbStickinessPolicyMapOutput) ElementType

func (LbStickinessPolicyMapOutput) MapIndex

func (LbStickinessPolicyMapOutput) ToLbStickinessPolicyMapOutput

func (o LbStickinessPolicyMapOutput) ToLbStickinessPolicyMapOutput() LbStickinessPolicyMapOutput

func (LbStickinessPolicyMapOutput) ToLbStickinessPolicyMapOutputWithContext

func (o LbStickinessPolicyMapOutput) ToLbStickinessPolicyMapOutputWithContext(ctx context.Context) LbStickinessPolicyMapOutput

type LbStickinessPolicyOutput

type LbStickinessPolicyOutput struct{ *pulumi.OutputState }

func (LbStickinessPolicyOutput) CookieDuration

func (o LbStickinessPolicyOutput) CookieDuration() pulumi.IntOutput

Cookie duration in seconds. This determines the length of the session stickiness.

func (LbStickinessPolicyOutput) ElementType

func (LbStickinessPolicyOutput) ElementType() reflect.Type

func (LbStickinessPolicyOutput) Enabled

Whether to enable session stickiness for the load balancer.

func (LbStickinessPolicyOutput) LbName

Name of the load balancer to which you want to enable session stickiness.

The following arguments are optional:

func (LbStickinessPolicyOutput) Region

Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.

func (LbStickinessPolicyOutput) ToLbStickinessPolicyOutput

func (o LbStickinessPolicyOutput) ToLbStickinessPolicyOutput() LbStickinessPolicyOutput

func (LbStickinessPolicyOutput) ToLbStickinessPolicyOutputWithContext

func (o LbStickinessPolicyOutput) ToLbStickinessPolicyOutputWithContext(ctx context.Context) LbStickinessPolicyOutput

type LbStickinessPolicyState

type LbStickinessPolicyState struct {
	// Cookie duration in seconds. This determines the length of the session stickiness.
	CookieDuration pulumi.IntPtrInput
	// Whether to enable session stickiness for the load balancer.
	Enabled pulumi.BoolPtrInput
	// Name of the load balancer to which you want to enable session stickiness.
	//
	// The following arguments are optional:
	LbName pulumi.StringPtrInput
	// Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
	Region pulumi.StringPtrInput
}

func (LbStickinessPolicyState) ElementType

func (LbStickinessPolicyState) ElementType() reflect.Type

type StaticIp

type StaticIp struct {
	pulumi.CustomResourceState

	// ARN of the Lightsail static IP.
	Arn pulumi.StringOutput `pulumi:"arn"`
	// Allocated static IP address.
	IpAddress pulumi.StringOutput `pulumi:"ipAddress"`
	// Name for the allocated static IP.
	//
	// The following arguments are optional:
	Name pulumi.StringOutput `pulumi:"name"`
	// Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
	Region pulumi.StringOutput `pulumi:"region"`
	// Support code for the static IP. Include this code in your email to support when you have questions about a static IP in Lightsail. This code enables our support team to look up your Lightsail information more easily.
	SupportCode pulumi.StringOutput `pulumi:"supportCode"`
}

Manages a static IP address.

Use this resource to allocate a static IP address that can be attached to Lightsail instances to provide a consistent public IP address that persists across instance restarts.

> **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/v7/go/aws/lightsail"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := lightsail.NewStaticIp(ctx, "example", &lightsail.StaticIpArgs{
			Name: pulumi.String("example"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Using `pulumi import`, import `aws_lightsail_static_ip` using the name attribute. For example:

```sh $ pulumi import aws:lightsail/staticIp:StaticIp example example ```

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 {
	// Name for the allocated static IP.
	//
	// The following arguments are optional:
	Name pulumi.StringPtrInput
	// Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
	Region 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

	// Name of the Lightsail instance to attach the IP to.
	InstanceName pulumi.StringOutput `pulumi:"instanceName"`
	// Allocated static IP address.
	IpAddress pulumi.StringOutput `pulumi:"ipAddress"`
	// Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
	Region pulumi.StringOutput `pulumi:"region"`
	// Name of the allocated static IP.
	//
	// The following arguments are optional:
	StaticIpName pulumi.StringOutput `pulumi:"staticIpName"`
}

Manages a static IP address attachment - relationship between a Lightsail static IP and Lightsail instance.

Use this resource to attach a static IP address to a Lightsail instance to provide a consistent public IP address that persists across instance restarts.

> **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/v7/go/aws/lightsail"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := lightsail.NewStaticIp(ctx, "example", &lightsail.StaticIpArgs{
			Name: pulumi.String("example"),
		})
		if err != nil {
			return err
		}
		exampleInstance, err := lightsail.NewInstance(ctx, "example", &lightsail.InstanceArgs{
			Name:             pulumi.String("example"),
			AvailabilityZone: pulumi.String("us-east-1a"),
			BlueprintId:      pulumi.String("ubuntu_20_04"),
			BundleId:         pulumi.String("nano_2_0"),
		})
		if err != nil {
			return err
		}
		_, err = lightsail.NewStaticIpAttachment(ctx, "example", &lightsail.StaticIpAttachmentArgs{
			StaticIpName: example.ID(),
			InstanceName: exampleInstance.ID(),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Using `pulumi import`, import `aws_lightsail_static_ip_attachment` using the static IP name. For example:

```sh $ pulumi import aws:lightsail/staticIpAttachment:StaticIpAttachment example example-static-ip ```

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 {
	// Name of the Lightsail instance to attach the IP to.
	InstanceName pulumi.StringInput
	// Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
	Region pulumi.StringPtrInput
	// Name of the allocated static IP.
	//
	// The following arguments are optional:
	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

func (o StaticIpAttachmentOutput) InstanceName() pulumi.StringOutput

Name of the Lightsail instance to attach the IP to.

func (StaticIpAttachmentOutput) IpAddress

Allocated static IP address.

func (StaticIpAttachmentOutput) Region

Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.

func (StaticIpAttachmentOutput) StaticIpName

func (o StaticIpAttachmentOutput) StaticIpName() pulumi.StringOutput

Name of the allocated static IP.

The following arguments are optional:

func (StaticIpAttachmentOutput) ToStaticIpAttachmentOutput

func (o StaticIpAttachmentOutput) ToStaticIpAttachmentOutput() StaticIpAttachmentOutput

func (StaticIpAttachmentOutput) ToStaticIpAttachmentOutputWithContext

func (o StaticIpAttachmentOutput) ToStaticIpAttachmentOutputWithContext(ctx context.Context) StaticIpAttachmentOutput

type StaticIpAttachmentState

type StaticIpAttachmentState struct {
	// Name of the Lightsail instance to attach the IP to.
	InstanceName pulumi.StringPtrInput
	// Allocated static IP address.
	IpAddress pulumi.StringPtrInput
	// Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
	Region pulumi.StringPtrInput
	// Name of the allocated static IP.
	//
	// The following arguments are optional:
	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

ARN of the Lightsail static IP.

func (StaticIpOutput) ElementType

func (StaticIpOutput) ElementType() reflect.Type

func (StaticIpOutput) IpAddress

func (o StaticIpOutput) IpAddress() pulumi.StringOutput

Allocated static IP address.

func (StaticIpOutput) Name

Name for the allocated static IP.

The following arguments are optional:

func (StaticIpOutput) Region

func (o StaticIpOutput) Region() pulumi.StringOutput

Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.

func (StaticIpOutput) SupportCode

func (o StaticIpOutput) SupportCode() pulumi.StringOutput

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

func (StaticIpOutput) ToStaticIpOutput

func (o StaticIpOutput) ToStaticIpOutput() StaticIpOutput

func (StaticIpOutput) ToStaticIpOutputWithContext

func (o StaticIpOutput) ToStaticIpOutputWithContext(ctx context.Context) StaticIpOutput

type StaticIpState

type StaticIpState struct {
	// ARN of the Lightsail static IP.
	Arn pulumi.StringPtrInput
	// Allocated static IP address.
	IpAddress pulumi.StringPtrInput
	// Name for the allocated static IP.
	//
	// The following arguments are optional:
	Name pulumi.StringPtrInput
	// Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
	Region pulumi.StringPtrInput
	// Support code for the static IP. Include this code in your email to support when you have questions about a static IP in Lightsail. This code enables our support team to look up your Lightsail information more easily.
	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