Struct aws_sdk_mediapackagev2::operation::put_origin_endpoint_policy::builders::PutOriginEndpointPolicyFluentBuilder
source · pub struct PutOriginEndpointPolicyFluentBuilder { /* private fields */ }Expand description
Fluent builder constructing a request to PutOriginEndpointPolicy.
Attaches an IAM policy to the specified origin endpoint. You can attach only one policy with each request.
Implementations§
source§impl PutOriginEndpointPolicyFluentBuilder
impl PutOriginEndpointPolicyFluentBuilder
sourcepub fn as_input(&self) -> &PutOriginEndpointPolicyInputBuilder
pub fn as_input(&self) -> &PutOriginEndpointPolicyInputBuilder
Access the PutOriginEndpointPolicy as a reference.
sourcepub async fn send(
self
) -> Result<PutOriginEndpointPolicyOutput, SdkError<PutOriginEndpointPolicyError, HttpResponse>>
pub async fn send( self ) -> Result<PutOriginEndpointPolicyOutput, SdkError<PutOriginEndpointPolicyError, HttpResponse>>
Sends the request and returns the response.
If an error occurs, an SdkError will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn customize(
self
) -> CustomizableOperation<PutOriginEndpointPolicyOutput, PutOriginEndpointPolicyError, Self>
pub fn customize( self ) -> CustomizableOperation<PutOriginEndpointPolicyOutput, PutOriginEndpointPolicyError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn channel_group_name(self, input: impl Into<String>) -> Self
pub fn channel_group_name(self, input: impl Into<String>) -> Self
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.
sourcepub fn set_channel_group_name(self, input: Option<String>) -> Self
pub fn set_channel_group_name(self, input: Option<String>) -> Self
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.
sourcepub fn get_channel_group_name(&self) -> &Option<String>
pub fn get_channel_group_name(&self) -> &Option<String>
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.
sourcepub fn channel_name(self, input: impl Into<String>) -> Self
pub fn channel_name(self, input: impl Into<String>) -> Self
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.
sourcepub fn set_channel_name(self, input: Option<String>) -> Self
pub fn set_channel_name(self, input: Option<String>) -> Self
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.
sourcepub fn get_channel_name(&self) -> &Option<String>
pub fn get_channel_name(&self) -> &Option<String>
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.
sourcepub fn origin_endpoint_name(self, input: impl Into<String>) -> Self
pub fn origin_endpoint_name(self, input: impl Into<String>) -> Self
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.
sourcepub fn set_origin_endpoint_name(self, input: Option<String>) -> Self
pub fn set_origin_endpoint_name(self, input: Option<String>) -> Self
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.
sourcepub fn get_origin_endpoint_name(&self) -> &Option<String>
pub fn get_origin_endpoint_name(&self) -> &Option<String>
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.
sourcepub fn policy(self, input: impl Into<String>) -> Self
pub fn policy(self, input: impl Into<String>) -> Self
The policy to attach to the specified origin endpoint.
sourcepub fn set_policy(self, input: Option<String>) -> Self
pub fn set_policy(self, input: Option<String>) -> Self
The policy to attach to the specified origin endpoint.
sourcepub fn get_policy(&self) -> &Option<String>
pub fn get_policy(&self) -> &Option<String>
The policy to attach to the specified origin endpoint.
Trait Implementations§
source§impl Clone for PutOriginEndpointPolicyFluentBuilder
impl Clone for PutOriginEndpointPolicyFluentBuilder
source§fn clone(&self) -> PutOriginEndpointPolicyFluentBuilder
fn clone(&self) -> PutOriginEndpointPolicyFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for PutOriginEndpointPolicyFluentBuilder
impl !RefUnwindSafe for PutOriginEndpointPolicyFluentBuilder
impl Send for PutOriginEndpointPolicyFluentBuilder
impl Sync for PutOriginEndpointPolicyFluentBuilder
impl Unpin for PutOriginEndpointPolicyFluentBuilder
impl !UnwindSafe for PutOriginEndpointPolicyFluentBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more