instance_port_states
Creates, updates, deletes, gets or lists an instance_port_states resource.
Overview
| Name | instance_port_states |
| Type | Resource |
| Id | aws.lightsail.instance_port_states |
Fields
The following fields are returned by SELECT queries:
- get_instance_port_states
| Name | Datatype | Description |
|---|---|---|
port_states | array | An array of objects that describe the firewall port states for the specified instance. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_instance_port_states | select | region | Returns the firewall port states for a specific Amazon Lightsail instance, the IP addresses allowed to connect to the instance through the ports, and the protocol. |
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
region | string | AWS region (default: us-east-1) |
SELECT examples
- get_instance_port_states
Returns the firewall port states for a specific Amazon Lightsail instance, the IP addresses allowed to connect to the instance through the ports, and the protocol.
SELECT
port_states
FROM aws.lightsail.instance_port_states
WHERE region = '{{ region }}' -- required
;