Struct aws_sdk_mediapackagev2::operation::put_channel_policy::builders::PutChannelPolicyFluentBuilder
source · pub struct PutChannelPolicyFluentBuilder { /* private fields */ }Expand description
Fluent builder constructing a request to PutChannelPolicy.
Attaches an IAM policy to the specified channel. With policies, you can specify who has access to AWS resources and what actions they can perform on those resources. You can attach only one policy with each request.
Implementations§
source§impl PutChannelPolicyFluentBuilder
impl PutChannelPolicyFluentBuilder
sourcepub fn as_input(&self) -> &PutChannelPolicyInputBuilder
pub fn as_input(&self) -> &PutChannelPolicyInputBuilder
Access the PutChannelPolicy as a reference.
sourcepub async fn send(
self
) -> Result<PutChannelPolicyOutput, SdkError<PutChannelPolicyError, HttpResponse>>
pub async fn send( self ) -> Result<PutChannelPolicyOutput, SdkError<PutChannelPolicyError, 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<PutChannelPolicyOutput, PutChannelPolicyError, Self>
pub fn customize( self ) -> CustomizableOperation<PutChannelPolicyOutput, PutChannelPolicyError, 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 policy(self, input: impl Into<String>) -> Self
pub fn policy(self, input: impl Into<String>) -> Self
The policy to attach to the specified channel.
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 channel.
sourcepub fn get_policy(&self) -> &Option<String>
pub fn get_policy(&self) -> &Option<String>
The policy to attach to the specified channel.
Trait Implementations§
source§impl Clone for PutChannelPolicyFluentBuilder
impl Clone for PutChannelPolicyFluentBuilder
source§fn clone(&self) -> PutChannelPolicyFluentBuilder
fn clone(&self) -> PutChannelPolicyFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more