Documentation ¶
Index ¶
- type Domain
- func (*Domain) ElementType() reflect.Type
- func (i *Domain) ToDomainOutput() DomainOutput
- func (i *Domain) ToDomainOutputWithContext(ctx context.Context) DomainOutput
- func (i *Domain) ToDomainPtrOutput() DomainPtrOutput
- func (i *Domain) ToDomainPtrOutputWithContext(ctx context.Context) DomainPtrOutput
- type DomainArgs
- type DomainArray
- type DomainArrayInput
- type DomainArrayOutput
- type DomainInput
- type DomainMap
- type DomainMapInput
- type DomainMapOutput
- type DomainOutput
- func (DomainOutput) ElementType() reflect.Type
- func (o DomainOutput) ToDomainOutput() DomainOutput
- func (o DomainOutput) ToDomainOutputWithContext(ctx context.Context) DomainOutput
- func (o DomainOutput) ToDomainPtrOutput() DomainPtrOutput
- func (o DomainOutput) ToDomainPtrOutputWithContext(ctx context.Context) DomainPtrOutput
- type DomainPtrInput
- type DomainPtrOutput
- type DomainState
- type Instance
- func (*Instance) ElementType() reflect.Type
- func (i *Instance) ToInstanceOutput() InstanceOutput
- func (i *Instance) ToInstanceOutputWithContext(ctx context.Context) InstanceOutput
- func (i *Instance) ToInstancePtrOutput() InstancePtrOutput
- func (i *Instance) ToInstancePtrOutputWithContext(ctx context.Context) InstancePtrOutput
- type InstanceArgs
- type InstanceArray
- type InstanceArrayInput
- type InstanceArrayOutput
- type InstanceInput
- type InstanceMap
- type InstanceMapInput
- type InstanceMapOutput
- type InstanceOutput
- func (InstanceOutput) ElementType() reflect.Type
- func (o InstanceOutput) ToInstanceOutput() InstanceOutput
- func (o InstanceOutput) ToInstanceOutputWithContext(ctx context.Context) InstanceOutput
- func (o InstanceOutput) ToInstancePtrOutput() InstancePtrOutput
- func (o InstanceOutput) ToInstancePtrOutputWithContext(ctx context.Context) InstancePtrOutput
- type InstancePtrInput
- type InstancePtrOutput
- type InstancePublicPorts
- func (*InstancePublicPorts) ElementType() reflect.Type
- func (i *InstancePublicPorts) ToInstancePublicPortsOutput() InstancePublicPortsOutput
- func (i *InstancePublicPorts) ToInstancePublicPortsOutputWithContext(ctx context.Context) InstancePublicPortsOutput
- func (i *InstancePublicPorts) ToInstancePublicPortsPtrOutput() InstancePublicPortsPtrOutput
- func (i *InstancePublicPorts) ToInstancePublicPortsPtrOutputWithContext(ctx context.Context) InstancePublicPortsPtrOutput
- type InstancePublicPortsArgs
- type InstancePublicPortsArray
- type InstancePublicPortsArrayInput
- type InstancePublicPortsArrayOutput
- func (InstancePublicPortsArrayOutput) ElementType() reflect.Type
- func (o InstancePublicPortsArrayOutput) Index(i pulumi.IntInput) InstancePublicPortsOutput
- func (o InstancePublicPortsArrayOutput) ToInstancePublicPortsArrayOutput() InstancePublicPortsArrayOutput
- func (o InstancePublicPortsArrayOutput) ToInstancePublicPortsArrayOutputWithContext(ctx context.Context) InstancePublicPortsArrayOutput
- type InstancePublicPortsInput
- type InstancePublicPortsMap
- type InstancePublicPortsMapInput
- type InstancePublicPortsMapOutput
- func (InstancePublicPortsMapOutput) ElementType() reflect.Type
- func (o InstancePublicPortsMapOutput) MapIndex(k pulumi.StringInput) InstancePublicPortsOutput
- func (o InstancePublicPortsMapOutput) ToInstancePublicPortsMapOutput() InstancePublicPortsMapOutput
- func (o InstancePublicPortsMapOutput) ToInstancePublicPortsMapOutputWithContext(ctx context.Context) InstancePublicPortsMapOutput
- type InstancePublicPortsOutput
- func (InstancePublicPortsOutput) ElementType() reflect.Type
- func (o InstancePublicPortsOutput) ToInstancePublicPortsOutput() InstancePublicPortsOutput
- func (o InstancePublicPortsOutput) ToInstancePublicPortsOutputWithContext(ctx context.Context) InstancePublicPortsOutput
- func (o InstancePublicPortsOutput) ToInstancePublicPortsPtrOutput() InstancePublicPortsPtrOutput
- func (o InstancePublicPortsOutput) ToInstancePublicPortsPtrOutputWithContext(ctx context.Context) InstancePublicPortsPtrOutput
- type InstancePublicPortsPortInfo
- type InstancePublicPortsPortInfoArgs
- func (InstancePublicPortsPortInfoArgs) ElementType() reflect.Type
- func (i InstancePublicPortsPortInfoArgs) ToInstancePublicPortsPortInfoOutput() InstancePublicPortsPortInfoOutput
- func (i InstancePublicPortsPortInfoArgs) ToInstancePublicPortsPortInfoOutputWithContext(ctx context.Context) InstancePublicPortsPortInfoOutput
- type InstancePublicPortsPortInfoArray
- func (InstancePublicPortsPortInfoArray) ElementType() reflect.Type
- func (i InstancePublicPortsPortInfoArray) ToInstancePublicPortsPortInfoArrayOutput() InstancePublicPortsPortInfoArrayOutput
- func (i InstancePublicPortsPortInfoArray) ToInstancePublicPortsPortInfoArrayOutputWithContext(ctx context.Context) InstancePublicPortsPortInfoArrayOutput
- type InstancePublicPortsPortInfoArrayInput
- type InstancePublicPortsPortInfoArrayOutput
- func (InstancePublicPortsPortInfoArrayOutput) ElementType() reflect.Type
- func (o InstancePublicPortsPortInfoArrayOutput) Index(i pulumi.IntInput) InstancePublicPortsPortInfoOutput
- func (o InstancePublicPortsPortInfoArrayOutput) ToInstancePublicPortsPortInfoArrayOutput() InstancePublicPortsPortInfoArrayOutput
- func (o InstancePublicPortsPortInfoArrayOutput) ToInstancePublicPortsPortInfoArrayOutputWithContext(ctx context.Context) InstancePublicPortsPortInfoArrayOutput
- type InstancePublicPortsPortInfoInput
- type InstancePublicPortsPortInfoOutput
- func (o InstancePublicPortsPortInfoOutput) Cidrs() pulumi.StringArrayOutput
- func (InstancePublicPortsPortInfoOutput) ElementType() reflect.Type
- func (o InstancePublicPortsPortInfoOutput) FromPort() pulumi.IntOutput
- func (o InstancePublicPortsPortInfoOutput) Protocol() pulumi.StringOutput
- func (o InstancePublicPortsPortInfoOutput) ToInstancePublicPortsPortInfoOutput() InstancePublicPortsPortInfoOutput
- func (o InstancePublicPortsPortInfoOutput) ToInstancePublicPortsPortInfoOutputWithContext(ctx context.Context) InstancePublicPortsPortInfoOutput
- func (o InstancePublicPortsPortInfoOutput) ToPort() pulumi.IntOutput
- type InstancePublicPortsPtrInput
- type InstancePublicPortsPtrOutput
- type InstancePublicPortsState
- type InstanceState
- type KeyPair
- func (*KeyPair) ElementType() reflect.Type
- func (i *KeyPair) ToKeyPairOutput() KeyPairOutput
- func (i *KeyPair) ToKeyPairOutputWithContext(ctx context.Context) KeyPairOutput
- func (i *KeyPair) ToKeyPairPtrOutput() KeyPairPtrOutput
- func (i *KeyPair) ToKeyPairPtrOutputWithContext(ctx context.Context) KeyPairPtrOutput
- type KeyPairArgs
- type KeyPairArray
- type KeyPairArrayInput
- type KeyPairArrayOutput
- type KeyPairInput
- type KeyPairMap
- type KeyPairMapInput
- type KeyPairMapOutput
- type KeyPairOutput
- func (KeyPairOutput) ElementType() reflect.Type
- func (o KeyPairOutput) ToKeyPairOutput() KeyPairOutput
- func (o KeyPairOutput) ToKeyPairOutputWithContext(ctx context.Context) KeyPairOutput
- func (o KeyPairOutput) ToKeyPairPtrOutput() KeyPairPtrOutput
- func (o KeyPairOutput) ToKeyPairPtrOutputWithContext(ctx context.Context) KeyPairPtrOutput
- type KeyPairPtrInput
- type KeyPairPtrOutput
- type KeyPairState
- type StaticIp
- func (*StaticIp) ElementType() reflect.Type
- func (i *StaticIp) ToStaticIpOutput() StaticIpOutput
- func (i *StaticIp) ToStaticIpOutputWithContext(ctx context.Context) StaticIpOutput
- func (i *StaticIp) ToStaticIpPtrOutput() StaticIpPtrOutput
- func (i *StaticIp) ToStaticIpPtrOutputWithContext(ctx context.Context) StaticIpPtrOutput
- type StaticIpArgs
- type StaticIpArray
- type StaticIpArrayInput
- type StaticIpArrayOutput
- type StaticIpAttachment
- func (*StaticIpAttachment) ElementType() reflect.Type
- func (i *StaticIpAttachment) ToStaticIpAttachmentOutput() StaticIpAttachmentOutput
- func (i *StaticIpAttachment) ToStaticIpAttachmentOutputWithContext(ctx context.Context) StaticIpAttachmentOutput
- func (i *StaticIpAttachment) ToStaticIpAttachmentPtrOutput() StaticIpAttachmentPtrOutput
- func (i *StaticIpAttachment) ToStaticIpAttachmentPtrOutputWithContext(ctx context.Context) StaticIpAttachmentPtrOutput
- type StaticIpAttachmentArgs
- type StaticIpAttachmentArray
- type StaticIpAttachmentArrayInput
- type StaticIpAttachmentArrayOutput
- func (StaticIpAttachmentArrayOutput) ElementType() reflect.Type
- func (o StaticIpAttachmentArrayOutput) Index(i pulumi.IntInput) StaticIpAttachmentOutput
- func (o StaticIpAttachmentArrayOutput) ToStaticIpAttachmentArrayOutput() StaticIpAttachmentArrayOutput
- func (o StaticIpAttachmentArrayOutput) ToStaticIpAttachmentArrayOutputWithContext(ctx context.Context) StaticIpAttachmentArrayOutput
- type StaticIpAttachmentInput
- type StaticIpAttachmentMap
- type StaticIpAttachmentMapInput
- type StaticIpAttachmentMapOutput
- func (StaticIpAttachmentMapOutput) ElementType() reflect.Type
- func (o StaticIpAttachmentMapOutput) MapIndex(k pulumi.StringInput) StaticIpAttachmentOutput
- func (o StaticIpAttachmentMapOutput) ToStaticIpAttachmentMapOutput() StaticIpAttachmentMapOutput
- func (o StaticIpAttachmentMapOutput) ToStaticIpAttachmentMapOutputWithContext(ctx context.Context) StaticIpAttachmentMapOutput
- type StaticIpAttachmentOutput
- func (StaticIpAttachmentOutput) ElementType() reflect.Type
- func (o StaticIpAttachmentOutput) ToStaticIpAttachmentOutput() StaticIpAttachmentOutput
- func (o StaticIpAttachmentOutput) ToStaticIpAttachmentOutputWithContext(ctx context.Context) StaticIpAttachmentOutput
- func (o StaticIpAttachmentOutput) ToStaticIpAttachmentPtrOutput() StaticIpAttachmentPtrOutput
- func (o StaticIpAttachmentOutput) ToStaticIpAttachmentPtrOutputWithContext(ctx context.Context) StaticIpAttachmentPtrOutput
- type StaticIpAttachmentPtrInput
- type StaticIpAttachmentPtrOutput
- type StaticIpAttachmentState
- type StaticIpInput
- type StaticIpMap
- type StaticIpMapInput
- type StaticIpMapOutput
- type StaticIpOutput
- func (StaticIpOutput) ElementType() reflect.Type
- func (o StaticIpOutput) ToStaticIpOutput() StaticIpOutput
- func (o StaticIpOutput) ToStaticIpOutputWithContext(ctx context.Context) StaticIpOutput
- func (o StaticIpOutput) ToStaticIpPtrOutput() StaticIpPtrOutput
- func (o StaticIpOutput) ToStaticIpPtrOutputWithContext(ctx context.Context) StaticIpPtrOutput
- type StaticIpPtrInput
- type StaticIpPtrOutput
- type StaticIpState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Domain ¶
type Domain struct { pulumi.CustomResourceState // The ARN of the Lightsail domain Arn pulumi.StringOutput `pulumi:"arn"` // The name of the Lightsail domain to manage DomainName pulumi.StringOutput `pulumi:"domainName"` }
Creates a domain resource for the specified domain (e.g., example.com). You cannot register a new domain name using Lightsail. You must register a domain name using Amazon Route 53 or another domain name registrar. If you have already registered your domain, you can enter its name in this parameter to manage the DNS records for that domain.
> **Note:** Lightsail is currently only supported in a limited number of AWS Regions, please see ["Regions and Availability Zones in Amazon Lightsail"](https://lightsail.aws.amazon.com/ls/docs/overview/article/understanding-regions-and-availability-zones-in-amazon-lightsail) for more details
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-aws/sdk/v3/go/aws/lightsail" "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := lightsail.NewDomain(ctx, "domainTest", &lightsail.DomainArgs{ DomainName: pulumi.String("mydomain.com"), }) if err != nil { return err } return nil }) }
```
func GetDomain ¶
func GetDomain(ctx *pulumi.Context, name string, id pulumi.IDInput, state *DomainState, opts ...pulumi.ResourceOption) (*Domain, error)
GetDomain gets an existing Domain resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewDomain ¶
func NewDomain(ctx *pulumi.Context, name string, args *DomainArgs, opts ...pulumi.ResourceOption) (*Domain, error)
NewDomain registers a new resource with the given unique name, arguments, and options.
func (*Domain) ElementType ¶ added in v3.13.0
func (*Domain) ToDomainOutput ¶ added in v3.13.0
func (i *Domain) ToDomainOutput() DomainOutput
func (*Domain) ToDomainOutputWithContext ¶ added in v3.13.0
func (i *Domain) ToDomainOutputWithContext(ctx context.Context) DomainOutput
func (*Domain) ToDomainPtrOutput ¶ added in v3.25.0
func (i *Domain) ToDomainPtrOutput() DomainPtrOutput
func (*Domain) ToDomainPtrOutputWithContext ¶ added in v3.25.0
func (i *Domain) ToDomainPtrOutputWithContext(ctx context.Context) DomainPtrOutput
type DomainArgs ¶
type DomainArgs struct { // The name of the Lightsail domain to manage DomainName pulumi.StringInput }
The set of arguments for constructing a Domain resource.
func (DomainArgs) ElementType ¶
func (DomainArgs) ElementType() reflect.Type
type DomainArray ¶ added in v3.25.0
type DomainArray []DomainInput
func (DomainArray) ElementType ¶ added in v3.25.0
func (DomainArray) ElementType() reflect.Type
func (DomainArray) ToDomainArrayOutput ¶ added in v3.25.0
func (i DomainArray) ToDomainArrayOutput() DomainArrayOutput
func (DomainArray) ToDomainArrayOutputWithContext ¶ added in v3.25.0
func (i DomainArray) ToDomainArrayOutputWithContext(ctx context.Context) DomainArrayOutput
type DomainArrayInput ¶ added in v3.25.0
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 ¶ added in v3.25.0
type DomainArrayOutput struct{ *pulumi.OutputState }
func (DomainArrayOutput) ElementType ¶ added in v3.25.0
func (DomainArrayOutput) ElementType() reflect.Type
func (DomainArrayOutput) Index ¶ added in v3.25.0
func (o DomainArrayOutput) Index(i pulumi.IntInput) DomainOutput
func (DomainArrayOutput) ToDomainArrayOutput ¶ added in v3.25.0
func (o DomainArrayOutput) ToDomainArrayOutput() DomainArrayOutput
func (DomainArrayOutput) ToDomainArrayOutputWithContext ¶ added in v3.25.0
func (o DomainArrayOutput) ToDomainArrayOutputWithContext(ctx context.Context) DomainArrayOutput
type DomainInput ¶ added in v3.13.0
type DomainInput interface { pulumi.Input ToDomainOutput() DomainOutput ToDomainOutputWithContext(ctx context.Context) DomainOutput }
type DomainMap ¶ added in v3.25.0
type DomainMap map[string]DomainInput
func (DomainMap) ElementType ¶ added in v3.25.0
func (DomainMap) ToDomainMapOutput ¶ added in v3.25.0
func (i DomainMap) ToDomainMapOutput() DomainMapOutput
func (DomainMap) ToDomainMapOutputWithContext ¶ added in v3.25.0
func (i DomainMap) ToDomainMapOutputWithContext(ctx context.Context) DomainMapOutput
type DomainMapInput ¶ added in v3.25.0
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 ¶ added in v3.25.0
type DomainMapOutput struct{ *pulumi.OutputState }
func (DomainMapOutput) ElementType ¶ added in v3.25.0
func (DomainMapOutput) ElementType() reflect.Type
func (DomainMapOutput) MapIndex ¶ added in v3.25.0
func (o DomainMapOutput) MapIndex(k pulumi.StringInput) DomainOutput
func (DomainMapOutput) ToDomainMapOutput ¶ added in v3.25.0
func (o DomainMapOutput) ToDomainMapOutput() DomainMapOutput
func (DomainMapOutput) ToDomainMapOutputWithContext ¶ added in v3.25.0
func (o DomainMapOutput) ToDomainMapOutputWithContext(ctx context.Context) DomainMapOutput
type DomainOutput ¶ added in v3.13.0
type DomainOutput struct {
*pulumi.OutputState
}
func (DomainOutput) ElementType ¶ added in v3.13.0
func (DomainOutput) ElementType() reflect.Type
func (DomainOutput) ToDomainOutput ¶ added in v3.13.0
func (o DomainOutput) ToDomainOutput() DomainOutput
func (DomainOutput) ToDomainOutputWithContext ¶ added in v3.13.0
func (o DomainOutput) ToDomainOutputWithContext(ctx context.Context) DomainOutput
func (DomainOutput) ToDomainPtrOutput ¶ added in v3.25.0
func (o DomainOutput) ToDomainPtrOutput() DomainPtrOutput
func (DomainOutput) ToDomainPtrOutputWithContext ¶ added in v3.25.0
func (o DomainOutput) ToDomainPtrOutputWithContext(ctx context.Context) DomainPtrOutput
type DomainPtrInput ¶ added in v3.25.0
type DomainPtrInput interface { pulumi.Input ToDomainPtrOutput() DomainPtrOutput ToDomainPtrOutputWithContext(ctx context.Context) DomainPtrOutput }
type DomainPtrOutput ¶ added in v3.25.0
type DomainPtrOutput struct {
*pulumi.OutputState
}
func (DomainPtrOutput) ElementType ¶ added in v3.25.0
func (DomainPtrOutput) ElementType() reflect.Type
func (DomainPtrOutput) ToDomainPtrOutput ¶ added in v3.25.0
func (o DomainPtrOutput) ToDomainPtrOutput() DomainPtrOutput
func (DomainPtrOutput) ToDomainPtrOutputWithContext ¶ added in v3.25.0
func (o DomainPtrOutput) ToDomainPtrOutputWithContext(ctx context.Context) DomainPtrOutput
type DomainState ¶
type DomainState struct { // The ARN of the Lightsail domain Arn pulumi.StringPtrInput // The name of the Lightsail domain to manage DomainName pulumi.StringPtrInput }
func (DomainState) ElementType ¶
func (DomainState) ElementType() reflect.Type
type Instance ¶
type Instance struct { pulumi.CustomResourceState // The ARN of the Lightsail instance (matches `id`). Arn pulumi.StringOutput `pulumi:"arn"` // The Availability Zone in which to create your // instance (see list below) AvailabilityZone pulumi.StringOutput `pulumi:"availabilityZone"` // The ID for a virtual private server image. A list of available blueprint IDs can be obtained using the AWS CLI command: `aws lightsail get-blueprints` BlueprintId pulumi.StringOutput `pulumi:"blueprintId"` // The bundle of specification information (see list below) BundleId pulumi.StringOutput `pulumi:"bundleId"` CpuCount pulumi.IntOutput `pulumi:"cpuCount"` // The timestamp when the instance was created. CreatedAt pulumi.StringOutput `pulumi:"createdAt"` // (**Deprecated**) The first IPv6 address of the Lightsail instance. Use `ipv6Addresses` attribute instead. // // Deprecated: use `ipv6_addresses` attribute instead Ipv6Address pulumi.StringOutput `pulumi:"ipv6Address"` // List of IPv6 addresses for the Lightsail instance. Ipv6Addresses pulumi.StringArrayOutput `pulumi:"ipv6Addresses"` IsStaticIp pulumi.BoolOutput `pulumi:"isStaticIp"` // The name of your key pair. Created in the // Lightsail console (cannot use `ec2.KeyPair` at this time) KeyPairName pulumi.StringPtrOutput `pulumi:"keyPairName"` // The name of the Lightsail Instance. Names be unique within each AWS Region in your Lightsail account. Name pulumi.StringOutput `pulumi:"name"` PrivateIpAddress pulumi.StringOutput `pulumi:"privateIpAddress"` PublicIpAddress pulumi.StringOutput `pulumi:"publicIpAddress"` RamSize pulumi.Float64Output `pulumi:"ramSize"` // A map of tags to assign to the resource. To create a key-only tag, use an empty string as the value. Tags pulumi.StringMapOutput `pulumi:"tags"` // launch script to configure server with additional user data UserData pulumi.StringPtrOutput `pulumi:"userData"` Username pulumi.StringOutput `pulumi:"username"` }
Provides a Lightsail Instance. Amazon Lightsail is a service to provide easy virtual private servers with custom software already setup. See [What is Amazon Lightsail?](https://lightsail.aws.amazon.com/ls/docs/getting-started/article/what-is-amazon-lightsail) for more information.
> **Note:** Lightsail is currently only supported in a limited number of AWS Regions, please see ["Regions and Availability Zones in Amazon Lightsail"](https://lightsail.aws.amazon.com/ls/docs/overview/article/understanding-regions-and-availability-zones-in-amazon-lightsail) for more details
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-aws/sdk/v3/go/aws/lightsail" "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := lightsail.NewInstance(ctx, "gitlabTest", &lightsail.InstanceArgs{ AvailabilityZone: pulumi.String("us-east-1b"), BlueprintId: pulumi.String("string"), BundleId: pulumi.String("string"), KeyPairName: pulumi.String("some_key_name"), Tags: pulumi.StringMap{ "foo": pulumi.String("bar"), }, }) if err != nil { return err } return nil }) }
``` ## Availability Zones
Lightsail currently supports the following Availability Zones (e.g. `us-east-1a`):
- `ap-northeast-1{a,c,d}` - `ap-northeast-2{a,c}` - `ap-south-1{a,b}` - `ap-southeast-1{a,b,c}` - `ap-southeast-2{a,b,c}` - `ca-central-1{a,b}` - `eu-central-1{a,b,c}` - `eu-west-1{a,b,c}` - `eu-west-2{a,b,c}` - `eu-west-3{a,b,c}` - `us-east-1{a,b,c,d,e,f}` - `us-east-2{a,b,c}` - `us-west-2{a,b,c}`
## Bundles
Lightsail currently supports the following Bundle IDs (e.g. an instance in `ap-northeast-1` would use `small20`):
### Prefix
A Bundle ID starts with one of the below size prefixes:
- `nano_` - `micro_` - `small_` - `medium_` - `large_` - `xlarge_` - `2xlarge_`
### Suffix
A Bundle ID ends with one of the following suffixes depending on Availability Zone:
- ap-northeast-1: `20` - ap-northeast-2: `20` - ap-south-1: `21` - ap-southeast-1: `20` - ap-southeast-2: `22` - ca-central-1: `20` - eu-central-1: `20` - eu-west-1: `20` - eu-west-2: `20` - eu-west-3: `20` - us-east-1: `20` - us-east-2: `20` - us-west-2: `20`
## Import
Lightsail Instances can be imported using their name, e.g.
```sh
$ pulumi import aws:lightsail/instance:Instance gitlab_test 'custom gitlab'
```
func GetInstance ¶
func GetInstance(ctx *pulumi.Context, name string, id pulumi.IDInput, state *InstanceState, opts ...pulumi.ResourceOption) (*Instance, error)
GetInstance gets an existing Instance resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewInstance ¶
func NewInstance(ctx *pulumi.Context, name string, args *InstanceArgs, opts ...pulumi.ResourceOption) (*Instance, error)
NewInstance registers a new resource with the given unique name, arguments, and options.
func (*Instance) ElementType ¶ added in v3.13.0
func (*Instance) ToInstanceOutput ¶ added in v3.13.0
func (i *Instance) ToInstanceOutput() InstanceOutput
func (*Instance) ToInstanceOutputWithContext ¶ added in v3.13.0
func (i *Instance) ToInstanceOutputWithContext(ctx context.Context) InstanceOutput
func (*Instance) ToInstancePtrOutput ¶ added in v3.25.0
func (i *Instance) ToInstancePtrOutput() InstancePtrOutput
func (*Instance) ToInstancePtrOutputWithContext ¶ added in v3.25.0
func (i *Instance) ToInstancePtrOutputWithContext(ctx context.Context) InstancePtrOutput
type InstanceArgs ¶
type InstanceArgs struct { // The Availability Zone in which to create your // instance (see list below) AvailabilityZone pulumi.StringInput // The ID for a virtual private server image. A list of available blueprint IDs can be obtained using the AWS CLI command: `aws lightsail get-blueprints` BlueprintId pulumi.StringInput // The bundle of specification information (see list below) BundleId pulumi.StringInput // The name of your key pair. Created in the // Lightsail console (cannot use `ec2.KeyPair` at this time) KeyPairName pulumi.StringPtrInput // The name of the Lightsail Instance. Names be unique within each AWS Region in your Lightsail account. Name pulumi.StringPtrInput // A map of tags to assign to the resource. To create a key-only tag, use an empty string as the value. Tags pulumi.StringMapInput // launch script 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 ¶ added in v3.25.0
type InstanceArray []InstanceInput
func (InstanceArray) ElementType ¶ added in v3.25.0
func (InstanceArray) ElementType() reflect.Type
func (InstanceArray) ToInstanceArrayOutput ¶ added in v3.25.0
func (i InstanceArray) ToInstanceArrayOutput() InstanceArrayOutput
func (InstanceArray) ToInstanceArrayOutputWithContext ¶ added in v3.25.0
func (i InstanceArray) ToInstanceArrayOutputWithContext(ctx context.Context) InstanceArrayOutput
type InstanceArrayInput ¶ added in v3.25.0
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 ¶ added in v3.25.0
type InstanceArrayOutput struct{ *pulumi.OutputState }
func (InstanceArrayOutput) ElementType ¶ added in v3.25.0
func (InstanceArrayOutput) ElementType() reflect.Type
func (InstanceArrayOutput) Index ¶ added in v3.25.0
func (o InstanceArrayOutput) Index(i pulumi.IntInput) InstanceOutput
func (InstanceArrayOutput) ToInstanceArrayOutput ¶ added in v3.25.0
func (o InstanceArrayOutput) ToInstanceArrayOutput() InstanceArrayOutput
func (InstanceArrayOutput) ToInstanceArrayOutputWithContext ¶ added in v3.25.0
func (o InstanceArrayOutput) ToInstanceArrayOutputWithContext(ctx context.Context) InstanceArrayOutput
type InstanceInput ¶ added in v3.13.0
type InstanceInput interface { pulumi.Input ToInstanceOutput() InstanceOutput ToInstanceOutputWithContext(ctx context.Context) InstanceOutput }
type InstanceMap ¶ added in v3.25.0
type InstanceMap map[string]InstanceInput
func (InstanceMap) ElementType ¶ added in v3.25.0
func (InstanceMap) ElementType() reflect.Type
func (InstanceMap) ToInstanceMapOutput ¶ added in v3.25.0
func (i InstanceMap) ToInstanceMapOutput() InstanceMapOutput
func (InstanceMap) ToInstanceMapOutputWithContext ¶ added in v3.25.0
func (i InstanceMap) ToInstanceMapOutputWithContext(ctx context.Context) InstanceMapOutput
type InstanceMapInput ¶ added in v3.25.0
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 ¶ added in v3.25.0
type InstanceMapOutput struct{ *pulumi.OutputState }
func (InstanceMapOutput) ElementType ¶ added in v3.25.0
func (InstanceMapOutput) ElementType() reflect.Type
func (InstanceMapOutput) MapIndex ¶ added in v3.25.0
func (o InstanceMapOutput) MapIndex(k pulumi.StringInput) InstanceOutput
func (InstanceMapOutput) ToInstanceMapOutput ¶ added in v3.25.0
func (o InstanceMapOutput) ToInstanceMapOutput() InstanceMapOutput
func (InstanceMapOutput) ToInstanceMapOutputWithContext ¶ added in v3.25.0
func (o InstanceMapOutput) ToInstanceMapOutputWithContext(ctx context.Context) InstanceMapOutput
type InstanceOutput ¶ added in v3.13.0
type InstanceOutput struct {
*pulumi.OutputState
}
func (InstanceOutput) ElementType ¶ added in v3.13.0
func (InstanceOutput) ElementType() reflect.Type
func (InstanceOutput) ToInstanceOutput ¶ added in v3.13.0
func (o InstanceOutput) ToInstanceOutput() InstanceOutput
func (InstanceOutput) ToInstanceOutputWithContext ¶ added in v3.13.0
func (o InstanceOutput) ToInstanceOutputWithContext(ctx context.Context) InstanceOutput
func (InstanceOutput) ToInstancePtrOutput ¶ added in v3.25.0
func (o InstanceOutput) ToInstancePtrOutput() InstancePtrOutput
func (InstanceOutput) ToInstancePtrOutputWithContext ¶ added in v3.25.0
func (o InstanceOutput) ToInstancePtrOutputWithContext(ctx context.Context) InstancePtrOutput
type InstancePtrInput ¶ added in v3.25.0
type InstancePtrInput interface { pulumi.Input ToInstancePtrOutput() InstancePtrOutput ToInstancePtrOutputWithContext(ctx context.Context) InstancePtrOutput }
type InstancePtrOutput ¶ added in v3.25.0
type InstancePtrOutput struct {
*pulumi.OutputState
}
func (InstancePtrOutput) ElementType ¶ added in v3.25.0
func (InstancePtrOutput) ElementType() reflect.Type
func (InstancePtrOutput) ToInstancePtrOutput ¶ added in v3.25.0
func (o InstancePtrOutput) ToInstancePtrOutput() InstancePtrOutput
func (InstancePtrOutput) ToInstancePtrOutputWithContext ¶ added in v3.25.0
func (o InstancePtrOutput) ToInstancePtrOutputWithContext(ctx context.Context) InstancePtrOutput
type InstancePublicPorts ¶ added in v3.35.0
type InstancePublicPorts struct { pulumi.CustomResourceState // Name of the Lightsail Instance. InstanceName pulumi.StringOutput `pulumi:"instanceName"` // Configuration block with port information. AWS closes all currently open ports that are not included in the `portInfo`. Detailed below. PortInfos InstancePublicPortsPortInfoArrayOutput `pulumi:"portInfos"` }
Opens ports for a specific Amazon Lightsail instance, and specifies the IP addresses allowed to connect to the instance through the ports, and the protocol.
> See [What is Amazon Lightsail?](https://lightsail.aws.amazon.com/ls/docs/getting-started/article/what-is-amazon-lightsail) for more information.
> **Note:** Lightsail is currently only supported in a limited number of AWS Regions, please see ["Regions and Availability Zones in Amazon Lightsail"](https://lightsail.aws.amazon.com/ls/docs/overview/article/understanding-regions-and-availability-zones-in-amazon-lightsail) for more details.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-aws/sdk/v3/go/aws/lightsail" "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { testInstance, err := lightsail.NewInstance(ctx, "testInstance", &lightsail.InstanceArgs{ AvailabilityZone: pulumi.Any(data.Aws_availability_zones.Available.Names[0]), BlueprintId: pulumi.String("amazon_linux"), BundleId: pulumi.String("nano_1_0"), }) if err != nil { return err } _, err = lightsail.NewInstancePublicPorts(ctx, "testInstancePublicPorts", &lightsail.InstancePublicPortsArgs{ InstanceName: testInstance.Name, PortInfos: lightsail.InstancePublicPortsPortInfoArray{ &lightsail.InstancePublicPortsPortInfoArgs{ Protocol: pulumi.String("tcp"), FromPort: pulumi.Int(80), ToPort: pulumi.Int(80), }, }, }) if err != nil { return err } return nil }) }
```
func GetInstancePublicPorts ¶ added in v3.35.0
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 ¶ added in v3.35.0
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 ¶ added in v3.35.0
func (*InstancePublicPorts) ElementType() reflect.Type
func (*InstancePublicPorts) ToInstancePublicPortsOutput ¶ added in v3.35.0
func (i *InstancePublicPorts) ToInstancePublicPortsOutput() InstancePublicPortsOutput
func (*InstancePublicPorts) ToInstancePublicPortsOutputWithContext ¶ added in v3.35.0
func (i *InstancePublicPorts) ToInstancePublicPortsOutputWithContext(ctx context.Context) InstancePublicPortsOutput
func (*InstancePublicPorts) ToInstancePublicPortsPtrOutput ¶ added in v3.35.0
func (i *InstancePublicPorts) ToInstancePublicPortsPtrOutput() InstancePublicPortsPtrOutput
func (*InstancePublicPorts) ToInstancePublicPortsPtrOutputWithContext ¶ added in v3.35.0
func (i *InstancePublicPorts) ToInstancePublicPortsPtrOutputWithContext(ctx context.Context) InstancePublicPortsPtrOutput
type InstancePublicPortsArgs ¶ added in v3.35.0
type InstancePublicPortsArgs struct { // Name of the Lightsail Instance. InstanceName pulumi.StringInput // Configuration block with port information. AWS closes all currently open ports that are not included in the `portInfo`. Detailed below. PortInfos InstancePublicPortsPortInfoArrayInput }
The set of arguments for constructing a InstancePublicPorts resource.
func (InstancePublicPortsArgs) ElementType ¶ added in v3.35.0
func (InstancePublicPortsArgs) ElementType() reflect.Type
type InstancePublicPortsArray ¶ added in v3.35.0
type InstancePublicPortsArray []InstancePublicPortsInput
func (InstancePublicPortsArray) ElementType ¶ added in v3.35.0
func (InstancePublicPortsArray) ElementType() reflect.Type
func (InstancePublicPortsArray) ToInstancePublicPortsArrayOutput ¶ added in v3.35.0
func (i InstancePublicPortsArray) ToInstancePublicPortsArrayOutput() InstancePublicPortsArrayOutput
func (InstancePublicPortsArray) ToInstancePublicPortsArrayOutputWithContext ¶ added in v3.35.0
func (i InstancePublicPortsArray) ToInstancePublicPortsArrayOutputWithContext(ctx context.Context) InstancePublicPortsArrayOutput
type InstancePublicPortsArrayInput ¶ added in v3.35.0
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 ¶ added in v3.35.0
type InstancePublicPortsArrayOutput struct{ *pulumi.OutputState }
func (InstancePublicPortsArrayOutput) ElementType ¶ added in v3.35.0
func (InstancePublicPortsArrayOutput) ElementType() reflect.Type
func (InstancePublicPortsArrayOutput) Index ¶ added in v3.35.0
func (o InstancePublicPortsArrayOutput) Index(i pulumi.IntInput) InstancePublicPortsOutput
func (InstancePublicPortsArrayOutput) ToInstancePublicPortsArrayOutput ¶ added in v3.35.0
func (o InstancePublicPortsArrayOutput) ToInstancePublicPortsArrayOutput() InstancePublicPortsArrayOutput
func (InstancePublicPortsArrayOutput) ToInstancePublicPortsArrayOutputWithContext ¶ added in v3.35.0
func (o InstancePublicPortsArrayOutput) ToInstancePublicPortsArrayOutputWithContext(ctx context.Context) InstancePublicPortsArrayOutput
type InstancePublicPortsInput ¶ added in v3.35.0
type InstancePublicPortsInput interface { pulumi.Input ToInstancePublicPortsOutput() InstancePublicPortsOutput ToInstancePublicPortsOutputWithContext(ctx context.Context) InstancePublicPortsOutput }
type InstancePublicPortsMap ¶ added in v3.35.0
type InstancePublicPortsMap map[string]InstancePublicPortsInput
func (InstancePublicPortsMap) ElementType ¶ added in v3.35.0
func (InstancePublicPortsMap) ElementType() reflect.Type
func (InstancePublicPortsMap) ToInstancePublicPortsMapOutput ¶ added in v3.35.0
func (i InstancePublicPortsMap) ToInstancePublicPortsMapOutput() InstancePublicPortsMapOutput
func (InstancePublicPortsMap) ToInstancePublicPortsMapOutputWithContext ¶ added in v3.35.0
func (i InstancePublicPortsMap) ToInstancePublicPortsMapOutputWithContext(ctx context.Context) InstancePublicPortsMapOutput
type InstancePublicPortsMapInput ¶ added in v3.35.0
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 ¶ added in v3.35.0
type InstancePublicPortsMapOutput struct{ *pulumi.OutputState }
func (InstancePublicPortsMapOutput) ElementType ¶ added in v3.35.0
func (InstancePublicPortsMapOutput) ElementType() reflect.Type
func (InstancePublicPortsMapOutput) MapIndex ¶ added in v3.35.0
func (o InstancePublicPortsMapOutput) MapIndex(k pulumi.StringInput) InstancePublicPortsOutput
func (InstancePublicPortsMapOutput) ToInstancePublicPortsMapOutput ¶ added in v3.35.0
func (o InstancePublicPortsMapOutput) ToInstancePublicPortsMapOutput() InstancePublicPortsMapOutput
func (InstancePublicPortsMapOutput) ToInstancePublicPortsMapOutputWithContext ¶ added in v3.35.0
func (o InstancePublicPortsMapOutput) ToInstancePublicPortsMapOutputWithContext(ctx context.Context) InstancePublicPortsMapOutput
type InstancePublicPortsOutput ¶ added in v3.35.0
type InstancePublicPortsOutput struct {
*pulumi.OutputState
}
func (InstancePublicPortsOutput) ElementType ¶ added in v3.35.0
func (InstancePublicPortsOutput) ElementType() reflect.Type
func (InstancePublicPortsOutput) ToInstancePublicPortsOutput ¶ added in v3.35.0
func (o InstancePublicPortsOutput) ToInstancePublicPortsOutput() InstancePublicPortsOutput
func (InstancePublicPortsOutput) ToInstancePublicPortsOutputWithContext ¶ added in v3.35.0
func (o InstancePublicPortsOutput) ToInstancePublicPortsOutputWithContext(ctx context.Context) InstancePublicPortsOutput
func (InstancePublicPortsOutput) ToInstancePublicPortsPtrOutput ¶ added in v3.35.0
func (o InstancePublicPortsOutput) ToInstancePublicPortsPtrOutput() InstancePublicPortsPtrOutput
func (InstancePublicPortsOutput) ToInstancePublicPortsPtrOutputWithContext ¶ added in v3.35.0
func (o InstancePublicPortsOutput) ToInstancePublicPortsPtrOutputWithContext(ctx context.Context) InstancePublicPortsPtrOutput
type InstancePublicPortsPortInfo ¶ added in v3.35.0
type InstancePublicPortsPortInfo struct { // Set of CIDR blocks. Cidrs []string `pulumi:"cidrs"` // First port in a range of open ports on an instance. FromPort int `pulumi:"fromPort"` // IP protocol name. Valid values are `tcp`, `all`, `udp`, and `icmp`. Protocol string `pulumi:"protocol"` // Last port in a range of open ports on an instance. ToPort int `pulumi:"toPort"` }
type InstancePublicPortsPortInfoArgs ¶ added in v3.35.0
type InstancePublicPortsPortInfoArgs struct { // Set of CIDR blocks. Cidrs pulumi.StringArrayInput `pulumi:"cidrs"` // First port in a range of open ports on an instance. FromPort pulumi.IntInput `pulumi:"fromPort"` // IP protocol name. Valid values are `tcp`, `all`, `udp`, and `icmp`. Protocol pulumi.StringInput `pulumi:"protocol"` // Last port in a range of open ports on an instance. ToPort pulumi.IntInput `pulumi:"toPort"` }
func (InstancePublicPortsPortInfoArgs) ElementType ¶ added in v3.35.0
func (InstancePublicPortsPortInfoArgs) ElementType() reflect.Type
func (InstancePublicPortsPortInfoArgs) ToInstancePublicPortsPortInfoOutput ¶ added in v3.35.0
func (i InstancePublicPortsPortInfoArgs) ToInstancePublicPortsPortInfoOutput() InstancePublicPortsPortInfoOutput
func (InstancePublicPortsPortInfoArgs) ToInstancePublicPortsPortInfoOutputWithContext ¶ added in v3.35.0
func (i InstancePublicPortsPortInfoArgs) ToInstancePublicPortsPortInfoOutputWithContext(ctx context.Context) InstancePublicPortsPortInfoOutput
type InstancePublicPortsPortInfoArray ¶ added in v3.35.0
type InstancePublicPortsPortInfoArray []InstancePublicPortsPortInfoInput
func (InstancePublicPortsPortInfoArray) ElementType ¶ added in v3.35.0
func (InstancePublicPortsPortInfoArray) ElementType() reflect.Type
func (InstancePublicPortsPortInfoArray) ToInstancePublicPortsPortInfoArrayOutput ¶ added in v3.35.0
func (i InstancePublicPortsPortInfoArray) ToInstancePublicPortsPortInfoArrayOutput() InstancePublicPortsPortInfoArrayOutput
func (InstancePublicPortsPortInfoArray) ToInstancePublicPortsPortInfoArrayOutputWithContext ¶ added in v3.35.0
func (i InstancePublicPortsPortInfoArray) ToInstancePublicPortsPortInfoArrayOutputWithContext(ctx context.Context) InstancePublicPortsPortInfoArrayOutput
type InstancePublicPortsPortInfoArrayInput ¶ added in v3.35.0
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 ¶ added in v3.35.0
type InstancePublicPortsPortInfoArrayOutput struct{ *pulumi.OutputState }
func (InstancePublicPortsPortInfoArrayOutput) ElementType ¶ added in v3.35.0
func (InstancePublicPortsPortInfoArrayOutput) ElementType() reflect.Type
func (InstancePublicPortsPortInfoArrayOutput) ToInstancePublicPortsPortInfoArrayOutput ¶ added in v3.35.0
func (o InstancePublicPortsPortInfoArrayOutput) ToInstancePublicPortsPortInfoArrayOutput() InstancePublicPortsPortInfoArrayOutput
func (InstancePublicPortsPortInfoArrayOutput) ToInstancePublicPortsPortInfoArrayOutputWithContext ¶ added in v3.35.0
func (o InstancePublicPortsPortInfoArrayOutput) ToInstancePublicPortsPortInfoArrayOutputWithContext(ctx context.Context) InstancePublicPortsPortInfoArrayOutput
type InstancePublicPortsPortInfoInput ¶ added in v3.35.0
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 ¶ added in v3.35.0
type InstancePublicPortsPortInfoOutput struct{ *pulumi.OutputState }
func (InstancePublicPortsPortInfoOutput) Cidrs ¶ added in v3.35.0
func (o InstancePublicPortsPortInfoOutput) Cidrs() pulumi.StringArrayOutput
Set of CIDR blocks.
func (InstancePublicPortsPortInfoOutput) ElementType ¶ added in v3.35.0
func (InstancePublicPortsPortInfoOutput) ElementType() reflect.Type
func (InstancePublicPortsPortInfoOutput) FromPort ¶ added in v3.35.0
func (o InstancePublicPortsPortInfoOutput) FromPort() pulumi.IntOutput
First port in a range of open ports on an instance.
func (InstancePublicPortsPortInfoOutput) Protocol ¶ added in v3.35.0
func (o InstancePublicPortsPortInfoOutput) Protocol() pulumi.StringOutput
IP protocol name. Valid values are `tcp`, `all`, `udp`, and `icmp`.
func (InstancePublicPortsPortInfoOutput) ToInstancePublicPortsPortInfoOutput ¶ added in v3.35.0
func (o InstancePublicPortsPortInfoOutput) ToInstancePublicPortsPortInfoOutput() InstancePublicPortsPortInfoOutput
func (InstancePublicPortsPortInfoOutput) ToInstancePublicPortsPortInfoOutputWithContext ¶ added in v3.35.0
func (o InstancePublicPortsPortInfoOutput) ToInstancePublicPortsPortInfoOutputWithContext(ctx context.Context) InstancePublicPortsPortInfoOutput
func (InstancePublicPortsPortInfoOutput) ToPort ¶ added in v3.35.0
func (o InstancePublicPortsPortInfoOutput) ToPort() pulumi.IntOutput
Last port in a range of open ports on an instance.
type InstancePublicPortsPtrInput ¶ added in v3.35.0
type InstancePublicPortsPtrInput interface { pulumi.Input ToInstancePublicPortsPtrOutput() InstancePublicPortsPtrOutput ToInstancePublicPortsPtrOutputWithContext(ctx context.Context) InstancePublicPortsPtrOutput }
type InstancePublicPortsPtrOutput ¶ added in v3.35.0
type InstancePublicPortsPtrOutput struct {
*pulumi.OutputState
}
func (InstancePublicPortsPtrOutput) ElementType ¶ added in v3.35.0
func (InstancePublicPortsPtrOutput) ElementType() reflect.Type
func (InstancePublicPortsPtrOutput) ToInstancePublicPortsPtrOutput ¶ added in v3.35.0
func (o InstancePublicPortsPtrOutput) ToInstancePublicPortsPtrOutput() InstancePublicPortsPtrOutput
func (InstancePublicPortsPtrOutput) ToInstancePublicPortsPtrOutputWithContext ¶ added in v3.35.0
func (o InstancePublicPortsPtrOutput) ToInstancePublicPortsPtrOutputWithContext(ctx context.Context) InstancePublicPortsPtrOutput
type InstancePublicPortsState ¶ added in v3.35.0
type InstancePublicPortsState struct { // Name of the Lightsail Instance. InstanceName pulumi.StringPtrInput // Configuration block with port information. AWS closes all currently open ports that are not included in the `portInfo`. Detailed below. PortInfos InstancePublicPortsPortInfoArrayInput }
func (InstancePublicPortsState) ElementType ¶ added in v3.35.0
func (InstancePublicPortsState) ElementType() reflect.Type
type InstanceState ¶
type InstanceState struct { // The ARN of the Lightsail instance (matches `id`). Arn pulumi.StringPtrInput // The Availability Zone in which to create your // instance (see list below) AvailabilityZone pulumi.StringPtrInput // The ID for a virtual private server image. A list of available blueprint IDs can be obtained using the AWS CLI command: `aws lightsail get-blueprints` BlueprintId pulumi.StringPtrInput // The bundle of specification information (see list below) BundleId pulumi.StringPtrInput CpuCount pulumi.IntPtrInput // The timestamp when the instance was created. CreatedAt pulumi.StringPtrInput // (**Deprecated**) The first IPv6 address of the Lightsail instance. Use `ipv6Addresses` attribute instead. // // Deprecated: use `ipv6_addresses` attribute instead Ipv6Address pulumi.StringPtrInput // List of IPv6 addresses for the Lightsail instance. Ipv6Addresses pulumi.StringArrayInput IsStaticIp pulumi.BoolPtrInput // The name of your key pair. Created in the // Lightsail console (cannot use `ec2.KeyPair` at this time) KeyPairName pulumi.StringPtrInput // The name of the Lightsail Instance. Names be unique within each AWS Region in your Lightsail account. Name pulumi.StringPtrInput PrivateIpAddress pulumi.StringPtrInput PublicIpAddress pulumi.StringPtrInput RamSize pulumi.Float64PtrInput // A map of tags to assign to the resource. To create a key-only tag, use an empty string as the value. Tags pulumi.StringMapInput // launch script to configure server with additional user data UserData pulumi.StringPtrInput Username pulumi.StringPtrInput }
func (InstanceState) ElementType ¶
func (InstanceState) ElementType() reflect.Type
type KeyPair ¶
type KeyPair struct { pulumi.CustomResourceState // The ARN of the Lightsail key pair Arn pulumi.StringOutput `pulumi:"arn"` // The MD5 public key fingerprint for the encrypted // private key EncryptedFingerprint pulumi.StringOutput `pulumi:"encryptedFingerprint"` // the private key material, base 64 encoded and // encrypted with the given `pgpKey`. This is only populated when creating a new // key and `pgpKey` is supplied EncryptedPrivateKey pulumi.StringOutput `pulumi:"encryptedPrivateKey"` // The MD5 public key fingerprint as specified in section 4 of RFC 4716. Fingerprint pulumi.StringOutput `pulumi:"fingerprint"` // The name of the Lightsail Key Pair. If omitted, a unique // name will be generated by this provider Name pulumi.StringOutput `pulumi:"name"` NamePrefix pulumi.StringPtrOutput `pulumi:"namePrefix"` // An optional PGP key to encrypt the resulting private // key material. Only used when creating a new key pair PgpKey pulumi.StringPtrOutput `pulumi:"pgpKey"` // the private key, base64 encoded. This is only populated // when creating a new key, and when no `pgpKey` is provided PrivateKey pulumi.StringOutput `pulumi:"privateKey"` // The public key material. This public key will be // imported into Lightsail PublicKey pulumi.StringOutput `pulumi:"publicKey"` }
Provides a Lightsail Key Pair, for use with Lightsail Instances. These key pairs are separate from EC2 Key Pairs, and must be created or imported for use with Lightsail.
> **Note:** Lightsail is currently only supported in a limited number of AWS Regions, please see ["Regions and Availability Zones in Amazon Lightsail"](https://lightsail.aws.amazon.com/ls/docs/overview/article/understanding-regions-and-availability-zones-in-amazon-lightsail) for more details
## Example Usage ### Create New Key Pair
```go package main
import (
"github.com/pulumi/pulumi-aws/sdk/v3/go/aws/lightsail" "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := lightsail.NewKeyPair(ctx, "lgKeyPair", nil) if err != nil { return err } return nil }) }
``` ### Create New Key Pair with PGP Encrypted Private Key
```go package main
import (
"github.com/pulumi/pulumi-aws/sdk/v3/go/aws/lightsail" "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := lightsail.NewKeyPair(ctx, "lgKeyPair", &lightsail.KeyPairArgs{ PgpKey: pulumi.String("keybase:keybaseusername"), }) if err != nil { return err } return nil }) }
```
## Import
Lightsail Key Pairs cannot be imported, because the private and public key are only available on initial creation.
func GetKeyPair ¶
func GetKeyPair(ctx *pulumi.Context, name string, id pulumi.IDInput, state *KeyPairState, opts ...pulumi.ResourceOption) (*KeyPair, error)
GetKeyPair gets an existing KeyPair resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewKeyPair ¶
func NewKeyPair(ctx *pulumi.Context, name string, args *KeyPairArgs, opts ...pulumi.ResourceOption) (*KeyPair, error)
NewKeyPair registers a new resource with the given unique name, arguments, and options.
func (*KeyPair) ElementType ¶ added in v3.13.0
func (*KeyPair) ToKeyPairOutput ¶ added in v3.13.0
func (i *KeyPair) ToKeyPairOutput() KeyPairOutput
func (*KeyPair) ToKeyPairOutputWithContext ¶ added in v3.13.0
func (i *KeyPair) ToKeyPairOutputWithContext(ctx context.Context) KeyPairOutput
func (*KeyPair) ToKeyPairPtrOutput ¶ added in v3.25.0
func (i *KeyPair) ToKeyPairPtrOutput() KeyPairPtrOutput
func (*KeyPair) ToKeyPairPtrOutputWithContext ¶ added in v3.25.0
func (i *KeyPair) ToKeyPairPtrOutputWithContext(ctx context.Context) KeyPairPtrOutput
type KeyPairArgs ¶
type KeyPairArgs struct { // The name of the Lightsail Key Pair. If omitted, a unique // name will be generated by this provider Name pulumi.StringPtrInput NamePrefix pulumi.StringPtrInput // An optional PGP key to encrypt the resulting private // key material. Only used when creating a new key pair PgpKey pulumi.StringPtrInput // The public key material. This public key will be // imported into Lightsail PublicKey pulumi.StringPtrInput }
The set of arguments for constructing a KeyPair resource.
func (KeyPairArgs) ElementType ¶
func (KeyPairArgs) ElementType() reflect.Type
type KeyPairArray ¶ added in v3.25.0
type KeyPairArray []KeyPairInput
func (KeyPairArray) ElementType ¶ added in v3.25.0
func (KeyPairArray) ElementType() reflect.Type
func (KeyPairArray) ToKeyPairArrayOutput ¶ added in v3.25.0
func (i KeyPairArray) ToKeyPairArrayOutput() KeyPairArrayOutput
func (KeyPairArray) ToKeyPairArrayOutputWithContext ¶ added in v3.25.0
func (i KeyPairArray) ToKeyPairArrayOutputWithContext(ctx context.Context) KeyPairArrayOutput
type KeyPairArrayInput ¶ added in v3.25.0
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 ¶ added in v3.25.0
type KeyPairArrayOutput struct{ *pulumi.OutputState }
func (KeyPairArrayOutput) ElementType ¶ added in v3.25.0
func (KeyPairArrayOutput) ElementType() reflect.Type
func (KeyPairArrayOutput) Index ¶ added in v3.25.0
func (o KeyPairArrayOutput) Index(i pulumi.IntInput) KeyPairOutput
func (KeyPairArrayOutput) ToKeyPairArrayOutput ¶ added in v3.25.0
func (o KeyPairArrayOutput) ToKeyPairArrayOutput() KeyPairArrayOutput
func (KeyPairArrayOutput) ToKeyPairArrayOutputWithContext ¶ added in v3.25.0
func (o KeyPairArrayOutput) ToKeyPairArrayOutputWithContext(ctx context.Context) KeyPairArrayOutput
type KeyPairInput ¶ added in v3.13.0
type KeyPairInput interface { pulumi.Input ToKeyPairOutput() KeyPairOutput ToKeyPairOutputWithContext(ctx context.Context) KeyPairOutput }
type KeyPairMap ¶ added in v3.25.0
type KeyPairMap map[string]KeyPairInput
func (KeyPairMap) ElementType ¶ added in v3.25.0
func (KeyPairMap) ElementType() reflect.Type
func (KeyPairMap) ToKeyPairMapOutput ¶ added in v3.25.0
func (i KeyPairMap) ToKeyPairMapOutput() KeyPairMapOutput
func (KeyPairMap) ToKeyPairMapOutputWithContext ¶ added in v3.25.0
func (i KeyPairMap) ToKeyPairMapOutputWithContext(ctx context.Context) KeyPairMapOutput
type KeyPairMapInput ¶ added in v3.25.0
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 ¶ added in v3.25.0
type KeyPairMapOutput struct{ *pulumi.OutputState }
func (KeyPairMapOutput) ElementType ¶ added in v3.25.0
func (KeyPairMapOutput) ElementType() reflect.Type
func (KeyPairMapOutput) MapIndex ¶ added in v3.25.0
func (o KeyPairMapOutput) MapIndex(k pulumi.StringInput) KeyPairOutput
func (KeyPairMapOutput) ToKeyPairMapOutput ¶ added in v3.25.0
func (o KeyPairMapOutput) ToKeyPairMapOutput() KeyPairMapOutput
func (KeyPairMapOutput) ToKeyPairMapOutputWithContext ¶ added in v3.25.0
func (o KeyPairMapOutput) ToKeyPairMapOutputWithContext(ctx context.Context) KeyPairMapOutput
type KeyPairOutput ¶ added in v3.13.0
type KeyPairOutput struct {
*pulumi.OutputState
}
func (KeyPairOutput) ElementType ¶ added in v3.13.0
func (KeyPairOutput) ElementType() reflect.Type
func (KeyPairOutput) ToKeyPairOutput ¶ added in v3.13.0
func (o KeyPairOutput) ToKeyPairOutput() KeyPairOutput
func (KeyPairOutput) ToKeyPairOutputWithContext ¶ added in v3.13.0
func (o KeyPairOutput) ToKeyPairOutputWithContext(ctx context.Context) KeyPairOutput
func (KeyPairOutput) ToKeyPairPtrOutput ¶ added in v3.25.0
func (o KeyPairOutput) ToKeyPairPtrOutput() KeyPairPtrOutput
func (KeyPairOutput) ToKeyPairPtrOutputWithContext ¶ added in v3.25.0
func (o KeyPairOutput) ToKeyPairPtrOutputWithContext(ctx context.Context) KeyPairPtrOutput
type KeyPairPtrInput ¶ added in v3.25.0
type KeyPairPtrInput interface { pulumi.Input ToKeyPairPtrOutput() KeyPairPtrOutput ToKeyPairPtrOutputWithContext(ctx context.Context) KeyPairPtrOutput }
type KeyPairPtrOutput ¶ added in v3.25.0
type KeyPairPtrOutput struct {
*pulumi.OutputState
}
func (KeyPairPtrOutput) ElementType ¶ added in v3.25.0
func (KeyPairPtrOutput) ElementType() reflect.Type
func (KeyPairPtrOutput) ToKeyPairPtrOutput ¶ added in v3.25.0
func (o KeyPairPtrOutput) ToKeyPairPtrOutput() KeyPairPtrOutput
func (KeyPairPtrOutput) ToKeyPairPtrOutputWithContext ¶ added in v3.25.0
func (o KeyPairPtrOutput) ToKeyPairPtrOutputWithContext(ctx context.Context) KeyPairPtrOutput
type KeyPairState ¶
type KeyPairState struct { // The ARN of the Lightsail key pair Arn pulumi.StringPtrInput // The MD5 public key fingerprint for the encrypted // private key EncryptedFingerprint pulumi.StringPtrInput // the private key material, base 64 encoded and // encrypted with the given `pgpKey`. This is only populated when creating a new // key and `pgpKey` is supplied EncryptedPrivateKey pulumi.StringPtrInput // The MD5 public key fingerprint as specified in section 4 of RFC 4716. Fingerprint pulumi.StringPtrInput // The name of the Lightsail Key Pair. If omitted, a unique // name will be generated by this provider Name pulumi.StringPtrInput NamePrefix pulumi.StringPtrInput // An optional PGP key to encrypt the resulting private // key material. Only used when creating a new key pair PgpKey pulumi.StringPtrInput // the private key, base64 encoded. This is only populated // when creating a new key, and when no `pgpKey` is provided PrivateKey pulumi.StringPtrInput // The public key material. This public key will be // imported into Lightsail PublicKey pulumi.StringPtrInput }
func (KeyPairState) ElementType ¶
func (KeyPairState) ElementType() reflect.Type
type StaticIp ¶
type StaticIp struct { pulumi.CustomResourceState // The ARN of the Lightsail static IP Arn pulumi.StringOutput `pulumi:"arn"` // The allocated static IP address IpAddress pulumi.StringOutput `pulumi:"ipAddress"` // The name for the allocated static IP Name pulumi.StringOutput `pulumi:"name"` // The support code. SupportCode pulumi.StringOutput `pulumi:"supportCode"` }
Allocates a static IP address.
> **Note:** Lightsail is currently only supported in a limited number of AWS Regions, please see ["Regions and Availability Zones in Amazon Lightsail"](https://lightsail.aws.amazon.com/ls/docs/overview/article/understanding-regions-and-availability-zones-in-amazon-lightsail) for more details
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-aws/sdk/v3/go/aws/lightsail" "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := lightsail.NewStaticIp(ctx, "test", nil) if err != nil { return err } return nil }) }
```
func GetStaticIp ¶
func GetStaticIp(ctx *pulumi.Context, name string, id pulumi.IDInput, state *StaticIpState, opts ...pulumi.ResourceOption) (*StaticIp, error)
GetStaticIp gets an existing StaticIp resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewStaticIp ¶
func NewStaticIp(ctx *pulumi.Context, name string, args *StaticIpArgs, opts ...pulumi.ResourceOption) (*StaticIp, error)
NewStaticIp registers a new resource with the given unique name, arguments, and options.
func (*StaticIp) ElementType ¶ added in v3.13.0
func (*StaticIp) ToStaticIpOutput ¶ added in v3.13.0
func (i *StaticIp) ToStaticIpOutput() StaticIpOutput
func (*StaticIp) ToStaticIpOutputWithContext ¶ added in v3.13.0
func (i *StaticIp) ToStaticIpOutputWithContext(ctx context.Context) StaticIpOutput
func (*StaticIp) ToStaticIpPtrOutput ¶ added in v3.25.0
func (i *StaticIp) ToStaticIpPtrOutput() StaticIpPtrOutput
func (*StaticIp) ToStaticIpPtrOutputWithContext ¶ added in v3.25.0
func (i *StaticIp) ToStaticIpPtrOutputWithContext(ctx context.Context) StaticIpPtrOutput
type StaticIpArgs ¶
type StaticIpArgs struct { // The name for the allocated static IP Name pulumi.StringPtrInput }
The set of arguments for constructing a StaticIp resource.
func (StaticIpArgs) ElementType ¶
func (StaticIpArgs) ElementType() reflect.Type
type StaticIpArray ¶ added in v3.25.0
type StaticIpArray []StaticIpInput
func (StaticIpArray) ElementType ¶ added in v3.25.0
func (StaticIpArray) ElementType() reflect.Type
func (StaticIpArray) ToStaticIpArrayOutput ¶ added in v3.25.0
func (i StaticIpArray) ToStaticIpArrayOutput() StaticIpArrayOutput
func (StaticIpArray) ToStaticIpArrayOutputWithContext ¶ added in v3.25.0
func (i StaticIpArray) ToStaticIpArrayOutputWithContext(ctx context.Context) StaticIpArrayOutput
type StaticIpArrayInput ¶ added in v3.25.0
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 ¶ added in v3.25.0
type StaticIpArrayOutput struct{ *pulumi.OutputState }
func (StaticIpArrayOutput) ElementType ¶ added in v3.25.0
func (StaticIpArrayOutput) ElementType() reflect.Type
func (StaticIpArrayOutput) Index ¶ added in v3.25.0
func (o StaticIpArrayOutput) Index(i pulumi.IntInput) StaticIpOutput
func (StaticIpArrayOutput) ToStaticIpArrayOutput ¶ added in v3.25.0
func (o StaticIpArrayOutput) ToStaticIpArrayOutput() StaticIpArrayOutput
func (StaticIpArrayOutput) ToStaticIpArrayOutputWithContext ¶ added in v3.25.0
func (o StaticIpArrayOutput) ToStaticIpArrayOutputWithContext(ctx context.Context) StaticIpArrayOutput
type StaticIpAttachment ¶
type StaticIpAttachment struct { pulumi.CustomResourceState // The name of the Lightsail instance to attach the IP to InstanceName pulumi.StringOutput `pulumi:"instanceName"` // The allocated static IP address IpAddress pulumi.StringOutput `pulumi:"ipAddress"` // The name of the allocated static IP StaticIpName pulumi.StringOutput `pulumi:"staticIpName"` }
Provides a static IP address attachment - relationship between a Lightsail static IP & Lightsail instance.
> **Note:** Lightsail is currently only supported in a limited number of AWS Regions, please see ["Regions and Availability Zones in Amazon Lightsail"](https://lightsail.aws.amazon.com/ls/docs/overview/article/understanding-regions-and-availability-zones-in-amazon-lightsail) for more details
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-aws/sdk/v3/go/aws/lightsail" "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { testStaticIp, err := lightsail.NewStaticIp(ctx, "testStaticIp", nil) if err != nil { return err } testInstance, err := lightsail.NewInstance(ctx, "testInstance", &lightsail.InstanceArgs{ AvailabilityZone: pulumi.String("us-east-1b"), BlueprintId: pulumi.String("string"), BundleId: pulumi.String("string"), KeyPairName: pulumi.String("some_key_name"), }) if err != nil { return err } _, err = lightsail.NewStaticIpAttachment(ctx, "testStaticIpAttachment", &lightsail.StaticIpAttachmentArgs{ StaticIpName: testStaticIp.ID(), InstanceName: testInstance.ID(), }) if err != nil { return err } return nil }) }
```
func GetStaticIpAttachment ¶
func GetStaticIpAttachment(ctx *pulumi.Context, name string, id pulumi.IDInput, state *StaticIpAttachmentState, opts ...pulumi.ResourceOption) (*StaticIpAttachment, error)
GetStaticIpAttachment gets an existing StaticIpAttachment resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewStaticIpAttachment ¶
func NewStaticIpAttachment(ctx *pulumi.Context, name string, args *StaticIpAttachmentArgs, opts ...pulumi.ResourceOption) (*StaticIpAttachment, error)
NewStaticIpAttachment registers a new resource with the given unique name, arguments, and options.
func (*StaticIpAttachment) ElementType ¶ added in v3.13.0
func (*StaticIpAttachment) ElementType() reflect.Type
func (*StaticIpAttachment) ToStaticIpAttachmentOutput ¶ added in v3.13.0
func (i *StaticIpAttachment) ToStaticIpAttachmentOutput() StaticIpAttachmentOutput
func (*StaticIpAttachment) ToStaticIpAttachmentOutputWithContext ¶ added in v3.13.0
func (i *StaticIpAttachment) ToStaticIpAttachmentOutputWithContext(ctx context.Context) StaticIpAttachmentOutput
func (*StaticIpAttachment) ToStaticIpAttachmentPtrOutput ¶ added in v3.25.0
func (i *StaticIpAttachment) ToStaticIpAttachmentPtrOutput() StaticIpAttachmentPtrOutput
func (*StaticIpAttachment) ToStaticIpAttachmentPtrOutputWithContext ¶ added in v3.25.0
func (i *StaticIpAttachment) ToStaticIpAttachmentPtrOutputWithContext(ctx context.Context) StaticIpAttachmentPtrOutput
type StaticIpAttachmentArgs ¶
type StaticIpAttachmentArgs struct { // The name of the Lightsail instance to attach the IP to InstanceName pulumi.StringInput // The name of the allocated static IP StaticIpName pulumi.StringInput }
The set of arguments for constructing a StaticIpAttachment resource.
func (StaticIpAttachmentArgs) ElementType ¶
func (StaticIpAttachmentArgs) ElementType() reflect.Type
type StaticIpAttachmentArray ¶ added in v3.25.0
type StaticIpAttachmentArray []StaticIpAttachmentInput
func (StaticIpAttachmentArray) ElementType ¶ added in v3.25.0
func (StaticIpAttachmentArray) ElementType() reflect.Type
func (StaticIpAttachmentArray) ToStaticIpAttachmentArrayOutput ¶ added in v3.25.0
func (i StaticIpAttachmentArray) ToStaticIpAttachmentArrayOutput() StaticIpAttachmentArrayOutput
func (StaticIpAttachmentArray) ToStaticIpAttachmentArrayOutputWithContext ¶ added in v3.25.0
func (i StaticIpAttachmentArray) ToStaticIpAttachmentArrayOutputWithContext(ctx context.Context) StaticIpAttachmentArrayOutput
type StaticIpAttachmentArrayInput ¶ added in v3.25.0
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 ¶ added in v3.25.0
type StaticIpAttachmentArrayOutput struct{ *pulumi.OutputState }
func (StaticIpAttachmentArrayOutput) ElementType ¶ added in v3.25.0
func (StaticIpAttachmentArrayOutput) ElementType() reflect.Type
func (StaticIpAttachmentArrayOutput) Index ¶ added in v3.25.0
func (o StaticIpAttachmentArrayOutput) Index(i pulumi.IntInput) StaticIpAttachmentOutput
func (StaticIpAttachmentArrayOutput) ToStaticIpAttachmentArrayOutput ¶ added in v3.25.0
func (o StaticIpAttachmentArrayOutput) ToStaticIpAttachmentArrayOutput() StaticIpAttachmentArrayOutput
func (StaticIpAttachmentArrayOutput) ToStaticIpAttachmentArrayOutputWithContext ¶ added in v3.25.0
func (o StaticIpAttachmentArrayOutput) ToStaticIpAttachmentArrayOutputWithContext(ctx context.Context) StaticIpAttachmentArrayOutput
type StaticIpAttachmentInput ¶ added in v3.13.0
type StaticIpAttachmentInput interface { pulumi.Input ToStaticIpAttachmentOutput() StaticIpAttachmentOutput ToStaticIpAttachmentOutputWithContext(ctx context.Context) StaticIpAttachmentOutput }
type StaticIpAttachmentMap ¶ added in v3.25.0
type StaticIpAttachmentMap map[string]StaticIpAttachmentInput
func (StaticIpAttachmentMap) ElementType ¶ added in v3.25.0
func (StaticIpAttachmentMap) ElementType() reflect.Type
func (StaticIpAttachmentMap) ToStaticIpAttachmentMapOutput ¶ added in v3.25.0
func (i StaticIpAttachmentMap) ToStaticIpAttachmentMapOutput() StaticIpAttachmentMapOutput
func (StaticIpAttachmentMap) ToStaticIpAttachmentMapOutputWithContext ¶ added in v3.25.0
func (i StaticIpAttachmentMap) ToStaticIpAttachmentMapOutputWithContext(ctx context.Context) StaticIpAttachmentMapOutput
type StaticIpAttachmentMapInput ¶ added in v3.25.0
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 ¶ added in v3.25.0
type StaticIpAttachmentMapOutput struct{ *pulumi.OutputState }
func (StaticIpAttachmentMapOutput) ElementType ¶ added in v3.25.0
func (StaticIpAttachmentMapOutput) ElementType() reflect.Type
func (StaticIpAttachmentMapOutput) MapIndex ¶ added in v3.25.0
func (o StaticIpAttachmentMapOutput) MapIndex(k pulumi.StringInput) StaticIpAttachmentOutput
func (StaticIpAttachmentMapOutput) ToStaticIpAttachmentMapOutput ¶ added in v3.25.0
func (o StaticIpAttachmentMapOutput) ToStaticIpAttachmentMapOutput() StaticIpAttachmentMapOutput
func (StaticIpAttachmentMapOutput) ToStaticIpAttachmentMapOutputWithContext ¶ added in v3.25.0
func (o StaticIpAttachmentMapOutput) ToStaticIpAttachmentMapOutputWithContext(ctx context.Context) StaticIpAttachmentMapOutput
type StaticIpAttachmentOutput ¶ added in v3.13.0
type StaticIpAttachmentOutput struct {
*pulumi.OutputState
}
func (StaticIpAttachmentOutput) ElementType ¶ added in v3.13.0
func (StaticIpAttachmentOutput) ElementType() reflect.Type
func (StaticIpAttachmentOutput) ToStaticIpAttachmentOutput ¶ added in v3.13.0
func (o StaticIpAttachmentOutput) ToStaticIpAttachmentOutput() StaticIpAttachmentOutput
func (StaticIpAttachmentOutput) ToStaticIpAttachmentOutputWithContext ¶ added in v3.13.0
func (o StaticIpAttachmentOutput) ToStaticIpAttachmentOutputWithContext(ctx context.Context) StaticIpAttachmentOutput
func (StaticIpAttachmentOutput) ToStaticIpAttachmentPtrOutput ¶ added in v3.25.0
func (o StaticIpAttachmentOutput) ToStaticIpAttachmentPtrOutput() StaticIpAttachmentPtrOutput
func (StaticIpAttachmentOutput) ToStaticIpAttachmentPtrOutputWithContext ¶ added in v3.25.0
func (o StaticIpAttachmentOutput) ToStaticIpAttachmentPtrOutputWithContext(ctx context.Context) StaticIpAttachmentPtrOutput
type StaticIpAttachmentPtrInput ¶ added in v3.25.0
type StaticIpAttachmentPtrInput interface { pulumi.Input ToStaticIpAttachmentPtrOutput() StaticIpAttachmentPtrOutput ToStaticIpAttachmentPtrOutputWithContext(ctx context.Context) StaticIpAttachmentPtrOutput }
type StaticIpAttachmentPtrOutput ¶ added in v3.25.0
type StaticIpAttachmentPtrOutput struct {
*pulumi.OutputState
}
func (StaticIpAttachmentPtrOutput) ElementType ¶ added in v3.25.0
func (StaticIpAttachmentPtrOutput) ElementType() reflect.Type
func (StaticIpAttachmentPtrOutput) ToStaticIpAttachmentPtrOutput ¶ added in v3.25.0
func (o StaticIpAttachmentPtrOutput) ToStaticIpAttachmentPtrOutput() StaticIpAttachmentPtrOutput
func (StaticIpAttachmentPtrOutput) ToStaticIpAttachmentPtrOutputWithContext ¶ added in v3.25.0
func (o StaticIpAttachmentPtrOutput) ToStaticIpAttachmentPtrOutputWithContext(ctx context.Context) StaticIpAttachmentPtrOutput
type StaticIpAttachmentState ¶
type StaticIpAttachmentState struct { // The name of the Lightsail instance to attach the IP to InstanceName pulumi.StringPtrInput // The allocated static IP address IpAddress pulumi.StringPtrInput // The name of the allocated static IP StaticIpName pulumi.StringPtrInput }
func (StaticIpAttachmentState) ElementType ¶
func (StaticIpAttachmentState) ElementType() reflect.Type
type StaticIpInput ¶ added in v3.13.0
type StaticIpInput interface { pulumi.Input ToStaticIpOutput() StaticIpOutput ToStaticIpOutputWithContext(ctx context.Context) StaticIpOutput }
type StaticIpMap ¶ added in v3.25.0
type StaticIpMap map[string]StaticIpInput
func (StaticIpMap) ElementType ¶ added in v3.25.0
func (StaticIpMap) ElementType() reflect.Type
func (StaticIpMap) ToStaticIpMapOutput ¶ added in v3.25.0
func (i StaticIpMap) ToStaticIpMapOutput() StaticIpMapOutput
func (StaticIpMap) ToStaticIpMapOutputWithContext ¶ added in v3.25.0
func (i StaticIpMap) ToStaticIpMapOutputWithContext(ctx context.Context) StaticIpMapOutput
type StaticIpMapInput ¶ added in v3.25.0
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 ¶ added in v3.25.0
type StaticIpMapOutput struct{ *pulumi.OutputState }
func (StaticIpMapOutput) ElementType ¶ added in v3.25.0
func (StaticIpMapOutput) ElementType() reflect.Type
func (StaticIpMapOutput) MapIndex ¶ added in v3.25.0
func (o StaticIpMapOutput) MapIndex(k pulumi.StringInput) StaticIpOutput
func (StaticIpMapOutput) ToStaticIpMapOutput ¶ added in v3.25.0
func (o StaticIpMapOutput) ToStaticIpMapOutput() StaticIpMapOutput
func (StaticIpMapOutput) ToStaticIpMapOutputWithContext ¶ added in v3.25.0
func (o StaticIpMapOutput) ToStaticIpMapOutputWithContext(ctx context.Context) StaticIpMapOutput
type StaticIpOutput ¶ added in v3.13.0
type StaticIpOutput struct {
*pulumi.OutputState
}
func (StaticIpOutput) ElementType ¶ added in v3.13.0
func (StaticIpOutput) ElementType() reflect.Type
func (StaticIpOutput) ToStaticIpOutput ¶ added in v3.13.0
func (o StaticIpOutput) ToStaticIpOutput() StaticIpOutput
func (StaticIpOutput) ToStaticIpOutputWithContext ¶ added in v3.13.0
func (o StaticIpOutput) ToStaticIpOutputWithContext(ctx context.Context) StaticIpOutput
func (StaticIpOutput) ToStaticIpPtrOutput ¶ added in v3.25.0
func (o StaticIpOutput) ToStaticIpPtrOutput() StaticIpPtrOutput
func (StaticIpOutput) ToStaticIpPtrOutputWithContext ¶ added in v3.25.0
func (o StaticIpOutput) ToStaticIpPtrOutputWithContext(ctx context.Context) StaticIpPtrOutput
type StaticIpPtrInput ¶ added in v3.25.0
type StaticIpPtrInput interface { pulumi.Input ToStaticIpPtrOutput() StaticIpPtrOutput ToStaticIpPtrOutputWithContext(ctx context.Context) StaticIpPtrOutput }
type StaticIpPtrOutput ¶ added in v3.25.0
type StaticIpPtrOutput struct {
*pulumi.OutputState
}
func (StaticIpPtrOutput) ElementType ¶ added in v3.25.0
func (StaticIpPtrOutput) ElementType() reflect.Type
func (StaticIpPtrOutput) ToStaticIpPtrOutput ¶ added in v3.25.0
func (o StaticIpPtrOutput) ToStaticIpPtrOutput() StaticIpPtrOutput
func (StaticIpPtrOutput) ToStaticIpPtrOutputWithContext ¶ added in v3.25.0
func (o StaticIpPtrOutput) ToStaticIpPtrOutputWithContext(ctx context.Context) StaticIpPtrOutput
type StaticIpState ¶
type StaticIpState struct { // The ARN of the Lightsail static IP Arn pulumi.StringPtrInput // The allocated static IP address IpAddress pulumi.StringPtrInput // The name for the allocated static IP Name pulumi.StringPtrInput // The support code. SupportCode pulumi.StringPtrInput }
func (StaticIpState) ElementType ¶
func (StaticIpState) ElementType() reflect.Type