1. Packages
  2. Google Cloud (GCP) Classic
  3. API Docs
  4. compute
  5. ProjectCloudArmorTier
Google Cloud v8.26.0 published on Thursday, Apr 10, 2025 by Pulumi

gcp.compute.ProjectCloudArmorTier

Explore with Pulumi AI

Sets the Cloud Armor tier of the project.

To get more information about ProjectCloudArmorTier, see:

Example Usage

Compute Project Cloud Armor Tier Basic

import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";

const cloudArmorTierConfig = new gcp.compute.ProjectCloudArmorTier("cloud_armor_tier_config", {cloudArmorTier: "CA_STANDARD"});
Copy
import pulumi
import pulumi_gcp as gcp

cloud_armor_tier_config = gcp.compute.ProjectCloudArmorTier("cloud_armor_tier_config", cloud_armor_tier="CA_STANDARD")
Copy
package main

import (
	"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/compute"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := compute.NewProjectCloudArmorTier(ctx, "cloud_armor_tier_config", &compute.ProjectCloudArmorTierArgs{
			CloudArmorTier: pulumi.String("CA_STANDARD"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;

return await Deployment.RunAsync(() => 
{
    var cloudArmorTierConfig = new Gcp.Compute.ProjectCloudArmorTier("cloud_armor_tier_config", new()
    {
        CloudArmorTier = "CA_STANDARD",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.compute.ProjectCloudArmorTier;
import com.pulumi.gcp.compute.ProjectCloudArmorTierArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var cloudArmorTierConfig = new ProjectCloudArmorTier("cloudArmorTierConfig", ProjectCloudArmorTierArgs.builder()
            .cloudArmorTier("CA_STANDARD")
            .build());

    }
}
Copy
resources:
  cloudArmorTierConfig:
    type: gcp:compute:ProjectCloudArmorTier
    name: cloud_armor_tier_config
    properties:
      cloudArmorTier: CA_STANDARD
Copy

Compute Project Cloud Armor Tier Project Set

import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";

const project = new gcp.organizations.Project("project", {
    projectId: "your_project_id",
    name: "your_project_id",
    orgId: "123456789",
    billingAccount: "000000-0000000-0000000-000000",
    deletionPolicy: "DELETE",
});
const compute = new gcp.projects.Service("compute", {
    project: project.projectId,
    service: "compute.googleapis.com",
});
const cloudArmorTierConfig = new gcp.compute.ProjectCloudArmorTier("cloud_armor_tier_config", {
    project: project.projectId,
    cloudArmorTier: "CA_STANDARD",
}, {
    dependsOn: [compute],
});
Copy
import pulumi
import pulumi_gcp as gcp

project = gcp.organizations.Project("project",
    project_id="your_project_id",
    name="your_project_id",
    org_id="123456789",
    billing_account="000000-0000000-0000000-000000",
    deletion_policy="DELETE")
compute = gcp.projects.Service("compute",
    project=project.project_id,
    service="compute.googleapis.com")
cloud_armor_tier_config = gcp.compute.ProjectCloudArmorTier("cloud_armor_tier_config",
    project=project.project_id,
    cloud_armor_tier="CA_STANDARD",
    opts = pulumi.ResourceOptions(depends_on=[compute]))
Copy
package main

import (
	"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/compute"
	"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/organizations"
	"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/projects"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		project, err := organizations.NewProject(ctx, "project", &organizations.ProjectArgs{
			ProjectId:      pulumi.String("your_project_id"),
			Name:           pulumi.String("your_project_id"),
			OrgId:          pulumi.String("123456789"),
			BillingAccount: pulumi.String("000000-0000000-0000000-000000"),
			DeletionPolicy: pulumi.String("DELETE"),
		})
		if err != nil {
			return err
		}
		compute, err := projects.NewService(ctx, "compute", &projects.ServiceArgs{
			Project: project.ProjectId,
			Service: pulumi.String("compute.googleapis.com"),
		})
		if err != nil {
			return err
		}
		_, err = compute.NewProjectCloudArmorTier(ctx, "cloud_armor_tier_config", &compute.ProjectCloudArmorTierArgs{
			Project:        project.ProjectId,
			CloudArmorTier: pulumi.String("CA_STANDARD"),
		}, pulumi.DependsOn([]pulumi.Resource{
			compute,
		}))
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;

return await Deployment.RunAsync(() => 
{
    var project = new Gcp.Organizations.Project("project", new()
    {
        ProjectId = "your_project_id",
        Name = "your_project_id",
        OrgId = "123456789",
        BillingAccount = "000000-0000000-0000000-000000",
        DeletionPolicy = "DELETE",
    });

    var compute = new Gcp.Projects.Service("compute", new()
    {
        Project = project.ProjectId,
        ServiceName = "compute.googleapis.com",
    });

    var cloudArmorTierConfig = new Gcp.Compute.ProjectCloudArmorTier("cloud_armor_tier_config", new()
    {
        Project = project.ProjectId,
        CloudArmorTier = "CA_STANDARD",
    }, new CustomResourceOptions
    {
        DependsOn =
        {
            compute,
        },
    });

});
Copy
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.pulumi.gcp.projects.Service;
import com.pulumi.gcp.projects.ServiceArgs;
import com.pulumi.gcp.compute.ProjectCloudArmorTier;
import com.pulumi.gcp.compute.ProjectCloudArmorTierArgs;
import com.pulumi.resources.CustomResourceOptions;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var project = new Project("project", ProjectArgs.builder()
            .projectId("your_project_id")
            .name("your_project_id")
            .orgId("123456789")
            .billingAccount("000000-0000000-0000000-000000")
            .deletionPolicy("DELETE")
            .build());

        var compute = new Service("compute", ServiceArgs.builder()
            .project(project.projectId())
            .service("compute.googleapis.com")
            .build());

        var cloudArmorTierConfig = new ProjectCloudArmorTier("cloudArmorTierConfig", ProjectCloudArmorTierArgs.builder()
            .project(project.projectId())
            .cloudArmorTier("CA_STANDARD")
            .build(), CustomResourceOptions.builder()
                .dependsOn(compute)
                .build());

    }
}
Copy
resources:
  project:
    type: gcp:organizations:Project
    properties:
      projectId: your_project_id
      name: your_project_id
      orgId: '123456789'
      billingAccount: 000000-0000000-0000000-000000
      deletionPolicy: DELETE
  compute:
    type: gcp:projects:Service
    properties:
      project: ${project.projectId}
      service: compute.googleapis.com
  cloudArmorTierConfig:
    type: gcp:compute:ProjectCloudArmorTier
    name: cloud_armor_tier_config
    properties:
      project: ${project.projectId}
      cloudArmorTier: CA_STANDARD
    options:
      dependsOn:
        - ${compute}
Copy

Create ProjectCloudArmorTier Resource

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

Constructor syntax

new ProjectCloudArmorTier(name: string, args: ProjectCloudArmorTierArgs, opts?: CustomResourceOptions);
@overload
def ProjectCloudArmorTier(resource_name: str,
                          args: ProjectCloudArmorTierArgs,
                          opts: Optional[ResourceOptions] = None)

@overload
def ProjectCloudArmorTier(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          cloud_armor_tier: Optional[str] = None,
                          project: Optional[str] = None)
func NewProjectCloudArmorTier(ctx *Context, name string, args ProjectCloudArmorTierArgs, opts ...ResourceOption) (*ProjectCloudArmorTier, error)
public ProjectCloudArmorTier(string name, ProjectCloudArmorTierArgs args, CustomResourceOptions? opts = null)
public ProjectCloudArmorTier(String name, ProjectCloudArmorTierArgs args)
public ProjectCloudArmorTier(String name, ProjectCloudArmorTierArgs args, CustomResourceOptions options)
type: gcp:compute:ProjectCloudArmorTier
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. ProjectCloudArmorTierArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. ProjectCloudArmorTierArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. ProjectCloudArmorTierArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. ProjectCloudArmorTierArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. ProjectCloudArmorTierArgs
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 projectCloudArmorTierResource = new Gcp.Compute.ProjectCloudArmorTier("projectCloudArmorTierResource", new()
{
    CloudArmorTier = "string",
    Project = "string",
});
Copy
example, err := compute.NewProjectCloudArmorTier(ctx, "projectCloudArmorTierResource", &compute.ProjectCloudArmorTierArgs{
	CloudArmorTier: pulumi.String("string"),
	Project:        pulumi.String("string"),
})
Copy
var projectCloudArmorTierResource = new ProjectCloudArmorTier("projectCloudArmorTierResource", ProjectCloudArmorTierArgs.builder()
    .cloudArmorTier("string")
    .project("string")
    .build());
Copy
project_cloud_armor_tier_resource = gcp.compute.ProjectCloudArmorTier("projectCloudArmorTierResource",
    cloud_armor_tier="string",
    project="string")
Copy
const projectCloudArmorTierResource = new gcp.compute.ProjectCloudArmorTier("projectCloudArmorTierResource", {
    cloudArmorTier: "string",
    project: "string",
});
Copy
type: gcp:compute:ProjectCloudArmorTier
properties:
    cloudArmorTier: string
    project: string
Copy

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

CloudArmorTier This property is required. string
Managed protection tier to be set. Possible values are: CA_STANDARD, CA_ENTERPRISE_PAYGO, CA_ENTERPRISE_ANNUAL.


Project Changes to this property will trigger replacement. string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
CloudArmorTier This property is required. string
Managed protection tier to be set. Possible values are: CA_STANDARD, CA_ENTERPRISE_PAYGO, CA_ENTERPRISE_ANNUAL.


Project Changes to this property will trigger replacement. string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
cloudArmorTier This property is required. String
Managed protection tier to be set. Possible values are: CA_STANDARD, CA_ENTERPRISE_PAYGO, CA_ENTERPRISE_ANNUAL.


project Changes to this property will trigger replacement. String
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
cloudArmorTier This property is required. string
Managed protection tier to be set. Possible values are: CA_STANDARD, CA_ENTERPRISE_PAYGO, CA_ENTERPRISE_ANNUAL.


project Changes to this property will trigger replacement. string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
cloud_armor_tier This property is required. str
Managed protection tier to be set. Possible values are: CA_STANDARD, CA_ENTERPRISE_PAYGO, CA_ENTERPRISE_ANNUAL.


project Changes to this property will trigger replacement. str
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
cloudArmorTier This property is required. String
Managed protection tier to be set. Possible values are: CA_STANDARD, CA_ENTERPRISE_PAYGO, CA_ENTERPRISE_ANNUAL.


project Changes to this property will trigger replacement. String
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

Outputs

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

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.

Look up Existing ProjectCloudArmorTier Resource

Get an existing ProjectCloudArmorTier 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?: ProjectCloudArmorTierState, opts?: CustomResourceOptions): ProjectCloudArmorTier
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        cloud_armor_tier: Optional[str] = None,
        project: Optional[str] = None) -> ProjectCloudArmorTier
func GetProjectCloudArmorTier(ctx *Context, name string, id IDInput, state *ProjectCloudArmorTierState, opts ...ResourceOption) (*ProjectCloudArmorTier, error)
public static ProjectCloudArmorTier Get(string name, Input<string> id, ProjectCloudArmorTierState? state, CustomResourceOptions? opts = null)
public static ProjectCloudArmorTier get(String name, Output<String> id, ProjectCloudArmorTierState state, CustomResourceOptions options)
resources:  _:    type: gcp:compute:ProjectCloudArmorTier    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
CloudArmorTier string
Managed protection tier to be set. Possible values are: CA_STANDARD, CA_ENTERPRISE_PAYGO, CA_ENTERPRISE_ANNUAL.


Project Changes to this property will trigger replacement. string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
CloudArmorTier string
Managed protection tier to be set. Possible values are: CA_STANDARD, CA_ENTERPRISE_PAYGO, CA_ENTERPRISE_ANNUAL.


Project Changes to this property will trigger replacement. string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
cloudArmorTier String
Managed protection tier to be set. Possible values are: CA_STANDARD, CA_ENTERPRISE_PAYGO, CA_ENTERPRISE_ANNUAL.


project Changes to this property will trigger replacement. String
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
cloudArmorTier string
Managed protection tier to be set. Possible values are: CA_STANDARD, CA_ENTERPRISE_PAYGO, CA_ENTERPRISE_ANNUAL.


project Changes to this property will trigger replacement. string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
cloud_armor_tier str
Managed protection tier to be set. Possible values are: CA_STANDARD, CA_ENTERPRISE_PAYGO, CA_ENTERPRISE_ANNUAL.


project Changes to this property will trigger replacement. str
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
cloudArmorTier String
Managed protection tier to be set. Possible values are: CA_STANDARD, CA_ENTERPRISE_PAYGO, CA_ENTERPRISE_ANNUAL.


project Changes to this property will trigger replacement. String
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

Import

ProjectCloudArmorTier can be imported using any of these accepted formats:

  • projects/{{project}}

  • {{project}}

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

$ pulumi import gcp:compute/projectCloudArmorTier:ProjectCloudArmorTier default projects/{{project}}
Copy
$ pulumi import gcp:compute/projectCloudArmorTier:ProjectCloudArmorTier default {{project}}
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
Google Cloud (GCP) Classic pulumi/pulumi-gcp
License
Apache-2.0
Notes
This Pulumi package is based on the google-beta Terraform Provider.