azure-native.eventgrid.PartnerNamespace

Explore with Pulumi AI

EventGrid Partner Namespace. API Version: 2021-06-01-preview.

Example Usage

PartnerNamespaces_CreateOrUpdate

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

return await Deployment.RunAsync(() => 
{
    var partnerNamespace = new AzureNative.EventGrid.PartnerNamespace("partnerNamespace", new()
    {
        Location = "westus",
        PartnerNamespaceName = "examplePartnerNamespaceName1",
        PartnerRegistrationFullyQualifiedId = "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/partnerRegistrations/ContosoCorpAccount1",
        ResourceGroupName = "examplerg",
        Tags = 
        {
            { "tag1", "value1" },
            { "tag2", "value2" },
        },
    });

});
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.NewPartnerNamespace(ctx, "partnerNamespace", &eventgrid.PartnerNamespaceArgs{
			Location:                            pulumi.String("westus"),
			PartnerNamespaceName:                pulumi.String("examplePartnerNamespaceName1"),
			PartnerRegistrationFullyQualifiedId: pulumi.String("/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/partnerRegistrations/ContosoCorpAccount1"),
			ResourceGroupName:                   pulumi.String("examplerg"),
			Tags: pulumi.StringMap{
				"tag1": pulumi.String("value1"),
				"tag2": pulumi.String("value2"),
			},
		})
		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.PartnerNamespace;
import com.pulumi.azurenative.eventgrid.PartnerNamespaceArgs;
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 partnerNamespace = new PartnerNamespace("partnerNamespace", PartnerNamespaceArgs.builder()        
            .location("westus")
            .partnerNamespaceName("examplePartnerNamespaceName1")
            .partnerRegistrationFullyQualifiedId("/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/partnerRegistrations/ContosoCorpAccount1")
            .resourceGroupName("examplerg")
            .tags(Map.ofEntries(
                Map.entry("tag1", "value1"),
                Map.entry("tag2", "value2")
            ))
            .build());

    }
}
import pulumi
import pulumi_azure_native as azure_native

partner_namespace = azure_native.eventgrid.PartnerNamespace("partnerNamespace",
    location="westus",
    partner_namespace_name="examplePartnerNamespaceName1",
    partner_registration_fully_qualified_id="/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/partnerRegistrations/ContosoCorpAccount1",
    resource_group_name="examplerg",
    tags={
        "tag1": "value1",
        "tag2": "value2",
    })
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const partnerNamespace = new azure_native.eventgrid.PartnerNamespace("partnerNamespace", {
    location: "westus",
    partnerNamespaceName: "examplePartnerNamespaceName1",
    partnerRegistrationFullyQualifiedId: "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/partnerRegistrations/ContosoCorpAccount1",
    resourceGroupName: "examplerg",
    tags: {
        tag1: "value1",
        tag2: "value2",
    },
});
resources:
  partnerNamespace:
    type: azure-native:eventgrid:PartnerNamespace
    properties:
      location: westus
      partnerNamespaceName: examplePartnerNamespaceName1
      partnerRegistrationFullyQualifiedId: /subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/partnerRegistrations/ContosoCorpAccount1
      resourceGroupName: examplerg
      tags:
        tag1: value1
        tag2: value2

Create PartnerNamespace Resource

new PartnerNamespace(name: string, args: PartnerNamespaceArgs, opts?: CustomResourceOptions);
@overload
def PartnerNamespace(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     disable_local_auth: Optional[bool] = None,
                     inbound_ip_rules: Optional[Sequence[InboundIpRuleArgs]] = None,
                     location: Optional[str] = None,
                     partner_namespace_name: Optional[str] = None,
                     partner_registration_fully_qualified_id: Optional[str] = None,
                     public_network_access: Optional[Union[str, PublicNetworkAccess]] = None,
                     resource_group_name: Optional[str] = None,
                     tags: Optional[Mapping[str, str]] = None)
@overload
def PartnerNamespace(resource_name: str,
                     args: PartnerNamespaceArgs,
                     opts: Optional[ResourceOptions] = None)
func NewPartnerNamespace(ctx *Context, name string, args PartnerNamespaceArgs, opts ...ResourceOption) (*PartnerNamespace, error)
public PartnerNamespace(string name, PartnerNamespaceArgs args, CustomResourceOptions? opts = null)
public PartnerNamespace(String name, PartnerNamespaceArgs args)
public PartnerNamespace(String name, PartnerNamespaceArgs args, CustomResourceOptions options)
type: azure-native:eventgrid:PartnerNamespace
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args PartnerNamespaceArgs
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 PartnerNamespaceArgs
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 PartnerNamespaceArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args PartnerNamespaceArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args PartnerNamespaceArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

PartnerNamespace 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 PartnerNamespace resource accepts the following input properties:

ResourceGroupName string

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

DisableLocalAuth bool

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 partner namespace.

InboundIpRules List<Pulumi.AzureNative.EventGrid.Inputs.InboundIpRuleArgs>

This can be used to restrict traffic from specific IPs instead of all IPs. Note: These are considered only if PublicNetworkAccess is enabled.

Location string

Location of the resource.

PartnerNamespaceName string

Name of the partner namespace.

PartnerRegistrationFullyQualifiedId string

The fully qualified ARM Id of the partner registration that should be associated with this partner namespace. This takes the following format: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerRegistrations/{partnerRegistrationName}.

PublicNetworkAccess string | Pulumi.AzureNative.EventGrid.PublicNetworkAccess

This determines if traffic is allowed over public network. By default it is enabled. You can further restrict to specific IPs by configuring

Tags Dictionary<string, string>

Tags of the resource.

ResourceGroupName string

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

DisableLocalAuth bool

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 partner namespace.

InboundIpRules []InboundIpRuleArgs

This can be used to restrict traffic from specific IPs instead of all IPs. Note: These are considered only if PublicNetworkAccess is enabled.

Location string

Location of the resource.

PartnerNamespaceName string

Name of the partner namespace.

PartnerRegistrationFullyQualifiedId string

The fully qualified ARM Id of the partner registration that should be associated with this partner namespace. This takes the following format: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerRegistrations/{partnerRegistrationName}.

PublicNetworkAccess string | PublicNetworkAccess

This determines if traffic is allowed over public network. By default it is enabled. You can further restrict to specific IPs by configuring

Tags map[string]string

Tags of the resource.

resourceGroupName String

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

disableLocalAuth Boolean

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 partner namespace.

inboundIpRules List<InboundIpRuleArgs>

This can be used to restrict traffic from specific IPs instead of all IPs. Note: These are considered only if PublicNetworkAccess is enabled.

location String

Location of the resource.

partnerNamespaceName String

Name of the partner namespace.

partnerRegistrationFullyQualifiedId String

The fully qualified ARM Id of the partner registration that should be associated with this partner namespace. This takes the following format: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerRegistrations/{partnerRegistrationName}.

publicNetworkAccess String | PublicNetworkAccess

This determines if traffic is allowed over public network. By default it is enabled. You can further restrict to specific IPs by configuring

tags Map<String,String>

Tags of the resource.

resourceGroupName string

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

disableLocalAuth boolean

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 partner namespace.

inboundIpRules InboundIpRuleArgs[]

This can be used to restrict traffic from specific IPs instead of all IPs. Note: These are considered only if PublicNetworkAccess is enabled.

location string

Location of the resource.

partnerNamespaceName string

Name of the partner namespace.

partnerRegistrationFullyQualifiedId string

The fully qualified ARM Id of the partner registration that should be associated with this partner namespace. This takes the following format: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerRegistrations/{partnerRegistrationName}.

publicNetworkAccess string | PublicNetworkAccess

This determines if traffic is allowed over public network. By default it is enabled. You can further restrict to specific IPs by configuring

tags {[key: string]: string}

Tags of the resource.

resource_group_name str

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

disable_local_auth bool

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 partner namespace.

inbound_ip_rules Sequence[InboundIpRuleArgs]

This can be used to restrict traffic from specific IPs instead of all IPs. Note: These are considered only if PublicNetworkAccess is enabled.

location str

Location of the resource.

partner_namespace_name str

Name of the partner namespace.

partner_registration_fully_qualified_id str

The fully qualified ARM Id of the partner registration that should be associated with this partner namespace. This takes the following format: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerRegistrations/{partnerRegistrationName}.

public_network_access str | PublicNetworkAccess

This determines if traffic is allowed over public network. By default it is enabled. You can further restrict to specific IPs by configuring

tags Mapping[str, str]

Tags of the resource.

resourceGroupName String

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

disableLocalAuth Boolean

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 partner namespace.

inboundIpRules List<Property Map>

This can be used to restrict traffic from specific IPs instead of all IPs. Note: These are considered only if PublicNetworkAccess is enabled.

location String

Location of the resource.

partnerNamespaceName String

Name of the partner namespace.

partnerRegistrationFullyQualifiedId String

The fully qualified ARM Id of the partner registration that should be associated with this partner namespace. This takes the following format: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerRegistrations/{partnerRegistrationName}.

publicNetworkAccess String | "Enabled" | "Disabled"

This determines if traffic is allowed over public network. By default it is enabled. You can further restrict to specific IPs by configuring

tags Map<String>

Tags of the resource.

Outputs

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

Endpoint string

Endpoint for the partner namespace.

Id string

The provider-assigned unique ID for this managed resource.

Name string

Name of the resource.

PrivateEndpointConnections List<Pulumi.AzureNative.EventGrid.Outputs.PrivateEndpointConnectionResponse>
ProvisioningState string

Provisioning state of the partner namespace.

SystemData Pulumi.AzureNative.EventGrid.Outputs.SystemDataResponse

The system metadata relating to Partner Namespace resource.

Type string

Type of the resource.

Endpoint string

Endpoint for the partner namespace.

Id string

The provider-assigned unique ID for this managed resource.

Name string

Name of the resource.

PrivateEndpointConnections []PrivateEndpointConnectionResponse
ProvisioningState string

Provisioning state of the partner namespace.

SystemData SystemDataResponse

The system metadata relating to Partner Namespace resource.

Type string

Type of the resource.

endpoint String

Endpoint for the partner namespace.

id String

The provider-assigned unique ID for this managed resource.

name String

Name of the resource.

privateEndpointConnections List<PrivateEndpointConnectionResponse>
provisioningState String

Provisioning state of the partner namespace.

systemData SystemDataResponse

The system metadata relating to Partner Namespace resource.

type String

Type of the resource.

endpoint string

Endpoint for the partner namespace.

id string

The provider-assigned unique ID for this managed resource.

name string

Name of the resource.

privateEndpointConnections PrivateEndpointConnectionResponse[]
provisioningState string

Provisioning state of the partner namespace.

systemData SystemDataResponse

The system metadata relating to Partner Namespace resource.

type string

Type of the resource.

endpoint str

Endpoint for the partner namespace.

id str

The provider-assigned unique ID for this managed resource.

name str

Name of the resource.

private_endpoint_connections Sequence[PrivateEndpointConnectionResponse]
provisioning_state str

Provisioning state of the partner namespace.

system_data SystemDataResponse

The system metadata relating to Partner Namespace resource.

type str

Type of the resource.

endpoint String

Endpoint for the partner namespace.

id String

The provider-assigned unique ID for this managed resource.

name String

Name of the resource.

privateEndpointConnections List<Property Map>
provisioningState String

Provisioning state of the partner namespace.

systemData Property Map

The system metadata relating to Partner Namespace resource.

type String

Type of the resource.

Supporting Types

ConnectionStateResponse

ActionsRequired string

Actions required (if any).

Description string

Description of the connection state.

Status string

Status of the connection.

ActionsRequired string

Actions required (if any).

Description string

Description of the connection state.

Status string

Status of the connection.

actionsRequired String

Actions required (if any).

description String

Description of the connection state.

status String

Status of the connection.

actionsRequired string

Actions required (if any).

description string

Description of the connection state.

status string

Status of the connection.

actions_required str

Actions required (if any).

description str

Description of the connection state.

status str

Status of the connection.

actionsRequired String

Actions required (if any).

description String

Description of the connection state.

status String

Status of the connection.

InboundIpRule

Action string | Pulumi.AzureNative.EventGrid.IpActionType

Action to perform based on the match or no match of the IpMask.

IpMask string

IP Address in CIDR notation e.g., 10.0.0.0/8.

Action string | IpActionType

Action to perform based on the match or no match of the IpMask.

IpMask string

IP Address in CIDR notation e.g., 10.0.0.0/8.

action String | IpActionType

Action to perform based on the match or no match of the IpMask.

ipMask String

IP Address in CIDR notation e.g., 10.0.0.0/8.

action string | IpActionType

Action to perform based on the match or no match of the IpMask.

ipMask string

IP Address in CIDR notation e.g., 10.0.0.0/8.

action str | IpActionType

Action to perform based on the match or no match of the IpMask.

ip_mask str

IP Address in CIDR notation e.g., 10.0.0.0/8.

action String | "Allow"

Action to perform based on the match or no match of the IpMask.

ipMask String

IP Address in CIDR notation e.g., 10.0.0.0/8.

InboundIpRuleResponse

Action string

Action to perform based on the match or no match of the IpMask.

IpMask string

IP Address in CIDR notation e.g., 10.0.0.0/8.

Action string

Action to perform based on the match or no match of the IpMask.

IpMask string

IP Address in CIDR notation e.g., 10.0.0.0/8.

action String

Action to perform based on the match or no match of the IpMask.

ipMask String

IP Address in CIDR notation e.g., 10.0.0.0/8.

action string

Action to perform based on the match or no match of the IpMask.

ipMask string

IP Address in CIDR notation e.g., 10.0.0.0/8.

action str

Action to perform based on the match or no match of the IpMask.

ip_mask str

IP Address in CIDR notation e.g., 10.0.0.0/8.

action String

Action to perform based on the match or no match of the IpMask.

ipMask String

IP Address in CIDR notation e.g., 10.0.0.0/8.

IpActionType

Allow
Allow
IpActionTypeAllow
Allow
Allow
Allow
Allow
Allow
ALLOW
Allow
"Allow"
Allow

PrivateEndpointConnectionResponse

Id string

Fully qualified identifier of the resource.

Name string

Name of the resource.

Type string

Type of the resource.

GroupIds List<string>

GroupIds from the private link service resource.

PrivateEndpoint Pulumi.AzureNative.EventGrid.Inputs.PrivateEndpointResponse

The Private Endpoint resource for this Connection.

PrivateLinkServiceConnectionState Pulumi.AzureNative.EventGrid.Inputs.ConnectionStateResponse

Details about the state of the connection.

ProvisioningState string

Provisioning state of the Private Endpoint Connection.

Id string

Fully qualified identifier of the resource.

Name string

Name of the resource.

Type string

Type of the resource.

GroupIds []string

GroupIds from the private link service resource.

PrivateEndpoint PrivateEndpointResponse

The Private Endpoint resource for this Connection.

PrivateLinkServiceConnectionState ConnectionStateResponse

Details about the state of the connection.

ProvisioningState string

Provisioning state of the Private Endpoint Connection.

id String

Fully qualified identifier of the resource.

name String

Name of the resource.

type String

Type of the resource.

groupIds List<String>

GroupIds from the private link service resource.

privateEndpoint PrivateEndpointResponse

The Private Endpoint resource for this Connection.

privateLinkServiceConnectionState ConnectionStateResponse

Details about the state of the connection.

provisioningState String

Provisioning state of the Private Endpoint Connection.

id string

Fully qualified identifier of the resource.

name string

Name of the resource.

type string

Type of the resource.

groupIds string[]

GroupIds from the private link service resource.

privateEndpoint PrivateEndpointResponse

The Private Endpoint resource for this Connection.

privateLinkServiceConnectionState ConnectionStateResponse

Details about the state of the connection.

provisioningState string

Provisioning state of the Private Endpoint Connection.

id str

Fully qualified identifier of the resource.

name str

Name of the resource.

type str

Type of the resource.

group_ids Sequence[str]

GroupIds from the private link service resource.

private_endpoint PrivateEndpointResponse

The Private Endpoint resource for this Connection.

private_link_service_connection_state ConnectionStateResponse

Details about the state of the connection.

provisioning_state str

Provisioning state of the Private Endpoint Connection.

id String

Fully qualified identifier of the resource.

name String

Name of the resource.

type String

Type of the resource.

groupIds List<String>

GroupIds from the private link service resource.

privateEndpoint Property Map

The Private Endpoint resource for this Connection.

privateLinkServiceConnectionState Property Map

Details about the state of the connection.

provisioningState String

Provisioning state of the Private Endpoint Connection.

PrivateEndpointResponse

Id string

The ARM identifier for Private Endpoint.

Id string

The ARM identifier for Private Endpoint.

id String

The ARM identifier for Private Endpoint.

id string

The ARM identifier for Private Endpoint.

id str

The ARM identifier for Private Endpoint.

id String

The ARM identifier for Private Endpoint.

PublicNetworkAccess

Enabled
Enabled
Disabled
Disabled
PublicNetworkAccessEnabled
Enabled
PublicNetworkAccessDisabled
Disabled
Enabled
Enabled
Disabled
Disabled
Enabled
Enabled
Disabled
Disabled
ENABLED
Enabled
DISABLED
Disabled
"Enabled"
Enabled
"Disabled"
Disabled

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.

Import

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

$ pulumi import azure-native:eventgrid:PartnerNamespace examplePartnerNamespaceName1 /subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/partnerNamespaces/examplePartnerNamespaceName1 

Package Details

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