@Generated(value="jsii-pacmak/1.73.0 (build 6faeda3)", date="2023-01-31T18:37:01.503Z") public class CfnStoredQuery extends CfnResource implements IInspectable
Provides the details of a stored query.
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.*; CfnStoredQuery cfnStoredQuery = CfnStoredQuery.Builder.create(this, "MyCfnStoredQuery") .queryExpression("queryExpression") .queryName("queryName") // the properties below are optional .queryDescription("queryDescription") .tags(List.of(CfnTag.builder() .key("key") .value("value") .build())) .build();
Modifier and Type | Class and Description |
---|---|
static class |
CfnStoredQuery.Builder
A fluent builder for
CfnStoredQuery . |
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
IConstruct.Jsii$Default
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
Modifier | Constructor and Description |
---|---|
|
CfnStoredQuery(Construct scope,
java.lang.String id,
CfnStoredQueryProps props)
Create a new `AWS::Config::StoredQuery`.
|
protected |
CfnStoredQuery(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnStoredQuery(software.amazon.jsii.JsiiObjectRef objRef) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAttrQueryArn()
Amazon Resource Name (ARN) of the query.
|
java.lang.String |
getAttrQueryId()
The ID of the query.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
getCfnProperties() |
java.lang.String |
getQueryDescription()
A unique description for the query.
|
java.lang.String |
getQueryExpression()
The expression of the query.
|
java.lang.String |
getQueryName()
The name of the query.
|
TagManager |
getTags()
An array of key-value pairs to apply to this resource.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
renderProperties(java.util.Map<java.lang.String,java.lang.Object> props) |
void |
setQueryDescription(java.lang.String value)
A unique description for the query.
|
void |
setQueryExpression(java.lang.String value)
The expression of the query.
|
void |
setQueryName(java.lang.String value)
The name of the query.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validateProperties
getRef
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
public static final java.lang.String CFN_RESOURCE_TYPE_NAME
protected CfnStoredQuery(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnStoredQuery(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public CfnStoredQuery(Construct scope, java.lang.String id, CfnStoredQueryProps props)
scope
- - scope in which this resource is defined. This parameter is required.id
- - scoped id of the resource. This parameter is required.props
- - resource properties. This parameter is required.public void inspect(TreeInspector inspector)
inspect
in interface IInspectable
inspector
- - tree inspector to collect and process attributes. This parameter is required.protected java.util.Map<java.lang.String,java.lang.Object> renderProperties(java.util.Map<java.lang.String,java.lang.Object> props)
renderProperties
in class CfnResource
props
- This parameter is required.public java.lang.String getAttrQueryArn()
For example, arn:partition:service:region:account-id:resource-type/resource-name/resource-id.
public java.lang.String getAttrQueryId()
protected java.util.Map<java.lang.String,java.lang.Object> getCfnProperties()
getCfnProperties
in class CfnResource
public TagManager getTags()
public java.lang.String getQueryExpression()
For example, SELECT resourceId, resourceType, supplementaryConfiguration.BucketVersioningConfiguration.status WHERE resourceType = 'AWS::S3::Bucket' AND supplementaryConfiguration.BucketVersioningConfiguration.status = 'Off'.
public void setQueryExpression(java.lang.String value)
For example, SELECT resourceId, resourceType, supplementaryConfiguration.BucketVersioningConfiguration.status WHERE resourceType = 'AWS::S3::Bucket' AND supplementaryConfiguration.BucketVersioningConfiguration.status = 'Off'.
public java.lang.String getQueryName()
public void setQueryName(java.lang.String value)
public java.lang.String getQueryDescription()
public void setQueryDescription(java.lang.String value)