| --- |
| # ---------------------------------------------------------------------------- |
| # |
| # *** AUTO GENERATED CODE *** Type: MMv1 *** |
| # |
| # ---------------------------------------------------------------------------- |
| # |
| # This file is automatically generated by Magic Modules and manual |
| # changes will be clobbered when the file is regenerated. |
| # |
| # Please read more about how to change this file in |
| # .github/CONTRIBUTING.md. |
| # |
| # ---------------------------------------------------------------------------- |
| subcategory: "Access Context Manager (VPC Service Controls)" |
| description: |- |
| This resource has been deprecated, please refer to ServicePerimeterEgressPolicy. |
| --- |
| |
| # google\_access\_context\_manager\_egress\_policy |
| |
| This resource has been deprecated, please refer to ServicePerimeterEgressPolicy. |
| |
| |
| To get more information about EgressPolicy, see: |
| |
| * [API documentation](https://cloud.google.com/access-context-manager/docs/reference/rest/v1/accessPolicies.servicePerimeters#egresspolicy) |
| |
| ## Argument Reference |
| |
| The following arguments are supported: |
| |
| |
| * `resource` - |
| (Required) |
| A GCP resource that is inside of the service perimeter. |
| |
| * `egress_policy_name` - |
| (Required) |
| The name of the Service Perimeter to add this resource to. |
| |
| |
| - - - |
| |
| |
| |
| ## Attributes Reference |
| |
| In addition to the arguments listed above, the following computed attributes are exported: |
| |
| * `id` - an identifier for the resource with format `{{egress_policy_name}}/{{resource}}` |
| |
| |
| ## Timeouts |
| |
| This resource provides the following |
| [Timeouts](https://developer.hashicorp.com/terraform/plugin/sdkv2/resources/retries-and-customizable-timeouts) configuration options: |
| |
| - `create` - Default is 20 minutes. |
| - `delete` - Default is 20 minutes. |
| |
| ## Import |
| |
| |
| EgressPolicy can be imported using any of these accepted formats: |
| |
| * `{{egress_policy_name}}/{{resource}}` |
| |
| |
| In Terraform v1.5.0 and later, use an [`import` block](https://developer.hashicorp.com/terraform/language/import) to import EgressPolicy using one of the formats above. For example: |
| |
| ```tf |
| import { |
| id = "{{egress_policy_name}}/{{resource}}" |
| to = google_access_context_manager_egress_policy.default |
| } |
| ``` |
| |
| When using the [`terraform import` command](https://developer.hashicorp.com/terraform/cli/commands/import), EgressPolicy can be imported using one of the formats above. For example: |
| |
| ``` |
| $ terraform import google_access_context_manager_egress_policy.default {{egress_policy_name}}/{{resource}} |
| ``` |