azure-native.datashare.Invitation
Explore with Pulumi AI
A Invitation data transfer object. Azure REST API version: 2021-08-01. Prior API version in Azure Native 1.x: 2020-09-01.
Example Usage
Invitations_Create
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var invitation = new AzureNative.DataShare.Invitation("invitation", new()
{
AccountName = "Account1",
ExpirationDate = "2020-08-26T22:33:24.5785265Z",
InvitationName = "Invitation1",
ResourceGroupName = "SampleResourceGroup",
ShareName = "Share1",
TargetEmail = "receiver@microsoft.com",
});
});
package main
import (
datashare "github.com/pulumi/pulumi-azure-native-sdk/datashare/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := datashare.NewInvitation(ctx, "invitation", &datashare.InvitationArgs{
AccountName: pulumi.String("Account1"),
ExpirationDate: pulumi.String("2020-08-26T22:33:24.5785265Z"),
InvitationName: pulumi.String("Invitation1"),
ResourceGroupName: pulumi.String("SampleResourceGroup"),
ShareName: pulumi.String("Share1"),
TargetEmail: pulumi.String("receiver@microsoft.com"),
})
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.datashare.Invitation;
import com.pulumi.azurenative.datashare.InvitationArgs;
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 invitation = new Invitation("invitation", InvitationArgs.builder()
.accountName("Account1")
.expirationDate("2020-08-26T22:33:24.5785265Z")
.invitationName("Invitation1")
.resourceGroupName("SampleResourceGroup")
.shareName("Share1")
.targetEmail("receiver@microsoft.com")
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
invitation = azure_native.datashare.Invitation("invitation",
account_name="Account1",
expiration_date="2020-08-26T22:33:24.5785265Z",
invitation_name="Invitation1",
resource_group_name="SampleResourceGroup",
share_name="Share1",
target_email="receiver@microsoft.com")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const invitation = new azure_native.datashare.Invitation("invitation", {
accountName: "Account1",
expirationDate: "2020-08-26T22:33:24.5785265Z",
invitationName: "Invitation1",
resourceGroupName: "SampleResourceGroup",
shareName: "Share1",
targetEmail: "receiver@microsoft.com",
});
resources:
invitation:
type: azure-native:datashare:Invitation
properties:
accountName: Account1
expirationDate: 2020-08-26T22:33:24.5785265Z
invitationName: Invitation1
resourceGroupName: SampleResourceGroup
shareName: Share1
targetEmail: receiver@microsoft.com
Create Invitation Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Invitation(name: string, args: InvitationArgs, opts?: CustomResourceOptions);
@overload
def Invitation(resource_name: str,
args: InvitationArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Invitation(resource_name: str,
opts: Optional[ResourceOptions] = None,
account_name: Optional[str] = None,
resource_group_name: Optional[str] = None,
share_name: Optional[str] = None,
expiration_date: Optional[str] = None,
invitation_name: Optional[str] = None,
target_active_directory_id: Optional[str] = None,
target_email: Optional[str] = None,
target_object_id: Optional[str] = None)
func NewInvitation(ctx *Context, name string, args InvitationArgs, opts ...ResourceOption) (*Invitation, error)
public Invitation(string name, InvitationArgs args, CustomResourceOptions? opts = null)
public Invitation(String name, InvitationArgs args)
public Invitation(String name, InvitationArgs args, CustomResourceOptions options)
type: azure-native:datashare:Invitation
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 InvitationArgs
- 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 InvitationArgs
- 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 InvitationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args InvitationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args InvitationArgs
- 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 invitationResource = new AzureNative.DataShare.Invitation("invitationResource", new()
{
AccountName = "string",
ResourceGroupName = "string",
ShareName = "string",
ExpirationDate = "string",
InvitationName = "string",
TargetActiveDirectoryId = "string",
TargetEmail = "string",
TargetObjectId = "string",
});
example, err := datashare.NewInvitation(ctx, "invitationResource", &datashare.InvitationArgs{
AccountName: pulumi.String("string"),
ResourceGroupName: pulumi.String("string"),
ShareName: pulumi.String("string"),
ExpirationDate: pulumi.String("string"),
InvitationName: pulumi.String("string"),
TargetActiveDirectoryId: pulumi.String("string"),
TargetEmail: pulumi.String("string"),
TargetObjectId: pulumi.String("string"),
})
var invitationResource = new Invitation("invitationResource", InvitationArgs.builder()
.accountName("string")
.resourceGroupName("string")
.shareName("string")
.expirationDate("string")
.invitationName("string")
.targetActiveDirectoryId("string")
.targetEmail("string")
.targetObjectId("string")
.build());
invitation_resource = azure_native.datashare.Invitation("invitationResource",
account_name="string",
resource_group_name="string",
share_name="string",
expiration_date="string",
invitation_name="string",
target_active_directory_id="string",
target_email="string",
target_object_id="string")
const invitationResource = new azure_native.datashare.Invitation("invitationResource", {
accountName: "string",
resourceGroupName: "string",
shareName: "string",
expirationDate: "string",
invitationName: "string",
targetActiveDirectoryId: "string",
targetEmail: "string",
targetObjectId: "string",
});
type: azure-native:datashare:Invitation
properties:
accountName: string
expirationDate: string
invitationName: string
resourceGroupName: string
shareName: string
targetActiveDirectoryId: string
targetEmail: string
targetObjectId: string
Invitation 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 Invitation resource accepts the following input properties:
- Account
Name string - The name of the share account.
- Resource
Group stringName - The resource group name.
- string
- The name of the share to send the invitation for.
- Expiration
Date string - The expiration date for the invitation and share subscription.
- Invitation
Name string - The name of the invitation.
- Target
Active stringDirectory Id - The target Azure AD Id. Can't be combined with email.
- Target
Email string - The email the invitation is directed to.
- Target
Object stringId - The target user or application Id that invitation is being sent to. Must be specified along TargetActiveDirectoryId. This enables sending invitations to specific users or applications in an AD tenant.
- Account
Name string - The name of the share account.
- Resource
Group stringName - The resource group name.
- string
- The name of the share to send the invitation for.
- Expiration
Date string - The expiration date for the invitation and share subscription.
- Invitation
Name string - The name of the invitation.
- Target
Active stringDirectory Id - The target Azure AD Id. Can't be combined with email.
- Target
Email string - The email the invitation is directed to.
- Target
Object stringId - The target user or application Id that invitation is being sent to. Must be specified along TargetActiveDirectoryId. This enables sending invitations to specific users or applications in an AD tenant.
- account
Name String - The name of the share account.
- resource
Group StringName - The resource group name.
- String
- The name of the share to send the invitation for.
- expiration
Date String - The expiration date for the invitation and share subscription.
- invitation
Name String - The name of the invitation.
- target
Active StringDirectory Id - The target Azure AD Id. Can't be combined with email.
- target
Email String - The email the invitation is directed to.
- target
Object StringId - The target user or application Id that invitation is being sent to. Must be specified along TargetActiveDirectoryId. This enables sending invitations to specific users or applications in an AD tenant.
- account
Name string - The name of the share account.
- resource
Group stringName - The resource group name.
- string
- The name of the share to send the invitation for.
- expiration
Date string - The expiration date for the invitation and share subscription.
- invitation
Name string - The name of the invitation.
- target
Active stringDirectory Id - The target Azure AD Id. Can't be combined with email.
- target
Email string - The email the invitation is directed to.
- target
Object stringId - The target user or application Id that invitation is being sent to. Must be specified along TargetActiveDirectoryId. This enables sending invitations to specific users or applications in an AD tenant.
- account_
name str - The name of the share account.
- resource_
group_ strname - The resource group name.
- str
- The name of the share to send the invitation for.
- expiration_
date str - The expiration date for the invitation and share subscription.
- invitation_
name str - The name of the invitation.
- target_
active_ strdirectory_ id - The target Azure AD Id. Can't be combined with email.
- target_
email str - The email the invitation is directed to.
- target_
object_ strid - The target user or application Id that invitation is being sent to. Must be specified along TargetActiveDirectoryId. This enables sending invitations to specific users or applications in an AD tenant.
- account
Name String - The name of the share account.
- resource
Group StringName - The resource group name.
- String
- The name of the share to send the invitation for.
- expiration
Date String - The expiration date for the invitation and share subscription.
- invitation
Name String - The name of the invitation.
- target
Active StringDirectory Id - The target Azure AD Id. Can't be combined with email.
- target
Email String - The email the invitation is directed to.
- target
Object StringId - The target user or application Id that invitation is being sent to. Must be specified along TargetActiveDirectoryId. This enables sending invitations to specific users or applications in an AD tenant.
Outputs
All input properties are implicitly available as output properties. Additionally, the Invitation resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Invitation
Id string - unique invitation id
- Invitation
Status string - The status of the invitation.
- Name string
- Name of the azure resource
- Responded
At string - The time the recipient responded to the invitation.
- Sent
At string - Gets the time at which the invitation was sent.
- System
Data Pulumi.Azure Native. Data Share. Outputs. System Data Response - System Data of the Azure resource.
- Type string
- Type of the azure resource
- User
Email string - Email of the user who created the resource
- User
Name string - Name of the user who created the resource
- Id string
- The provider-assigned unique ID for this managed resource.
- Invitation
Id string - unique invitation id
- Invitation
Status string - The status of the invitation.
- Name string
- Name of the azure resource
- Responded
At string - The time the recipient responded to the invitation.
- Sent
At string - Gets the time at which the invitation was sent.
- System
Data SystemData Response - System Data of the Azure resource.
- Type string
- Type of the azure resource
- User
Email string - Email of the user who created the resource
- User
Name string - Name of the user who created the resource
- id String
- The provider-assigned unique ID for this managed resource.
- invitation
Id String - unique invitation id
- invitation
Status String - The status of the invitation.
- name String
- Name of the azure resource
- responded
At String - The time the recipient responded to the invitation.
- sent
At String - Gets the time at which the invitation was sent.
- system
Data SystemData Response - System Data of the Azure resource.
- type String
- Type of the azure resource
- user
Email String - Email of the user who created the resource
- user
Name String - Name of the user who created the resource
- id string
- The provider-assigned unique ID for this managed resource.
- invitation
Id string - unique invitation id
- invitation
Status string - The status of the invitation.
- name string
- Name of the azure resource
- responded
At string - The time the recipient responded to the invitation.
- sent
At string - Gets the time at which the invitation was sent.
- system
Data SystemData Response - System Data of the Azure resource.
- type string
- Type of the azure resource
- user
Email string - Email of the user who created the resource
- user
Name string - Name of the user who created the resource
- id str
- The provider-assigned unique ID for this managed resource.
- invitation_
id str - unique invitation id
- invitation_
status str - The status of the invitation.
- name str
- Name of the azure resource
- responded_
at str - The time the recipient responded to the invitation.
- sent_
at str - Gets the time at which the invitation was sent.
- system_
data SystemData Response - System Data of the Azure resource.
- type str
- Type of the azure resource
- user_
email str - Email of the user who created the resource
- user_
name str - Name of the user who created the resource
- id String
- The provider-assigned unique ID for this managed resource.
- invitation
Id String - unique invitation id
- invitation
Status String - The status of the invitation.
- name String
- Name of the azure resource
- responded
At String - The time the recipient responded to the invitation.
- sent
At String - Gets the time at which the invitation was sent.
- system
Data Property Map - System Data of the Azure resource.
- type String
- Type of the azure resource
- user
Email String - Email of the user who created the resource
- user
Name String - Name of the user who created the resource
Supporting Types
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 type of identity that last modified the resource.
- 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 type of identity that last modified the resource.
- 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 type of identity that last modified the resource.
- 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 type of identity that last modified the resource.
- 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 type of identity that last modified the resource.
- 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 type of identity that last modified the resource.
- 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:datashare:Invitation Invitation1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shares/{shareName}/invitations/{invitationName}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0