Package com.pulumi.azurenative.migrate
Class ModernizeProject
- java.lang.Object
-
- com.pulumi.resources.Resource
-
- com.pulumi.resources.CustomResource
-
- com.pulumi.azurenative.migrate.ModernizeProject
-
public class ModernizeProject extends com.pulumi.resources.CustomResource
ModernizeProject model. Azure REST API version: 2022-05-01-preview. ## Example Usage ### ModernizeProject_Create_MaximumSet_Gen ```java package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.azurenative.migrate.ModernizeProject; import com.pulumi.azurenative.migrate.ModernizeProjectArgs; 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 modernizeProject = new ModernizeProject("modernizeProject", ModernizeProjectArgs.builder() .identity(Map.ofEntries( Map.entry("principalId", "ins"), Map.entry("tenantId", "fjnu"), Map.entry("type", "None"), Map.entry("userAssignedIdentities", Map.of("key6848", Map.ofEntries( Map.entry("clientId", "lvlngepacjdjryqmxuvfdxwtkc"), Map.entry("principalId", "lumkynazsspljxiiwvz") ))) )) .location("nbqyuxrgrlhx") .modernizeProjectName("b") .properties(Map.of("migrationConfiguration", Map.ofEntries( Map.entry("keyVaultResourceId", "vekhittkyogvwnqmggknv"), Map.entry("migrationSolutionResourceId", "bglfkwtzvqmhwpddwpvtdzaleaioxo"), Map.entry("storageAccountResourceId", "dgcoticysafrpynyoxkgrspooiia") ))) .resourceGroupName("rgmigrateEngine") .tags(Map.of("key8644", "wfyi")) .build()); } } ``` ### ModernizeProject_Create_MinimumSet_Gen ```java package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.azurenative.migrate.ModernizeProject; import com.pulumi.azurenative.migrate.ModernizeProjectArgs; 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 modernizeProject = new ModernizeProject("modernizeProject", ModernizeProjectArgs.builder() .modernizeProjectName("j") .resourceGroupName("rgmigrateEngine") .build()); } } ``` ## Import An existing resource can be imported using its type token, name, and identifier, e.g. ```sh $ pulumi import azure-native:migrate:ModernizeProject qjtgfttacnihw /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/modernizeProjects/{modernizeProjectName} ```
-
-
Constructor Summary
Constructors Constructor Description ModernizeProject(java.lang.String name)
ModernizeProject(java.lang.String name, ModernizeProjectArgs args)
ModernizeProject(java.lang.String name, ModernizeProjectArgs args, com.pulumi.resources.CustomResourceOptions options)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ModernizeProject
get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, com.pulumi.resources.CustomResourceOptions options)
Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.com.pulumi.core.Output<java.util.Optional<ResourceIdentityResponse>>
identity()
com.pulumi.core.Output<java.util.Optional<java.lang.String>>
location()
com.pulumi.core.Output<java.lang.String>
name()
com.pulumi.core.Output<ModernizeProjectModelPropertiesResponse>
properties()
com.pulumi.core.Output<ModernizeProjectModelResponseSystemData>
systemData()
com.pulumi.core.Output<java.util.Optional<java.util.Map<java.lang.String,java.lang.String>>>
tags()
com.pulumi.core.Output<java.lang.String>
type()
-
-
-
Constructor Detail
-
ModernizeProject
public ModernizeProject(java.lang.String name)
- Parameters:
name
- The _unique_ name of the resulting resource.
-
ModernizeProject
public ModernizeProject(java.lang.String name, ModernizeProjectArgs args)
- Parameters:
name
- The _unique_ name of the resulting resource.args
- The arguments to use to populate this resource's properties.
-
ModernizeProject
public ModernizeProject(java.lang.String name, ModernizeProjectArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options)
- Parameters:
name
- The _unique_ name of the resulting resource.args
- The arguments to use to populate this resource's properties.options
- A bag of options that control this resource's behavior.
-
-
Method Detail
-
identity
public com.pulumi.core.Output<java.util.Optional<ResourceIdentityResponse>> identity()
-
location
public com.pulumi.core.Output<java.util.Optional<java.lang.String>> location()
- Returns:
- Gets or sets the location of the modernizeProject.
-
name
public com.pulumi.core.Output<java.lang.String> name()
- Returns:
- Gets or sets the name of the resource.
-
properties
public com.pulumi.core.Output<ModernizeProjectModelPropertiesResponse> properties()
- Returns:
- ModernizeProject properties.
-
systemData
public com.pulumi.core.Output<ModernizeProjectModelResponseSystemData> systemData()
-
tags
public com.pulumi.core.Output<java.util.Optional<java.util.Map<java.lang.String,java.lang.String>>> tags()
- Returns:
- Gets or sets the resource tags.
-
type
public com.pulumi.core.Output<java.lang.String> type()
- Returns:
- Gets or sets the type of the resource.
-
get
public static ModernizeProject get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, @Nullable com.pulumi.resources.CustomResourceOptions options)
Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.- Parameters:
name
- The _unique_ name of the resulting resource.id
- The _unique_ provider ID of the resource to lookup.options
- Optional settings to control the behavior of the CustomResource.
-
-