Skip to content

Commit

Permalink
Use the correct resource type in the google_organization_policy examp…
Browse files Browse the repository at this point in the history
…les. (#868)
  • Loading branch information
ubschmidt2 authored and rosbo committed Dec 15, 2017
1 parent dc5075b commit 78db4bf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions website/docs/r/google_organization_policy.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ documentation](https://cloud.google.com/resource-manager/docs/organization-polic
To set policy with a [boolean constraint](https://cloud.google.com/resource-manager/docs/organization-policy/quickstart-boolean-constraints):

```hcl
resource "google_folder_organization_policy" "serial_port_policy" {
resource "google_organization_policy" "serial_port_policy" {
org_id = "123456789"
constraint = "compute.disableSerialPortAccess"
Expand All @@ -32,7 +32,7 @@ resource "google_folder_organization_policy" "serial_port_policy" {
To set a policy with a [list contraint](https://cloud.google.com/resource-manager/docs/organization-policy/quickstart-list-constraints):

```hcl
resource "google_folder_organization_policy" "services_policy" {
resource "google_organization_policy" "services_policy" {
org_id = "123456789"
constraint = "serviceuser.services"
Expand All @@ -48,7 +48,7 @@ resource "google_folder_organization_policy" "services_policy" {
Or to deny some services, use the following instead:

```hcl
resource "google_folder_organization_policy" "services_policy" {
resource "google_organization_policy" "services_policy" {
org_id = "123456789"
constraint = "serviceuser.services"
Expand Down Expand Up @@ -110,4 +110,4 @@ exported:
Organization Policies can be imported using the `org_id` and the `contraint`, e.g.

```
$ terraform import google_folder_organization_policy.services_policy 123456789:constraints/serviceuser.services
$ terraform import google_organization_policy.services_policy 123456789:constraints/serviceuser.services

0 comments on commit 78db4bf

Please sign in to comment.