aws_sdk_medialive/client/update_node_state.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3 /// Constructs a fluent builder for the [`UpdateNodeState`](crate::operation::update_node_state::builders::UpdateNodeStateFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`cluster_id(impl Into<String>)`](crate::operation::update_node_state::builders::UpdateNodeStateFluentBuilder::cluster_id) / [`set_cluster_id(Option<String>)`](crate::operation::update_node_state::builders::UpdateNodeStateFluentBuilder::set_cluster_id):<br>required: **true**<br>The ID of the cluster<br>
7 /// - [`node_id(impl Into<String>)`](crate::operation::update_node_state::builders::UpdateNodeStateFluentBuilder::node_id) / [`set_node_id(Option<String>)`](crate::operation::update_node_state::builders::UpdateNodeStateFluentBuilder::set_node_id):<br>required: **true**<br>The ID of the node.<br>
8 /// - [`state(UpdateNodeStateShape)`](crate::operation::update_node_state::builders::UpdateNodeStateFluentBuilder::state) / [`set_state(Option<UpdateNodeStateShape>)`](crate::operation::update_node_state::builders::UpdateNodeStateFluentBuilder::set_state):<br>required: **false**<br>The state to apply to the Node. Set to ACTIVE (COMMISSIONED) to indicate that the Node is deployable. MediaLive Anywhere will consider this node it needs a Node to run a Channel on, or when it needs a Node to promote from a backup node to an active node. Set to DRAINING to isolate the Node so that MediaLive Anywhere won't use it.<br>
9 /// - On success, responds with [`UpdateNodeStateOutput`](crate::operation::update_node_state::UpdateNodeStateOutput) with field(s):
10 /// - [`arn(Option<String>)`](crate::operation::update_node_state::UpdateNodeStateOutput::arn): The ARN of the Node. It is automatically assigned when the Node is created.
11 /// - [`channel_placement_groups(Option<Vec::<String>>)`](crate::operation::update_node_state::UpdateNodeStateOutput::channel_placement_groups): An array of IDs. Each ID is one ChannelPlacementGroup that is associated with this Node. Empty if the Node is not yet associated with any groups.
12 /// - [`cluster_id(Option<String>)`](crate::operation::update_node_state::UpdateNodeStateOutput::cluster_id): The ID of the Cluster that the Node belongs to.
13 /// - [`connection_state(Option<NodeConnectionState>)`](crate::operation::update_node_state::UpdateNodeStateOutput::connection_state): The current connection state of the Node.
14 /// - [`id(Option<String>)`](crate::operation::update_node_state::UpdateNodeStateOutput::id): The unique ID of the Node. Unique in the Cluster. The ID is the resource-id portion of the ARN.
15 /// - [`instance_arn(Option<String>)`](crate::operation::update_node_state::UpdateNodeStateOutput::instance_arn): The ARN of the EC2 instance hosting the Node.
16 /// - [`name(Option<String>)`](crate::operation::update_node_state::UpdateNodeStateOutput::name): The name that you specified for the Node.
17 /// - [`node_interface_mappings(Option<Vec::<NodeInterfaceMapping>>)`](crate::operation::update_node_state::UpdateNodeStateOutput::node_interface_mappings): Documentation update needed
18 /// - [`role(Option<NodeRole>)`](crate::operation::update_node_state::UpdateNodeStateOutput::role): The initial role current role of the Node in the Cluster. ACTIVE means the Node is available for encoding. BACKUP means the Node is a redundant Node and might get used if an ACTIVE Node fails.
19 /// - [`state(Option<NodeState>)`](crate::operation::update_node_state::UpdateNodeStateOutput::state): The current state of the Node.
20 /// - [`sdi_source_mappings(Option<Vec::<SdiSourceMapping>>)`](crate::operation::update_node_state::UpdateNodeStateOutput::sdi_source_mappings): An array of SDI source mappings. Each mapping connects one logical SdiSource to the physical SDI card and port that the physical SDI source uses.
21 /// - On failure, responds with [`SdkError<UpdateNodeStateError>`](crate::operation::update_node_state::UpdateNodeStateError)
22 pub fn update_node_state(&self) -> crate::operation::update_node_state::builders::UpdateNodeStateFluentBuilder {
23 crate::operation::update_node_state::builders::UpdateNodeStateFluentBuilder::new(self.handle.clone())
24 }
25}