Class CfnStoredQuery.Builder

java.lang.Object
software.amazon.awscdk.services.config.CfnStoredQuery.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CfnStoredQuery>
Enclosing class:
CfnStoredQuery

@Stability(Stable) public static final class CfnStoredQuery.Builder extends Object implements software.amazon.jsii.Builder<CfnStoredQuery>
A fluent builder for CfnStoredQuery.
  • Method Details

    • create

      @Stability(Stable) public static CfnStoredQuery.Builder create(Construct scope, String id)
      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      Returns:
      a new instance of CfnStoredQuery.Builder.
    • queryExpression

      @Stability(Stable) public CfnStoredQuery.Builder queryExpression(String queryExpression)
      The expression of the query.

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

      Parameters:
      queryExpression - The expression of the query. This parameter is required.
      Returns:
      this
    • queryName

      @Stability(Stable) public CfnStoredQuery.Builder queryName(String queryName)
      The name of the query.

      Parameters:
      queryName - The name of the query. This parameter is required.
      Returns:
      this
    • queryDescription

      @Stability(Stable) public CfnStoredQuery.Builder queryDescription(String queryDescription)
      A unique description for the query.

      Parameters:
      queryDescription - A unique description for the query. This parameter is required.
      Returns:
      this
    • tags

      @Stability(Stable) public CfnStoredQuery.Builder tags(List<? extends CfnTag> tags)
      An array of key-value pairs to apply to this resource.

      Parameters:
      tags - An array of key-value pairs to apply to this resource. This parameter is required.
      Returns:
      this
    • build

      @Stability(Stable) public CfnStoredQuery build()
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnStoredQuery>
      Returns:
      a newly built instance of CfnStoredQuery.