@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:36.693Z") @Stability(value=Stable) public class CfnNamedQuery extends CfnResource implements IInspectable
The AWS::Athena::NamedQuery resource specifies an Amazon Athena saved query, where QueryString contains the SQL query statements that make up the 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.athena.*;
CfnNamedQuery cfnNamedQuery = CfnNamedQuery.Builder.create(this, "MyCfnNamedQuery")
.database("database")
.queryString("queryString")
// the properties below are optional
.description("description")
.name("name")
.workGroup("workGroup")
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
CfnNamedQuery.Builder
A fluent builder for
CfnNamedQuery. |
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 |
|---|---|
|
CfnNamedQuery(software.constructs.Construct scope,
String id,
CfnNamedQueryProps props)
Create a new `AWS::Athena::NamedQuery`.
|
protected |
CfnNamedQuery(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnNamedQuery(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAttrNamedQueryId()
The unique ID of the query.
|
protected Map<String,Object> |
getCfnProperties() |
String |
getDatabase()
The database to which the query belongs.
|
String |
getDescription()
The query description.
|
String |
getName()
The query name.
|
String |
getQueryString()
The SQL statements that make up the query.
|
String |
getWorkGroup()
The name of the workgroup that contains the named query.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setDatabase(String value)
The database to which the query belongs.
|
void |
setDescription(String value)
The query description.
|
void |
setName(String value)
The query name.
|
void |
setQueryString(String value)
The SQL statements that make up the query.
|
void |
setWorkGroup(String value)
The name of the workgroup that contains the named 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 CfnNamedQuery(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnNamedQuery(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnNamedQuery(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
CfnNamedQueryProps 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 getAttrNamedQueryId()
@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public String getDatabase()
@Stability(value=Stable)
public void setDatabase(@NotNull
String value)
@Stability(value=Stable) @NotNull public String getQueryString()
@Stability(value=Stable)
public void setQueryString(@NotNull
String value)
@Stability(value=Stable) @Nullable public String getDescription()
@Stability(value=Stable)
public void setDescription(@Nullable
String value)
@Stability(value=Stable) @Nullable public String getName()
@Stability(value=Stable)
public void setName(@Nullable
String value)
@Stability(value=Stable) @Nullable public String getWorkGroup()
@Stability(value=Stable)
public void setWorkGroup(@Nullable
String value)
Copyright © 2022. All rights reserved.