1. Packages
  2. AWS Cloud Control
  3. API Docs
  4. configuration
  5. getStoredQuery

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.27.0 published on Monday, Apr 14, 2025 by Pulumi

aws-native.configuration.getStoredQuery

Explore with Pulumi AI

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.27.0 published on Monday, Apr 14, 2025 by Pulumi

Resource Type definition for AWS::Config::StoredQuery

Using getStoredQuery

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getStoredQuery(args: GetStoredQueryArgs, opts?: InvokeOptions): Promise<GetStoredQueryResult>
function getStoredQueryOutput(args: GetStoredQueryOutputArgs, opts?: InvokeOptions): Output<GetStoredQueryResult>
Copy
def get_stored_query(query_name: Optional[str] = None,
                     opts: Optional[InvokeOptions] = None) -> GetStoredQueryResult
def get_stored_query_output(query_name: Optional[pulumi.Input[str]] = None,
                     opts: Optional[InvokeOptions] = None) -> Output[GetStoredQueryResult]
Copy
func LookupStoredQuery(ctx *Context, args *LookupStoredQueryArgs, opts ...InvokeOption) (*LookupStoredQueryResult, error)
func LookupStoredQueryOutput(ctx *Context, args *LookupStoredQueryOutputArgs, opts ...InvokeOption) LookupStoredQueryResultOutput
Copy

> Note: This function is named LookupStoredQuery in the Go SDK.

public static class GetStoredQuery 
{
    public static Task<GetStoredQueryResult> InvokeAsync(GetStoredQueryArgs args, InvokeOptions? opts = null)
    public static Output<GetStoredQueryResult> Invoke(GetStoredQueryInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetStoredQueryResult> getStoredQuery(GetStoredQueryArgs args, InvokeOptions options)
public static Output<GetStoredQueryResult> getStoredQuery(GetStoredQueryArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: aws-native:configuration:getStoredQuery
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

QueryName This property is required. string
The name of the query.
QueryName This property is required. string
The name of the query.
queryName This property is required. String
The name of the query.
queryName This property is required. string
The name of the query.
query_name This property is required. str
The name of the query.
queryName This property is required. String
The name of the query.

getStoredQuery Result

The following output properties are available:

QueryArn string
Amazon Resource Name (ARN) of the query. For example, arn:partition:service:region:account-id:resource-type/resource-name/resource-id.
QueryDescription string
A unique description for the query.
QueryExpression string
The expression of the query. For example, SELECT resourceId, resourceType, supplementaryConfiguration.BucketVersioningConfiguration.status WHERE resourceType = 'AWS::S3::Bucket' AND supplementaryConfiguration.BucketVersioningConfiguration.status = 'Off'.
QueryId string
The ID of the query.
Tags List<Pulumi.AwsNative.Outputs.Tag>
The tags for the stored query.
QueryArn string
Amazon Resource Name (ARN) of the query. For example, arn:partition:service:region:account-id:resource-type/resource-name/resource-id.
QueryDescription string
A unique description for the query.
QueryExpression string
The expression of the query. For example, SELECT resourceId, resourceType, supplementaryConfiguration.BucketVersioningConfiguration.status WHERE resourceType = 'AWS::S3::Bucket' AND supplementaryConfiguration.BucketVersioningConfiguration.status = 'Off'.
QueryId string
The ID of the query.
Tags Tag
The tags for the stored query.
queryArn String
Amazon Resource Name (ARN) of the query. For example, arn:partition:service:region:account-id:resource-type/resource-name/resource-id.
queryDescription String
A unique description for the query.
queryExpression String
The expression of the query. For example, SELECT resourceId, resourceType, supplementaryConfiguration.BucketVersioningConfiguration.status WHERE resourceType = 'AWS::S3::Bucket' AND supplementaryConfiguration.BucketVersioningConfiguration.status = 'Off'.
queryId String
The ID of the query.
tags List<Tag>
The tags for the stored query.
queryArn string
Amazon Resource Name (ARN) of the query. For example, arn:partition:service:region:account-id:resource-type/resource-name/resource-id.
queryDescription string
A unique description for the query.
queryExpression string
The expression of the query. For example, SELECT resourceId, resourceType, supplementaryConfiguration.BucketVersioningConfiguration.status WHERE resourceType = 'AWS::S3::Bucket' AND supplementaryConfiguration.BucketVersioningConfiguration.status = 'Off'.
queryId string
The ID of the query.
tags Tag[]
The tags for the stored query.
query_arn str
Amazon Resource Name (ARN) of the query. For example, arn:partition:service:region:account-id:resource-type/resource-name/resource-id.
query_description str
A unique description for the query.
query_expression str
The expression of the query. For example, SELECT resourceId, resourceType, supplementaryConfiguration.BucketVersioningConfiguration.status WHERE resourceType = 'AWS::S3::Bucket' AND supplementaryConfiguration.BucketVersioningConfiguration.status = 'Off'.
query_id str
The ID of the query.
tags Sequence[root_Tag]
The tags for the stored query.
queryArn String
Amazon Resource Name (ARN) of the query. For example, arn:partition:service:region:account-id:resource-type/resource-name/resource-id.
queryDescription String
A unique description for the query.
queryExpression String
The expression of the query. For example, SELECT resourceId, resourceType, supplementaryConfiguration.BucketVersioningConfiguration.status WHERE resourceType = 'AWS::S3::Bucket' AND supplementaryConfiguration.BucketVersioningConfiguration.status = 'Off'.
queryId String
The ID of the query.
tags List<Property Map>
The tags for the stored query.

Supporting Types

Tag

Key This property is required. string
The key name of the tag
Value This property is required. string
The value of the tag
Key This property is required. string
The key name of the tag
Value This property is required. string
The value of the tag
key This property is required. String
The key name of the tag
value This property is required. String
The value of the tag
key This property is required. string
The key name of the tag
value This property is required. string
The value of the tag
key This property is required. str
The key name of the tag
value This property is required. str
The value of the tag
key This property is required. String
The key name of the tag
value This property is required. String
The value of the tag

Package Details

Repository
AWS Native pulumi/pulumi-aws-native
License
Apache-2.0

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.27.0 published on Monday, Apr 14, 2025 by Pulumi