Expand description
Organization security policies are used to control incoming/outgoing traffic.
To get more information about OrganizationSecurityPolicy, see:
- API documentation
- How-to Guides
§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§
- Use builder syntax to set the inputs and finish with
build_struct()
.
Functions§
- Registers a new resource with the given unique name and arguments