@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:37.736Z") @Stability(value=Stable) 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. |
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnStoredQuery(software.constructs.Construct scope,
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 |
|---|---|
String |
getAttrQueryArn()
Amazon Resource Name (ARN) of the query.
|
String |
getAttrQueryId()
The ID of the query.
|
protected Map<String,Object> |
getCfnProperties() |
String |
getQueryDescription()
A unique description for the query.
|
String |
getQueryExpression()
The expression of the query.
|
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 Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setQueryDescription(String value)
A unique description for the query.
|
void |
setQueryExpression(String value)
The expression of the query.
|
void |
setQueryName(String value)
The name of the query.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnStoredQuery(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnStoredQuery(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnStoredQuery(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
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.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull public String getAttrQueryArn()
For example, arn:partition:service:region:account-id:resource-type/resource-name/resource-id.
@Stability(value=Stable) @NotNull public String getAttrQueryId()
@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public TagManager getTags()
@Stability(value=Stable) @NotNull public String getQueryExpression()
For example, SELECT resourceId, resourceType, supplementaryConfiguration.BucketVersioningConfiguration.status WHERE resourceType = 'AWS::S3::Bucket' AND supplementaryConfiguration.BucketVersioningConfiguration.status = 'Off'.
@Stability(value=Stable)
public void setQueryExpression(@NotNull
String value)
For example, SELECT resourceId, resourceType, supplementaryConfiguration.BucketVersioningConfiguration.status WHERE resourceType = 'AWS::S3::Bucket' AND supplementaryConfiguration.BucketVersioningConfiguration.status = 'Off'.
@Stability(value=Stable) @NotNull public String getQueryName()
@Stability(value=Stable)
public void setQueryName(@NotNull
String value)
@Stability(value=Stable) @Nullable public String getQueryDescription()
@Stability(value=Stable)
public void setQueryDescription(@Nullable
String value)
Copyright © 2022. All rights reserved.