Interface CfnStoredQueryProps

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnStoredQueryProps.Jsii$Proxy

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:48.594Z") @Stability(Stable) public interface CfnStoredQueryProps extends software.amazon.jsii.JsiiSerializable
Properties for defining a CfnStoredQuery.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.config.*;
 CfnStoredQueryProps cfnStoredQueryProps = CfnStoredQueryProps.builder()
         .queryExpression("queryExpression")
         .queryName("queryName")
         // the properties below are optional
         .queryDescription("queryDescription")
         .tags(List.of(CfnTag.builder()
                 .key("key")
                 .value("value")
                 .build()))
         .build();
 
  • Method Details

    • getQueryExpression

      @Stability(Stable) @NotNull String getQueryExpression()
      The expression of the query.

      For example, SELECT resourceId, resourceType, supplementaryConfiguration.BucketVersioningConfiguration.status WHERE resourceType = 'AWS::S3::Bucket' AND supplementaryConfiguration.BucketVersioningConfiguration.status = 'Off'.

    • getQueryName

      @Stability(Stable) @NotNull String getQueryName()
      The name of the query.
    • getQueryDescription

      @Stability(Stable) @Nullable default String getQueryDescription()
      A unique description for the query.
    • getTags

      @Stability(Stable) @Nullable default List<CfnTag> getTags()
      An array of key-value pairs to apply to this resource.
    • builder

      @Stability(Stable) static CfnStoredQueryProps.Builder builder()
      Returns:
      a CfnStoredQueryProps.Builder of CfnStoredQueryProps