We recommend new projects start with resources from the AWS provider.
aws-native.lightsail.getInstance
Explore with Pulumi AI
We recommend new projects start with resources from the AWS provider.
Resource Type definition for AWS::Lightsail::Instance
Using getInstance
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getInstance(args: GetInstanceArgs, opts?: InvokeOptions): Promise<GetInstanceResult>
function getInstanceOutput(args: GetInstanceOutputArgs, opts?: InvokeOptions): Output<GetInstanceResult>def get_instance(instance_name: Optional[str] = None,
                 opts: Optional[InvokeOptions] = None) -> GetInstanceResult
def get_instance_output(instance_name: Optional[pulumi.Input[str]] = None,
                 opts: Optional[InvokeOptions] = None) -> Output[GetInstanceResult]func LookupInstance(ctx *Context, args *LookupInstanceArgs, opts ...InvokeOption) (*LookupInstanceResult, error)
func LookupInstanceOutput(ctx *Context, args *LookupInstanceOutputArgs, opts ...InvokeOption) LookupInstanceResultOutput> Note: This function is named LookupInstance in the Go SDK.
public static class GetInstance 
{
    public static Task<GetInstanceResult> InvokeAsync(GetInstanceArgs args, InvokeOptions? opts = null)
    public static Output<GetInstanceResult> Invoke(GetInstanceInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetInstanceResult> getInstance(GetInstanceArgs args, InvokeOptions options)
public static Output<GetInstanceResult> getInstance(GetInstanceArgs args, InvokeOptions options)
fn::invoke:
  function: aws-native:lightsail:getInstance
  arguments:
    # arguments dictionaryThe following arguments are supported:
- InstanceName string
- The names to use for your new Lightsail instance.
- InstanceName string
- The names to use for your new Lightsail instance.
- instanceName String
- The names to use for your new Lightsail instance.
- instanceName string
- The names to use for your new Lightsail instance.
- instance_name str
- The names to use for your new Lightsail instance.
- instanceName String
- The names to use for your new Lightsail instance.
getInstance Result
The following output properties are available:
- AddOns List<Pulumi.Aws Native. Lightsail. Outputs. Instance Add On> 
- An array of objects representing the add-ons to enable for the new instance.
- Hardware
Pulumi.Aws Native. Lightsail. Outputs. Instance Hardware 
- The hardware properties for the instance, such as the vCPU count, attached disks, and amount of RAM. - The instance restarts when performing an attach disk or detach disk request. This resets the public IP address of your instance if a static IP isn't attached to it. 
- InstanceArn string
- The Amazon Resource Name (ARN) of the instance (for example, arn:aws:lightsail:us-east-2:123456789101:Instance/244ad76f-8aad-4741-809f-12345EXAMPLE).
- Ipv6Addresses List<string>
- IPv6 addresses of the instance
- IsStatic boolIp 
- Is the IP Address of the Instance is the static IP
- KeyPair stringName 
- The name of your key pair.
- Location
Pulumi.Aws Native. Lightsail. Outputs. Instance Location 
- The location for the instance, such as the AWS Region and Availability Zone. - The - Locationproperty is read-only and should not be specified in a create instance or update instance request.
- Networking
Pulumi.Aws Native. Lightsail. Outputs. Instance Networking 
- The public ports and the monthly amount of data transfer allocated for the instance.
- PrivateIp stringAddress 
- Private IP Address of the Instance
- PublicIp stringAddress 
- Public IP Address of the Instance
- ResourceType string
- Resource type of Lightsail instance.
- SshKey stringName 
- SSH Key Name of the Lightsail instance.
- State
Pulumi.Aws Native. Lightsail. Outputs. Instance State 
- The status code and the state (for example, - running) of the instance.- The - Stateproperty is read-only and should not be specified in a create instance or update instance request.
- SupportCode string
- Support code to help identify any issues
- 
List<Pulumi.Aws Native. Outputs. Tag> 
- An array of key-value pairs to apply to this resource.
- UserName string
- Username of the Lightsail instance.
- AddOns []InstanceAdd On 
- An array of objects representing the add-ons to enable for the new instance.
- Hardware
InstanceHardware 
- The hardware properties for the instance, such as the vCPU count, attached disks, and amount of RAM. - The instance restarts when performing an attach disk or detach disk request. This resets the public IP address of your instance if a static IP isn't attached to it. 
- InstanceArn string
- The Amazon Resource Name (ARN) of the instance (for example, arn:aws:lightsail:us-east-2:123456789101:Instance/244ad76f-8aad-4741-809f-12345EXAMPLE).
- Ipv6Addresses []string
- IPv6 addresses of the instance
- IsStatic boolIp 
- Is the IP Address of the Instance is the static IP
- KeyPair stringName 
- The name of your key pair.
- Location
InstanceLocation 
- The location for the instance, such as the AWS Region and Availability Zone. - The - Locationproperty is read-only and should not be specified in a create instance or update instance request.
- Networking
InstanceNetworking 
- The public ports and the monthly amount of data transfer allocated for the instance.
- PrivateIp stringAddress 
- Private IP Address of the Instance
- PublicIp stringAddress 
- Public IP Address of the Instance
- ResourceType string
- Resource type of Lightsail instance.
- SshKey stringName 
- SSH Key Name of the Lightsail instance.
- State
InstanceState Type 
- The status code and the state (for example, - running) of the instance.- The - Stateproperty is read-only and should not be specified in a create instance or update instance request.
- SupportCode string
- Support code to help identify any issues
- Tag
- An array of key-value pairs to apply to this resource.
- UserName string
- Username of the Lightsail instance.
- addOns List<InstanceAdd On> 
- An array of objects representing the add-ons to enable for the new instance.
- hardware
InstanceHardware 
- The hardware properties for the instance, such as the vCPU count, attached disks, and amount of RAM. - The instance restarts when performing an attach disk or detach disk request. This resets the public IP address of your instance if a static IP isn't attached to it. 
- instanceArn String
- The Amazon Resource Name (ARN) of the instance (for example, arn:aws:lightsail:us-east-2:123456789101:Instance/244ad76f-8aad-4741-809f-12345EXAMPLE).
- ipv6Addresses List<String>
- IPv6 addresses of the instance
- isStatic BooleanIp 
- Is the IP Address of the Instance is the static IP
- keyPair StringName 
- The name of your key pair.
- location
InstanceLocation 
- The location for the instance, such as the AWS Region and Availability Zone. - The - Locationproperty is read-only and should not be specified in a create instance or update instance request.
- networking
InstanceNetworking 
- The public ports and the monthly amount of data transfer allocated for the instance.
- privateIp StringAddress 
- Private IP Address of the Instance
- publicIp StringAddress 
- Public IP Address of the Instance
- resourceType String
- Resource type of Lightsail instance.
- sshKey StringName 
- SSH Key Name of the Lightsail instance.
- state
InstanceState 
- The status code and the state (for example, - running) of the instance.- The - Stateproperty is read-only and should not be specified in a create instance or update instance request.
- supportCode String
- Support code to help identify any issues
- List<Tag>
- An array of key-value pairs to apply to this resource.
- userName String
- Username of the Lightsail instance.
- addOns InstanceAdd On[] 
- An array of objects representing the add-ons to enable for the new instance.
- hardware
InstanceHardware 
- The hardware properties for the instance, such as the vCPU count, attached disks, and amount of RAM. - The instance restarts when performing an attach disk or detach disk request. This resets the public IP address of your instance if a static IP isn't attached to it. 
- instanceArn string
- The Amazon Resource Name (ARN) of the instance (for example, arn:aws:lightsail:us-east-2:123456789101:Instance/244ad76f-8aad-4741-809f-12345EXAMPLE).
- ipv6Addresses string[]
- IPv6 addresses of the instance
- isStatic booleanIp 
- Is the IP Address of the Instance is the static IP
- keyPair stringName 
- The name of your key pair.
- location
InstanceLocation 
- The location for the instance, such as the AWS Region and Availability Zone. - The - Locationproperty is read-only and should not be specified in a create instance or update instance request.
- networking
InstanceNetworking 
- The public ports and the monthly amount of data transfer allocated for the instance.
- privateIp stringAddress 
- Private IP Address of the Instance
- publicIp stringAddress 
- Public IP Address of the Instance
- resourceType string
- Resource type of Lightsail instance.
- sshKey stringName 
- SSH Key Name of the Lightsail instance.
- state
InstanceState 
- The status code and the state (for example, - running) of the instance.- The - Stateproperty is read-only and should not be specified in a create instance or update instance request.
- supportCode string
- Support code to help identify any issues
- Tag[]
- An array of key-value pairs to apply to this resource.
- userName string
- Username of the Lightsail instance.
- add_ons Sequence[InstanceAdd On] 
- An array of objects representing the add-ons to enable for the new instance.
- hardware
InstanceHardware 
- The hardware properties for the instance, such as the vCPU count, attached disks, and amount of RAM. - The instance restarts when performing an attach disk or detach disk request. This resets the public IP address of your instance if a static IP isn't attached to it. 
- instance_arn str
- The Amazon Resource Name (ARN) of the instance (for example, arn:aws:lightsail:us-east-2:123456789101:Instance/244ad76f-8aad-4741-809f-12345EXAMPLE).
- ipv6_addresses Sequence[str]
- IPv6 addresses of the instance
- is_static_ boolip 
- Is the IP Address of the Instance is the static IP
- key_pair_ strname 
- The name of your key pair.
- location
InstanceLocation 
- The location for the instance, such as the AWS Region and Availability Zone. - The - Locationproperty is read-only and should not be specified in a create instance or update instance request.
- networking
InstanceNetworking 
- The public ports and the monthly amount of data transfer allocated for the instance.
- private_ip_ straddress 
- Private IP Address of the Instance
- public_ip_ straddress 
- Public IP Address of the Instance
- resource_type str
- Resource type of Lightsail instance.
- ssh_key_ strname 
- SSH Key Name of the Lightsail instance.
- state
InstanceState 
- The status code and the state (for example, - running) of the instance.- The - Stateproperty is read-only and should not be specified in a create instance or update instance request.
- support_code str
- Support code to help identify any issues
- Sequence[root_Tag]
- An array of key-value pairs to apply to this resource.
- user_name str
- Username of the Lightsail instance.
- addOns List<Property Map>
- An array of objects representing the add-ons to enable for the new instance.
- hardware Property Map
- The hardware properties for the instance, such as the vCPU count, attached disks, and amount of RAM. - The instance restarts when performing an attach disk or detach disk request. This resets the public IP address of your instance if a static IP isn't attached to it. 
- instanceArn String
- The Amazon Resource Name (ARN) of the instance (for example, arn:aws:lightsail:us-east-2:123456789101:Instance/244ad76f-8aad-4741-809f-12345EXAMPLE).
- ipv6Addresses List<String>
- IPv6 addresses of the instance
- isStatic BooleanIp 
- Is the IP Address of the Instance is the static IP
- keyPair StringName 
- The name of your key pair.
- location Property Map
- The location for the instance, such as the AWS Region and Availability Zone. - The - Locationproperty is read-only and should not be specified in a create instance or update instance request.
- networking Property Map
- The public ports and the monthly amount of data transfer allocated for the instance.
- privateIp StringAddress 
- Private IP Address of the Instance
- publicIp StringAddress 
- Public IP Address of the Instance
- resourceType String
- Resource type of Lightsail instance.
- sshKey StringName 
- SSH Key Name of the Lightsail instance.
- state Property Map
- The status code and the state (for example, - running) of the instance.- The - Stateproperty is read-only and should not be specified in a create instance or update instance request.
- supportCode String
- Support code to help identify any issues
- List<Property Map>
- An array of key-value pairs to apply to this resource.
- userName String
- Username of the Lightsail instance.
Supporting Types
InstanceAddOn  
- AddOn stringType 
- The add-on type
- AutoSnapshot Pulumi.Add On Request Aws Native. Lightsail. Inputs. Instance Auto Snapshot Add On 
- The parameters for the automatic snapshot add-on, such as the daily time when an automatic snapshot will be created.
- Status
Pulumi.Aws Native. Lightsail. Instance Add On Status 
- Status of the Addon
- AddOn stringType 
- The add-on type
- AutoSnapshot InstanceAdd On Request Auto Snapshot Add On 
- The parameters for the automatic snapshot add-on, such as the daily time when an automatic snapshot will be created.
- Status
InstanceAdd On Status 
- Status of the Addon
- addOn StringType 
- The add-on type
- autoSnapshot InstanceAdd On Request Auto Snapshot Add On 
- The parameters for the automatic snapshot add-on, such as the daily time when an automatic snapshot will be created.
- status
InstanceAdd On Status 
- Status of the Addon
- addOn stringType 
- The add-on type
- autoSnapshot InstanceAdd On Request Auto Snapshot Add On 
- The parameters for the automatic snapshot add-on, such as the daily time when an automatic snapshot will be created.
- status
InstanceAdd On Status 
- Status of the Addon
- add_on_ strtype 
- The add-on type
- auto_snapshot_ Instanceadd_ on_ request Auto Snapshot Add On 
- The parameters for the automatic snapshot add-on, such as the daily time when an automatic snapshot will be created.
- status
InstanceAdd On Status 
- Status of the Addon
- addOn StringType 
- The add-on type
- autoSnapshot Property MapAdd On Request 
- The parameters for the automatic snapshot add-on, such as the daily time when an automatic snapshot will be created.
- status "Enabling" | "Disabling" | "Enabled" | "Terminating" | "Terminated" | "Disabled" | "Failed"
- Status of the Addon
InstanceAddOnStatus   
InstanceAutoSnapshotAddOn    
- SnapshotTime stringOf Day 
- The daily time when an automatic snapshot will be created.
- SnapshotTime stringOf Day 
- The daily time when an automatic snapshot will be created.
- snapshotTime StringOf Day 
- The daily time when an automatic snapshot will be created.
- snapshotTime stringOf Day 
- The daily time when an automatic snapshot will be created.
- snapshot_time_ strof_ day 
- The daily time when an automatic snapshot will be created.
- snapshotTime StringOf Day 
- The daily time when an automatic snapshot will be created.
InstanceDisk 
- DiskName string
- The names to use for your new Lightsail disk.
- Path string
- Path of the disk attached to the instance.
- AttachedTo string
- Instance attached to the disk.
- AttachmentState string
- Attachment state of the disk.
- Iops int
- IOPS of disk.
- IsSystem boolDisk 
- Is the Attached disk is the system disk of the Instance.
- SizeIn stringGb 
- Size of the disk attached to the Instance.
- DiskName string
- The names to use for your new Lightsail disk.
- Path string
- Path of the disk attached to the instance.
- AttachedTo string
- Instance attached to the disk.
- AttachmentState string
- Attachment state of the disk.
- Iops int
- IOPS of disk.
- IsSystem boolDisk 
- Is the Attached disk is the system disk of the Instance.
- SizeIn stringGb 
- Size of the disk attached to the Instance.
- diskName String
- The names to use for your new Lightsail disk.
- path String
- Path of the disk attached to the instance.
- attachedTo String
- Instance attached to the disk.
- attachmentState String
- Attachment state of the disk.
- iops Integer
- IOPS of disk.
- isSystem BooleanDisk 
- Is the Attached disk is the system disk of the Instance.
- sizeIn StringGb 
- Size of the disk attached to the Instance.
- diskName string
- The names to use for your new Lightsail disk.
- path string
- Path of the disk attached to the instance.
- attachedTo string
- Instance attached to the disk.
- attachmentState string
- Attachment state of the disk.
- iops number
- IOPS of disk.
- isSystem booleanDisk 
- Is the Attached disk is the system disk of the Instance.
- sizeIn stringGb 
- Size of the disk attached to the Instance.
- disk_name str
- The names to use for your new Lightsail disk.
- path str
- Path of the disk attached to the instance.
- attached_to str
- Instance attached to the disk.
- attachment_state str
- Attachment state of the disk.
- iops int
- IOPS of disk.
- is_system_ booldisk 
- Is the Attached disk is the system disk of the Instance.
- size_in_ strgb 
- Size of the disk attached to the Instance.
- diskName String
- The names to use for your new Lightsail disk.
- path String
- Path of the disk attached to the instance.
- attachedTo String
- Instance attached to the disk.
- attachmentState String
- Attachment state of the disk.
- iops Number
- IOPS of disk.
- isSystem BooleanDisk 
- Is the Attached disk is the system disk of the Instance.
- sizeIn StringGb 
- Size of the disk attached to the Instance.
InstanceHardware 
- CpuCount int
- CPU count of the Instance.
- Disks
List<Pulumi.Aws Native. Lightsail. Inputs. Instance Disk> 
- Disks attached to the Instance.
- RamSize intIn Gb 
- RAM Size of the Instance.
- CpuCount int
- CPU count of the Instance.
- Disks
[]InstanceDisk 
- Disks attached to the Instance.
- RamSize intIn Gb 
- RAM Size of the Instance.
- cpuCount Integer
- CPU count of the Instance.
- disks
List<InstanceDisk> 
- Disks attached to the Instance.
- ramSize IntegerIn Gb 
- RAM Size of the Instance.
- cpuCount number
- CPU count of the Instance.
- disks
InstanceDisk[] 
- Disks attached to the Instance.
- ramSize numberIn Gb 
- RAM Size of the Instance.
- cpu_count int
- CPU count of the Instance.
- disks
Sequence[InstanceDisk] 
- Disks attached to the Instance.
- ram_size_ intin_ gb 
- RAM Size of the Instance.
- cpuCount Number
- CPU count of the Instance.
- disks List<Property Map>
- Disks attached to the Instance.
- ramSize NumberIn Gb 
- RAM Size of the Instance.
InstanceLocation 
- AvailabilityZone string
- The Availability Zone in which to create your instance. Use the following format: us-east-2a (case sensitive). Be sure to add the include Availability Zones parameter to your request.
- RegionName string
- The Region Name in which to create your instance.
- AvailabilityZone string
- The Availability Zone in which to create your instance. Use the following format: us-east-2a (case sensitive). Be sure to add the include Availability Zones parameter to your request.
- RegionName string
- The Region Name in which to create your instance.
- availabilityZone String
- The Availability Zone in which to create your instance. Use the following format: us-east-2a (case sensitive). Be sure to add the include Availability Zones parameter to your request.
- regionName String
- The Region Name in which to create your instance.
- availabilityZone string
- The Availability Zone in which to create your instance. Use the following format: us-east-2a (case sensitive). Be sure to add the include Availability Zones parameter to your request.
- regionName string
- The Region Name in which to create your instance.
- availability_zone str
- The Availability Zone in which to create your instance. Use the following format: us-east-2a (case sensitive). Be sure to add the include Availability Zones parameter to your request.
- region_name str
- The Region Name in which to create your instance.
- availabilityZone String
- The Availability Zone in which to create your instance. Use the following format: us-east-2a (case sensitive). Be sure to add the include Availability Zones parameter to your request.
- regionName String
- The Region Name in which to create your instance.
InstanceMonthlyTransfer  
- GbPer stringMonth Allocated 
- GbPerMonthAllocated of the Instance.
- GbPer stringMonth Allocated 
- GbPerMonthAllocated of the Instance.
- gbPer StringMonth Allocated 
- GbPerMonthAllocated of the Instance.
- gbPer stringMonth Allocated 
- GbPerMonthAllocated of the Instance.
- gb_per_ strmonth_ allocated 
- GbPerMonthAllocated of the Instance.
- gbPer StringMonth Allocated 
- GbPerMonthAllocated of the Instance.
InstanceNetworking 
- Ports
List<Pulumi.Aws Native. Lightsail. Inputs. Instance Port> 
- Ports to the Instance.
- MonthlyTransfer Pulumi.Aws Native. Lightsail. Inputs. Instance Monthly Transfer 
- The monthly amount of data transfer, in GB, allocated for the instance
- Ports
[]InstancePort 
- Ports to the Instance.
- MonthlyTransfer InstanceMonthly Transfer 
- The monthly amount of data transfer, in GB, allocated for the instance
- ports
List<InstancePort> 
- Ports to the Instance.
- monthlyTransfer InstanceMonthly Transfer 
- The monthly amount of data transfer, in GB, allocated for the instance
- ports
InstancePort[] 
- Ports to the Instance.
- monthlyTransfer InstanceMonthly Transfer 
- The monthly amount of data transfer, in GB, allocated for the instance
- ports
Sequence[InstancePort] 
- Ports to the Instance.
- monthly_transfer InstanceMonthly Transfer 
- The monthly amount of data transfer, in GB, allocated for the instance
- ports List<Property Map>
- Ports to the Instance.
- monthlyTransfer Property Map
- The monthly amount of data transfer, in GB, allocated for the instance
InstancePort 
- AccessDirection string
- Access Direction for Protocol of the Instance(inbound/outbound).
- AccessFrom string
- Access From Protocol of the Instance.
- AccessType string
- Access Type Protocol of the Instance.
- CidrList List<string>Aliases 
- An alias that defines access for a preconfigured range of IP addresses. - The only alias currently supported is - lightsail-connect, which allows IP addresses of the browser-based RDP/SSH client in the Lightsail console to connect to your instance.
- Cidrs List<string>
- The IPv4 address, or range of IPv4 addresses (in CIDR notation) that are allowed to connect to an instance through the ports, and the protocol. - The - ipv6Cidrsparameter lists the IPv6 addresses that are allowed to connect to an instance.- Examples: - To allow the IP address 192.0.2.44, specify192.0.2.44or192.0.2.44/32.
- To allow the IP addresses 192.0.2.0to192.0.2.255, specify192.0.2.0/24.
 
- To allow the IP address 
- CommonName string
- CommonName for Protocol of the Instance.
- FromPort int
- From Port of the Instance.
- Ipv6Cidrs List<string>
- The IPv6 address, or range of IPv6 addresses (in CIDR notation) that are allowed to connect to an instance through the ports, and the protocol. Only devices with an IPv6 address can connect to an instance through IPv6; otherwise, IPv4 should be used. - The - cidrsparameter lists the IPv4 addresses that are allowed to connect to an instance.
- Protocol string
- Port Protocol of the Instance.
- ToPort int
- To Port of the Instance.
- AccessDirection string
- Access Direction for Protocol of the Instance(inbound/outbound).
- AccessFrom string
- Access From Protocol of the Instance.
- AccessType string
- Access Type Protocol of the Instance.
- CidrList []stringAliases 
- An alias that defines access for a preconfigured range of IP addresses. - The only alias currently supported is - lightsail-connect, which allows IP addresses of the browser-based RDP/SSH client in the Lightsail console to connect to your instance.
- Cidrs []string
- The IPv4 address, or range of IPv4 addresses (in CIDR notation) that are allowed to connect to an instance through the ports, and the protocol. - The - ipv6Cidrsparameter lists the IPv6 addresses that are allowed to connect to an instance.- Examples: - To allow the IP address 192.0.2.44, specify192.0.2.44or192.0.2.44/32.
- To allow the IP addresses 192.0.2.0to192.0.2.255, specify192.0.2.0/24.
 
- To allow the IP address 
- CommonName string
- CommonName for Protocol of the Instance.
- FromPort int
- From Port of the Instance.
- Ipv6Cidrs []string
- The IPv6 address, or range of IPv6 addresses (in CIDR notation) that are allowed to connect to an instance through the ports, and the protocol. Only devices with an IPv6 address can connect to an instance through IPv6; otherwise, IPv4 should be used. - The - cidrsparameter lists the IPv4 addresses that are allowed to connect to an instance.
- Protocol string
- Port Protocol of the Instance.
- ToPort int
- To Port of the Instance.
- accessDirection String
- Access Direction for Protocol of the Instance(inbound/outbound).
- accessFrom String
- Access From Protocol of the Instance.
- accessType String
- Access Type Protocol of the Instance.
- cidrList List<String>Aliases 
- An alias that defines access for a preconfigured range of IP addresses. - The only alias currently supported is - lightsail-connect, which allows IP addresses of the browser-based RDP/SSH client in the Lightsail console to connect to your instance.
- cidrs List<String>
- The IPv4 address, or range of IPv4 addresses (in CIDR notation) that are allowed to connect to an instance through the ports, and the protocol. - The - ipv6Cidrsparameter lists the IPv6 addresses that are allowed to connect to an instance.- Examples: - To allow the IP address 192.0.2.44, specify192.0.2.44or192.0.2.44/32.
- To allow the IP addresses 192.0.2.0to192.0.2.255, specify192.0.2.0/24.
 
- To allow the IP address 
- commonName String
- CommonName for Protocol of the Instance.
- fromPort Integer
- From Port of the Instance.
- ipv6Cidrs List<String>
- The IPv6 address, or range of IPv6 addresses (in CIDR notation) that are allowed to connect to an instance through the ports, and the protocol. Only devices with an IPv6 address can connect to an instance through IPv6; otherwise, IPv4 should be used. - The - cidrsparameter lists the IPv4 addresses that are allowed to connect to an instance.
- protocol String
- Port Protocol of the Instance.
- toPort Integer
- To Port of the Instance.
- accessDirection string
- Access Direction for Protocol of the Instance(inbound/outbound).
- accessFrom string
- Access From Protocol of the Instance.
- accessType string
- Access Type Protocol of the Instance.
- cidrList string[]Aliases 
- An alias that defines access for a preconfigured range of IP addresses. - The only alias currently supported is - lightsail-connect, which allows IP addresses of the browser-based RDP/SSH client in the Lightsail console to connect to your instance.
- cidrs string[]
- The IPv4 address, or range of IPv4 addresses (in CIDR notation) that are allowed to connect to an instance through the ports, and the protocol. - The - ipv6Cidrsparameter lists the IPv6 addresses that are allowed to connect to an instance.- Examples: - To allow the IP address 192.0.2.44, specify192.0.2.44or192.0.2.44/32.
- To allow the IP addresses 192.0.2.0to192.0.2.255, specify192.0.2.0/24.
 
- To allow the IP address 
- commonName string
- CommonName for Protocol of the Instance.
- fromPort number
- From Port of the Instance.
- ipv6Cidrs string[]
- The IPv6 address, or range of IPv6 addresses (in CIDR notation) that are allowed to connect to an instance through the ports, and the protocol. Only devices with an IPv6 address can connect to an instance through IPv6; otherwise, IPv4 should be used. - The - cidrsparameter lists the IPv4 addresses that are allowed to connect to an instance.
- protocol string
- Port Protocol of the Instance.
- toPort number
- To Port of the Instance.
- access_direction str
- Access Direction for Protocol of the Instance(inbound/outbound).
- access_from str
- Access From Protocol of the Instance.
- access_type str
- Access Type Protocol of the Instance.
- cidr_list_ Sequence[str]aliases 
- An alias that defines access for a preconfigured range of IP addresses. - The only alias currently supported is - lightsail-connect, which allows IP addresses of the browser-based RDP/SSH client in the Lightsail console to connect to your instance.
- cidrs Sequence[str]
- The IPv4 address, or range of IPv4 addresses (in CIDR notation) that are allowed to connect to an instance through the ports, and the protocol. - The - ipv6Cidrsparameter lists the IPv6 addresses that are allowed to connect to an instance.- Examples: - To allow the IP address 192.0.2.44, specify192.0.2.44or192.0.2.44/32.
- To allow the IP addresses 192.0.2.0to192.0.2.255, specify192.0.2.0/24.
 
- To allow the IP address 
- common_name str
- CommonName for Protocol of the Instance.
- from_port int
- From Port of the Instance.
- ipv6_cidrs Sequence[str]
- The IPv6 address, or range of IPv6 addresses (in CIDR notation) that are allowed to connect to an instance through the ports, and the protocol. Only devices with an IPv6 address can connect to an instance through IPv6; otherwise, IPv4 should be used. - The - cidrsparameter lists the IPv4 addresses that are allowed to connect to an instance.
- protocol str
- Port Protocol of the Instance.
- to_port int
- To Port of the Instance.
- accessDirection String
- Access Direction for Protocol of the Instance(inbound/outbound).
- accessFrom String
- Access From Protocol of the Instance.
- accessType String
- Access Type Protocol of the Instance.
- cidrList List<String>Aliases 
- An alias that defines access for a preconfigured range of IP addresses. - The only alias currently supported is - lightsail-connect, which allows IP addresses of the browser-based RDP/SSH client in the Lightsail console to connect to your instance.
- cidrs List<String>
- The IPv4 address, or range of IPv4 addresses (in CIDR notation) that are allowed to connect to an instance through the ports, and the protocol. - The - ipv6Cidrsparameter lists the IPv6 addresses that are allowed to connect to an instance.- Examples: - To allow the IP address 192.0.2.44, specify192.0.2.44or192.0.2.44/32.
- To allow the IP addresses 192.0.2.0to192.0.2.255, specify192.0.2.0/24.
 
- To allow the IP address 
- commonName String
- CommonName for Protocol of the Instance.
- fromPort Number
- From Port of the Instance.
- ipv6Cidrs List<String>
- The IPv6 address, or range of IPv6 addresses (in CIDR notation) that are allowed to connect to an instance through the ports, and the protocol. Only devices with an IPv6 address can connect to an instance through IPv6; otherwise, IPv4 should be used. - The - cidrsparameter lists the IPv4 addresses that are allowed to connect to an instance.
- protocol String
- Port Protocol of the Instance.
- toPort Number
- To Port of the Instance.
InstanceState 
Tag
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.