Class CfnResourceGroup
A CloudFormation AWS::Inspector::ResourceGroup
.
Inherited Members
Namespace: Amazon.CDK.AWS.Inspector
Assembly: Amazon.CDK.AWS.Inspector.dll
Syntax (csharp)
public class CfnResourceGroup : CfnResource, IConstruct, IDependable, IInspectable
Syntax (vb)
Public Class CfnResourceGroup
Inherits CfnResource
Implements IConstruct, IDependable, IInspectable
Remarks
The AWS::Inspector::ResourceGroup
resource is used to create Amazon Inspector resource groups. A resource group defines a set of tags that, when queried, identify the AWS resources that make up the assessment target.
CloudformationResource: AWS::Inspector::ResourceGroup
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.Inspector;
var cfnResourceGroup = new CfnResourceGroup(this, "MyCfnResourceGroup", new CfnResourceGroupProps {
ResourceGroupTags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
});
Synopsis
Constructors
CfnResourceGroup(Construct, String, ICfnResourceGroupProps) | Create a new |
CfnResourceGroup(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
CfnResourceGroup(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Properties
AttrArn | The Amazon Resource Name (ARN) that specifies the resource group that is created. |
CFN_RESOURCE_TYPE_NAME | The CloudFormation resource type name for this resource class. |
CfnProperties | |
ResourceGroupTags | The tags (key and value pairs) that will be associated with the resource group. |
Methods
Inspect(TreeInspector) | Examines the CloudFormation resource and discloses attributes. |
RenderProperties(IDictionary<String, Object>) |
Constructors
CfnResourceGroup(Construct, String, ICfnResourceGroupProps)
Create a new AWS::Inspector::ResourceGroup
.
public CfnResourceGroup(Construct scope, string id, ICfnResourceGroupProps props)
Parameters
- scope Construct
- scope in which this resource is defined.
- id System.String
- scoped id of the resource.
- props ICfnResourceGroupProps
- resource properties.
CfnResourceGroup(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected CfnResourceGroup(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
CfnResourceGroup(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected CfnResourceGroup(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Properties
AttrArn
The Amazon Resource Name (ARN) that specifies the resource group that is created.
public virtual string AttrArn { get; }
Property Value
System.String
Remarks
CloudformationAttribute: Arn
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
ResourceGroupTags
The tags (key and value pairs) that will be associated with the resource group.
public virtual object ResourceGroupTags { get; set; }
Property Value
System.Object
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>