Class CfnStoredQuery
A CloudFormation AWS::Config::StoredQuery
.
Inherited Members
Namespace: Amazon.CDK.AWS.Config
Assembly: Amazon.CDK.AWS.Config.dll
Syntax (csharp)
public class CfnStoredQuery : CfnResource, IConstruct, IDependable, IInspectable
Syntax (vb)
Public Class CfnStoredQuery
Inherits CfnResource
Implements IConstruct, IDependable, IInspectable
Remarks
Provides the details of a stored query.
CloudformationResource: AWS::Config::StoredQuery
Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-config-storedquery.html
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Config;
var cfnStoredQuery = new CfnStoredQuery(this, "MyCfnStoredQuery", new CfnStoredQueryProps {
QueryExpression = "queryExpression",
QueryName = "queryName",
// the properties below are optional
QueryDescription = "queryDescription",
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
});
Synopsis
Constructors
CfnStoredQuery(Construct, String, ICfnStoredQueryProps) | Create a new |
CfnStoredQuery(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
CfnStoredQuery(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Properties
AttrQueryArn | Amazon Resource Name (ARN) of the query. |
AttrQueryId | The ID of the query. |
CFN_RESOURCE_TYPE_NAME | The CloudFormation resource type name for this resource class. |
CfnProperties | |
QueryDescription | A unique description for the query. |
QueryExpression | The expression of the query. |
QueryName | The name of the query. |
Tags | An array of key-value pairs to apply to this resource. |
Methods
Inspect(TreeInspector) | Examines the CloudFormation resource and discloses attributes. |
RenderProperties(IDictionary<String, Object>) |
Constructors
CfnStoredQuery(Construct, String, ICfnStoredQueryProps)
Create a new AWS::Config::StoredQuery
.
public CfnStoredQuery(Construct scope, string id, ICfnStoredQueryProps props)
Parameters
- scope Construct
- scope in which this resource is defined.
- id System.String
- scoped id of the resource.
- props ICfnStoredQueryProps
- resource properties.
CfnStoredQuery(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected CfnStoredQuery(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
CfnStoredQuery(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected CfnStoredQuery(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Properties
AttrQueryArn
Amazon Resource Name (ARN) of the query.
public virtual string AttrQueryArn { get; }
Property Value
System.String
Remarks
For example, arn:partition:service:region:account-id:resource-type/resource-name/resource-id.
CloudformationAttribute: QueryArn
AttrQueryId
The ID of the query.
public virtual string AttrQueryId { get; }
Property Value
System.String
Remarks
CloudformationAttribute: QueryId
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
public static string CFN_RESOURCE_TYPE_NAME { get; }
Property Value
System.String
CfnProperties
protected override IDictionary<string, object> CfnProperties { get; }
Property Value
System.Collections.Generic.IDictionary<System.String, System.Object>
Overrides
QueryDescription
A unique description for the query.
public virtual string QueryDescription { get; set; }
Property Value
System.String
Remarks
QueryExpression
The expression of the query.
public virtual string QueryExpression { get; set; }
Property Value
System.String
Remarks
For example, SELECT resourceId, resourceType, supplementaryConfiguration.BucketVersioningConfiguration.status WHERE resourceType = 'AWS::S3::Bucket' AND supplementaryConfiguration.BucketVersioningConfiguration.status = 'Off'.
QueryName
The name of the query.
public virtual string QueryName { get; set; }
Property Value
System.String
Remarks
Tags
An array of key-value pairs to apply to this resource.
public virtual TagManager Tags { get; }
Property Value
Remarks
Methods
Inspect(TreeInspector)
Examines the CloudFormation resource and discloses attributes.
public virtual void Inspect(TreeInspector inspector)
Parameters
- inspector TreeInspector
- tree inspector to collect and process attributes.
RenderProperties(IDictionary<String, Object>)
protected override IDictionary<string, object> RenderProperties(IDictionary<string, object> props)
Parameters
- props System.Collections.Generic.IDictionary<System.String, System.Object>
Returns
System.Collections.Generic.IDictionary<System.String, System.Object>