1. Packages
  2. Google Cloud (GCP) Classic
  3. API Docs
  4. observability
  5. FolderSettings
Viewing docs for Google Cloud v9.16.0
published on Thursday, Mar 19, 2026 by Pulumi
gcp logo
Viewing docs for Google Cloud v9.16.0
published on Thursday, Mar 19, 2026 by Pulumi

    Manages Cloud Observability settings for a folder.

    Warning: This resource is in beta, and should be used with the terraform-provider-google-beta provider. See Provider Versions for more details on beta resources.

    Example Usage

    Observability Folder Settings Basic

    import * as pulumi from "@pulumi/pulumi";
    import * as gcp from "@pulumi/gcp";
    import * as time from "@pulumiverse/time";
    
    const testFolder = new gcp.organizations.Folder("test_folder", {
        displayName: "tf-test-_37426",
        parent: "organizations/123456789",
        deletionProtection: false,
    });
    // Wait for the folder to be created and recognized by the Observability API
    const waitForSettingsPropagation = new time.Sleep("wait_for_settings_propagation", {createDuration: "90s"}, {
        dependsOn: [testFolder],
    });
    const settingsData = gcp.observability.getFolderSettingsOutput({
        folder: testFolder.folderId,
        location: "us",
    });
    // Add a delay to allow the service account to propagate
    const waitForSaPropagation = new time.Sleep("wait_for_sa_propagation", {createDuration: "90s"}, {
        dependsOn: [settingsData],
    });
    const iam = new gcp.kms.CryptoKeyIAMMember("iam", {
        cryptoKeyId: "example-key",
        role: "roles/cloudkms.cryptoKeyEncrypterDecrypter",
        member: settingsData.apply(settingsData => `serviceAccount:${settingsData.serviceAccountId}`),
    }, {
        dependsOn: [waitForSaPropagation],
    });
    const primary = new gcp.observability.FolderSettings("primary", {
        location: "us",
        folder: testFolder.folderId,
        kmsKeyName: "example-key",
    }, {
        dependsOn: [iam],
    });
    
    import pulumi
    import pulumi_gcp as gcp
    import pulumiverse_time as time
    
    test_folder = gcp.organizations.Folder("test_folder",
        display_name="tf-test-_37426",
        parent="organizations/123456789",
        deletion_protection=False)
    # Wait for the folder to be created and recognized by the Observability API
    wait_for_settings_propagation = time.Sleep("wait_for_settings_propagation", create_duration="90s",
    opts = pulumi.ResourceOptions(depends_on=[test_folder]))
    settings_data = gcp.observability.get_folder_settings_output(folder=test_folder.folder_id,
        location="us")
    # Add a delay to allow the service account to propagate
    wait_for_sa_propagation = time.Sleep("wait_for_sa_propagation", create_duration="90s",
    opts = pulumi.ResourceOptions(depends_on=[settings_data]))
    iam = gcp.kms.CryptoKeyIAMMember("iam",
        crypto_key_id="example-key",
        role="roles/cloudkms.cryptoKeyEncrypterDecrypter",
        member=settings_data.apply(lambda settings_data: f"serviceAccount:{settings_data.service_account_id}"),
        opts = pulumi.ResourceOptions(depends_on=[wait_for_sa_propagation]))
    primary = gcp.observability.FolderSettings("primary",
        location="us",
        folder=test_folder.folder_id,
        kms_key_name="example-key",
        opts = pulumi.ResourceOptions(depends_on=[iam]))
    
    package main
    
    import (
    	"fmt"
    
    	"github.com/pulumi/pulumi-gcp/sdk/v9/go/gcp/kms"
    	"github.com/pulumi/pulumi-gcp/sdk/v9/go/gcp/observability"
    	"github.com/pulumi/pulumi-gcp/sdk/v9/go/gcp/organizations"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumiverse/pulumi-time/sdk/go/time"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		testFolder, err := organizations.NewFolder(ctx, "test_folder", &organizations.FolderArgs{
    			DisplayName:        pulumi.String("tf-test-_37426"),
    			Parent:             pulumi.String("organizations/123456789"),
    			DeletionProtection: pulumi.Bool(false),
    		})
    		if err != nil {
    			return err
    		}
    		// Wait for the folder to be created and recognized by the Observability API
    		_, err = time.NewSleep(ctx, "wait_for_settings_propagation", &time.SleepArgs{
    			CreateDuration: pulumi.String("90s"),
    		}, pulumi.DependsOn([]pulumi.Resource{
    			testFolder,
    		}))
    		if err != nil {
    			return err
    		}
    		settingsData := observability.LookupFolderSettingsOutput(ctx, observability.GetFolderSettingsOutputArgs{
    			Folder:   testFolder.FolderId,
    			Location: pulumi.String("us"),
    		}, nil)
    		// Add a delay to allow the service account to propagate
    		waitForSaPropagation, err := time.NewSleep(ctx, "wait_for_sa_propagation", &time.SleepArgs{
    			CreateDuration: pulumi.String("90s"),
    		}, pulumi.DependsOn([]pulumi.Resource{
    			settingsData,
    		}))
    		if err != nil {
    			return err
    		}
    		iam, err := kms.NewCryptoKeyIAMMember(ctx, "iam", &kms.CryptoKeyIAMMemberArgs{
    			CryptoKeyId: pulumi.String("example-key"),
    			Role:        pulumi.String("roles/cloudkms.cryptoKeyEncrypterDecrypter"),
    			Member: settingsData.ApplyT(func(settingsData observability.GetFolderSettingsResult) (string, error) {
    				return fmt.Sprintf("serviceAccount:%v", settingsData.ServiceAccountId), nil
    			}).(pulumi.StringOutput),
    		}, pulumi.DependsOn([]pulumi.Resource{
    			waitForSaPropagation,
    		}))
    		if err != nil {
    			return err
    		}
    		_, err = observability.NewFolderSettings(ctx, "primary", &observability.FolderSettingsArgs{
    			Location:   pulumi.String("us"),
    			Folder:     testFolder.FolderId,
    			KmsKeyName: pulumi.String("example-key"),
    		}, pulumi.DependsOn([]pulumi.Resource{
    			iam,
    		}))
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Gcp = Pulumi.Gcp;
    using Time = Pulumiverse.Time;
    
    return await Deployment.RunAsync(() => 
    {
        var testFolder = new Gcp.Organizations.Folder("test_folder", new()
        {
            DisplayName = "tf-test-_37426",
            Parent = "organizations/123456789",
            DeletionProtection = false,
        });
    
        // Wait for the folder to be created and recognized by the Observability API
        var waitForSettingsPropagation = new Time.Sleep("wait_for_settings_propagation", new()
        {
            CreateDuration = "90s",
        }, new CustomResourceOptions
        {
            DependsOn =
            {
                testFolder,
            },
        });
    
        var settingsData = Gcp.Observability.GetFolderSettings.Invoke(new()
        {
            Folder = testFolder.FolderId,
            Location = "us",
        });
    
        // Add a delay to allow the service account to propagate
        var waitForSaPropagation = new Time.Sleep("wait_for_sa_propagation", new()
        {
            CreateDuration = "90s",
        }, new CustomResourceOptions
        {
            DependsOn =
            {
                settingsData,
            },
        });
    
        var iam = new Gcp.Kms.CryptoKeyIAMMember("iam", new()
        {
            CryptoKeyId = "example-key",
            Role = "roles/cloudkms.cryptoKeyEncrypterDecrypter",
            Member = $"serviceAccount:{settingsData.Apply(getFolderSettingsResult => getFolderSettingsResult.ServiceAccountId)}",
        }, new CustomResourceOptions
        {
            DependsOn =
            {
                waitForSaPropagation,
            },
        });
    
        var primary = new Gcp.Observability.FolderSettings("primary", new()
        {
            Location = "us",
            Folder = testFolder.FolderId,
            KmsKeyName = "example-key",
        }, new CustomResourceOptions
        {
            DependsOn =
            {
                iam,
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.gcp.organizations.Folder;
    import com.pulumi.gcp.organizations.FolderArgs;
    import com.pulumiverse.time.Sleep;
    import com.pulumiverse.time.SleepArgs;
    import com.pulumi.gcp.observability.ObservabilityFunctions;
    import com.pulumi.gcp.observability.inputs.GetFolderSettingsArgs;
    import com.pulumi.gcp.kms.CryptoKeyIAMMember;
    import com.pulumi.gcp.kms.CryptoKeyIAMMemberArgs;
    import com.pulumi.gcp.observability.FolderSettings;
    import com.pulumi.gcp.observability.FolderSettingsArgs;
    import com.pulumi.resources.CustomResourceOptions;
    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 testFolder = new Folder("testFolder", FolderArgs.builder()
                .displayName("tf-test-_37426")
                .parent("organizations/123456789")
                .deletionProtection(false)
                .build());
    
            // Wait for the folder to be created and recognized by the Observability API
            var waitForSettingsPropagation = new Sleep("waitForSettingsPropagation", SleepArgs.builder()
                .createDuration("90s")
                .build(), CustomResourceOptions.builder()
                    .dependsOn(testFolder)
                    .build());
    
            final var settingsData = ObservabilityFunctions.getFolderSettings(GetFolderSettingsArgs.builder()
                .folder(testFolder.folderId())
                .location("us")
                .build());
    
            // Add a delay to allow the service account to propagate
            var waitForSaPropagation = new Sleep("waitForSaPropagation", SleepArgs.builder()
                .createDuration("90s")
                .build(), CustomResourceOptions.builder()
                    .dependsOn(settingsData)
                    .build());
    
            var iam = new CryptoKeyIAMMember("iam", CryptoKeyIAMMemberArgs.builder()
                .cryptoKeyId("example-key")
                .role("roles/cloudkms.cryptoKeyEncrypterDecrypter")
                .member(settingsData.applyValue(_settingsData -> String.format("serviceAccount:%s", _settingsData.serviceAccountId())))
                .build(), CustomResourceOptions.builder()
                    .dependsOn(waitForSaPropagation)
                    .build());
    
            var primary = new FolderSettings("primary", FolderSettingsArgs.builder()
                .location("us")
                .folder(testFolder.folderId())
                .kmsKeyName("example-key")
                .build(), CustomResourceOptions.builder()
                    .dependsOn(iam)
                    .build());
    
        }
    }
    
    resources:
      testFolder:
        type: gcp:organizations:Folder
        name: test_folder
        properties:
          displayName: tf-test-_37426
          parent: organizations/123456789
          deletionProtection: false
      # Wait for the folder to be created and recognized by the Observability API
      waitForSettingsPropagation:
        type: time:Sleep
        name: wait_for_settings_propagation
        properties:
          createDuration: 90s
        options:
          dependsOn:
            - ${testFolder}
      # Add a delay to allow the service account to propagate
      waitForSaPropagation:
        type: time:Sleep
        name: wait_for_sa_propagation
        properties:
          createDuration: 90s
        options:
          dependsOn:
            - ${settingsData}
      iam:
        type: gcp:kms:CryptoKeyIAMMember
        properties:
          cryptoKeyId: example-key
          role: roles/cloudkms.cryptoKeyEncrypterDecrypter
          member: serviceAccount:${settingsData.serviceAccountId}
        options:
          dependsOn:
            - ${waitForSaPropagation}
      primary:
        type: gcp:observability:FolderSettings
        properties:
          location: us
          folder: ${testFolder.folderId}
          kmsKeyName: example-key
        options:
          dependsOn:
            - ${iam}
    variables:
      settingsData:
        fn::invoke:
          function: gcp:observability:getFolderSettings
          arguments:
            folder: ${testFolder.folderId}
            location: us
    

    Observability Folder Settings Basic Global

    import * as pulumi from "@pulumi/pulumi";
    import * as gcp from "@pulumi/gcp";
    import * as time from "@pulumiverse/time";
    
    const testFolder = new gcp.organizations.Folder("test_folder", {
        displayName: "tf-test-_67903",
        parent: "organizations/123456789",
        deletionProtection: false,
    });
    // Wait for the folder to be created and recognized by the Observability API
    const waitForFolder = new time.Sleep("wait_for_folder", {createDuration: "90s"}, {
        dependsOn: [testFolder],
    });
    const settingsData = gcp.observability.getFolderSettingsOutput({
        folder: testFolder.folderId,
        location: "global",
    });
    const primaryGlobal = new gcp.observability.FolderSettings("primary_global", {
        location: "global",
        folder: testFolder.folderId,
        defaultStorageLocation: "us",
    }, {
        dependsOn: [settingsData],
    });
    
    import pulumi
    import pulumi_gcp as gcp
    import pulumiverse_time as time
    
    test_folder = gcp.organizations.Folder("test_folder",
        display_name="tf-test-_67903",
        parent="organizations/123456789",
        deletion_protection=False)
    # Wait for the folder to be created and recognized by the Observability API
    wait_for_folder = time.Sleep("wait_for_folder", create_duration="90s",
    opts = pulumi.ResourceOptions(depends_on=[test_folder]))
    settings_data = gcp.observability.get_folder_settings_output(folder=test_folder.folder_id,
        location="global")
    primary_global = gcp.observability.FolderSettings("primary_global",
        location="global",
        folder=test_folder.folder_id,
        default_storage_location="us",
        opts = pulumi.ResourceOptions(depends_on=[settings_data]))
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-gcp/sdk/v9/go/gcp/observability"
    	"github.com/pulumi/pulumi-gcp/sdk/v9/go/gcp/organizations"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumiverse/pulumi-time/sdk/go/time"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		testFolder, err := organizations.NewFolder(ctx, "test_folder", &organizations.FolderArgs{
    			DisplayName:        pulumi.String("tf-test-_67903"),
    			Parent:             pulumi.String("organizations/123456789"),
    			DeletionProtection: pulumi.Bool(false),
    		})
    		if err != nil {
    			return err
    		}
    		// Wait for the folder to be created and recognized by the Observability API
    		_, err = time.NewSleep(ctx, "wait_for_folder", &time.SleepArgs{
    			CreateDuration: pulumi.String("90s"),
    		}, pulumi.DependsOn([]pulumi.Resource{
    			testFolder,
    		}))
    		if err != nil {
    			return err
    		}
    		settingsData := observability.LookupFolderSettingsOutput(ctx, observability.GetFolderSettingsOutputArgs{
    			Folder:   testFolder.FolderId,
    			Location: pulumi.String("global"),
    		}, nil)
    		_, err = observability.NewFolderSettings(ctx, "primary_global", &observability.FolderSettingsArgs{
    			Location:               pulumi.String("global"),
    			Folder:                 testFolder.FolderId,
    			DefaultStorageLocation: pulumi.String("us"),
    		}, pulumi.DependsOn([]pulumi.Resource{
    			settingsData,
    		}))
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Gcp = Pulumi.Gcp;
    using Time = Pulumiverse.Time;
    
    return await Deployment.RunAsync(() => 
    {
        var testFolder = new Gcp.Organizations.Folder("test_folder", new()
        {
            DisplayName = "tf-test-_67903",
            Parent = "organizations/123456789",
            DeletionProtection = false,
        });
    
        // Wait for the folder to be created and recognized by the Observability API
        var waitForFolder = new Time.Sleep("wait_for_folder", new()
        {
            CreateDuration = "90s",
        }, new CustomResourceOptions
        {
            DependsOn =
            {
                testFolder,
            },
        });
    
        var settingsData = Gcp.Observability.GetFolderSettings.Invoke(new()
        {
            Folder = testFolder.FolderId,
            Location = "global",
        });
    
        var primaryGlobal = new Gcp.Observability.FolderSettings("primary_global", new()
        {
            Location = "global",
            Folder = testFolder.FolderId,
            DefaultStorageLocation = "us",
        }, new CustomResourceOptions
        {
            DependsOn =
            {
                settingsData,
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.gcp.organizations.Folder;
    import com.pulumi.gcp.organizations.FolderArgs;
    import com.pulumiverse.time.Sleep;
    import com.pulumiverse.time.SleepArgs;
    import com.pulumi.gcp.observability.ObservabilityFunctions;
    import com.pulumi.gcp.observability.inputs.GetFolderSettingsArgs;
    import com.pulumi.gcp.observability.FolderSettings;
    import com.pulumi.gcp.observability.FolderSettingsArgs;
    import com.pulumi.resources.CustomResourceOptions;
    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 testFolder = new Folder("testFolder", FolderArgs.builder()
                .displayName("tf-test-_67903")
                .parent("organizations/123456789")
                .deletionProtection(false)
                .build());
    
            // Wait for the folder to be created and recognized by the Observability API
            var waitForFolder = new Sleep("waitForFolder", SleepArgs.builder()
                .createDuration("90s")
                .build(), CustomResourceOptions.builder()
                    .dependsOn(testFolder)
                    .build());
    
            final var settingsData = ObservabilityFunctions.getFolderSettings(GetFolderSettingsArgs.builder()
                .folder(testFolder.folderId())
                .location("global")
                .build());
    
            var primaryGlobal = new FolderSettings("primaryGlobal", FolderSettingsArgs.builder()
                .location("global")
                .folder(testFolder.folderId())
                .defaultStorageLocation("us")
                .build(), CustomResourceOptions.builder()
                    .dependsOn(settingsData)
                    .build());
    
        }
    }
    
    resources:
      testFolder:
        type: gcp:organizations:Folder
        name: test_folder
        properties:
          displayName: tf-test-_67903
          parent: organizations/123456789
          deletionProtection: false
      # Wait for the folder to be created and recognized by the Observability API
      waitForFolder:
        type: time:Sleep
        name: wait_for_folder
        properties:
          createDuration: 90s
        options:
          dependsOn:
            - ${testFolder}
      primaryGlobal:
        type: gcp:observability:FolderSettings
        name: primary_global
        properties:
          location: global
          folder: ${testFolder.folderId}
          defaultStorageLocation: us
        options:
          dependsOn:
            - ${settingsData}
    variables:
      settingsData:
        fn::invoke:
          function: gcp:observability:getFolderSettings
          arguments:
            folder: ${testFolder.folderId}
            location: global
    

    Create FolderSettings Resource

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

    Constructor syntax

    new FolderSettings(name: string, args: FolderSettingsArgs, opts?: CustomResourceOptions);
    @overload
    def FolderSettings(resource_name: str,
                       args: FolderSettingsArgs,
                       opts: Optional[ResourceOptions] = None)
    
    @overload
    def FolderSettings(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       folder: Optional[str] = None,
                       location: Optional[str] = None,
                       default_storage_location: Optional[str] = None,
                       kms_key_name: Optional[str] = None)
    func NewFolderSettings(ctx *Context, name string, args FolderSettingsArgs, opts ...ResourceOption) (*FolderSettings, error)
    public FolderSettings(string name, FolderSettingsArgs args, CustomResourceOptions? opts = null)
    public FolderSettings(String name, FolderSettingsArgs args)
    public FolderSettings(String name, FolderSettingsArgs args, CustomResourceOptions options)
    
    type: gcp:observability:FolderSettings
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args FolderSettingsArgs
    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 FolderSettingsArgs
    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 FolderSettingsArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args FolderSettingsArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args FolderSettingsArgs
    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 gcpFolderSettingsResource = new Gcp.Observability.FolderSettings("gcpFolderSettingsResource", new()
    {
        Folder = "string",
        Location = "string",
        DefaultStorageLocation = "string",
        KmsKeyName = "string",
    });
    
    example, err := observability.NewFolderSettings(ctx, "gcpFolderSettingsResource", &observability.FolderSettingsArgs{
    	Folder:                 pulumi.String("string"),
    	Location:               pulumi.String("string"),
    	DefaultStorageLocation: pulumi.String("string"),
    	KmsKeyName:             pulumi.String("string"),
    })
    
    var gcpFolderSettingsResource = new com.pulumi.gcp.observability.FolderSettings("gcpFolderSettingsResource", com.pulumi.gcp.observability.FolderSettingsArgs.builder()
        .folder("string")
        .location("string")
        .defaultStorageLocation("string")
        .kmsKeyName("string")
        .build());
    
    gcp_folder_settings_resource = gcp.observability.FolderSettings("gcpFolderSettingsResource",
        folder="string",
        location="string",
        default_storage_location="string",
        kms_key_name="string")
    
    const gcpFolderSettingsResource = new gcp.observability.FolderSettings("gcpFolderSettingsResource", {
        folder: "string",
        location: "string",
        defaultStorageLocation: "string",
        kmsKeyName: "string",
    });
    
    type: gcp:observability:FolderSettings
    properties:
        defaultStorageLocation: string
        folder: string
        kmsKeyName: string
        location: string
    

    FolderSettings 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 FolderSettings resource accepts the following input properties:

    Folder string
    The folder ID.
    Location string
    The location of the settings.
    DefaultStorageLocation string
    The default storage location for new resources, e.g. buckets. Only valid for global location.
    KmsKeyName string
    The default Cloud KMS key to use for new resources. Only valid for regional locations.
    Folder string
    The folder ID.
    Location string
    The location of the settings.
    DefaultStorageLocation string
    The default storage location for new resources, e.g. buckets. Only valid for global location.
    KmsKeyName string
    The default Cloud KMS key to use for new resources. Only valid for regional locations.
    folder String
    The folder ID.
    location String
    The location of the settings.
    defaultStorageLocation String
    The default storage location for new resources, e.g. buckets. Only valid for global location.
    kmsKeyName String
    The default Cloud KMS key to use for new resources. Only valid for regional locations.
    folder string
    The folder ID.
    location string
    The location of the settings.
    defaultStorageLocation string
    The default storage location for new resources, e.g. buckets. Only valid for global location.
    kmsKeyName string
    The default Cloud KMS key to use for new resources. Only valid for regional locations.
    folder str
    The folder ID.
    location str
    The location of the settings.
    default_storage_location str
    The default storage location for new resources, e.g. buckets. Only valid for global location.
    kms_key_name str
    The default Cloud KMS key to use for new resources. Only valid for regional locations.
    folder String
    The folder ID.
    location String
    The location of the settings.
    defaultStorageLocation String
    The default storage location for new resources, e.g. buckets. Only valid for global location.
    kmsKeyName String
    The default Cloud KMS key to use for new resources. Only valid for regional locations.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The resource name of the settings.
    ServiceAccountId string
    The service account used by Cloud Observability for this folder.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The resource name of the settings.
    ServiceAccountId string
    The service account used by Cloud Observability for this folder.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The resource name of the settings.
    serviceAccountId String
    The service account used by Cloud Observability for this folder.
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    The resource name of the settings.
    serviceAccountId string
    The service account used by Cloud Observability for this folder.
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    The resource name of the settings.
    service_account_id str
    The service account used by Cloud Observability for this folder.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The resource name of the settings.
    serviceAccountId String
    The service account used by Cloud Observability for this folder.

    Look up Existing FolderSettings Resource

    Get an existing FolderSettings 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?: FolderSettingsState, opts?: CustomResourceOptions): FolderSettings
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            default_storage_location: Optional[str] = None,
            folder: Optional[str] = None,
            kms_key_name: Optional[str] = None,
            location: Optional[str] = None,
            name: Optional[str] = None,
            service_account_id: Optional[str] = None) -> FolderSettings
    func GetFolderSettings(ctx *Context, name string, id IDInput, state *FolderSettingsState, opts ...ResourceOption) (*FolderSettings, error)
    public static FolderSettings Get(string name, Input<string> id, FolderSettingsState? state, CustomResourceOptions? opts = null)
    public static FolderSettings get(String name, Output<String> id, FolderSettingsState state, CustomResourceOptions options)
    resources:  _:    type: gcp:observability:FolderSettings    get:      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:
    DefaultStorageLocation string
    The default storage location for new resources, e.g. buckets. Only valid for global location.
    Folder string
    The folder ID.
    KmsKeyName string
    The default Cloud KMS key to use for new resources. Only valid for regional locations.
    Location string
    The location of the settings.
    Name string
    The resource name of the settings.
    ServiceAccountId string
    The service account used by Cloud Observability for this folder.
    DefaultStorageLocation string
    The default storage location for new resources, e.g. buckets. Only valid for global location.
    Folder string
    The folder ID.
    KmsKeyName string
    The default Cloud KMS key to use for new resources. Only valid for regional locations.
    Location string
    The location of the settings.
    Name string
    The resource name of the settings.
    ServiceAccountId string
    The service account used by Cloud Observability for this folder.
    defaultStorageLocation String
    The default storage location for new resources, e.g. buckets. Only valid for global location.
    folder String
    The folder ID.
    kmsKeyName String
    The default Cloud KMS key to use for new resources. Only valid for regional locations.
    location String
    The location of the settings.
    name String
    The resource name of the settings.
    serviceAccountId String
    The service account used by Cloud Observability for this folder.
    defaultStorageLocation string
    The default storage location for new resources, e.g. buckets. Only valid for global location.
    folder string
    The folder ID.
    kmsKeyName string
    The default Cloud KMS key to use for new resources. Only valid for regional locations.
    location string
    The location of the settings.
    name string
    The resource name of the settings.
    serviceAccountId string
    The service account used by Cloud Observability for this folder.
    default_storage_location str
    The default storage location for new resources, e.g. buckets. Only valid for global location.
    folder str
    The folder ID.
    kms_key_name str
    The default Cloud KMS key to use for new resources. Only valid for regional locations.
    location str
    The location of the settings.
    name str
    The resource name of the settings.
    service_account_id str
    The service account used by Cloud Observability for this folder.
    defaultStorageLocation String
    The default storage location for new resources, e.g. buckets. Only valid for global location.
    folder String
    The folder ID.
    kmsKeyName String
    The default Cloud KMS key to use for new resources. Only valid for regional locations.
    location String
    The location of the settings.
    name String
    The resource name of the settings.
    serviceAccountId String
    The service account used by Cloud Observability for this folder.

    Import

    FolderSettings can be imported using any of these accepted formats:

    • folders/{{folder}}/locations/{{location}}/settings
    • {{folder}}/{{location}}

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

    $ pulumi import gcp:observability/folderSettings:FolderSettings default folders/{{folder}}/locations/{{location}}/settings
    $ pulumi import gcp:observability/folderSettings:FolderSettings default {{folder}}/{{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.16.0
    published on Thursday, Mar 19, 2026 by Pulumi
      Try Pulumi Cloud free. Your team will thank you.