AWS Fundamentals Logo
AWS Fundamentals
AWS::Config::StoredQuery

Config StoredQuery

Resource Type definition for AWS::Config::StoredQuery

Properties

4 configurable properties. 2 required. Click a row to see details.

Filter:
PropertyTypeFlags
QueryExpression
string
Required
QueryName
string
RequiredCreate-only
QueryDescription
string
Tags
Array<Tag>

Return Values

Values returned after the resource is created. Access these with Fn::GetAtt.

AttributeTypeDescription
QueryArnstring-
QueryIdstring-

Sample CloudFormation Template

A minimal template with required properties and common optional ones.

template.yaml
AWSTemplateFormatVersion: "2010-09-09"
Description: Sample template for AWS::Config::StoredQuery

Resources:
  MyResource:
    Type: AWS::Config::StoredQuery
    Properties:
      QueryName: "my-queryname"
      QueryExpression: "value"
      Tags:
        - Key: Environment
          Value: Production

Required IAM Permissions

Permissions CloudFormation needs in your IAM role to manage this resource.

create

config:PutStoredQueryconfig:GetStoredQueryconfig:TagResource

read

config:GetStoredQueryconfig:ListTagsForResource

update

config:PutStoredQueryconfig:GetStoredQueryconfig:TagResourceconfig:UntagResourceconfig:ListTagsForResource

delete

config:DeleteStoredQueryconfig:UntagResource

list

config:ListStoredQueries

Learn AWS the Practical Way

Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.

Subscribe to Newsletter

Quick Facts

ServiceConfig
Properties6
Required2
TaggingSupported
Primary IDQueryName

Supported Operations

CreateReadUpdateDeleteList

Immutable After Creation

These properties cannot be changed after the resource is created. Updating them triggers a replacement.

QueryName

External Links