com.pulumi.gcp.migrationcenter.kotlin.PreferenceSet.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-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.gcp.migrationcenter.kotlin
import com.pulumi.core.Output
import com.pulumi.gcp.migrationcenter.kotlin.outputs.PreferenceSetVirtualMachinePreferences
import com.pulumi.gcp.migrationcenter.kotlin.outputs.PreferenceSetVirtualMachinePreferences.Companion.toKotlin
import com.pulumi.kotlin.KotlinCustomResource
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.ResourceMapper
import com.pulumi.kotlin.options.CustomResourceOptions
import com.pulumi.kotlin.options.CustomResourceOptionsBuilder
import com.pulumi.resources.Resource
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
/**
* Builder for [PreferenceSet].
*/
@PulumiTagMarker
public class PreferenceSetResourceBuilder internal constructor() {
public var name: String? = null
public var args: PreferenceSetArgs = PreferenceSetArgs()
public var opts: CustomResourceOptions = CustomResourceOptions()
/**
* @param name The _unique_ name of the resulting resource.
*/
public fun name(`value`: String) {
this.name = value
}
/**
* @param block The arguments to use to populate this resource's properties.
*/
public suspend fun args(block: suspend PreferenceSetArgsBuilder.() -> Unit) {
val builder = PreferenceSetArgsBuilder()
block(builder)
this.args = builder.build()
}
/**
* @param block A bag of options that control this resource's behavior.
*/
public suspend fun opts(block: suspend CustomResourceOptionsBuilder.() -> Unit) {
this.opts = com.pulumi.kotlin.options.CustomResourceOptions.opts(block)
}
internal fun build(): PreferenceSet {
val builtJavaResource = com.pulumi.gcp.migrationcenter.PreferenceSet(
this.name,
this.args.toJava(),
this.opts.toJava(),
)
return PreferenceSet(builtJavaResource)
}
}
/**
* Manages the PreferenceSet resource.
* To get more information about PreferenceSet, see:
* * [API documentation](https://cloud.google.com/migration-center/docs/reference/rest/v1)
* * How-to Guides
* * [Managing Migration Preferences](https://cloud.google.com/migration-center/docs/migration-preferences)
* ## Example Usage
* ### Preference Set Basic
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
* const _default = new gcp.migrationcenter.PreferenceSet("default", {
* location: "us-central1",
* preferenceSetId: "preference-set-test",
* description: "Terraform integration test description",
* displayName: "Terraform integration test display",
* virtualMachinePreferences: {
* vmwareEnginePreferences: {
* cpuOvercommitRatio: 1.5,
* },
* sizingOptimizationStrategy: "SIZING_OPTIMIZATION_STRATEGY_SAME_AS_SOURCE",
* targetProduct: "COMPUTE_MIGRATION_TARGET_PRODUCT_COMPUTE_ENGINE",
* },
* });
* ```
* ```python
* import pulumi
* import pulumi_gcp as gcp
* default = gcp.migrationcenter.PreferenceSet("default",
* location="us-central1",
* preference_set_id="preference-set-test",
* description="Terraform integration test description",
* display_name="Terraform integration test display",
* virtual_machine_preferences=gcp.migrationcenter.PreferenceSetVirtualMachinePreferencesArgs(
* vmware_engine_preferences=gcp.migrationcenter.PreferenceSetVirtualMachinePreferencesVmwareEnginePreferencesArgs(
* cpu_overcommit_ratio=1.5,
* ),
* sizing_optimization_strategy="SIZING_OPTIMIZATION_STRATEGY_SAME_AS_SOURCE",
* target_product="COMPUTE_MIGRATION_TARGET_PRODUCT_COMPUTE_ENGINE",
* ))
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Gcp = Pulumi.Gcp;
* return await Deployment.RunAsync(() =>
* {
* var @default = new Gcp.MigrationCenter.PreferenceSet("default", new()
* {
* Location = "us-central1",
* PreferenceSetId = "preference-set-test",
* Description = "Terraform integration test description",
* DisplayName = "Terraform integration test display",
* VirtualMachinePreferences = new Gcp.MigrationCenter.Inputs.PreferenceSetVirtualMachinePreferencesArgs
* {
* VmwareEnginePreferences = new Gcp.MigrationCenter.Inputs.PreferenceSetVirtualMachinePreferencesVmwareEnginePreferencesArgs
* {
* CpuOvercommitRatio = 1.5,
* },
* SizingOptimizationStrategy = "SIZING_OPTIMIZATION_STRATEGY_SAME_AS_SOURCE",
* TargetProduct = "COMPUTE_MIGRATION_TARGET_PRODUCT_COMPUTE_ENGINE",
* },
* });
* });
* ```
* ```go
* package main
* import (
* "github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/migrationcenter"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := migrationcenter.NewPreferenceSet(ctx, "default", &migrationcenter.PreferenceSetArgs{
* Location: pulumi.String("us-central1"),
* PreferenceSetId: pulumi.String("preference-set-test"),
* Description: pulumi.String("Terraform integration test description"),
* DisplayName: pulumi.String("Terraform integration test display"),
* VirtualMachinePreferences: &migrationcenter.PreferenceSetVirtualMachinePreferencesArgs{
* VmwareEnginePreferences: &migrationcenter.PreferenceSetVirtualMachinePreferencesVmwareEnginePreferencesArgs{
* CpuOvercommitRatio: pulumi.Float64(1.5),
* },
* SizingOptimizationStrategy: pulumi.String("SIZING_OPTIMIZATION_STRATEGY_SAME_AS_SOURCE"),
* TargetProduct: pulumi.String("COMPUTE_MIGRATION_TARGET_PRODUCT_COMPUTE_ENGINE"),
* },
* })
* 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.gcp.migrationcenter.PreferenceSet;
* import com.pulumi.gcp.migrationcenter.PreferenceSetArgs;
* import com.pulumi.gcp.migrationcenter.inputs.PreferenceSetVirtualMachinePreferencesArgs;
* import com.pulumi.gcp.migrationcenter.inputs.PreferenceSetVirtualMachinePreferencesVmwareEnginePreferencesArgs;
* 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 default_ = new PreferenceSet("default", PreferenceSetArgs.builder()
* .location("us-central1")
* .preferenceSetId("preference-set-test")
* .description("Terraform integration test description")
* .displayName("Terraform integration test display")
* .virtualMachinePreferences(PreferenceSetVirtualMachinePreferencesArgs.builder()
* .vmwareEnginePreferences(PreferenceSetVirtualMachinePreferencesVmwareEnginePreferencesArgs.builder()
* .cpuOvercommitRatio(1.5)
* .build())
* .sizingOptimizationStrategy("SIZING_OPTIMIZATION_STRATEGY_SAME_AS_SOURCE")
* .targetProduct("COMPUTE_MIGRATION_TARGET_PRODUCT_COMPUTE_ENGINE")
* .build())
* .build());
* }
* }
* ```
* ```yaml
* resources:
* default:
* type: gcp:migrationcenter:PreferenceSet
* properties:
* location: us-central1
* preferenceSetId: preference-set-test
* description: Terraform integration test description
* displayName: Terraform integration test display
* virtualMachinePreferences:
* vmwareEnginePreferences:
* cpuOvercommitRatio: 1.5
* sizingOptimizationStrategy: SIZING_OPTIMIZATION_STRATEGY_SAME_AS_SOURCE
* targetProduct: COMPUTE_MIGRATION_TARGET_PRODUCT_COMPUTE_ENGINE
* ```
*
* ### Preference Set Full
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
* const _default = new gcp.migrationcenter.PreferenceSet("default", {
* location: "us-central1",
* preferenceSetId: "preference-set-test",
* description: "Terraform integration test description",
* displayName: "Terraform integration test display",
* virtualMachinePreferences: {
* vmwareEnginePreferences: {
* cpuOvercommitRatio: 1.5,
* storageDeduplicationCompressionRatio: 1.3,
* commitmentPlan: "ON_DEMAND",
* },
* sizingOptimizationStrategy: "SIZING_OPTIMIZATION_STRATEGY_SAME_AS_SOURCE",
* targetProduct: "COMPUTE_MIGRATION_TARGET_PRODUCT_COMPUTE_ENGINE",
* commitmentPlan: "COMMITMENT_PLAN_ONE_YEAR",
* regionPreferences: {
* preferredRegions: ["us-central1"],
* },
* soleTenancyPreferences: {
* commitmentPlan: "ON_DEMAND",
* cpuOvercommitRatio: 1.2,
* hostMaintenancePolicy: "HOST_MAINTENANCE_POLICY_DEFAULT",
* nodeTypes: [{
* nodeName: "tf-test",
* }],
* },
* computeEnginePreferences: {
* licenseType: "LICENSE_TYPE_BRING_YOUR_OWN_LICENSE",
* machinePreferences: {
* allowedMachineSeries: [{
* code: "C3",
* }],
* },
* },
* },
* });
* ```
* ```python
* import pulumi
* import pulumi_gcp as gcp
* default = gcp.migrationcenter.PreferenceSet("default",
* location="us-central1",
* preference_set_id="preference-set-test",
* description="Terraform integration test description",
* display_name="Terraform integration test display",
* virtual_machine_preferences=gcp.migrationcenter.PreferenceSetVirtualMachinePreferencesArgs(
* vmware_engine_preferences=gcp.migrationcenter.PreferenceSetVirtualMachinePreferencesVmwareEnginePreferencesArgs(
* cpu_overcommit_ratio=1.5,
* storage_deduplication_compression_ratio=1.3,
* commitment_plan="ON_DEMAND",
* ),
* sizing_optimization_strategy="SIZING_OPTIMIZATION_STRATEGY_SAME_AS_SOURCE",
* target_product="COMPUTE_MIGRATION_TARGET_PRODUCT_COMPUTE_ENGINE",
* commitment_plan="COMMITMENT_PLAN_ONE_YEAR",
* region_preferences=gcp.migrationcenter.PreferenceSetVirtualMachinePreferencesRegionPreferencesArgs(
* preferred_regions=["us-central1"],
* ),
* sole_tenancy_preferences=gcp.migrationcenter.PreferenceSetVirtualMachinePreferencesSoleTenancyPreferencesArgs(
* commitment_plan="ON_DEMAND",
* cpu_overcommit_ratio=1.2,
* host_maintenance_policy="HOST_MAINTENANCE_POLICY_DEFAULT",
* node_types=[gcp.migrationcenter.PreferenceSetVirtualMachinePreferencesSoleTenancyPreferencesNodeTypeArgs(
* node_name="tf-test",
* )],
* ),
* compute_engine_preferences=gcp.migrationcenter.PreferenceSetVirtualMachinePreferencesComputeEnginePreferencesArgs(
* license_type="LICENSE_TYPE_BRING_YOUR_OWN_LICENSE",
* machine_preferences=gcp.migrationcenter.PreferenceSetVirtualMachinePreferencesComputeEnginePreferencesMachinePreferencesArgs(
* allowed_machine_series=[gcp.migrationcenter.PreferenceSetVirtualMachinePreferencesComputeEnginePreferencesMachinePreferencesAllowedMachineSeriesArgs(
* code="C3",
* )],
* ),
* ),
* ))
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Gcp = Pulumi.Gcp;
* return await Deployment.RunAsync(() =>
* {
* var @default = new Gcp.MigrationCenter.PreferenceSet("default", new()
* {
* Location = "us-central1",
* PreferenceSetId = "preference-set-test",
* Description = "Terraform integration test description",
* DisplayName = "Terraform integration test display",
* VirtualMachinePreferences = new Gcp.MigrationCenter.Inputs.PreferenceSetVirtualMachinePreferencesArgs
* {
* VmwareEnginePreferences = new Gcp.MigrationCenter.Inputs.PreferenceSetVirtualMachinePreferencesVmwareEnginePreferencesArgs
* {
* CpuOvercommitRatio = 1.5,
* StorageDeduplicationCompressionRatio = 1.3,
* CommitmentPlan = "ON_DEMAND",
* },
* SizingOptimizationStrategy = "SIZING_OPTIMIZATION_STRATEGY_SAME_AS_SOURCE",
* TargetProduct = "COMPUTE_MIGRATION_TARGET_PRODUCT_COMPUTE_ENGINE",
* CommitmentPlan = "COMMITMENT_PLAN_ONE_YEAR",
* RegionPreferences = new Gcp.MigrationCenter.Inputs.PreferenceSetVirtualMachinePreferencesRegionPreferencesArgs
* {
* PreferredRegions = new[]
* {
* "us-central1",
* },
* },
* SoleTenancyPreferences = new Gcp.MigrationCenter.Inputs.PreferenceSetVirtualMachinePreferencesSoleTenancyPreferencesArgs
* {
* CommitmentPlan = "ON_DEMAND",
* CpuOvercommitRatio = 1.2,
* HostMaintenancePolicy = "HOST_MAINTENANCE_POLICY_DEFAULT",
* NodeTypes = new[]
* {
* new Gcp.MigrationCenter.Inputs.PreferenceSetVirtualMachinePreferencesSoleTenancyPreferencesNodeTypeArgs
* {
* NodeName = "tf-test",
* },
* },
* },
* ComputeEnginePreferences = new Gcp.MigrationCenter.Inputs.PreferenceSetVirtualMachinePreferencesComputeEnginePreferencesArgs
* {
* LicenseType = "LICENSE_TYPE_BRING_YOUR_OWN_LICENSE",
* MachinePreferences = new Gcp.MigrationCenter.Inputs.PreferenceSetVirtualMachinePreferencesComputeEnginePreferencesMachinePreferencesArgs
* {
* AllowedMachineSeries = new[]
* {
* new Gcp.MigrationCenter.Inputs.PreferenceSetVirtualMachinePreferencesComputeEnginePreferencesMachinePreferencesAllowedMachineSeriesArgs
* {
* Code = "C3",
* },
* },
* },
* },
* },
* });
* });
* ```
* ```go
* package main
* import (
* "github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/migrationcenter"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := migrationcenter.NewPreferenceSet(ctx, "default", &migrationcenter.PreferenceSetArgs{
* Location: pulumi.String("us-central1"),
* PreferenceSetId: pulumi.String("preference-set-test"),
* Description: pulumi.String("Terraform integration test description"),
* DisplayName: pulumi.String("Terraform integration test display"),
* VirtualMachinePreferences: &migrationcenter.PreferenceSetVirtualMachinePreferencesArgs{
* VmwareEnginePreferences: &migrationcenter.PreferenceSetVirtualMachinePreferencesVmwareEnginePreferencesArgs{
* CpuOvercommitRatio: pulumi.Float64(1.5),
* StorageDeduplicationCompressionRatio: pulumi.Float64(1.3),
* CommitmentPlan: pulumi.String("ON_DEMAND"),
* },
* SizingOptimizationStrategy: pulumi.String("SIZING_OPTIMIZATION_STRATEGY_SAME_AS_SOURCE"),
* TargetProduct: pulumi.String("COMPUTE_MIGRATION_TARGET_PRODUCT_COMPUTE_ENGINE"),
* CommitmentPlan: pulumi.String("COMMITMENT_PLAN_ONE_YEAR"),
* RegionPreferences: &migrationcenter.PreferenceSetVirtualMachinePreferencesRegionPreferencesArgs{
* PreferredRegions: pulumi.StringArray{
* pulumi.String("us-central1"),
* },
* },
* SoleTenancyPreferences: &migrationcenter.PreferenceSetVirtualMachinePreferencesSoleTenancyPreferencesArgs{
* CommitmentPlan: pulumi.String("ON_DEMAND"),
* CpuOvercommitRatio: pulumi.Float64(1.2),
* HostMaintenancePolicy: pulumi.String("HOST_MAINTENANCE_POLICY_DEFAULT"),
* NodeTypes: migrationcenter.PreferenceSetVirtualMachinePreferencesSoleTenancyPreferencesNodeTypeArray{
* &migrationcenter.PreferenceSetVirtualMachinePreferencesSoleTenancyPreferencesNodeTypeArgs{
* NodeName: pulumi.String("tf-test"),
* },
* },
* },
* ComputeEnginePreferences: &migrationcenter.PreferenceSetVirtualMachinePreferencesComputeEnginePreferencesArgs{
* LicenseType: pulumi.String("LICENSE_TYPE_BRING_YOUR_OWN_LICENSE"),
* MachinePreferences: &migrationcenter.PreferenceSetVirtualMachinePreferencesComputeEnginePreferencesMachinePreferencesArgs{
* AllowedMachineSeries: migrationcenter.PreferenceSetVirtualMachinePreferencesComputeEnginePreferencesMachinePreferencesAllowedMachineSeriesArray{
* &migrationcenter.PreferenceSetVirtualMachinePreferencesComputeEnginePreferencesMachinePreferencesAllowedMachineSeriesArgs{
* Code: pulumi.String("C3"),
* },
* },
* },
* },
* },
* })
* 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.gcp.migrationcenter.PreferenceSet;
* import com.pulumi.gcp.migrationcenter.PreferenceSetArgs;
* import com.pulumi.gcp.migrationcenter.inputs.PreferenceSetVirtualMachinePreferencesArgs;
* import com.pulumi.gcp.migrationcenter.inputs.PreferenceSetVirtualMachinePreferencesVmwareEnginePreferencesArgs;
* import com.pulumi.gcp.migrationcenter.inputs.PreferenceSetVirtualMachinePreferencesRegionPreferencesArgs;
* import com.pulumi.gcp.migrationcenter.inputs.PreferenceSetVirtualMachinePreferencesSoleTenancyPreferencesArgs;
* import com.pulumi.gcp.migrationcenter.inputs.PreferenceSetVirtualMachinePreferencesComputeEnginePreferencesArgs;
* import com.pulumi.gcp.migrationcenter.inputs.PreferenceSetVirtualMachinePreferencesComputeEnginePreferencesMachinePreferencesArgs;
* 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 default_ = new PreferenceSet("default", PreferenceSetArgs.builder()
* .location("us-central1")
* .preferenceSetId("preference-set-test")
* .description("Terraform integration test description")
* .displayName("Terraform integration test display")
* .virtualMachinePreferences(PreferenceSetVirtualMachinePreferencesArgs.builder()
* .vmwareEnginePreferences(PreferenceSetVirtualMachinePreferencesVmwareEnginePreferencesArgs.builder()
* .cpuOvercommitRatio(1.5)
* .storageDeduplicationCompressionRatio(1.3)
* .commitmentPlan("ON_DEMAND")
* .build())
* .sizingOptimizationStrategy("SIZING_OPTIMIZATION_STRATEGY_SAME_AS_SOURCE")
* .targetProduct("COMPUTE_MIGRATION_TARGET_PRODUCT_COMPUTE_ENGINE")
* .commitmentPlan("COMMITMENT_PLAN_ONE_YEAR")
* .regionPreferences(PreferenceSetVirtualMachinePreferencesRegionPreferencesArgs.builder()
* .preferredRegions("us-central1")
* .build())
* .soleTenancyPreferences(PreferenceSetVirtualMachinePreferencesSoleTenancyPreferencesArgs.builder()
* .commitmentPlan("ON_DEMAND")
* .cpuOvercommitRatio(1.2)
* .hostMaintenancePolicy("HOST_MAINTENANCE_POLICY_DEFAULT")
* .nodeTypes(PreferenceSetVirtualMachinePreferencesSoleTenancyPreferencesNodeTypeArgs.builder()
* .nodeName("tf-test")
* .build())
* .build())
* .computeEnginePreferences(PreferenceSetVirtualMachinePreferencesComputeEnginePreferencesArgs.builder()
* .licenseType("LICENSE_TYPE_BRING_YOUR_OWN_LICENSE")
* .machinePreferences(PreferenceSetVirtualMachinePreferencesComputeEnginePreferencesMachinePreferencesArgs.builder()
* .allowedMachineSeries(PreferenceSetVirtualMachinePreferencesComputeEnginePreferencesMachinePreferencesAllowedMachineSeriesArgs.builder()
* .code("C3")
* .build())
* .build())
* .build())
* .build())
* .build());
* }
* }
* ```
* ```yaml
* resources:
* default:
* type: gcp:migrationcenter:PreferenceSet
* properties:
* location: us-central1
* preferenceSetId: preference-set-test
* description: Terraform integration test description
* displayName: Terraform integration test display
* virtualMachinePreferences:
* vmwareEnginePreferences:
* cpuOvercommitRatio: 1.5
* storageDeduplicationCompressionRatio: 1.3
* commitmentPlan: ON_DEMAND
* sizingOptimizationStrategy: SIZING_OPTIMIZATION_STRATEGY_SAME_AS_SOURCE
* targetProduct: COMPUTE_MIGRATION_TARGET_PRODUCT_COMPUTE_ENGINE
* commitmentPlan: COMMITMENT_PLAN_ONE_YEAR
* regionPreferences:
* preferredRegions:
* - us-central1
* soleTenancyPreferences:
* commitmentPlan: ON_DEMAND
* cpuOvercommitRatio: 1.2
* hostMaintenancePolicy: HOST_MAINTENANCE_POLICY_DEFAULT
* nodeTypes:
* - nodeName: tf-test
* computeEnginePreferences:
* licenseType: LICENSE_TYPE_BRING_YOUR_OWN_LICENSE
* machinePreferences:
* allowedMachineSeries:
* - code: C3
* ```
*
* ## Import
* PreferenceSet can be imported using any of these accepted formats:
* * `projects/{{project}}/locations/{{location}}/preferenceSets/{{preference_set_id}}`
* * `{{project}}/{{location}}/{{preference_set_id}}`
* * `{{location}}/{{preference_set_id}}`
* When using the `pulumi import` command, PreferenceSet can be imported using one of the formats above. For example:
* ```sh
* $ pulumi import gcp:migrationcenter/preferenceSet:PreferenceSet default projects/{{project}}/locations/{{location}}/preferenceSets/{{preference_set_id}}
* ```
* ```sh
* $ pulumi import gcp:migrationcenter/preferenceSet:PreferenceSet default {{project}}/{{location}}/{{preference_set_id}}
* ```
* ```sh
* $ pulumi import gcp:migrationcenter/preferenceSet:PreferenceSet default {{location}}/{{preference_set_id}}
* ```
*/
public class PreferenceSet internal constructor(
override val javaResource: com.pulumi.gcp.migrationcenter.PreferenceSet,
) : KotlinCustomResource(javaResource, PreferenceSetMapper) {
/**
* Output only. The timestamp when the preference set was created.
*/
public val createTime: Output
get() = javaResource.createTime().applyValue({ args0 -> args0 })
/**
* A description of the preference set.
*/
public val description: Output?
get() = javaResource.description().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* User-friendly display name. Maximum length is 63 characters.
*/
public val displayName: Output?
get() = javaResource.displayName().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* Part of `parent`. See documentation of `projectsId`.
*/
public val location: Output
get() = javaResource.location().applyValue({ args0 -> args0 })
/**
* Output only. Name of the preference set.
*/
public val name: Output
get() = javaResource.name().applyValue({ args0 -> args0 })
/**
* Required. User specified ID for the preference set. It will become the last component of the preference set name. The ID must be unique within the project, must conform with RFC-1034, is restricted to lower-cased letters, and has a maximum length of 63 characters. The ID must match the regular expression `a-z?`.
* - - -
*/
public val preferenceSetId: Output
get() = javaResource.preferenceSetId().applyValue({ args0 -> args0 })
/**
* The ID of the project in which the resource belongs.
* If it is not provided, the provider project is used.
*/
public val project: Output
get() = javaResource.project().applyValue({ args0 -> args0 })
/**
* Output only. The timestamp when the preference set was last updated.
*/
public val updateTime: Output
get() = javaResource.updateTime().applyValue({ args0 -> args0 })
/**
* VirtualMachinePreferences enables you to create sets of assumptions, for example, a geographical location and pricing track, for your migrated virtual machines. The set of preferences influence recommendations for migrating virtual machine assets.
* Structure is documented below.
*/
public val virtualMachinePreferences: Output?
get() = javaResource.virtualMachinePreferences().applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> toKotlin(args0) })
}).orElse(null)
})
}
public object PreferenceSetMapper : ResourceMapper {
override fun supportsMappingOfType(javaResource: Resource): Boolean =
com.pulumi.gcp.migrationcenter.PreferenceSet::class == javaResource::class
override fun map(javaResource: Resource): PreferenceSet = PreferenceSet(
javaResource as
com.pulumi.gcp.migrationcenter.PreferenceSet,
)
}
/**
* @see [PreferenceSet].
* @param name The _unique_ name of the resulting resource.
* @param block Builder for [PreferenceSet].
*/
public suspend fun preferenceSet(
name: String,
block: suspend PreferenceSetResourceBuilder.() -> Unit,
): PreferenceSet {
val builder = PreferenceSetResourceBuilder()
builder.name(name)
block(builder)
return builder.build()
}
/**
* @see [PreferenceSet].
* @param name The _unique_ name of the resulting resource.
*/
public fun preferenceSet(name: String): PreferenceSet {
val builder = PreferenceSetResourceBuilder()
builder.name(name)
return builder.build()
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy