Domain

Manages an EventGrid Domain

Example Usage

using Pulumi;
using Azure = Pulumi.Azure;

class MyStack : Stack
{
    public MyStack()
    {
        var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new Azure.Core.ResourceGroupArgs
        {
            Location = "West US 2",
        });
        var exampleDomain = new Azure.EventGrid.Domain("exampleDomain", new Azure.EventGrid.DomainArgs
        {
            Location = exampleResourceGroup.Location,
            ResourceGroupName = exampleResourceGroup.Name,
            Tags = 
            {
                { "environment", "Production" },
            },
        });
    }

}
package main

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

func main() {
    pulumi.Run(func(ctx *pulumi.Context) error {
        exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{
            Location: pulumi.String("West US 2"),
        })
        if err != nil {
            return err
        }
        _, err = eventgrid.NewDomain(ctx, "exampleDomain", &eventgrid.DomainArgs{
            Location:          exampleResourceGroup.Location,
            ResourceGroupName: exampleResourceGroup.Name,
            Tags: pulumi.Map{
                "environment": pulumi.String("Production"),
            },
        })
        if err != nil {
            return err
        }
        return nil
    })
}
import pulumi
import pulumi_azure as azure

example_resource_group = azure.core.ResourceGroup("exampleResourceGroup", location="West US 2")
example_domain = azure.eventgrid.Domain("exampleDomain",
    location=example_resource_group.location,
    resource_group_name=example_resource_group.name,
    tags={
        "environment": "Production",
    })
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";

const exampleResourceGroup = new azure.core.ResourceGroup("exampleResourceGroup", {location: "West US 2"});
const exampleDomain = new azure.eventgrid.Domain("exampleDomain", {
    location: exampleResourceGroup.location,
    resourceGroupName: exampleResourceGroup.name,
    tags: {
        environment: "Production",
    },
});

Create a Domain Resource

new Domain(name: string, args: DomainArgs, opts?: CustomResourceOptions);
def Domain(resource_name, opts=None, input_mapping_default_values=None, input_mapping_fields=None, input_schema=None, location=None, name=None, resource_group_name=None, tags=None, __props__=None);
func NewDomain(ctx *Context, name string, args DomainArgs, opts ...ResourceOption) (*Domain, error)
public Domain(string name, DomainArgs args, CustomResourceOptions? opts = null)
name string
The unique name of the resource.
args DomainArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
opts ResourceOptions
A bag of options that control this resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args DomainArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args DomainArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

Domain Resource Properties

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

Inputs

The Domain resource accepts the following input properties:

ResourceGroupName string

The name of the resource group in which the EventGrid Domain exists. Changing this forces a new resource to be created.

InputMappingDefaultValues DomainInputMappingDefaultValuesArgs

A input_mapping_default_values block as defined below.

InputMappingFields DomainInputMappingFieldsArgs

A input_mapping_fields block as defined below.

InputSchema string

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.

Location string

Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.

Name string

Specifies the name of the EventGrid Domain resource. Changing this forces a new resource to be created.

Tags Dictionary<string, string>

A mapping of tags to assign to the resource.

ResourceGroupName string

The name of the resource group in which the EventGrid Domain exists. Changing this forces a new resource to be created.

InputMappingDefaultValues DomainInputMappingDefaultValues

A input_mapping_default_values block as defined below.

InputMappingFields DomainInputMappingFields

A input_mapping_fields block as defined below.

InputSchema string

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.

Location string

Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.

Name string

Specifies the name of the EventGrid Domain resource. Changing this forces a new resource to be created.

Tags map[string]string

A mapping of tags to assign to the resource.

resourceGroupName string

The name of the resource group in which the EventGrid Domain exists. Changing this forces a new resource to be created.

inputMappingDefaultValues DomainInputMappingDefaultValues

A input_mapping_default_values block as defined below.

inputMappingFields DomainInputMappingFields

A input_mapping_fields block as defined below.

inputSchema string

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.

location string

Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.

name string

Specifies the name of the EventGrid Domain resource. Changing this forces a new resource to be created.

tags {[key: string]: string}

A mapping of tags to assign to the resource.

resource_group_name str

The name of the resource group in which the EventGrid Domain exists. Changing this forces a new resource to be created.

input_mapping_default_values Dict[DomainInputMappingDefaultValues]

A input_mapping_default_values block as defined below.

input_mapping_fields Dict[DomainInputMappingFields]

A input_mapping_fields block as defined below.

input_schema str

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.

location str

Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.

name str

Specifies the name of the EventGrid Domain resource. Changing this forces a new resource to be created.

tags Dict[str, str]

A mapping of tags to assign to the resource.

Outputs

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

Endpoint string

The Endpoint associated with the EventGrid Domain.

Id string
The provider-assigned unique ID for this managed resource.
PrimaryAccessKey string

The Primary Shared Access Key associated with the EventGrid Domain.

SecondaryAccessKey string

The Secondary Shared Access Key associated with the EventGrid Domain.

Endpoint string

The Endpoint associated with the EventGrid Domain.

Id string
The provider-assigned unique ID for this managed resource.
PrimaryAccessKey string

The Primary Shared Access Key associated with the EventGrid Domain.

SecondaryAccessKey string

The Secondary Shared Access Key associated with the EventGrid Domain.

endpoint string

The Endpoint associated with the EventGrid Domain.

id string
The provider-assigned unique ID for this managed resource.
primaryAccessKey string

The Primary Shared Access Key associated with the EventGrid Domain.

secondaryAccessKey string

The Secondary Shared Access Key associated with the EventGrid Domain.

endpoint str

The Endpoint associated with the EventGrid Domain.

id str
The provider-assigned unique ID for this managed resource.
primary_access_key str

The Primary Shared Access Key associated with the EventGrid Domain.

secondary_access_key str

The Secondary Shared Access Key associated with the EventGrid Domain.

Look up an Existing Domain Resource

Get an existing Domain resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: DomainState, opts?: CustomResourceOptions): Domain
static get(resource_name, id, opts=None, endpoint=None, input_mapping_default_values=None, input_mapping_fields=None, input_schema=None, location=None, name=None, primary_access_key=None, resource_group_name=None, secondary_access_key=None, tags=None, __props__=None);
func GetDomain(ctx *Context, name string, id IDInput, state *DomainState, opts ...ResourceOption) (*Domain, error)
public static Domain Get(string name, Input<string> id, DomainState? state, CustomResourceOptions? opts = null)
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.

The following state arguments are supported:

Endpoint string

The Endpoint associated with the EventGrid Domain.

InputMappingDefaultValues DomainInputMappingDefaultValuesArgs

A input_mapping_default_values block as defined below.

InputMappingFields DomainInputMappingFieldsArgs

A input_mapping_fields block as defined below.

InputSchema string

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.

Location string

Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.

Name string

Specifies the name of the EventGrid Domain resource. Changing this forces a new resource to be created.

PrimaryAccessKey string

The Primary Shared Access Key associated with the EventGrid Domain.

ResourceGroupName string

The name of the resource group in which the EventGrid Domain exists. Changing this forces a new resource to be created.

SecondaryAccessKey string

The Secondary Shared Access Key associated with the EventGrid Domain.

Tags Dictionary<string, string>

A mapping of tags to assign to the resource.

Endpoint string

The Endpoint associated with the EventGrid Domain.

InputMappingDefaultValues DomainInputMappingDefaultValues

A input_mapping_default_values block as defined below.

InputMappingFields DomainInputMappingFields

A input_mapping_fields block as defined below.

InputSchema string

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.

Location string

Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.

Name string

Specifies the name of the EventGrid Domain resource. Changing this forces a new resource to be created.

PrimaryAccessKey string

The Primary Shared Access Key associated with the EventGrid Domain.

ResourceGroupName string

The name of the resource group in which the EventGrid Domain exists. Changing this forces a new resource to be created.

SecondaryAccessKey string

The Secondary Shared Access Key associated with the EventGrid Domain.

Tags map[string]string

A mapping of tags to assign to the resource.

endpoint string

The Endpoint associated with the EventGrid Domain.

inputMappingDefaultValues DomainInputMappingDefaultValues

A input_mapping_default_values block as defined below.

inputMappingFields DomainInputMappingFields

A input_mapping_fields block as defined below.

inputSchema string

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.

location string

Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.

name string

Specifies the name of the EventGrid Domain resource. Changing this forces a new resource to be created.

primaryAccessKey string

The Primary Shared Access Key associated with the EventGrid Domain.

resourceGroupName string

The name of the resource group in which the EventGrid Domain exists. Changing this forces a new resource to be created.

secondaryAccessKey string

The Secondary Shared Access Key associated with the EventGrid Domain.

tags {[key: string]: string}

A mapping of tags to assign to the resource.

endpoint str

The Endpoint associated with the EventGrid Domain.

input_mapping_default_values Dict[DomainInputMappingDefaultValues]

A input_mapping_default_values block as defined below.

input_mapping_fields Dict[DomainInputMappingFields]

A input_mapping_fields block as defined below.

input_schema str

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.

location str

Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.

name str

Specifies the name of the EventGrid Domain resource. Changing this forces a new resource to be created.

primary_access_key str

The Primary Shared Access Key associated with the EventGrid Domain.

resource_group_name str

The name of the resource group in which the EventGrid Domain exists. Changing this forces a new resource to be created.

secondary_access_key str

The Secondary Shared Access Key associated with the EventGrid Domain.

tags Dict[str, str]

A mapping of tags to assign to the resource.

Supporting Types

DomainInputMappingDefaultValues

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

DataVersion string

Specifies the default data version of the EventGrid Event to associate with the domain. Changing this forces a new resource to be created.

EventType string

Specifies the default event type of the EventGrid Event to associate with the domain. Changing this forces a new resource to be created.

Subject string

Specifies the default subject of the EventGrid Event to associate with the domain. Changing this forces a new resource to be created.

DataVersion string

Specifies the default data version of the EventGrid Event to associate with the domain. Changing this forces a new resource to be created.

EventType string

Specifies the default event type of the EventGrid Event to associate with the domain. Changing this forces a new resource to be created.

Subject string

Specifies the default subject of the EventGrid Event to associate with the domain. Changing this forces a new resource to be created.

dataVersion string

Specifies the default data version of the EventGrid Event to associate with the domain. Changing this forces a new resource to be created.

eventType string

Specifies the default event type of the EventGrid Event to associate with the domain. Changing this forces a new resource to be created.

subject string

Specifies the default subject of the EventGrid Event to associate with the domain. Changing this forces a new resource to be created.

dataVersion str

Specifies the default data version of the EventGrid Event to associate with the domain. Changing this forces a new resource to be created.

eventType str

Specifies the default event type of the EventGrid Event to associate with the domain. Changing this forces a new resource to be created.

subject str

Specifies the default subject of the EventGrid Event to associate with the domain. Changing this forces a new resource to be created.

DomainInputMappingFields

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

DataVersion string

Specifies the data version of the EventGrid Event to associate with the domain. Changing this forces a new resource to be created.

EventTime string

Specifies the event time of the EventGrid Event to associate with the domain. Changing this forces a new resource to be created.

EventType string

Specifies the event type of the EventGrid Event to associate with the domain. Changing this forces a new resource to be created.

Id string

Specifies the id of the EventGrid Event to associate with the domain. Changing this forces a new resource to be created.

Subject string

Specifies the subject of the EventGrid Event to associate with the domain. Changing this forces a new resource to be created.

Topic string

Specifies the topic of the EventGrid Event to associate with the domain. Changing this forces a new resource to be created.

DataVersion string

Specifies the data version of the EventGrid Event to associate with the domain. Changing this forces a new resource to be created.

EventTime string

Specifies the event time of the EventGrid Event to associate with the domain. Changing this forces a new resource to be created.

EventType string

Specifies the event type of the EventGrid Event to associate with the domain. Changing this forces a new resource to be created.

Id string

Specifies the id of the EventGrid Event to associate with the domain. Changing this forces a new resource to be created.

Subject string

Specifies the subject of the EventGrid Event to associate with the domain. Changing this forces a new resource to be created.

Topic string

Specifies the topic of the EventGrid Event to associate with the domain. Changing this forces a new resource to be created.

dataVersion string

Specifies the data version of the EventGrid Event to associate with the domain. Changing this forces a new resource to be created.

eventTime string

Specifies the event time of the EventGrid Event to associate with the domain. Changing this forces a new resource to be created.

eventType string

Specifies the event type of the EventGrid Event to associate with the domain. Changing this forces a new resource to be created.

id string

Specifies the id of the EventGrid Event to associate with the domain. Changing this forces a new resource to be created.

subject string

Specifies the subject of the EventGrid Event to associate with the domain. Changing this forces a new resource to be created.

topic string

Specifies the topic of the EventGrid Event to associate with the domain. Changing this forces a new resource to be created.

dataVersion str

Specifies the data version of the EventGrid Event to associate with the domain. Changing this forces a new resource to be created.

eventTime str

Specifies the event time of the EventGrid Event to associate with the domain. Changing this forces a new resource to be created.

eventType str

Specifies the event type of the EventGrid Event to associate with the domain. Changing this forces a new resource to be created.

id str

Specifies the id of the EventGrid Event to associate with the domain. Changing this forces a new resource to be created.

subject str

Specifies the subject of the EventGrid Event to associate with the domain. Changing this forces a new resource to be created.

topic str

Specifies the topic of the EventGrid Event to associate with the domain. Changing this forces a new resource to be created.

Package Details

Repository
https://github.com/pulumi/pulumi-azure
License
Apache-2.0
Notes
This Pulumi package is based on the azurerm Terraform Provider.