Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
* <!--End PulumiCodeChooser -->
*
* ## Import
*
* EventGrid Domains can be imported using the `resource id`, e.g.
*
* ```sh
* $ pulumi import azure:eventhub/domain:Domain domain1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.EventGrid/domains/domain1
* ```
*
* @deprecated
* azure.eventhub.Domain has been deprecated in favor of azure.eventgrid.Domain
*
*/
@Deprecated /* azure.eventhub.Domain has been deprecated in favor of azure.eventgrid.Domain */
@ResourceType(type="azure:eventhub/domain:Domain")
public class Domain extends com.pulumi.resources.CustomResource {
/**
* Whether to create the domain topic when the first event subscription at the scope of the domain topic is created. Defaults to `true`.
*
*/
@Export(name="autoCreateTopicWithFirstSubscription", refs={Boolean.class}, tree="[0]")
private Output* @Nullable */ Boolean> autoCreateTopicWithFirstSubscription;
/**
* @return Whether to create the domain topic when the first event subscription at the scope of the domain topic is created. Defaults to `true`.
*
*/
public Output> autoCreateTopicWithFirstSubscription() {
return Codegen.optional(this.autoCreateTopicWithFirstSubscription);
}
/**
* Whether to delete the domain topic when the last event subscription at the scope of the domain topic is deleted. Defaults to `true`.
*
*/
@Export(name="autoDeleteTopicWithLastSubscription", refs={Boolean.class}, tree="[0]")
private Output* @Nullable */ Boolean> autoDeleteTopicWithLastSubscription;
/**
* @return Whether to delete the domain topic when the last event subscription at the scope of the domain topic is deleted. Defaults to `true`.
*
*/
public Output> autoDeleteTopicWithLastSubscription() {
return Codegen.optional(this.autoDeleteTopicWithLastSubscription);
}
/**
* The Endpoint associated with the EventGrid Domain.
*
*/
@Export(name="endpoint", refs={String.class}, tree="[0]")
private Output endpoint;
/**
* @return The Endpoint associated with the EventGrid Domain.
*
*/
public Output endpoint() {
return this.endpoint;
}
/**
* An `identity` block as defined below.
*
*/
@Export(name="identity", refs={DomainIdentity.class}, tree="[0]")
private Output* @Nullable */ DomainIdentity> identity;
/**
* @return An `identity` block as defined below.
*
*/
public Output> identity() {
return Codegen.optional(this.identity);
}
/**
* One or more `inbound_ip_rule` blocks as defined below.
*
*/
@Export(name="inboundIpRules", refs={List.class,DomainInboundIpRule.class}, tree="[0,1]")
private Output* @Nullable */ List> inboundIpRules;
/**
* @return One or more `inbound_ip_rule` blocks as defined below.
*
*/
public Output>> inboundIpRules() {
return Codegen.optional(this.inboundIpRules);
}
/**
* A `input_mapping_default_values` block as defined below. Changing this forces a new resource to be created.
*
*/
@Export(name="inputMappingDefaultValues", refs={DomainInputMappingDefaultValues.class}, tree="[0]")
private Output* @Nullable */ DomainInputMappingDefaultValues> inputMappingDefaultValues;
/**
* @return A `input_mapping_default_values` block as defined below. Changing this forces a new resource to be created.
*
*/
public Output> inputMappingDefaultValues() {
return Codegen.optional(this.inputMappingDefaultValues);
}
/**
* A `input_mapping_fields` block as defined below. Changing this forces a new resource to be created.
*
*/
@Export(name="inputMappingFields", refs={DomainInputMappingFields.class}, tree="[0]")
private Output* @Nullable */ DomainInputMappingFields> inputMappingFields;
/**
* @return A `input_mapping_fields` block as defined below. Changing this forces a new resource to be created.
*
*/
public Output> inputMappingFields() {
return Codegen.optional(this.inputMappingFields);
}
/**
* Specifies the schema in which incoming events will be published to this domain. Allowed values are `CloudEventSchemaV1_0`, `CustomEventSchema`, or `EventGridSchema`. Defaults to `EventGridSchema`. Changing this forces a new resource to be created.
*
*/
@Export(name="inputSchema", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> inputSchema;
/**
* @return Specifies the schema in which incoming events will be published to this domain. Allowed values are `CloudEventSchemaV1_0`, `CustomEventSchema`, or `EventGridSchema`. Defaults to `EventGridSchema`. Changing this forces a new resource to be created.
*
*/
public Output> inputSchema() {
return Codegen.optional(this.inputSchema);
}
/**
* Whether local authentication methods is enabled for the EventGrid Domain. Defaults to `true`.
*
*/
@Export(name="localAuthEnabled", refs={Boolean.class}, tree="[0]")
private Output* @Nullable */ Boolean> localAuthEnabled;
/**
* @return Whether local authentication methods is enabled for the EventGrid Domain. Defaults to `true`.
*
*/
public Output> localAuthEnabled() {
return Codegen.optional(this.localAuthEnabled);
}
/**
* Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
*
*/
@Export(name="location", refs={String.class}, tree="[0]")
private Output location;
/**
* @return Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
*
*/
public Output location() {
return this.location;
}
/**
* Specifies the name of the EventGrid Domain resource. Changing this forces a new resource to be created.
*
*/
@Export(name="name", refs={String.class}, tree="[0]")
private Output name;
/**
* @return Specifies the name of the EventGrid Domain resource. Changing this forces a new resource to be created.
*
*/
public Output name() {
return this.name;
}
/**
* The Primary Shared Access Key associated with the EventGrid Domain.
*
*/
@Export(name="primaryAccessKey", refs={String.class}, tree="[0]")
private Output primaryAccessKey;
/**
* @return The Primary Shared Access Key associated with the EventGrid Domain.
*
*/
public Output primaryAccessKey() {
return this.primaryAccessKey;
}
/**
* Whether or not public network access is allowed for this server. Defaults to `true`.
*
*/
@Export(name="publicNetworkAccessEnabled", refs={Boolean.class}, tree="[0]")
private Output* @Nullable */ Boolean> publicNetworkAccessEnabled;
/**
* @return Whether or not public network access is allowed for this server. Defaults to `true`.
*
*/
public Output> publicNetworkAccessEnabled() {
return Codegen.optional(this.publicNetworkAccessEnabled);
}
/**
* The name of the resource group in which the EventGrid Domain exists. Changing this forces a new resource to be created.
*
*/
@Export(name="resourceGroupName", refs={String.class}, tree="[0]")
private Output resourceGroupName;
/**
* @return The name of the resource group in which the EventGrid Domain exists. Changing this forces a new resource to be created.
*
*/
public Output resourceGroupName() {
return this.resourceGroupName;
}
/**
* The Secondary Shared Access Key associated with the EventGrid Domain.
*
*/
@Export(name="secondaryAccessKey", refs={String.class}, tree="[0]")
private Output secondaryAccessKey;
/**
* @return The Secondary Shared Access Key associated with the EventGrid Domain.
*
*/
public Output secondaryAccessKey() {
return this.secondaryAccessKey;
}
/**
* A mapping of tags to assign to the resource.
*
*/
@Export(name="tags", refs={Map.class,String.class}, tree="[0,1,1]")
private Output* @Nullable */ Map> tags;
/**
* @return A mapping of tags to assign to the resource.
*
*/
public Output>> tags() {
return Codegen.optional(this.tags);
}
/**
*
* @param name The _unique_ name of the resulting resource.
*/
public Domain(java.lang.String name) {
this(name, DomainArgs.Empty);
}
/**
*
* @param name The _unique_ name of the resulting resource.
* @param args The arguments to use to populate this resource's properties.
*/
public Domain(java.lang.String name, DomainArgs args) {
this(name, args, null);
}
/**
*
* @param name The _unique_ name of the resulting resource.
* @param args The arguments to use to populate this resource's properties.
* @param options A bag of options that control this resource's behavior.
*/
public Domain(java.lang.String name, DomainArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("azure:eventhub/domain:Domain", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false);
}
private Domain(java.lang.String name, Output id, @Nullable DomainState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("azure:eventhub/domain:Domain", name, state, makeResourceOptions(options, id), false);
}
private static DomainArgs makeArgs(DomainArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
if (options != null && options.getUrn().isPresent()) {
return null;
}
return args == null ? DomainArgs.Empty : args;
}
private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) {
var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder()
.version(Utilities.getVersion())
.additionalSecretOutputs(List.of(
"primaryAccessKey",
"secondaryAccessKey"
))
.build();
return com.pulumi.resources.CustomResourceOptions.merge(defaultOptions, options, id);
}
/**
* Get an existing Host resource's state with the given name, ID, and optional extra
* properties used to qualify the lookup.
*
* @param name The _unique_ name of the resulting resource.
* @param id The _unique_ provider ID of the resource to lookup.
* @param state
* @param options Optional settings to control the behavior of the CustomResource.
*/
public static Domain get(java.lang.String name, Output id, @Nullable DomainState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {
return new Domain(name, id, state, options);
}
}