Skip to main content

clusters

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

Overview

Nameclusters
TypeResource
Idaws.medialive.clusters

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
arnstringPlaceholder documentation for __string
channel_idsarrayPlaceholder documentation for __listOf__string
cluster_typestringUsed in CreateClusterSummary, DescribeClusterSummary, DescribeClusterResult, UpdateClusterResult. (ON_PREMISES)
idstringPlaceholder documentation for __string
instance_role_arnstringPlaceholder documentation for __string
namestringPlaceholder documentation for __string
network_settingsobjectNetwork settings that connect the Nodes in the Cluster to one or more of the Networks that the Cluster is associated with.
statestringThe current state of the Cluster. (CREATING, CREATE_FAILED, ACTIVE, DELETING, DELETE_FAILED, DELETED)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_clusterselectcluster_id, regionGet details about a Cluster.
list_clustersselectregionmaxResults, nextTokenRetrieve the list of Clusters.
create_clusterinsertregionCreate a new Cluster.
update_clusterupdatecluster_id, regionChange the settings for a Cluster.
delete_clusterdeletecluster_id, regionDelete a Cluster. The Cluster must be idle.

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

SELECT
arn,
channel_ids,
cluster_type,
id,
instance_role_arn,
name,
network_settings,
state
FROM aws.medialive.clusters
WHERE cluster_id = '{{ cluster_id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Create a new Cluster.

INSERT INTO aws.medialive.clusters (
ClusterType,
InstanceRoleArn,
Name,
NetworkSettings,
RequestId,
Tags,
region
)
SELECT
'{{ ClusterType }}',
'{{ InstanceRoleArn }}',
'{{ Name }}',
'{{ NetworkSettings }}',
'{{ RequestId }}',
'{{ Tags }}',
'{{ region }}'
RETURNING
arn,
channel_ids,
cluster_type,
id,
instance_role_arn,
name,
network_settings,
state
;

UPDATE examples

Change the settings for a Cluster.

UPDATE aws.medialive.clusters
SET
Name = '{{ Name }}',
NetworkSettings = '{{ NetworkSettings }}'
WHERE
cluster_id = '{{ cluster_id }}' --required
AND region = '{{ region }}' --required
RETURNING
arn,
channel_ids,
cluster_type,
id,
name,
network_settings,
state;

DELETE examples

Delete a Cluster. The Cluster must be idle.

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