Struct aws_sdk_cloudwatchlogs::operation::describe_account_policies::builders::DescribeAccountPoliciesInputBuilder
source · #[non_exhaustive]pub struct DescribeAccountPoliciesInputBuilder { /* private fields */ }
Expand description
A builder for DescribeAccountPoliciesInput
.
Implementations§
source§impl DescribeAccountPoliciesInputBuilder
impl DescribeAccountPoliciesInputBuilder
sourcepub fn policy_type(self, input: PolicyType) -> Self
pub fn policy_type(self, input: PolicyType) -> Self
Use this parameter to limit the returned policies to only the policies that match the policy type that you specify.
This field is required.sourcepub fn set_policy_type(self, input: Option<PolicyType>) -> Self
pub fn set_policy_type(self, input: Option<PolicyType>) -> Self
Use this parameter to limit the returned policies to only the policies that match the policy type that you specify.
sourcepub fn get_policy_type(&self) -> &Option<PolicyType>
pub fn get_policy_type(&self) -> &Option<PolicyType>
Use this parameter to limit the returned policies to only the policies that match the policy type that you specify.
sourcepub fn policy_name(self, input: impl Into<String>) -> Self
pub fn policy_name(self, input: impl Into<String>) -> Self
Use this parameter to limit the returned policies to only the policy with the name that you specify.
sourcepub fn set_policy_name(self, input: Option<String>) -> Self
pub fn set_policy_name(self, input: Option<String>) -> Self
Use this parameter to limit the returned policies to only the policy with the name that you specify.
sourcepub fn get_policy_name(&self) -> &Option<String>
pub fn get_policy_name(&self) -> &Option<String>
Use this parameter to limit the returned policies to only the policy with the name that you specify.
sourcepub fn account_identifiers(self, input: impl Into<String>) -> Self
pub fn account_identifiers(self, input: impl Into<String>) -> Self
Appends an item to account_identifiers
.
To override the contents of this collection use set_account_identifiers
.
If you are using an account that is set up as a monitoring account for CloudWatch unified cross-account observability, you can use this to specify the account ID of a source account. If you do, the operation returns the account policy for the specified account. Currently, you can specify only one account ID in this parameter.
If you omit this parameter, only the policy in the current account is returned.
sourcepub fn set_account_identifiers(self, input: Option<Vec<String>>) -> Self
pub fn set_account_identifiers(self, input: Option<Vec<String>>) -> Self
If you are using an account that is set up as a monitoring account for CloudWatch unified cross-account observability, you can use this to specify the account ID of a source account. If you do, the operation returns the account policy for the specified account. Currently, you can specify only one account ID in this parameter.
If you omit this parameter, only the policy in the current account is returned.
sourcepub fn get_account_identifiers(&self) -> &Option<Vec<String>>
pub fn get_account_identifiers(&self) -> &Option<Vec<String>>
If you are using an account that is set up as a monitoring account for CloudWatch unified cross-account observability, you can use this to specify the account ID of a source account. If you do, the operation returns the account policy for the specified account. Currently, you can specify only one account ID in this parameter.
If you omit this parameter, only the policy in the current account is returned.
sourcepub fn build(self) -> Result<DescribeAccountPoliciesInput, BuildError>
pub fn build(self) -> Result<DescribeAccountPoliciesInput, BuildError>
Consumes the builder and constructs a DescribeAccountPoliciesInput
.
source§impl DescribeAccountPoliciesInputBuilder
impl DescribeAccountPoliciesInputBuilder
sourcepub async fn send_with(
self,
client: &Client,
) -> Result<DescribeAccountPoliciesOutput, SdkError<DescribeAccountPoliciesError, HttpResponse>>
pub async fn send_with( self, client: &Client, ) -> Result<DescribeAccountPoliciesOutput, SdkError<DescribeAccountPoliciesError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for DescribeAccountPoliciesInputBuilder
impl Clone for DescribeAccountPoliciesInputBuilder
source§fn clone(&self) -> DescribeAccountPoliciesInputBuilder
fn clone(&self) -> DescribeAccountPoliciesInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for DescribeAccountPoliciesInputBuilder
impl Default for DescribeAccountPoliciesInputBuilder
source§fn default() -> DescribeAccountPoliciesInputBuilder
fn default() -> DescribeAccountPoliciesInputBuilder
source§impl PartialEq for DescribeAccountPoliciesInputBuilder
impl PartialEq for DescribeAccountPoliciesInputBuilder
source§fn eq(&self, other: &DescribeAccountPoliciesInputBuilder) -> bool
fn eq(&self, other: &DescribeAccountPoliciesInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for DescribeAccountPoliciesInputBuilder
Auto Trait Implementations§
impl Freeze for DescribeAccountPoliciesInputBuilder
impl RefUnwindSafe for DescribeAccountPoliciesInputBuilder
impl Send for DescribeAccountPoliciesInputBuilder
impl Sync for DescribeAccountPoliciesInputBuilder
impl Unpin for DescribeAccountPoliciesInputBuilder
impl UnwindSafe for DescribeAccountPoliciesInputBuilder
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