AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
Get-CFGComplianceByConfigRule-ComplianceType <String[]>-ConfigRuleName <String[]>-NextToken <String>-Select <String>-NoAutoIteration <SwitchParameter>
INSUFFICIENT_DATA
. This result might indicate one of the following conditions: DescribeConfigRuleEvaluationStatus
action to get the LastSuccessfulInvocationTime
and LastFailedInvocationTime
. config:PutEvaluations
permission. If the rule is a custom rule, verify that the AWS Lambda execution role includes the config:PutEvaluations
permission. NOT_APPLICABLE
for all evaluation results. This can occur if the resources were deleted or removed from the rule's scope. COMPLIANT
and NON_COMPLIANT
. Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | ComplianceTypes |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | ConfigRuleNames |
nextToken
string returned on a previous page that you use to get the next page of results in a paginated response.Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | AK |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByValue, ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByValue, ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | AWSProfilesLocation, ProfilesLocation |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | StoredCredentials, AWSProfileName |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | RegionToCall |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | SK, SecretAccessKey |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | ST |
(Get-CFGComplianceByConfigRule -ConfigRuleName ebs-optimized-instance).Compliance
ComplianceContributorCount ComplianceType
-------------------------- --------------
INSUFFICIENT_DATAThis example retrieves compliances details for the rule ebs-optimized-instance, for which there is no current evaluation results for the rule, hence it returns INSUFFICIENT_DATA
(Get-CFGComplianceByConfigRule -ConfigRuleName ALB_HTTP_TO_HTTPS_REDIRECTION_CHECK -ComplianceType NON_COMPLIANT).Compliance.ComplianceContributorCount
CapExceeded CappedCount
----------- -----------
False 2This example returns the number of non-compliant resources for the rule ALB_HTTP_TO_HTTPS_REDIRECTION_CHECK.
AWS Tools for PowerShell: 2.x.y.z