Class SystemTopicEventSubscription


  • public class SystemTopicEventSubscription
    extends com.pulumi.resources.CustomResource
    Event Subscription Azure REST API version: 2022-06-15. Prior API version in Azure Native 1.x: 2020-04-01-preview. Other available API versions: 2023-06-01-preview, 2023-12-15-preview. ## Example Usage ### SystemTopicEventSubscriptions_CreateOrUpdate ```java package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.azurenative.eventgrid.SystemTopicEventSubscription; import com.pulumi.azurenative.eventgrid.SystemTopicEventSubscriptionArgs; import java.util.List; import java.util.ArrayList; import java.util.Map; import java.io.File; import java.nio.file.Files; import java.nio.file.Paths; public class App { public static void main(String[] args) { Pulumi.run(App::stack); } public static void stack(Context ctx) { var systemTopicEventSubscription = new SystemTopicEventSubscription("systemTopicEventSubscription", SystemTopicEventSubscriptionArgs.builder() .destination(Map.ofEntries( Map.entry("endpointType", "WebHook"), Map.entry("endpointUrl", "https://requestb.in/15ksip71") )) .eventSubscriptionName("exampleEventSubscriptionName1") .filter(Map.ofEntries( Map.entry("isSubjectCaseSensitive", false), Map.entry("subjectBeginsWith", "ExamplePrefix"), Map.entry("subjectEndsWith", "ExampleSuffix") )) .resourceGroupName("examplerg") .systemTopicName("exampleSystemTopic1") .build()); } } ``` ## Import An existing resource can be imported using its type token, name, and identifier, e.g. ```sh $ pulumi import azure-native:eventgrid:SystemTopicEventSubscription exampleEventSubscriptionName1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/systemTopics/{systemTopicName}/eventSubscriptions/{eventSubscriptionName} ```
    • Constructor Detail

      • SystemTopicEventSubscription

        public SystemTopicEventSubscription​(java.lang.String name)
        Parameters:
        name - The _unique_ name of the resulting resource.
      • SystemTopicEventSubscription

        public SystemTopicEventSubscription​(java.lang.String name,
                                            SystemTopicEventSubscriptionArgs args)
        Parameters:
        name - The _unique_ name of the resulting resource.
        args - The arguments to use to populate this resource's properties.
      • SystemTopicEventSubscription

        public SystemTopicEventSubscription​(java.lang.String name,
                                            SystemTopicEventSubscriptionArgs args,
                                            @Nullable
                                            com.pulumi.resources.CustomResourceOptions options)
        Parameters:
        name - The _unique_ name of the resulting resource.
        args - The arguments to use to populate this resource's properties.
        options - A bag of options that control this resource's behavior.
    • Method Detail

      • deadLetterDestination

        public com.pulumi.core.Output<java.util.Optional<StorageBlobDeadLetterDestinationResponse>> deadLetterDestination()
        Returns:
        The dead letter destination of the event subscription. Any event that cannot be delivered to its' destination is sent to the dead letter destination. Uses Azure Event Grid's identity to acquire the authentication tokens being used during delivery / dead-lettering.
      • deadLetterWithResourceIdentity

        public com.pulumi.core.Output<java.util.Optional<DeadLetterWithResourceIdentityResponse>> deadLetterWithResourceIdentity()
        Returns:
        The dead letter destination of the event subscription. Any event that cannot be delivered to its' destination is sent to the dead letter destination. Uses the managed identity setup on the parent resource (namely, topic or domain) to acquire the authentication tokens being used during delivery / dead-lettering.
      • deliveryWithResourceIdentity

        public com.pulumi.core.Output<java.util.Optional<DeliveryWithResourceIdentityResponse>> deliveryWithResourceIdentity()
        Returns:
        Information about the destination where events have to be delivered for the event subscription. Uses the managed identity setup on the parent resource (namely, topic or domain) to acquire the authentication tokens being used during delivery / dead-lettering.
      • destination

        public com.pulumi.core.Output<java.util.Optional<java.lang.Object>> destination()
        Returns:
        Information about the destination where events have to be delivered for the event subscription. Uses Azure Event Grid's identity to acquire the authentication tokens being used during delivery / dead-lettering.
      • eventDeliverySchema

        public com.pulumi.core.Output<java.util.Optional<java.lang.String>> eventDeliverySchema()
        Returns:
        The event delivery schema for the event subscription.
      • expirationTimeUtc

        public com.pulumi.core.Output<java.util.Optional<java.lang.String>> expirationTimeUtc()
        Returns:
        Expiration time of the event subscription.
      • filter

        public com.pulumi.core.Output<java.util.Optional<EventSubscriptionFilterResponse>> filter()
        Returns:
        Information about the filter for the event subscription.
      • labels

        public com.pulumi.core.Output<java.util.Optional<java.util.List<java.lang.String>>> labels()
        Returns:
        List of user defined labels.
      • name

        public com.pulumi.core.Output<java.lang.String> name()
        Returns:
        Name of the resource.
      • provisioningState

        public com.pulumi.core.Output<java.lang.String> provisioningState()
        Returns:
        Provisioning state of the event subscription.
      • retryPolicy

        public com.pulumi.core.Output<java.util.Optional<RetryPolicyResponse>> retryPolicy()
        Returns:
        The retry policy for events. This can be used to configure maximum number of delivery attempts and time to live for events.
      • systemData

        public com.pulumi.core.Output<SystemDataResponse> systemData()
        Returns:
        The system metadata relating to Event Subscription resource.
      • topic

        public com.pulumi.core.Output<java.lang.String> topic()
        Returns:
        Name of the topic of the event subscription.
      • type

        public com.pulumi.core.Output<java.lang.String> type()
        Returns:
        Type of the resource.
      • get

        public static SystemTopicEventSubscription get​(java.lang.String name,
                                                       com.pulumi.core.Output<java.lang.String> id,
                                                       @Nullable
                                                       com.pulumi.resources.CustomResourceOptions options)
        Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
        Parameters:
        name - The _unique_ name of the resulting resource.
        id - The _unique_ provider ID of the resource to lookup.
        options - Optional settings to control the behavior of the CustomResource.