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.PutConfigRule API' description: Config

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.PutConfigRule' paths: /#X-Amz-Target=StarlingDoveService.PutConfigRule: 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: PutConfigRule description: '

Adds or updates an Config rule to evaluate if your Amazon Web Services resources comply with your desired configurations. For information on how many Config rules you can have per account, see Service Limits in the Config Developer Guide.

There are two types of rules: Config Managed Rules and Config Custom Rules. You can use PutConfigRule to create both 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. If you are adding an Config managed rule, you must specify the rule''s identifier for the SourceIdentifier key.

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.

If you are adding a new Config Custom Lambda rule, you first need to create an Lambda function that the rule invokes to evaluate your resources. When you use PutConfigRule to add a Custom Lambda rule to Config, you must specify the Amazon Resource Name (ARN) that Lambda assigns to the function. You specify the ARN in the SourceIdentifier key. This key is part of the Source object, which is part of the ConfigRule object.

For any new Config rule that you add, specify the ConfigRuleName in the ConfigRule object. Do not specify the ConfigRuleArn or the ConfigRuleId. These values are generated by Config for new rules.

If you are updating a rule that you added previously, you can specify the rule by ConfigRuleName, ConfigRuleId, or ConfigRuleArn in the ConfigRule data type that you use in this request.

For more information about developing and using Config rules, see Evaluating Resources with Config Rules in the Config Developer Guide.

PutConfigRule is an idempotent API. Subsequent requests won’t create a duplicate resource if one was already created. If a following request has different tags values, Config will ignore these differences and treat it as an idempotent request of the previous. In this case, tags will not be updated, even if they are different.

' responses: '200': description: Success '480': description: InvalidParameterValueException content: application/json: schema: $ref: '#/components/schemas/InvalidParameterValueException' examples: PutConfigRule480Example: summary: Default PutConfigRule 480 x-microcks-default: true value: example '481': description: MaxNumberOfConfigRulesExceededException content: application/json: schema: $ref: '#/components/schemas/MaxNumberOfConfigRulesExceededException' examples: PutConfigRule481Example: summary: Default PutConfigRule 481 x-microcks-default: true value: example '482': description: ResourceInUseException content: application/json: schema: $ref: '#/components/schemas/ResourceInUseException' examples: PutConfigRule482Example: summary: Default PutConfigRule 482 x-microcks-default: true value: example '483': description: InsufficientPermissionsException content: application/json: schema: $ref: '#/components/schemas/InsufficientPermissionsException' examples: PutConfigRule483Example: summary: Default PutConfigRule 483 x-microcks-default: true value: example '484': description: NoAvailableConfigurationRecorderException content: application/json: schema: $ref: '#/components/schemas/NoAvailableConfigurationRecorderException' examples: PutConfigRule484Example: summary: Default PutConfigRule 484 x-microcks-default: true value: example requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/PutConfigRuleRequest' parameters: - name: X-Amz-Target in: header required: true schema: type: string enum: - StarlingDoveService.PutConfigRule summary: Amazon Config Put Config Rule x-microcks-operation: delay: 0 dispatcher: FALLBACK tags: - '#X Amz Target=StarlingDoveService.PutConfigRule' 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:

If you want your custom rule to be triggered by configuration changes, specify two SourceDetail objects, one for ConfigurationItemChangeNotification and one for OversizedConfigurationItemChangeNotification.

MaximumExecutionFrequency: allOf: - $ref: '#/components/schemas/MaximumExecutionFrequency' - description:

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.

description: 'Provides the source and the message types that trigger 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. You can specify the parameter values for 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.

SourceIdentifier: allOf: - $ref: '#/components/schemas/StringWithCharLimit256' - description:

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.

CustomPolicyDetails: allOf: - $ref: '#/components/schemas/CustomPolicyDetails' - description: Provides the runtime system, policy definition, and whether debug logging is enabled. Required when owner is set to 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' Tag: type: object properties: Key: allOf: - $ref: '#/components/schemas/TagKey' - description: One part of a key-value pair that make up a tag. A key is a general label that acts like a category for more specific tag values. Value: allOf: - $ref: '#/components/schemas/TagValue' - description: The optional part of a key-value pair that make up a tag. A value acts as a descriptor within a tag category (key). description: The tags for the resource. The metadata that you apply to a resource to help you categorize and organize them. Each tag consists of a key and an optional value, both of which you define. Tag keys can have a maximum character length of 128 characters, and tag values can have a maximum length of 256 characters. ResourceInUseException: {} ConfigRuleState: type: string enum: - ACTIVE - DELETING - DELETING_RESULTS - EVALUATING StringWithCharLimit64: type: string minLength: 1 maxLength: 64 StringWithCharLimit256: type: string minLength: 1 maxLength: 256 MaxNumberOfConfigRulesExceededException: {} 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 NoAvailableConfigurationRecorderException: {} 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.

Source: allOf: - $ref: '#/components/schemas/Source' - description: Provides 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 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:

By default, rules with a periodic trigger are evaluated every 24 hours. To change the frequency, specify a valid value for the MaximumExecutionFrequency parameter.

ConfigRuleState: allOf: - $ref: '#/components/schemas/ConfigRuleState' - description:

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.

CreatedBy: allOf: - $ref: '#/components/schemas/StringWithCharLimit256' - description:

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.

EvaluationModes: allOf: - $ref: '#/components/schemas/EvaluationModes' - description: The modes the Config rule can be evaluated in. The valid values are distinct objects. By default, the value is Detective evaluation mode only. description: '

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.

' ComplianceResourceTypes: type: array items: $ref: '#/components/schemas/StringWithCharLimit256' minItems: 0 maxItems: 100 CustomPolicyDetails: type: object required: - PolicyRuntime - PolicyText properties: PolicyRuntime: allOf: - $ref: '#/components/schemas/PolicyRuntime' - description: The runtime system for your Config Custom Policy rule. Guard is a policy-as-code language that allows you to write policies that are enforced by Config Custom Policy rules. For more information about Guard, see the Guard GitHub Repository. PolicyText: allOf: - $ref: '#/components/schemas/PolicyText' - description: The policy definition containing the logic for your Config Custom Policy rule. EnableDebugLogDelivery: allOf: - $ref: '#/components/schemas/Boolean' - description: The boolean expression for enabling debug logging for your Config Custom Policy rule. The default value is 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. TagValue: type: string minLength: 0 maxLength: 256 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. TagsList: type: array items: $ref: '#/components/schemas/Tag' minItems: 0 maxItems: 50 InsufficientPermissionsException: {} 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. TagKey: type: string minLength: 1 maxLength: 128 InvalidParameterValueException: {} StringWithCharLimit128: type: string minLength: 1 maxLength: 128 PutConfigRuleRequest: type: object required: - ConfigRule title: PutConfigRuleRequest properties: ConfigRule: allOf: - $ref: '#/components/schemas/ConfigRule' - description: The rule that you want to add to your account. Tags: allOf: - $ref: '#/components/schemas/TagsList' - description: An array of tag object. ConfigRuleName: type: string pattern: .*\S.* minLength: 1 maxLength: 128 SourceDetails: type: array items: $ref: '#/components/schemas/SourceDetail' minItems: 0 maxItems: 25 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-Date: name: X-Amz-Date in: header schema: type: string required: false X-Amz-SignedHeaders: name: X-Amz-SignedHeaders 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