Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LookupProjectArgs ¶
type LookupProjectArgs struct { // Name of the database migration project. Name string `pulumi:"name"` // Name of the resource group where resource belongs to. ResourceGroupName string `pulumi:"resourceGroupName"` // Name of the database migration service where resource belongs to. ServiceName string `pulumi:"serviceName"` }
A collection of arguments for invoking getProject.
type LookupProjectResult ¶
type LookupProjectResult struct { // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` // Azure location where the resource exists. Location string `pulumi:"location"` Name string `pulumi:"name"` ResourceGroupName string `pulumi:"resourceGroupName"` ServiceName string `pulumi:"serviceName"` // The platform type of the migration source. SourcePlatform string `pulumi:"sourcePlatform"` // A mapping of tags to assigned to the resource. Tags map[string]string `pulumi:"tags"` // The platform type of the migration target. TargetPlatform string `pulumi:"targetPlatform"` }
A collection of values returned by getProject.
func LookupProject ¶
func LookupProject(ctx *pulumi.Context, args *LookupProjectArgs, opts ...pulumi.InvokeOption) (*LookupProjectResult, error)
Use this data source to access information about an existing Database Migration Project.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-azure/sdk/v3/go/azure/databasemigration" "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { example, err := databasemigration.LookupProject(ctx, &databasemigration.LookupProjectArgs{ Name: "example-dbms-project", ResourceGroupName: "example-rg", ServiceName: "example-dbms", }, nil) if err != nil { return err } ctx.Export("name", example.Name) return nil }) }
```
type LookupServiceArgs ¶
type LookupServiceArgs struct { // Specify the name of the database migration service. Name string `pulumi:"name"` // Specifies the Name of the Resource Group within which the database migration service exists ResourceGroupName string `pulumi:"resourceGroupName"` }
A collection of arguments for invoking getService.
type LookupServiceResult ¶
type LookupServiceResult struct { // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` // Azure location where the resource exists. Location string `pulumi:"location"` Name string `pulumi:"name"` ResourceGroupName string `pulumi:"resourceGroupName"` // The sku name of database migration service. SkuName string `pulumi:"skuName"` // The ID of the virtual subnet resource to which the database migration service exists. SubnetId string `pulumi:"subnetId"` // A mapping of tags to assigned to the resource. Tags map[string]string `pulumi:"tags"` }
A collection of values returned by getService.
func LookupService ¶
func LookupService(ctx *pulumi.Context, args *LookupServiceArgs, opts ...pulumi.InvokeOption) (*LookupServiceResult, error)
Use this data source to access information about an existing Database Migration Service.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-azure/sdk/v3/go/azure/databasemigration" "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { example, err := databasemigration.LookupService(ctx, &databasemigration.LookupServiceArgs{ Name: "example-dms", ResourceGroupName: "example-rg", }, nil) if err != nil { return err } ctx.Export("azurermDmsId", example.Id) return nil }) }
```
type Project ¶
type Project struct { pulumi.CustomResourceState // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Location pulumi.StringOutput `pulumi:"location"` // Specify the name of the database migration project. Changing this forces a new resource to be created. Name pulumi.StringOutput `pulumi:"name"` // Name of the resource group in which to create the database migration project. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` // Name of the database migration service where resource belongs to. Changing this forces a new resource to be created. ServiceName pulumi.StringOutput `pulumi:"serviceName"` // The platform type of the migration source. Currently only support: `SQL`(on-premises SQL Server). Changing this forces a new resource to be created. SourcePlatform pulumi.StringOutput `pulumi:"sourcePlatform"` // A mapping of tags to assigned to the resource. Tags pulumi.StringMapOutput `pulumi:"tags"` // The platform type of the migration target. Currently only support: `SQLDB`(Azure SQL Database). Changing this forces a new resource to be created. TargetPlatform pulumi.StringOutput `pulumi:"targetPlatform"` }
Manage a Azure Database Migration Project.
> **NOTE:** Destroying a Database Migration Project will leave any outstanding tasks untouched. This is to avoid unexpectedly deleting any tasks managed outside of this provider.
func GetProject ¶
func GetProject(ctx *pulumi.Context, name string, id pulumi.IDInput, state *ProjectState, opts ...pulumi.ResourceOption) (*Project, error)
GetProject gets an existing Project 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 NewProject ¶
func NewProject(ctx *pulumi.Context, name string, args *ProjectArgs, opts ...pulumi.ResourceOption) (*Project, error)
NewProject registers a new resource with the given unique name, arguments, and options.
type ProjectArgs ¶
type ProjectArgs struct { // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Location pulumi.StringPtrInput // Specify the name of the database migration project. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // Name of the resource group in which to create the database migration project. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringInput // Name of the database migration service where resource belongs to. Changing this forces a new resource to be created. ServiceName pulumi.StringInput // The platform type of the migration source. Currently only support: `SQL`(on-premises SQL Server). Changing this forces a new resource to be created. SourcePlatform pulumi.StringInput // A mapping of tags to assigned to the resource. Tags pulumi.StringMapInput // The platform type of the migration target. Currently only support: `SQLDB`(Azure SQL Database). Changing this forces a new resource to be created. TargetPlatform pulumi.StringInput }
The set of arguments for constructing a Project resource.
func (ProjectArgs) ElementType ¶
func (ProjectArgs) ElementType() reflect.Type
type ProjectState ¶
type ProjectState struct { // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Location pulumi.StringPtrInput // Specify the name of the database migration project. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // Name of the resource group in which to create the database migration project. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringPtrInput // Name of the database migration service where resource belongs to. Changing this forces a new resource to be created. ServiceName pulumi.StringPtrInput // The platform type of the migration source. Currently only support: `SQL`(on-premises SQL Server). Changing this forces a new resource to be created. SourcePlatform pulumi.StringPtrInput // A mapping of tags to assigned to the resource. Tags pulumi.StringMapInput // The platform type of the migration target. Currently only support: `SQLDB`(Azure SQL Database). Changing this forces a new resource to be created. TargetPlatform pulumi.StringPtrInput }
func (ProjectState) ElementType ¶
func (ProjectState) ElementType() reflect.Type
type Service ¶
type Service struct { pulumi.CustomResourceState // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Location pulumi.StringOutput `pulumi:"location"` // Specify the name of the database migration service. Changing this forces a new resource to be created. Name pulumi.StringOutput `pulumi:"name"` // Name of the resource group in which to create the database migration service. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` // The sku name of the database migration service. Possible values are `Premium_4vCores`, `Standard_1vCores`, `Standard_2vCores` and `Standard_4vCores`. Changing this forces a new resource to be created. SkuName pulumi.StringOutput `pulumi:"skuName"` // The ID of the virtual subnet resource to which the database migration service should be joined. Changing this forces a new resource to be created. SubnetId pulumi.StringOutput `pulumi:"subnetId"` // A mapping of tags to assigned to the resource. Tags pulumi.StringMapOutput `pulumi:"tags"` }
Manages a Azure Database Migration Service.
> **NOTE:** Destroying a Database Migration Service will leave any outstanding tasks untouched. This is to avoid unexpectedly deleting any tasks managed outside of this provide.
## 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/databasemigration" "github.com/pulumi/pulumi-azure/sdk/v3/go/azure/network" "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 } exampleVirtualNetwork, err := network.NewVirtualNetwork(ctx, "exampleVirtualNetwork", &network.VirtualNetworkArgs{ AddressSpaces: pulumi.StringArray{ pulumi.String("10.0.0.0/16"), }, Location: exampleResourceGroup.Location, ResourceGroupName: exampleResourceGroup.Name, }) if err != nil { return err } exampleSubnet, err := network.NewSubnet(ctx, "exampleSubnet", &network.SubnetArgs{ ResourceGroupName: exampleResourceGroup.Name, VirtualNetworkName: exampleVirtualNetwork.Name, AddressPrefixes: pulumi.StringArray{ pulumi.String("10.0.1.0/24"), }, }) if err != nil { return err } _, err = databasemigration.NewService(ctx, "exampleService", &databasemigration.ServiceArgs{ Location: exampleResourceGroup.Location, ResourceGroupName: exampleResourceGroup.Name, SubnetId: exampleSubnet.ID(), SkuName: pulumi.String("Standard_1vCores"), }) if err != nil { return err } return nil }) }
```
func GetService ¶
func GetService(ctx *pulumi.Context, name string, id pulumi.IDInput, state *ServiceState, opts ...pulumi.ResourceOption) (*Service, error)
GetService gets an existing Service 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 NewService ¶
func NewService(ctx *pulumi.Context, name string, args *ServiceArgs, opts ...pulumi.ResourceOption) (*Service, error)
NewService registers a new resource with the given unique name, arguments, and options.
type ServiceArgs ¶
type ServiceArgs struct { // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Location pulumi.StringPtrInput // Specify the name of the database migration service. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // Name of the resource group in which to create the database migration service. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringInput // The sku name of the database migration service. Possible values are `Premium_4vCores`, `Standard_1vCores`, `Standard_2vCores` and `Standard_4vCores`. Changing this forces a new resource to be created. SkuName pulumi.StringInput // The ID of the virtual subnet resource to which the database migration service should be joined. Changing this forces a new resource to be created. SubnetId pulumi.StringInput // A mapping of tags to assigned to the resource. Tags pulumi.StringMapInput }
The set of arguments for constructing a Service resource.
func (ServiceArgs) ElementType ¶
func (ServiceArgs) ElementType() reflect.Type
type ServiceState ¶
type ServiceState struct { // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Location pulumi.StringPtrInput // Specify the name of the database migration service. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // Name of the resource group in which to create the database migration service. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringPtrInput // The sku name of the database migration service. Possible values are `Premium_4vCores`, `Standard_1vCores`, `Standard_2vCores` and `Standard_4vCores`. Changing this forces a new resource to be created. SkuName pulumi.StringPtrInput // The ID of the virtual subnet resource to which the database migration service should be joined. Changing this forces a new resource to be created. SubnetId pulumi.StringPtrInput // A mapping of tags to assigned to the resource. Tags pulumi.StringMapInput }
func (ServiceState) ElementType ¶
func (ServiceState) ElementType() reflect.Type