Class CfnApp.EventSubscriptionProperty.Builder
java.lang.Object
software.amazon.awscdk.services.resiliencehub.CfnApp.EventSubscriptionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnApp.EventSubscriptionProperty>
- Enclosing interface:
CfnApp.EventSubscriptionProperty
@Stability(Stable)
public static final class CfnApp.EventSubscriptionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnApp.EventSubscriptionProperty>
A builder for
CfnApp.EventSubscriptionProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnApp.EventSubscriptionProperty.getEventType()Sets the value ofCfnApp.EventSubscriptionProperty.getName()snsTopicArn(String snsTopicArn) Sets the value ofCfnApp.EventSubscriptionProperty.getSnsTopicArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
eventType
Sets the value ofCfnApp.EventSubscriptionProperty.getEventType()- Parameters:
eventType- The type of event you would like to subscribe and get notification for. This parameter is required. Currently, AWS Resilience Hub supports notifications only for Drift detected (DriftDetected) and Scheduled assessment failure (ScheduledAssessmentFailure) events.- Returns:
this
-
name
Sets the value ofCfnApp.EventSubscriptionProperty.getName()- Parameters:
name- Unique name to identify an event subscription. This parameter is required.- Returns:
this
-
snsTopicArn
Sets the value ofCfnApp.EventSubscriptionProperty.getSnsTopicArn()- Parameters:
snsTopicArn- Amazon Resource Name (ARN) of the Amazon Simple Notification Service topic. The format for this ARN is:arn:partition:sns:region:account:topic-name. For more information about ARNs, see Amazon Resource Names (ARNs) in the AWS General Reference guide.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnApp.EventSubscriptionProperty>- Returns:
- a new instance of
CfnApp.EventSubscriptionProperty - Throws:
NullPointerException- if any required attribute was not provided
-