Class TopicSubscriptionArgs.Builder

  • Enclosing class:
    TopicSubscriptionArgs

    public static final class TopicSubscriptionArgs.Builder
    extends java.lang.Object
    • Method Detail

      • confirmationTimeoutInMinutes

        public TopicSubscriptionArgs.Builder confirmationTimeoutInMinutes​(@Nullable
                                                                          com.pulumi.core.Output<java.lang.Integer> confirmationTimeoutInMinutes)
        Parameters:
        confirmationTimeoutInMinutes - Integer indicating number of minutes to wait in retrying mode for fetching subscription arn before marking it as failure. Only applicable for http and https protocols. Default is `1`.
        Returns:
        builder
      • confirmationTimeoutInMinutes

        public TopicSubscriptionArgs.Builder confirmationTimeoutInMinutes​(java.lang.Integer confirmationTimeoutInMinutes)
        Parameters:
        confirmationTimeoutInMinutes - Integer indicating number of minutes to wait in retrying mode for fetching subscription arn before marking it as failure. Only applicable for http and https protocols. Default is `1`.
        Returns:
        builder
      • deliveryPolicy

        public TopicSubscriptionArgs.Builder deliveryPolicy​(@Nullable
                                                            com.pulumi.core.Output<java.lang.String> deliveryPolicy)
        Parameters:
        deliveryPolicy - JSON String with the delivery policy (retries, backoff, etc.) that will be used in the subscription - this only applies to HTTP/S subscriptions. Refer to the [SNS docs](https://docs.aws.amazon.com/sns/latest/dg/DeliveryPolicies.html) for more details.
        Returns:
        builder
      • deliveryPolicy

        public TopicSubscriptionArgs.Builder deliveryPolicy​(java.lang.String deliveryPolicy)
        Parameters:
        deliveryPolicy - JSON String with the delivery policy (retries, backoff, etc.) that will be used in the subscription - this only applies to HTTP/S subscriptions. Refer to the [SNS docs](https://docs.aws.amazon.com/sns/latest/dg/DeliveryPolicies.html) for more details.
        Returns:
        builder
      • endpoint

        public TopicSubscriptionArgs.Builder endpoint​(com.pulumi.core.Output<java.lang.String> endpoint)
        Parameters:
        endpoint - Endpoint to send data to. The contents vary with the protocol. See details below.
        Returns:
        builder
      • endpoint

        public TopicSubscriptionArgs.Builder endpoint​(java.lang.String endpoint)
        Parameters:
        endpoint - Endpoint to send data to. The contents vary with the protocol. See details below.
        Returns:
        builder
      • endpointAutoConfirms

        public TopicSubscriptionArgs.Builder endpointAutoConfirms​(@Nullable
                                                                  com.pulumi.core.Output<java.lang.Boolean> endpointAutoConfirms)
        Parameters:
        endpointAutoConfirms - Whether the endpoint is capable of [auto confirming subscription](http://docs.aws.amazon.com/sns/latest/dg/SendMessageToHttp.html#SendMessageToHttp.prepare) (e.g., PagerDuty). Default is `false`.
        Returns:
        builder
      • endpointAutoConfirms

        public TopicSubscriptionArgs.Builder endpointAutoConfirms​(java.lang.Boolean endpointAutoConfirms)
        Parameters:
        endpointAutoConfirms - Whether the endpoint is capable of [auto confirming subscription](http://docs.aws.amazon.com/sns/latest/dg/SendMessageToHttp.html#SendMessageToHttp.prepare) (e.g., PagerDuty). Default is `false`.
        Returns:
        builder
      • filterPolicy

        public TopicSubscriptionArgs.Builder filterPolicy​(@Nullable
                                                          com.pulumi.core.Output<java.lang.String> filterPolicy)
        Parameters:
        filterPolicy - JSON String with the filter policy that will be used in the subscription to filter messages seen by the target resource. Refer to the [SNS docs](https://docs.aws.amazon.com/sns/latest/dg/message-filtering.html) for more details.
        Returns:
        builder
      • filterPolicy

        public TopicSubscriptionArgs.Builder filterPolicy​(java.lang.String filterPolicy)
        Parameters:
        filterPolicy - JSON String with the filter policy that will be used in the subscription to filter messages seen by the target resource. Refer to the [SNS docs](https://docs.aws.amazon.com/sns/latest/dg/message-filtering.html) for more details.
        Returns:
        builder
      • filterPolicyScope

        public TopicSubscriptionArgs.Builder filterPolicyScope​(@Nullable
                                                               com.pulumi.core.Output<java.lang.String> filterPolicyScope)
        Parameters:
        filterPolicyScope - Whether the `filter_policy` applies to `MessageAttributes` (default) or `MessageBody`.
        Returns:
        builder
      • filterPolicyScope

        public TopicSubscriptionArgs.Builder filterPolicyScope​(java.lang.String filterPolicyScope)
        Parameters:
        filterPolicyScope - Whether the `filter_policy` applies to `MessageAttributes` (default) or `MessageBody`.
        Returns:
        builder
      • protocol

        public TopicSubscriptionArgs.Builder protocol​(com.pulumi.core.Output<java.lang.String> protocol)
        Parameters:
        protocol - Protocol to use. Valid values are: `sqs`, `sms`, `lambda`, `firehose`, and `application`. Protocols `email`, `email-json`, `http` and `https` are also valid but partially supported. See details below.
        Returns:
        builder
      • protocol

        public TopicSubscriptionArgs.Builder protocol​(java.lang.String protocol)
        Parameters:
        protocol - Protocol to use. Valid values are: `sqs`, `sms`, `lambda`, `firehose`, and `application`. Protocols `email`, `email-json`, `http` and `https` are also valid but partially supported. See details below.
        Returns:
        builder
      • rawMessageDelivery

        public TopicSubscriptionArgs.Builder rawMessageDelivery​(@Nullable
                                                                com.pulumi.core.Output<java.lang.Boolean> rawMessageDelivery)
        Parameters:
        rawMessageDelivery - Whether to enable raw message delivery (the original message is directly passed, not wrapped in JSON with the original message in the message property). Default is `false`.
        Returns:
        builder
      • rawMessageDelivery

        public TopicSubscriptionArgs.Builder rawMessageDelivery​(java.lang.Boolean rawMessageDelivery)
        Parameters:
        rawMessageDelivery - Whether to enable raw message delivery (the original message is directly passed, not wrapped in JSON with the original message in the message property). Default is `false`.
        Returns:
        builder
      • redrivePolicy

        public TopicSubscriptionArgs.Builder redrivePolicy​(@Nullable
                                                           com.pulumi.core.Output<java.lang.String> redrivePolicy)
        Parameters:
        redrivePolicy - JSON String with the redrive policy that will be used in the subscription. Refer to the [SNS docs](https://docs.aws.amazon.com/sns/latest/dg/sns-dead-letter-queues.html#how-messages-moved-into-dead-letter-queue) for more details.
        Returns:
        builder
      • redrivePolicy

        public TopicSubscriptionArgs.Builder redrivePolicy​(java.lang.String redrivePolicy)
        Parameters:
        redrivePolicy - JSON String with the redrive policy that will be used in the subscription. Refer to the [SNS docs](https://docs.aws.amazon.com/sns/latest/dg/sns-dead-letter-queues.html#how-messages-moved-into-dead-letter-queue) for more details.
        Returns:
        builder
      • replayPolicy

        public TopicSubscriptionArgs.Builder replayPolicy​(@Nullable
                                                          com.pulumi.core.Output<java.lang.String> replayPolicy)
        Parameters:
        replayPolicy - JSON String with the archived message replay policy that will be used in the subscription. Refer to the [SNS docs](https://docs.aws.amazon.com/sns/latest/dg/message-archiving-and-replay-subscriber.html) for more details.
        Returns:
        builder
      • replayPolicy

        public TopicSubscriptionArgs.Builder replayPolicy​(java.lang.String replayPolicy)
        Parameters:
        replayPolicy - JSON String with the archived message replay policy that will be used in the subscription. Refer to the [SNS docs](https://docs.aws.amazon.com/sns/latest/dg/message-archiving-and-replay-subscriber.html) for more details.
        Returns:
        builder
      • subscriptionRoleArn

        public TopicSubscriptionArgs.Builder subscriptionRoleArn​(@Nullable
                                                                 com.pulumi.core.Output<java.lang.String> subscriptionRoleArn)
        Parameters:
        subscriptionRoleArn - ARN of the IAM role to publish to Kinesis Data Firehose delivery stream. Refer to [SNS docs](https://docs.aws.amazon.com/sns/latest/dg/sns-firehose-as-subscriber.html).
        Returns:
        builder
      • subscriptionRoleArn

        public TopicSubscriptionArgs.Builder subscriptionRoleArn​(java.lang.String subscriptionRoleArn)
        Parameters:
        subscriptionRoleArn - ARN of the IAM role to publish to Kinesis Data Firehose delivery stream. Refer to [SNS docs](https://docs.aws.amazon.com/sns/latest/dg/sns-firehose-as-subscriber.html).
        Returns:
        builder
      • topic

        public TopicSubscriptionArgs.Builder topic​(com.pulumi.core.Output<java.lang.String> topic)
        Parameters:
        topic - ARN of the SNS topic to subscribe to. The following arguments are optional:
        Returns:
        builder
      • topic

        public TopicSubscriptionArgs.Builder topic​(java.lang.String topic)
        Parameters:
        topic - ARN of the SNS topic to subscribe to. The following arguments are optional:
        Returns:
        builder