Class CfnProtectionGroup
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.shield.CfnProtectionGroup
- All Implemented Interfaces:
IInspectable,ITaggableV2,IProtectionGroupRef,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
date="2025-10-24T13:34:47.431Z")
@Stability(Stable)
public class CfnProtectionGroup
extends CfnResource
implements IInspectable, IProtectionGroupRef, ITaggableV2
Creates a grouping of protected resources so they can be handled as a collective.
This resource grouping improves the accuracy of detection and reduces false positives.
To configure this resource through AWS CloudFormation , you must be subscribed to AWS Shield Advanced . You can subscribe through the Shield Advanced console and through the APIs. For more information, see Subscribe to AWS Shield Advanced .
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.shield.*;
CfnProtectionGroup cfnProtectionGroup = CfnProtectionGroup.Builder.create(this, "MyCfnProtectionGroup")
.aggregation("aggregation")
.pattern("pattern")
.protectionGroupId("protectionGroupId")
// the properties below are optional
.members(List.of("members"))
.resourceType("resourceType")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.services.shield.IProtectionGroupRef
IProtectionGroupRef.Jsii$Default, IProtectionGroupRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggableV2
ITaggableV2.Jsii$Default, ITaggableV2.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnProtectionGroup(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnProtectionGroup(software.amazon.jsii.JsiiObjectRef objRef) CfnProtectionGroup(software.constructs.Construct scope, String id, CfnProtectionGroupProps props) -
Method Summary
Modifier and TypeMethodDescriptionDefines how AWS Shield combines resource data for the group in order to detect, mitigate, and report events.The ARN (Amazon Resource Name) of the new protection group.Tag Manager which manages the tags for this resource.The ARNs (Amazon Resource Names) of the resources to include in the protection group.The criteria to use to choose the protected resources for inclusion in the group.The name of the protection group.A reference to a ProtectionGroup resource.The resource type to include in the protection group.getTags()Key:value pairs associated with an AWS resource.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetAggregation(String value) Defines how AWS Shield combines resource data for the group in order to detect, mitigate, and report events.voidsetMembers(List<String> value) The ARNs (Amazon Resource Names) of the resources to include in the protection group.voidsetPattern(String value) The criteria to use to choose the protected resources for inclusion in the group.voidsetProtectionGroupId(String value) The name of the protection group.voidsetResourceType(String value) The resource type to include in the protection group.voidKey:value pairs associated with an AWS resource.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnProtectionGroup
protected CfnProtectionGroup(software.amazon.jsii.JsiiObjectRef objRef) -
CfnProtectionGroup
protected CfnProtectionGroup(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnProtectionGroup
@Stability(Stable) public CfnProtectionGroup(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnProtectionGroupProps props) - Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties. This parameter is required.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrProtectionGroupArn
The ARN (Amazon Resource Name) of the new protection group. -
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManagerin interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getProtectionGroupRef
A reference to a ProtectionGroup resource.- Specified by:
getProtectionGroupRefin interfaceIProtectionGroupRef
-
getAggregation
Defines how AWS Shield combines resource data for the group in order to detect, mitigate, and report events. -
setAggregation
Defines how AWS Shield combines resource data for the group in order to detect, mitigate, and report events. -
getPattern
The criteria to use to choose the protected resources for inclusion in the group. -
setPattern
The criteria to use to choose the protected resources for inclusion in the group. -
getProtectionGroupId
The name of the protection group. -
setProtectionGroupId
The name of the protection group. -
getMembers
The ARNs (Amazon Resource Names) of the resources to include in the protection group. -
setMembers
The ARNs (Amazon Resource Names) of the resources to include in the protection group. -
getResourceType
The resource type to include in the protection group. -
setResourceType
The resource type to include in the protection group. -
getTags
Key:value pairs associated with an AWS resource. -
setTags
Key:value pairs associated with an AWS resource.
-