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 Summary
Modifier and TypeMethodDescriptionbuild()
static CfnStoredQuery.Builder
queryDescription
(String queryDescription) A unique description for the query.queryExpression
(String queryExpression) The expression of the query.The name of the query.An array of key-value pairs to apply to this resource.
-
Method Details
-
create
- Parameters:
scope
-- scope in which this resource is defined.
id
-- scoped id of the resource.
- Returns:
- a new instance of
CfnStoredQuery.Builder
.
-
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
The name of the query.- Parameters:
queryName
- The name of the query. This parameter is required.- Returns:
this
-
queryDescription
A unique description for the query.- Parameters:
queryDescription
- A unique description for the query. This parameter is required.- Returns:
this
-
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
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnStoredQuery>
- Returns:
- a newly built instance of
CfnStoredQuery
.
-