1. Packages
  2. Packages
  3. Google Cloud (GCP) Classic
  4. API Docs
  5. migrationcenter
  6. Settings
Viewing docs for Google Cloud v9.26.0
published on Tuesday, Jun 9, 2026 by Pulumi
gcp logo
Viewing docs for Google Cloud v9.26.0
published on Tuesday, Jun 9, 2026 by Pulumi

    Settings represents the global or regional settings configuration for a Migration Center project.

    Example Usage

    Migration Center Settings Basic

    import * as pulumi from "@pulumi/pulumi";
    import * as gcp from "@pulumi/gcp";
    
    const defaultPreferenceSet = new gcp.migrationcenter.PreferenceSet("default", {
        location: "us-central1",
        preferenceSetId: "pref-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",
        },
    });
    const _default = new gcp.migrationcenter.Settings("default", {
        location: "us-central1",
        disableCloudLogging: true,
        preferenceSet: defaultPreferenceSet.id,
    });
    
    import pulumi
    import pulumi_gcp as gcp
    
    default_preference_set = gcp.migrationcenter.PreferenceSet("default",
        location="us-central1",
        preference_set_id="pref-set-test",
        description="Terraform integration test description",
        display_name="Terraform integration test display",
        virtual_machine_preferences={
            "vmware_engine_preferences": {
                "cpu_overcommit_ratio": 1.5,
            },
            "sizing_optimization_strategy": "SIZING_OPTIMIZATION_STRATEGY_SAME_AS_SOURCE",
            "target_product": "COMPUTE_MIGRATION_TARGET_PRODUCT_COMPUTE_ENGINE",
        })
    default = gcp.migrationcenter.Settings("default",
        location="us-central1",
        disable_cloud_logging=True,
        preference_set=default_preference_set.id)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-gcp/sdk/v9/go/gcp/migrationcenter"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		defaultPreferenceSet, err := migrationcenter.NewPreferenceSet(ctx, "default", &migrationcenter.PreferenceSetArgs{
    			Location:        pulumi.String("us-central1"),
    			PreferenceSetId: pulumi.String("pref-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
    		}
    		_, err = migrationcenter.NewSettings(ctx, "default", &migrationcenter.SettingsArgs{
    			Location:            pulumi.String("us-central1"),
    			DisableCloudLogging: pulumi.Bool(true),
    			PreferenceSet:       defaultPreferenceSet.ID(),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Gcp = Pulumi.Gcp;
    
    return await Deployment.RunAsync(() => 
    {
        var defaultPreferenceSet = new Gcp.MigrationCenter.PreferenceSet("default", new()
        {
            Location = "us-central1",
            PreferenceSetId = "pref-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",
            },
        });
    
        var @default = new Gcp.MigrationCenter.Settings("default", new()
        {
            Location = "us-central1",
            DisableCloudLogging = true,
            PreferenceSet = defaultPreferenceSet.Id,
        });
    
    });
    
    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.Settings;
    import com.pulumi.gcp.migrationcenter.SettingsArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    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 defaultPreferenceSet = new PreferenceSet("defaultPreferenceSet", PreferenceSetArgs.builder()
                .location("us-central1")
                .preferenceSetId("pref-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());
    
            var default_ = new Settings("default", SettingsArgs.builder()
                .location("us-central1")
                .disableCloudLogging(true)
                .preferenceSet(defaultPreferenceSet.id())
                .build());
    
        }
    }
    
    resources:
      default:
        type: gcp:migrationcenter:Settings
        properties:
          location: us-central1
          disableCloudLogging: true
          preferenceSet: ${defaultPreferenceSet.id}
      defaultPreferenceSet:
        type: gcp:migrationcenter:PreferenceSet
        name: default
        properties:
          location: us-central1
          preferenceSetId: pref-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
    
    pulumi {
      required_providers {
        gcp = {
          source = "pulumi/gcp"
        }
      }
    }
    
    resource "gcp_migrationcenter_settings" "default" {
      location              = "us-central1"
      disable_cloud_logging = true
      preference_set        = gcp_migrationcenter_preferenceset.default.id
    }
    resource "gcp_migrationcenter_preferenceset" "default" {
      location          = "us-central1"
      preference_set_id = "pref-set-test"
      description       = "Terraform integration test description"
      display_name      = "Terraform integration test display"
      virtual_machine_preferences = {
        vmware_engine_preferences = {
          cpu_overcommit_ratio = 1.5
        }
        sizing_optimization_strategy = "SIZING_OPTIMIZATION_STRATEGY_SAME_AS_SOURCE"
        target_product               = "COMPUTE_MIGRATION_TARGET_PRODUCT_COMPUTE_ENGINE"
      }
    }
    

    Create Settings Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new Settings(name: string, args: SettingsArgs, opts?: CustomResourceOptions);
    @overload
    def Settings(resource_name: str,
                 args: SettingsArgs,
                 opts: Optional[ResourceOptions] = None)
    
    @overload
    def Settings(resource_name: str,
                 opts: Optional[ResourceOptions] = None,
                 location: Optional[str] = None,
                 deletion_policy: Optional[str] = None,
                 disable_cloud_logging: Optional[bool] = None,
                 preference_set: Optional[str] = None,
                 project: Optional[str] = None)
    func NewSettings(ctx *Context, name string, args SettingsArgs, opts ...ResourceOption) (*Settings, error)
    public Settings(string name, SettingsArgs args, CustomResourceOptions? opts = null)
    public Settings(String name, SettingsArgs args)
    public Settings(String name, SettingsArgs args, CustomResourceOptions options)
    
    type: gcp:migrationcenter:Settings
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "gcp_migrationcenter_settings" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args SettingsArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args SettingsArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args SettingsArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args SettingsArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args SettingsArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var gcpSettingsResource = new Gcp.MigrationCenter.Settings("gcpSettingsResource", new()
    {
        Location = "string",
        DeletionPolicy = "string",
        DisableCloudLogging = false,
        PreferenceSet = "string",
        Project = "string",
    });
    
    example, err := migrationcenter.NewSettings(ctx, "gcpSettingsResource", &migrationcenter.SettingsArgs{
    	Location:            pulumi.String("string"),
    	DeletionPolicy:      pulumi.String("string"),
    	DisableCloudLogging: pulumi.Bool(false),
    	PreferenceSet:       pulumi.String("string"),
    	Project:             pulumi.String("string"),
    })
    
    resource "gcp_migrationcenter_settings" "gcpSettingsResource" {
      location              = "string"
      deletion_policy       = "string"
      disable_cloud_logging = false
      preference_set        = "string"
      project               = "string"
    }
    
    var gcpSettingsResource = new com.pulumi.gcp.migrationcenter.Settings("gcpSettingsResource", com.pulumi.gcp.migrationcenter.SettingsArgs.builder()
        .location("string")
        .deletionPolicy("string")
        .disableCloudLogging(false)
        .preferenceSet("string")
        .project("string")
        .build());
    
    gcp_settings_resource = gcp.migrationcenter.Settings("gcpSettingsResource",
        location="string",
        deletion_policy="string",
        disable_cloud_logging=False,
        preference_set="string",
        project="string")
    
    const gcpSettingsResource = new gcp.migrationcenter.Settings("gcpSettingsResource", {
        location: "string",
        deletionPolicy: "string",
        disableCloudLogging: false,
        preferenceSet: "string",
        project: "string",
    });
    
    type: gcp:migrationcenter:Settings
    properties:
        deletionPolicy: string
        disableCloudLogging: false
        location: string
        preferenceSet: string
        project: string
    

    Settings Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The Settings resource accepts the following input properties:

    Location string
    Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122.
    DeletionPolicy string
    Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
    DisableCloudLogging bool
    Disable Cloud Logging for the Migration Center API. Users are billed for the logs.
    PreferenceSet string
    The preference set used by default for a project.
    Project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    Location string
    Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122.
    DeletionPolicy string
    Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
    DisableCloudLogging bool
    Disable Cloud Logging for the Migration Center API. Users are billed for the logs.
    PreferenceSet string
    The preference set used by default for a project.
    Project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    location string
    Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122.
    deletion_policy string
    Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
    disable_cloud_logging bool
    Disable Cloud Logging for the Migration Center API. Users are billed for the logs.
    preference_set string
    The preference set used by default for a project.
    project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    location String
    Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122.
    deletionPolicy String
    Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
    disableCloudLogging Boolean
    Disable Cloud Logging for the Migration Center API. Users are billed for the logs.
    preferenceSet String
    The preference set used by default for a project.
    project String
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    location string
    Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122.
    deletionPolicy string
    Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
    disableCloudLogging boolean
    Disable Cloud Logging for the Migration Center API. Users are billed for the logs.
    preferenceSet string
    The preference set used by default for a project.
    project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    location str
    Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122.
    deletion_policy str
    Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
    disable_cloud_logging bool
    Disable Cloud Logging for the Migration Center API. Users are billed for the logs.
    preference_set str
    The preference set used by default for a project.
    project str
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    location String
    Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122.
    deletionPolicy String
    Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
    disableCloudLogging Boolean
    Disable Cloud Logging for the Migration Center API. Users are billed for the logs.
    preferenceSet String
    The preference set used by default for a project.
    project String
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Settings resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The name of the resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The name of the resource.
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    The name of the resource.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The name of the resource.
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    The name of the resource.
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    The name of the resource.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The name of the resource.

    Look up Existing Settings Resource

    Get an existing Settings resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: SettingsState, opts?: CustomResourceOptions): Settings
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            deletion_policy: Optional[str] = None,
            disable_cloud_logging: Optional[bool] = None,
            location: Optional[str] = None,
            name: Optional[str] = None,
            preference_set: Optional[str] = None,
            project: Optional[str] = None) -> Settings
    func GetSettings(ctx *Context, name string, id IDInput, state *SettingsState, opts ...ResourceOption) (*Settings, error)
    public static Settings Get(string name, Input<string> id, SettingsState? state, CustomResourceOptions? opts = null)
    public static Settings get(String name, Output<String> id, SettingsState state, CustomResourceOptions options)
    resources:  _:    type: gcp:migrationcenter:Settings    get:      id: ${id}
    import {
      to = gcp_migrationcenter_settings.example
      id = "${id}"
    }
    
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    DeletionPolicy string
    Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
    DisableCloudLogging bool
    Disable Cloud Logging for the Migration Center API. Users are billed for the logs.
    Location string
    Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122.
    Name string
    The name of the resource.
    PreferenceSet string
    The preference set used by default for a project.
    Project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    DeletionPolicy string
    Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
    DisableCloudLogging bool
    Disable Cloud Logging for the Migration Center API. Users are billed for the logs.
    Location string
    Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122.
    Name string
    The name of the resource.
    PreferenceSet string
    The preference set used by default for a project.
    Project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    deletion_policy string
    Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
    disable_cloud_logging bool
    Disable Cloud Logging for the Migration Center API. Users are billed for the logs.
    location string
    Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122.
    name string
    The name of the resource.
    preference_set string
    The preference set used by default for a project.
    project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    deletionPolicy String
    Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
    disableCloudLogging Boolean
    Disable Cloud Logging for the Migration Center API. Users are billed for the logs.
    location String
    Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122.
    name String
    The name of the resource.
    preferenceSet String
    The preference set used by default for a project.
    project String
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    deletionPolicy string
    Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
    disableCloudLogging boolean
    Disable Cloud Logging for the Migration Center API. Users are billed for the logs.
    location string
    Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122.
    name string
    The name of the resource.
    preferenceSet string
    The preference set used by default for a project.
    project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    deletion_policy str
    Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
    disable_cloud_logging bool
    Disable Cloud Logging for the Migration Center API. Users are billed for the logs.
    location str
    Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122.
    name str
    The name of the resource.
    preference_set str
    The preference set used by default for a project.
    project str
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    deletionPolicy String
    Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
    disableCloudLogging Boolean
    Disable Cloud Logging for the Migration Center API. Users are billed for the logs.
    location String
    Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122.
    name String
    The name of the resource.
    preferenceSet String
    The preference set used by default for a project.
    project String
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

    Import

    Settings can be imported using any of these accepted formats:

    • projects/{{project}}/locations/{{location}}/settings
    • {{project}}/{{location}}
    • {{location}}

    When using the pulumi import command, Settings can be imported using one of the formats above. For example:

    $ pulumi import gcp:migrationcenter/settings:Settings default projects/{{project}}/locations/{{location}}/settings
    $ pulumi import gcp:migrationcenter/settings:Settings default {{project}}/{{location}}
    $ pulumi import gcp:migrationcenter/settings:Settings default {{location}}
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Google Cloud (GCP) Classic pulumi/pulumi-gcp
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the google-beta Terraform Provider.
    gcp logo
    Viewing docs for Google Cloud v9.26.0
    published on Tuesday, Jun 9, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial