published on Wednesday, Nov 18, 2026 by Pulumi
published on Wednesday, Nov 18, 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 boundary = new gcp.tags.TagKey("boundary", {
parent: "organizations/123456789",
shortName: "bndkey",
description: "Partitioning tag key used by boundaries.",
});
const boundary1 = new gcp.tags.TagValue("boundary_1", {
parent: boundary.id,
shortName: "bndval-1",
description: "Tag value for the first boundary.",
});
const boundary2 = new gcp.tags.TagValue("boundary_2", {
parent: boundary.id,
shortName: "bndval-2",
description: "Tag value for the second boundary.",
});
const boundaryBoundaryConfig = new gcp.resourcemanager.BoundaryConfig("boundary", {
parent: "organizations/123456789",
tagKey: boundary.namespacedName,
});
const boundary1Boundary = new gcp.resourcemanager.Boundary("boundary_1", {
parent: "organizations/123456789",
boundaryId: "boundary-1",
displayName: "Boundary 1",
resourceFilter: {
tagFilter: {
tagKey: boundaryBoundaryConfig.tagKey,
tagValue: boundary1.shortName,
},
},
});
const boundary2Boundary = new gcp.resourcemanager.Boundary("boundary_2", {
parent: "organizations/123456789",
boundaryId: "boundary-2",
displayName: "Boundary 2",
resourceFilter: {
tagFilter: {
tagKey: boundaryBoundaryConfig.tagKey,
tagValue: boundary2.shortName,
},
},
});
const capabilityConfig = new gcp.resourcemanager.CapabilityConfig("capability_config", {
parent: "organizations/123456789",
capabilityConfigId: "capcfg",
displayName: "capdisp",
types: ["AGENT_MANAGEMENT"],
boundaries: [boundary1Boundary.name],
}, {
dependsOn: [
boundary1Boundary,
boundary2Boundary,
],
});
import pulumi
import pulumi_gcp as gcp
boundary = gcp.tags.TagKey("boundary",
parent="organizations/123456789",
short_name="bndkey",
description="Partitioning tag key used by boundaries.")
boundary1 = gcp.tags.TagValue("boundary_1",
parent=boundary.id,
short_name="bndval-1",
description="Tag value for the first boundary.")
boundary2 = gcp.tags.TagValue("boundary_2",
parent=boundary.id,
short_name="bndval-2",
description="Tag value for the second boundary.")
boundary_boundary_config = gcp.resourcemanager.BoundaryConfig("boundary",
parent="organizations/123456789",
tag_key=boundary.namespaced_name)
boundary1_boundary = gcp.resourcemanager.Boundary("boundary_1",
parent="organizations/123456789",
boundary_id="boundary-1",
display_name="Boundary 1",
resource_filter={
"tag_filter": {
"tag_key": boundary_boundary_config.tag_key,
"tag_value": boundary1.short_name,
},
})
boundary2_boundary = gcp.resourcemanager.Boundary("boundary_2",
parent="organizations/123456789",
boundary_id="boundary-2",
display_name="Boundary 2",
resource_filter={
"tag_filter": {
"tag_key": boundary_boundary_config.tag_key,
"tag_value": boundary2.short_name,
},
})
capability_config = gcp.resourcemanager.CapabilityConfig("capability_config",
parent="organizations/123456789",
capability_config_id="capcfg",
display_name="capdisp",
types=["AGENT_MANAGEMENT"],
boundaries=[boundary1_boundary.name],
opts = pulumi.ResourceOptions(depends_on=[
boundary1_boundary,
boundary2_boundary,
]))
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v10/go/gcp/resourcemanager"
"github.com/pulumi/pulumi-gcp/sdk/v10/go/gcp/tags"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
boundary, err := tags.NewTagKey(ctx, "boundary", &tags.TagKeyArgs{
Parent: pulumi.String("organizations/123456789"),
ShortName: pulumi.String("bndkey"),
Description: pulumi.String("Partitioning tag key used by boundaries."),
})
if err != nil {
return err
}
boundary1, err := tags.NewTagValue(ctx, "boundary_1", &tags.TagValueArgs{
Parent: boundary.ID(),
ShortName: pulumi.String("bndval-1"),
Description: pulumi.String("Tag value for the first boundary."),
})
if err != nil {
return err
}
boundary2, err := tags.NewTagValue(ctx, "boundary_2", &tags.TagValueArgs{
Parent: boundary.ID(),
ShortName: pulumi.String("bndval-2"),
Description: pulumi.String("Tag value for the second boundary."),
})
if err != nil {
return err
}
boundaryBoundaryConfig, err := resourcemanager.NewBoundaryConfig(ctx, "boundary", &resourcemanager.BoundaryConfigArgs{
Parent: pulumi.String("organizations/123456789"),
TagKey: boundary.NamespacedName,
})
if err != nil {
return err
}
boundary1Boundary, err := resourcemanager.NewBoundary(ctx, "boundary_1", &resourcemanager.BoundaryArgs{
Parent: pulumi.String("organizations/123456789"),
BoundaryId: pulumi.String("boundary-1"),
DisplayName: pulumi.String("Boundary 1"),
ResourceFilter: &resourcemanager.BoundaryResourceFilterArgs{
TagFilter: &resourcemanager.BoundaryResourceFilterTagFilterArgs{
TagKey: boundaryBoundaryConfig.TagKey,
TagValue: boundary1.ShortName,
},
},
})
if err != nil {
return err
}
boundary2Boundary, err := resourcemanager.NewBoundary(ctx, "boundary_2", &resourcemanager.BoundaryArgs{
Parent: pulumi.String("organizations/123456789"),
BoundaryId: pulumi.String("boundary-2"),
DisplayName: pulumi.String("Boundary 2"),
ResourceFilter: &resourcemanager.BoundaryResourceFilterArgs{
TagFilter: &resourcemanager.BoundaryResourceFilterTagFilterArgs{
TagKey: boundaryBoundaryConfig.TagKey,
TagValue: boundary2.ShortName,
},
},
})
if err != nil {
return err
}
_, 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"),
},
Boundaries: pulumi.StringArray{
boundary1Boundary.Name,
},
}, pulumi.DependsOn([]pulumi.Resource{
boundary1Boundary,
boundary2Boundary,
}))
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 boundary = new Gcp.Tags.TagKey("boundary", new()
{
Parent = "organizations/123456789",
ShortName = "bndkey",
Description = "Partitioning tag key used by boundaries.",
});
var boundary1 = new Gcp.Tags.TagValue("boundary_1", new()
{
Parent = boundary.Id,
ShortName = "bndval-1",
Description = "Tag value for the first boundary.",
});
var boundary2 = new Gcp.Tags.TagValue("boundary_2", new()
{
Parent = boundary.Id,
ShortName = "bndval-2",
Description = "Tag value for the second boundary.",
});
var boundaryBoundaryConfig = new Gcp.ResourceManager.BoundaryConfig("boundary", new()
{
Parent = "organizations/123456789",
TagKey = boundary.NamespacedName,
});
var boundary1Boundary = new Gcp.ResourceManager.Boundary("boundary_1", new()
{
Parent = "organizations/123456789",
BoundaryId = "boundary-1",
DisplayName = "Boundary 1",
ResourceFilter = new Gcp.ResourceManager.Inputs.BoundaryResourceFilterArgs
{
TagFilter = new Gcp.ResourceManager.Inputs.BoundaryResourceFilterTagFilterArgs
{
TagKey = boundaryBoundaryConfig.TagKey,
TagValue = boundary1.ShortName,
},
},
});
var boundary2Boundary = new Gcp.ResourceManager.Boundary("boundary_2", new()
{
Parent = "organizations/123456789",
BoundaryId = "boundary-2",
DisplayName = "Boundary 2",
ResourceFilter = new Gcp.ResourceManager.Inputs.BoundaryResourceFilterArgs
{
TagFilter = new Gcp.ResourceManager.Inputs.BoundaryResourceFilterTagFilterArgs
{
TagKey = boundaryBoundaryConfig.TagKey,
TagValue = boundary2.ShortName,
},
},
});
var capabilityConfig = new Gcp.ResourceManager.CapabilityConfig("capability_config", new()
{
Parent = "organizations/123456789",
CapabilityConfigId = "capcfg",
DisplayName = "capdisp",
Types = new[]
{
"AGENT_MANAGEMENT",
},
Boundaries = new[]
{
boundary1Boundary.Name,
},
}, new CustomResourceOptions
{
DependsOn =
{
boundary1Boundary,
boundary2Boundary,
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.tags.TagKey;
import com.pulumi.gcp.tags.TagKeyArgs;
import com.pulumi.gcp.tags.TagValue;
import com.pulumi.gcp.tags.TagValueArgs;
import com.pulumi.gcp.resourcemanager.BoundaryConfig;
import com.pulumi.gcp.resourcemanager.BoundaryConfigArgs;
import com.pulumi.gcp.resourcemanager.Boundary;
import com.pulumi.gcp.resourcemanager.BoundaryArgs;
import com.pulumi.gcp.resourcemanager.inputs.BoundaryResourceFilterArgs;
import com.pulumi.gcp.resourcemanager.inputs.BoundaryResourceFilterTagFilterArgs;
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 boundary = new TagKey("boundary", TagKeyArgs.builder()
.parent("organizations/123456789")
.shortName("bndkey")
.description("Partitioning tag key used by boundaries.")
.build());
var boundary1 = new TagValue("boundary1", TagValueArgs.builder()
.parent(boundary.id())
.shortName("bndval-1")
.description("Tag value for the first boundary.")
.build());
var boundary2 = new TagValue("boundary2", TagValueArgs.builder()
.parent(boundary.id())
.shortName("bndval-2")
.description("Tag value for the second boundary.")
.build());
var boundaryBoundaryConfig = new BoundaryConfig("boundaryBoundaryConfig", BoundaryConfigArgs.builder()
.parent("organizations/123456789")
.tagKey(boundary.namespacedName())
.build());
var boundary1Boundary = new Boundary("boundary1Boundary", BoundaryArgs.builder()
.parent("organizations/123456789")
.boundaryId("boundary-1")
.displayName("Boundary 1")
.resourceFilter(BoundaryResourceFilterArgs.builder()
.tagFilter(BoundaryResourceFilterTagFilterArgs.builder()
.tagKey(boundaryBoundaryConfig.tagKey())
.tagValue(boundary1.shortName())
.build())
.build())
.build());
var boundary2Boundary = new Boundary("boundary2Boundary", BoundaryArgs.builder()
.parent("organizations/123456789")
.boundaryId("boundary-2")
.displayName("Boundary 2")
.resourceFilter(BoundaryResourceFilterArgs.builder()
.tagFilter(BoundaryResourceFilterTagFilterArgs.builder()
.tagKey(boundaryBoundaryConfig.tagKey())
.tagValue(boundary2.shortName())
.build())
.build())
.build());
var capabilityConfig = new CapabilityConfig("capabilityConfig", CapabilityConfigArgs.builder()
.parent("organizations/123456789")
.capabilityConfigId("capcfg")
.displayName("capdisp")
.types("AGENT_MANAGEMENT")
.boundaries(boundary1Boundary.name())
.build(), CustomResourceOptions.builder()
.dependsOn(
boundary1Boundary,
boundary2Boundary)
.build());
}
}
resources:
boundary:
type: gcp:tags:TagKey
properties:
parent: organizations/123456789
shortName: bndkey
description: Partitioning tag key used by boundaries.
boundary1:
type: gcp:tags:TagValue
name: boundary_1
properties:
parent: ${boundary.id}
shortName: bndval-1
description: Tag value for the first boundary.
boundary2:
type: gcp:tags:TagValue
name: boundary_2
properties:
parent: ${boundary.id}
shortName: bndval-2
description: Tag value for the second boundary.
boundaryBoundaryConfig:
type: gcp:resourcemanager:BoundaryConfig
name: boundary
properties:
parent: organizations/123456789
tagKey: ${boundary.namespacedName}
boundary1Boundary:
type: gcp:resourcemanager:Boundary
name: boundary_1
properties:
parent: organizations/123456789
boundaryId: boundary-1
displayName: Boundary 1
resourceFilter:
tagFilter:
tagKey: ${boundaryBoundaryConfig.tagKey}
tagValue: ${boundary1.shortName}
boundary2Boundary:
type: gcp:resourcemanager:Boundary
name: boundary_2
properties:
parent: organizations/123456789
boundaryId: boundary-2
displayName: Boundary 2
resourceFilter:
tagFilter:
tagKey: ${boundaryBoundaryConfig.tagKey}
tagValue: ${boundary2.shortName}
capabilityConfig:
type: gcp:resourcemanager:CapabilityConfig
name: capability_config
properties:
parent: organizations/123456789
capabilityConfigId: capcfg
displayName: capdisp
types:
- AGENT_MANAGEMENT
boundaries:
- ${boundary1Boundary.name}
options:
dependsOn:
- ${boundary1Boundary}
- ${boundary2Boundary}
terraform {
required_providers {
gcp = {
source = "pulumi/gcp"
}
}
}
resource "gcp_tags_tag_key" "boundary" {
lifecycle {
create_before_destroy = true
}
parent = "organizations/123456789"
short_name = "bndkey"
description = "Partitioning tag key used by boundaries."
}
resource "gcp_tags_tag_value" "boundary_1" {
lifecycle {
create_before_destroy = true
}
parent = gcp_tags_tag_key.boundary.id
short_name = "bndval-1"
description = "Tag value for the first boundary."
}
resource "gcp_tags_tag_value" "boundary_2" {
lifecycle {
create_before_destroy = true
}
parent = gcp_tags_tag_key.boundary.id
short_name = "bndval-2"
description = "Tag value for the second boundary."
}
resource "gcp_resourcemanager_boundary_config" "boundary" {
lifecycle {
create_before_destroy = true
}
parent = "organizations/123456789"
tag_key = gcp_tags_tag_key.boundary.namespaced_name
}
resource "gcp_resourcemanager_boundary" "boundary_1" {
lifecycle {
create_before_destroy = true
}
parent = "organizations/123456789"
boundary_id = "boundary-1"
display_name = "Boundary 1"
resource_filter = {
tag_filter = {
tag_key = gcp_resourcemanager_boundary_config.boundary.tag_key
tag_value = gcp_tags_tag_value.boundary_1.short_name
}
}
}
resource "gcp_resourcemanager_boundary" "boundary_2" {
lifecycle {
create_before_destroy = true
}
parent = "organizations/123456789"
boundary_id = "boundary-2"
display_name = "Boundary 2"
resource_filter = {
tag_filter = {
tag_key = gcp_resourcemanager_boundary_config.boundary.tag_key
tag_value = gcp_tags_tag_value.boundary_2.short_name
}
}
}
resource "gcp_resourcemanager_capability_config" "capability_config" {
depends_on = [gcp_resourcemanager_boundary.boundary_1, gcp_resourcemanager_boundary.boundary_2]
lifecycle {
create_before_destroy = true
}
parent = "organizations/123456789"
capability_config_id = "capcfg"
display_name = "capdisp"
types = ["AGENT_MANAGEMENT"]
boundaries = [gcp_resourcemanager_boundary.boundary_1.name]
}
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}
terraform {
required_providers {
gcp = {
source = "pulumi/gcp"
}
time = {
source = "pulumi/time"
}
}
}
resource "gcp_organizations_folder" "folder" {
lifecycle {
create_before_destroy = true
}
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" {
lifecycle {
create_before_destroy = true
}
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]
lifecycle {
create_before_destroy = true
}
create_duration = "60s"
}
resource "gcp_resourcemanager_capability_config" "capability_config" {
depends_on = [time_sleep.wait_60_seconds]
lifecycle {
create_before_destroy = true
}
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}
terraform {
required_providers {
gcp = {
source = "pulumi/gcp"
}
time = {
source = "pulumi/time"
}
}
}
resource "gcp_organizations_project" "project" {
lifecycle {
create_before_destroy = true
}
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]
lifecycle {
create_before_destroy = true
}
create_duration = "60s"
}
resource "gcp_resourcemanager_capability_config" "capability_config" {
depends_on = [time_sleep.wait_60_seconds]
lifecycle {
create_before_destroy = true
}
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,
boundaries: 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",
},
Boundaries = 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"),
},
Boundaries: 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"]
boundaries = ["string"]
deletion_policy = "string"
display_name = "string"
management_project = "string"
}
var capabilityConfigResource = new CapabilityConfig("capabilityConfigResource", CapabilityConfigArgs.builder()
.capabilityConfigId("string")
.parent("string")
.types("string")
.boundaries("string")
.deletionPolicy("string")
.displayName("string")
.managementProject("string")
.build());
capability_config_resource = gcp.resourcemanager.CapabilityConfig("capabilityConfigResource",
capability_config_id="string",
parent="string",
types=["string"],
boundaries=["string"],
deletion_policy="string",
display_name="string",
management_project="string")
const capabilityConfigResource = new gcp.resourcemanager.CapabilityConfig("capabilityConfigResource", {
capabilityConfigId: "string",
parent: "string",
types: ["string"],
boundaries: ["string"],
deletionPolicy: "string",
displayName: "string",
managementProject: "string",
});
type: gcp:resourcemanager:CapabilityConfig
properties:
boundaries:
- string
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".
- Boundaries List<string>
- The list of Boundaries associated with this capability config.
Format:
organizations/{organization}/boundaries/{boundary}orfolders/{folder}/boundaries/{boundary}. Boundaries must share the capability config's parent, and cannot be specified for project-scoped capability configs. - 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".
- Boundaries []string
- The list of Boundaries associated with this capability config.
Format:
organizations/{organization}/boundaries/{boundary}orfolders/{folder}/boundaries/{boundary}. Boundaries must share the capability config's parent, and cannot be specified for project-scoped capability configs. - 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".
- boundaries list(string)
- The list of Boundaries associated with this capability config.
Format:
organizations/{organization}/boundaries/{boundary}orfolders/{folder}/boundaries/{boundary}. Boundaries must share the capability config's parent, and cannot be specified for project-scoped capability configs. - 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".
- boundaries List<String>
- The list of Boundaries associated with this capability config.
Format:
organizations/{organization}/boundaries/{boundary}orfolders/{folder}/boundaries/{boundary}. Boundaries must share the capability config's parent, and cannot be specified for project-scoped capability configs. - 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".
- boundaries string[]
- The list of Boundaries associated with this capability config.
Format:
organizations/{organization}/boundaries/{boundary}orfolders/{folder}/boundaries/{boundary}. Boundaries must share the capability config's parent, and cannot be specified for project-scoped capability configs. - 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".
- boundaries Sequence[str]
- The list of Boundaries associated with this capability config.
Format:
organizations/{organization}/boundaries/{boundary}orfolders/{folder}/boundaries/{boundary}. Boundaries must share the capability config's parent, and cannot be specified for project-scoped capability configs. - 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".
- boundaries List<String>
- The list of Boundaries associated with this capability config.
Format:
organizations/{organization}/boundaries/{boundary}orfolders/{folder}/boundaries/{boundary}. Boundaries must share the capability config's parent, and cannot be specified for project-scoped capability configs. - 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,
boundaries: Optional[Sequence[str]] = 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: existingCapabilityConfig: type: gcp:resourcemanager:CapabilityConfig get: id: ${id}import {
to = gcp_resourcemanager_capability_config.example
id = "${id}"
}
- name string
- The unique name of the resulting resource.
- id Input<ID>
- The unique provider ID of the resource to look up.
- state CapabilityConfigState
- Known property values the provider needs, along with the ID, to find the resource. Usually not required.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resulting resource.
- id str
- The unique provider ID of the resource to look up.
- 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 resulting resource.
- id IDInput
- The unique provider ID of the resource to look up.
- state CapabilityConfigState
- Known property values the provider needs, along with the ID, to find the resource. Usually not required.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resulting resource.
- id Input<string>
- The unique provider ID of the resource to look up.
- state CapabilityConfigState
- Known property values the provider needs, along with the ID, to find the resource. Usually not required.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resulting resource.
- id Output<String>
- The unique provider ID of the resource to look up.
- state CapabilityConfigState
- Known property values the provider needs, along with the ID, to find the resource. Usually not required.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
- Boundaries List<string>
- The list of Boundaries associated with this capability config.
Format:
organizations/{organization}/boundaries/{boundary}orfolders/{folder}/boundaries/{boundary}. Boundaries must share the capability config's parent, and cannot be specified for project-scoped capability configs. - 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.
- Boundaries []string
- The list of Boundaries associated with this capability config.
Format:
organizations/{organization}/boundaries/{boundary}orfolders/{folder}/boundaries/{boundary}. Boundaries must share the capability config's parent, and cannot be specified for project-scoped capability configs. - 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.
- boundaries list(string)
- The list of Boundaries associated with this capability config.
Format:
organizations/{organization}/boundaries/{boundary}orfolders/{folder}/boundaries/{boundary}. Boundaries must share the capability config's parent, and cannot be specified for project-scoped capability configs. - 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.
- boundaries List<String>
- The list of Boundaries associated with this capability config.
Format:
organizations/{organization}/boundaries/{boundary}orfolders/{folder}/boundaries/{boundary}. Boundaries must share the capability config's parent, and cannot be specified for project-scoped capability configs. - 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.
- boundaries string[]
- The list of Boundaries associated with this capability config.
Format:
organizations/{organization}/boundaries/{boundary}orfolders/{folder}/boundaries/{boundary}. Boundaries must share the capability config's parent, and cannot be specified for project-scoped capability configs. - 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.
- boundaries Sequence[str]
- The list of Boundaries associated with this capability config.
Format:
organizations/{organization}/boundaries/{boundary}orfolders/{folder}/boundaries/{boundary}. Boundaries must share the capability config's parent, and cannot be specified for project-scoped capability configs. - 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.
- boundaries List<String>
- The list of Boundaries associated with this capability config.
Format:
organizations/{organization}/boundaries/{boundary}orfolders/{folder}/boundaries/{boundary}. Boundaries must share the capability config's parent, and cannot be specified for project-scoped capability configs. - 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) pulumi/pulumi-gcp
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
google-betaTerraform Provider.
published on Wednesday, Nov 18, 2026 by Pulumi