Class CfnSecurityProfileProps.Builder
java.lang.Object
software.amazon.awscdk.services.iot.CfnSecurityProfileProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSecurityProfileProps>
- Enclosing interface:
- CfnSecurityProfileProps
@Stability(Stable)
public static final class CfnSecurityProfileProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnSecurityProfileProps>
A builder for
CfnSecurityProfileProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionadditionalMetricsToRetainV2
(List<? extends Object> additionalMetricsToRetainV2) Sets the value ofCfnSecurityProfileProps.getAdditionalMetricsToRetainV2()
additionalMetricsToRetainV2
(IResolvable additionalMetricsToRetainV2) Sets the value ofCfnSecurityProfileProps.getAdditionalMetricsToRetainV2()
alertTargets
(Map<String, ? extends Object> alertTargets) Sets the value ofCfnSecurityProfileProps.getAlertTargets()
alertTargets
(IResolvable alertTargets) Sets the value ofCfnSecurityProfileProps.getAlertTargets()
Sets the value ofCfnSecurityProfileProps.getBehaviors()
behaviors
(IResolvable behaviors) Sets the value ofCfnSecurityProfileProps.getBehaviors()
build()
Builds the configured instance.securityProfileDescription
(String securityProfileDescription) Sets the value ofCfnSecurityProfileProps.getSecurityProfileDescription()
securityProfileName
(String securityProfileName) Sets the value ofCfnSecurityProfileProps.getSecurityProfileName()
Sets the value ofCfnSecurityProfileProps.getTags()
targetArns
(List<String> targetArns) Sets the value ofCfnSecurityProfileProps.getTargetArns()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
additionalMetricsToRetainV2
@Stability(Stable) public CfnSecurityProfileProps.Builder additionalMetricsToRetainV2(IResolvable additionalMetricsToRetainV2) Sets the value ofCfnSecurityProfileProps.getAdditionalMetricsToRetainV2()
- Parameters:
additionalMetricsToRetainV2
- A list of metrics whose data is retained (stored). By default, data is retained for any metric used in the profile'sbehaviors
, but it's also retained for any metric specified here. Can be used with custom metrics; can't be used with dimensions.- Returns:
this
-
additionalMetricsToRetainV2
@Stability(Stable) public CfnSecurityProfileProps.Builder additionalMetricsToRetainV2(List<? extends Object> additionalMetricsToRetainV2) Sets the value ofCfnSecurityProfileProps.getAdditionalMetricsToRetainV2()
- Parameters:
additionalMetricsToRetainV2
- A list of metrics whose data is retained (stored). By default, data is retained for any metric used in the profile'sbehaviors
, but it's also retained for any metric specified here. Can be used with custom metrics; can't be used with dimensions.- Returns:
this
-
alertTargets
Sets the value ofCfnSecurityProfileProps.getAlertTargets()
- Parameters:
alertTargets
- Specifies the destinations to which alerts are sent. (Alerts are always sent to the console.) Alerts are generated when a device (thing) violates a behavior.- Returns:
this
-
alertTargets
@Stability(Stable) public CfnSecurityProfileProps.Builder alertTargets(Map<String, ? extends Object> alertTargets) Sets the value ofCfnSecurityProfileProps.getAlertTargets()
- Parameters:
alertTargets
- Specifies the destinations to which alerts are sent. (Alerts are always sent to the console.) Alerts are generated when a device (thing) violates a behavior.- Returns:
this
-
behaviors
Sets the value ofCfnSecurityProfileProps.getBehaviors()
- Parameters:
behaviors
- Specifies the behaviors that, when violated by a device (thing), cause an alert.- Returns:
this
-
behaviors
@Stability(Stable) public CfnSecurityProfileProps.Builder behaviors(List<? extends Object> behaviors) Sets the value ofCfnSecurityProfileProps.getBehaviors()
- Parameters:
behaviors
- Specifies the behaviors that, when violated by a device (thing), cause an alert.- Returns:
this
-
securityProfileDescription
@Stability(Stable) public CfnSecurityProfileProps.Builder securityProfileDescription(String securityProfileDescription) Sets the value ofCfnSecurityProfileProps.getSecurityProfileDescription()
- Parameters:
securityProfileDescription
- A description of the security profile.- Returns:
this
-
securityProfileName
@Stability(Stable) public CfnSecurityProfileProps.Builder securityProfileName(String securityProfileName) Sets the value ofCfnSecurityProfileProps.getSecurityProfileName()
- Parameters:
securityProfileName
- The name you gave to the security profile.- Returns:
this
-
tags
Sets the value ofCfnSecurityProfileProps.getTags()
- Parameters:
tags
- Metadata that can be used to manage the security profile.- Returns:
this
-
targetArns
Sets the value ofCfnSecurityProfileProps.getTargetArns()
- Parameters:
targetArns
- The ARN of the target (thing group) to which the security profile is attached.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnSecurityProfileProps>
- Returns:
- a new instance of
CfnSecurityProfileProps
- Throws:
NullPointerException
- if any required attribute was not provided
-