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"});
import pulumi
import pulumi_gcp as gcp
cloud_armor_tier_config = gcp.compute.ProjectCloudArmorTier("cloud_armor_tier_config", cloud_armor_tier="CA_STANDARD")
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
})
}
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",
});
});
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());
}
}
resources:
cloudArmorTierConfig:
type: gcp:compute:ProjectCloudArmorTier
name: cloud_armor_tier_config
properties:
cloudArmorTier: CA_STANDARD
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],
});
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]))
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
})
}
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,
},
});
});
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());
}
}
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}
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 string
- The unique name of the resource.
- args ProjectCloudArmorTierArgs
- 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 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 string
- The unique name of the resource.
- args ProjectCloudArmorTierArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ProjectCloudArmorTierArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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",
});
example, err := compute.NewProjectCloudArmorTier(ctx, "projectCloudArmorTierResource", &compute.ProjectCloudArmorTierArgs{
CloudArmorTier: pulumi.String("string"),
Project: pulumi.String("string"),
})
var projectCloudArmorTierResource = new ProjectCloudArmorTier("projectCloudArmorTierResource", ProjectCloudArmorTierArgs.builder()
.cloudArmorTier("string")
.project("string")
.build());
project_cloud_armor_tier_resource = gcp.compute.ProjectCloudArmorTier("projectCloudArmorTierResource",
cloud_armor_tier="string",
project="string")
const projectCloudArmorTierResource = new gcp.compute.ProjectCloudArmorTier("projectCloudArmorTierResource", {
cloudArmorTier: "string",
project: "string",
});
type: gcp:compute:ProjectCloudArmorTier
properties:
cloudArmorTier: string
project: string
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:
- Cloud
Armor stringTier - Managed protection tier to be set.
Possible values are:
CA_STANDARD
,CA_ENTERPRISE_PAYGO
. - Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Cloud
Armor stringTier - Managed protection tier to be set.
Possible values are:
CA_STANDARD
,CA_ENTERPRISE_PAYGO
. - Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- cloud
Armor StringTier - Managed protection tier to be set.
Possible values are:
CA_STANDARD
,CA_ENTERPRISE_PAYGO
. - project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- cloud
Armor stringTier - Managed protection tier to be set.
Possible values are:
CA_STANDARD
,CA_ENTERPRISE_PAYGO
. - project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- cloud_
armor_ strtier - Managed protection tier to be set.
Possible values are:
CA_STANDARD
,CA_ENTERPRISE_PAYGO
. - project str
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- cloud
Armor StringTier - Managed protection tier to be set.
Possible values are:
CA_STANDARD
,CA_ENTERPRISE_PAYGO
. - project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
Outputs
All input properties are implicitly available as output properties. Additionally, the 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)
Resource lookup is not supported in YAML
- 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.
- Cloud
Armor stringTier - Managed protection tier to be set.
Possible values are:
CA_STANDARD
,CA_ENTERPRISE_PAYGO
. - Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Cloud
Armor stringTier - Managed protection tier to be set.
Possible values are:
CA_STANDARD
,CA_ENTERPRISE_PAYGO
. - Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- cloud
Armor StringTier - Managed protection tier to be set.
Possible values are:
CA_STANDARD
,CA_ENTERPRISE_PAYGO
. - project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- cloud
Armor stringTier - Managed protection tier to be set.
Possible values are:
CA_STANDARD
,CA_ENTERPRISE_PAYGO
. - project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- cloud_
armor_ strtier - Managed protection tier to be set.
Possible values are:
CA_STANDARD
,CA_ENTERPRISE_PAYGO
. - project str
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- cloud
Armor StringTier - Managed protection tier to be set.
Possible values are:
CA_STANDARD
,CA_ENTERPRISE_PAYGO
. - project 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}}
$ pulumi import gcp:compute/projectCloudArmorTier:ProjectCloudArmorTier default {{project}}
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.