Class CfnSecurityProfile.Builder
java.lang.Object
software.amazon.awscdk.services.iot.CfnSecurityProfile.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSecurityProfile>
- Enclosing class:
- CfnSecurityProfile
@Stability(Stable)
public static final class CfnSecurityProfile.Builder
extends Object
implements software.amazon.jsii.Builder<CfnSecurityProfile>
A fluent builder for
CfnSecurityProfile.-
Method Summary
Modifier and TypeMethodDescriptionadditionalMetricsToRetainV2(List<? extends Object> additionalMetricsToRetainV2) A list of metrics whose data is retained (stored).additionalMetricsToRetainV2(IResolvable additionalMetricsToRetainV2) A list of metrics whose data is retained (stored).alertTargets(Map<String, ? extends Object> alertTargets) Specifies the destinations to which alerts are sent.alertTargets(IResolvable alertTargets) Specifies the destinations to which alerts are sent.Specifies the behaviors that, when violated by a device (thing), cause an alert.behaviors(IResolvable behaviors) Specifies the behaviors that, when violated by a device (thing), cause an alert.build()static CfnSecurityProfile.BuildersecurityProfileDescription(String securityProfileDescription) A description of the security profile.securityProfileName(String securityProfileName) The name you gave to the security profile.Metadata that can be used to manage the security profile.targetArns(List<String> targetArns) The ARN of the target (thing group) to which the security profile is attached.
-
Method Details
-
create
- Parameters:
scope-- scope in which this resource is defined.
id-- scoped id of the resource.
- Returns:
- a new instance of
CfnSecurityProfile.Builder.
-
additionalMetricsToRetainV2
@Stability(Stable) public CfnSecurityProfile.Builder additionalMetricsToRetainV2(IResolvable additionalMetricsToRetainV2) A list of metrics whose data is retained (stored).By default, data is retained for any metric used in the profile's
behaviors, but it's also retained for any metric specified here. Can be used with custom metrics; can't be used with dimensions.- Parameters:
additionalMetricsToRetainV2- A list of metrics whose data is retained (stored). This parameter is required.- Returns:
this
-
additionalMetricsToRetainV2
@Stability(Stable) public CfnSecurityProfile.Builder additionalMetricsToRetainV2(List<? extends Object> additionalMetricsToRetainV2) A list of metrics whose data is retained (stored).By default, data is retained for any metric used in the profile's
behaviors, but it's also retained for any metric specified here. Can be used with custom metrics; can't be used with dimensions.- Parameters:
additionalMetricsToRetainV2- A list of metrics whose data is retained (stored). This parameter is required.- Returns:
this
-
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.
- Parameters:
alertTargets- Specifies the destinations to which alerts are sent. This parameter is required.- Returns:
this
-
alertTargets
@Stability(Stable) public CfnSecurityProfile.Builder alertTargets(Map<String, ? extends Object> 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.
- Parameters:
alertTargets- Specifies the destinations to which alerts are sent. This parameter is required.- Returns:
this
-
behaviors
Specifies the behaviors that, when violated by a device (thing), cause an alert.- Parameters:
behaviors- Specifies the behaviors that, when violated by a device (thing), cause an alert. This parameter is required.- Returns:
this
-
behaviors
Specifies the behaviors that, when violated by a device (thing), cause an alert.- Parameters:
behaviors- Specifies the behaviors that, when violated by a device (thing), cause an alert. This parameter is required.- Returns:
this
-
securityProfileDescription
@Stability(Stable) public CfnSecurityProfile.Builder securityProfileDescription(String securityProfileDescription) A description of the security profile.- Parameters:
securityProfileDescription- A description of the security profile. This parameter is required.- Returns:
this
-
securityProfileName
@Stability(Stable) public CfnSecurityProfile.Builder securityProfileName(String securityProfileName) The name you gave to the security profile.- Parameters:
securityProfileName- The name you gave to the security profile. This parameter is required.- Returns:
this
-
tags
Metadata that can be used to manage the security profile.- Parameters:
tags- Metadata that can be used to manage the security profile. This parameter is required.- Returns:
this
-
targetArns
The ARN of the target (thing group) to which the security profile is attached.- Parameters:
targetArns- The ARN of the target (thing group) to which the security profile is attached. This parameter is required.- Returns:
this
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnSecurityProfile>- Returns:
- a newly built instance of
CfnSecurityProfile.
-