Class Topic


  • public class Topic
    extends com.pulumi.resources.CustomResource
    EventGrid Topic API Version: 2020-06-01. ## Example Usage ### Topics_CreateOrUpdate ```java package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.azurenative.eventgrid.Topic; import com.pulumi.azurenative.eventgrid.TopicArgs; 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 topic = new Topic("topic", TopicArgs.builder() .inboundIpRules( Map.ofEntries( Map.entry("action", "Allow"), Map.entry("ipMask", "12.18.30.15") ), Map.ofEntries( Map.entry("action", "Allow"), Map.entry("ipMask", "12.18.176.1") )) .location("westus2") .publicNetworkAccess("Enabled") .resourceGroupName("examplerg") .tags(Map.ofEntries( Map.entry("tag1", "value1"), Map.entry("tag2", "value2") )) .topicName("exampletopic1") .build()); } } ``` ## Import An existing resource can be imported using its type token, name, and identifier, e.g. ```sh $ pulumi import azure-native:eventgrid:Topic exampletopic1 /subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1 ```
    • 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
      Topic​(java.lang.String name)  
      Topic​(java.lang.String name, TopicArgs args)  
      Topic​(java.lang.String name, TopicArgs 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.lang.String> endpoint()  
      static Topic 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<InboundIpRuleResponse>>> inboundIpRules()  
      com.pulumi.core.Output<java.util.Optional<java.lang.String>> inputSchema()  
      com.pulumi.core.Output<java.util.Optional<JsonInputSchemaMappingResponse>> inputSchemaMapping()  
      com.pulumi.core.Output<java.lang.String> location()  
      com.pulumi.core.Output<java.lang.String> metricResourceId()  
      com.pulumi.core.Output<java.lang.String> name()  
      com.pulumi.core.Output<java.util.List<PrivateEndpointConnectionResponse>> privateEndpointConnections()  
      com.pulumi.core.Output<java.lang.String> provisioningState()  
      com.pulumi.core.Output<java.util.Optional<java.lang.String>> publicNetworkAccess()  
      com.pulumi.core.Output<SystemDataResponse> systemData()  
      com.pulumi.core.Output<java.util.Optional<java.util.Map<java.lang.String,​java.lang.String>>> tags()  
      com.pulumi.core.Output<java.lang.String> type()  
      • Methods inherited from class com.pulumi.resources.CustomResource

        getId, idFuture
      • Methods inherited from class com.pulumi.resources.Resource

        getChildResources, getResourceName, getResourceType, getUrn
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Topic

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

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

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

      • endpoint

        public com.pulumi.core.Output<java.lang.String> endpoint()
        Returns:
        Endpoint for the topic.
      • 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 topic.
      • inputSchemaMapping

        public com.pulumi.core.Output<java.util.Optional<JsonInputSchemaMappingResponse>> inputSchemaMapping()
        Returns:
        This enables publishing using custom event schemas. An InputSchemaMapping can be specified to map various properties of a source schema to various required properties of the EventGridEvent schema.
      • 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 topic.
      • 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 topic.
      • 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.TopicProperties.InboundIpRules" />
      • systemData

        public com.pulumi.core.Output<SystemDataResponse> systemData()
        Returns:
        The system metadata relating to Topic 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 Topic 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.