Skip to main content

networks

Creates, updates, deletes or gets a network resource or lists networks in a region

Overview

Namenetworks
TypeResource
DescriptionResource schema for AWS::MediaLive::Network.
Idaws.medialive.networks

Fields

NameDatatypeDescription
arnstringThe ARN of the Network.
associated_cluster_idsarray
idstringThe unique ID of the Network.
ip_poolsarrayThe list of IP address cidr pools for the network
namestringThe user-specified name of the Network to be created.
routesarrayThe routes for the network
statestringThe current state of the Network.
tagsarrayA collection of key-value pairs.
regionstringAWS region.

For more information, see AWS::MediaLive::Network.

Methods

NameAccessible byRequired Params
create_resourceINSERTName, IpPools, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all networks in a region.

SELECT
region,
arn,
associated_cluster_ids,
id,
ip_pools,
name,
routes,
state,
tags
FROM aws.medialive.networks
WHERE region = 'us-east-1';

Gets all properties from an individual network.

SELECT
region,
arn,
associated_cluster_ids,
id,
ip_pools,
name,
routes,
state,
tags
FROM aws.medialive.networks
WHERE region = 'us-east-1' AND data__Identifier = '<Id>';

INSERT example

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

/*+ create */
INSERT INTO aws.medialive.networks (
IpPools,
Name,
region
)
SELECT
'{{ IpPools }}',
'{{ Name }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.medialive.networks
WHERE data__Identifier = '<Id>'
AND region = 'us-east-1';

Permissions

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

Create

medialive:CreateNetwork,
medialive:CreateTags,
medialive:DescribeNetwork,
medialive:ListTagsForResource

Read

medialive:DescribeNetwork,
medialive:ListTagsForResource

Update

medialive:UpdateNetwork,
medialive:CreateTags,
medialive:DeleteTags,
medialive:DescribeNetwork,
medialive:ListTagsForResource

Delete

medialive:DeleteNetwork,
medialive:DescribeNetwork

List

medialive:ListNetworks