Class CfnProtectionGroupProps
Properties for defining a CfnProtectionGroup
.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.Shield
Assembly: Amazon.CDK.AWS.Shield.dll
Syntax (csharp)
public class CfnProtectionGroupProps : Object, ICfnProtectionGroupProps
Syntax (vb)
Public Class CfnProtectionGroupProps
Inherits Object
Implements ICfnProtectionGroupProps
Remarks
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.Shield;
var cfnProtectionGroupProps = new CfnProtectionGroupProps {
Aggregation = "aggregation",
Pattern = "pattern",
ProtectionGroupId = "protectionGroupId",
// the properties below are optional
Members = new [] { "members" },
ResourceType = "resourceType",
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
};
Synopsis
Constructors
CfnProtectionGroupProps() |
Properties
Aggregation | Defines how AWS Shield combines resource data for the group in order to detect, mitigate, and report events. |
Members | The ARNs (Amazon Resource Names) of the resources to include in the protection group. |
Pattern | The criteria to use to choose the protected resources for inclusion in the group. |
ProtectionGroupId | The name of the protection group. |
ResourceType | The resource type to include in the protection group. |
Tags | Key:value pairs associated with an AWS resource. |
Constructors
CfnProtectionGroupProps()
public CfnProtectionGroupProps()
Properties
Aggregation
Defines how AWS Shield combines resource data for the group in order to detect, mitigate, and report events.
public string Aggregation { get; set; }
Property Value
System.String
Remarks
Members
The ARNs (Amazon Resource Names) of the resources to include in the protection group.
public string[] Members { get; set; }
Property Value
System.String[]
Remarks
You must set this when you set Pattern
to ARBITRARY
and you must not set it for any other Pattern
setting.
Pattern
The criteria to use to choose the protected resources for inclusion in the group.
public string Pattern { get; set; }
Property Value
System.String
Remarks
You can include all resources that have protections, provide a list of resource ARNs (Amazon Resource Names), or include all resources of a specified resource type.
ProtectionGroupId
The name of the protection group.
public string ProtectionGroupId { get; set; }
Property Value
System.String
Remarks
You use this to identify the protection group in lists and to manage the protection group, for example to update, delete, or describe it.
ResourceType
The resource type to include in the protection group.
public string ResourceType { get; set; }
Property Value
System.String
Remarks
All protected resources of this type are included in the protection group. You must set this when you set Pattern
to BY_RESOURCE_TYPE
and you must not set it for any other Pattern
setting.
Tags
Key:value pairs associated with an AWS resource.
public ICfnTag[] Tags { get; set; }
Property Value
ICfnTag[]
Remarks
The key:value pair can be anything you define. Typically, the tag key represents a category (such as "environment") and the tag value represents a specific value within that category (such as "test," "development," or "production"). You can add up to 50 tags to each AWS resource.
To modify tags on existing resources, use the AWS Shield Advanced APIs or command line interface. With AWS CloudFormation , you can only add tags to resources during resource creation.