aws_sdk_mediapackagev2/client/put_origin_endpoint_policy.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 [`PutOriginEndpointPolicy`](crate::operation::put_origin_endpoint_policy::builders::PutOriginEndpointPolicyFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`channel_group_name(impl Into<String>)`](crate::operation::put_origin_endpoint_policy::builders::PutOriginEndpointPolicyFluentBuilder::channel_group_name) / [`set_channel_group_name(Option<String>)`](crate::operation::put_origin_endpoint_policy::builders::PutOriginEndpointPolicyFluentBuilder::set_channel_group_name):<br>required: **true**<br><p>The name that describes the channel group. The name is the primary identifier for the channel group, and must be unique for your account in the AWS Region.</p><br>
7 /// - [`channel_name(impl Into<String>)`](crate::operation::put_origin_endpoint_policy::builders::PutOriginEndpointPolicyFluentBuilder::channel_name) / [`set_channel_name(Option<String>)`](crate::operation::put_origin_endpoint_policy::builders::PutOriginEndpointPolicyFluentBuilder::set_channel_name):<br>required: **true**<br><p>The name that describes the channel. The name is the primary identifier for the channel, and must be unique for your account in the AWS Region and channel group.</p><br>
8 /// - [`origin_endpoint_name(impl Into<String>)`](crate::operation::put_origin_endpoint_policy::builders::PutOriginEndpointPolicyFluentBuilder::origin_endpoint_name) / [`set_origin_endpoint_name(Option<String>)`](crate::operation::put_origin_endpoint_policy::builders::PutOriginEndpointPolicyFluentBuilder::set_origin_endpoint_name):<br>required: **true**<br><p>The name that describes the origin endpoint. The name is the primary identifier for the origin endpoint, and and must be unique for your account in the AWS Region and channel.</p><br>
9 /// - [`policy(impl Into<String>)`](crate::operation::put_origin_endpoint_policy::builders::PutOriginEndpointPolicyFluentBuilder::policy) / [`set_policy(Option<String>)`](crate::operation::put_origin_endpoint_policy::builders::PutOriginEndpointPolicyFluentBuilder::set_policy):<br>required: **true**<br><p>The policy to attach to the specified origin endpoint.</p><br>
10 /// - On success, responds with [`PutOriginEndpointPolicyOutput`](crate::operation::put_origin_endpoint_policy::PutOriginEndpointPolicyOutput)
11 /// - On failure, responds with [`SdkError<PutOriginEndpointPolicyError>`](crate::operation::put_origin_endpoint_policy::PutOriginEndpointPolicyError)
12 pub fn put_origin_endpoint_policy(&self) -> crate::operation::put_origin_endpoint_policy::builders::PutOriginEndpointPolicyFluentBuilder {
13 crate::operation::put_origin_endpoint_policy::builders::PutOriginEndpointPolicyFluentBuilder::new(self.handle.clone())
14 }
15}