Skip to main content

nodes

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

Overview

Namenodes
TypeResource
Idaws.medialive.nodes

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
arnstringPlaceholder documentation for __string
channel_placement_groupsarrayPlaceholder documentation for __listOf__string
cluster_idstringPlaceholder documentation for __string
connection_statestringThe current connection state of the Node. (CONNECTED, DISCONNECTED)
idstringPlaceholder documentation for __string
instance_arnstringPlaceholder documentation for __string
namestringPlaceholder documentation for __string
node_interface_mappingsarrayPlaceholder documentation for __listOfNodeInterfaceMapping
rolestringUsed in CreateNodeRequest, CreateNodeRegistrationScriptRequest, DescribeNodeResult, DescribeNodeSummary, UpdateNodeRequest. (BACKUP, ACTIVE)
sdi_source_mappingsarrayAn array of SDI source mappings. Each mapping connects one logical SdiSource to the physical SDI card and port that the physical SDI source uses.
statestringThe current state of the Node. (CREATED, REGISTERING, READY_TO_ACTIVATE, REGISTRATION_FAILED, ACTIVATION_FAILED, ACTIVE, READY, IN_USE, DEREGISTERING, DRAINING, DEREGISTRATION_FAILED, DEREGISTERED)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_nodeselectcluster_id, node_id, regionGet details about a Node in the specified Cluster.
list_nodesselectcluster_id, regionmaxResults, nextTokenRetrieve the list of Nodes.
create_nodeinsertcluster_id, regionCreate a Node in the specified Cluster. You can also create Nodes using the CreateNodeRegistrationScript. Note that you can't move a Node to another Cluster.
update_nodeupdatecluster_id, node_id, regionChange the settings for a Node.
delete_nodedeletecluster_id, node_id, regionDelete a Node. The Node must be IDLE.
create_node_registration_scriptexeccluster_id, regionCreate the Register Node script for all the nodes intended for a specific Cluster. You will then run the script on each hardware unit that is intended for that Cluster. The script creates a Node in the specified Cluster. It then binds the Node to this hardware unit, and activates the node hardware for use with MediaLive Anywhere.
update_node_stateexeccluster_id, node_id, regionUpdate the state of a node.

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
cluster_idstringThe ID of the cluster
node_idstringThe ID of the node.
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 Node in the specified Cluster.

SELECT
arn,
channel_placement_groups,
cluster_id,
connection_state,
id,
instance_arn,
name,
node_interface_mappings,
role,
sdi_source_mappings,
state
FROM aws.medialive.nodes
WHERE cluster_id = '{{ cluster_id }}' -- required
AND node_id = '{{ node_id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Create a Node in the specified Cluster. You can also create Nodes using the CreateNodeRegistrationScript. Note that you can't move a Node to another Cluster.

INSERT INTO aws.medialive.nodes (
Name,
NodeInterfaceMappings,
RequestId,
Role,
Tags,
cluster_id,
region
)
SELECT
'{{ Name }}',
'{{ NodeInterfaceMappings }}',
'{{ RequestId }}',
'{{ Role }}',
'{{ Tags }}',
'{{ cluster_id }}',
'{{ region }}'
RETURNING
arn,
channel_placement_groups,
cluster_id,
connection_state,
id,
instance_arn,
name,
node_interface_mappings,
role,
sdi_source_mappings,
state
;

UPDATE examples

Change the settings for a Node.

UPDATE aws.medialive.nodes
SET
Name = '{{ Name }}',
Role = '{{ Role }}',
SdiSourceMappings = '{{ SdiSourceMappings }}'
WHERE
cluster_id = '{{ cluster_id }}' --required
AND node_id = '{{ node_id }}' --required
AND region = '{{ region }}' --required
RETURNING
arn,
channel_placement_groups,
cluster_id,
connection_state,
id,
instance_arn,
name,
node_interface_mappings,
role,
sdi_source_mappings,
state;

DELETE examples

Delete a Node. The Node must be IDLE.

DELETE FROM aws.medialive.nodes
WHERE cluster_id = '{{ cluster_id }}' --required
AND node_id = '{{ node_id }}' --required
AND region = '{{ region }}' --required
;

Lifecycle Methods

Create the Register Node script for all the nodes intended for a specific Cluster. You will then run the script on each hardware unit that is intended for that Cluster. The script creates a Node in the specified Cluster. It then binds the Node to this hardware unit, and activates the node hardware for use with MediaLive Anywhere.

EXEC aws.medialive.nodes.create_node_registration_script
@cluster_id='{{ cluster_id }}' --required,
@region='{{ region }}' --required
@@json=
'{
"Id": "{{ Id }}",
"Name": "{{ Name }}",
"NodeInterfaceMappings": "{{ NodeInterfaceMappings }}",
"RequestId": "{{ RequestId }}",
"Role": "{{ Role }}"
}'
;