AWS Config
  1. Root
AWS Config
  • Root
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
  1. Root

/

POST
/
Saves a new query or updates an existing saved query. The QueryName must be unique for a single Amazon Web Services account and a single Amazon Web Services Region. You can create upto 300 queries in a single Amazon Web Services account and a single Amazon Web Services Region.
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/' \
--header 'X-Amz-Target;' \
--header 'Content-Type: application/json' \
--data-raw '{
    "StoredQuery": {
        "QueryId": "string",
        "QueryArn": "string",
        "QueryName": "string",
        "Description": "string",
        "Expression": "string"
    },
    "Tags": []
}'
Response Response Example
200 - Example 1
{
  "QueryArn": "string"
}

Request

Header Params
X-Amz-Target
string 
required
Body Params application/json
StoredQuery
object 
required
A list of StoredQuery objects. The mandatory fields are QueryName and Expression.
QueryId
string 
optional
The ID of the query.
>= 1 characters<= 36 characters
Match pattern:
^\S+$
QueryArn
string 
optional
Amazon Resource Name (ARN) of the query. For example, arn:partition:service:region:account-id:resource-type/resource-name/resource-id.
>= 1 characters<= 500 characters
Match pattern:
^arn:aws[a-z\-]*:config:[a-z\-\d]+:\d+:stored-query/[a-zA-Z0-9-_]+/query-[a-zA-Z\d-_/]+$
QueryName
string 
required
The name of the query.
>= 1 characters<= 64 characters
Match pattern:
^[a-zA-Z0-9-_]+$
Description
string 
optional
A unique description for the query.
>= 0 characters<= 256 characters
Match pattern:
[\s\S]*
Expression
string 
optional
The expression of the query. For example, SELECT resourceId, resourceType, supplementaryConfiguration.BucketVersioningConfiguration.status WHERE resourceType = 'AWS::S3::Bucket' AND supplementaryConfiguration.BucketVersioningConfiguration.status = 'Off'.
>= 1 characters<= 4096 characters
Match pattern:
[\s\S]*
Tags
array[object (Tag) {2}] 
optional
A list of Tags object.
>= 0 items<= 50 items
Key
string 
optional
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.
>= 1 characters<= 128 characters
Value
string 
optional
The optional part of a key-value pair that make up a tag. A value acts as a descriptor within a tag category (key).
>= 0 characters<= 256 characters
Examples

Responses

🟢200Success
application/json
Body
QueryArn
string 
optional
Amazon Resource Name (ARN) of the query. For example, arn:partition:service:region:account-id:resource-type/resource-name/resource-id.
>= 1 characters<= 500 characters
Match pattern:
^arn:aws[a-z\-]*:config:[a-z\-\d]+:\d+:stored-query/[a-zA-Z0-9-_]+/query-[a-zA-Z\d-_/]+$
🟠480ValidationException
🟠481TooManyTagsException
🟠482ResourceConcurrentModificationException
Modified at 2023-08-15 05:59:06
Previous
/
Next
/
Built with