# Class EndpointControlPolicy (0.7.0)

0.7.0 (latest) 0.6.0 0.5.0 0.4.0 0.3.0

    EndpointControlPolicy(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Defines project/location level endpoint control policy.

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `enforcement_scope` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-ces/latest/google.cloud.ces_v1beta.types.EndpointControlPolicy.EnforcementScope` Optional. The scope in which this policy's allowed_origins list is enforced. |
| `allowed_origins` | `MutableSequence[str]` Optional. The allowed HTTP(s) origins that tools in the App are able to directly call. The enforcement depends on the value of enforcement_scope and the VPC-SC status of the project. If a port number is not provided, all ports will be allowed. Otherwise, the port number must match exactly. For example, "https://example.com" will match "https://example.com:443" and any other port. "https://example.com:443" will only match "https://example.com:443". |

## Classes

### EnforcementScope

    EnforcementScope(value)

Defines the scope in which this policy's allowed_origins list is
enforced.