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
Idawscc.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.

For more information, see AWS::MediaConnect::Gateway.

Methods

NameResourceAccessible byRequired Params
create_resourcegatewaysINSERTName, EgressCidrBlocks, Networks, region
delete_resourcegatewaysDELETEIdentifier, region
list_resourcesgateways_list_onlySELECTregion
get_resourcegatewaysSELECTIdentifier, region

SELECT examples

Gets all properties from an individual gateway.

SELECT
region,
name,
gateway_arn,
gateway_state,
egress_cidr_blocks,
networks
FROM awscc.mediaconnect.gateways
WHERE
region = 'us-east-1' AND
Identifier = '{{ gateway_arn }}';

INSERT example

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

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

DELETE example

/*+ delete */
DELETE FROM awscc.mediaconnect.gateways
WHERE
Identifier = '{{ gateway_arn }}' AND
region = 'us-east-1';

Permissions

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

iam:CreateServiceLinkedRole,
mediaconnect:CreateGateway,
mediaconnect:DescribeGateway