aws_sdk_mediapackagev2/client/
get_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 [`GetOriginEndpointPolicy`](crate::operation::get_origin_endpoint_policy::builders::GetOriginEndpointPolicyFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`channel_group_name(impl Into<String>)`](crate::operation::get_origin_endpoint_policy::builders::GetOriginEndpointPolicyFluentBuilder::channel_group_name) / [`set_channel_group_name(Option<String>)`](crate::operation::get_origin_endpoint_policy::builders::GetOriginEndpointPolicyFluentBuilder::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::get_origin_endpoint_policy::builders::GetOriginEndpointPolicyFluentBuilder::channel_name) / [`set_channel_name(Option<String>)`](crate::operation::get_origin_endpoint_policy::builders::GetOriginEndpointPolicyFluentBuilder::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::get_origin_endpoint_policy::builders::GetOriginEndpointPolicyFluentBuilder::origin_endpoint_name) / [`set_origin_endpoint_name(Option<String>)`](crate::operation::get_origin_endpoint_policy::builders::GetOriginEndpointPolicyFluentBuilder::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    /// - On success, responds with [`GetOriginEndpointPolicyOutput`](crate::operation::get_origin_endpoint_policy::GetOriginEndpointPolicyOutput) with field(s):
10    ///   - [`channel_group_name(String)`](crate::operation::get_origin_endpoint_policy::GetOriginEndpointPolicyOutput::channel_group_name): <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>
11    ///   - [`channel_name(String)`](crate::operation::get_origin_endpoint_policy::GetOriginEndpointPolicyOutput::channel_name): <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>
12    ///   - [`origin_endpoint_name(String)`](crate::operation::get_origin_endpoint_policy::GetOriginEndpointPolicyOutput::origin_endpoint_name): <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>
13    ///   - [`policy(String)`](crate::operation::get_origin_endpoint_policy::GetOriginEndpointPolicyOutput::policy): <p>The policy assigned to the origin endpoint.</p>
14    /// - On failure, responds with [`SdkError<GetOriginEndpointPolicyError>`](crate::operation::get_origin_endpoint_policy::GetOriginEndpointPolicyError)
15    pub fn get_origin_endpoint_policy(&self) -> crate::operation::get_origin_endpoint_policy::builders::GetOriginEndpointPolicyFluentBuilder {
16        crate::operation::get_origin_endpoint_policy::builders::GetOriginEndpointPolicyFluentBuilder::new(self.handle.clone())
17    }
18}