pulumi_wasm_providers_gcp_mini::compute

Module project_cloud_armor_tier

source
Expand description

Sets the Cloud Armor tier of the project.

To get more information about ProjectCloudArmorTier, see:

§Example Usage

§Compute Project Cloud Armor Tier Basic

use pulumi_wasm_rust::Output;
use pulumi_wasm_rust::{add_export, pulumi_main};
#[pulumi_main]
fn test_main() -> Result<(), Error> {
    let cloudArmorTierConfig = project_cloud_armor_tier::create(
        "cloudArmorTierConfig",
        ProjectCloudArmorTierArgs::builder()
            .cloud_armor_tier("CA_STANDARD")
            .build_struct(),
    );
}

§Compute Project Cloud Armor Tier Project Set

use pulumi_wasm_rust::Output;
use pulumi_wasm_rust::{add_export, pulumi_main};
#[pulumi_main]
fn test_main() -> Result<(), Error> {
    let cloudArmorTierConfig = project_cloud_armor_tier::create(
        "cloudArmorTierConfig",
        ProjectCloudArmorTierArgs::builder()
            .cloud_armor_tier("CA_STANDARD")
            .project("${project.projectId}")
            .build_struct(),
    );
    let compute = service::create(
        "compute",
        ServiceArgs::builder()
            .project("${project.projectId}")
            .service("compute.googleapis.com")
            .build_struct(),
    );
    let project = project::create(
        "project",
        ProjectArgs::builder()
            .billing_account("000000-0000000-0000000-000000")
            .deletion_policy("DELETE")
            .name("your_project_id")
            .org_id("123456789")
            .project_id("your_project_id")
            .build_struct(),
    );
}

§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}}

Structs§

Functions§

  • Registers a new resource with the given unique name and arguments