Class CfnSecurityProfileMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.iot.CfnSecurityProfileMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSecurityProfileMixinProps>
- Enclosing interface:
CfnSecurityProfileMixinProps
@Stability(Stable)
public static final class CfnSecurityProfileMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnSecurityProfileMixinProps>
A builder for
CfnSecurityProfileMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadditionalMetricsToRetainV2(List<? extends Object> additionalMetricsToRetainV2) Sets the value ofCfnSecurityProfileMixinProps.getAdditionalMetricsToRetainV2()additionalMetricsToRetainV2(IResolvable additionalMetricsToRetainV2) Sets the value ofCfnSecurityProfileMixinProps.getAdditionalMetricsToRetainV2()alertTargets(Map<String, ? extends Object> alertTargets) Sets the value ofCfnSecurityProfileMixinProps.getAlertTargets()alertTargets(IResolvable alertTargets) Sets the value ofCfnSecurityProfileMixinProps.getAlertTargets()Sets the value ofCfnSecurityProfileMixinProps.getBehaviors()behaviors(IResolvable behaviors) Sets the value ofCfnSecurityProfileMixinProps.getBehaviors()build()Builds the configured instance.metricsExportConfig(CfnSecurityProfilePropsMixin.MetricsExportConfigProperty metricsExportConfig) Sets the value ofCfnSecurityProfileMixinProps.getMetricsExportConfig()metricsExportConfig(IResolvable metricsExportConfig) Sets the value ofCfnSecurityProfileMixinProps.getMetricsExportConfig()securityProfileDescription(String securityProfileDescription) Sets the value ofCfnSecurityProfileMixinProps.getSecurityProfileDescription()securityProfileName(String securityProfileName) Sets the value ofCfnSecurityProfileMixinProps.getSecurityProfileName()Sets the value ofCfnSecurityProfileMixinProps.getTags()targetArns(List<String> targetArns) Sets the value ofCfnSecurityProfileMixinProps.getTargetArns()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
additionalMetricsToRetainV2
@Stability(Stable) public CfnSecurityProfileMixinProps.Builder additionalMetricsToRetainV2(IResolvable additionalMetricsToRetainV2) Sets the value ofCfnSecurityProfileMixinProps.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 CfnSecurityProfileMixinProps.Builder additionalMetricsToRetainV2(List<? extends Object> additionalMetricsToRetainV2) Sets the value ofCfnSecurityProfileMixinProps.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
@Stability(Stable) public CfnSecurityProfileMixinProps.Builder alertTargets(IResolvable alertTargets) Sets the value ofCfnSecurityProfileMixinProps.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 CfnSecurityProfileMixinProps.Builder alertTargets(Map<String, ? extends Object> alertTargets) Sets the value ofCfnSecurityProfileMixinProps.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 ofCfnSecurityProfileMixinProps.getBehaviors()- Parameters:
behaviors- Specifies the behaviors that, when violated by a device (thing), cause an alert.- Returns:
this
-
behaviors
@Stability(Stable) public CfnSecurityProfileMixinProps.Builder behaviors(List<? extends Object> behaviors) Sets the value ofCfnSecurityProfileMixinProps.getBehaviors()- Parameters:
behaviors- Specifies the behaviors that, when violated by a device (thing), cause an alert.- Returns:
this
-
metricsExportConfig
@Stability(Stable) public CfnSecurityProfileMixinProps.Builder metricsExportConfig(IResolvable metricsExportConfig) Sets the value ofCfnSecurityProfileMixinProps.getMetricsExportConfig()- Parameters:
metricsExportConfig- Specifies the MQTT topic and role ARN required for metric export.- Returns:
this
-
metricsExportConfig
@Stability(Stable) public CfnSecurityProfileMixinProps.Builder metricsExportConfig(CfnSecurityProfilePropsMixin.MetricsExportConfigProperty metricsExportConfig) Sets the value ofCfnSecurityProfileMixinProps.getMetricsExportConfig()- Parameters:
metricsExportConfig- Specifies the MQTT topic and role ARN required for metric export.- Returns:
this
-
securityProfileDescription
@Stability(Stable) public CfnSecurityProfileMixinProps.Builder securityProfileDescription(String securityProfileDescription) Sets the value ofCfnSecurityProfileMixinProps.getSecurityProfileDescription()- Parameters:
securityProfileDescription- A description of the security profile.- Returns:
this
-
securityProfileName
@Stability(Stable) public CfnSecurityProfileMixinProps.Builder securityProfileName(String securityProfileName) Sets the value ofCfnSecurityProfileMixinProps.getSecurityProfileName()- Parameters:
securityProfileName- The name you gave to the security profile.- Returns:
this
-
tags
Sets the value ofCfnSecurityProfileMixinProps.getTags()- Parameters:
tags- Metadata that can be used to manage the security profile.- Returns:
this
-
targetArns
Sets the value ofCfnSecurityProfileMixinProps.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:
buildin interfacesoftware.amazon.jsii.Builder<CfnSecurityProfileMixinProps>- Returns:
- a new instance of
CfnSecurityProfileMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-