
com.pulumi.azurenative.eventgrid.inputs.GetEventSubscriptionArgs Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-native Show documentation
Show all versions of azure-native Show documentation
A native Pulumi package for creating and managing Azure resources.
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.azurenative.eventgrid.inputs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
public final class GetEventSubscriptionArgs extends com.pulumi.resources.InvokeArgs {
public static final GetEventSubscriptionArgs Empty = new GetEventSubscriptionArgs();
/**
* Name of the event subscription.
*
*/
@Import(name="eventSubscriptionName", required=true)
private Output eventSubscriptionName;
/**
* @return Name of the event subscription.
*
*/
public Output eventSubscriptionName() {
return this.eventSubscriptionName;
}
/**
* The scope of the event subscription. The scope can be a subscription, or a resource group, or a top level resource belonging to a resource provider namespace, or an EventGrid topic. For example, use '/subscriptions/{subscriptionId}/' for a subscription, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a resource group, and '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}' for a resource, and '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}' for an EventGrid topic.
*
*/
@Import(name="scope", required=true)
private Output scope;
/**
* @return The scope of the event subscription. The scope can be a subscription, or a resource group, or a top level resource belonging to a resource provider namespace, or an EventGrid topic. For example, use '/subscriptions/{subscriptionId}/' for a subscription, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a resource group, and '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}' for a resource, and '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}' for an EventGrid topic.
*
*/
public Output scope() {
return this.scope;
}
private GetEventSubscriptionArgs() {}
private GetEventSubscriptionArgs(GetEventSubscriptionArgs $) {
this.eventSubscriptionName = $.eventSubscriptionName;
this.scope = $.scope;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetEventSubscriptionArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private GetEventSubscriptionArgs $;
public Builder() {
$ = new GetEventSubscriptionArgs();
}
public Builder(GetEventSubscriptionArgs defaults) {
$ = new GetEventSubscriptionArgs(Objects.requireNonNull(defaults));
}
/**
* @param eventSubscriptionName Name of the event subscription.
*
* @return builder
*
*/
public Builder eventSubscriptionName(Output eventSubscriptionName) {
$.eventSubscriptionName = eventSubscriptionName;
return this;
}
/**
* @param eventSubscriptionName Name of the event subscription.
*
* @return builder
*
*/
public Builder eventSubscriptionName(String eventSubscriptionName) {
return eventSubscriptionName(Output.of(eventSubscriptionName));
}
/**
* @param scope The scope of the event subscription. The scope can be a subscription, or a resource group, or a top level resource belonging to a resource provider namespace, or an EventGrid topic. For example, use '/subscriptions/{subscriptionId}/' for a subscription, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a resource group, and '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}' for a resource, and '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}' for an EventGrid topic.
*
* @return builder
*
*/
public Builder scope(Output scope) {
$.scope = scope;
return this;
}
/**
* @param scope The scope of the event subscription. The scope can be a subscription, or a resource group, or a top level resource belonging to a resource provider namespace, or an EventGrid topic. For example, use '/subscriptions/{subscriptionId}/' for a subscription, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a resource group, and '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}' for a resource, and '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}' for an EventGrid topic.
*
* @return builder
*
*/
public Builder scope(String scope) {
return scope(Output.of(scope));
}
public GetEventSubscriptionArgs build() {
if ($.eventSubscriptionName == null) {
throw new MissingRequiredPropertyException("GetEventSubscriptionArgs", "eventSubscriptionName");
}
if ($.scope == null) {
throw new MissingRequiredPropertyException("GetEventSubscriptionArgs", "scope");
}
return $;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy