Package com.pulumi.azurenative.eventgrid
Class Topic
- java.lang.Object
-
- com.pulumi.resources.Resource
-
- com.pulumi.resources.CustomResource
-
- com.pulumi.azurenative.eventgrid.Topic
-
public class Topic extends com.pulumi.resources.CustomResource
EventGrid Topic 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. ## 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/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName} ```
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.pulumi.core.Output<java.util.Optional<java.lang.String>>
dataResidencyBoundary()
com.pulumi.core.Output<java.util.Optional<java.lang.Boolean>>
disableLocalAuth()
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<IdentityInfoResponse>>
identity()
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()
-
-
-
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
-
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 topic.
-
endpoint
public com.pulumi.core.Output<java.lang.String> endpoint()
- Returns:
- Endpoint for the topic.
-
identity
public com.pulumi.core.Output<java.util.Optional<IdentityInfoResponse>> identity()
- Returns:
- Identity information for the 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 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.
-
privateEndpointConnections
public com.pulumi.core.Output<java.util.List<PrivateEndpointConnectionResponse>> privateEndpointConnections()
-
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.
-
-