aws_sdk_medialive/client/create_channel_placement_group.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 [`CreateChannelPlacementGroup`](crate::operation::create_channel_placement_group::builders::CreateChannelPlacementGroupFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`cluster_id(impl Into<String>)`](crate::operation::create_channel_placement_group::builders::CreateChannelPlacementGroupFluentBuilder::cluster_id) / [`set_cluster_id(Option<String>)`](crate::operation::create_channel_placement_group::builders::CreateChannelPlacementGroupFluentBuilder::set_cluster_id):<br>required: **true**<br>The ID of the cluster.<br>
7 /// - [`name(impl Into<String>)`](crate::operation::create_channel_placement_group::builders::CreateChannelPlacementGroupFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::create_channel_placement_group::builders::CreateChannelPlacementGroupFluentBuilder::set_name):<br>required: **false**<br>Specify a name that is unique in the Cluster. You can't change the name. Names are case-sensitive.<br>
8 /// - [`nodes(impl Into<String>)`](crate::operation::create_channel_placement_group::builders::CreateChannelPlacementGroupFluentBuilder::nodes) / [`set_nodes(Option<Vec::<String>>)`](crate::operation::create_channel_placement_group::builders::CreateChannelPlacementGroupFluentBuilder::set_nodes):<br>required: **false**<br>An array of one ID for the Node that you want to associate with the ChannelPlacementGroup. (You can't associate more than one Node with the ChannelPlacementGroup.) The Node and the ChannelPlacementGroup must be in the same Cluster.<br>
9 /// - [`request_id(impl Into<String>)`](crate::operation::create_channel_placement_group::builders::CreateChannelPlacementGroupFluentBuilder::request_id) / [`set_request_id(Option<String>)`](crate::operation::create_channel_placement_group::builders::CreateChannelPlacementGroupFluentBuilder::set_request_id):<br>required: **false**<br>An ID that you assign to a create request. This ID ensures idempotency when creating resources. the request.<br>
10 /// - [`tags(impl Into<String>, impl Into<String>)`](crate::operation::create_channel_placement_group::builders::CreateChannelPlacementGroupFluentBuilder::tags) / [`set_tags(Option<HashMap::<String, String>>)`](crate::operation::create_channel_placement_group::builders::CreateChannelPlacementGroupFluentBuilder::set_tags):<br>required: **false**<br>A collection of key-value pairs.<br>
11 /// - On success, responds with [`CreateChannelPlacementGroupOutput`](crate::operation::create_channel_placement_group::CreateChannelPlacementGroupOutput) with field(s):
12 /// - [`arn(Option<String>)`](crate::operation::create_channel_placement_group::CreateChannelPlacementGroupOutput::arn): The ARN of this ChannelPlacementGroup. It is automatically assigned when the ChannelPlacementGroup is created.
13 /// - [`channels(Option<Vec::<String>>)`](crate::operation::create_channel_placement_group::CreateChannelPlacementGroupOutput::channels): Used in ListChannelPlacementGroupsResult
14 /// - [`cluster_id(Option<String>)`](crate::operation::create_channel_placement_group::CreateChannelPlacementGroupOutput::cluster_id): The ID of the Cluster that the Node belongs to.
15 /// - [`id(Option<String>)`](crate::operation::create_channel_placement_group::CreateChannelPlacementGroupOutput::id): The ID of the ChannelPlacementGroup. Unique in the AWS account. The ID is the resource-id portion of the ARN.
16 /// - [`name(Option<String>)`](crate::operation::create_channel_placement_group::CreateChannelPlacementGroupOutput::name): The name that you specified for the ChannelPlacementGroup.
17 /// - [`nodes(Option<Vec::<String>>)`](crate::operation::create_channel_placement_group::CreateChannelPlacementGroupOutput::nodes): An array with one item, which is the single Node that is associated with the ChannelPlacementGroup.
18 /// - [`state(Option<ChannelPlacementGroupState>)`](crate::operation::create_channel_placement_group::CreateChannelPlacementGroupOutput::state): The current state of the ChannelPlacementGroup.
19 /// - On failure, responds with [`SdkError<CreateChannelPlacementGroupError>`](crate::operation::create_channel_placement_group::CreateChannelPlacementGroupError)
20 pub fn create_channel_placement_group(
21 &self,
22 ) -> crate::operation::create_channel_placement_group::builders::CreateChannelPlacementGroupFluentBuilder {
23 crate::operation::create_channel_placement_group::builders::CreateChannelPlacementGroupFluentBuilder::new(self.handle.clone())
24 }
25}