azure-native.eventgrid.SystemTopic

Explore with Pulumi AI

EventGrid System Topic. API Version: 2021-06-01-preview.

Example Usage

SystemTopics_CreateOrUpdate

using System.Collections.Generic;
using Pulumi;
using AzureNative = Pulumi.AzureNative;

return await Deployment.RunAsync(() => 
{
    var systemTopic = new AzureNative.EventGrid.SystemTopic("systemTopic", new()
    {
        Location = "westus2",
        ResourceGroupName = "examplerg",
        Source = "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/azureeventgridrunnerrgcentraluseuap/providers/microsoft.storage/storageaccounts/pubstgrunnerb71cd29e",
        SystemTopicName = "exampleSystemTopic1",
        Tags = 
        {
            { "tag1", "value1" },
            { "tag2", "value2" },
        },
        TopicType = "microsoft.storage.storageaccounts",
    });

});
package main

import (
	eventgrid "github.com/pulumi/pulumi-azure-native/sdk/go/azure/eventgrid"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := eventgrid.NewSystemTopic(ctx, "systemTopic", &eventgrid.SystemTopicArgs{
			Location:          pulumi.String("westus2"),
			ResourceGroupName: pulumi.String("examplerg"),
			Source:            pulumi.String("/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/azureeventgridrunnerrgcentraluseuap/providers/microsoft.storage/storageaccounts/pubstgrunnerb71cd29e"),
			SystemTopicName:   pulumi.String("exampleSystemTopic1"),
			Tags: pulumi.StringMap{
				"tag1": pulumi.String("value1"),
				"tag2": pulumi.String("value2"),
			},
			TopicType: pulumi.String("microsoft.storage.storageaccounts"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.eventgrid.SystemTopic;
import com.pulumi.azurenative.eventgrid.SystemTopicArgs;
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 systemTopic = new SystemTopic("systemTopic", SystemTopicArgs.builder()        
            .location("westus2")
            .resourceGroupName("examplerg")
            .source("/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/azureeventgridrunnerrgcentraluseuap/providers/microsoft.storage/storageaccounts/pubstgrunnerb71cd29e")
            .systemTopicName("exampleSystemTopic1")
            .tags(Map.ofEntries(
                Map.entry("tag1", "value1"),
                Map.entry("tag2", "value2")
            ))
            .topicType("microsoft.storage.storageaccounts")
            .build());

    }
}
import pulumi
import pulumi_azure_native as azure_native

system_topic = azure_native.eventgrid.SystemTopic("systemTopic",
    location="westus2",
    resource_group_name="examplerg",
    source="/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/azureeventgridrunnerrgcentraluseuap/providers/microsoft.storage/storageaccounts/pubstgrunnerb71cd29e",
    system_topic_name="exampleSystemTopic1",
    tags={
        "tag1": "value1",
        "tag2": "value2",
    },
    topic_type="microsoft.storage.storageaccounts")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const systemTopic = new azure_native.eventgrid.SystemTopic("systemTopic", {
    location: "westus2",
    resourceGroupName: "examplerg",
    source: "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/azureeventgridrunnerrgcentraluseuap/providers/microsoft.storage/storageaccounts/pubstgrunnerb71cd29e",
    systemTopicName: "exampleSystemTopic1",
    tags: {
        tag1: "value1",
        tag2: "value2",
    },
    topicType: "microsoft.storage.storageaccounts",
});
resources:
  systemTopic:
    type: azure-native:eventgrid:SystemTopic
    properties:
      location: westus2
      resourceGroupName: examplerg
      source: /subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/azureeventgridrunnerrgcentraluseuap/providers/microsoft.storage/storageaccounts/pubstgrunnerb71cd29e
      systemTopicName: exampleSystemTopic1
      tags:
        tag1: value1
        tag2: value2
      topicType: microsoft.storage.storageaccounts

Create SystemTopic Resource

new SystemTopic(name: string, args: SystemTopicArgs, opts?: CustomResourceOptions);
@overload
def SystemTopic(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                identity: Optional[IdentityInfoArgs] = None,
                location: Optional[str] = None,
                resource_group_name: Optional[str] = None,
                source: Optional[str] = None,
                system_topic_name: Optional[str] = None,
                tags: Optional[Mapping[str, str]] = None,
                topic_type: Optional[str] = None)
@overload
def SystemTopic(resource_name: str,
                args: SystemTopicArgs,
                opts: Optional[ResourceOptions] = None)
func NewSystemTopic(ctx *Context, name string, args SystemTopicArgs, opts ...ResourceOption) (*SystemTopic, error)
public SystemTopic(string name, SystemTopicArgs args, CustomResourceOptions? opts = null)
public SystemTopic(String name, SystemTopicArgs args)
public SystemTopic(String name, SystemTopicArgs args, CustomResourceOptions options)
type: azure-native:eventgrid:SystemTopic
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args SystemTopicArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
args SystemTopicArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args SystemTopicArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args SystemTopicArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args SystemTopicArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

SystemTopic Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The SystemTopic resource accepts the following input properties:

ResourceGroupName string

The name of the resource group within the user's subscription.

Identity Pulumi.AzureNative.EventGrid.Inputs.IdentityInfoArgs

Identity information for the resource.

Location string

Location of the resource.

Source string

Source for the system topic.

SystemTopicName string

Name of the system topic.

Tags Dictionary<string, string>

Tags of the resource.

TopicType string

TopicType for the system topic.

ResourceGroupName string

The name of the resource group within the user's subscription.

Identity IdentityInfoArgs

Identity information for the resource.

Location string

Location of the resource.

Source string

Source for the system topic.

SystemTopicName string

Name of the system topic.

Tags map[string]string

Tags of the resource.

TopicType string

TopicType for the system topic.

resourceGroupName String

The name of the resource group within the user's subscription.

identity IdentityInfoArgs

Identity information for the resource.

location String

Location of the resource.

source String

Source for the system topic.

systemTopicName String

Name of the system topic.

tags Map<String,String>

Tags of the resource.

topicType String

TopicType for the system topic.

resourceGroupName string

The name of the resource group within the user's subscription.

identity IdentityInfoArgs

Identity information for the resource.

location string

Location of the resource.

source string

Source for the system topic.

systemTopicName string

Name of the system topic.

tags {[key: string]: string}

Tags of the resource.

topicType string

TopicType for the system topic.

resource_group_name str

The name of the resource group within the user's subscription.

identity IdentityInfoArgs

Identity information for the resource.

location str

Location of the resource.

source str

Source for the system topic.

system_topic_name str

Name of the system topic.

tags Mapping[str, str]

Tags of the resource.

topic_type str

TopicType for the system topic.

resourceGroupName String

The name of the resource group within the user's subscription.

identity Property Map

Identity information for the resource.

location String

Location of the resource.

source String

Source for the system topic.

systemTopicName String

Name of the system topic.

tags Map<String>

Tags of the resource.

topicType String

TopicType for the system topic.

Outputs

All input properties are implicitly available as output properties. Additionally, the SystemTopic resource produces the following output properties:

Id string

The provider-assigned unique ID for this managed resource.

MetricResourceId string

Metric resource id for the system topic.

Name string

Name of the resource.

ProvisioningState string

Provisioning state of the system topic.

SystemData Pulumi.AzureNative.EventGrid.Outputs.SystemDataResponse

The system metadata relating to System Topic resource.

Type string

Type of the resource.

Id string

The provider-assigned unique ID for this managed resource.

MetricResourceId string

Metric resource id for the system topic.

Name string

Name of the resource.

ProvisioningState string

Provisioning state of the system topic.

SystemData SystemDataResponse

The system metadata relating to System Topic resource.

Type string

Type of the resource.

id String

The provider-assigned unique ID for this managed resource.

metricResourceId String

Metric resource id for the system topic.

name String

Name of the resource.

provisioningState String

Provisioning state of the system topic.

systemData SystemDataResponse

The system metadata relating to System Topic resource.

type String

Type of the resource.

id string

The provider-assigned unique ID for this managed resource.

metricResourceId string

Metric resource id for the system topic.

name string

Name of the resource.

provisioningState string

Provisioning state of the system topic.

systemData SystemDataResponse

The system metadata relating to System Topic resource.

type string

Type of the resource.

id str

The provider-assigned unique ID for this managed resource.

metric_resource_id str

Metric resource id for the system topic.

name str

Name of the resource.

provisioning_state str

Provisioning state of the system topic.

system_data SystemDataResponse

The system metadata relating to System Topic resource.

type str

Type of the resource.

id String

The provider-assigned unique ID for this managed resource.

metricResourceId String

Metric resource id for the system topic.

name String

Name of the resource.

provisioningState String

Provisioning state of the system topic.

systemData Property Map

The system metadata relating to System Topic resource.

type String

Type of the resource.

Supporting Types

IdentityInfo

PrincipalId string

The principal ID of resource identity.

TenantId string

The tenant ID of resource.

Type string | Pulumi.AzureNative.EventGrid.IdentityType

The type of managed identity used. The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity and a set of user-assigned identities. The type 'None' will remove any identity.

UserAssignedIdentities Dictionary<string, Pulumi.AzureNative.EventGrid.Inputs.UserIdentityProperties>

The list of user identities associated with the resource. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. This property is currently not used and reserved for future usage.

PrincipalId string

The principal ID of resource identity.

TenantId string

The tenant ID of resource.

Type string | IdentityType

The type of managed identity used. The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity and a set of user-assigned identities. The type 'None' will remove any identity.

UserAssignedIdentities map[string]UserIdentityProperties

The list of user identities associated with the resource. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. This property is currently not used and reserved for future usage.

principalId String

The principal ID of resource identity.

tenantId String

The tenant ID of resource.

type String | IdentityType

The type of managed identity used. The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity and a set of user-assigned identities. The type 'None' will remove any identity.

userAssignedIdentities Map<String,UserIdentityProperties>

The list of user identities associated with the resource. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. This property is currently not used and reserved for future usage.

principalId string

The principal ID of resource identity.

tenantId string

The tenant ID of resource.

type string | IdentityType

The type of managed identity used. The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity and a set of user-assigned identities. The type 'None' will remove any identity.

userAssignedIdentities {[key: string]: UserIdentityProperties}

The list of user identities associated with the resource. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. This property is currently not used and reserved for future usage.

principal_id str

The principal ID of resource identity.

tenant_id str

The tenant ID of resource.

type str | IdentityType

The type of managed identity used. The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity and a set of user-assigned identities. The type 'None' will remove any identity.

user_assigned_identities Mapping[str, UserIdentityProperties]

The list of user identities associated with the resource. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. This property is currently not used and reserved for future usage.

principalId String

The principal ID of resource identity.

tenantId String

The tenant ID of resource.

type String | "None" | "SystemAssigned" | "UserAssigned" | "SystemAssigned, UserAssigned"

The type of managed identity used. The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity and a set of user-assigned identities. The type 'None' will remove any identity.

userAssignedIdentities Map<Property Map>

The list of user identities associated with the resource. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. This property is currently not used and reserved for future usage.

IdentityInfoResponse

PrincipalId string

The principal ID of resource identity.

TenantId string

The tenant ID of resource.

Type string

The type of managed identity used. The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity and a set of user-assigned identities. The type 'None' will remove any identity.

UserAssignedIdentities Dictionary<string, Pulumi.AzureNative.EventGrid.Inputs.UserIdentityPropertiesResponse>

The list of user identities associated with the resource. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. This property is currently not used and reserved for future usage.

PrincipalId string

The principal ID of resource identity.

TenantId string

The tenant ID of resource.

Type string

The type of managed identity used. The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity and a set of user-assigned identities. The type 'None' will remove any identity.

UserAssignedIdentities map[string]UserIdentityPropertiesResponse

The list of user identities associated with the resource. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. This property is currently not used and reserved for future usage.

principalId String

The principal ID of resource identity.

tenantId String

The tenant ID of resource.

type String

The type of managed identity used. The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity and a set of user-assigned identities. The type 'None' will remove any identity.

userAssignedIdentities Map<String,UserIdentityPropertiesResponse>

The list of user identities associated with the resource. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. This property is currently not used and reserved for future usage.

principalId string

The principal ID of resource identity.

tenantId string

The tenant ID of resource.

type string

The type of managed identity used. The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity and a set of user-assigned identities. The type 'None' will remove any identity.

userAssignedIdentities {[key: string]: UserIdentityPropertiesResponse}

The list of user identities associated with the resource. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. This property is currently not used and reserved for future usage.

principal_id str

The principal ID of resource identity.

tenant_id str

The tenant ID of resource.

type str

The type of managed identity used. The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity and a set of user-assigned identities. The type 'None' will remove any identity.

user_assigned_identities Mapping[str, UserIdentityPropertiesResponse]

The list of user identities associated with the resource. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. This property is currently not used and reserved for future usage.

principalId String

The principal ID of resource identity.

tenantId String

The tenant ID of resource.

type String

The type of managed identity used. The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity and a set of user-assigned identities. The type 'None' will remove any identity.

userAssignedIdentities Map<Property Map>

The list of user identities associated with the resource. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. This property is currently not used and reserved for future usage.

IdentityType

None
None
SystemAssigned
SystemAssigned
UserAssigned
UserAssigned
SystemAssigned_UserAssigned
SystemAssigned, UserAssigned
IdentityTypeNone
None
IdentityTypeSystemAssigned
SystemAssigned
IdentityTypeUserAssigned
UserAssigned
IdentityType_SystemAssigned_UserAssigned
SystemAssigned, UserAssigned
None
None
SystemAssigned
SystemAssigned
UserAssigned
UserAssigned
SystemAssigned_UserAssigned
SystemAssigned, UserAssigned
None
None
SystemAssigned
SystemAssigned
UserAssigned
UserAssigned
SystemAssigned_UserAssigned
SystemAssigned, UserAssigned
NONE
None
SYSTEM_ASSIGNED
SystemAssigned
USER_ASSIGNED
UserAssigned
SYSTEM_ASSIGNED_USER_ASSIGNED
SystemAssigned, UserAssigned
"None"
None
"SystemAssigned"
SystemAssigned
"UserAssigned"
UserAssigned
"SystemAssigned, UserAssigned"
SystemAssigned, UserAssigned

SystemDataResponse

CreatedAt string

The timestamp of resource creation (UTC).

CreatedBy string

The identity that created the resource.

CreatedByType string

The type of identity that created the resource.

LastModifiedAt string

The timestamp of resource last modification (UTC)

LastModifiedBy string

The identity that last modified the resource.

LastModifiedByType string

The type of identity that last modified the resource.

CreatedAt string

The timestamp of resource creation (UTC).

CreatedBy string

The identity that created the resource.

CreatedByType string

The type of identity that created the resource.

LastModifiedAt string

The timestamp of resource last modification (UTC)

LastModifiedBy string

The identity that last modified the resource.

LastModifiedByType string

The type of identity that last modified the resource.

createdAt String

The timestamp of resource creation (UTC).

createdBy String

The identity that created the resource.

createdByType String

The type of identity that created the resource.

lastModifiedAt String

The timestamp of resource last modification (UTC)

lastModifiedBy String

The identity that last modified the resource.

lastModifiedByType String

The type of identity that last modified the resource.

createdAt string

The timestamp of resource creation (UTC).

createdBy string

The identity that created the resource.

createdByType string

The type of identity that created the resource.

lastModifiedAt string

The timestamp of resource last modification (UTC)

lastModifiedBy string

The identity that last modified the resource.

lastModifiedByType string

The type of identity that last modified the resource.

created_at str

The timestamp of resource creation (UTC).

created_by str

The identity that created the resource.

created_by_type str

The type of identity that created the resource.

last_modified_at str

The timestamp of resource last modification (UTC)

last_modified_by str

The identity that last modified the resource.

last_modified_by_type str

The type of identity that last modified the resource.

createdAt String

The timestamp of resource creation (UTC).

createdBy String

The identity that created the resource.

createdByType String

The type of identity that created the resource.

lastModifiedAt String

The timestamp of resource last modification (UTC)

lastModifiedBy String

The identity that last modified the resource.

lastModifiedByType String

The type of identity that last modified the resource.

UserIdentityProperties

ClientId string

The client id of user assigned identity.

PrincipalId string

The principal id of user assigned identity.

ClientId string

The client id of user assigned identity.

PrincipalId string

The principal id of user assigned identity.

clientId String

The client id of user assigned identity.

principalId String

The principal id of user assigned identity.

clientId string

The client id of user assigned identity.

principalId string

The principal id of user assigned identity.

client_id str

The client id of user assigned identity.

principal_id str

The principal id of user assigned identity.

clientId String

The client id of user assigned identity.

principalId String

The principal id of user assigned identity.

UserIdentityPropertiesResponse

ClientId string

The client id of user assigned identity.

PrincipalId string

The principal id of user assigned identity.

ClientId string

The client id of user assigned identity.

PrincipalId string

The principal id of user assigned identity.

clientId String

The client id of user assigned identity.

principalId String

The principal id of user assigned identity.

clientId string

The client id of user assigned identity.

principalId string

The principal id of user assigned identity.

client_id str

The client id of user assigned identity.

principal_id str

The principal id of user assigned identity.

clientId String

The client id of user assigned identity.

principalId String

The principal id of user assigned identity.

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:eventgrid:SystemTopic exampleSystemTopic2 /subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/systemTopics/exampleSystemTopic2 

Package Details

Repository
Azure Native pulumi/pulumi-azure-native
License
Apache-2.0