Class Domain


  • public class Domain
    extends com.pulumi.resources.CustomResource
    EventGrid Domain. Azure REST API version: 2022-06-15. Prior API version in Azure Native 1.x: 2020-06-01. Other available API versions: 2020-04-01-preview, 2023-06-01-preview, 2023-12-15-preview, 2024-06-01-preview. ## Example Usage ### Domains_CreateOrUpdate ```java package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.azurenative.eventgrid.Domain; import com.pulumi.azurenative.eventgrid.DomainArgs; import com.pulumi.azurenative.eventgrid.inputs.InboundIpRuleArgs; 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 domain = new Domain("domain", DomainArgs.builder() .domainName("exampledomain1") .inboundIpRules( InboundIpRuleArgs.builder() .action("Allow") .ipMask("12.18.30.15") .build(), InboundIpRuleArgs.builder() .action("Allow") .ipMask("12.18.176.1") .build()) .location("westus2") .publicNetworkAccess("Enabled") .resourceGroupName("examplerg") .tags(Map.ofEntries( Map.entry("tag1", "value1"), Map.entry("tag2", "value2") )) .build()); } } ``` ## Import An existing resource can be imported using its type token, name, and identifier, e.g. ```sh $ pulumi import azure-native:eventgrid:Domain exampledomain1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/domains/{domainName} ```
    • Nested Class Summary

      • Nested classes/interfaces inherited from class com.pulumi.resources.CustomResource

        com.pulumi.resources.CustomResource.CustomResourceInternal
      • Nested classes/interfaces inherited from class com.pulumi.resources.Resource

        com.pulumi.resources.Resource.LazyField<T extends java.lang.Object>, com.pulumi.resources.Resource.LazyFields, com.pulumi.resources.Resource.ResourceInternal
    • Field Summary

      • Fields inherited from class com.pulumi.resources.Resource

        childResources, remote
    • Constructor Summary

      Constructors 
      Constructor Description
      Domain​(java.lang.String name)  
      Domain​(java.lang.String name, DomainArgs args)  
      Domain​(java.lang.String name, DomainArgs args, com.pulumi.resources.CustomResourceOptions options)  
    • Constructor Detail

      • Domain

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

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

        public Domain​(java.lang.String name,
                      DomainArgs 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

      • autoCreateTopicWithFirstSubscription

        public com.pulumi.core.Output<java.util.Optional<java.lang.Boolean>> autoCreateTopicWithFirstSubscription()
        Returns:
        This Boolean is used to specify the creation mechanism for 'all' the Event Grid Domain Topics associated with this Event Grid Domain resource. In this context, creation of domain topic can be auto-managed (when true) or self-managed (when false). The default value for this property is true. When this property is null or set to true, Event Grid is responsible of automatically creating the domain topic when the first event subscription is created at the scope of the domain topic. If this property is set to false, then creating the first event subscription will require creating a domain topic by the user. The self-management mode can be used if the user wants full control of when the domain topic is created, while auto-managed mode provides the flexibility to perform less operations and manage fewer resources by the user. Also, note that in auto-managed creation mode, user is allowed to create the domain topic on demand if needed.
      • autoDeleteTopicWithLastSubscription

        public com.pulumi.core.Output<java.util.Optional<java.lang.Boolean>> autoDeleteTopicWithLastSubscription()
        Returns:
        This Boolean is used to specify the deletion mechanism for 'all' the Event Grid Domain Topics associated with this Event Grid Domain resource. In this context, deletion of domain topic can be auto-managed (when true) or self-managed (when false). The default value for this property is true. When this property is set to true, Event Grid is responsible of automatically deleting the domain topic when the last event subscription at the scope of the domain topic is deleted. If this property is set to false, then the user needs to manually delete the domain topic when it is no longer needed (e.g., when last event subscription is deleted and the resource needs to be cleaned up). The self-management mode can be used if the user wants full control of when the domain topic needs to be deleted, while auto-managed mode provides the flexibility to perform less operations and manage fewer resources by the user.
      • dataResidencyBoundary

        public com.pulumi.core.Output<java.util.Optional<java.lang.String>> dataResidencyBoundary()
        Returns:
        Data Residency Boundary of the resource.
      • disableLocalAuth

        public com.pulumi.core.Output<java.util.Optional<java.lang.Boolean>> disableLocalAuth()
        Returns:
        This boolean is used to enable or disable local auth. Default value is false. When the property is set to true, only AAD token will be used to authenticate if user is allowed to publish to the domain.
      • endpoint

        public com.pulumi.core.Output<java.lang.String> endpoint()
        Returns:
        Endpoint for the Event Grid Domain Resource which is used for publishing the events.
      • identity

        public com.pulumi.core.Output<java.util.Optional<IdentityInfoResponse>> identity()
        Returns:
        Identity information for the Event Grid Domain resource.
      • inboundIpRules

        public com.pulumi.core.Output<java.util.Optional<java.util.List<InboundIpRuleResponse>>> inboundIpRules()
        Returns:
        This can be used to restrict traffic from specific IPs instead of all IPs. Note: These are considered only if PublicNetworkAccess is enabled.
      • inputSchema

        public com.pulumi.core.Output<java.util.Optional<java.lang.String>> inputSchema()
        Returns:
        This determines the format that Event Grid should expect for incoming events published to the Event Grid Domain Resource.
      • inputSchemaMapping

        public com.pulumi.core.Output<java.util.Optional<JsonInputSchemaMappingResponse>> inputSchemaMapping()
        Returns:
        Information about the InputSchemaMapping which specified the info about mapping event payload.
      • location

        public com.pulumi.core.Output<java.lang.String> location()
        Returns:
        Location of the resource.
      • metricResourceId

        public com.pulumi.core.Output<java.lang.String> metricResourceId()
        Returns:
        Metric resource id for the Event Grid Domain Resource.
      • name

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

        public com.pulumi.core.Output<java.util.List<PrivateEndpointConnectionResponse>> privateEndpointConnections()
        Returns:
        List of private endpoint connections.
      • provisioningState

        public com.pulumi.core.Output<java.lang.String> provisioningState()
        Returns:
        Provisioning state of the Event Grid Domain Resource.
      • publicNetworkAccess

        public com.pulumi.core.Output<java.util.Optional<java.lang.String>> publicNetworkAccess()
        Returns:
        This determines if traffic is allowed over public network. By default it is enabled. You can further restrict to specific IPs by configuring <seealso cref="P:Microsoft.Azure.Events.ResourceProvider.Common.Contracts.DomainProperties.InboundIpRules" />
      • systemData

        public com.pulumi.core.Output<SystemDataResponse> systemData()
        Returns:
        The system metadata relating to the Event Grid Domain resource.
      • tags

        public com.pulumi.core.Output<java.util.Optional<java.util.Map<java.lang.String,​java.lang.String>>> tags()
        Returns:
        Tags of the resource.
      • type

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

        public static Domain 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.