Skip to main content

instance_port_states

Creates, updates, deletes, gets or lists an instance_port_states resource.

Overview

Nameinstance_port_states
TypeResource
Idaws.lightsail.instance_port_states

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
port_statesarrayAn array of objects that describe the firewall port states for the specified instance.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_instance_port_statesselectregionReturns 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.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

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
;