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 = '{{ region }}' 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 }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

DELETE example

/*+ delete */
DELETE FROM awscc.mediaconnect.gateways
WHERE
Identifier = '{{ gateway_arn }}' AND
region = '{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

Additional Parameters

Mutable resources in the Cloud Control provider support additional optional parameters which can be supplied with INSERT, UPDATE, or DELETE operations. These include:

ParameterDescription
ClientToken
A unique identifier to ensure the idempotency of the resource request.This allows the provider to accurately distinguish between retries and new requests.
A client token is valid for 36 hours once used.
After that, a resource request with the same client token is treated as a new request.
If you do not specify a client token, one is generated for inclusion in the request.
RoleArn
The ARN of the IAM role used to perform this resource operation.The role specified must have the permissions required for this operation.
If you do not specify a role, a temporary session is created using your AWS user credentials.
TypeVersionId
For private resource types, the type version to use in this resource operation.If you do not specify a resource version, the default version is used.

Permissions

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

iam:CreateServiceLinkedRole,
mediaconnect:CreateGateway,
mediaconnect:DescribeGateway