Package com.pulumi.azurenative.eventgrid
Class PartnerTopicEventSubscription
- java.lang.Object
-
- com.pulumi.resources.Resource
-
- com.pulumi.resources.CustomResource
-
- com.pulumi.azurenative.eventgrid.PartnerTopicEventSubscription
-
public class PartnerTopicEventSubscription 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, 2024-06-01-preview. ## Example Usage ### PartnerTopicEventSubscriptions_CreateOrUpdate ```java package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.azurenative.eventgrid.PartnerTopicEventSubscription; import com.pulumi.azurenative.eventgrid.PartnerTopicEventSubscriptionArgs; import com.pulumi.azurenative.eventgrid.inputs.EventSubscriptionFilterArgs; 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 partnerTopicEventSubscription = new PartnerTopicEventSubscription("partnerTopicEventSubscription", PartnerTopicEventSubscriptionArgs.builder() .destination(WebHookEventSubscriptionDestinationArgs.builder() .endpointType("WebHook") .endpointUrl("https://requestb.in/15ksip71") .build()) .eventSubscriptionName("exampleEventSubscriptionName1") .filter(EventSubscriptionFilterArgs.builder() .isSubjectCaseSensitive(false) .subjectBeginsWith("ExamplePrefix") .subjectEndsWith("ExampleSuffix") .build()) .partnerTopicName("examplePartnerTopic1") .resourceGroupName("examplerg") .build()); } } ``` ## Import An existing resource can be imported using its type token, name, and identifier, e.g. ```sh $ pulumi import azure-native:eventgrid:PartnerTopicEventSubscription exampleEventSubscriptionName1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerTopics/{partnerTopicName}/eventSubscriptions/{eventSubscriptionName} ```
-
-
Constructor Summary
Constructors Constructor Description PartnerTopicEventSubscription(java.lang.String name)
PartnerTopicEventSubscription(java.lang.String name, PartnerTopicEventSubscriptionArgs args)
PartnerTopicEventSubscription(java.lang.String name, PartnerTopicEventSubscriptionArgs args, com.pulumi.resources.CustomResourceOptions options)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.pulumi.core.Output<java.util.Optional<StorageBlobDeadLetterDestinationResponse>>
deadLetterDestination()
com.pulumi.core.Output<java.util.Optional<DeadLetterWithResourceIdentityResponse>>
deadLetterWithResourceIdentity()
com.pulumi.core.Output<java.util.Optional<DeliveryWithResourceIdentityResponse>>
deliveryWithResourceIdentity()
com.pulumi.core.Output<java.util.Optional<java.lang.Object>>
destination()
com.pulumi.core.Output<java.util.Optional<java.lang.String>>
eventDeliverySchema()
com.pulumi.core.Output<java.util.Optional<java.lang.String>>
expirationTimeUtc()
com.pulumi.core.Output<java.util.Optional<EventSubscriptionFilterResponse>>
filter()
static PartnerTopicEventSubscription
get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, 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.com.pulumi.core.Output<java.util.Optional<java.util.List<java.lang.String>>>
labels()
com.pulumi.core.Output<java.lang.String>
name()
com.pulumi.core.Output<java.lang.String>
provisioningState()
com.pulumi.core.Output<java.util.Optional<RetryPolicyResponse>>
retryPolicy()
com.pulumi.core.Output<SystemDataResponse>
systemData()
com.pulumi.core.Output<java.lang.String>
topic()
com.pulumi.core.Output<java.lang.String>
type()
-
-
-
Constructor Detail
-
PartnerTopicEventSubscription
public PartnerTopicEventSubscription(java.lang.String name)
- Parameters:
name
- The _unique_ name of the resulting resource.
-
PartnerTopicEventSubscription
public PartnerTopicEventSubscription(java.lang.String name, PartnerTopicEventSubscriptionArgs args)
- Parameters:
name
- The _unique_ name of the resulting resource.args
- The arguments to use to populate this resource's properties.
-
PartnerTopicEventSubscription
public PartnerTopicEventSubscription(java.lang.String name, PartnerTopicEventSubscriptionArgs 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 PartnerTopicEventSubscription 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.
-
-