Skip to main content

networks

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

Overview

Namenetworks
TypeResource
Idaws.medialive.networks

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
arnstringPlaceholder documentation for __string
associated_cluster_idsarrayPlaceholder documentation for __listOf__string
idstringPlaceholder documentation for __string
ip_poolsarrayAn array of IpPools in your organization's network that identify a collection of IP addresses in this network that are reserved for use in MediaLive Anywhere. MediaLive Anywhere uses these IP addresses for Push inputs (in both Bridge and NAT networks) and for output destinations (only in Bridge networks). Each IpPool specifies one CIDR block.
namestringPlaceholder documentation for __string
routesarrayAn array of routes that MediaLive Anywhere needs to know about in order to route encoding traffic.
statestringThe current state of the Network. Only MediaLive Anywhere can change the state. (CREATING, CREATE_FAILED, ACTIVE, DELETING, IDLE, IN_USE, UPDATING, DELETE_FAILED, DELETED)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_networkselectnetwork_id, regionGet details about a Network.
list_networksselectregionmaxResults, nextTokenRetrieve the list of Networks.
create_networkinsertregionCreate as many Networks as you need. You will associate one or more Clusters with each Network.Each Network provides MediaLive Anywhere with required information about the network in your organization that you are using for video encoding using MediaLive.
update_networkupdatenetwork_id, regionChange the settings for a Network.
delete_networkdeletenetwork_id, regionDelete a Network. The Network must have no resources associated with it.

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
network_idstringThe ID of the network.
regionstringAWS region (default: us-east-1)
maxResultsintegerThe maximum number of items to return.
nextTokenstringThe token to retrieve the next page of results.

SELECT examples

Get details about a Network.

SELECT
arn,
associated_cluster_ids,
id,
ip_pools,
name,
routes,
state
FROM aws.medialive.networks
WHERE network_id = '{{ network_id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Create as many Networks as you need. You will associate one or more Clusters with each Network.Each Network provides MediaLive Anywhere with required information about the network in your organization that you are using for video encoding using MediaLive.

INSERT INTO aws.medialive.networks (
IpPools,
Name,
RequestId,
Routes,
Tags,
region
)
SELECT
'{{ IpPools }}',
'{{ Name }}',
'{{ RequestId }}',
'{{ Routes }}',
'{{ Tags }}',
'{{ region }}'
RETURNING
arn,
associated_cluster_ids,
id,
ip_pools,
name,
routes,
state
;

UPDATE examples

Change the settings for a Network.

UPDATE aws.medialive.networks
SET
IpPools = '{{ IpPools }}',
Name = '{{ Name }}',
Routes = '{{ Routes }}'
WHERE
network_id = '{{ network_id }}' --required
AND region = '{{ region }}' --required
RETURNING
arn,
associated_cluster_ids,
id,
ip_pools,
name,
routes,
state;

DELETE examples

Delete a Network. The Network must have no resources associated with it.

DELETE FROM aws.medialive.networks
WHERE network_id = '{{ network_id }}' --required
AND region = '{{ region }}' --required
;