Google Cloud Classic v8.3.1 published on Wednesday, Sep 25, 2024 by Pulumi
gcp.logging.getProjectSettings
Explore with Pulumi AI
Describes the settings associated with a project.
To get more information about LoggingProjectSettings, see:
Example Usage
Logging Project Settings Basic
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const settings = gcp.logging.getProjectSettings({
project: "my-project-name",
});
import pulumi
import pulumi_gcp as gcp
settings = gcp.logging.get_project_settings(project="my-project-name")
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/logging"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := logging.GetProjectSettings(ctx, &logging.GetProjectSettingsArgs{
Project: "my-project-name",
}, nil)
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 settings = Gcp.Logging.GetProjectSettings.Invoke(new()
{
Project = "my-project-name",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.logging.LoggingFunctions;
import com.pulumi.gcp.logging.inputs.GetProjectSettingsArgs;
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) {
final var settings = LoggingFunctions.getProjectSettings(GetProjectSettingsArgs.builder()
.project("my-project-name")
.build());
}
}
variables:
settings:
fn::invoke:
Function: gcp:logging:getProjectSettings
Arguments:
project: my-project-name
Using getProjectSettings
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getProjectSettings(args: GetProjectSettingsArgs, opts?: InvokeOptions): Promise<GetProjectSettingsResult>
function getProjectSettingsOutput(args: GetProjectSettingsOutputArgs, opts?: InvokeOptions): Output<GetProjectSettingsResult>
def get_project_settings(project: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetProjectSettingsResult
def get_project_settings_output(project: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetProjectSettingsResult]
func GetProjectSettings(ctx *Context, args *GetProjectSettingsArgs, opts ...InvokeOption) (*GetProjectSettingsResult, error)
func GetProjectSettingsOutput(ctx *Context, args *GetProjectSettingsOutputArgs, opts ...InvokeOption) GetProjectSettingsResultOutput
> Note: This function is named GetProjectSettings
in the Go SDK.
public static class GetProjectSettings
{
public static Task<GetProjectSettingsResult> InvokeAsync(GetProjectSettingsArgs args, InvokeOptions? opts = null)
public static Output<GetProjectSettingsResult> Invoke(GetProjectSettingsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetProjectSettingsResult> getProjectSettings(GetProjectSettingsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: gcp:logging/getProjectSettings:getProjectSettings
arguments:
# arguments dictionary
The following arguments are supported:
- Project string
- The ID of the project for which to retrieve settings.
- Project string
- The ID of the project for which to retrieve settings.
- project String
- The ID of the project for which to retrieve settings.
- project string
- The ID of the project for which to retrieve settings.
- project str
- The ID of the project for which to retrieve settings.
- project String
- The ID of the project for which to retrieve settings.
getProjectSettings Result
The following output properties are available:
- Disable
Default boolSink - If set to true, the _Default sink in newly created projects and folders will created in a disabled state. This can be used to automatically disable log storage if there is already an aggregated sink configured in the hierarchy. The _Default sink can be re-enabled manually if needed.
- Id string
- The provider-assigned unique ID for this managed resource.
- Kms
Key stringName - The resource name for the configured Cloud KMS key.
KMS key name format:
'projects/[PROJECT_ID]/locations/[LOCATION]/keyRings/[KEYRING]/cryptoKeys/[KEY]'
To enable CMEK for the bucket, set this field to a valid kmsKeyName for which the associated service account has the required cloudkms.cryptoKeyEncrypterDecrypter roles assigned for the key. The Cloud KMS key used by the bucket can be updated by changing the kmsKeyName to a new valid key name. Encryption operations that are in progress will be completed with the key that was in use when they started. Decryption operations will be completed using the key that was used at the time of encryption unless access to that key has been revoked. See Enabling CMEK for Logging Buckets for more information. - Kms
Service stringAccount Id - The service account associated with a project for which CMEK will apply. Before enabling CMEK for a logging bucket, you must first assign the cloudkms.cryptoKeyEncrypterDecrypter role to the service account associated with the project for which CMEK will apply. See Enabling CMEK for Logging Buckets for more information.
- Logging
Service stringAccount Id - The service account for the given container. Sinks use this service account as their writerIdentity if no custom service account is provided.
- Name string
- The resource name of the settings.
- Project string
- Storage
Location string - The storage location that Cloud Logging will use to create new resources when a location is needed but not explicitly provided.
- Disable
Default boolSink - If set to true, the _Default sink in newly created projects and folders will created in a disabled state. This can be used to automatically disable log storage if there is already an aggregated sink configured in the hierarchy. The _Default sink can be re-enabled manually if needed.
- Id string
- The provider-assigned unique ID for this managed resource.
- Kms
Key stringName - The resource name for the configured Cloud KMS key.
KMS key name format:
'projects/[PROJECT_ID]/locations/[LOCATION]/keyRings/[KEYRING]/cryptoKeys/[KEY]'
To enable CMEK for the bucket, set this field to a valid kmsKeyName for which the associated service account has the required cloudkms.cryptoKeyEncrypterDecrypter roles assigned for the key. The Cloud KMS key used by the bucket can be updated by changing the kmsKeyName to a new valid key name. Encryption operations that are in progress will be completed with the key that was in use when they started. Decryption operations will be completed using the key that was used at the time of encryption unless access to that key has been revoked. See Enabling CMEK for Logging Buckets for more information. - Kms
Service stringAccount Id - The service account associated with a project for which CMEK will apply. Before enabling CMEK for a logging bucket, you must first assign the cloudkms.cryptoKeyEncrypterDecrypter role to the service account associated with the project for which CMEK will apply. See Enabling CMEK for Logging Buckets for more information.
- Logging
Service stringAccount Id - The service account for the given container. Sinks use this service account as their writerIdentity if no custom service account is provided.
- Name string
- The resource name of the settings.
- Project string
- Storage
Location string - The storage location that Cloud Logging will use to create new resources when a location is needed but not explicitly provided.
- disable
Default BooleanSink - If set to true, the _Default sink in newly created projects and folders will created in a disabled state. This can be used to automatically disable log storage if there is already an aggregated sink configured in the hierarchy. The _Default sink can be re-enabled manually if needed.
- id String
- The provider-assigned unique ID for this managed resource.
- kms
Key StringName - The resource name for the configured Cloud KMS key.
KMS key name format:
'projects/[PROJECT_ID]/locations/[LOCATION]/keyRings/[KEYRING]/cryptoKeys/[KEY]'
To enable CMEK for the bucket, set this field to a valid kmsKeyName for which the associated service account has the required cloudkms.cryptoKeyEncrypterDecrypter roles assigned for the key. The Cloud KMS key used by the bucket can be updated by changing the kmsKeyName to a new valid key name. Encryption operations that are in progress will be completed with the key that was in use when they started. Decryption operations will be completed using the key that was used at the time of encryption unless access to that key has been revoked. See Enabling CMEK for Logging Buckets for more information. - kms
Service StringAccount Id - The service account associated with a project for which CMEK will apply. Before enabling CMEK for a logging bucket, you must first assign the cloudkms.cryptoKeyEncrypterDecrypter role to the service account associated with the project for which CMEK will apply. See Enabling CMEK for Logging Buckets for more information.
- logging
Service StringAccount Id - The service account for the given container. Sinks use this service account as their writerIdentity if no custom service account is provided.
- name String
- The resource name of the settings.
- project String
- storage
Location String - The storage location that Cloud Logging will use to create new resources when a location is needed but not explicitly provided.
- disable
Default booleanSink - If set to true, the _Default sink in newly created projects and folders will created in a disabled state. This can be used to automatically disable log storage if there is already an aggregated sink configured in the hierarchy. The _Default sink can be re-enabled manually if needed.
- id string
- The provider-assigned unique ID for this managed resource.
- kms
Key stringName - The resource name for the configured Cloud KMS key.
KMS key name format:
'projects/[PROJECT_ID]/locations/[LOCATION]/keyRings/[KEYRING]/cryptoKeys/[KEY]'
To enable CMEK for the bucket, set this field to a valid kmsKeyName for which the associated service account has the required cloudkms.cryptoKeyEncrypterDecrypter roles assigned for the key. The Cloud KMS key used by the bucket can be updated by changing the kmsKeyName to a new valid key name. Encryption operations that are in progress will be completed with the key that was in use when they started. Decryption operations will be completed using the key that was used at the time of encryption unless access to that key has been revoked. See Enabling CMEK for Logging Buckets for more information. - kms
Service stringAccount Id - The service account associated with a project for which CMEK will apply. Before enabling CMEK for a logging bucket, you must first assign the cloudkms.cryptoKeyEncrypterDecrypter role to the service account associated with the project for which CMEK will apply. See Enabling CMEK for Logging Buckets for more information.
- logging
Service stringAccount Id - The service account for the given container. Sinks use this service account as their writerIdentity if no custom service account is provided.
- name string
- The resource name of the settings.
- project string
- storage
Location string - The storage location that Cloud Logging will use to create new resources when a location is needed but not explicitly provided.
- disable_
default_ boolsink - If set to true, the _Default sink in newly created projects and folders will created in a disabled state. This can be used to automatically disable log storage if there is already an aggregated sink configured in the hierarchy. The _Default sink can be re-enabled manually if needed.
- id str
- The provider-assigned unique ID for this managed resource.
- kms_
key_ strname - The resource name for the configured Cloud KMS key.
KMS key name format:
'projects/[PROJECT_ID]/locations/[LOCATION]/keyRings/[KEYRING]/cryptoKeys/[KEY]'
To enable CMEK for the bucket, set this field to a valid kmsKeyName for which the associated service account has the required cloudkms.cryptoKeyEncrypterDecrypter roles assigned for the key. The Cloud KMS key used by the bucket can be updated by changing the kmsKeyName to a new valid key name. Encryption operations that are in progress will be completed with the key that was in use when they started. Decryption operations will be completed using the key that was used at the time of encryption unless access to that key has been revoked. See Enabling CMEK for Logging Buckets for more information. - kms_
service_ straccount_ id - The service account associated with a project for which CMEK will apply. Before enabling CMEK for a logging bucket, you must first assign the cloudkms.cryptoKeyEncrypterDecrypter role to the service account associated with the project for which CMEK will apply. See Enabling CMEK for Logging Buckets for more information.
- logging_
service_ straccount_ id - The service account for the given container. Sinks use this service account as their writerIdentity if no custom service account is provided.
- name str
- The resource name of the settings.
- project str
- storage_
location str - The storage location that Cloud Logging will use to create new resources when a location is needed but not explicitly provided.
- disable
Default BooleanSink - If set to true, the _Default sink in newly created projects and folders will created in a disabled state. This can be used to automatically disable log storage if there is already an aggregated sink configured in the hierarchy. The _Default sink can be re-enabled manually if needed.
- id String
- The provider-assigned unique ID for this managed resource.
- kms
Key StringName - The resource name for the configured Cloud KMS key.
KMS key name format:
'projects/[PROJECT_ID]/locations/[LOCATION]/keyRings/[KEYRING]/cryptoKeys/[KEY]'
To enable CMEK for the bucket, set this field to a valid kmsKeyName for which the associated service account has the required cloudkms.cryptoKeyEncrypterDecrypter roles assigned for the key. The Cloud KMS key used by the bucket can be updated by changing the kmsKeyName to a new valid key name. Encryption operations that are in progress will be completed with the key that was in use when they started. Decryption operations will be completed using the key that was used at the time of encryption unless access to that key has been revoked. See Enabling CMEK for Logging Buckets for more information. - kms
Service StringAccount Id - The service account associated with a project for which CMEK will apply. Before enabling CMEK for a logging bucket, you must first assign the cloudkms.cryptoKeyEncrypterDecrypter role to the service account associated with the project for which CMEK will apply. See Enabling CMEK for Logging Buckets for more information.
- logging
Service StringAccount Id - The service account for the given container. Sinks use this service account as their writerIdentity if no custom service account is provided.
- name String
- The resource name of the settings.
- project String
- storage
Location String - The storage location that Cloud Logging will use to create new resources when a location is needed but not explicitly provided.
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.