Struct aws_sdk_cloudwatchlogs::operation::put_destination_policy::builders::PutDestinationPolicyInputBuilder
source · #[non_exhaustive]pub struct PutDestinationPolicyInputBuilder { /* private fields */ }
Expand description
A builder for PutDestinationPolicyInput
.
Implementations§
source§impl PutDestinationPolicyInputBuilder
impl PutDestinationPolicyInputBuilder
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.
This field is required.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.
This field is required.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.
sourcepub fn build(self) -> Result<PutDestinationPolicyInput, BuildError>
pub fn build(self) -> Result<PutDestinationPolicyInput, BuildError>
Consumes the builder and constructs a PutDestinationPolicyInput
.
source§impl PutDestinationPolicyInputBuilder
impl PutDestinationPolicyInputBuilder
sourcepub async fn send_with(
self,
client: &Client,
) -> Result<PutDestinationPolicyOutput, SdkError<PutDestinationPolicyError, HttpResponse>>
pub async fn send_with( self, client: &Client, ) -> Result<PutDestinationPolicyOutput, SdkError<PutDestinationPolicyError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for PutDestinationPolicyInputBuilder
impl Clone for PutDestinationPolicyInputBuilder
source§fn clone(&self) -> PutDestinationPolicyInputBuilder
fn clone(&self) -> PutDestinationPolicyInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for PutDestinationPolicyInputBuilder
impl Default for PutDestinationPolicyInputBuilder
source§fn default() -> PutDestinationPolicyInputBuilder
fn default() -> PutDestinationPolicyInputBuilder
source§impl PartialEq for PutDestinationPolicyInputBuilder
impl PartialEq for PutDestinationPolicyInputBuilder
source§fn eq(&self, other: &PutDestinationPolicyInputBuilder) -> bool
fn eq(&self, other: &PutDestinationPolicyInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for PutDestinationPolicyInputBuilder
Auto Trait Implementations§
impl Freeze for PutDestinationPolicyInputBuilder
impl RefUnwindSafe for PutDestinationPolicyInputBuilder
impl Send for PutDestinationPolicyInputBuilder
impl Sync for PutDestinationPolicyInputBuilder
impl Unpin for PutDestinationPolicyInputBuilder
impl UnwindSafe for PutDestinationPolicyInputBuilder
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