Documentation ¶
Index ¶
- type LookupProjectArgs
- type LookupProjectOutputArgs
- type LookupProjectResult
- type LookupProjectResultOutput
- func (LookupProjectResultOutput) ElementType() reflect.Type
- func (o LookupProjectResultOutput) Id() pulumi.StringOutput
- func (o LookupProjectResultOutput) Location() pulumi.StringOutput
- func (o LookupProjectResultOutput) Name() pulumi.StringOutput
- func (o LookupProjectResultOutput) ResourceGroupName() pulumi.StringOutput
- func (o LookupProjectResultOutput) ServiceName() pulumi.StringOutput
- func (o LookupProjectResultOutput) SourcePlatform() pulumi.StringOutput
- func (o LookupProjectResultOutput) Tags() pulumi.StringMapOutput
- func (o LookupProjectResultOutput) TargetPlatform() pulumi.StringOutput
- func (o LookupProjectResultOutput) ToLookupProjectResultOutput() LookupProjectResultOutput
- func (o LookupProjectResultOutput) ToLookupProjectResultOutputWithContext(ctx context.Context) LookupProjectResultOutput
- type LookupServiceArgs
- type LookupServiceOutputArgs
- type LookupServiceResult
- type LookupServiceResultOutput
- func (LookupServiceResultOutput) ElementType() reflect.Type
- func (o LookupServiceResultOutput) Id() pulumi.StringOutput
- func (o LookupServiceResultOutput) Location() pulumi.StringOutput
- func (o LookupServiceResultOutput) Name() pulumi.StringOutput
- func (o LookupServiceResultOutput) ResourceGroupName() pulumi.StringOutput
- func (o LookupServiceResultOutput) SkuName() pulumi.StringOutput
- func (o LookupServiceResultOutput) SubnetId() pulumi.StringOutput
- func (o LookupServiceResultOutput) Tags() pulumi.StringMapOutput
- func (o LookupServiceResultOutput) ToLookupServiceResultOutput() LookupServiceResultOutput
- func (o LookupServiceResultOutput) ToLookupServiceResultOutputWithContext(ctx context.Context) LookupServiceResultOutput
- type Project
- func (*Project) ElementType() reflect.Type
- func (i *Project) ToProjectOutput() ProjectOutput
- func (i *Project) ToProjectOutputWithContext(ctx context.Context) ProjectOutput
- func (i *Project) ToProjectPtrOutput() ProjectPtrOutput
- func (i *Project) ToProjectPtrOutputWithContext(ctx context.Context) ProjectPtrOutput
- type ProjectArgs
- type ProjectArray
- type ProjectArrayInput
- type ProjectArrayOutput
- type ProjectInput
- type ProjectMap
- type ProjectMapInput
- type ProjectMapOutput
- type ProjectOutput
- func (ProjectOutput) ElementType() reflect.Type
- func (o ProjectOutput) ToProjectOutput() ProjectOutput
- func (o ProjectOutput) ToProjectOutputWithContext(ctx context.Context) ProjectOutput
- func (o ProjectOutput) ToProjectPtrOutput() ProjectPtrOutput
- func (o ProjectOutput) ToProjectPtrOutputWithContext(ctx context.Context) ProjectPtrOutput
- type ProjectPtrInput
- type ProjectPtrOutput
- type ProjectState
- type Service
- func (*Service) ElementType() reflect.Type
- func (i *Service) ToServiceOutput() ServiceOutput
- func (i *Service) ToServiceOutputWithContext(ctx context.Context) ServiceOutput
- func (i *Service) ToServicePtrOutput() ServicePtrOutput
- func (i *Service) ToServicePtrOutputWithContext(ctx context.Context) ServicePtrOutput
- type ServiceArgs
- type ServiceArray
- type ServiceArrayInput
- type ServiceArrayOutput
- type ServiceInput
- type ServiceMap
- type ServiceMapInput
- type ServiceMapOutput
- type ServiceOutput
- func (ServiceOutput) ElementType() reflect.Type
- func (o ServiceOutput) ToServiceOutput() ServiceOutput
- func (o ServiceOutput) ToServiceOutputWithContext(ctx context.Context) ServiceOutput
- func (o ServiceOutput) ToServicePtrOutput() ServicePtrOutput
- func (o ServiceOutput) ToServicePtrOutputWithContext(ctx context.Context) ServicePtrOutput
- type ServicePtrInput
- type ServicePtrOutput
- type ServiceState
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 LookupProjectOutputArgs ¶ added in v4.20.0
type LookupProjectOutputArgs struct { // Name of the database migration project. Name pulumi.StringInput `pulumi:"name"` // Name of the resource group where resource belongs to. ResourceGroupName pulumi.StringInput `pulumi:"resourceGroupName"` // Name of the database migration service where resource belongs to. ServiceName pulumi.StringInput `pulumi:"serviceName"` }
A collection of arguments for invoking getProject.
func (LookupProjectOutputArgs) ElementType ¶ added in v4.20.0
func (LookupProjectOutputArgs) ElementType() reflect.Type
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/v4/go/azure/databasemigration" "github.com/pulumi/pulumi/sdk/v3/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 LookupProjectResultOutput ¶ added in v4.20.0
type LookupProjectResultOutput struct{ *pulumi.OutputState }
A collection of values returned by getProject.
func LookupProjectOutput ¶ added in v4.20.0
func LookupProjectOutput(ctx *pulumi.Context, args LookupProjectOutputArgs, opts ...pulumi.InvokeOption) LookupProjectResultOutput
func (LookupProjectResultOutput) ElementType ¶ added in v4.20.0
func (LookupProjectResultOutput) ElementType() reflect.Type
func (LookupProjectResultOutput) Id ¶ added in v4.20.0
func (o LookupProjectResultOutput) Id() pulumi.StringOutput
The provider-assigned unique ID for this managed resource.
func (LookupProjectResultOutput) Location ¶ added in v4.20.0
func (o LookupProjectResultOutput) Location() pulumi.StringOutput
Azure location where the resource exists.
func (LookupProjectResultOutput) Name ¶ added in v4.20.0
func (o LookupProjectResultOutput) Name() pulumi.StringOutput
func (LookupProjectResultOutput) ResourceGroupName ¶ added in v4.20.0
func (o LookupProjectResultOutput) ResourceGroupName() pulumi.StringOutput
func (LookupProjectResultOutput) ServiceName ¶ added in v4.20.0
func (o LookupProjectResultOutput) ServiceName() pulumi.StringOutput
func (LookupProjectResultOutput) SourcePlatform ¶ added in v4.20.0
func (o LookupProjectResultOutput) SourcePlatform() pulumi.StringOutput
The platform type of the migration source.
func (LookupProjectResultOutput) Tags ¶ added in v4.20.0
func (o LookupProjectResultOutput) Tags() pulumi.StringMapOutput
A mapping of tags to assigned to the resource.
func (LookupProjectResultOutput) TargetPlatform ¶ added in v4.20.0
func (o LookupProjectResultOutput) TargetPlatform() pulumi.StringOutput
The platform type of the migration target.
func (LookupProjectResultOutput) ToLookupProjectResultOutput ¶ added in v4.20.0
func (o LookupProjectResultOutput) ToLookupProjectResultOutput() LookupProjectResultOutput
func (LookupProjectResultOutput) ToLookupProjectResultOutputWithContext ¶ added in v4.20.0
func (o LookupProjectResultOutput) ToLookupProjectResultOutputWithContext(ctx context.Context) LookupProjectResultOutput
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 LookupServiceOutputArgs ¶ added in v4.20.0
type LookupServiceOutputArgs struct { // Specify the name of the database migration service. Name pulumi.StringInput `pulumi:"name"` // Specifies the Name of the Resource Group within which the database migration service exists ResourceGroupName pulumi.StringInput `pulumi:"resourceGroupName"` }
A collection of arguments for invoking getService.
func (LookupServiceOutputArgs) ElementType ¶ added in v4.20.0
func (LookupServiceOutputArgs) ElementType() reflect.Type
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/v4/go/azure/databasemigration" "github.com/pulumi/pulumi/sdk/v3/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 LookupServiceResultOutput ¶ added in v4.20.0
type LookupServiceResultOutput struct{ *pulumi.OutputState }
A collection of values returned by getService.
func LookupServiceOutput ¶ added in v4.20.0
func LookupServiceOutput(ctx *pulumi.Context, args LookupServiceOutputArgs, opts ...pulumi.InvokeOption) LookupServiceResultOutput
func (LookupServiceResultOutput) ElementType ¶ added in v4.20.0
func (LookupServiceResultOutput) ElementType() reflect.Type
func (LookupServiceResultOutput) Id ¶ added in v4.20.0
func (o LookupServiceResultOutput) Id() pulumi.StringOutput
The provider-assigned unique ID for this managed resource.
func (LookupServiceResultOutput) Location ¶ added in v4.20.0
func (o LookupServiceResultOutput) Location() pulumi.StringOutput
Azure location where the resource exists.
func (LookupServiceResultOutput) Name ¶ added in v4.20.0
func (o LookupServiceResultOutput) Name() pulumi.StringOutput
func (LookupServiceResultOutput) ResourceGroupName ¶ added in v4.20.0
func (o LookupServiceResultOutput) ResourceGroupName() pulumi.StringOutput
func (LookupServiceResultOutput) SkuName ¶ added in v4.20.0
func (o LookupServiceResultOutput) SkuName() pulumi.StringOutput
The sku name of database migration service.
func (LookupServiceResultOutput) SubnetId ¶ added in v4.20.0
func (o LookupServiceResultOutput) SubnetId() pulumi.StringOutput
The ID of the virtual subnet resource to which the database migration service exists.
func (LookupServiceResultOutput) Tags ¶ added in v4.20.0
func (o LookupServiceResultOutput) Tags() pulumi.StringMapOutput
A mapping of tags to assigned to the resource.
func (LookupServiceResultOutput) ToLookupServiceResultOutput ¶ added in v4.20.0
func (o LookupServiceResultOutput) ToLookupServiceResultOutput() LookupServiceResultOutput
func (LookupServiceResultOutput) ToLookupServiceResultOutputWithContext ¶ added in v4.20.0
func (o LookupServiceResultOutput) ToLookupServiceResultOutputWithContext(ctx context.Context) LookupServiceResultOutput
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.
## Import
Database Migration Projects can be imported using the `resource id`, e.g.
```sh
$ pulumi import azure:databasemigration/project:Project example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example-rg/providers/Microsoft.DataMigration/services/example-dms/projects/project1
```
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.
func (*Project) ElementType ¶
func (*Project) ToProjectOutput ¶
func (i *Project) ToProjectOutput() ProjectOutput
func (*Project) ToProjectOutputWithContext ¶
func (i *Project) ToProjectOutputWithContext(ctx context.Context) ProjectOutput
func (*Project) ToProjectPtrOutput ¶
func (i *Project) ToProjectPtrOutput() ProjectPtrOutput
func (*Project) ToProjectPtrOutputWithContext ¶
func (i *Project) ToProjectPtrOutputWithContext(ctx context.Context) ProjectPtrOutput
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 ProjectArray ¶
type ProjectArray []ProjectInput
func (ProjectArray) ElementType ¶
func (ProjectArray) ElementType() reflect.Type
func (ProjectArray) ToProjectArrayOutput ¶
func (i ProjectArray) ToProjectArrayOutput() ProjectArrayOutput
func (ProjectArray) ToProjectArrayOutputWithContext ¶
func (i ProjectArray) ToProjectArrayOutputWithContext(ctx context.Context) ProjectArrayOutput
type ProjectArrayInput ¶
type ProjectArrayInput interface { pulumi.Input ToProjectArrayOutput() ProjectArrayOutput ToProjectArrayOutputWithContext(context.Context) ProjectArrayOutput }
ProjectArrayInput is an input type that accepts ProjectArray and ProjectArrayOutput values. You can construct a concrete instance of `ProjectArrayInput` via:
ProjectArray{ ProjectArgs{...} }
type ProjectArrayOutput ¶
type ProjectArrayOutput struct{ *pulumi.OutputState }
func (ProjectArrayOutput) ElementType ¶
func (ProjectArrayOutput) ElementType() reflect.Type
func (ProjectArrayOutput) Index ¶
func (o ProjectArrayOutput) Index(i pulumi.IntInput) ProjectOutput
func (ProjectArrayOutput) ToProjectArrayOutput ¶
func (o ProjectArrayOutput) ToProjectArrayOutput() ProjectArrayOutput
func (ProjectArrayOutput) ToProjectArrayOutputWithContext ¶
func (o ProjectArrayOutput) ToProjectArrayOutputWithContext(ctx context.Context) ProjectArrayOutput
type ProjectInput ¶
type ProjectInput interface { pulumi.Input ToProjectOutput() ProjectOutput ToProjectOutputWithContext(ctx context.Context) ProjectOutput }
type ProjectMap ¶
type ProjectMap map[string]ProjectInput
func (ProjectMap) ElementType ¶
func (ProjectMap) ElementType() reflect.Type
func (ProjectMap) ToProjectMapOutput ¶
func (i ProjectMap) ToProjectMapOutput() ProjectMapOutput
func (ProjectMap) ToProjectMapOutputWithContext ¶
func (i ProjectMap) ToProjectMapOutputWithContext(ctx context.Context) ProjectMapOutput
type ProjectMapInput ¶
type ProjectMapInput interface { pulumi.Input ToProjectMapOutput() ProjectMapOutput ToProjectMapOutputWithContext(context.Context) ProjectMapOutput }
ProjectMapInput is an input type that accepts ProjectMap and ProjectMapOutput values. You can construct a concrete instance of `ProjectMapInput` via:
ProjectMap{ "key": ProjectArgs{...} }
type ProjectMapOutput ¶
type ProjectMapOutput struct{ *pulumi.OutputState }
func (ProjectMapOutput) ElementType ¶
func (ProjectMapOutput) ElementType() reflect.Type
func (ProjectMapOutput) MapIndex ¶
func (o ProjectMapOutput) MapIndex(k pulumi.StringInput) ProjectOutput
func (ProjectMapOutput) ToProjectMapOutput ¶
func (o ProjectMapOutput) ToProjectMapOutput() ProjectMapOutput
func (ProjectMapOutput) ToProjectMapOutputWithContext ¶
func (o ProjectMapOutput) ToProjectMapOutputWithContext(ctx context.Context) ProjectMapOutput
type ProjectOutput ¶
type ProjectOutput struct{ *pulumi.OutputState }
func (ProjectOutput) ElementType ¶
func (ProjectOutput) ElementType() reflect.Type
func (ProjectOutput) ToProjectOutput ¶
func (o ProjectOutput) ToProjectOutput() ProjectOutput
func (ProjectOutput) ToProjectOutputWithContext ¶
func (o ProjectOutput) ToProjectOutputWithContext(ctx context.Context) ProjectOutput
func (ProjectOutput) ToProjectPtrOutput ¶
func (o ProjectOutput) ToProjectPtrOutput() ProjectPtrOutput
func (ProjectOutput) ToProjectPtrOutputWithContext ¶
func (o ProjectOutput) ToProjectPtrOutputWithContext(ctx context.Context) ProjectPtrOutput
type ProjectPtrInput ¶
type ProjectPtrInput interface { pulumi.Input ToProjectPtrOutput() ProjectPtrOutput ToProjectPtrOutputWithContext(ctx context.Context) ProjectPtrOutput }
type ProjectPtrOutput ¶
type ProjectPtrOutput struct{ *pulumi.OutputState }
func (ProjectPtrOutput) Elem ¶ added in v4.20.0
func (o ProjectPtrOutput) Elem() ProjectOutput
func (ProjectPtrOutput) ElementType ¶
func (ProjectPtrOutput) ElementType() reflect.Type
func (ProjectPtrOutput) ToProjectPtrOutput ¶
func (o ProjectPtrOutput) ToProjectPtrOutput() ProjectPtrOutput
func (ProjectPtrOutput) ToProjectPtrOutputWithContext ¶
func (o ProjectPtrOutput) ToProjectPtrOutputWithContext(ctx context.Context) ProjectPtrOutput
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/v4/go/azure/core" "github.com/pulumi/pulumi-azure/sdk/v4/go/azure/databasemigration" "github.com/pulumi/pulumi-azure/sdk/v4/go/azure/network" "github.com/pulumi/pulumi/sdk/v3/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 }) }
```
## Import
Database Migration Services can be imported using the `resource id`, e.g.
```sh
$ pulumi import azure:databasemigration/service:Service example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example-rg/providers/Microsoft.DataMigration/services/database_migration_service1
```
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.
func (*Service) ElementType ¶
func (*Service) ToServiceOutput ¶
func (i *Service) ToServiceOutput() ServiceOutput
func (*Service) ToServiceOutputWithContext ¶
func (i *Service) ToServiceOutputWithContext(ctx context.Context) ServiceOutput
func (*Service) ToServicePtrOutput ¶
func (i *Service) ToServicePtrOutput() ServicePtrOutput
func (*Service) ToServicePtrOutputWithContext ¶
func (i *Service) ToServicePtrOutputWithContext(ctx context.Context) ServicePtrOutput
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 ServiceArray ¶
type ServiceArray []ServiceInput
func (ServiceArray) ElementType ¶
func (ServiceArray) ElementType() reflect.Type
func (ServiceArray) ToServiceArrayOutput ¶
func (i ServiceArray) ToServiceArrayOutput() ServiceArrayOutput
func (ServiceArray) ToServiceArrayOutputWithContext ¶
func (i ServiceArray) ToServiceArrayOutputWithContext(ctx context.Context) ServiceArrayOutput
type ServiceArrayInput ¶
type ServiceArrayInput interface { pulumi.Input ToServiceArrayOutput() ServiceArrayOutput ToServiceArrayOutputWithContext(context.Context) ServiceArrayOutput }
ServiceArrayInput is an input type that accepts ServiceArray and ServiceArrayOutput values. You can construct a concrete instance of `ServiceArrayInput` via:
ServiceArray{ ServiceArgs{...} }
type ServiceArrayOutput ¶
type ServiceArrayOutput struct{ *pulumi.OutputState }
func (ServiceArrayOutput) ElementType ¶
func (ServiceArrayOutput) ElementType() reflect.Type
func (ServiceArrayOutput) Index ¶
func (o ServiceArrayOutput) Index(i pulumi.IntInput) ServiceOutput
func (ServiceArrayOutput) ToServiceArrayOutput ¶
func (o ServiceArrayOutput) ToServiceArrayOutput() ServiceArrayOutput
func (ServiceArrayOutput) ToServiceArrayOutputWithContext ¶
func (o ServiceArrayOutput) ToServiceArrayOutputWithContext(ctx context.Context) ServiceArrayOutput
type ServiceInput ¶
type ServiceInput interface { pulumi.Input ToServiceOutput() ServiceOutput ToServiceOutputWithContext(ctx context.Context) ServiceOutput }
type ServiceMap ¶
type ServiceMap map[string]ServiceInput
func (ServiceMap) ElementType ¶
func (ServiceMap) ElementType() reflect.Type
func (ServiceMap) ToServiceMapOutput ¶
func (i ServiceMap) ToServiceMapOutput() ServiceMapOutput
func (ServiceMap) ToServiceMapOutputWithContext ¶
func (i ServiceMap) ToServiceMapOutputWithContext(ctx context.Context) ServiceMapOutput
type ServiceMapInput ¶
type ServiceMapInput interface { pulumi.Input ToServiceMapOutput() ServiceMapOutput ToServiceMapOutputWithContext(context.Context) ServiceMapOutput }
ServiceMapInput is an input type that accepts ServiceMap and ServiceMapOutput values. You can construct a concrete instance of `ServiceMapInput` via:
ServiceMap{ "key": ServiceArgs{...} }
type ServiceMapOutput ¶
type ServiceMapOutput struct{ *pulumi.OutputState }
func (ServiceMapOutput) ElementType ¶
func (ServiceMapOutput) ElementType() reflect.Type
func (ServiceMapOutput) MapIndex ¶
func (o ServiceMapOutput) MapIndex(k pulumi.StringInput) ServiceOutput
func (ServiceMapOutput) ToServiceMapOutput ¶
func (o ServiceMapOutput) ToServiceMapOutput() ServiceMapOutput
func (ServiceMapOutput) ToServiceMapOutputWithContext ¶
func (o ServiceMapOutput) ToServiceMapOutputWithContext(ctx context.Context) ServiceMapOutput
type ServiceOutput ¶
type ServiceOutput struct{ *pulumi.OutputState }
func (ServiceOutput) ElementType ¶
func (ServiceOutput) ElementType() reflect.Type
func (ServiceOutput) ToServiceOutput ¶
func (o ServiceOutput) ToServiceOutput() ServiceOutput
func (ServiceOutput) ToServiceOutputWithContext ¶
func (o ServiceOutput) ToServiceOutputWithContext(ctx context.Context) ServiceOutput
func (ServiceOutput) ToServicePtrOutput ¶
func (o ServiceOutput) ToServicePtrOutput() ServicePtrOutput
func (ServiceOutput) ToServicePtrOutputWithContext ¶
func (o ServiceOutput) ToServicePtrOutputWithContext(ctx context.Context) ServicePtrOutput
type ServicePtrInput ¶
type ServicePtrInput interface { pulumi.Input ToServicePtrOutput() ServicePtrOutput ToServicePtrOutputWithContext(ctx context.Context) ServicePtrOutput }
type ServicePtrOutput ¶
type ServicePtrOutput struct{ *pulumi.OutputState }
func (ServicePtrOutput) Elem ¶ added in v4.20.0
func (o ServicePtrOutput) Elem() ServiceOutput
func (ServicePtrOutput) ElementType ¶
func (ServicePtrOutput) ElementType() reflect.Type
func (ServicePtrOutput) ToServicePtrOutput ¶
func (o ServicePtrOutput) ToServicePtrOutput() ServicePtrOutput
func (ServicePtrOutput) ToServicePtrOutputWithContext ¶
func (o ServicePtrOutput) ToServicePtrOutputWithContext(ctx context.Context) ServicePtrOutput
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