Struct aws_sdk_cloudwatchlogs::operation::put_destination_policy::builders::PutDestinationPolicyFluentBuilder
source · pub struct PutDestinationPolicyFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to PutDestinationPolicy
.
Creates or updates an access policy associated with an existing destination. An access policy is an IAM policy document that is used to authorize claims to register a subscription filter against a given destination.
Implementations§
source§impl PutDestinationPolicyFluentBuilder
impl PutDestinationPolicyFluentBuilder
sourcepub fn as_input(&self) -> &PutDestinationPolicyInputBuilder
pub fn as_input(&self) -> &PutDestinationPolicyInputBuilder
Access the PutDestinationPolicy as a reference.
sourcepub async fn send(
self,
) -> Result<PutDestinationPolicyOutput, SdkError<PutDestinationPolicyError, HttpResponse>>
pub async fn send( self, ) -> Result<PutDestinationPolicyOutput, SdkError<PutDestinationPolicyError, 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<PutDestinationPolicyOutput, PutDestinationPolicyError, Self>
pub fn customize( self, ) -> CustomizableOperation<PutDestinationPolicyOutput, PutDestinationPolicyError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn destination_name(self, input: impl Into<String>) -> Self
pub fn destination_name(self, input: impl Into<String>) -> Self
A name for an existing destination.
sourcepub fn set_destination_name(self, input: Option<String>) -> Self
pub fn set_destination_name(self, input: Option<String>) -> Self
A name for an existing destination.
sourcepub fn get_destination_name(&self) -> &Option<String>
pub fn get_destination_name(&self) -> &Option<String>
A name for an existing destination.
sourcepub fn access_policy(self, input: impl Into<String>) -> Self
pub fn access_policy(self, input: impl Into<String>) -> Self
An IAM policy document that authorizes cross-account users to deliver their log events to the associated destination. This can be up to 5120 bytes.
sourcepub fn set_access_policy(self, input: Option<String>) -> Self
pub fn set_access_policy(self, input: Option<String>) -> Self
An IAM policy document that authorizes cross-account users to deliver their log events to the associated destination. This can be up to 5120 bytes.
sourcepub fn get_access_policy(&self) -> &Option<String>
pub fn get_access_policy(&self) -> &Option<String>
An IAM policy document that authorizes cross-account users to deliver their log events to the associated destination. This can be up to 5120 bytes.
sourcepub fn force_update(self, input: bool) -> Self
pub fn force_update(self, input: bool) -> Self
Specify true if you are updating an existing destination policy to grant permission to an organization ID instead of granting permission to individual Amazon Web Services accounts. Before you update a destination policy this way, you must first update the subscription filters in the accounts that send logs to this destination. If you do not, the subscription filters might stop working. By specifying true
for forceUpdate
, you are affirming that you have already updated the subscription filters. For more information, see Updating an existing cross-account subscription
If you omit this parameter, the default of false
is used.
sourcepub fn set_force_update(self, input: Option<bool>) -> Self
pub fn set_force_update(self, input: Option<bool>) -> Self
Specify true if you are updating an existing destination policy to grant permission to an organization ID instead of granting permission to individual Amazon Web Services accounts. Before you update a destination policy this way, you must first update the subscription filters in the accounts that send logs to this destination. If you do not, the subscription filters might stop working. By specifying true
for forceUpdate
, you are affirming that you have already updated the subscription filters. For more information, see Updating an existing cross-account subscription
If you omit this parameter, the default of false
is used.
sourcepub fn get_force_update(&self) -> &Option<bool>
pub fn get_force_update(&self) -> &Option<bool>
Specify true if you are updating an existing destination policy to grant permission to an organization ID instead of granting permission to individual Amazon Web Services accounts. Before you update a destination policy this way, you must first update the subscription filters in the accounts that send logs to this destination. If you do not, the subscription filters might stop working. By specifying true
for forceUpdate
, you are affirming that you have already updated the subscription filters. For more information, see Updating an existing cross-account subscription
If you omit this parameter, the default of false
is used.
Trait Implementations§
source§impl Clone for PutDestinationPolicyFluentBuilder
impl Clone for PutDestinationPolicyFluentBuilder
source§fn clone(&self) -> PutDestinationPolicyFluentBuilder
fn clone(&self) -> PutDestinationPolicyFluentBuilder
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 PutDestinationPolicyFluentBuilder
impl !RefUnwindSafe for PutDestinationPolicyFluentBuilder
impl Send for PutDestinationPolicyFluentBuilder
impl Sync for PutDestinationPolicyFluentBuilder
impl Unpin for PutDestinationPolicyFluentBuilder
impl !UnwindSafe for PutDestinationPolicyFluentBuilder
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