published on Monday, Oct 5, 2026 by Pulumi
published on Monday, Oct 5, 2026 by Pulumi
Capability configs define the enabled capabilities and their scope of enforcement for folders, organizations, or projects within the resource hierarchy.
To get more information about CapabilityConfig, see:
- API documentation
- How-to Guides
Example Usage
Resource Manager Capability Config Basic
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const capabilityConfig = new gcp.resourcemanager.CapabilityConfig("capability_config", {
parent: "organizations/123456789",
capabilityConfigId: "capcfg",
displayName: "capdisp",
types: ["AGENT_MANAGEMENT"],
});
import pulumi
import pulumi_gcp as gcp
capability_config = gcp.resourcemanager.CapabilityConfig("capability_config",
parent="organizations/123456789",
capability_config_id="capcfg",
display_name="capdisp",
types=["AGENT_MANAGEMENT"])
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v10/go/gcp/resourcemanager"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := resourcemanager.NewCapabilityConfig(ctx, "capability_config", &resourcemanager.CapabilityConfigArgs{
Parent: pulumi.String("organizations/123456789"),
CapabilityConfigId: pulumi.String("capcfg"),
DisplayName: pulumi.String("capdisp"),
Types: pulumi.StringArray{
pulumi.String("AGENT_MANAGEMENT"),
},
})
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 capabilityConfig = new Gcp.ResourceManager.CapabilityConfig("capability_config", new()
{
Parent = "organizations/123456789",
CapabilityConfigId = "capcfg",
DisplayName = "capdisp",
Types = new[]
{
"AGENT_MANAGEMENT",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.resourcemanager.CapabilityConfig;
import com.pulumi.gcp.resourcemanager.CapabilityConfigArgs;
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 capabilityConfig = new CapabilityConfig("capabilityConfig", CapabilityConfigArgs.builder()
.parent("organizations/123456789")
.capabilityConfigId("capcfg")
.displayName("capdisp")
.types("AGENT_MANAGEMENT")
.build());
}
}
resources:
capabilityConfig:
type: gcp:resourcemanager:CapabilityConfig
name: capability_config
properties:
parent: organizations/123456789
capabilityConfigId: capcfg
displayName: capdisp
types:
- AGENT_MANAGEMENT
pulumi {
required_providers {
gcp = {
source = "pulumi/gcp"
}
}
}
resource "gcp_resourcemanager_capabilityconfig" "capability_config" {
parent = "organizations/123456789"
capability_config_id = "capcfg"
display_name = "capdisp"
types = ["AGENT_MANAGEMENT"]
}
Resource Manager Capability Config Folder
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
import * as time from "@pulumiverse/time";
const folder = new gcp.organizations.Folder("folder", {
displayName: "capcfg-fldr",
parent: "organizations/123456789",
deletionProtection: false,
});
// An existing project can be supplied as the management project. If
// management_project is omitted, the API creates one automatically.
const managementProject = new gcp.organizations.Project("management_project", {
projectId: "capcfg-mgmt",
name: "capcfg-mgmt",
folderId: folder.folderId,
billingAccount: "000000-0000000-0000000-000000",
deletionPolicy: "DELETE",
});
// wait for project creation
const wait60Seconds = new time.Sleep("wait_60_seconds", {createDuration: "60s"}, {
dependsOn: [managementProject],
});
const capabilityConfig = new gcp.resourcemanager.CapabilityConfig("capability_config", {
parent: folder.name,
capabilityConfigId: "capcfg",
displayName: "Folder capability config",
types: ["AGENT_MANAGEMENT"],
managementProject: pulumi.interpolate`projects/${managementProject.number}`,
}, {
dependsOn: [wait60Seconds],
});
import pulumi
import pulumi_gcp as gcp
import pulumiverse_time as time
folder = gcp.organizations.Folder("folder",
display_name="capcfg-fldr",
parent="organizations/123456789",
deletion_protection=False)
# An existing project can be supplied as the management project. If
# management_project is omitted, the API creates one automatically.
management_project = gcp.organizations.Project("management_project",
project_id="capcfg-mgmt",
name="capcfg-mgmt",
folder_id=folder.folder_id,
billing_account="000000-0000000-0000000-000000",
deletion_policy="DELETE")
# wait for project creation
wait60_seconds = time.Sleep("wait_60_seconds", create_duration="60s",
opts = pulumi.ResourceOptions(depends_on=[management_project]))
capability_config = gcp.resourcemanager.CapabilityConfig("capability_config",
parent=folder.name,
capability_config_id="capcfg",
display_name="Folder capability config",
types=["AGENT_MANAGEMENT"],
management_project=management_project.number.apply(lambda number: f"projects/{number}"),
opts = pulumi.ResourceOptions(depends_on=[wait60_seconds]))
package main
import (
"fmt"
"github.com/pulumi/pulumi-gcp/sdk/v10/go/gcp/organizations"
"github.com/pulumi/pulumi-gcp/sdk/v10/go/gcp/resourcemanager"
"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 {
folder, err := organizations.NewFolder(ctx, "folder", &organizations.FolderArgs{
DisplayName: pulumi.String("capcfg-fldr"),
Parent: pulumi.String("organizations/123456789"),
DeletionProtection: pulumi.Bool(false),
})
if err != nil {
return err
}
// An existing project can be supplied as the management project. If
// management_project is omitted, the API creates one automatically.
managementProject, err := organizations.NewProject(ctx, "management_project", &organizations.ProjectArgs{
ProjectId: pulumi.String("capcfg-mgmt"),
Name: pulumi.String("capcfg-mgmt"),
FolderId: folder.FolderId,
BillingAccount: pulumi.String("000000-0000000-0000000-000000"),
DeletionPolicy: pulumi.String("DELETE"),
})
if err != nil {
return err
}
// wait for project creation
wait60Seconds, err := time.NewSleep(ctx, "wait_60_seconds", &time.SleepArgs{
CreateDuration: pulumi.String("60s"),
}, pulumi.DependsOn([]pulumi.Resource{
managementProject,
}))
if err != nil {
return err
}
_, err = resourcemanager.NewCapabilityConfig(ctx, "capability_config", &resourcemanager.CapabilityConfigArgs{
Parent: folder.Name,
CapabilityConfigId: pulumi.String("capcfg"),
DisplayName: pulumi.String("Folder capability config"),
Types: pulumi.StringArray{
pulumi.String("AGENT_MANAGEMENT"),
},
ManagementProject: managementProject.Number.ApplyT(func(number string) (string, error) {
return fmt.Sprintf("projects/%v", number), nil
}).(pulumi.StringOutput),
}, pulumi.DependsOn([]pulumi.Resource{
wait60Seconds,
}))
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 folder = new Gcp.Organizations.Folder("folder", new()
{
DisplayName = "capcfg-fldr",
Parent = "organizations/123456789",
DeletionProtection = false,
});
// An existing project can be supplied as the management project. If
// management_project is omitted, the API creates one automatically.
var managementProject = new Gcp.Organizations.Project("management_project", new()
{
ProjectId = "capcfg-mgmt",
Name = "capcfg-mgmt",
FolderId = folder.FolderId,
BillingAccount = "000000-0000000-0000000-000000",
DeletionPolicy = "DELETE",
});
// wait for project creation
var wait60Seconds = new Time.Sleep("wait_60_seconds", new()
{
CreateDuration = "60s",
}, new CustomResourceOptions
{
DependsOn =
{
managementProject,
},
});
var capabilityConfig = new Gcp.ResourceManager.CapabilityConfig("capability_config", new()
{
Parent = folder.Name,
CapabilityConfigId = "capcfg",
DisplayName = "Folder capability config",
Types = new[]
{
"AGENT_MANAGEMENT",
},
ManagementProject = managementProject.Number.Apply(number => $"projects/{number}"),
}, new CustomResourceOptions
{
DependsOn =
{
wait60Seconds,
},
});
});
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.pulumi.gcp.organizations.Project;
import com.pulumi.gcp.organizations.ProjectArgs;
import com.pulumiverse.time.Sleep;
import com.pulumiverse.time.SleepArgs;
import com.pulumi.gcp.resourcemanager.CapabilityConfig;
import com.pulumi.gcp.resourcemanager.CapabilityConfigArgs;
import com.pulumi.resources.CustomResourceOptions;
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 folder = new Folder("folder", FolderArgs.builder()
.displayName("capcfg-fldr")
.parent("organizations/123456789")
.deletionProtection(false)
.build());
// An existing project can be supplied as the management project. If
// management_project is omitted, the API creates one automatically.
var managementProject = new Project("managementProject", ProjectArgs.builder()
.projectId("capcfg-mgmt")
.name("capcfg-mgmt")
.folderId(folder.folderId())
.billingAccount("000000-0000000-0000000-000000")
.deletionPolicy("DELETE")
.build());
// wait for project creation
var wait60Seconds = new Sleep("wait60Seconds", SleepArgs.builder()
.createDuration("60s")
.build(), CustomResourceOptions.builder()
.dependsOn(managementProject)
.build());
var capabilityConfig = new CapabilityConfig("capabilityConfig", CapabilityConfigArgs.builder()
.parent(folder.name())
.capabilityConfigId("capcfg")
.displayName("Folder capability config")
.types("AGENT_MANAGEMENT")
.managementProject(managementProject.number().applyValue(_number -> String.format("projects/%s", _number)))
.build(), CustomResourceOptions.builder()
.dependsOn(wait60Seconds)
.build());
}
}
resources:
folder:
type: gcp:organizations:Folder
properties:
displayName: capcfg-fldr
parent: organizations/123456789
deletionProtection: false
# An existing project can be supplied as the management project. If
# management_project is omitted, the API creates one automatically.
managementProject:
type: gcp:organizations:Project
name: management_project
properties:
projectId: capcfg-mgmt
name: capcfg-mgmt
folderId: ${folder.folderId}
billingAccount: 000000-0000000-0000000-000000
deletionPolicy: DELETE
# wait for project creation
wait60Seconds:
type: time:Sleep
name: wait_60_seconds
properties:
createDuration: 60s
options:
dependsOn:
- ${managementProject}
capabilityConfig:
type: gcp:resourcemanager:CapabilityConfig
name: capability_config
properties:
parent: ${folder.name}
capabilityConfigId: capcfg
displayName: Folder capability config
types:
- AGENT_MANAGEMENT
managementProject: projects/${managementProject.number}
options:
dependsOn:
- ${wait60Seconds}
pulumi {
required_providers {
gcp = {
source = "pulumi/gcp"
}
time = {
source = "pulumi/time"
}
}
}
resource "gcp_organizations_folder" "folder" {
display_name = "capcfg-fldr"
parent = "organizations/123456789"
deletion_protection = false
}
# An existing project can be supplied as the management project. If
# management_project is omitted, the API creates one automatically.
resource "gcp_organizations_project" "management_project" {
project_id = "capcfg-mgmt"
name = "capcfg-mgmt"
folder_id = gcp_organizations_folder.folder.folder_id
billing_account = "000000-0000000-0000000-000000"
deletion_policy = "DELETE"
}
// wait for project creation
resource "time_sleep" "wait_60_seconds" {
depends_on = [gcp_organizations_project.management_project]
create_duration = "60s"
}
resource "gcp_resourcemanager_capabilityconfig" "capability_config" {
depends_on = [time_sleep.wait_60_seconds]
parent = gcp_organizations_folder.folder.name
capability_config_id = "capcfg"
display_name = "Folder capability config"
types = ["AGENT_MANAGEMENT"]
management_project ="projects/${gcp_organizations_project.management_project.number}"
}
Resource Manager Capability Config Project
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
import * as time from "@pulumiverse/time";
const project = new gcp.organizations.Project("project", {
projectId: "capcfg-proj",
name: "capcfg-proj",
orgId: "123456789",
billingAccount: "000000-0000000-0000000-000000",
deletionPolicy: "DELETE",
});
// wait for project creation
const wait60Seconds = new time.Sleep("wait_60_seconds", {createDuration: "60s"}, {
dependsOn: [project],
});
const capabilityConfig = new gcp.resourcemanager.CapabilityConfig("capability_config", {
parent: pulumi.interpolate`projects/${project.number}`,
capabilityConfigId: "capcfg",
displayName: "Project capability config",
types: ["AGENT_MANAGEMENT"],
managementProject: pulumi.interpolate`projects/${project.number}`,
}, {
dependsOn: [wait60Seconds],
});
import pulumi
import pulumi_gcp as gcp
import pulumiverse_time as time
project = gcp.organizations.Project("project",
project_id="capcfg-proj",
name="capcfg-proj",
org_id="123456789",
billing_account="000000-0000000-0000000-000000",
deletion_policy="DELETE")
# wait for project creation
wait60_seconds = time.Sleep("wait_60_seconds", create_duration="60s",
opts = pulumi.ResourceOptions(depends_on=[project]))
capability_config = gcp.resourcemanager.CapabilityConfig("capability_config",
parent=project.number.apply(lambda number: f"projects/{number}"),
capability_config_id="capcfg",
display_name="Project capability config",
types=["AGENT_MANAGEMENT"],
management_project=project.number.apply(lambda number: f"projects/{number}"),
opts = pulumi.ResourceOptions(depends_on=[wait60_seconds]))
package main
import (
"fmt"
"github.com/pulumi/pulumi-gcp/sdk/v10/go/gcp/organizations"
"github.com/pulumi/pulumi-gcp/sdk/v10/go/gcp/resourcemanager"
"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 {
project, err := organizations.NewProject(ctx, "project", &organizations.ProjectArgs{
ProjectId: pulumi.String("capcfg-proj"),
Name: pulumi.String("capcfg-proj"),
OrgId: pulumi.String("123456789"),
BillingAccount: pulumi.String("000000-0000000-0000000-000000"),
DeletionPolicy: pulumi.String("DELETE"),
})
if err != nil {
return err
}
// wait for project creation
wait60Seconds, err := time.NewSleep(ctx, "wait_60_seconds", &time.SleepArgs{
CreateDuration: pulumi.String("60s"),
}, pulumi.DependsOn([]pulumi.Resource{
project,
}))
if err != nil {
return err
}
_, err = resourcemanager.NewCapabilityConfig(ctx, "capability_config", &resourcemanager.CapabilityConfigArgs{
Parent: project.Number.ApplyT(func(number string) (string, error) {
return fmt.Sprintf("projects/%v", number), nil
}).(pulumi.StringOutput),
CapabilityConfigId: pulumi.String("capcfg"),
DisplayName: pulumi.String("Project capability config"),
Types: pulumi.StringArray{
pulumi.String("AGENT_MANAGEMENT"),
},
ManagementProject: project.Number.ApplyT(func(number string) (string, error) {
return fmt.Sprintf("projects/%v", number), nil
}).(pulumi.StringOutput),
}, pulumi.DependsOn([]pulumi.Resource{
wait60Seconds,
}))
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 project = new Gcp.Organizations.Project("project", new()
{
ProjectId = "capcfg-proj",
Name = "capcfg-proj",
OrgId = "123456789",
BillingAccount = "000000-0000000-0000000-000000",
DeletionPolicy = "DELETE",
});
// wait for project creation
var wait60Seconds = new Time.Sleep("wait_60_seconds", new()
{
CreateDuration = "60s",
}, new CustomResourceOptions
{
DependsOn =
{
project,
},
});
var capabilityConfig = new Gcp.ResourceManager.CapabilityConfig("capability_config", new()
{
Parent = project.Number.Apply(number => $"projects/{number}"),
CapabilityConfigId = "capcfg",
DisplayName = "Project capability config",
Types = new[]
{
"AGENT_MANAGEMENT",
},
ManagementProject = project.Number.Apply(number => $"projects/{number}"),
}, new CustomResourceOptions
{
DependsOn =
{
wait60Seconds,
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.organizations.Project;
import com.pulumi.gcp.organizations.ProjectArgs;
import com.pulumiverse.time.Sleep;
import com.pulumiverse.time.SleepArgs;
import com.pulumi.gcp.resourcemanager.CapabilityConfig;
import com.pulumi.gcp.resourcemanager.CapabilityConfigArgs;
import com.pulumi.resources.CustomResourceOptions;
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 project = new Project("project", ProjectArgs.builder()
.projectId("capcfg-proj")
.name("capcfg-proj")
.orgId("123456789")
.billingAccount("000000-0000000-0000000-000000")
.deletionPolicy("DELETE")
.build());
// wait for project creation
var wait60Seconds = new Sleep("wait60Seconds", SleepArgs.builder()
.createDuration("60s")
.build(), CustomResourceOptions.builder()
.dependsOn(project)
.build());
var capabilityConfig = new CapabilityConfig("capabilityConfig", CapabilityConfigArgs.builder()
.parent(project.number().applyValue(_number -> String.format("projects/%s", _number)))
.capabilityConfigId("capcfg")
.displayName("Project capability config")
.types("AGENT_MANAGEMENT")
.managementProject(project.number().applyValue(_number -> String.format("projects/%s", _number)))
.build(), CustomResourceOptions.builder()
.dependsOn(wait60Seconds)
.build());
}
}
resources:
project:
type: gcp:organizations:Project
properties:
projectId: capcfg-proj
name: capcfg-proj
orgId: '123456789'
billingAccount: 000000-0000000-0000000-000000
deletionPolicy: DELETE
# wait for project creation
wait60Seconds:
type: time:Sleep
name: wait_60_seconds
properties:
createDuration: 60s
options:
dependsOn:
- ${project}
capabilityConfig:
type: gcp:resourcemanager:CapabilityConfig
name: capability_config
properties:
parent: projects/${project.number}
capabilityConfigId: capcfg
displayName: Project capability config
types:
- AGENT_MANAGEMENT
managementProject: projects/${project.number}
options:
dependsOn:
- ${wait60Seconds}
pulumi {
required_providers {
gcp = {
source = "pulumi/gcp"
}
time = {
source = "pulumi/time"
}
}
}
resource "gcp_organizations_project" "project" {
project_id = "capcfg-proj"
name = "capcfg-proj"
org_id = "123456789"
billing_account = "000000-0000000-0000000-000000"
deletion_policy = "DELETE"
}
// wait for project creation
resource "time_sleep" "wait_60_seconds" {
depends_on = [gcp_organizations_project.project]
create_duration = "60s"
}
resource "gcp_resourcemanager_capabilityconfig" "capability_config" {
depends_on = [time_sleep.wait_60_seconds]
parent ="projects/${gcp_organizations_project.project.number}"
capability_config_id = "capcfg"
display_name = "Project capability config"
types = ["AGENT_MANAGEMENT"]
management_project ="projects/${gcp_organizations_project.project.number}"
}
Create CapabilityConfig Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CapabilityConfig(name: string, args: CapabilityConfigArgs, opts?: CustomResourceOptions);@overload
def CapabilityConfig(resource_name: str,
args: CapabilityConfigArgs,
opts: Optional[ResourceOptions] = None)
@overload
def CapabilityConfig(resource_name: str,
opts: Optional[ResourceOptions] = None,
capability_config_id: Optional[str] = None,
parent: Optional[str] = None,
types: Optional[Sequence[str]] = None,
deletion_policy: Optional[str] = None,
display_name: Optional[str] = None,
management_project: Optional[str] = None)func NewCapabilityConfig(ctx *Context, name string, args CapabilityConfigArgs, opts ...ResourceOption) (*CapabilityConfig, error)public CapabilityConfig(string name, CapabilityConfigArgs args, CustomResourceOptions? opts = null)
public CapabilityConfig(String name, CapabilityConfigArgs args)
public CapabilityConfig(String name, CapabilityConfigArgs args, CustomResourceOptions options)
type: gcp:resourcemanager:CapabilityConfig
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "gcp_resourcemanager_capability_config" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args CapabilityConfigArgs
- 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 CapabilityConfigArgs
- 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 CapabilityConfigArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CapabilityConfigArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CapabilityConfigArgs
- 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 capabilityConfigResource = new Gcp.ResourceManager.CapabilityConfig("capabilityConfigResource", new()
{
CapabilityConfigId = "string",
Parent = "string",
Types = new[]
{
"string",
},
DeletionPolicy = "string",
DisplayName = "string",
ManagementProject = "string",
});
example, err := resourcemanager.NewCapabilityConfig(ctx, "capabilityConfigResource", &resourcemanager.CapabilityConfigArgs{
CapabilityConfigId: pulumi.String("string"),
Parent: pulumi.String("string"),
Types: pulumi.StringArray{
pulumi.String("string"),
},
DeletionPolicy: pulumi.String("string"),
DisplayName: pulumi.String("string"),
ManagementProject: pulumi.String("string"),
})
resource "gcp_resourcemanager_capability_config" "capabilityConfigResource" {
lifecycle {
create_before_destroy = true
}
capability_config_id = "string"
parent = "string"
types = ["string"]
deletion_policy = "string"
display_name = "string"
management_project = "string"
}
var capabilityConfigResource = new CapabilityConfig("capabilityConfigResource", CapabilityConfigArgs.builder()
.capabilityConfigId("string")
.parent("string")
.types("string")
.deletionPolicy("string")
.displayName("string")
.managementProject("string")
.build());
capability_config_resource = gcp.resourcemanager.CapabilityConfig("capabilityConfigResource",
capability_config_id="string",
parent="string",
types=["string"],
deletion_policy="string",
display_name="string",
management_project="string")
const capabilityConfigResource = new gcp.resourcemanager.CapabilityConfig("capabilityConfigResource", {
capabilityConfigId: "string",
parent: "string",
types: ["string"],
deletionPolicy: "string",
displayName: "string",
managementProject: "string",
});
type: gcp:resourcemanager:CapabilityConfig
properties:
capabilityConfigId: string
deletionPolicy: string
displayName: string
managementProject: string
parent: string
types:
- string
CapabilityConfig 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 CapabilityConfig resource accepts the following input properties:
- Capability
Config stringId - User-specified identifier of the capability config. Must be 6 to 30 characters, and contain only lowercase letters, numbers, and hyphens.
- Parent string
- The parent resource in which to create the capability config.
Format:
folders/{folder_id},organizations/{organization_id}, orprojects/{project_number}. - Types List<string>
- The capabilities enabled for the resource and its sub-tree. Possible values: "AGENT_MANAGEMENT".
- 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.
- Display
Name string - User-defined name for the capability config. Must be between 4 and 30 characters.
- Management
Project string - The management project for the capability config. If unspecified, a project will be created automatically.
Must be specified for project-scoped capability config.
Format:
projects/{project_number}.
- Capability
Config stringId - User-specified identifier of the capability config. Must be 6 to 30 characters, and contain only lowercase letters, numbers, and hyphens.
- Parent string
- The parent resource in which to create the capability config.
Format:
folders/{folder_id},organizations/{organization_id}, orprojects/{project_number}. - Types []string
- The capabilities enabled for the resource and its sub-tree. Possible values: "AGENT_MANAGEMENT".
- 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.
- Display
Name string - User-defined name for the capability config. Must be between 4 and 30 characters.
- Management
Project string - The management project for the capability config. If unspecified, a project will be created automatically.
Must be specified for project-scoped capability config.
Format:
projects/{project_number}.
- capability_
config_ stringid - User-specified identifier of the capability config. Must be 6 to 30 characters, and contain only lowercase letters, numbers, and hyphens.
- parent string
- The parent resource in which to create the capability config.
Format:
folders/{folder_id},organizations/{organization_id}, orprojects/{project_number}. - types list(string)
- The capabilities enabled for the resource and its sub-tree. Possible values: "AGENT_MANAGEMENT".
- 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.
- display_
name string - User-defined name for the capability config. Must be between 4 and 30 characters.
- management_
project string - The management project for the capability config. If unspecified, a project will be created automatically.
Must be specified for project-scoped capability config.
Format:
projects/{project_number}.
- capability
Config StringId - User-specified identifier of the capability config. Must be 6 to 30 characters, and contain only lowercase letters, numbers, and hyphens.
- parent String
- The parent resource in which to create the capability config.
Format:
folders/{folder_id},organizations/{organization_id}, orprojects/{project_number}. - types List<String>
- The capabilities enabled for the resource and its sub-tree. Possible values: "AGENT_MANAGEMENT".
- 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.
- display
Name String - User-defined name for the capability config. Must be between 4 and 30 characters.
- management
Project String - The management project for the capability config. If unspecified, a project will be created automatically.
Must be specified for project-scoped capability config.
Format:
projects/{project_number}.
- capability
Config stringId - User-specified identifier of the capability config. Must be 6 to 30 characters, and contain only lowercase letters, numbers, and hyphens.
- parent string
- The parent resource in which to create the capability config.
Format:
folders/{folder_id},organizations/{organization_id}, orprojects/{project_number}. - types string[]
- The capabilities enabled for the resource and its sub-tree. Possible values: "AGENT_MANAGEMENT".
- 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.
- display
Name string - User-defined name for the capability config. Must be between 4 and 30 characters.
- management
Project string - The management project for the capability config. If unspecified, a project will be created automatically.
Must be specified for project-scoped capability config.
Format:
projects/{project_number}.
- capability_
config_ strid - User-specified identifier of the capability config. Must be 6 to 30 characters, and contain only lowercase letters, numbers, and hyphens.
- parent str
- The parent resource in which to create the capability config.
Format:
folders/{folder_id},organizations/{organization_id}, orprojects/{project_number}. - types Sequence[str]
- The capabilities enabled for the resource and its sub-tree. Possible values: "AGENT_MANAGEMENT".
- 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.
- display_
name str - User-defined name for the capability config. Must be between 4 and 30 characters.
- management_
project str - The management project for the capability config. If unspecified, a project will be created automatically.
Must be specified for project-scoped capability config.
Format:
projects/{project_number}.
- capability
Config StringId - User-specified identifier of the capability config. Must be 6 to 30 characters, and contain only lowercase letters, numbers, and hyphens.
- parent String
- The parent resource in which to create the capability config.
Format:
folders/{folder_id},organizations/{organization_id}, orprojects/{project_number}. - types List<String>
- The capabilities enabled for the resource and its sub-tree. Possible values: "AGENT_MANAGEMENT".
- 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.
- display
Name String - User-defined name for the capability config. Must be between 4 and 30 characters.
- management
Project String - The management project for the capability config. If unspecified, a project will be created automatically.
Must be specified for project-scoped capability config.
Format:
projects/{project_number}.
Outputs
All input properties are implicitly available as output properties. Additionally, the CapabilityConfig resource produces the following output properties:
- Create
Time string - The time when the capability config was created.
- Etag string
- An opaque tag indicating the current version of the capability config, used for concurrency control.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The identifier for the capability config.
Format:
{parent}/capabilityConfigs/{capability_config_id}. - State string
- The state of the capability config.
- Update
Time string - The time when the capability config was last updated.
- Create
Time string - The time when the capability config was created.
- Etag string
- An opaque tag indicating the current version of the capability config, used for concurrency control.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The identifier for the capability config.
Format:
{parent}/capabilityConfigs/{capability_config_id}. - State string
- The state of the capability config.
- Update
Time string - The time when the capability config was last updated.
- create_
time string - The time when the capability config was created.
- etag string
- An opaque tag indicating the current version of the capability config, used for concurrency control.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- The identifier for the capability config.
Format:
{parent}/capabilityConfigs/{capability_config_id}. - state string
- The state of the capability config.
- update_
time string - The time when the capability config was last updated.
- create
Time String - The time when the capability config was created.
- etag String
- An opaque tag indicating the current version of the capability config, used for concurrency control.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The identifier for the capability config.
Format:
{parent}/capabilityConfigs/{capability_config_id}. - state String
- The state of the capability config.
- update
Time String - The time when the capability config was last updated.
- create
Time string - The time when the capability config was created.
- etag string
- An opaque tag indicating the current version of the capability config, used for concurrency control.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- The identifier for the capability config.
Format:
{parent}/capabilityConfigs/{capability_config_id}. - state string
- The state of the capability config.
- update
Time string - The time when the capability config was last updated.
- create_
time str - The time when the capability config was created.
- etag str
- An opaque tag indicating the current version of the capability config, used for concurrency control.
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- The identifier for the capability config.
Format:
{parent}/capabilityConfigs/{capability_config_id}. - state str
- The state of the capability config.
- update_
time str - The time when the capability config was last updated.
- create
Time String - The time when the capability config was created.
- etag String
- An opaque tag indicating the current version of the capability config, used for concurrency control.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The identifier for the capability config.
Format:
{parent}/capabilityConfigs/{capability_config_id}. - state String
- The state of the capability config.
- update
Time String - The time when the capability config was last updated.
Look up Existing CapabilityConfig Resource
Get an existing CapabilityConfig 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?: CapabilityConfigState, opts?: CustomResourceOptions): CapabilityConfig@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
capability_config_id: Optional[str] = None,
create_time: Optional[str] = None,
deletion_policy: Optional[str] = None,
display_name: Optional[str] = None,
etag: Optional[str] = None,
management_project: Optional[str] = None,
name: Optional[str] = None,
parent: Optional[str] = None,
state: Optional[str] = None,
types: Optional[Sequence[str]] = None,
update_time: Optional[str] = None) -> CapabilityConfigfunc GetCapabilityConfig(ctx *Context, name string, id IDInput, state *CapabilityConfigState, opts ...ResourceOption) (*CapabilityConfig, error)public static CapabilityConfig Get(string name, Input<string> id, CapabilityConfigState? state, CustomResourceOptions? opts = null)public static CapabilityConfig get(String name, Output<String> id, CapabilityConfigState state, CustomResourceOptions options)resources: _: type: gcp:resourcemanager:CapabilityConfig get: id: ${id}import {
to = gcp_resourcemanager_capability_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.
- Capability
Config stringId - User-specified identifier of the capability config. Must be 6 to 30 characters, and contain only lowercase letters, numbers, and hyphens.
- Create
Time string - The time when the capability config was created.
- 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.
- Display
Name string - User-defined name for the capability config. Must be between 4 and 30 characters.
- Etag string
- An opaque tag indicating the current version of the capability config, used for concurrency control.
- Management
Project string - The management project for the capability config. If unspecified, a project will be created automatically.
Must be specified for project-scoped capability config.
Format:
projects/{project_number}. - Name string
- The identifier for the capability config.
Format:
{parent}/capabilityConfigs/{capability_config_id}. - Parent string
- The parent resource in which to create the capability config.
Format:
folders/{folder_id},organizations/{organization_id}, orprojects/{project_number}. - State string
- The state of the capability config.
- Types List<string>
- The capabilities enabled for the resource and its sub-tree. Possible values: "AGENT_MANAGEMENT".
- Update
Time string - The time when the capability config was last updated.
- Capability
Config stringId - User-specified identifier of the capability config. Must be 6 to 30 characters, and contain only lowercase letters, numbers, and hyphens.
- Create
Time string - The time when the capability config was created.
- 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.
- Display
Name string - User-defined name for the capability config. Must be between 4 and 30 characters.
- Etag string
- An opaque tag indicating the current version of the capability config, used for concurrency control.
- Management
Project string - The management project for the capability config. If unspecified, a project will be created automatically.
Must be specified for project-scoped capability config.
Format:
projects/{project_number}. - Name string
- The identifier for the capability config.
Format:
{parent}/capabilityConfigs/{capability_config_id}. - Parent string
- The parent resource in which to create the capability config.
Format:
folders/{folder_id},organizations/{organization_id}, orprojects/{project_number}. - State string
- The state of the capability config.
- Types []string
- The capabilities enabled for the resource and its sub-tree. Possible values: "AGENT_MANAGEMENT".
- Update
Time string - The time when the capability config was last updated.
- capability_
config_ stringid - User-specified identifier of the capability config. Must be 6 to 30 characters, and contain only lowercase letters, numbers, and hyphens.
- create_
time string - The time when the capability config was created.
- 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.
- display_
name string - User-defined name for the capability config. Must be between 4 and 30 characters.
- etag string
- An opaque tag indicating the current version of the capability config, used for concurrency control.
- management_
project string - The management project for the capability config. If unspecified, a project will be created automatically.
Must be specified for project-scoped capability config.
Format:
projects/{project_number}. - name string
- The identifier for the capability config.
Format:
{parent}/capabilityConfigs/{capability_config_id}. - parent string
- The parent resource in which to create the capability config.
Format:
folders/{folder_id},organizations/{organization_id}, orprojects/{project_number}. - state string
- The state of the capability config.
- types list(string)
- The capabilities enabled for the resource and its sub-tree. Possible values: "AGENT_MANAGEMENT".
- update_
time string - The time when the capability config was last updated.
- capability
Config StringId - User-specified identifier of the capability config. Must be 6 to 30 characters, and contain only lowercase letters, numbers, and hyphens.
- create
Time String - The time when the capability config was created.
- 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.
- display
Name String - User-defined name for the capability config. Must be between 4 and 30 characters.
- etag String
- An opaque tag indicating the current version of the capability config, used for concurrency control.
- management
Project String - The management project for the capability config. If unspecified, a project will be created automatically.
Must be specified for project-scoped capability config.
Format:
projects/{project_number}. - name String
- The identifier for the capability config.
Format:
{parent}/capabilityConfigs/{capability_config_id}. - parent String
- The parent resource in which to create the capability config.
Format:
folders/{folder_id},organizations/{organization_id}, orprojects/{project_number}. - state String
- The state of the capability config.
- types List<String>
- The capabilities enabled for the resource and its sub-tree. Possible values: "AGENT_MANAGEMENT".
- update
Time String - The time when the capability config was last updated.
- capability
Config stringId - User-specified identifier of the capability config. Must be 6 to 30 characters, and contain only lowercase letters, numbers, and hyphens.
- create
Time string - The time when the capability config was created.
- 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.
- display
Name string - User-defined name for the capability config. Must be between 4 and 30 characters.
- etag string
- An opaque tag indicating the current version of the capability config, used for concurrency control.
- management
Project string - The management project for the capability config. If unspecified, a project will be created automatically.
Must be specified for project-scoped capability config.
Format:
projects/{project_number}. - name string
- The identifier for the capability config.
Format:
{parent}/capabilityConfigs/{capability_config_id}. - parent string
- The parent resource in which to create the capability config.
Format:
folders/{folder_id},organizations/{organization_id}, orprojects/{project_number}. - state string
- The state of the capability config.
- types string[]
- The capabilities enabled for the resource and its sub-tree. Possible values: "AGENT_MANAGEMENT".
- update
Time string - The time when the capability config was last updated.
- capability_
config_ strid - User-specified identifier of the capability config. Must be 6 to 30 characters, and contain only lowercase letters, numbers, and hyphens.
- create_
time str - The time when the capability config was created.
- 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.
- display_
name str - User-defined name for the capability config. Must be between 4 and 30 characters.
- etag str
- An opaque tag indicating the current version of the capability config, used for concurrency control.
- management_
project str - The management project for the capability config. If unspecified, a project will be created automatically.
Must be specified for project-scoped capability config.
Format:
projects/{project_number}. - name str
- The identifier for the capability config.
Format:
{parent}/capabilityConfigs/{capability_config_id}. - parent str
- The parent resource in which to create the capability config.
Format:
folders/{folder_id},organizations/{organization_id}, orprojects/{project_number}. - state str
- The state of the capability config.
- types Sequence[str]
- The capabilities enabled for the resource and its sub-tree. Possible values: "AGENT_MANAGEMENT".
- update_
time str - The time when the capability config was last updated.
- capability
Config StringId - User-specified identifier of the capability config. Must be 6 to 30 characters, and contain only lowercase letters, numbers, and hyphens.
- create
Time String - The time when the capability config was created.
- 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.
- display
Name String - User-defined name for the capability config. Must be between 4 and 30 characters.
- etag String
- An opaque tag indicating the current version of the capability config, used for concurrency control.
- management
Project String - The management project for the capability config. If unspecified, a project will be created automatically.
Must be specified for project-scoped capability config.
Format:
projects/{project_number}. - name String
- The identifier for the capability config.
Format:
{parent}/capabilityConfigs/{capability_config_id}. - parent String
- The parent resource in which to create the capability config.
Format:
folders/{folder_id},organizations/{organization_id}, orprojects/{project_number}. - state String
- The state of the capability config.
- types List<String>
- The capabilities enabled for the resource and its sub-tree. Possible values: "AGENT_MANAGEMENT".
- update
Time String - The time when the capability config was last updated.
Import
CapabilityConfig can be imported using any of these accepted formats:
{{parent}}/capabilityConfigs/{{capability_config_id}}
When using the pulumi import command, CapabilityConfig can be imported using one of the formats above. For example:
$ pulumi import gcp:resourcemanager/capabilityConfig:CapabilityConfig default {{parent}}/capabilityConfigs/{{capability_config_id}}
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 Monday, Oct 5, 2026 by Pulumi