azure-native.datashare.ShareSubscription
Explore with Pulumi AI
A share subscription data transfer object.
Uses Azure REST API version 2021-08-01. In version 2.x of the Azure Native provider, it used API version 2021-08-01.
Create ShareSubscription Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ShareSubscription(name: string, args: ShareSubscriptionArgs, opts?: CustomResourceOptions);
@overload
def ShareSubscription(resource_name: str,
args: ShareSubscriptionArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ShareSubscription(resource_name: str,
opts: Optional[ResourceOptions] = None,
account_name: Optional[str] = None,
invitation_id: Optional[str] = None,
resource_group_name: Optional[str] = None,
source_share_location: Optional[str] = None,
expiration_date: Optional[str] = None,
share_subscription_name: Optional[str] = None)
func NewShareSubscription(ctx *Context, name string, args ShareSubscriptionArgs, opts ...ResourceOption) (*ShareSubscription, error)
public ShareSubscription(string name, ShareSubscriptionArgs args, CustomResourceOptions? opts = null)
public ShareSubscription(String name, ShareSubscriptionArgs args)
public ShareSubscription(String name, ShareSubscriptionArgs args, CustomResourceOptions options)
type: azure-native:datashare:ShareSubscription
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name
This property is required. string - The unique name of the resource.
- args
This property is required. ShareSubscriptionArgs - The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name
This property is required. str - The unique name of the resource.
- args
This property is required. ShareSubscriptionArgs - The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name
This property is required. string - The unique name of the resource.
- args
This property is required. ShareSubscriptionArgs - The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name
This property is required. string - The unique name of the resource.
- args
This property is required. ShareSubscriptionArgs - The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name
This property is required. String - The unique name of the resource.
- args
This property is required. ShareSubscriptionArgs - 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 shareSubscriptionResource = new AzureNative.DataShare.ShareSubscription("shareSubscriptionResource", new()
{
AccountName = "string",
InvitationId = "string",
ResourceGroupName = "string",
SourceShareLocation = "string",
ExpirationDate = "string",
ShareSubscriptionName = "string",
});
example, err := datashare.NewShareSubscription(ctx, "shareSubscriptionResource", &datashare.ShareSubscriptionArgs{
AccountName: pulumi.String("string"),
InvitationId: pulumi.String("string"),
ResourceGroupName: pulumi.String("string"),
SourceShareLocation: pulumi.String("string"),
ExpirationDate: pulumi.String("string"),
ShareSubscriptionName: pulumi.String("string"),
})
var shareSubscriptionResource = new ShareSubscription("shareSubscriptionResource", ShareSubscriptionArgs.builder()
.accountName("string")
.invitationId("string")
.resourceGroupName("string")
.sourceShareLocation("string")
.expirationDate("string")
.shareSubscriptionName("string")
.build());
share_subscription_resource = azure_native.datashare.ShareSubscription("shareSubscriptionResource",
account_name="string",
invitation_id="string",
resource_group_name="string",
source_share_location="string",
expiration_date="string",
share_subscription_name="string")
const shareSubscriptionResource = new azure_native.datashare.ShareSubscription("shareSubscriptionResource", {
accountName: "string",
invitationId: "string",
resourceGroupName: "string",
sourceShareLocation: "string",
expirationDate: "string",
shareSubscriptionName: "string",
});
type: azure-native:datashare:ShareSubscription
properties:
accountName: string
expirationDate: string
invitationId: string
resourceGroupName: string
shareSubscriptionName: string
sourceShareLocation: string
ShareSubscription 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 ShareSubscription resource accepts the following input properties:
- Account
Name This property is required. Changes to this property will trigger replacement.
- The name of the share account.
- Invitation
Id This property is required. string - The invitation id.
- Resource
Group Name This property is required. Changes to this property will trigger replacement.
- The resource group name.
This property is required. string- Source share location.
- Expiration
Date string - The expiration date of the share subscription.
Changes to this property will trigger replacement.
- The name of the shareSubscription.
- Account
Name This property is required. Changes to this property will trigger replacement.
- The name of the share account.
- Invitation
Id This property is required. string - The invitation id.
- Resource
Group Name This property is required. Changes to this property will trigger replacement.
- The resource group name.
This property is required. string- Source share location.
- Expiration
Date string - The expiration date of the share subscription.
Changes to this property will trigger replacement.
- The name of the shareSubscription.
- account
Name This property is required. Changes to this property will trigger replacement.
- The name of the share account.
- invitation
Id This property is required. String - The invitation id.
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- The resource group name.
This property is required. String- Source share location.
- expiration
Date String - The expiration date of the share subscription.
Changes to this property will trigger replacement.
- The name of the shareSubscription.
- account
Name This property is required. Changes to this property will trigger replacement.
- The name of the share account.
- invitation
Id This property is required. string - The invitation id.
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- The resource group name.
This property is required. string- Source share location.
- expiration
Date string - The expiration date of the share subscription.
Changes to this property will trigger replacement.
- The name of the shareSubscription.
- account_
name This property is required. Changes to this property will trigger replacement.
- The name of the share account.
- invitation_
id This property is required. str - The invitation id.
- resource_
group_ name This property is required. Changes to this property will trigger replacement.
- The resource group name.
This property is required. str- Source share location.
- expiration_
date str - The expiration date of the share subscription.
Changes to this property will trigger replacement.
- The name of the shareSubscription.
- account
Name This property is required. Changes to this property will trigger replacement.
- The name of the share account.
- invitation
Id This property is required. String - The invitation id.
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- The resource group name.
This property is required. String- Source share location.
- expiration
Date String - The expiration date of the share subscription.
Changes to this property will trigger replacement.
- The name of the shareSubscription.
Outputs
All input properties are implicitly available as output properties. Additionally, the ShareSubscription resource produces the following output properties:
- Azure
Api stringVersion - The Azure API version of the resource.
- Created
At string - Time at which the share subscription was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Name of the azure resource
- Provider
Email string - Email of the provider who created the resource
- Provider
Name string - Name of the provider who created the resource
- Provider
Tenant stringName - Tenant name of the provider who created the resource
- Provisioning
State string - Provisioning state of the share subscription
- string
- Description of share
- string
- Kind of share
- string
- Name of the share
- string
- Gets the current status of share subscription.
- string
- Terms of a share
- 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
- Azure
Api stringVersion - The Azure API version of the resource.
- Created
At string - Time at which the share subscription was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Name of the azure resource
- Provider
Email string - Email of the provider who created the resource
- Provider
Name string - Name of the provider who created the resource
- Provider
Tenant stringName - Tenant name of the provider who created the resource
- Provisioning
State string - Provisioning state of the share subscription
- string
- Description of share
- string
- Kind of share
- string
- Name of the share
- string
- Gets the current status of share subscription.
- string
- Terms of a share
- 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
- azure
Api StringVersion - The Azure API version of the resource.
- created
At String - Time at which the share subscription was created.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- Name of the azure resource
- provider
Email String - Email of the provider who created the resource
- provider
Name String - Name of the provider who created the resource
- provider
Tenant StringName - Tenant name of the provider who created the resource
- provisioning
State String - Provisioning state of the share subscription
- String
- Description of share
- String
- Kind of share
- String
- Name of the share
- String
- Gets the current status of share subscription.
- String
- Terms of a share
- 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
- azure
Api stringVersion - The Azure API version of the resource.
- created
At string - Time at which the share subscription was created.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- Name of the azure resource
- provider
Email string - Email of the provider who created the resource
- provider
Name string - Name of the provider who created the resource
- provider
Tenant stringName - Tenant name of the provider who created the resource
- provisioning
State string - Provisioning state of the share subscription
- string
- Description of share
- string
- Kind of share
- string
- Name of the share
- string
- Gets the current status of share subscription.
- string
- Terms of a share
- 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
- azure_
api_ strversion - The Azure API version of the resource.
- created_
at str - Time at which the share subscription was created.
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- Name of the azure resource
- provider_
email str - Email of the provider who created the resource
- provider_
name str - Name of the provider who created the resource
- provider_
tenant_ strname - Tenant name of the provider who created the resource
- provisioning_
state str - Provisioning state of the share subscription
- str
- Description of share
- str
- Kind of share
- str
- Name of the share
- str
- Gets the current status of share subscription.
- str
- Terms of a share
- 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
- azure
Api StringVersion - The Azure API version of the resource.
- created
At String - Time at which the share subscription was created.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- Name of the azure resource
- provider
Email String - Email of the provider who created the resource
- provider
Name String - Name of the provider who created the resource
- provider
Tenant StringName - Tenant name of the provider who created the resource
- provisioning
State String - Provisioning state of the share subscription
- String
- Description of share
- String
- Kind of share
- String
- Name of the share
- String
- Gets the current status of share subscription.
- String
- Terms of a share
- 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:ShareSubscription ShareSubscription1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shareSubscriptions/{shareSubscriptionName}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0