pub struct DescribeComplianceByConfigRule { /* private fields */ }Expand description
Fluent builder constructing a request to DescribeComplianceByConfigRule.
Indicates whether the specified Config rules are compliant. If a rule is noncompliant, this action returns the number of Amazon Web Services resources that do not comply with the rule.
A rule is compliant if all of the evaluated resources comply with it. It is noncompliant if any of these resources do not comply.
If Config has no current evaluation results for the rule, it returns INSUFFICIENT_DATA. This result might indicate one of the following conditions:
-
Config has never invoked an evaluation for the rule. To check whether it has, use the
DescribeConfigRuleEvaluationStatusaction to get theLastSuccessfulInvocationTimeandLastFailedInvocationTime. -
The rule's Lambda function is failing to send evaluation results to Config. Verify that the role you assigned to your configuration recorder includes the
config:PutEvaluationspermission. If the rule is a custom rule, verify that the Lambda execution role includes theconfig:PutEvaluationspermission. -
The rule's Lambda function has returned
NOT_APPLICABLEfor all evaluation results. This can occur if the resources were deleted or removed from the rule's scope.
Implementations
sourceimpl DescribeComplianceByConfigRule
impl DescribeComplianceByConfigRule
sourcepub async fn send(
self
) -> Result<DescribeComplianceByConfigRuleOutput, SdkError<DescribeComplianceByConfigRuleError>>
pub async fn send(
self
) -> Result<DescribeComplianceByConfigRuleOutput, SdkError<DescribeComplianceByConfigRuleError>>
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 into_paginator(self) -> DescribeComplianceByConfigRulePaginator
pub fn into_paginator(self) -> DescribeComplianceByConfigRulePaginator
Create a paginator for this request
Paginators are used by calling send().await which returns a Stream.
sourcepub fn config_rule_names(self, input: impl Into<String>) -> Self
pub fn config_rule_names(self, input: impl Into<String>) -> Self
Appends an item to ConfigRuleNames.
To override the contents of this collection use set_config_rule_names.
Specify one or more Config rule names to filter the results by rule.
sourcepub fn set_config_rule_names(self, input: Option<Vec<String>>) -> Self
pub fn set_config_rule_names(self, input: Option<Vec<String>>) -> Self
Specify one or more Config rule names to filter the results by rule.
sourcepub fn compliance_types(self, input: ComplianceType) -> Self
pub fn compliance_types(self, input: ComplianceType) -> Self
Appends an item to ComplianceTypes.
To override the contents of this collection use set_compliance_types.
Filters the results by compliance.
The allowed values are COMPLIANT and NON_COMPLIANT.
sourcepub fn set_compliance_types(self, input: Option<Vec<ComplianceType>>) -> Self
pub fn set_compliance_types(self, input: Option<Vec<ComplianceType>>) -> Self
Filters the results by compliance.
The allowed values are COMPLIANT and NON_COMPLIANT.
sourcepub fn next_token(self, input: impl Into<String>) -> Self
pub fn next_token(self, input: impl Into<String>) -> Self
The nextToken string returned on a previous page that you use to get the next page of results in a paginated response.
sourcepub fn set_next_token(self, input: Option<String>) -> Self
pub fn set_next_token(self, input: Option<String>) -> Self
The nextToken string returned on a previous page that you use to get the next page of results in a paginated response.
Trait Implementations
sourceimpl Clone for DescribeComplianceByConfigRule
impl Clone for DescribeComplianceByConfigRule
sourcefn clone(&self) -> DescribeComplianceByConfigRule
fn clone(&self) -> DescribeComplianceByConfigRule
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
Auto Trait Implementations
impl !RefUnwindSafe for DescribeComplianceByConfigRule
impl Send for DescribeComplianceByConfigRule
impl Sync for DescribeComplianceByConfigRule
impl Unpin for DescribeComplianceByConfigRule
impl !UnwindSafe for DescribeComplianceByConfigRule
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more