libZSservicesZSamazonka-configZSamazonka-config
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.Config.DescribeComplianceByConfigRule

Description

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 DescribeConfigRuleEvaluationStatus action to get the LastSuccessfulInvocationTime and LastFailedInvocationTime.
  • 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:PutEvaluations permission. If the rule is a custom rule, verify that the Lambda execution role includes the config:PutEvaluations permission.
  • The rule's Lambda function has returned NOT_APPLICABLE for all evaluation results. This can occur if the resources were deleted or removed from the rule's scope.

This operation returns paginated results.

Synopsis

Creating a Request

data DescribeComplianceByConfigRule Source #

See: newDescribeComplianceByConfigRule smart constructor.

Constructors

DescribeComplianceByConfigRule' 

Fields

Instances

Instances details
Eq DescribeComplianceByConfigRule Source # 
Instance details

Defined in Amazonka.Config.DescribeComplianceByConfigRule

Read DescribeComplianceByConfigRule Source # 
Instance details

Defined in Amazonka.Config.DescribeComplianceByConfigRule

Show DescribeComplianceByConfigRule Source # 
Instance details

Defined in Amazonka.Config.DescribeComplianceByConfigRule

Generic DescribeComplianceByConfigRule Source # 
Instance details

Defined in Amazonka.Config.DescribeComplianceByConfigRule

Associated Types

type Rep DescribeComplianceByConfigRule :: Type -> Type #

NFData DescribeComplianceByConfigRule Source # 
Instance details

Defined in Amazonka.Config.DescribeComplianceByConfigRule

Hashable DescribeComplianceByConfigRule Source # 
Instance details

Defined in Amazonka.Config.DescribeComplianceByConfigRule

ToJSON DescribeComplianceByConfigRule Source # 
Instance details

Defined in Amazonka.Config.DescribeComplianceByConfigRule

AWSPager DescribeComplianceByConfigRule Source # 
Instance details

Defined in Amazonka.Config.DescribeComplianceByConfigRule

AWSRequest DescribeComplianceByConfigRule Source # 
Instance details

Defined in Amazonka.Config.DescribeComplianceByConfigRule

ToHeaders DescribeComplianceByConfigRule Source # 
Instance details

Defined in Amazonka.Config.DescribeComplianceByConfigRule

ToPath DescribeComplianceByConfigRule Source # 
Instance details

Defined in Amazonka.Config.DescribeComplianceByConfigRule

ToQuery DescribeComplianceByConfigRule Source # 
Instance details

Defined in Amazonka.Config.DescribeComplianceByConfigRule

type Rep DescribeComplianceByConfigRule Source # 
Instance details

Defined in Amazonka.Config.DescribeComplianceByConfigRule

type Rep DescribeComplianceByConfigRule = D1 ('MetaData "DescribeComplianceByConfigRule" "Amazonka.Config.DescribeComplianceByConfigRule" "libZSservicesZSamazonka-configZSamazonka-config" 'False) (C1 ('MetaCons "DescribeComplianceByConfigRule'" 'PrefixI 'True) (S1 ('MetaSel ('Just "configRuleNames") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])) :*: (S1 ('MetaSel ('Just "complianceTypes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [ComplianceType])) :*: S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))))
type AWSResponse DescribeComplianceByConfigRule Source # 
Instance details

Defined in Amazonka.Config.DescribeComplianceByConfigRule

newDescribeComplianceByConfigRule :: DescribeComplianceByConfigRule Source #

Create a value of DescribeComplianceByConfigRule with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:configRuleNames:DescribeComplianceByConfigRule', describeComplianceByConfigRule_configRuleNames - Specify one or more Config rule names to filter the results by rule.

$sel:complianceTypes:DescribeComplianceByConfigRule', describeComplianceByConfigRule_complianceTypes - Filters the results by compliance.

The allowed values are COMPLIANT and NON_COMPLIANT.

$sel:nextToken:DescribeComplianceByConfigRule', describeComplianceByConfigRule_nextToken - The nextToken string returned on a previous page that you use to get the next page of results in a paginated response.

Request Lenses

describeComplianceByConfigRule_configRuleNames :: Lens' DescribeComplianceByConfigRule (Maybe [Text]) Source #

Specify one or more Config rule names to filter the results by rule.

describeComplianceByConfigRule_complianceTypes :: Lens' DescribeComplianceByConfigRule (Maybe [ComplianceType]) Source #

Filters the results by compliance.

The allowed values are COMPLIANT and NON_COMPLIANT.

describeComplianceByConfigRule_nextToken :: Lens' DescribeComplianceByConfigRule (Maybe Text) Source #

The nextToken string returned on a previous page that you use to get the next page of results in a paginated response.

Destructuring the Response

data DescribeComplianceByConfigRuleResponse Source #

Constructors

DescribeComplianceByConfigRuleResponse' 

Fields

Instances

Instances details
Eq DescribeComplianceByConfigRuleResponse Source # 
Instance details

Defined in Amazonka.Config.DescribeComplianceByConfigRule

Read DescribeComplianceByConfigRuleResponse Source # 
Instance details

Defined in Amazonka.Config.DescribeComplianceByConfigRule

Show DescribeComplianceByConfigRuleResponse Source # 
Instance details

Defined in Amazonka.Config.DescribeComplianceByConfigRule

Generic DescribeComplianceByConfigRuleResponse Source # 
Instance details

Defined in Amazonka.Config.DescribeComplianceByConfigRule

NFData DescribeComplianceByConfigRuleResponse Source # 
Instance details

Defined in Amazonka.Config.DescribeComplianceByConfigRule

type Rep DescribeComplianceByConfigRuleResponse Source # 
Instance details

Defined in Amazonka.Config.DescribeComplianceByConfigRule

type Rep DescribeComplianceByConfigRuleResponse = D1 ('MetaData "DescribeComplianceByConfigRuleResponse" "Amazonka.Config.DescribeComplianceByConfigRule" "libZSservicesZSamazonka-configZSamazonka-config" 'False) (C1 ('MetaCons "DescribeComplianceByConfigRuleResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "complianceByConfigRules") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [ComplianceByConfigRule])) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newDescribeComplianceByConfigRuleResponse Source #

Create a value of DescribeComplianceByConfigRuleResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:complianceByConfigRules:DescribeComplianceByConfigRuleResponse', describeComplianceByConfigRuleResponse_complianceByConfigRules - Indicates whether each of the specified Config rules is compliant.

$sel:nextToken:DescribeComplianceByConfigRule', describeComplianceByConfigRuleResponse_nextToken - The string that you use in a subsequent request to get the next page of results in a paginated response.

$sel:httpStatus:DescribeComplianceByConfigRuleResponse', describeComplianceByConfigRuleResponse_httpStatus - The response's http status code.

Response Lenses

describeComplianceByConfigRuleResponse_nextToken :: Lens' DescribeComplianceByConfigRuleResponse (Maybe Text) Source #

The string that you use in a subsequent request to get the next page of results in a paginated response.