Skip to main content

gateway_instances

Creates, updates, deletes, gets or lists a gateway_instances resource.

Overview

Namegateway_instances
TypeResource
Idaws.mediaconnect.gateway_instances

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
bridge_placementstringThe availability of the instance to host new bridges. The bridgePlacement property can be LOCKED or AVAILABLE. If it is LOCKED, no new bridges can be deployed to this instance. If it is AVAILABLE, new bridges can be deployed to this instance. (AVAILABLE, LOCKED)
connection_statusstringThe connection state of the instance. (CONNECTED, DISCONNECTED)
gateway_arnstringThe Amazon Resource Name (ARN) of the instance.
gateway_instance_arnstringThe ARN of the gateway.
instance_idstringThe instance ID generated by the SSM install. This will begin with "mi-".
instance_messagesarrayMessages with information about the gateway.
instance_statestringThe status of the instance. (REGISTERING, ACTIVE, DEREGISTERING, DEREGISTERED, REGISTRATION_ERROR, DEREGISTRATION_ERROR)
running_bridge_countintegerThe running bridge count.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_gateway_instanceselectgateway_instance_arn, regionDisplays the details of an instance.
list_gateway_instancesselectregionfilterArn, maxResults, nextTokenDisplays a list of instances associated with the Amazon Web Services account. This request returns a paginated result. You can use the filterArn property to display only the instances associated with the selected Gateway Amazon Resource Name (ARN).
update_gateway_instanceupdategateway_instance_arn, regionUpdates an existing gateway instance.
deregister_gateway_instancedeletegateway_instance_arn, regionforceDeregisters an instance. Before you deregister an instance, all bridges running on the instance must be stopped. If you want to deregister an instance without stopping the bridges, you must use the --force option.

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
gateway_instance_arnstringThe Amazon Resource Name (ARN) of the gateway that contains the instance that you want to deregister.
regionstringAWS region (default: us-east-1)
filterArnstringFilter the list results to display only the instances associated with the selected Gateway ARN.
forcebooleanForce the deregistration of an instance. Force will deregister an instance, even if there are bridges running on it.
maxResultsintegerThe maximum number of results to return per API request. For example, you submit a ListInstances request with MaxResults set at 5. Although 20 items match your request, the service returns no more than the first 5 items. (The service also returns a NextToken value that you can use to fetch the next batch of results.) The service might return fewer results than the MaxResults value. If MaxResults is not included in the request, the service defaults to pagination with a maximum of 10 results per page.
nextTokenstringThe token that identifies the batch of results that you want to see. For example, you submit a ListInstances request with MaxResults set at 5. The service returns the first batch of results (up to 5) and a NextToken value. To see the next batch of results, you can submit the ListInstances request a second time and specify the NextToken value.

SELECT examples

Displays the details of an instance.

SELECT
bridge_placement,
connection_status,
gateway_arn,
gateway_instance_arn,
instance_id,
instance_messages,
instance_state,
running_bridge_count
FROM aws.mediaconnect.gateway_instances
WHERE gateway_instance_arn = '{{ gateway_instance_arn }}' -- required
AND region = '{{ region }}' -- required
;

UPDATE examples

Updates an existing gateway instance.

UPDATE aws.mediaconnect.gateway_instances
SET
BridgePlacement = '{{ BridgePlacement }}'
WHERE
gateway_instance_arn = '{{ gateway_instance_arn }}' --required
AND region = '{{ region }}' --required
RETURNING
bridge_placement,
gateway_instance_arn;

DELETE examples

Deregisters an instance. Before you deregister an instance, all bridges running on the instance must be stopped. If you want to deregister an instance without stopping the bridges, you must use the --force option.

DELETE FROM aws.mediaconnect.gateway_instances
WHERE gateway_instance_arn = '{{ gateway_instance_arn }}' --required
AND region = '{{ region }}' --required
AND force = '{{ force }}'
;