Class CfnResourceGroup
The AWS::Inspector::ResourceGroup
resource is used to create Amazon Inspector resource groups.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.Inspector
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnResourceGroup : CfnResource, IInspectable
Syntax (vb)
Public Class CfnResourceGroup
Inherits CfnResource
Implements IInspectable
Remarks
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(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 |
CfnResourceGroup(Construct, String, ICfnResourceGroupProps) |
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(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
CfnResourceGroup(Construct, String, ICfnResourceGroupProps)
public CfnResourceGroup(Construct scope, string id, ICfnResourceGroupProps props)
Parameters
- scope Constructs.Construct
Scope in which this resource is defined.
- id System.String
Construct identifier for this resource (unique in its scope).
- props ICfnResourceGroupProps
Resource properties.
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
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>