published on Wednesday, Jul 29, 2026 by Pulumi
published on Wednesday, Jul 29, 2026 by Pulumi
The Artifact Registry project config, used to configure platform logs that apply to a project.
To get more information about ProjectConfig, see:
- API documentation
- How-to Guides
Note: A project config is automatically created for a given location. Creating a resource of this type will acquire and update the resource that already exists at the location. Deleting this resource will remove the config from your Terraform state but leave the resource as is.
Example Usage
Artifact Registry Project Config
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const my_config = new gcp.artifactregistry.ProjectConfig("my-config", {
location: "us-central1",
platformLogsConfig: {
loggingState: "ENABLED",
severityLevel: "INFO",
},
});
import pulumi
import pulumi_gcp as gcp
my_config = gcp.artifactregistry.ProjectConfig("my-config",
location="us-central1",
platform_logs_config={
"logging_state": "ENABLED",
"severity_level": "INFO",
})
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v9/go/gcp/artifactregistry"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := artifactregistry.NewProjectConfig(ctx, "my-config", &artifactregistry.ProjectConfigArgs{
Location: pulumi.String("us-central1"),
PlatformLogsConfig: &artifactregistry.ProjectConfigPlatformLogsConfigArgs{
LoggingState: pulumi.String("ENABLED"),
SeverityLevel: pulumi.String("INFO"),
},
})
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 my_config = new Gcp.ArtifactRegistry.ProjectConfig("my-config", new()
{
Location = "us-central1",
PlatformLogsConfig = new Gcp.ArtifactRegistry.Inputs.ProjectConfigPlatformLogsConfigArgs
{
LoggingState = "ENABLED",
SeverityLevel = "INFO",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.artifactregistry.ProjectConfig;
import com.pulumi.gcp.artifactregistry.ProjectConfigArgs;
import com.pulumi.gcp.artifactregistry.inputs.ProjectConfigPlatformLogsConfigArgs;
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 my_config = new ProjectConfig("my-config", ProjectConfigArgs.builder()
.location("us-central1")
.platformLogsConfig(ProjectConfigPlatformLogsConfigArgs.builder()
.loggingState("ENABLED")
.severityLevel("INFO")
.build())
.build());
}
}
resources:
my-config:
type: gcp:artifactregistry:ProjectConfig
properties:
location: us-central1
platformLogsConfig:
loggingState: ENABLED
severityLevel: INFO
pulumi {
required_providers {
gcp = {
source = "pulumi/gcp"
}
}
}
resource "gcp_artifactregistry_projectconfig" "my-config" {
location = "us-central1"
platform_logs_config = {
logging_state = "ENABLED"
severity_level = "INFO"
}
}
Regional Endpoint Policies
This resource supports Regional Endpoint Policies (REP). See the provider reference for more details on configuration.
Create ProjectConfig Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ProjectConfig(name: string, args?: ProjectConfigArgs, opts?: CustomResourceOptions);@overload
def ProjectConfig(resource_name: str,
args: Optional[ProjectConfigArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def ProjectConfig(resource_name: str,
opts: Optional[ResourceOptions] = None,
location: Optional[str] = None,
platform_logs_config: Optional[ProjectConfigPlatformLogsConfigArgs] = None,
project: Optional[str] = None)func NewProjectConfig(ctx *Context, name string, args *ProjectConfigArgs, opts ...ResourceOption) (*ProjectConfig, error)public ProjectConfig(string name, ProjectConfigArgs? args = null, CustomResourceOptions? opts = null)
public ProjectConfig(String name, ProjectConfigArgs args)
public ProjectConfig(String name, ProjectConfigArgs args, CustomResourceOptions options)
type: gcp:artifactregistry:ProjectConfig
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "gcp_artifactregistry_project_config" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args ProjectConfigArgs
- 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 ProjectConfigArgs
- 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 ProjectConfigArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ProjectConfigArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ProjectConfigArgs
- 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 projectConfigResource = new Gcp.ArtifactRegistry.ProjectConfig("projectConfigResource", new()
{
Location = "string",
PlatformLogsConfig = new Gcp.ArtifactRegistry.Inputs.ProjectConfigPlatformLogsConfigArgs
{
LoggingState = "string",
SeverityLevel = "string",
},
Project = "string",
});
example, err := artifactregistry.NewProjectConfig(ctx, "projectConfigResource", &artifactregistry.ProjectConfigArgs{
Location: pulumi.String("string"),
PlatformLogsConfig: &artifactregistry.ProjectConfigPlatformLogsConfigArgs{
LoggingState: pulumi.String("string"),
SeverityLevel: pulumi.String("string"),
},
Project: pulumi.String("string"),
})
resource "gcp_artifactregistry_project_config" "projectConfigResource" {
lifecycle {
create_before_destroy = true
}
location = "string"
platform_logs_config = {
logging_state = "string"
severity_level = "string"
}
project = "string"
}
var projectConfigResource = new ProjectConfig("projectConfigResource", ProjectConfigArgs.builder()
.location("string")
.platformLogsConfig(ProjectConfigPlatformLogsConfigArgs.builder()
.loggingState("string")
.severityLevel("string")
.build())
.project("string")
.build());
project_config_resource = gcp.artifactregistry.ProjectConfig("projectConfigResource",
location="string",
platform_logs_config={
"logging_state": "string",
"severity_level": "string",
},
project="string")
const projectConfigResource = new gcp.artifactregistry.ProjectConfig("projectConfigResource", {
location: "string",
platformLogsConfig: {
loggingState: "string",
severityLevel: "string",
},
project: "string",
});
type: gcp:artifactregistry:ProjectConfig
properties:
location: string
platformLogsConfig:
loggingState: string
severityLevel: string
project: string
ProjectConfig 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 ProjectConfig resource accepts the following input properties:
- Location string
- The name of the location this config is located in.
- Platform
Logs ProjectConfig Config Platform Logs Config - Configuration for platform logs. Structure is documented below.
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Location string
- The name of the location this config is located in.
- Platform
Logs ProjectConfig Config Platform Logs Config Args - Configuration for platform logs. Structure is documented below.
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- location string
- The name of the location this config is located in.
- platform_
logs_ objectconfig - Configuration for platform logs. Structure is documented below.
- project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- location String
- The name of the location this config is located in.
- platform
Logs ProjectConfig Config Platform Logs Config - Configuration for platform logs. Structure is documented below.
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- location string
- The name of the location this config is located in.
- platform
Logs ProjectConfig Config Platform Logs Config - Configuration for platform logs. Structure is documented below.
- project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- location str
- The name of the location this config is located in.
- platform_
logs_ Projectconfig Config Platform Logs Config Args - Configuration for platform logs. Structure is documented below.
- project str
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- location String
- The name of the location this config is located in.
- platform
Logs Property MapConfig - Configuration for platform logs. Structure is documented below.
- 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 ProjectConfig resource produces the following output properties:
Look up Existing ProjectConfig Resource
Get an existing ProjectConfig 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?: ProjectConfigState, opts?: CustomResourceOptions): ProjectConfig@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
location: Optional[str] = None,
name: Optional[str] = None,
platform_logs_config: Optional[ProjectConfigPlatformLogsConfigArgs] = None,
project: Optional[str] = None) -> ProjectConfigfunc GetProjectConfig(ctx *Context, name string, id IDInput, state *ProjectConfigState, opts ...ResourceOption) (*ProjectConfig, error)public static ProjectConfig Get(string name, Input<string> id, ProjectConfigState? state, CustomResourceOptions? opts = null)public static ProjectConfig get(String name, Output<String> id, ProjectConfigState state, CustomResourceOptions options)resources: _: type: gcp:artifactregistry:ProjectConfig get: id: ${id}import {
to = gcp_artifactregistry_project_config.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.
- Location string
- The name of the location this config is located in.
- Name string
- The name of the project's config. Always of the form: projects/{project}/locations/{location}/projectConfig
- Platform
Logs ProjectConfig Config Platform Logs Config - Configuration for platform logs. Structure is documented below.
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Location string
- The name of the location this config is located in.
- Name string
- The name of the project's config. Always of the form: projects/{project}/locations/{location}/projectConfig
- Platform
Logs ProjectConfig Config Platform Logs Config Args - Configuration for platform logs. Structure is documented below.
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- location string
- The name of the location this config is located in.
- name string
- The name of the project's config. Always of the form: projects/{project}/locations/{location}/projectConfig
- platform_
logs_ objectconfig - Configuration for platform logs. Structure is documented below.
- project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- location String
- The name of the location this config is located in.
- name String
- The name of the project's config. Always of the form: projects/{project}/locations/{location}/projectConfig
- platform
Logs ProjectConfig Config Platform Logs Config - Configuration for platform logs. Structure is documented below.
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- location string
- The name of the location this config is located in.
- name string
- The name of the project's config. Always of the form: projects/{project}/locations/{location}/projectConfig
- platform
Logs ProjectConfig Config Platform Logs Config - Configuration for platform logs. Structure is documented below.
- project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- location str
- The name of the location this config is located in.
- name str
- The name of the project's config. Always of the form: projects/{project}/locations/{location}/projectConfig
- platform_
logs_ Projectconfig Config Platform Logs Config Args - Configuration for platform logs. Structure is documented below.
- project str
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- location String
- The name of the location this config is located in.
- name String
- The name of the project's config. Always of the form: projects/{project}/locations/{location}/projectConfig
- platform
Logs Property MapConfig - Configuration for platform logs. Structure is documented below.
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
Supporting Types
ProjectConfigPlatformLogsConfig, ProjectConfigPlatformLogsConfigArgs
- Logging
State string - The state of the platform logs: enabled or disabled.
Possible values are:
ENABLED,DISABLED. - Severity
Level string - The severity level for the logs. Logs will be generated if their
severity level is >= than the value of the severity level mentioned here.
Possible values are:
DEBUG,INFO,NOTICE,WARNING,ERROR,CRITICAL,ALERT,EMERGENCY.
- Logging
State string - The state of the platform logs: enabled or disabled.
Possible values are:
ENABLED,DISABLED. - Severity
Level string - The severity level for the logs. Logs will be generated if their
severity level is >= than the value of the severity level mentioned here.
Possible values are:
DEBUG,INFO,NOTICE,WARNING,ERROR,CRITICAL,ALERT,EMERGENCY.
- logging_
state string - The state of the platform logs: enabled or disabled.
Possible values are:
ENABLED,DISABLED. - severity_
level string - The severity level for the logs. Logs will be generated if their
severity level is >= than the value of the severity level mentioned here.
Possible values are:
DEBUG,INFO,NOTICE,WARNING,ERROR,CRITICAL,ALERT,EMERGENCY.
- logging
State String - The state of the platform logs: enabled or disabled.
Possible values are:
ENABLED,DISABLED. - severity
Level String - The severity level for the logs. Logs will be generated if their
severity level is >= than the value of the severity level mentioned here.
Possible values are:
DEBUG,INFO,NOTICE,WARNING,ERROR,CRITICAL,ALERT,EMERGENCY.
- logging
State string - The state of the platform logs: enabled or disabled.
Possible values are:
ENABLED,DISABLED. - severity
Level string - The severity level for the logs. Logs will be generated if their
severity level is >= than the value of the severity level mentioned here.
Possible values are:
DEBUG,INFO,NOTICE,WARNING,ERROR,CRITICAL,ALERT,EMERGENCY.
- logging_
state str - The state of the platform logs: enabled or disabled.
Possible values are:
ENABLED,DISABLED. - severity_
level str - The severity level for the logs. Logs will be generated if their
severity level is >= than the value of the severity level mentioned here.
Possible values are:
DEBUG,INFO,NOTICE,WARNING,ERROR,CRITICAL,ALERT,EMERGENCY.
- logging
State String - The state of the platform logs: enabled or disabled.
Possible values are:
ENABLED,DISABLED. - severity
Level String - The severity level for the logs. Logs will be generated if their
severity level is >= than the value of the severity level mentioned here.
Possible values are:
DEBUG,INFO,NOTICE,WARNING,ERROR,CRITICAL,ALERT,EMERGENCY.
Import
ProjectConfig can be imported using any of these accepted formats:
projects/{{project}}/locations/{{location}}/projectConfig{{project}}/{{location}}{{location}}
When using the pulumi import command, ProjectConfig can be imported using one of the formats above. For example:
$ pulumi import gcp:artifactregistry/projectConfig:ProjectConfig default projects/{{project}}/locations/{{location}}/projectConfig
$ pulumi import gcp:artifactregistry/projectConfig:ProjectConfig default {{project}}/{{location}}
$ pulumi import gcp:artifactregistry/projectConfig:ProjectConfig 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-betaTerraform Provider.
published on Wednesday, Jul 29, 2026 by Pulumi