Class CfnSubscriptionMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSubscriptionMixinProps>
- Enclosing interface:
CfnSubscriptionMixinProps
CfnSubscriptionMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.deliveryPolicy(Object deliveryPolicy) Sets the value ofCfnSubscriptionMixinProps.getDeliveryPolicy()Sets the value ofCfnSubscriptionMixinProps.getEndpoint()endpoint(IDeliveryStreamRef endpoint) Sets the value ofCfnSubscriptionMixinProps.getEndpoint()endpoint(IFunctionRef endpoint) Sets the value ofCfnSubscriptionMixinProps.getEndpoint()endpoint(IVersionRef endpoint) Sets the value ofCfnSubscriptionMixinProps.getEndpoint()Sets the value ofCfnSubscriptionMixinProps.getEndpoint()filterPolicy(Object filterPolicy) Sets the value ofCfnSubscriptionMixinProps.getFilterPolicy()filterPolicyScope(String filterPolicyScope) Sets the value ofCfnSubscriptionMixinProps.getFilterPolicyScope()Sets the value ofCfnSubscriptionMixinProps.getProtocol()rawMessageDelivery(Boolean rawMessageDelivery) Sets the value ofCfnSubscriptionMixinProps.getRawMessageDelivery()rawMessageDelivery(IResolvable rawMessageDelivery) Sets the value ofCfnSubscriptionMixinProps.getRawMessageDelivery()redrivePolicy(Object redrivePolicy) Sets the value ofCfnSubscriptionMixinProps.getRedrivePolicy()Sets the value ofCfnSubscriptionMixinProps.getRegion()replayPolicy(Object replayPolicy) Sets the value ofCfnSubscriptionMixinProps.getReplayPolicy()subscriptionRoleArn(String subscriptionRoleArn) Sets the value ofCfnSubscriptionMixinProps.getSubscriptionRoleArn()subscriptionRoleArn(IRoleRef subscriptionRoleArn) Sets the value ofCfnSubscriptionMixinProps.getSubscriptionRoleArn()Sets the value ofCfnSubscriptionMixinProps.getTopicArn()Sets the value ofCfnSubscriptionMixinProps.getTopicArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
deliveryPolicy
Sets the value ofCfnSubscriptionMixinProps.getDeliveryPolicy()- Parameters:
deliveryPolicy- The delivery policy JSON assigned to the subscription. Enables the subscriber to define the message delivery retry strategy in the case of an HTTP/S endpoint subscribed to the topic. For more information, see[GetSubscriptionAttributes](https://docs.aws.amazon.com/sns/latest/api/API_GetSubscriptionAttributes.html)in the Amazon API Reference and Message delivery retries in the Amazon Developer Guide .- Returns:
this
-
endpoint
Sets the value ofCfnSubscriptionMixinProps.getEndpoint()- Parameters:
endpoint- The subscription's endpoint. The endpoint value depends on the protocol that you specify. For more information, see theEndpointparameter of the[Subscribe](https://docs.aws.amazon.com/sns/latest/api/API_Subscribe.html)action in the Amazon API Reference .- Returns:
this
-
endpoint
Sets the value ofCfnSubscriptionMixinProps.getEndpoint()- Parameters:
endpoint- The subscription's endpoint. The endpoint value depends on the protocol that you specify. For more information, see theEndpointparameter of the[Subscribe](https://docs.aws.amazon.com/sns/latest/api/API_Subscribe.html)action in the Amazon API Reference .- Returns:
this
-
endpoint
Sets the value ofCfnSubscriptionMixinProps.getEndpoint()- Parameters:
endpoint- The subscription's endpoint. The endpoint value depends on the protocol that you specify. For more information, see theEndpointparameter of the[Subscribe](https://docs.aws.amazon.com/sns/latest/api/API_Subscribe.html)action in the Amazon API Reference .- Returns:
this
-
endpoint
Sets the value ofCfnSubscriptionMixinProps.getEndpoint()- Parameters:
endpoint- The subscription's endpoint. The endpoint value depends on the protocol that you specify. For more information, see theEndpointparameter of the[Subscribe](https://docs.aws.amazon.com/sns/latest/api/API_Subscribe.html)action in the Amazon API Reference .- Returns:
this
-
endpoint
Sets the value ofCfnSubscriptionMixinProps.getEndpoint()- Parameters:
endpoint- The subscription's endpoint. The endpoint value depends on the protocol that you specify. For more information, see theEndpointparameter of the[Subscribe](https://docs.aws.amazon.com/sns/latest/api/API_Subscribe.html)action in the Amazon API Reference .- Returns:
this
-
filterPolicy
Sets the value ofCfnSubscriptionMixinProps.getFilterPolicy()- Parameters:
filterPolicy- The filter policy JSON assigned to the subscription. Enables the subscriber to filter out unwanted messages. For more information, see[GetSubscriptionAttributes](https://docs.aws.amazon.com/sns/latest/api/API_GetSubscriptionAttributes.html)in the Amazon API Reference and Message filtering in the Amazon Developer Guide .- Returns:
this
-
filterPolicyScope
@Stability(Stable) public CfnSubscriptionMixinProps.Builder filterPolicyScope(String filterPolicyScope) Sets the value ofCfnSubscriptionMixinProps.getFilterPolicyScope()- Parameters:
filterPolicyScope- This attribute lets you choose the filtering scope by using one of the following string value types:.MessageAttributes(default) - The filter is applied on the message attributes.MessageBody- The filter is applied on the message body.
Nullis not a valid value forFilterPolicyScope. To delete a filter policy, delete theFilterPolicyproperty but keepFilterPolicyScopeproperty as is.- Returns:
this
-
protocol
Sets the value ofCfnSubscriptionMixinProps.getProtocol()- Parameters:
protocol- The subscription's protocol. For more information, see theProtocolparameter of the[Subscribe](https://docs.aws.amazon.com/sns/latest/api/API_Subscribe.html)action in the Amazon API Reference .- Returns:
this
-
rawMessageDelivery
@Stability(Stable) public CfnSubscriptionMixinProps.Builder rawMessageDelivery(Boolean rawMessageDelivery) Sets the value ofCfnSubscriptionMixinProps.getRawMessageDelivery()- Parameters:
rawMessageDelivery- When set totrue, enables raw message delivery. Raw messages don't contain any JSON formatting and can be sent to Amazon SQS and HTTP/S endpoints. For more information, see[GetSubscriptionAttributes](https://docs.aws.amazon.com/sns/latest/api/API_GetSubscriptionAttributes.html)in the Amazon API Reference .- Returns:
this
-
rawMessageDelivery
@Stability(Stable) public CfnSubscriptionMixinProps.Builder rawMessageDelivery(IResolvable rawMessageDelivery) Sets the value ofCfnSubscriptionMixinProps.getRawMessageDelivery()- Parameters:
rawMessageDelivery- When set totrue, enables raw message delivery. Raw messages don't contain any JSON formatting and can be sent to Amazon SQS and HTTP/S endpoints. For more information, see[GetSubscriptionAttributes](https://docs.aws.amazon.com/sns/latest/api/API_GetSubscriptionAttributes.html)in the Amazon API Reference .- Returns:
this
-
redrivePolicy
Sets the value ofCfnSubscriptionMixinProps.getRedrivePolicy()- Parameters:
redrivePolicy- When specified, sends undeliverable messages to the specified Amazon SQS dead-letter queue. Messages that can't be delivered due to client errors (for example, when the subscribed endpoint is unreachable) or server errors (for example, when the service that powers the subscribed endpoint becomes unavailable) are held in the dead-letter queue for further analysis or reprocessing.For more information about the redrive policy and dead-letter queues, see Amazon SQS dead-letter queues in the Amazon SQS Developer Guide .
- Returns:
this
-
region
Sets the value ofCfnSubscriptionMixinProps.getRegion()- Parameters:
region- For cross-region subscriptions, the region in which the topic resides. If no region is specified, CloudFormation uses the region of the caller as the default.If you perform an update operation that only updates the
Regionproperty of aAWS::SNS::Subscriptionresource, that operation will fail unless you are either:- Updating the
RegionfromNULLto the caller region. - Updating the
Regionfrom the caller region toNULL.
- Updating the
- Returns:
this
-
replayPolicy
Sets the value ofCfnSubscriptionMixinProps.getReplayPolicy()- Parameters:
replayPolicy- Specifies whether Amazon resends the notification to the subscription when a message's attribute changes.- Returns:
this
-
subscriptionRoleArn
@Stability(Stable) public CfnSubscriptionMixinProps.Builder subscriptionRoleArn(String subscriptionRoleArn) Sets the value ofCfnSubscriptionMixinProps.getSubscriptionRoleArn()- Parameters:
subscriptionRoleArn- This property applies only to Amazon Data Firehose delivery stream subscriptions. Specify the ARN of the IAM role that has the following:- Permission to write to the Amazon Data Firehose delivery stream
- Amazon listed as a trusted entity
Specifying a valid ARN for this attribute is required for Firehose delivery stream subscriptions. For more information, see Fanout to Amazon Data Firehose delivery streams in the Amazon Developer Guide.
- Returns:
this
-
subscriptionRoleArn
@Stability(Stable) public CfnSubscriptionMixinProps.Builder subscriptionRoleArn(IRoleRef subscriptionRoleArn) Sets the value ofCfnSubscriptionMixinProps.getSubscriptionRoleArn()- Parameters:
subscriptionRoleArn- This property applies only to Amazon Data Firehose delivery stream subscriptions. Specify the ARN of the IAM role that has the following:- Permission to write to the Amazon Data Firehose delivery stream
- Amazon listed as a trusted entity
Specifying a valid ARN for this attribute is required for Firehose delivery stream subscriptions. For more information, see Fanout to Amazon Data Firehose delivery streams in the Amazon Developer Guide.
- Returns:
this
-
topicArn
Sets the value ofCfnSubscriptionMixinProps.getTopicArn()- Parameters:
topicArn- The ARN of the topic to subscribe to.- Returns:
this
-
topicArn
Sets the value ofCfnSubscriptionMixinProps.getTopicArn()- Parameters:
topicArn- The ARN of the topic to subscribe to.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnSubscriptionMixinProps>- Returns:
- a new instance of
CfnSubscriptionMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-