Skip to main content

gateways

Creates, updates, deletes or gets a gateway resource or lists gateways in a region

Overview

Namegateways
TypeResource
DescriptionResource schema for AWS::MediaConnect::Gateway
Idaws.mediaconnect.gateways

Fields

NameDatatypeDescription
namestringThe name of the gateway. This name can not be modified after the gateway is created.
gateway_arnstringThe Amazon Resource Name (ARN) of the gateway.
gateway_statestringThe current status of the gateway.
egress_cidr_blocksarrayThe range of IP addresses that contribute content or initiate output requests for flows communicating with this gateway. These IP addresses should be in the form of a Classless Inter-Domain Routing (CIDR) block; for example, 10.0.0.0/16.
networksarrayThe list of networks in the gateway.
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTName, EgressCidrBlocks, Networks, region
delete_resourceDELETEdata__Identifier, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all gateways in a region.

SELECT
region,
name,
gateway_arn,
gateway_state,
egress_cidr_blocks,
networks
FROM aws.mediaconnect.gateways
WHERE region = 'us-east-1';

Gets all properties from an individual gateway.

SELECT
region,
name,
gateway_arn,
gateway_state,
egress_cidr_blocks,
networks
FROM aws.mediaconnect.gateways
WHERE region = 'us-east-1' AND data__Identifier = '<GatewayArn>';

INSERT example

Use the following StackQL query and manifest file to create a new gateway resource, using stack-deploy.

/*+ create */
INSERT INTO aws.mediaconnect.gateways (
Name,
EgressCidrBlocks,
Networks,
region
)
SELECT
'{{ Name }}',
'{{ EgressCidrBlocks }}',
'{{ Networks }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.mediaconnect.gateways
WHERE data__Identifier = '<GatewayArn>'
AND region = 'us-east-1';

Permissions

To operate on the gateways resource, the following permissions are required:

Create

iam:CreateServiceLinkedRole,
mediaconnect:CreateGateway,
mediaconnect:DescribeGateway

Read

mediaconnect:DescribeGateway

Delete

iam:CreateServiceLinkedRole,
mediaconnect:DescribeGateway,
mediaconnect:DeleteGateway

List

mediaconnect:ListGateways