Class CfnAppPropsMixin.EventSubscriptionProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.resiliencehub.CfnAppPropsMixin.EventSubscriptionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAppPropsMixin.EventSubscriptionProperty>
- Enclosing interface:
CfnAppPropsMixin.EventSubscriptionProperty
@Stability(Stable)
public static final class CfnAppPropsMixin.EventSubscriptionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAppPropsMixin.EventSubscriptionProperty>
A builder for
CfnAppPropsMixin.EventSubscriptionProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnAppPropsMixin.EventSubscriptionProperty.getEventType()Sets the value ofCfnAppPropsMixin.EventSubscriptionProperty.getName()snsTopicArn(String snsTopicArn) Sets the value ofCfnAppPropsMixin.EventSubscriptionProperty.getSnsTopicArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
eventType
@Stability(Stable) public CfnAppPropsMixin.EventSubscriptionProperty.Builder eventType(String eventType) Sets the value ofCfnAppPropsMixin.EventSubscriptionProperty.getEventType()- Parameters:
eventType- The type of event you would like to subscribe and get notification for. Currently, AWS Resilience Hub supports notifications only for Drift detected (DriftDetected) and Scheduled assessment failure (ScheduledAssessmentFailure) events.- Returns:
this
-
name
Sets the value ofCfnAppPropsMixin.EventSubscriptionProperty.getName()- Parameters:
name- Unique name to identify an event subscription.- Returns:
this
-
snsTopicArn
@Stability(Stable) public CfnAppPropsMixin.EventSubscriptionProperty.Builder snsTopicArn(String snsTopicArn) Sets the value ofCfnAppPropsMixin.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<CfnAppPropsMixin.EventSubscriptionProperty>- Returns:
- a new instance of
CfnAppPropsMixin.EventSubscriptionProperty - Throws:
NullPointerException- if any required attribute was not provided
-