Class CfnSecurityProfile.AlertTargetProperty.Builder
java.lang.Object
software.amazon.awscdk.services.iot.CfnSecurityProfile.AlertTargetProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSecurityProfile.AlertTargetProperty>
- Enclosing interface:
CfnSecurityProfile.AlertTargetProperty
@Stability(Stable)
public static final class CfnSecurityProfile.AlertTargetProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnSecurityProfile.AlertTargetProperty>
A builder for
CfnSecurityProfile.AlertTargetProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionalertTargetArn
(String alertTargetArn) Sets the value ofCfnSecurityProfile.AlertTargetProperty.getAlertTargetArn()
build()
Builds the configured instance.Sets the value ofCfnSecurityProfile.AlertTargetProperty.getRoleArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
alertTargetArn
@Stability(Stable) public CfnSecurityProfile.AlertTargetProperty.Builder alertTargetArn(String alertTargetArn) Sets the value ofCfnSecurityProfile.AlertTargetProperty.getAlertTargetArn()
- Parameters:
alertTargetArn
- The Amazon Resource Name (ARN) of the notification target to which alerts are sent. This parameter is required.- Returns:
this
-
roleArn
Sets the value ofCfnSecurityProfile.AlertTargetProperty.getRoleArn()
- Parameters:
roleArn
- The ARN of the role that grants permission to send alerts to the notification target. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnSecurityProfile.AlertTargetProperty>
- Returns:
- a new instance of
CfnSecurityProfile.AlertTargetProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-