Class CfnProtectionGroupMixinProps.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.shield.mixins.CfnProtectionGroupMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnProtectionGroupMixinProps>
- Enclosing interface:
CfnProtectionGroupMixinProps
@Stability(Stable)
public static final class CfnProtectionGroupMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnProtectionGroupMixinProps>
A builder for
CfnProtectionGroupMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaggregation(String aggregation) Sets the value ofCfnProtectionGroupMixinProps.getAggregation()build()Builds the configured instance.Sets the value ofCfnProtectionGroupMixinProps.getMembers()Sets the value ofCfnProtectionGroupMixinProps.getPattern()protectionGroupId(String protectionGroupId) Sets the value ofCfnProtectionGroupMixinProps.getProtectionGroupId()resourceType(String resourceType) Sets the value ofCfnProtectionGroupMixinProps.getResourceType()Sets the value ofCfnProtectionGroupMixinProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
aggregation
Sets the value ofCfnProtectionGroupMixinProps.getAggregation()- Parameters:
aggregation- Defines how AWS Shield combines resource data for the group in order to detect, mitigate, and report events.Sum- Use the total traffic across the group. This is a good choice for most cases. Examples include Elastic IP addresses for EC2 instances that scale manually or automatically.Mean- Use the average of the traffic across the group. This is a good choice for resources that share traffic uniformly. Examples include accelerators and load balancers.Max- Use the highest traffic from each resource. This is useful for resources that don't share traffic and for resources that share that traffic in a non-uniform way. Examples include Amazon CloudFront distributions and origin resources for CloudFront distributions.
- Returns:
this
-
members
Sets the value ofCfnProtectionGroupMixinProps.getMembers()- Parameters:
members- The ARNs (Amazon Resource Names) of the resources to include in the protection group. You must set this when you setPatterntoARBITRARYand you must not set it for any otherPatternsetting.- Returns:
this
-
pattern
Sets the value ofCfnProtectionGroupMixinProps.getPattern()- Parameters:
pattern- The criteria to use to choose the protected resources for inclusion in the group. 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.- Returns:
this
-
protectionGroupId
@Stability(Stable) public CfnProtectionGroupMixinProps.Builder protectionGroupId(String protectionGroupId) Sets the value ofCfnProtectionGroupMixinProps.getProtectionGroupId()- Parameters:
protectionGroupId- The name of the protection group. You use this to identify the protection group in lists and to manage the protection group, for example to update, delete, or describe it.- Returns:
this
-
resourceType
Sets the value ofCfnProtectionGroupMixinProps.getResourceType()- Parameters:
resourceType- The resource type to include in the protection group. All protected resources of this type are included in the protection group. You must set this when you setPatterntoBY_RESOURCE_TYPEand you must not set it for any otherPatternsetting.- Returns:
this
-
tags
Sets the value ofCfnProtectionGroupMixinProps.getTags()- Parameters:
tags- Key:value pairs associated with an AWS resource. 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.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnProtectionGroupMixinProps>- Returns:
- a new instance of
CfnProtectionGroupMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-