datashare

package
v3.30.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 6, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Account

type Account struct {
	pulumi.CustomResourceState

	// An `identity` block as defined below.
	Identity AccountIdentityOutput `pulumi:"identity"`
	// The Azure Region where the Data Share Account should exist. Changing this forces a new Data Share Account to be created.
	Location pulumi.StringOutput `pulumi:"location"`
	// The name which should be used for this Data Share Account. Changing this forces a new Data Share Account to be created.
	Name pulumi.StringOutput `pulumi:"name"`
	// The name of the Resource Group where the Data Share Account should exist. Changing this forces a new Data Share Account to be created.
	ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"`
	// A mapping of tags which should be assigned to the Data Share Account.
	Tags pulumi.StringMapOutput `pulumi:"tags"`
}

Manages a Data Share Account.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-azure/sdk/v3/go/azure/core"
"github.com/pulumi/pulumi-azure/sdk/v3/go/azure/datashare"
"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 Europe"),
		})
		if err != nil {
			return err
		}
		_, err = datashare.NewAccount(ctx, "exampleAccount", &datashare.AccountArgs{
			Location:          exampleResourceGroup.Location,
			ResourceGroupName: exampleResourceGroup.Name,
			Identity: &datashare.AccountIdentityArgs{
				Type: pulumi.String("SystemAssigned"),
			},
			Tags: pulumi.StringMap{
				"foo": pulumi.String("bar"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

func GetAccount

func GetAccount(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *AccountState, opts ...pulumi.ResourceOption) (*Account, error)

GetAccount gets an existing Account resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewAccount

func NewAccount(ctx *pulumi.Context,
	name string, args *AccountArgs, opts ...pulumi.ResourceOption) (*Account, error)

NewAccount registers a new resource with the given unique name, arguments, and options.

type AccountArgs

type AccountArgs struct {
	// An `identity` block as defined below.
	Identity AccountIdentityInput
	// The Azure Region where the Data Share Account should exist. Changing this forces a new Data Share Account to be created.
	Location pulumi.StringPtrInput
	// The name which should be used for this Data Share Account. Changing this forces a new Data Share Account to be created.
	Name pulumi.StringPtrInput
	// The name of the Resource Group where the Data Share Account should exist. Changing this forces a new Data Share Account to be created.
	ResourceGroupName pulumi.StringInput
	// A mapping of tags which should be assigned to the Data Share Account.
	Tags pulumi.StringMapInput
}

The set of arguments for constructing a Account resource.

func (AccountArgs) ElementType

func (AccountArgs) ElementType() reflect.Type

type AccountIdentity

type AccountIdentity struct {
	// The Principal ID for the Service Principal associated with the Identity of this Data Share Account.
	PrincipalId *string `pulumi:"principalId"`
	// The Tenant ID for the Service Principal associated with the Identity of this Data Share Account.
	TenantId *string `pulumi:"tenantId"`
	// Specifies the identity type of the Data Share Account. At this time the only allowed value is `SystemAssigned`.
	Type string `pulumi:"type"`
}

type AccountIdentityArgs

type AccountIdentityArgs struct {
	// The Principal ID for the Service Principal associated with the Identity of this Data Share Account.
	PrincipalId pulumi.StringPtrInput `pulumi:"principalId"`
	// The Tenant ID for the Service Principal associated with the Identity of this Data Share Account.
	TenantId pulumi.StringPtrInput `pulumi:"tenantId"`
	// Specifies the identity type of the Data Share Account. At this time the only allowed value is `SystemAssigned`.
	Type pulumi.StringInput `pulumi:"type"`
}

func (AccountIdentityArgs) ElementType

func (AccountIdentityArgs) ElementType() reflect.Type

func (AccountIdentityArgs) ToAccountIdentityOutput

func (i AccountIdentityArgs) ToAccountIdentityOutput() AccountIdentityOutput

func (AccountIdentityArgs) ToAccountIdentityOutputWithContext

func (i AccountIdentityArgs) ToAccountIdentityOutputWithContext(ctx context.Context) AccountIdentityOutput

func (AccountIdentityArgs) ToAccountIdentityPtrOutput

func (i AccountIdentityArgs) ToAccountIdentityPtrOutput() AccountIdentityPtrOutput

func (AccountIdentityArgs) ToAccountIdentityPtrOutputWithContext

func (i AccountIdentityArgs) ToAccountIdentityPtrOutputWithContext(ctx context.Context) AccountIdentityPtrOutput

type AccountIdentityInput

type AccountIdentityInput interface {
	pulumi.Input

	ToAccountIdentityOutput() AccountIdentityOutput
	ToAccountIdentityOutputWithContext(context.Context) AccountIdentityOutput
}

AccountIdentityInput is an input type that accepts AccountIdentityArgs and AccountIdentityOutput values. You can construct a concrete instance of `AccountIdentityInput` via:

AccountIdentityArgs{...}

type AccountIdentityOutput

type AccountIdentityOutput struct{ *pulumi.OutputState }

func (AccountIdentityOutput) ElementType

func (AccountIdentityOutput) ElementType() reflect.Type

func (AccountIdentityOutput) PrincipalId

The Principal ID for the Service Principal associated with the Identity of this Data Share Account.

func (AccountIdentityOutput) TenantId

The Tenant ID for the Service Principal associated with the Identity of this Data Share Account.

func (AccountIdentityOutput) ToAccountIdentityOutput

func (o AccountIdentityOutput) ToAccountIdentityOutput() AccountIdentityOutput

func (AccountIdentityOutput) ToAccountIdentityOutputWithContext

func (o AccountIdentityOutput) ToAccountIdentityOutputWithContext(ctx context.Context) AccountIdentityOutput

func (AccountIdentityOutput) ToAccountIdentityPtrOutput

func (o AccountIdentityOutput) ToAccountIdentityPtrOutput() AccountIdentityPtrOutput

func (AccountIdentityOutput) ToAccountIdentityPtrOutputWithContext

func (o AccountIdentityOutput) ToAccountIdentityPtrOutputWithContext(ctx context.Context) AccountIdentityPtrOutput

func (AccountIdentityOutput) Type

Specifies the identity type of the Data Share Account. At this time the only allowed value is `SystemAssigned`.

type AccountIdentityPtrInput

type AccountIdentityPtrInput interface {
	pulumi.Input

	ToAccountIdentityPtrOutput() AccountIdentityPtrOutput
	ToAccountIdentityPtrOutputWithContext(context.Context) AccountIdentityPtrOutput
}

AccountIdentityPtrInput is an input type that accepts AccountIdentityArgs, AccountIdentityPtr and AccountIdentityPtrOutput values. You can construct a concrete instance of `AccountIdentityPtrInput` via:

        AccountIdentityArgs{...}

or:

        nil

type AccountIdentityPtrOutput

type AccountIdentityPtrOutput struct{ *pulumi.OutputState }

func (AccountIdentityPtrOutput) Elem

func (AccountIdentityPtrOutput) ElementType

func (AccountIdentityPtrOutput) ElementType() reflect.Type

func (AccountIdentityPtrOutput) PrincipalId

The Principal ID for the Service Principal associated with the Identity of this Data Share Account.

func (AccountIdentityPtrOutput) TenantId

The Tenant ID for the Service Principal associated with the Identity of this Data Share Account.

func (AccountIdentityPtrOutput) ToAccountIdentityPtrOutput

func (o AccountIdentityPtrOutput) ToAccountIdentityPtrOutput() AccountIdentityPtrOutput

func (AccountIdentityPtrOutput) ToAccountIdentityPtrOutputWithContext

func (o AccountIdentityPtrOutput) ToAccountIdentityPtrOutputWithContext(ctx context.Context) AccountIdentityPtrOutput

func (AccountIdentityPtrOutput) Type

Specifies the identity type of the Data Share Account. At this time the only allowed value is `SystemAssigned`.

type AccountState

type AccountState struct {
	// An `identity` block as defined below.
	Identity AccountIdentityPtrInput
	// The Azure Region where the Data Share Account should exist. Changing this forces a new Data Share Account to be created.
	Location pulumi.StringPtrInput
	// The name which should be used for this Data Share Account. Changing this forces a new Data Share Account to be created.
	Name pulumi.StringPtrInput
	// The name of the Resource Group where the Data Share Account should exist. Changing this forces a new Data Share Account to be created.
	ResourceGroupName pulumi.StringPtrInput
	// A mapping of tags which should be assigned to the Data Share Account.
	Tags pulumi.StringMapInput
}

func (AccountState) ElementType

func (AccountState) ElementType() reflect.Type

type DatasetBlobStorage added in v3.10.0

type DatasetBlobStorage struct {
	pulumi.CustomResourceState

	// The name of the storage account container to be shared with the receiver. Changing this forces a new Data Share Blob Storage Dataset to be created.
	ContainerName pulumi.StringOutput `pulumi:"containerName"`
	// The ID of the Data Share in which this Data Share Blob Storage Dataset should be created. Changing this forces a new Data Share Blob Storage Dataset to be created.
	DataShareId pulumi.StringOutput `pulumi:"dataShareId"`
	// The name of the Data Share Dataset.
	DisplayName pulumi.StringOutput `pulumi:"displayName"`
	// The path of the file in the storage container to be shared with the receiver. Changing this forces a new Data Share Blob Storage Dataset to be created.
	FilePath pulumi.StringPtrOutput `pulumi:"filePath"`
	// The path of the folder in the storage container to be shared with the receiver. Changing this forces a new Data Share Blob Storage Dataset to be created.
	FolderPath pulumi.StringPtrOutput `pulumi:"folderPath"`
	// The name which should be used for this Data Share Blob Storage Dataset. Changing this forces a new Data Share Blob Storage Dataset to be created.
	Name pulumi.StringOutput `pulumi:"name"`
	// A `storageAccount` block as defined below.
	StorageAccount DatasetBlobStorageStorageAccountOutput `pulumi:"storageAccount"`
}

Manages a Data Share Blob Storage Dataset.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-azure/sdk/v3/go/azure/authorization"
"github.com/pulumi/pulumi-azure/sdk/v3/go/azure/core"
"github.com/pulumi/pulumi-azure/sdk/v3/go/azure/datashare"
"github.com/pulumi/pulumi-azure/sdk/v3/go/azure/storage"
"github.com/pulumi/pulumi-azuread/sdk/v2/go/azuread"
"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 Europe"),
		})
		if err != nil {
			return err
		}
		exampleAccount, err := datashare.NewAccount(ctx, "exampleAccount", &datashare.AccountArgs{
			Location:          exampleResourceGroup.Location,
			ResourceGroupName: exampleResourceGroup.Name,
			Identity: &datashare.AccountIdentityArgs{
				Type: pulumi.String("SystemAssigned"),
			},
		})
		if err != nil {
			return err
		}
		exampleShare, err := datashare.NewShare(ctx, "exampleShare", &datashare.ShareArgs{
			AccountId: exampleAccount.ID(),
			Kind:      pulumi.String("CopyBased"),
		})
		if err != nil {
			return err
		}
		_, err = storage.NewAccount(ctx, "exampleStorage_accountAccount", &storage.AccountArgs{
			ResourceGroupName:      exampleResourceGroup.Name,
			Location:               exampleResourceGroup.Location,
			AccountTier:            pulumi.String("Standard"),
			AccountReplicationType: pulumi.String("RAGRS"),
		})
		if err != nil {
			return err
		}
		exampleContainer, err := storage.NewContainer(ctx, "exampleContainer", &storage.ContainerArgs{
			StorageAccountName:  pulumi.String(exampleStorage / accountAccount.Name),
			ContainerAccessType: pulumi.String("container"),
		})
		if err != nil {
			return err
		}
		exampleAssignment, err := authorization.NewAssignment(ctx, "exampleAssignment", &authorization.AssignmentArgs{
			Scope:              pulumi.String(exampleStorage / accountAccount.Id),
			RoleDefinitionName: pulumi.String("Storage Blob Data Reader"),
			PrincipalId: exampleServicePrincipal.ApplyT(func(exampleServicePrincipal azuread.LookupServicePrincipalResult) (string, error) {
				return exampleServicePrincipal.ObjectId, nil
			}).(pulumi.StringOutput),
		})
		if err != nil {
			return err
		}
		_, err = datashare.NewDatasetBlobStorage(ctx, "exampleDatasetBlobStorage", &datashare.DatasetBlobStorageArgs{
			DataShareId:   exampleShare.ID(),
			ContainerName: exampleContainer.Name,
			StorageAccount: &datashare.DatasetBlobStorageStorageAccountArgs{
				Name:              pulumi.String(exampleStorage / accountAccount.Name),
				ResourceGroupName: pulumi.String(exampleStorage / accountAccount.ResourceGroupName),
				SubscriptionId:    pulumi.String("00000000-0000-0000-0000-000000000000"),
			},
			FilePath: pulumi.String("myfile.txt"),
		}, pulumi.DependsOn([]pulumi.Resource{
			exampleAssignment,
		}))
		if err != nil {
			return err
		}
		return nil
	})
}

```

func GetDatasetBlobStorage added in v3.10.0

func GetDatasetBlobStorage(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *DatasetBlobStorageState, opts ...pulumi.ResourceOption) (*DatasetBlobStorage, error)

GetDatasetBlobStorage gets an existing DatasetBlobStorage resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewDatasetBlobStorage added in v3.10.0

func NewDatasetBlobStorage(ctx *pulumi.Context,
	name string, args *DatasetBlobStorageArgs, opts ...pulumi.ResourceOption) (*DatasetBlobStorage, error)

NewDatasetBlobStorage registers a new resource with the given unique name, arguments, and options.

type DatasetBlobStorageArgs added in v3.10.0

type DatasetBlobStorageArgs struct {
	// The name of the storage account container to be shared with the receiver. Changing this forces a new Data Share Blob Storage Dataset to be created.
	ContainerName pulumi.StringInput
	// The ID of the Data Share in which this Data Share Blob Storage Dataset should be created. Changing this forces a new Data Share Blob Storage Dataset to be created.
	DataShareId pulumi.StringInput
	// The path of the file in the storage container to be shared with the receiver. Changing this forces a new Data Share Blob Storage Dataset to be created.
	FilePath pulumi.StringPtrInput
	// The path of the folder in the storage container to be shared with the receiver. Changing this forces a new Data Share Blob Storage Dataset to be created.
	FolderPath pulumi.StringPtrInput
	// The name which should be used for this Data Share Blob Storage Dataset. Changing this forces a new Data Share Blob Storage Dataset to be created.
	Name pulumi.StringPtrInput
	// A `storageAccount` block as defined below.
	StorageAccount DatasetBlobStorageStorageAccountInput
}

The set of arguments for constructing a DatasetBlobStorage resource.

func (DatasetBlobStorageArgs) ElementType added in v3.10.0

func (DatasetBlobStorageArgs) ElementType() reflect.Type

type DatasetBlobStorageState added in v3.10.0

type DatasetBlobStorageState struct {
	// The name of the storage account container to be shared with the receiver. Changing this forces a new Data Share Blob Storage Dataset to be created.
	ContainerName pulumi.StringPtrInput
	// The ID of the Data Share in which this Data Share Blob Storage Dataset should be created. Changing this forces a new Data Share Blob Storage Dataset to be created.
	DataShareId pulumi.StringPtrInput
	// The name of the Data Share Dataset.
	DisplayName pulumi.StringPtrInput
	// The path of the file in the storage container to be shared with the receiver. Changing this forces a new Data Share Blob Storage Dataset to be created.
	FilePath pulumi.StringPtrInput
	// The path of the folder in the storage container to be shared with the receiver. Changing this forces a new Data Share Blob Storage Dataset to be created.
	FolderPath pulumi.StringPtrInput
	// The name which should be used for this Data Share Blob Storage Dataset. Changing this forces a new Data Share Blob Storage Dataset to be created.
	Name pulumi.StringPtrInput
	// A `storageAccount` block as defined below.
	StorageAccount DatasetBlobStorageStorageAccountPtrInput
}

func (DatasetBlobStorageState) ElementType added in v3.10.0

func (DatasetBlobStorageState) ElementType() reflect.Type

type DatasetBlobStorageStorageAccount added in v3.10.0

type DatasetBlobStorageStorageAccount struct {
	// The name of the storage account to be shared with the receiver. Changing this forces a new Data Share Blob Storage Dataset to be created.
	Name string `pulumi:"name"`
	// The resource group name of the storage account to be shared with the receiver. Changing this forces a new Data Share Blob Storage Dataset to be created.
	ResourceGroupName string `pulumi:"resourceGroupName"`
	// The subscription id of the storage account to be shared with the receiver. Changing this forces a new Data Share Blob Storage Dataset to be created.
	SubscriptionId string `pulumi:"subscriptionId"`
}

type DatasetBlobStorageStorageAccountArgs added in v3.10.0

type DatasetBlobStorageStorageAccountArgs struct {
	// The name of the storage account to be shared with the receiver. Changing this forces a new Data Share Blob Storage Dataset to be created.
	Name pulumi.StringInput `pulumi:"name"`
	// The resource group name of the storage account to be shared with the receiver. Changing this forces a new Data Share Blob Storage Dataset to be created.
	ResourceGroupName pulumi.StringInput `pulumi:"resourceGroupName"`
	// The subscription id of the storage account to be shared with the receiver. Changing this forces a new Data Share Blob Storage Dataset to be created.
	SubscriptionId pulumi.StringInput `pulumi:"subscriptionId"`
}

func (DatasetBlobStorageStorageAccountArgs) ElementType added in v3.10.0

func (DatasetBlobStorageStorageAccountArgs) ToDatasetBlobStorageStorageAccountOutput added in v3.10.0

func (i DatasetBlobStorageStorageAccountArgs) ToDatasetBlobStorageStorageAccountOutput() DatasetBlobStorageStorageAccountOutput

func (DatasetBlobStorageStorageAccountArgs) ToDatasetBlobStorageStorageAccountOutputWithContext added in v3.10.0

func (i DatasetBlobStorageStorageAccountArgs) ToDatasetBlobStorageStorageAccountOutputWithContext(ctx context.Context) DatasetBlobStorageStorageAccountOutput

func (DatasetBlobStorageStorageAccountArgs) ToDatasetBlobStorageStorageAccountPtrOutput added in v3.10.0

func (i DatasetBlobStorageStorageAccountArgs) ToDatasetBlobStorageStorageAccountPtrOutput() DatasetBlobStorageStorageAccountPtrOutput

func (DatasetBlobStorageStorageAccountArgs) ToDatasetBlobStorageStorageAccountPtrOutputWithContext added in v3.10.0

func (i DatasetBlobStorageStorageAccountArgs) ToDatasetBlobStorageStorageAccountPtrOutputWithContext(ctx context.Context) DatasetBlobStorageStorageAccountPtrOutput

type DatasetBlobStorageStorageAccountInput added in v3.10.0

type DatasetBlobStorageStorageAccountInput interface {
	pulumi.Input

	ToDatasetBlobStorageStorageAccountOutput() DatasetBlobStorageStorageAccountOutput
	ToDatasetBlobStorageStorageAccountOutputWithContext(context.Context) DatasetBlobStorageStorageAccountOutput
}

DatasetBlobStorageStorageAccountInput is an input type that accepts DatasetBlobStorageStorageAccountArgs and DatasetBlobStorageStorageAccountOutput values. You can construct a concrete instance of `DatasetBlobStorageStorageAccountInput` via:

DatasetBlobStorageStorageAccountArgs{...}

type DatasetBlobStorageStorageAccountOutput added in v3.10.0

type DatasetBlobStorageStorageAccountOutput struct{ *pulumi.OutputState }

func (DatasetBlobStorageStorageAccountOutput) ElementType added in v3.10.0

func (DatasetBlobStorageStorageAccountOutput) Name added in v3.10.0

The name of the storage account to be shared with the receiver. Changing this forces a new Data Share Blob Storage Dataset to be created.

func (DatasetBlobStorageStorageAccountOutput) ResourceGroupName added in v3.10.0

The resource group name of the storage account to be shared with the receiver. Changing this forces a new Data Share Blob Storage Dataset to be created.

func (DatasetBlobStorageStorageAccountOutput) SubscriptionId added in v3.10.0

The subscription id of the storage account to be shared with the receiver. Changing this forces a new Data Share Blob Storage Dataset to be created.

func (DatasetBlobStorageStorageAccountOutput) ToDatasetBlobStorageStorageAccountOutput added in v3.10.0

func (o DatasetBlobStorageStorageAccountOutput) ToDatasetBlobStorageStorageAccountOutput() DatasetBlobStorageStorageAccountOutput

func (DatasetBlobStorageStorageAccountOutput) ToDatasetBlobStorageStorageAccountOutputWithContext added in v3.10.0

func (o DatasetBlobStorageStorageAccountOutput) ToDatasetBlobStorageStorageAccountOutputWithContext(ctx context.Context) DatasetBlobStorageStorageAccountOutput

func (DatasetBlobStorageStorageAccountOutput) ToDatasetBlobStorageStorageAccountPtrOutput added in v3.10.0

func (o DatasetBlobStorageStorageAccountOutput) ToDatasetBlobStorageStorageAccountPtrOutput() DatasetBlobStorageStorageAccountPtrOutput

func (DatasetBlobStorageStorageAccountOutput) ToDatasetBlobStorageStorageAccountPtrOutputWithContext added in v3.10.0

func (o DatasetBlobStorageStorageAccountOutput) ToDatasetBlobStorageStorageAccountPtrOutputWithContext(ctx context.Context) DatasetBlobStorageStorageAccountPtrOutput

type DatasetBlobStorageStorageAccountPtrInput added in v3.10.0

type DatasetBlobStorageStorageAccountPtrInput interface {
	pulumi.Input

	ToDatasetBlobStorageStorageAccountPtrOutput() DatasetBlobStorageStorageAccountPtrOutput
	ToDatasetBlobStorageStorageAccountPtrOutputWithContext(context.Context) DatasetBlobStorageStorageAccountPtrOutput
}

DatasetBlobStorageStorageAccountPtrInput is an input type that accepts DatasetBlobStorageStorageAccountArgs, DatasetBlobStorageStorageAccountPtr and DatasetBlobStorageStorageAccountPtrOutput values. You can construct a concrete instance of `DatasetBlobStorageStorageAccountPtrInput` via:

        DatasetBlobStorageStorageAccountArgs{...}

or:

        nil

type DatasetBlobStorageStorageAccountPtrOutput added in v3.10.0

type DatasetBlobStorageStorageAccountPtrOutput struct{ *pulumi.OutputState }

func (DatasetBlobStorageStorageAccountPtrOutput) Elem added in v3.10.0

func (DatasetBlobStorageStorageAccountPtrOutput) ElementType added in v3.10.0

func (DatasetBlobStorageStorageAccountPtrOutput) Name added in v3.10.0

The name of the storage account to be shared with the receiver. Changing this forces a new Data Share Blob Storage Dataset to be created.

func (DatasetBlobStorageStorageAccountPtrOutput) ResourceGroupName added in v3.10.0

The resource group name of the storage account to be shared with the receiver. Changing this forces a new Data Share Blob Storage Dataset to be created.

func (DatasetBlobStorageStorageAccountPtrOutput) SubscriptionId added in v3.10.0

The subscription id of the storage account to be shared with the receiver. Changing this forces a new Data Share Blob Storage Dataset to be created.

func (DatasetBlobStorageStorageAccountPtrOutput) ToDatasetBlobStorageStorageAccountPtrOutput added in v3.10.0

func (o DatasetBlobStorageStorageAccountPtrOutput) ToDatasetBlobStorageStorageAccountPtrOutput() DatasetBlobStorageStorageAccountPtrOutput

func (DatasetBlobStorageStorageAccountPtrOutput) ToDatasetBlobStorageStorageAccountPtrOutputWithContext added in v3.10.0

func (o DatasetBlobStorageStorageAccountPtrOutput) ToDatasetBlobStorageStorageAccountPtrOutputWithContext(ctx context.Context) DatasetBlobStorageStorageAccountPtrOutput

type DatasetDataLakeGen1 added in v3.13.0

type DatasetDataLakeGen1 struct {
	pulumi.CustomResourceState

	// The resource ID of the Data Lake Store to be shared with the receiver.
	DataLakeStoreId pulumi.StringOutput `pulumi:"dataLakeStoreId"`
	// The resource ID of the Data Share where this Data Share Data Lake Gen1 Dataset should be created. Changing this forces a new Data Share Data Lake Gen1 Dataset to be created.
	DataShareId pulumi.StringOutput `pulumi:"dataShareId"`
	// The displayed name of the Data Share Dataset.
	DisplayName pulumi.StringOutput `pulumi:"displayName"`
	// The file name of the data lake store to be shared with the receiver. Changing this forces a new Data Share Data Lake Gen1 Dataset to be created.
	FileName pulumi.StringPtrOutput `pulumi:"fileName"`
	// The folder path of the data lake store to be shared with the receiver. Changing this forces a new Data Share Data Lake Gen1 Dataset to be created.
	FolderPath pulumi.StringOutput `pulumi:"folderPath"`
	// The name of the Data Share Data Lake Gen1 Dataset. Changing this forces a new Data Share Data Lake Gen1 Dataset to be created.
	Name pulumi.StringOutput `pulumi:"name"`
}

Manages a Data Share Data Lake Gen1 Dataset.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-azure/sdk/v3/go/azure/authorization"
"github.com/pulumi/pulumi-azure/sdk/v3/go/azure/core"
"github.com/pulumi/pulumi-azure/sdk/v3/go/azure/datalake"
"github.com/pulumi/pulumi-azure/sdk/v3/go/azure/datashare"
"github.com/pulumi/pulumi-azuread/sdk/v2/go/azuread"
"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 Europe"),
		})
		if err != nil {
			return err
		}
		exampleAccount, err := datashare.NewAccount(ctx, "exampleAccount", &datashare.AccountArgs{
			Location:          exampleResourceGroup.Location,
			ResourceGroupName: exampleResourceGroup.Name,
			Identity: &datashare.AccountIdentityArgs{
				Type: pulumi.String("SystemAssigned"),
			},
		})
		if err != nil {
			return err
		}
		exampleShare, err := datashare.NewShare(ctx, "exampleShare", &datashare.ShareArgs{
			AccountId: exampleAccount.ID(),
			Kind:      pulumi.String("CopyBased"),
		})
		if err != nil {
			return err
		}
		exampleStore, err := datalake.NewStore(ctx, "exampleStore", &datalake.StoreArgs{
			ResourceGroupName: exampleResourceGroup.Name,
			Location:          exampleResourceGroup.Location,
			FirewallState:     pulumi.String("Disabled"),
		})
		if err != nil {
			return err
		}
		_, err = datalake.NewStoreFile(ctx, "exampleStoreFile", &datalake.StoreFileArgs{
			AccountName:    exampleStore.Name,
			LocalFilePath:  pulumi.String("./example/myfile.txt"),
			RemoteFilePath: pulumi.String("/example/myfile.txt"),
		})
		if err != nil {
			return err
		}
		exampleAssignment, err := authorization.NewAssignment(ctx, "exampleAssignment", &authorization.AssignmentArgs{
			Scope:              exampleStore.ID(),
			RoleDefinitionName: pulumi.String("Owner"),
			PrincipalId: exampleServicePrincipal.ApplyT(func(exampleServicePrincipal azuread.LookupServicePrincipalResult) (string, error) {
				return exampleServicePrincipal.ObjectId, nil
			}).(pulumi.StringOutput),
		})
		if err != nil {
			return err
		}
		_, err = datashare.NewDatasetDataLakeGen1(ctx, "exampleDatasetDataLakeGen1", &datashare.DatasetDataLakeGen1Args{
			DataShareId:     exampleShare.ID(),
			DataLakeStoreId: exampleStore.ID(),
			FileName:        pulumi.String("myfile.txt"),
			FolderPath:      pulumi.String("example"),
		}, pulumi.DependsOn([]pulumi.Resource{
			exampleAssignment,
		}))
		if err != nil {
			return err
		}
		return nil
	})
}

```

func GetDatasetDataLakeGen1 added in v3.13.0

func GetDatasetDataLakeGen1(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *DatasetDataLakeGen1State, opts ...pulumi.ResourceOption) (*DatasetDataLakeGen1, error)

GetDatasetDataLakeGen1 gets an existing DatasetDataLakeGen1 resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewDatasetDataLakeGen1 added in v3.13.0

func NewDatasetDataLakeGen1(ctx *pulumi.Context,
	name string, args *DatasetDataLakeGen1Args, opts ...pulumi.ResourceOption) (*DatasetDataLakeGen1, error)

NewDatasetDataLakeGen1 registers a new resource with the given unique name, arguments, and options.

type DatasetDataLakeGen1Args added in v3.13.0

type DatasetDataLakeGen1Args struct {
	// The resource ID of the Data Lake Store to be shared with the receiver.
	DataLakeStoreId pulumi.StringInput
	// The resource ID of the Data Share where this Data Share Data Lake Gen1 Dataset should be created. Changing this forces a new Data Share Data Lake Gen1 Dataset to be created.
	DataShareId pulumi.StringInput
	// The file name of the data lake store to be shared with the receiver. Changing this forces a new Data Share Data Lake Gen1 Dataset to be created.
	FileName pulumi.StringPtrInput
	// The folder path of the data lake store to be shared with the receiver. Changing this forces a new Data Share Data Lake Gen1 Dataset to be created.
	FolderPath pulumi.StringInput
	// The name of the Data Share Data Lake Gen1 Dataset. Changing this forces a new Data Share Data Lake Gen1 Dataset to be created.
	Name pulumi.StringPtrInput
}

The set of arguments for constructing a DatasetDataLakeGen1 resource.

func (DatasetDataLakeGen1Args) ElementType added in v3.13.0

func (DatasetDataLakeGen1Args) ElementType() reflect.Type

type DatasetDataLakeGen1State added in v3.13.0

type DatasetDataLakeGen1State struct {
	// The resource ID of the Data Lake Store to be shared with the receiver.
	DataLakeStoreId pulumi.StringPtrInput
	// The resource ID of the Data Share where this Data Share Data Lake Gen1 Dataset should be created. Changing this forces a new Data Share Data Lake Gen1 Dataset to be created.
	DataShareId pulumi.StringPtrInput
	// The displayed name of the Data Share Dataset.
	DisplayName pulumi.StringPtrInput
	// The file name of the data lake store to be shared with the receiver. Changing this forces a new Data Share Data Lake Gen1 Dataset to be created.
	FileName pulumi.StringPtrInput
	// The folder path of the data lake store to be shared with the receiver. Changing this forces a new Data Share Data Lake Gen1 Dataset to be created.
	FolderPath pulumi.StringPtrInput
	// The name of the Data Share Data Lake Gen1 Dataset. Changing this forces a new Data Share Data Lake Gen1 Dataset to be created.
	Name pulumi.StringPtrInput
}

func (DatasetDataLakeGen1State) ElementType added in v3.13.0

func (DatasetDataLakeGen1State) ElementType() reflect.Type

type DatasetDataLakeGen2 added in v3.22.0

type DatasetDataLakeGen2 struct {
	pulumi.CustomResourceState

	// The name of the Data Share Dataset.
	DisplayName pulumi.StringOutput `pulumi:"displayName"`
	// The path of the file in the data lake file system to be shared with the receiver. Conflicts with `folderPath` Changing this forces a new Data Share Data Lake Gen2 Dataset to be created.
	FilePath pulumi.StringPtrOutput `pulumi:"filePath"`
	// The name of the data lake file system to be shared with the receiver. Changing this forces a new Data Share Data Lake Gen2 Dataset to be created.
	FileSystemName pulumi.StringOutput `pulumi:"fileSystemName"`
	// The folder path in the data lake file system to be shared with the receiver. Conflicts with `filePath` Changing this forces a new Data Share Data Lake Gen2 Dataset to be created.
	FolderPath pulumi.StringPtrOutput `pulumi:"folderPath"`
	// The name which should be used for this Data Share Data Lake Gen2 Dataset. Changing this forces a new Data Share Data Lake Gen2 Dataset to be created.
	Name pulumi.StringOutput `pulumi:"name"`
	// The resource ID of the Data Share where this Data Share Data Lake Gen2 Dataset should be created. Changing this forces a new Data Share Data Lake Gen2 Dataset to be created.
	ShareId pulumi.StringOutput `pulumi:"shareId"`
	// The resource id of the storage account of the data lake file system to be shared with the receiver. Changing this forces a new Data Share Data Lake Gen2 Dataset to be created.
	StorageAccountId pulumi.StringOutput `pulumi:"storageAccountId"`
}

Manages a Data Share Data Lake Gen2 Dataset.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-azure/sdk/v3/go/azure/authorization"
"github.com/pulumi/pulumi-azure/sdk/v3/go/azure/core"
"github.com/pulumi/pulumi-azure/sdk/v3/go/azure/datashare"
"github.com/pulumi/pulumi-azure/sdk/v3/go/azure/storage"
"github.com/pulumi/pulumi-azuread/sdk/v2/go/azuread"
"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 Europe"),
		})
		if err != nil {
			return err
		}
		exampleAccount, err := datashare.NewAccount(ctx, "exampleAccount", &datashare.AccountArgs{
			Location:          exampleResourceGroup.Location,
			ResourceGroupName: exampleResourceGroup.Name,
			Identity: &datashare.AccountIdentityArgs{
				Type: pulumi.String("SystemAssigned"),
			},
		})
		if err != nil {
			return err
		}
		exampleShare, err := datashare.NewShare(ctx, "exampleShare", &datashare.ShareArgs{
			AccountId: exampleAccount.ID(),
			Kind:      pulumi.String("CopyBased"),
		})
		if err != nil {
			return err
		}
		_, err = storage.NewAccount(ctx, "exampleStorage_accountAccount", &storage.AccountArgs{
			ResourceGroupName:      exampleResourceGroup.Name,
			Location:               exampleResourceGroup.Location,
			AccountKind:            pulumi.String("BlobStorage"),
			AccountTier:            pulumi.String("Standard"),
			AccountReplicationType: pulumi.String("LRS"),
		})
		if err != nil {
			return err
		}
		exampleDataLakeGen2Filesystem, err := storage.NewDataLakeGen2Filesystem(ctx, "exampleDataLakeGen2Filesystem", &storage.DataLakeGen2FilesystemArgs{
			StorageAccountId: pulumi.String(exampleStorage / accountAccount.Id),
		})
		if err != nil {
			return err
		}
		exampleAssignment, err := authorization.NewAssignment(ctx, "exampleAssignment", &authorization.AssignmentArgs{
			Scope:              pulumi.String(exampleStorage / accountAccount.Id),
			RoleDefinitionName: pulumi.String("Storage Blob Data Reader"),
			PrincipalId: exampleServicePrincipal.ApplyT(func(exampleServicePrincipal azuread.LookupServicePrincipalResult) (string, error) {
				return exampleServicePrincipal.ObjectId, nil
			}).(pulumi.StringOutput),
		})
		if err != nil {
			return err
		}
		_, err = datashare.NewDatasetDataLakeGen2(ctx, "exampleDatasetDataLakeGen2", &datashare.DatasetDataLakeGen2Args{
			ShareId:          exampleShare.ID(),
			StorageAccountId: pulumi.String(exampleStorage / accountAccount.Id),
			FileSystemName:   exampleDataLakeGen2Filesystem.Name,
			FilePath:         pulumi.String("myfile.txt"),
		}, pulumi.DependsOn([]pulumi.Resource{
			exampleAssignment,
		}))
		if err != nil {
			return err
		}
		return nil
	})
}

```

func GetDatasetDataLakeGen2 added in v3.22.0

func GetDatasetDataLakeGen2(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *DatasetDataLakeGen2State, opts ...pulumi.ResourceOption) (*DatasetDataLakeGen2, error)

GetDatasetDataLakeGen2 gets an existing DatasetDataLakeGen2 resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewDatasetDataLakeGen2 added in v3.22.0

func NewDatasetDataLakeGen2(ctx *pulumi.Context,
	name string, args *DatasetDataLakeGen2Args, opts ...pulumi.ResourceOption) (*DatasetDataLakeGen2, error)

NewDatasetDataLakeGen2 registers a new resource with the given unique name, arguments, and options.

type DatasetDataLakeGen2Args added in v3.22.0

type DatasetDataLakeGen2Args struct {
	// The path of the file in the data lake file system to be shared with the receiver. Conflicts with `folderPath` Changing this forces a new Data Share Data Lake Gen2 Dataset to be created.
	FilePath pulumi.StringPtrInput
	// The name of the data lake file system to be shared with the receiver. Changing this forces a new Data Share Data Lake Gen2 Dataset to be created.
	FileSystemName pulumi.StringInput
	// The folder path in the data lake file system to be shared with the receiver. Conflicts with `filePath` Changing this forces a new Data Share Data Lake Gen2 Dataset to be created.
	FolderPath pulumi.StringPtrInput
	// The name which should be used for this Data Share Data Lake Gen2 Dataset. Changing this forces a new Data Share Data Lake Gen2 Dataset to be created.
	Name pulumi.StringPtrInput
	// The resource ID of the Data Share where this Data Share Data Lake Gen2 Dataset should be created. Changing this forces a new Data Share Data Lake Gen2 Dataset to be created.
	ShareId pulumi.StringInput
	// The resource id of the storage account of the data lake file system to be shared with the receiver. Changing this forces a new Data Share Data Lake Gen2 Dataset to be created.
	StorageAccountId pulumi.StringInput
}

The set of arguments for constructing a DatasetDataLakeGen2 resource.

func (DatasetDataLakeGen2Args) ElementType added in v3.22.0

func (DatasetDataLakeGen2Args) ElementType() reflect.Type

type DatasetDataLakeGen2State added in v3.22.0

type DatasetDataLakeGen2State struct {
	// The name of the Data Share Dataset.
	DisplayName pulumi.StringPtrInput
	// The path of the file in the data lake file system to be shared with the receiver. Conflicts with `folderPath` Changing this forces a new Data Share Data Lake Gen2 Dataset to be created.
	FilePath pulumi.StringPtrInput
	// The name of the data lake file system to be shared with the receiver. Changing this forces a new Data Share Data Lake Gen2 Dataset to be created.
	FileSystemName pulumi.StringPtrInput
	// The folder path in the data lake file system to be shared with the receiver. Conflicts with `filePath` Changing this forces a new Data Share Data Lake Gen2 Dataset to be created.
	FolderPath pulumi.StringPtrInput
	// The name which should be used for this Data Share Data Lake Gen2 Dataset. Changing this forces a new Data Share Data Lake Gen2 Dataset to be created.
	Name pulumi.StringPtrInput
	// The resource ID of the Data Share where this Data Share Data Lake Gen2 Dataset should be created. Changing this forces a new Data Share Data Lake Gen2 Dataset to be created.
	ShareId pulumi.StringPtrInput
	// The resource id of the storage account of the data lake file system to be shared with the receiver. Changing this forces a new Data Share Data Lake Gen2 Dataset to be created.
	StorageAccountId pulumi.StringPtrInput
}

func (DatasetDataLakeGen2State) ElementType added in v3.22.0

func (DatasetDataLakeGen2State) ElementType() reflect.Type

type DatasetKustoCluster added in v3.23.0

type DatasetKustoCluster struct {
	pulumi.CustomResourceState

	// The name of the Data Share Dataset.
	DisplayName pulumi.StringOutput `pulumi:"displayName"`
	// The resource ID of the Kusto Cluster to be shared with the receiver. Changing this forces a new Data Share Kusto Cluster Dataset to be created.
	KustoClusterId pulumi.StringOutput `pulumi:"kustoClusterId"`
	// The location of the Kusto Cluster.
	KustoClusterLocation pulumi.StringOutput `pulumi:"kustoClusterLocation"`
	// The name which should be used for this Data Share Kusto Cluster Dataset. Changing this forces a new Data Share Kusto Cluster Dataset to be created.
	Name pulumi.StringOutput `pulumi:"name"`
	// The resource ID of the Data Share where this Data Share Kusto Cluster Dataset should be created. Changing this forces a new Data Share Kusto Cluster Dataset to be created.
	ShareId pulumi.StringOutput `pulumi:"shareId"`
}

Manages a Data Share Kusto Cluster Dataset.

func GetDatasetKustoCluster added in v3.23.0

func GetDatasetKustoCluster(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *DatasetKustoClusterState, opts ...pulumi.ResourceOption) (*DatasetKustoCluster, error)

GetDatasetKustoCluster gets an existing DatasetKustoCluster resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewDatasetKustoCluster added in v3.23.0

func NewDatasetKustoCluster(ctx *pulumi.Context,
	name string, args *DatasetKustoClusterArgs, opts ...pulumi.ResourceOption) (*DatasetKustoCluster, error)

NewDatasetKustoCluster registers a new resource with the given unique name, arguments, and options.

type DatasetKustoClusterArgs added in v3.23.0

type DatasetKustoClusterArgs struct {
	// The resource ID of the Kusto Cluster to be shared with the receiver. Changing this forces a new Data Share Kusto Cluster Dataset to be created.
	KustoClusterId pulumi.StringInput
	// The name which should be used for this Data Share Kusto Cluster Dataset. Changing this forces a new Data Share Kusto Cluster Dataset to be created.
	Name pulumi.StringPtrInput
	// The resource ID of the Data Share where this Data Share Kusto Cluster Dataset should be created. Changing this forces a new Data Share Kusto Cluster Dataset to be created.
	ShareId pulumi.StringInput
}

The set of arguments for constructing a DatasetKustoCluster resource.

func (DatasetKustoClusterArgs) ElementType added in v3.23.0

func (DatasetKustoClusterArgs) ElementType() reflect.Type

type DatasetKustoClusterState added in v3.23.0

type DatasetKustoClusterState struct {
	// The name of the Data Share Dataset.
	DisplayName pulumi.StringPtrInput
	// The resource ID of the Kusto Cluster to be shared with the receiver. Changing this forces a new Data Share Kusto Cluster Dataset to be created.
	KustoClusterId pulumi.StringPtrInput
	// The location of the Kusto Cluster.
	KustoClusterLocation pulumi.StringPtrInput
	// The name which should be used for this Data Share Kusto Cluster Dataset. Changing this forces a new Data Share Kusto Cluster Dataset to be created.
	Name pulumi.StringPtrInput
	// The resource ID of the Data Share where this Data Share Kusto Cluster Dataset should be created. Changing this forces a new Data Share Kusto Cluster Dataset to be created.
	ShareId pulumi.StringPtrInput
}

func (DatasetKustoClusterState) ElementType added in v3.23.0

func (DatasetKustoClusterState) ElementType() reflect.Type

type GetAccountIdentity

type GetAccountIdentity struct {
	// The ID of the Principal (Client) in Azure Active Directory.
	PrincipalId string `pulumi:"principalId"`
	// The ID of the Azure Active Directory Tenant.
	TenantId string `pulumi:"tenantId"`
	// The identity type of the Data Share Account.
	Type string `pulumi:"type"`
}

type GetAccountIdentityArgs

type GetAccountIdentityArgs struct {
	// The ID of the Principal (Client) in Azure Active Directory.
	PrincipalId pulumi.StringInput `pulumi:"principalId"`
	// The ID of the Azure Active Directory Tenant.
	TenantId pulumi.StringInput `pulumi:"tenantId"`
	// The identity type of the Data Share Account.
	Type pulumi.StringInput `pulumi:"type"`
}

func (GetAccountIdentityArgs) ElementType

func (GetAccountIdentityArgs) ElementType() reflect.Type

func (GetAccountIdentityArgs) ToGetAccountIdentityOutput

func (i GetAccountIdentityArgs) ToGetAccountIdentityOutput() GetAccountIdentityOutput

func (GetAccountIdentityArgs) ToGetAccountIdentityOutputWithContext

func (i GetAccountIdentityArgs) ToGetAccountIdentityOutputWithContext(ctx context.Context) GetAccountIdentityOutput

type GetAccountIdentityArray

type GetAccountIdentityArray []GetAccountIdentityInput

func (GetAccountIdentityArray) ElementType

func (GetAccountIdentityArray) ElementType() reflect.Type

func (GetAccountIdentityArray) ToGetAccountIdentityArrayOutput

func (i GetAccountIdentityArray) ToGetAccountIdentityArrayOutput() GetAccountIdentityArrayOutput

func (GetAccountIdentityArray) ToGetAccountIdentityArrayOutputWithContext

func (i GetAccountIdentityArray) ToGetAccountIdentityArrayOutputWithContext(ctx context.Context) GetAccountIdentityArrayOutput

type GetAccountIdentityArrayInput

type GetAccountIdentityArrayInput interface {
	pulumi.Input

	ToGetAccountIdentityArrayOutput() GetAccountIdentityArrayOutput
	ToGetAccountIdentityArrayOutputWithContext(context.Context) GetAccountIdentityArrayOutput
}

GetAccountIdentityArrayInput is an input type that accepts GetAccountIdentityArray and GetAccountIdentityArrayOutput values. You can construct a concrete instance of `GetAccountIdentityArrayInput` via:

GetAccountIdentityArray{ GetAccountIdentityArgs{...} }

type GetAccountIdentityArrayOutput

type GetAccountIdentityArrayOutput struct{ *pulumi.OutputState }

func (GetAccountIdentityArrayOutput) ElementType

func (GetAccountIdentityArrayOutput) Index

func (GetAccountIdentityArrayOutput) ToGetAccountIdentityArrayOutput

func (o GetAccountIdentityArrayOutput) ToGetAccountIdentityArrayOutput() GetAccountIdentityArrayOutput

func (GetAccountIdentityArrayOutput) ToGetAccountIdentityArrayOutputWithContext

func (o GetAccountIdentityArrayOutput) ToGetAccountIdentityArrayOutputWithContext(ctx context.Context) GetAccountIdentityArrayOutput

type GetAccountIdentityInput

type GetAccountIdentityInput interface {
	pulumi.Input

	ToGetAccountIdentityOutput() GetAccountIdentityOutput
	ToGetAccountIdentityOutputWithContext(context.Context) GetAccountIdentityOutput
}

GetAccountIdentityInput is an input type that accepts GetAccountIdentityArgs and GetAccountIdentityOutput values. You can construct a concrete instance of `GetAccountIdentityInput` via:

GetAccountIdentityArgs{...}

type GetAccountIdentityOutput

type GetAccountIdentityOutput struct{ *pulumi.OutputState }

func (GetAccountIdentityOutput) ElementType

func (GetAccountIdentityOutput) ElementType() reflect.Type

func (GetAccountIdentityOutput) PrincipalId

The ID of the Principal (Client) in Azure Active Directory.

func (GetAccountIdentityOutput) TenantId

The ID of the Azure Active Directory Tenant.

func (GetAccountIdentityOutput) ToGetAccountIdentityOutput

func (o GetAccountIdentityOutput) ToGetAccountIdentityOutput() GetAccountIdentityOutput

func (GetAccountIdentityOutput) ToGetAccountIdentityOutputWithContext

func (o GetAccountIdentityOutput) ToGetAccountIdentityOutputWithContext(ctx context.Context) GetAccountIdentityOutput

func (GetAccountIdentityOutput) Type

The identity type of the Data Share Account.

type GetDatasetBlobStorageStorageAccount added in v3.10.0

type GetDatasetBlobStorageStorageAccount struct {
	// The name of this Data Share Blob Storage Dataset.
	Name string `pulumi:"name"`
	// The resource group name of the storage account to be shared with the receiver.
	ResourceGroupName string `pulumi:"resourceGroupName"`
	// The subscription id of the storage account to be shared with the receiver.
	SubscriptionId string `pulumi:"subscriptionId"`
}

type GetDatasetBlobStorageStorageAccountArgs added in v3.10.0

type GetDatasetBlobStorageStorageAccountArgs struct {
	// The name of this Data Share Blob Storage Dataset.
	Name pulumi.StringInput `pulumi:"name"`
	// The resource group name of the storage account to be shared with the receiver.
	ResourceGroupName pulumi.StringInput `pulumi:"resourceGroupName"`
	// The subscription id of the storage account to be shared with the receiver.
	SubscriptionId pulumi.StringInput `pulumi:"subscriptionId"`
}

func (GetDatasetBlobStorageStorageAccountArgs) ElementType added in v3.10.0

func (GetDatasetBlobStorageStorageAccountArgs) ToGetDatasetBlobStorageStorageAccountOutput added in v3.10.0

func (i GetDatasetBlobStorageStorageAccountArgs) ToGetDatasetBlobStorageStorageAccountOutput() GetDatasetBlobStorageStorageAccountOutput

func (GetDatasetBlobStorageStorageAccountArgs) ToGetDatasetBlobStorageStorageAccountOutputWithContext added in v3.10.0

func (i GetDatasetBlobStorageStorageAccountArgs) ToGetDatasetBlobStorageStorageAccountOutputWithContext(ctx context.Context) GetDatasetBlobStorageStorageAccountOutput

type GetDatasetBlobStorageStorageAccountArray added in v3.10.0

type GetDatasetBlobStorageStorageAccountArray []GetDatasetBlobStorageStorageAccountInput

func (GetDatasetBlobStorageStorageAccountArray) ElementType added in v3.10.0

func (GetDatasetBlobStorageStorageAccountArray) ToGetDatasetBlobStorageStorageAccountArrayOutput added in v3.10.0

func (i GetDatasetBlobStorageStorageAccountArray) ToGetDatasetBlobStorageStorageAccountArrayOutput() GetDatasetBlobStorageStorageAccountArrayOutput

func (GetDatasetBlobStorageStorageAccountArray) ToGetDatasetBlobStorageStorageAccountArrayOutputWithContext added in v3.10.0

func (i GetDatasetBlobStorageStorageAccountArray) ToGetDatasetBlobStorageStorageAccountArrayOutputWithContext(ctx context.Context) GetDatasetBlobStorageStorageAccountArrayOutput

type GetDatasetBlobStorageStorageAccountArrayInput added in v3.10.0

type GetDatasetBlobStorageStorageAccountArrayInput interface {
	pulumi.Input

	ToGetDatasetBlobStorageStorageAccountArrayOutput() GetDatasetBlobStorageStorageAccountArrayOutput
	ToGetDatasetBlobStorageStorageAccountArrayOutputWithContext(context.Context) GetDatasetBlobStorageStorageAccountArrayOutput
}

GetDatasetBlobStorageStorageAccountArrayInput is an input type that accepts GetDatasetBlobStorageStorageAccountArray and GetDatasetBlobStorageStorageAccountArrayOutput values. You can construct a concrete instance of `GetDatasetBlobStorageStorageAccountArrayInput` via:

GetDatasetBlobStorageStorageAccountArray{ GetDatasetBlobStorageStorageAccountArgs{...} }

type GetDatasetBlobStorageStorageAccountArrayOutput added in v3.10.0

type GetDatasetBlobStorageStorageAccountArrayOutput struct{ *pulumi.OutputState }

func (GetDatasetBlobStorageStorageAccountArrayOutput) ElementType added in v3.10.0

func (GetDatasetBlobStorageStorageAccountArrayOutput) Index added in v3.10.0

func (GetDatasetBlobStorageStorageAccountArrayOutput) ToGetDatasetBlobStorageStorageAccountArrayOutput added in v3.10.0

func (o GetDatasetBlobStorageStorageAccountArrayOutput) ToGetDatasetBlobStorageStorageAccountArrayOutput() GetDatasetBlobStorageStorageAccountArrayOutput

func (GetDatasetBlobStorageStorageAccountArrayOutput) ToGetDatasetBlobStorageStorageAccountArrayOutputWithContext added in v3.10.0

func (o GetDatasetBlobStorageStorageAccountArrayOutput) ToGetDatasetBlobStorageStorageAccountArrayOutputWithContext(ctx context.Context) GetDatasetBlobStorageStorageAccountArrayOutput

type GetDatasetBlobStorageStorageAccountInput added in v3.10.0

type GetDatasetBlobStorageStorageAccountInput interface {
	pulumi.Input

	ToGetDatasetBlobStorageStorageAccountOutput() GetDatasetBlobStorageStorageAccountOutput
	ToGetDatasetBlobStorageStorageAccountOutputWithContext(context.Context) GetDatasetBlobStorageStorageAccountOutput
}

GetDatasetBlobStorageStorageAccountInput is an input type that accepts GetDatasetBlobStorageStorageAccountArgs and GetDatasetBlobStorageStorageAccountOutput values. You can construct a concrete instance of `GetDatasetBlobStorageStorageAccountInput` via:

GetDatasetBlobStorageStorageAccountArgs{...}

type GetDatasetBlobStorageStorageAccountOutput added in v3.10.0

type GetDatasetBlobStorageStorageAccountOutput struct{ *pulumi.OutputState }

func (GetDatasetBlobStorageStorageAccountOutput) ElementType added in v3.10.0

func (GetDatasetBlobStorageStorageAccountOutput) Name added in v3.10.0

The name of this Data Share Blob Storage Dataset.

func (GetDatasetBlobStorageStorageAccountOutput) ResourceGroupName added in v3.10.0

The resource group name of the storage account to be shared with the receiver.

func (GetDatasetBlobStorageStorageAccountOutput) SubscriptionId added in v3.10.0

The subscription id of the storage account to be shared with the receiver.

func (GetDatasetBlobStorageStorageAccountOutput) ToGetDatasetBlobStorageStorageAccountOutput added in v3.10.0

func (o GetDatasetBlobStorageStorageAccountOutput) ToGetDatasetBlobStorageStorageAccountOutput() GetDatasetBlobStorageStorageAccountOutput

func (GetDatasetBlobStorageStorageAccountOutput) ToGetDatasetBlobStorageStorageAccountOutputWithContext added in v3.10.0

func (o GetDatasetBlobStorageStorageAccountOutput) ToGetDatasetBlobStorageStorageAccountOutputWithContext(ctx context.Context) GetDatasetBlobStorageStorageAccountOutput

type GetShareSnapshotSchedule added in v3.6.0

type GetShareSnapshotSchedule struct {
	// The name of this Data Share.
	Name string `pulumi:"name"`
	// The interval of the synchronization with the source data.
	Recurrence string `pulumi:"recurrence"`
	// The synchronization with the source data's start time.
	StartTime string `pulumi:"startTime"`
}

type GetShareSnapshotScheduleArgs added in v3.6.0

type GetShareSnapshotScheduleArgs struct {
	// The name of this Data Share.
	Name pulumi.StringInput `pulumi:"name"`
	// The interval of the synchronization with the source data.
	Recurrence pulumi.StringInput `pulumi:"recurrence"`
	// The synchronization with the source data's start time.
	StartTime pulumi.StringInput `pulumi:"startTime"`
}

func (GetShareSnapshotScheduleArgs) ElementType added in v3.6.0

func (GetShareSnapshotScheduleArgs) ToGetShareSnapshotScheduleOutput added in v3.6.0

func (i GetShareSnapshotScheduleArgs) ToGetShareSnapshotScheduleOutput() GetShareSnapshotScheduleOutput

func (GetShareSnapshotScheduleArgs) ToGetShareSnapshotScheduleOutputWithContext added in v3.6.0

func (i GetShareSnapshotScheduleArgs) ToGetShareSnapshotScheduleOutputWithContext(ctx context.Context) GetShareSnapshotScheduleOutput

type GetShareSnapshotScheduleArray added in v3.6.0

type GetShareSnapshotScheduleArray []GetShareSnapshotScheduleInput

func (GetShareSnapshotScheduleArray) ElementType added in v3.6.0

func (GetShareSnapshotScheduleArray) ToGetShareSnapshotScheduleArrayOutput added in v3.6.0

func (i GetShareSnapshotScheduleArray) ToGetShareSnapshotScheduleArrayOutput() GetShareSnapshotScheduleArrayOutput

func (GetShareSnapshotScheduleArray) ToGetShareSnapshotScheduleArrayOutputWithContext added in v3.6.0

func (i GetShareSnapshotScheduleArray) ToGetShareSnapshotScheduleArrayOutputWithContext(ctx context.Context) GetShareSnapshotScheduleArrayOutput

type GetShareSnapshotScheduleArrayInput added in v3.6.0

type GetShareSnapshotScheduleArrayInput interface {
	pulumi.Input

	ToGetShareSnapshotScheduleArrayOutput() GetShareSnapshotScheduleArrayOutput
	ToGetShareSnapshotScheduleArrayOutputWithContext(context.Context) GetShareSnapshotScheduleArrayOutput
}

GetShareSnapshotScheduleArrayInput is an input type that accepts GetShareSnapshotScheduleArray and GetShareSnapshotScheduleArrayOutput values. You can construct a concrete instance of `GetShareSnapshotScheduleArrayInput` via:

GetShareSnapshotScheduleArray{ GetShareSnapshotScheduleArgs{...} }

type GetShareSnapshotScheduleArrayOutput added in v3.6.0

type GetShareSnapshotScheduleArrayOutput struct{ *pulumi.OutputState }

func (GetShareSnapshotScheduleArrayOutput) ElementType added in v3.6.0

func (GetShareSnapshotScheduleArrayOutput) Index added in v3.6.0

func (GetShareSnapshotScheduleArrayOutput) ToGetShareSnapshotScheduleArrayOutput added in v3.6.0

func (o GetShareSnapshotScheduleArrayOutput) ToGetShareSnapshotScheduleArrayOutput() GetShareSnapshotScheduleArrayOutput

func (GetShareSnapshotScheduleArrayOutput) ToGetShareSnapshotScheduleArrayOutputWithContext added in v3.6.0

func (o GetShareSnapshotScheduleArrayOutput) ToGetShareSnapshotScheduleArrayOutputWithContext(ctx context.Context) GetShareSnapshotScheduleArrayOutput

type GetShareSnapshotScheduleInput added in v3.6.0

type GetShareSnapshotScheduleInput interface {
	pulumi.Input

	ToGetShareSnapshotScheduleOutput() GetShareSnapshotScheduleOutput
	ToGetShareSnapshotScheduleOutputWithContext(context.Context) GetShareSnapshotScheduleOutput
}

GetShareSnapshotScheduleInput is an input type that accepts GetShareSnapshotScheduleArgs and GetShareSnapshotScheduleOutput values. You can construct a concrete instance of `GetShareSnapshotScheduleInput` via:

GetShareSnapshotScheduleArgs{...}

type GetShareSnapshotScheduleOutput added in v3.6.0

type GetShareSnapshotScheduleOutput struct{ *pulumi.OutputState }

func (GetShareSnapshotScheduleOutput) ElementType added in v3.6.0

func (GetShareSnapshotScheduleOutput) Name added in v3.6.0

The name of this Data Share.

func (GetShareSnapshotScheduleOutput) Recurrence added in v3.6.0

The interval of the synchronization with the source data.

func (GetShareSnapshotScheduleOutput) StartTime added in v3.6.0

The synchronization with the source data's start time.

func (GetShareSnapshotScheduleOutput) ToGetShareSnapshotScheduleOutput added in v3.6.0

func (o GetShareSnapshotScheduleOutput) ToGetShareSnapshotScheduleOutput() GetShareSnapshotScheduleOutput

func (GetShareSnapshotScheduleOutput) ToGetShareSnapshotScheduleOutputWithContext added in v3.6.0

func (o GetShareSnapshotScheduleOutput) ToGetShareSnapshotScheduleOutputWithContext(ctx context.Context) GetShareSnapshotScheduleOutput

type LookupAccountArgs

type LookupAccountArgs struct {
	// The name of this Data Share Account.
	Name string `pulumi:"name"`
	// The name of the Resource Group where the Data Share Account exists.
	ResourceGroupName string `pulumi:"resourceGroupName"`
}

A collection of arguments for invoking getAccount.

type LookupAccountResult

type LookupAccountResult struct {
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// An `identity` block as defined below.
	Identities        []GetAccountIdentity `pulumi:"identities"`
	Name              string               `pulumi:"name"`
	ResourceGroupName string               `pulumi:"resourceGroupName"`
	// A mapping of tags assigned to the Data Share Account.
	Tags map[string]string `pulumi:"tags"`
}

A collection of values returned by getAccount.

func LookupAccount

func LookupAccount(ctx *pulumi.Context, args *LookupAccountArgs, opts ...pulumi.InvokeOption) (*LookupAccountResult, error)

Use this data source to access information about an existing Data Share Account.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-azure/sdk/v3/go/azure/datashare"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := datashare.LookupAccount(ctx, &datashare.LookupAccountArgs{
			Name:              "example-account",
			ResourceGroupName: "example-resource-group",
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("id", example.Id)
		return nil
	})
}

```

type LookupDatasetBlobStorageArgs added in v3.10.0

type LookupDatasetBlobStorageArgs struct {
	// The ID of the Data Share in which this Data Share Blob Storage Dataset should be created.
	DataShareId string `pulumi:"dataShareId"`
	// The name of this Data Share Blob Storage Dataset.
	Name string `pulumi:"name"`
}

A collection of arguments for invoking getDatasetBlobStorage.

type LookupDatasetBlobStorageResult added in v3.10.0

type LookupDatasetBlobStorageResult struct {
	// The name of the storage account container to be shared with the receiver.
	ContainerName string `pulumi:"containerName"`
	DataShareId   string `pulumi:"dataShareId"`
	// The name of the Data Share Dataset.
	DisplayName string `pulumi:"displayName"`
	// The path of the file in the storage container to be shared with the receiver.
	FilePath string `pulumi:"filePath"`
	// The folder path of the file in the storage container to be shared with the receiver.
	FolderPath string `pulumi:"folderPath"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// The name of the storage account to be shared with the receiver.
	Name string `pulumi:"name"`
	// A `storageAccount` block as defined below.
	StorageAccounts []GetDatasetBlobStorageStorageAccount `pulumi:"storageAccounts"`
}

A collection of values returned by getDatasetBlobStorage.

func LookupDatasetBlobStorage added in v3.10.0

func LookupDatasetBlobStorage(ctx *pulumi.Context, args *LookupDatasetBlobStorageArgs, opts ...pulumi.InvokeOption) (*LookupDatasetBlobStorageResult, error)

Use this data source to access information about an existing Data Share Blob Storage Dataset.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-azure/sdk/v3/go/azure/datashare"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := datashare.LookupDatasetBlobStorage(ctx, &datashare.LookupDatasetBlobStorageArgs{
			Name:        "example-dsbsds",
			DataShareId: "example-share-id",
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("id", example.Id)
		return nil
	})
}

```

type LookupDatasetDataLakeGen1Args added in v3.14.0

type LookupDatasetDataLakeGen1Args struct {
	// The resource ID of the Data Share where this Data Share Data Lake Gen1 Dataset should be created.
	DataShareId string `pulumi:"dataShareId"`
	// The name of the Data Share Data Lake Gen1 Dataset.
	Name string `pulumi:"name"`
}

A collection of arguments for invoking getDatasetDataLakeGen1.

type LookupDatasetDataLakeGen1Result added in v3.14.0

type LookupDatasetDataLakeGen1Result struct {
	// The resource ID of the Data Lake Store to be shared with the receiver.
	DataLakeStoreId string `pulumi:"dataLakeStoreId"`
	DataShareId     string `pulumi:"dataShareId"`
	// The displayed name of the Data Share Dataset.
	DisplayName string `pulumi:"displayName"`
	// The file name of the data lake store to be shared with the receiver.
	FileName string `pulumi:"fileName"`
	// The folder path of the data lake store to be shared with the receiver.
	FolderPath string `pulumi:"folderPath"`
	// The provider-assigned unique ID for this managed resource.
	Id   string `pulumi:"id"`
	Name string `pulumi:"name"`
}

A collection of values returned by getDatasetDataLakeGen1.

func LookupDatasetDataLakeGen1 added in v3.14.0

func LookupDatasetDataLakeGen1(ctx *pulumi.Context, args *LookupDatasetDataLakeGen1Args, opts ...pulumi.InvokeOption) (*LookupDatasetDataLakeGen1Result, error)

Use this data source to access information about an existing DataShareDataLakeGen1Dataset.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-azure/sdk/v3/go/azure/datashare"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := datashare.LookupDatasetDataLakeGen1(ctx, &datashare.LookupDatasetDataLakeGen1Args{
			Name:        "example-dsdsdlg1",
			DataShareId: "example-share-id",
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("id", example.Id)
		return nil
	})
}

```

type LookupDatasetDataLakeGen2Args added in v3.22.0

type LookupDatasetDataLakeGen2Args struct {
	// The name of this Data Share Data Lake Gen2 Dataset.
	Name string `pulumi:"name"`
	// The resource ID of the Data Share where this Data Share Data Lake Gen2 Dataset should be created.
	ShareId string `pulumi:"shareId"`
}

A collection of arguments for invoking getDatasetDataLakeGen2.

type LookupDatasetDataLakeGen2Result added in v3.22.0

type LookupDatasetDataLakeGen2Result struct {
	// The name of the Data Share Dataset.
	DisplayName string `pulumi:"displayName"`
	// The path of the file in the data lake file system to be shared with the receiver.
	FilePath string `pulumi:"filePath"`
	// The name of the data lake file system to be shared with the receiver.
	FileSystemName string `pulumi:"fileSystemName"`
	// The folder path in the data lake file system to be shared with the receiver.
	FolderPath string `pulumi:"folderPath"`
	// The provider-assigned unique ID for this managed resource.
	Id      string `pulumi:"id"`
	Name    string `pulumi:"name"`
	ShareId string `pulumi:"shareId"`
	// The resource ID of the storage account of the data lake file system to be shared with the receiver.
	StorageAccountId string `pulumi:"storageAccountId"`
}

A collection of values returned by getDatasetDataLakeGen2.

func LookupDatasetDataLakeGen2 added in v3.22.0

func LookupDatasetDataLakeGen2(ctx *pulumi.Context, args *LookupDatasetDataLakeGen2Args, opts ...pulumi.InvokeOption) (*LookupDatasetDataLakeGen2Result, error)

Use this data source to access information about an existing Data Share Data Lake Gen2 Dataset.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-azure/sdk/v3/go/azure/datashare"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := datashare.LookupDatasetDataLakeGen2(ctx, &datashare.LookupDatasetDataLakeGen2Args{
			Name:    "example-dsdlg2ds",
			ShareId: "example-share-id",
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("id", example.Id)
		return nil
	})
}

```

type LookupDatasetKustoClusterArgs added in v3.23.0

type LookupDatasetKustoClusterArgs struct {
	// The name of this Data Share Kusto Cluster Dataset.
	Name string `pulumi:"name"`
	// The resource ID of the Data Share where this Data Share Kusto Cluster Dataset should be created.
	ShareId string `pulumi:"shareId"`
}

A collection of arguments for invoking getDatasetKustoCluster.

type LookupDatasetKustoClusterResult added in v3.23.0

type LookupDatasetKustoClusterResult struct {
	// The name of the Data Share Dataset.
	DisplayName string `pulumi:"displayName"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// The resource ID of the Kusto Cluster to be shared with the receiver.
	KustoClusterId string `pulumi:"kustoClusterId"`
	// The location of the Kusto Cluster.
	KustoClusterLocation string `pulumi:"kustoClusterLocation"`
	Name                 string `pulumi:"name"`
	ShareId              string `pulumi:"shareId"`
}

A collection of values returned by getDatasetKustoCluster.

func LookupDatasetKustoCluster added in v3.23.0

func LookupDatasetKustoCluster(ctx *pulumi.Context, args *LookupDatasetKustoClusterArgs, opts ...pulumi.InvokeOption) (*LookupDatasetKustoClusterResult, error)

Use this data source to access information about an existing Data Share Kusto Cluster Dataset.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-azure/sdk/v3/go/azure/datashare"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := datashare.LookupDatasetKustoCluster(ctx, &datashare.LookupDatasetKustoClusterArgs{
			Name:    "example-dskc",
			ShareId: "example-share-id",
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("id", example.Id)
		return nil
	})
}

```

type LookupShareArgs added in v3.6.0

type LookupShareArgs struct {
	// The ID of the Data Share account in which the Data Share is created.
	AccountId string `pulumi:"accountId"`
	// The name of this Data Share.
	Name string `pulumi:"name"`
}

A collection of arguments for invoking getShare.

type LookupShareResult added in v3.6.0

type LookupShareResult struct {
	AccountId string `pulumi:"accountId"`
	// The description of the Data Share.
	Description string `pulumi:"description"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// The kind of the Data Share.
	Kind string `pulumi:"kind"`
	// The name of the snapshot schedule.
	Name string `pulumi:"name"`
	// A `snapshotSchedule` block as defined below.
	SnapshotSchedules []GetShareSnapshotSchedule `pulumi:"snapshotSchedules"`
	// The terms of the Data Share.
	Terms string `pulumi:"terms"`
}

A collection of values returned by getShare.

func LookupShare added in v3.6.0

func LookupShare(ctx *pulumi.Context, args *LookupShareArgs, opts ...pulumi.InvokeOption) (*LookupShareResult, error)

Use this data source to access information about an existing Data Share.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-azure/sdk/v3/go/azure/datashare"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		exampleAccount, err := datashare.LookupAccount(ctx, &datashare.LookupAccountArgs{
			Name:              "example-account",
			ResourceGroupName: "example-resource-group",
		}, nil)
		if err != nil {
			return err
		}
		exampleShare, err := datashare.LookupShare(ctx, &datashare.LookupShareArgs{
			Name:      "existing",
			AccountId: exampleAccount.Id,
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("id", exampleShare.Id)
		return nil
	})
}

```

type Share added in v3.6.0

type Share struct {
	pulumi.CustomResourceState

	// The ID of the Data Share account in which the Data Share is created. Changing this forces a new Data Share to be created.
	AccountId pulumi.StringOutput `pulumi:"accountId"`
	// The Data Share's description.
	Description pulumi.StringPtrOutput `pulumi:"description"`
	// The kind of the Data Share. Possible values are `CopyBased` and `InPlace`. Changing this forces a new Data Share to be created.
	Kind pulumi.StringOutput `pulumi:"kind"`
	// The name which should be used for this Data Share. Changing this forces a new Data Share to be created.
	Name pulumi.StringOutput `pulumi:"name"`
	// A `snapshotSchedule` block as defined below.
	SnapshotSchedule ShareSnapshotSchedulePtrOutput `pulumi:"snapshotSchedule"`
	// The terms of the Data Share.
	Terms pulumi.StringPtrOutput `pulumi:"terms"`
}

Manages a Data Share.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-azure/sdk/v3/go/azure/core"
"github.com/pulumi/pulumi-azure/sdk/v3/go/azure/datashare"
"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 Europe"),
		})
		if err != nil {
			return err
		}
		exampleAccount, err := datashare.NewAccount(ctx, "exampleAccount", &datashare.AccountArgs{
			Location:          exampleResourceGroup.Location,
			ResourceGroupName: exampleResourceGroup.Name,
			Tags: pulumi.StringMap{
				"foo": pulumi.String("bar"),
			},
		})
		if err != nil {
			return err
		}
		_, err = datashare.NewShare(ctx, "exampleShare", &datashare.ShareArgs{
			AccountId:   exampleAccount.ID(),
			Kind:        pulumi.String("CopyBased"),
			Description: pulumi.String("example desc"),
			Terms:       pulumi.String("example terms"),
			SnapshotSchedule: &datashare.ShareSnapshotScheduleArgs{
				Name:       pulumi.String("example-ss"),
				Recurrence: pulumi.String("Day"),
				StartTime:  pulumi.String("2020-04-17T04:47:52.9614956Z"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

func GetShare added in v3.6.0

func GetShare(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *ShareState, opts ...pulumi.ResourceOption) (*Share, error)

GetShare gets an existing Share resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewShare added in v3.6.0

func NewShare(ctx *pulumi.Context,
	name string, args *ShareArgs, opts ...pulumi.ResourceOption) (*Share, error)

NewShare registers a new resource with the given unique name, arguments, and options.

type ShareArgs added in v3.6.0

type ShareArgs struct {
	// The ID of the Data Share account in which the Data Share is created. Changing this forces a new Data Share to be created.
	AccountId pulumi.StringInput
	// The Data Share's description.
	Description pulumi.StringPtrInput
	// The kind of the Data Share. Possible values are `CopyBased` and `InPlace`. Changing this forces a new Data Share to be created.
	Kind pulumi.StringInput
	// The name which should be used for this Data Share. Changing this forces a new Data Share to be created.
	Name pulumi.StringPtrInput
	// A `snapshotSchedule` block as defined below.
	SnapshotSchedule ShareSnapshotSchedulePtrInput
	// The terms of the Data Share.
	Terms pulumi.StringPtrInput
}

The set of arguments for constructing a Share resource.

func (ShareArgs) ElementType added in v3.6.0

func (ShareArgs) ElementType() reflect.Type

type ShareSnapshotSchedule added in v3.6.0

type ShareSnapshotSchedule struct {
	// The name of the snapshot schedule.
	Name string `pulumi:"name"`
	// The interval of the synchronization with the source data. Possible values are `Hour` and `Day`.
	Recurrence string `pulumi:"recurrence"`
	// The synchronization with the source data's start time.
	StartTime string `pulumi:"startTime"`
}

type ShareSnapshotScheduleArgs added in v3.6.0

type ShareSnapshotScheduleArgs struct {
	// The name of the snapshot schedule.
	Name pulumi.StringInput `pulumi:"name"`
	// The interval of the synchronization with the source data. Possible values are `Hour` and `Day`.
	Recurrence pulumi.StringInput `pulumi:"recurrence"`
	// The synchronization with the source data's start time.
	StartTime pulumi.StringInput `pulumi:"startTime"`
}

func (ShareSnapshotScheduleArgs) ElementType added in v3.6.0

func (ShareSnapshotScheduleArgs) ElementType() reflect.Type

func (ShareSnapshotScheduleArgs) ToShareSnapshotScheduleOutput added in v3.6.0

func (i ShareSnapshotScheduleArgs) ToShareSnapshotScheduleOutput() ShareSnapshotScheduleOutput

func (ShareSnapshotScheduleArgs) ToShareSnapshotScheduleOutputWithContext added in v3.6.0

func (i ShareSnapshotScheduleArgs) ToShareSnapshotScheduleOutputWithContext(ctx context.Context) ShareSnapshotScheduleOutput

func (ShareSnapshotScheduleArgs) ToShareSnapshotSchedulePtrOutput added in v3.6.0

func (i ShareSnapshotScheduleArgs) ToShareSnapshotSchedulePtrOutput() ShareSnapshotSchedulePtrOutput

func (ShareSnapshotScheduleArgs) ToShareSnapshotSchedulePtrOutputWithContext added in v3.6.0

func (i ShareSnapshotScheduleArgs) ToShareSnapshotSchedulePtrOutputWithContext(ctx context.Context) ShareSnapshotSchedulePtrOutput

type ShareSnapshotScheduleInput added in v3.6.0

type ShareSnapshotScheduleInput interface {
	pulumi.Input

	ToShareSnapshotScheduleOutput() ShareSnapshotScheduleOutput
	ToShareSnapshotScheduleOutputWithContext(context.Context) ShareSnapshotScheduleOutput
}

ShareSnapshotScheduleInput is an input type that accepts ShareSnapshotScheduleArgs and ShareSnapshotScheduleOutput values. You can construct a concrete instance of `ShareSnapshotScheduleInput` via:

ShareSnapshotScheduleArgs{...}

type ShareSnapshotScheduleOutput added in v3.6.0

type ShareSnapshotScheduleOutput struct{ *pulumi.OutputState }

func (ShareSnapshotScheduleOutput) ElementType added in v3.6.0

func (ShareSnapshotScheduleOutput) Name added in v3.6.0

The name of the snapshot schedule.

func (ShareSnapshotScheduleOutput) Recurrence added in v3.6.0

The interval of the synchronization with the source data. Possible values are `Hour` and `Day`.

func (ShareSnapshotScheduleOutput) StartTime added in v3.6.0

The synchronization with the source data's start time.

func (ShareSnapshotScheduleOutput) ToShareSnapshotScheduleOutput added in v3.6.0

func (o ShareSnapshotScheduleOutput) ToShareSnapshotScheduleOutput() ShareSnapshotScheduleOutput

func (ShareSnapshotScheduleOutput) ToShareSnapshotScheduleOutputWithContext added in v3.6.0

func (o ShareSnapshotScheduleOutput) ToShareSnapshotScheduleOutputWithContext(ctx context.Context) ShareSnapshotScheduleOutput

func (ShareSnapshotScheduleOutput) ToShareSnapshotSchedulePtrOutput added in v3.6.0

func (o ShareSnapshotScheduleOutput) ToShareSnapshotSchedulePtrOutput() ShareSnapshotSchedulePtrOutput

func (ShareSnapshotScheduleOutput) ToShareSnapshotSchedulePtrOutputWithContext added in v3.6.0

func (o ShareSnapshotScheduleOutput) ToShareSnapshotSchedulePtrOutputWithContext(ctx context.Context) ShareSnapshotSchedulePtrOutput

type ShareSnapshotSchedulePtrInput added in v3.6.0

type ShareSnapshotSchedulePtrInput interface {
	pulumi.Input

	ToShareSnapshotSchedulePtrOutput() ShareSnapshotSchedulePtrOutput
	ToShareSnapshotSchedulePtrOutputWithContext(context.Context) ShareSnapshotSchedulePtrOutput
}

ShareSnapshotSchedulePtrInput is an input type that accepts ShareSnapshotScheduleArgs, ShareSnapshotSchedulePtr and ShareSnapshotSchedulePtrOutput values. You can construct a concrete instance of `ShareSnapshotSchedulePtrInput` via:

        ShareSnapshotScheduleArgs{...}

or:

        nil

func ShareSnapshotSchedulePtr added in v3.6.0

func ShareSnapshotSchedulePtr(v *ShareSnapshotScheduleArgs) ShareSnapshotSchedulePtrInput

type ShareSnapshotSchedulePtrOutput added in v3.6.0

type ShareSnapshotSchedulePtrOutput struct{ *pulumi.OutputState }

func (ShareSnapshotSchedulePtrOutput) Elem added in v3.6.0

func (ShareSnapshotSchedulePtrOutput) ElementType added in v3.6.0

func (ShareSnapshotSchedulePtrOutput) Name added in v3.6.0

The name of the snapshot schedule.

func (ShareSnapshotSchedulePtrOutput) Recurrence added in v3.6.0

The interval of the synchronization with the source data. Possible values are `Hour` and `Day`.

func (ShareSnapshotSchedulePtrOutput) StartTime added in v3.6.0

The synchronization with the source data's start time.

func (ShareSnapshotSchedulePtrOutput) ToShareSnapshotSchedulePtrOutput added in v3.6.0

func (o ShareSnapshotSchedulePtrOutput) ToShareSnapshotSchedulePtrOutput() ShareSnapshotSchedulePtrOutput

func (ShareSnapshotSchedulePtrOutput) ToShareSnapshotSchedulePtrOutputWithContext added in v3.6.0

func (o ShareSnapshotSchedulePtrOutput) ToShareSnapshotSchedulePtrOutputWithContext(ctx context.Context) ShareSnapshotSchedulePtrOutput

type ShareState added in v3.6.0

type ShareState struct {
	// The ID of the Data Share account in which the Data Share is created. Changing this forces a new Data Share to be created.
	AccountId pulumi.StringPtrInput
	// The Data Share's description.
	Description pulumi.StringPtrInput
	// The kind of the Data Share. Possible values are `CopyBased` and `InPlace`. Changing this forces a new Data Share to be created.
	Kind pulumi.StringPtrInput
	// The name which should be used for this Data Share. Changing this forces a new Data Share to be created.
	Name pulumi.StringPtrInput
	// A `snapshotSchedule` block as defined below.
	SnapshotSchedule ShareSnapshotSchedulePtrInput
	// The terms of the Data Share.
	Terms pulumi.StringPtrInput
}

func (ShareState) ElementType added in v3.6.0

func (ShareState) ElementType() reflect.Type

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL