pulumi_wasm_providers_gcp_mini::compute

Module organization_security_policy

source
Expand description

Organization security policies are used to control incoming/outgoing traffic.

To get more information about OrganizationSecurityPolicy, see:

§Example Usage

§Organization Security Policy Basic

use pulumi_wasm_rust::Output;
use pulumi_wasm_rust::{add_export, pulumi_main};
#[pulumi_main]
fn test_main() -> Result<(), Error> {
    let policy = organization_security_policy::create(
        "policy",
        OrganizationSecurityPolicyArgs::builder()
            .display_name("tf-test")
            .parent("organizations/123456789")
            .build_struct(),
    );
}

§Import

OrganizationSecurityPolicy can be imported using any of these accepted formats:

  • locations/global/securityPolicies/{{policy_id}}

  • {{policy_id}}

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

$ pulumi import gcp:compute/organizationSecurityPolicy:OrganizationSecurityPolicy default locations/global/securityPolicies/{{policy_id}}
$ pulumi import gcp:compute/organizationSecurityPolicy:OrganizationSecurityPolicy default {{policy_id}}

Structs§

Functions§

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