Class CfnGroupProps
Properties for defining a CfnGroup
.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.ResourceGroups
Assembly: Amazon.CDK.AWS.ResourceGroups.dll
Syntax (csharp)
public class CfnGroupProps : Object, ICfnGroupProps
Syntax (vb)
Public Class CfnGroupProps
Inherits Object
Implements ICfnGroupProps
Remarks
Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-resourcegroups-group.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;
var cfnGroupProps = new CfnGroupProps {
Name = "name",
// the properties below are optional
Configuration = new [] { new ConfigurationItemProperty {
Parameters = new [] { new ConfigurationParameterProperty {
Name = "name",
Values = new [] { "values" }
} },
Type = "type"
} },
Description = "description",
ResourceQuery = new ResourceQueryProperty {
Query = new QueryProperty {
ResourceTypeFilters = new [] { "resourceTypeFilters" },
StackIdentifier = "stackIdentifier",
TagFilters = new [] { new TagFilterProperty {
Key = "key",
Values = new [] { "values" }
} }
},
Type = "type"
},
Resources = new [] { "resources" },
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
};
Synopsis
Constructors
CfnGroupProps() |
Properties
Configuration | The service configuration currently associated with the resource group and in effect for the members of the resource group. |
Description | The description of the resource group. |
Name | The name of a resource group. |
ResourceQuery | The resource query structure that is used to dynamically determine which AWS resources are members of the associated resource group. |
Resources | A list of the Amazon Resource Names (ARNs) of AWS resources that you want to add to the specified group. |
Tags | The tag key and value pairs that are attached to the resource group. |
Constructors
CfnGroupProps()
public CfnGroupProps()
Properties
Configuration
The service configuration currently associated with the resource group and in effect for the members of the resource group.
public object Configuration { get; set; }
Property Value
System.Object
Remarks
A Configuration
consists of one or more ConfigurationItem
entries. For information about service configurations for resource groups and how to construct them, see Service configurations for resource groups in the AWS Resource Groups User Guide .
You can include either a Configuration
or a ResourceQuery
, but not both.
Description
The description of the resource group.
public string Description { get; set; }
Property Value
System.String
Remarks
Name
The name of a resource group.
public string Name { get; set; }
Property Value
System.String
Remarks
The name must be unique within the AWS Region in which you create the resource. To create multiple resource groups based on the same CloudFormation stack, you must generate unique names for each.
ResourceQuery
The resource query structure that is used to dynamically determine which AWS resources are members of the associated resource group.
public object ResourceQuery { get; set; }
Property Value
System.Object
Remarks
For more information about queries and how to construct them, see Build queries and groups in AWS Resource Groups in the AWS Resource Groups User Guide
Resources
A list of the Amazon Resource Names (ARNs) of AWS resources that you want to add to the specified group.
public string[] Resources { get; set; }
Property Value
System.String[]
Remarks
Tags
The tag key and value pairs that are attached to the resource group.
public ICfnTag[] Tags { get; set; }
Property Value
ICfnTag[]