com.pulumi.azure.storage.kotlin.MoverProjectArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-kotlin Show documentation
Show all versions of pulumi-azure-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.storage.kotlin
import com.pulumi.azure.storage.MoverProjectArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* Manages a Storage Mover Project.
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as azure from "@pulumi/azure";
* const example = new azure.core.ResourceGroup("example", {
* name: "example-resources",
* location: "West Europe",
* });
* const exampleMover = new azure.storage.Mover("example", {
* name: "example-ssm",
* resourceGroupName: example.name,
* location: example.location,
* });
* const exampleMoverProject = new azure.storage.MoverProject("example", {
* name: "example-sp",
* storageMoverId: exampleMover.id,
* description: "Example Project Description",
* });
* ```
* ```python
* import pulumi
* import pulumi_azure as azure
* example = azure.core.ResourceGroup("example",
* name="example-resources",
* location="West Europe")
* example_mover = azure.storage.Mover("example",
* name="example-ssm",
* resource_group_name=example.name,
* location=example.location)
* example_mover_project = azure.storage.MoverProject("example",
* name="example-sp",
* storage_mover_id=example_mover.id,
* description="Example Project Description")
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Azure = Pulumi.Azure;
* return await Deployment.RunAsync(() =>
* {
* var example = new Azure.Core.ResourceGroup("example", new()
* {
* Name = "example-resources",
* Location = "West Europe",
* });
* var exampleMover = new Azure.Storage.Mover("example", new()
* {
* Name = "example-ssm",
* ResourceGroupName = example.Name,
* Location = example.Location,
* });
* var exampleMoverProject = new Azure.Storage.MoverProject("example", new()
* {
* Name = "example-sp",
* StorageMoverId = exampleMover.Id,
* Description = "Example Project Description",
* });
* });
* ```
* ```go
* package main
* import (
* "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
* "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/storage"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
* Name: pulumi.String("example-resources"),
* Location: pulumi.String("West Europe"),
* })
* if err != nil {
* return err
* }
* exampleMover, err := storage.NewMover(ctx, "example", &storage.MoverArgs{
* Name: pulumi.String("example-ssm"),
* ResourceGroupName: example.Name,
* Location: example.Location,
* })
* if err != nil {
* return err
* }
* _, err = storage.NewMoverProject(ctx, "example", &storage.MoverProjectArgs{
* Name: pulumi.String("example-sp"),
* StorageMoverId: exampleMover.ID(),
* Description: pulumi.String("Example Project Description"),
* })
* if err != nil {
* return err
* }
* return nil
* })
* }
* ```
* ```java
* package generated_program;
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azure.core.ResourceGroup;
* import com.pulumi.azure.core.ResourceGroupArgs;
* import com.pulumi.azure.storage.Mover;
* import com.pulumi.azure.storage.MoverArgs;
* import com.pulumi.azure.storage.MoverProject;
* import com.pulumi.azure.storage.MoverProjectArgs;
* import java.util.List;
* import java.util.ArrayList;
* import java.util.Map;
* import java.io.File;
* import java.nio.file.Files;
* import java.nio.file.Paths;
* public class App {
* public static void main(String[] args) {
* Pulumi.run(App::stack);
* }
* public static void stack(Context ctx) {
* var example = new ResourceGroup("example", ResourceGroupArgs.builder()
* .name("example-resources")
* .location("West Europe")
* .build());
* var exampleMover = new Mover("exampleMover", MoverArgs.builder()
* .name("example-ssm")
* .resourceGroupName(example.name())
* .location(example.location())
* .build());
* var exampleMoverProject = new MoverProject("exampleMoverProject", MoverProjectArgs.builder()
* .name("example-sp")
* .storageMoverId(exampleMover.id())
* .description("Example Project Description")
* .build());
* }
* }
* ```
* ```yaml
* resources:
* example:
* type: azure:core:ResourceGroup
* properties:
* name: example-resources
* location: West Europe
* exampleMover:
* type: azure:storage:Mover
* name: example
* properties:
* name: example-ssm
* resourceGroupName: ${example.name}
* location: ${example.location}
* exampleMoverProject:
* type: azure:storage:MoverProject
* name: example
* properties:
* name: example-sp
* storageMoverId: ${exampleMover.id}
* description: Example Project Description
* ```
*
* ## Import
* Storage Mover Project can be imported using the `resource id`, e.g.
* ```sh
* $ pulumi import azure:storage/moverProject:MoverProject example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroup1/providers/Microsoft.StorageMover/storageMovers/storageMover1/projects/project1
* ```
* @property description Specifies a description for this Storage Mover Project.
* @property name Specifies the name which should be used for this Storage Mover Project. Changing this forces a new resource to be created.
* @property storageMoverId Specifies the ID of the storage mover for this Storage Mover Project. Changing this forces a new resource to be created.
*/
public data class MoverProjectArgs(
public val description: Output? = null,
public val name: Output? = null,
public val storageMoverId: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.storage.MoverProjectArgs =
com.pulumi.azure.storage.MoverProjectArgs.builder()
.description(description?.applyValue({ args0 -> args0 }))
.name(name?.applyValue({ args0 -> args0 }))
.storageMoverId(storageMoverId?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [MoverProjectArgs].
*/
@PulumiTagMarker
public class MoverProjectArgsBuilder internal constructor() {
private var description: Output? = null
private var name: Output? = null
private var storageMoverId: Output? = null
/**
* @param value Specifies a description for this Storage Mover Project.
*/
@JvmName("mclxljyttcnljdky")
public suspend fun description(`value`: Output) {
this.description = value
}
/**
* @param value Specifies the name which should be used for this Storage Mover Project. Changing this forces a new resource to be created.
*/
@JvmName("pkivjptbbwcwjnyr")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value Specifies the ID of the storage mover for this Storage Mover Project. Changing this forces a new resource to be created.
*/
@JvmName("tysnkpbkyhpifckb")
public suspend fun storageMoverId(`value`: Output) {
this.storageMoverId = value
}
/**
* @param value Specifies a description for this Storage Mover Project.
*/
@JvmName("tjdmldwrocopcnng")
public suspend fun description(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.description = mapped
}
/**
* @param value Specifies the name which should be used for this Storage Mover Project. Changing this forces a new resource to be created.
*/
@JvmName("wnudgmbpthxvnglv")
public suspend fun name(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.name = mapped
}
/**
* @param value Specifies the ID of the storage mover for this Storage Mover Project. Changing this forces a new resource to be created.
*/
@JvmName("ckogofrdqjvadhox")
public suspend fun storageMoverId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.storageMoverId = mapped
}
internal fun build(): MoverProjectArgs = MoverProjectArgs(
description = description,
name = name,
storageMoverId = storageMoverId,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy