-
Notifications
You must be signed in to change notification settings - Fork 17
/
awsresourcegroups_CfnGroup_ResourceQueryProperty.go
47 lines (44 loc) · 2.57 KB
/
awsresourcegroups_CfnGroup_ResourceQueryProperty.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
package awsresourcegroups
// The query used to dynamically define the members of a group.
//
// For more information about how to construct a query, see [Build queries and groups in AWS Resource Groups](https://docs.aws.amazon.com//ARG/latest/userguide/gettingstarted-query.html) .
//
// Example:
// // The code below shows an example of how to instantiate this type.
// // The values are placeholders you should change.
// import "github.com/aws/aws-cdk-go/awscdk"
//
// resourceQueryProperty := &resourceQueryProperty{
// query: &queryProperty{
// resourceTypeFilters: []*string{
// jsii.String("resourceTypeFilters"),
// },
// stackIdentifier: jsii.String("stackIdentifier"),
// tagFilters: []interface{}{
// &tagFilterProperty{
// key: jsii.String("key"),
// values: []*string{
// jsii.String("values"),
// },
// },
// },
// },
// type: jsii.String("type"),
// }
//
type CfnGroup_ResourceQueryProperty struct {
// The query that defines the membership of the group.
//
// This is a structure with properties that depend on the `Type` .
//
// The `Query` structure must be included in the following scenarios:
//
// - When the `Type` is `TAG_FILTERS_1_0` , you must specify a `Query` structure that contains a `TagFilters` list of tags. Resources with tags that match those in the `TagFilter` list become members of the resource group.
// - When the `Type` is `CLOUDFORMATION_STACK_1_0` then this field is required only when you must specify a CloudFormation stack other than the one you are defining. To do this, the `Query` structure must contain the `StackIdentifier` property. If you don't specify either a `Query` structure or a `StackIdentifier` within that `Query` , then it defaults to the CloudFormation stack that you're currently constructing.
Query interface{} `field:"optional" json:"query" yaml:"query"`
// Specifies the type of resource query that determines this group's membership. There are two valid query types:.
//
// - `TAG_FILTERS_1_0` indicates that the group is a tag-based group. To complete the group membership, you must include the `TagFilters` property to specify the tag filters to use in the query.
// - `CLOUDFORMATION_STACK_1_0` , the default, indicates that the group is a CloudFormation stack-based group. Group membership is based on the CloudFormation stack. You must specify the `StackIdentifier` property in the query to define which stack to associate the group with, or leave it empty to default to the stack where the group is defined.
Type *string `field:"optional" json:"type" yaml:"type"`
}