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.Builder
metricsExportConfig
(IResolvable metricsExportConfig) Specifies the MQTT topic and role ARN required for metric export.metricsExportConfig
(CfnSecurityProfile.MetricsExportConfigProperty metricsExportConfig) Specifies the MQTT topic and role ARN required for metric export.securityProfileDescription
(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
@Stability(Stable) public static CfnSecurityProfile.Builder create(software.constructs.Construct scope, String id) - 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.- 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
- See Also:
-
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
- See Also:
-
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
- See Also:
-
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
- See Also:
-
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
- See Also:
-
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
- See Also:
-
metricsExportConfig
@Stability(Stable) public CfnSecurityProfile.Builder metricsExportConfig(IResolvable metricsExportConfig) Specifies the MQTT topic and role ARN required for metric export.- Parameters:
metricsExportConfig
- Specifies the MQTT topic and role ARN required for metric export. This parameter is required.- Returns:
this
- See Also:
-
metricsExportConfig
@Stability(Stable) public CfnSecurityProfile.Builder metricsExportConfig(CfnSecurityProfile.MetricsExportConfigProperty metricsExportConfig) Specifies the MQTT topic and role ARN required for metric export.- Parameters:
metricsExportConfig
- Specifies the MQTT topic and role ARN required for metric export. This parameter is required.- Returns:
this
- See Also:
-
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
- See Also:
-
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
- See Also:
-
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
- See Also:
-
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
- See Also:
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnSecurityProfile>
- Returns:
- a newly built instance of
CfnSecurityProfile
.
-