openapi: 3.0.0
info:
version: '2014-11-12'
x-release: v4
title: 'AWS Config #X Amz Target=StarlingDoveService.BatchGetAggregateResourceConfig #X Amz Target=StarlingDoveService.BatchGetAggregateResourceConfig #X Amz Target=StarlingDoveService.DescribeConfigRules API'
description:
Config provides a way to keep track of the configurations of all the Amazon Web Services resources associated with your Amazon Web Services account. You can use Config to get the current and historical configurations of each Amazon Web Services resource and also to get information about the relationship between the resources. An Amazon Web Services resource can be an Amazon Compute Cloud (Amazon EC2) instance, an Elastic Block Store (EBS) volume, an elastic network Interface (ENI), or a security group. For a complete list of resources currently supported by Config, see Supported Amazon Web Services resources.
You can access and manage Config through the Amazon Web Services Management Console, the Amazon Web Services Command Line Interface (Amazon Web Services CLI), the Config API, or the Amazon Web Services SDKs for Config. This reference guide contains documentation for the Config API and the Amazon Web Services CLI commands that you can use to manage Config. The Config API uses the Signature Version 4 protocol for signing requests. For more information about how to sign a request with this protocol, see Signature Version 4 Signing Process. For detailed information about Config features and their associated actions or commands, as well as how to work with Amazon Web Services Management Console, see What Is Config in the Config Developer Guide.
x-logo: url: https://twitter.com/awscloud/profile_image?size=original backgroundColor: '#FFFFFF' termsOfService: https://aws.amazon.com/service-terms/ contact: name: Mike Ralphson email: mike.ralphson@gmail.com url: https://github.com/mermade/aws2openapi x-twitter: PermittedSoc license: name: Apache 2.0 License url: http://www.apache.org/licenses/ x-providerName: amazonaws.com x-serviceName: config x-origin: - contentType: application/json url: https://raw.githubusercontent.com/aws/aws-sdk-js/master/apis/config-2014-11-12.normal.json converter: url: https://github.com/mermade/aws2openapi version: 1.0.0 x-apisguru-driver: external x-apiClientRegistration: url: https://portal.aws.amazon.com/gp/aws/developer/registration/index.html?nc2=h_ct x-apisguru-categories: - cloud x-preferred: true servers: - url: http://config.{region}.amazonaws.com variables: region: description: The AWS region enum: - us-east-1 - us-east-2 - us-west-1 - us-west-2 - us-gov-west-1 - us-gov-east-1 - ca-central-1 - eu-north-1 - eu-west-1 - eu-west-2 - eu-west-3 - eu-central-1 - eu-south-1 - af-south-1 - ap-northeast-1 - ap-northeast-2 - ap-northeast-3 - ap-southeast-1 - ap-southeast-2 - ap-east-1 - ap-south-1 - sa-east-1 - me-south-1 default: us-east-1 description: The Config Service multi-region endpoint - url: https://config.{region}.amazonaws.com variables: region: description: The AWS region enum: - us-east-1 - us-east-2 - us-west-1 - us-west-2 - us-gov-west-1 - us-gov-east-1 - ca-central-1 - eu-north-1 - eu-west-1 - eu-west-2 - eu-west-3 - eu-central-1 - eu-south-1 - af-south-1 - ap-northeast-1 - ap-northeast-2 - ap-northeast-3 - ap-southeast-1 - ap-southeast-2 - ap-east-1 - ap-south-1 - sa-east-1 - me-south-1 default: us-east-1 description: The Config Service multi-region endpoint - url: http://config.{region}.amazonaws.com.cn variables: region: description: The AWS region enum: - cn-north-1 - cn-northwest-1 default: cn-north-1 description: The Config Service endpoint for China (Beijing) and China (Ningxia) - url: https://config.{region}.amazonaws.com.cn variables: region: description: The AWS region enum: - cn-north-1 - cn-northwest-1 default: cn-north-1 description: The Config Service endpoint for China (Beijing) and China (Ningxia) security: - hmac: [] tags: - name: '#X Amz Target=StarlingDoveService.DescribeConfigRules' paths: /#X-Amz-Target=StarlingDoveService.DescribeConfigRules: parameters: - $ref: '#/components/parameters/X-Amz-Content-Sha256' - $ref: '#/components/parameters/X-Amz-Date' - $ref: '#/components/parameters/X-Amz-Algorithm' - $ref: '#/components/parameters/X-Amz-Credential' - $ref: '#/components/parameters/X-Amz-Security-Token' - $ref: '#/components/parameters/X-Amz-Signature' - $ref: '#/components/parameters/X-Amz-SignedHeaders' post: operationId: DescribeConfigRules description: Returns details about your Config rules. responses: '200': description: Success content: application/json: schema: $ref: '#/components/schemas/DescribeConfigRulesResponse' examples: DescribeConfigRules200Example: summary: Default DescribeConfigRules 200 x-microcks-default: true value: ConfigRules: example NextToken: example '480': description: NoSuchConfigRuleException content: application/json: schema: $ref: '#/components/schemas/NoSuchConfigRuleException' examples: DescribeConfigRules480Example: summary: Default DescribeConfigRules 480 x-microcks-default: true value: example '481': description: InvalidNextTokenException content: application/json: schema: $ref: '#/components/schemas/InvalidNextTokenException' examples: DescribeConfigRules481Example: summary: Default DescribeConfigRules 481 x-microcks-default: true value: example '482': description: InvalidParameterValueException content: application/json: schema: $ref: '#/components/schemas/InvalidParameterValueException' examples: DescribeConfigRules482Example: summary: Default DescribeConfigRules 482 x-microcks-default: true value: example requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/DescribeConfigRulesRequest' parameters: - name: NextToken in: query schema: type: string description: Pagination token required: false - name: X-Amz-Target in: header required: true schema: type: string enum: - StarlingDoveService.DescribeConfigRules summary: Amazon Config Describe Config Rules x-microcks-operation: delay: 0 dispatcher: FALLBACK tags: - '#X Amz Target=StarlingDoveService.DescribeConfigRules' components: schemas: SourceDetail: type: object properties: EventSource: allOf: - $ref: '#/components/schemas/EventSource' - description: The source of the event, such as an Amazon Web Services service, that triggers Config to evaluate your Amazon Web Services resources. MessageType: allOf: - $ref: '#/components/schemas/MessageType' - description:The type of notification that triggers Config to run an evaluation for a rule. You can specify the following notification types:
ConfigurationItemChangeNotification - Triggers an evaluation when Config delivers a configuration item as a result of a resource change.
OversizedConfigurationItemChangeNotification - Triggers an evaluation when Config delivers an oversized configuration item. Config may generate this notification type when a resource changes and the notification exceeds the maximum size allowed by Amazon SNS.
ScheduledNotification - Triggers a periodic evaluation at the frequency specified for MaximumExecutionFrequency.
ConfigurationSnapshotDeliveryCompleted - Triggers a periodic evaluation when Config delivers a configuration snapshot.
If you want your custom rule to be triggered by configuration changes, specify two SourceDetail objects, one for ConfigurationItemChangeNotification and one for OversizedConfigurationItemChangeNotification.
The frequency at which you want Config to run evaluations for a custom rule with a periodic trigger. If you specify a value for MaximumExecutionFrequency, then MessageType must use the ScheduledNotification value.
By default, rules with a periodic trigger are evaluated every 24 hours. To change the frequency, specify a valid value for the MaximumExecutionFrequency parameter.
Based on the valid value you choose, Config runs evaluations once for each valid value. For example, if you choose Three_Hours, Config runs evaluations once every three hours. In this case, Three_Hours is the frequency of this rule.
SourceDetail only for custom rules. '
BaseResourceId:
type: string
minLength: 1
maxLength: 768
EmptiableStringWithCharLimit256:
type: string
minLength: 0
maxLength: 256
Source:
type: object
required:
- Owner
properties:
Owner:
allOf:
- $ref: '#/components/schemas/Owner'
- description: Indicates whether Amazon Web Services or the customer owns and manages the Config rule.
Config Managed Rules are predefined rules owned by Amazon Web Services. For more information, see Config Managed Rules in the Config developer guide.
Config Custom Rules are rules that you can develop either with Guard (CUSTOM_POLICY) or Lambda (CUSTOM_LAMBDA). For more information, see Config Custom Rules in the Config developer guide.
For Config Managed rules, a predefined identifier from a list. For example, IAM_PASSWORD_POLICY is a managed rule. To reference a managed rule, see List of Config Managed Rules.
For Config Custom Lambda rules, the identifier is the Amazon Resource Name (ARN) of the rule's Lambda function, such as arn:aws:lambda:us-east-2:123456789012:function:custom_rule_name.
For Config Custom Policy rules, this field will be ignored.
SourceDetails: allOf: - $ref: '#/components/schemas/SourceDetails' - description:Provides the source and the message types that cause Config to evaluate your Amazon Web Services resources against a rule. It also provides the frequency with which you want Config to run evaluations for the rule if the trigger type is periodic.
If the owner is set to CUSTOM_POLICY, the only acceptable values for the Config rule trigger message type are ConfigurationItemChangeNotification and OversizedConfigurationItemChangeNotification.
CUSTOM_POLICY.
description: Provides the CustomPolicyDetails, the rule owner (Amazon Web Services for managed rules, CUSTOM_POLICY for Custom Policy rules, and CUSTOM_LAMBDA for Custom Lambda rules), the rule identifier, and the events that cause the evaluation of your Amazon Web Services resources.
EvaluationModes:
type: array
items:
$ref: '#/components/schemas/EvaluationModeConfiguration'
ConfigRuleState:
type: string
enum:
- ACTIVE
- DELETING
- DELETING_RESULTS
- EVALUATING
StringWithCharLimit64:
type: string
minLength: 1
maxLength: 64
StringWithCharLimit256:
type: string
minLength: 1
maxLength: 256
MaximumExecutionFrequency:
type: string
enum:
- One_Hour
- Three_Hours
- Six_Hours
- Twelve_Hours
- TwentyFour_Hours
PolicyText:
type: string
minLength: 0
maxLength: 10000
StringWithCharLimit1024:
type: string
minLength: 1
maxLength: 1024
MessageType:
type: string
enum:
- ConfigurationItemChangeNotification
- ConfigurationSnapshotDeliveryCompleted
- ScheduledNotification
- OversizedConfigurationItemChangeNotification
PolicyRuntime:
type: string
pattern: guard\-2\.x\.x
minLength: 1
maxLength: 64
ConfigRule:
type: object
required:
- Source
properties:
ConfigRuleName:
allOf:
- $ref: '#/components/schemas/ConfigRuleName'
- description: The name that you assign to the Config rule. The name is required if you are adding a new rule.
ConfigRuleArn:
allOf:
- $ref: '#/components/schemas/StringWithCharLimit256'
- description: The Amazon Resource Name (ARN) of the Config rule.
ConfigRuleId:
allOf:
- $ref: '#/components/schemas/StringWithCharLimit64'
- description: The ID of the Config rule.
Description:
allOf:
- $ref: '#/components/schemas/EmptiableStringWithCharLimit256'
- description: The description that you provide for the Config rule.
Scope:
allOf:
- $ref: '#/components/schemas/Scope'
- description: Defines which resources can trigger an evaluation for the rule. The scope can include one or more resource types, a combination of one resource type and one resource ID, or a combination of a tag key and value. Specify a scope to constrain the resources that can trigger an evaluation for the rule. If you do not specify a scope, evaluations are triggered when any resource in the recording group changes.
The scope can be empty.
Amazon Web Services for managed rules, CUSTOM_POLICY for Custom Policy rules, and CUSTOM_LAMBDA for Custom Lambda rules), the rule identifier, and the notifications that cause the function to evaluate your Amazon Web Services resources.
InputParameters:
allOf:
- $ref: '#/components/schemas/StringWithCharLimit1024'
- description: A string, in JSON format, that is passed to the Config rule Lambda function.
MaximumExecutionFrequency:
allOf:
- $ref: '#/components/schemas/MaximumExecutionFrequency'
- description: The maximum frequency with which Config runs evaluations for a rule. You can specify a value for MaximumExecutionFrequency when:
This is for an Config managed rule that is triggered at a periodic frequency.
Your custom rule is triggered when Config delivers the configuration snapshot. For more information, see ConfigSnapshotDeliveryProperties.
By default, rules with a periodic trigger are evaluated every 24 hours. To change the frequency, specify a valid value for the MaximumExecutionFrequency parameter.
Indicates whether the Config rule is active or is currently being deleted by Config. It can also indicate the evaluation status for the Config rule.
Config sets the state of the rule to EVALUATING temporarily after you use the StartConfigRulesEvaluation request to evaluate your resources against the Config rule.
Config sets the state of the rule to DELETING_RESULTS temporarily after you use the DeleteEvaluationResults request to delete the current evaluation results for the Config rule.
Config temporarily sets the state of a rule to DELETING after you use the DeleteConfigRule request to delete the rule. After Config deletes the rule, the rule and all of its evaluations are erased and are no longer available.
Service principal name of the service that created the rule.
The field is populated only if the service-linked rule is created by a service. The field is empty if you create your own rule.
Config rules evaluate the configuration settings of your Amazon Web Services resources. A rule can run when Config detects a configuration change to an Amazon Web Services resource or at a periodic frequency that you choose (for example, every 24 hours). There are two types of rules: Config Managed Rules and Config Custom Rules.
Config Managed Rules are predefined, customizable rules created by Config. For a list of managed rules, see List of Config Managed Rules.
Config Custom Rules are rules that you create from scratch. There are two ways to create Config custom rules: with Lambda functions ( Lambda Developer Guide) and with Guard (Guard GitHub Repository), a policy-as-code language. Config custom rules created with Lambda are called Config Custom Lambda Rules and Config custom rules created with Guard are called Config Custom Policy Rules.
For more information about developing and using Config rules, see Evaluating Resource with Config Rules in the Config Developer Guide.
You can use the Amazon Web Services CLI and Amazon Web Services SDKs if you want to create a rule that triggers evaluations for your resources when Config delivers the configuration snapshot. For more information, see ConfigSnapshotDeliveryProperties.
false.
description: Provides the runtime system, policy definition, and whether debug logging enabled. You can specify the following CustomPolicyDetails parameter values only for Config Custom Policy rules.
Scope:
type: object
properties:
ComplianceResourceTypes:
allOf:
- $ref: '#/components/schemas/ComplianceResourceTypes'
- description: The resource types of only those Amazon Web Services resources that you want to trigger an evaluation for the rule. You can only specify one type if you also specify a resource ID for ComplianceResourceId.
TagKey:
allOf:
- $ref: '#/components/schemas/StringWithCharLimit128'
- description: The tag key that is applied to only those Amazon Web Services resources that you want to trigger an evaluation for the rule.
TagValue:
allOf:
- $ref: '#/components/schemas/StringWithCharLimit256'
- description: The tag value applied to only those Amazon Web Services resources that you want to trigger an evaluation for the rule. If you specify a value for TagValue, you must also specify a value for TagKey.
ComplianceResourceId:
allOf:
- $ref: '#/components/schemas/BaseResourceId'
- description: The ID of the only Amazon Web Services resource that you want to trigger an evaluation for the rule. If you specify a resource ID, you must specify one resource type for ComplianceResourceTypes.
description: Defines which resources trigger an evaluation for an Config rule. The scope can include one or more resource types, a combination of a tag key and value, or a combination of one resource type and one resource ID. Specify a scope to constrain which resources trigger an evaluation for a rule. Otherwise, evaluations for the rule are triggered when any resource in your recording group changes in configuration.
ConfigRules:
type: array
items:
$ref: '#/components/schemas/ConfigRule'
EvaluationModeConfiguration:
type: object
properties:
Mode:
allOf:
- $ref: '#/components/schemas/EvaluationMode'
- description: The mode of an evaluation. The valid values are Detective or Proactive.
description: The configuration object for Config rule evaluation mode. The Supported valid values are Detective or Proactive.
DescribeConfigRulesResponse:
type: object
properties:
ConfigRules:
allOf:
- $ref: '#/components/schemas/ConfigRules'
- description: The details about your Config rules.
NextToken:
allOf:
- $ref: '#/components/schemas/String'
- description: The string that you use in a subsequent request to get the next page of results in a paginated response.
description:
InvalidNextTokenException: {}
InvalidParameterValueException: {}
StringWithCharLimit128:
type: string
minLength: 1
maxLength: 128
ConfigRuleNames:
type: array
items:
$ref: '#/components/schemas/ConfigRuleName'
minItems: 0
maxItems: 25
ConfigRuleName:
type: string
pattern: .*\S.*
minLength: 1
maxLength: 128
DescribeConfigRulesFilters:
type: object
properties:
EvaluationMode:
allOf:
- $ref: '#/components/schemas/EvaluationMode'
- description: The mode of an evaluation. The valid values are Detective or Proactive.
description: Returns a filtered list of Detective or Proactive Config rules. By default, if the filter is not defined, this API returns an unfiltered list. For more information on Detective or Proactive Config rules, see Evaluation Mode in the Config Developer Guide.
SourceDetails:
type: array
items:
$ref: '#/components/schemas/SourceDetail'
minItems: 0
maxItems: 25
NoSuchConfigRuleException: {}
String:
type: string
DescribeConfigRulesRequest:
type: object
title: DescribeConfigRulesRequest
properties:
ConfigRuleNames:
allOf:
- $ref: '#/components/schemas/ConfigRuleNames'
- description: The names of the Config rules for which you want details. If you do not specify any names, Config returns details for all your rules.
NextToken:
allOf:
- $ref: '#/components/schemas/String'
- description: The nextToken string returned on a previous page that you use to get the next page of results in a paginated response.
Filters:
allOf:
- $ref: '#/components/schemas/DescribeConfigRulesFilters'
- description: Returns a list of Detective or Proactive Config rules. By default, this API returns an unfiltered list. For more information on Detective or Proactive Config rules, see Evaluation Mode in the Config Developer Guide.
description:
Boolean:
type: boolean
Owner:
type: string
enum:
- CUSTOM_LAMBDA
- AWS
- CUSTOM_POLICY
EventSource:
type: string
enum:
- aws.config
EvaluationMode:
type: string
enum:
- DETECTIVE
- PROACTIVE
parameters:
X-Amz-Content-Sha256:
name: X-Amz-Content-Sha256
in: header
schema:
type: string
required: false
X-Amz-Algorithm:
name: X-Amz-Algorithm
in: header
schema:
type: string
required: false
X-Amz-Credential:
name: X-Amz-Credential
in: header
schema:
type: string
required: false
X-Amz-Security-Token:
name: X-Amz-Security-Token
in: header
schema:
type: string
required: false
X-Amz-Signature:
name: X-Amz-Signature
in: header
schema:
type: string
required: false
X-Amz-SignedHeaders:
name: X-Amz-SignedHeaders
in: header
schema:
type: string
required: false
X-Amz-Date:
name: X-Amz-Date
in: header
schema:
type: string
required: false
securitySchemes:
hmac:
type: apiKey
name: Authorization
in: header
description: Amazon Signature authorization v4
x-amazon-apigateway-authtype: awsSigv4
externalDocs:
description: Amazon Web Services documentation
url: https://docs.aws.amazon.com/config/
x-hasEquivalentPaths: true