azure-native.eventgrid.PartnerDestination
Explore with Pulumi AI
Event Grid Partner Destination. Azure REST API version: 2023-06-01-preview. Prior API version in Azure Native 1.x: 2021-10-15-preview.
Other available API versions: 2021-10-15-preview, 2023-12-15-preview, 2024-06-01-preview.
Example Usage
PartnerDestinations_CreateOrUpdate
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var partnerDestination = new AzureNative.EventGrid.PartnerDestination("partnerDestination", new()
{
EndpointBaseUrl = "https://www.example/endpoint",
EndpointServiceContext = "This is an example",
ExpirationTimeIfNotActivatedUtc = "2022-03-14T19:33:43.430Z",
Location = "westus2",
MessageForActivation = "Sample Activation message",
PartnerDestinationName = "examplePartnerDestinationName1",
PartnerRegistrationImmutableId = "0bd70ee2-7d95-447e-ab1f-c4f320019404",
ResourceGroupName = "examplerg",
});
});
package main
import (
eventgrid "github.com/pulumi/pulumi-azure-native-sdk/eventgrid/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := eventgrid.NewPartnerDestination(ctx, "partnerDestination", &eventgrid.PartnerDestinationArgs{
EndpointBaseUrl: pulumi.String("https://www.example/endpoint"),
EndpointServiceContext: pulumi.String("This is an example"),
ExpirationTimeIfNotActivatedUtc: pulumi.String("2022-03-14T19:33:43.430Z"),
Location: pulumi.String("westus2"),
MessageForActivation: pulumi.String("Sample Activation message"),
PartnerDestinationName: pulumi.String("examplePartnerDestinationName1"),
PartnerRegistrationImmutableId: pulumi.String("0bd70ee2-7d95-447e-ab1f-c4f320019404"),
ResourceGroupName: pulumi.String("examplerg"),
})
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.PartnerDestination;
import com.pulumi.azurenative.eventgrid.PartnerDestinationArgs;
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 partnerDestination = new PartnerDestination("partnerDestination", PartnerDestinationArgs.builder()
.endpointBaseUrl("https://www.example/endpoint")
.endpointServiceContext("This is an example")
.expirationTimeIfNotActivatedUtc("2022-03-14T19:33:43.430Z")
.location("westus2")
.messageForActivation("Sample Activation message")
.partnerDestinationName("examplePartnerDestinationName1")
.partnerRegistrationImmutableId("0bd70ee2-7d95-447e-ab1f-c4f320019404")
.resourceGroupName("examplerg")
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
partner_destination = azure_native.eventgrid.PartnerDestination("partnerDestination",
endpoint_base_url="https://www.example/endpoint",
endpoint_service_context="This is an example",
expiration_time_if_not_activated_utc="2022-03-14T19:33:43.430Z",
location="westus2",
message_for_activation="Sample Activation message",
partner_destination_name="examplePartnerDestinationName1",
partner_registration_immutable_id="0bd70ee2-7d95-447e-ab1f-c4f320019404",
resource_group_name="examplerg")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const partnerDestination = new azure_native.eventgrid.PartnerDestination("partnerDestination", {
endpointBaseUrl: "https://www.example/endpoint",
endpointServiceContext: "This is an example",
expirationTimeIfNotActivatedUtc: "2022-03-14T19:33:43.430Z",
location: "westus2",
messageForActivation: "Sample Activation message",
partnerDestinationName: "examplePartnerDestinationName1",
partnerRegistrationImmutableId: "0bd70ee2-7d95-447e-ab1f-c4f320019404",
resourceGroupName: "examplerg",
});
resources:
partnerDestination:
type: azure-native:eventgrid:PartnerDestination
properties:
endpointBaseUrl: https://www.example/endpoint
endpointServiceContext: This is an example
expirationTimeIfNotActivatedUtc: 2022-03-14T19:33:43.430Z
location: westus2
messageForActivation: Sample Activation message
partnerDestinationName: examplePartnerDestinationName1
partnerRegistrationImmutableId: 0bd70ee2-7d95-447e-ab1f-c4f320019404
resourceGroupName: examplerg
Create PartnerDestination Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new PartnerDestination(name: string, args: PartnerDestinationArgs, opts?: CustomResourceOptions);
@overload
def PartnerDestination(resource_name: str,
args: PartnerDestinationArgs,
opts: Optional[ResourceOptions] = None)
@overload
def PartnerDestination(resource_name: str,
opts: Optional[ResourceOptions] = None,
resource_group_name: Optional[str] = None,
activation_state: Optional[Union[str, PartnerDestinationActivationState]] = None,
endpoint_base_url: Optional[str] = None,
endpoint_service_context: Optional[str] = None,
expiration_time_if_not_activated_utc: Optional[str] = None,
location: Optional[str] = None,
message_for_activation: Optional[str] = None,
partner_destination_name: Optional[str] = None,
partner_registration_immutable_id: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None)
func NewPartnerDestination(ctx *Context, name string, args PartnerDestinationArgs, opts ...ResourceOption) (*PartnerDestination, error)
public PartnerDestination(string name, PartnerDestinationArgs args, CustomResourceOptions? opts = null)
public PartnerDestination(String name, PartnerDestinationArgs args)
public PartnerDestination(String name, PartnerDestinationArgs args, CustomResourceOptions options)
type: azure-native:eventgrid:PartnerDestination
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args PartnerDestinationArgs
- 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 PartnerDestinationArgs
- 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 PartnerDestinationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PartnerDestinationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args PartnerDestinationArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var partnerDestinationResource = new AzureNative.EventGrid.PartnerDestination("partnerDestinationResource", new()
{
ResourceGroupName = "string",
ActivationState = "string",
EndpointBaseUrl = "string",
EndpointServiceContext = "string",
ExpirationTimeIfNotActivatedUtc = "string",
Location = "string",
MessageForActivation = "string",
PartnerDestinationName = "string",
PartnerRegistrationImmutableId = "string",
Tags =
{
{ "string", "string" },
},
});
example, err := eventgrid.NewPartnerDestination(ctx, "partnerDestinationResource", &eventgrid.PartnerDestinationArgs{
ResourceGroupName: pulumi.String("string"),
ActivationState: pulumi.String("string"),
EndpointBaseUrl: pulumi.String("string"),
EndpointServiceContext: pulumi.String("string"),
ExpirationTimeIfNotActivatedUtc: pulumi.String("string"),
Location: pulumi.String("string"),
MessageForActivation: pulumi.String("string"),
PartnerDestinationName: pulumi.String("string"),
PartnerRegistrationImmutableId: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var partnerDestinationResource = new PartnerDestination("partnerDestinationResource", PartnerDestinationArgs.builder()
.resourceGroupName("string")
.activationState("string")
.endpointBaseUrl("string")
.endpointServiceContext("string")
.expirationTimeIfNotActivatedUtc("string")
.location("string")
.messageForActivation("string")
.partnerDestinationName("string")
.partnerRegistrationImmutableId("string")
.tags(Map.of("string", "string"))
.build());
partner_destination_resource = azure_native.eventgrid.PartnerDestination("partnerDestinationResource",
resource_group_name="string",
activation_state="string",
endpoint_base_url="string",
endpoint_service_context="string",
expiration_time_if_not_activated_utc="string",
location="string",
message_for_activation="string",
partner_destination_name="string",
partner_registration_immutable_id="string",
tags={
"string": "string",
})
const partnerDestinationResource = new azure_native.eventgrid.PartnerDestination("partnerDestinationResource", {
resourceGroupName: "string",
activationState: "string",
endpointBaseUrl: "string",
endpointServiceContext: "string",
expirationTimeIfNotActivatedUtc: "string",
location: "string",
messageForActivation: "string",
partnerDestinationName: "string",
partnerRegistrationImmutableId: "string",
tags: {
string: "string",
},
});
type: azure-native:eventgrid:PartnerDestination
properties:
activationState: string
endpointBaseUrl: string
endpointServiceContext: string
expirationTimeIfNotActivatedUtc: string
location: string
messageForActivation: string
partnerDestinationName: string
partnerRegistrationImmutableId: string
resourceGroupName: string
tags:
string: string
PartnerDestination Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The PartnerDestination resource accepts the following input properties:
- Resource
Group stringName - The name of the resource group within the user's subscription.
- Activation
State string | Pulumi.Azure Native. Event Grid. Partner Destination Activation State - Activation state of the partner destination.
- Endpoint
Base stringUrl - Endpoint Base URL of the partner destination
- Endpoint
Service stringContext - Endpoint context associated with this partner destination.
- Expiration
Time stringIf Not Activated Utc - Expiration time of the partner destination. If this timer expires and the partner destination was never activated, the partner destination and corresponding channel are deleted.
- Location string
- Location of the resource.
- Message
For stringActivation - Context or helpful message that can be used during the approval process.
- Partner
Destination stringName - Name of the partner destination.
- Partner
Registration stringImmutable Id - The immutable Id of the corresponding partner registration.
- Dictionary<string, string>
- Tags of the resource.
- Resource
Group stringName - The name of the resource group within the user's subscription.
- Activation
State string | PartnerDestination Activation State - Activation state of the partner destination.
- Endpoint
Base stringUrl - Endpoint Base URL of the partner destination
- Endpoint
Service stringContext - Endpoint context associated with this partner destination.
- Expiration
Time stringIf Not Activated Utc - Expiration time of the partner destination. If this timer expires and the partner destination was never activated, the partner destination and corresponding channel are deleted.
- Location string
- Location of the resource.
- Message
For stringActivation - Context or helpful message that can be used during the approval process.
- Partner
Destination stringName - Name of the partner destination.
- Partner
Registration stringImmutable Id - The immutable Id of the corresponding partner registration.
- map[string]string
- Tags of the resource.
- resource
Group StringName - The name of the resource group within the user's subscription.
- activation
State String | PartnerDestination Activation State - Activation state of the partner destination.
- endpoint
Base StringUrl - Endpoint Base URL of the partner destination
- endpoint
Service StringContext - Endpoint context associated with this partner destination.
- expiration
Time StringIf Not Activated Utc - Expiration time of the partner destination. If this timer expires and the partner destination was never activated, the partner destination and corresponding channel are deleted.
- location String
- Location of the resource.
- message
For StringActivation - Context or helpful message that can be used during the approval process.
- partner
Destination StringName - Name of the partner destination.
- partner
Registration StringImmutable Id - The immutable Id of the corresponding partner registration.
- Map<String,String>
- Tags of the resource.
- resource
Group stringName - The name of the resource group within the user's subscription.
- activation
State string | PartnerDestination Activation State - Activation state of the partner destination.
- endpoint
Base stringUrl - Endpoint Base URL of the partner destination
- endpoint
Service stringContext - Endpoint context associated with this partner destination.
- expiration
Time stringIf Not Activated Utc - Expiration time of the partner destination. If this timer expires and the partner destination was never activated, the partner destination and corresponding channel are deleted.
- location string
- Location of the resource.
- message
For stringActivation - Context or helpful message that can be used during the approval process.
- partner
Destination stringName - Name of the partner destination.
- partner
Registration stringImmutable Id - The immutable Id of the corresponding partner registration.
- {[key: string]: string}
- Tags of the resource.
- resource_
group_ strname - The name of the resource group within the user's subscription.
- activation_
state str | PartnerDestination Activation State - Activation state of the partner destination.
- endpoint_
base_ strurl - Endpoint Base URL of the partner destination
- endpoint_
service_ strcontext - Endpoint context associated with this partner destination.
- expiration_
time_ strif_ not_ activated_ utc - Expiration time of the partner destination. If this timer expires and the partner destination was never activated, the partner destination and corresponding channel are deleted.
- location str
- Location of the resource.
- message_
for_ stractivation - Context or helpful message that can be used during the approval process.
- partner_
destination_ strname - Name of the partner destination.
- partner_
registration_ strimmutable_ id - The immutable Id of the corresponding partner registration.
- Mapping[str, str]
- Tags of the resource.
- resource
Group StringName - The name of the resource group within the user's subscription.
- activation
State String | "NeverActivated" | "Activated" - Activation state of the partner destination.
- endpoint
Base StringUrl - Endpoint Base URL of the partner destination
- endpoint
Service StringContext - Endpoint context associated with this partner destination.
- expiration
Time StringIf Not Activated Utc - Expiration time of the partner destination. If this timer expires and the partner destination was never activated, the partner destination and corresponding channel are deleted.
- location String
- Location of the resource.
- message
For StringActivation - Context or helpful message that can be used during the approval process.
- partner
Destination StringName - Name of the partner destination.
- partner
Registration StringImmutable Id - The immutable Id of the corresponding partner registration.
- Map<String>
- Tags of the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the PartnerDestination resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Name of the resource.
- Provisioning
State string - Provisioning state of the partner destination.
- System
Data Pulumi.Azure Native. Event Grid. Outputs. System Data Response - The system metadata relating to Partner Destination resource.
- Type string
- Type of the resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Name of the resource.
- Provisioning
State string - Provisioning state of the partner destination.
- System
Data SystemData Response - The system metadata relating to Partner Destination resource.
- Type string
- Type of the resource.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- Name of the resource.
- provisioning
State String - Provisioning state of the partner destination.
- system
Data SystemData Response - The system metadata relating to Partner Destination resource.
- type String
- Type of the resource.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- Name of the resource.
- provisioning
State string - Provisioning state of the partner destination.
- system
Data SystemData Response - The system metadata relating to Partner Destination resource.
- type string
- Type of the resource.
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- Name of the resource.
- provisioning_
state str - Provisioning state of the partner destination.
- system_
data SystemData Response - The system metadata relating to Partner Destination resource.
- type str
- Type of the resource.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- Name of the resource.
- provisioning
State String - Provisioning state of the partner destination.
- system
Data Property Map - The system metadata relating to Partner Destination resource.
- type String
- Type of the resource.
Supporting Types
PartnerDestinationActivationState, PartnerDestinationActivationStateArgs
- Never
Activated - NeverActivated
- Activated
- Activated
- Partner
Destination Activation State Never Activated - NeverActivated
- Partner
Destination Activation State Activated - Activated
- Never
Activated - NeverActivated
- Activated
- Activated
- Never
Activated - NeverActivated
- Activated
- Activated
- NEVER_ACTIVATED
- NeverActivated
- ACTIVATED
- Activated
- "Never
Activated" - NeverActivated
- "Activated"
- Activated
SystemDataResponse, SystemDataResponseArgs
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
- created
At string - The timestamp of resource creation (UTC).
- created
By string - The identity that created the resource.
- created
By stringType - The type of identity that created the resource.
- last
Modified stringAt - The timestamp of resource last modification (UTC)
- last
Modified stringBy - The identity that last modified the resource.
- last
Modified stringBy Type - 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_ strtype - The type of identity that created the resource.
- last_
modified_ strat - The timestamp of resource last modification (UTC)
- last_
modified_ strby - The identity that last modified the resource.
- last_
modified_ strby_ type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - 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:PartnerDestination examplePartnerDestinationName1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerDestinations/{partnerDestinationName}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0