Show / Hide Table of Contents

Class CfnGroup.QueryProperty

Specifies details within a ResourceQuery structure that determines the membership of the resource group.

Inheritance
System.Object
CfnGroup.QueryProperty
Implements
CfnGroup.IQueryProperty
Namespace: Amazon.CDK.AWS.ResourceGroups
Assembly: Amazon.CDK.AWS.ResourceGroups.dll
Syntax (csharp)
public class QueryProperty : Object, CfnGroup.IQueryProperty
Syntax (vb)
Public Class QueryProperty
    Inherits Object
    Implements CfnGroup.IQueryProperty
Remarks

The contents required in the Query structure are determined by the Type property of the containing ResourceQuery structure.

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resourcegroups-group-query.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.ResourceGroups;

QueryProperty queryProperty = new QueryProperty {
    ResourceTypeFilters = new [] { "resourceTypeFilters" },
    StackIdentifier = "stackIdentifier",
    TagFilters = new [] { new TagFilterProperty {
        Key = "key",
        Values = new [] { "values" }
    } }
};

Synopsis

Constructors

QueryProperty()

Properties

ResourceTypeFilters

Specifies limits to the types of resources that can be included in the resource group.

StackIdentifier

Specifies the ARN of a CloudFormation stack.

TagFilters

A list of key-value pair objects that limit which resources can be members of the resource group.

Constructors

QueryProperty()

public QueryProperty()

Properties

ResourceTypeFilters

Specifies limits to the types of resources that can be included in the resource group.

public string[] ResourceTypeFilters { get; set; }
Property Value

System.String[]

Remarks

For example, if ResourceTypeFilters is ["AWS::EC2::Instance", "AWS::DynamoDB::Table"] , only EC2 instances or DynamoDB tables can be members of this resource group. The default value is ["AWS::AllSupported"] .

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resourcegroups-group-query.html#cfn-resourcegroups-group-query-resourcetypefilters

StackIdentifier

Specifies the ARN of a CloudFormation stack.

public string StackIdentifier { get; set; }
Property Value

System.String

Remarks

All supported resources of the CloudFormation stack are members of the resource group. If you don't specify an ARN, this parameter defaults to the current stack that you are defining, which means that all the resources of the current stack are grouped.

You can specify a value for StackIdentifier only when the ResourceQuery.Type property is CLOUDFORMATION_STACK_1_0.

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resourcegroups-group-query.html#cfn-resourcegroups-group-query-stackidentifier

TagFilters

A list of key-value pair objects that limit which resources can be members of the resource group.

public object TagFilters { get; set; }
Property Value

System.Object

Remarks

This property is required when the ResourceQuery.Type property is TAG_FILTERS_1_0 .

A resource must have a tag that matches every filter that is provided in the TagFilters list.

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resourcegroups-group-query.html#cfn-resourcegroups-group-query-tagfilters

Implements

CfnGroup.IQueryProperty
Back to top Generated by DocFX