EndpointPolicyArgs

data class EndpointPolicyArgs(val authorizationPolicy: Output<String>? = null, val clientTlsPolicy: Output<String>? = null, val description: Output<String>? = null, val endpointMatcher: Output<EndpointMatcherArgs>? = null, val endpointPolicyId: Output<String>? = null, val labels: Output<Map<String, String>>? = null, val location: Output<String>? = null, val name: Output<String>? = null, val project: Output<String>? = null, val serverTlsPolicy: Output<String>? = null, val trafficPortSelector: Output<TrafficPortSelectorArgs>? = null, val type: Output<EndpointPolicyType>? = null) : ConvertibleToJava<EndpointPolicyArgs>

Creates a new EndpointPolicy in a given project and location.

Constructors

Link copied to clipboard
fun EndpointPolicyArgs(authorizationPolicy: Output<String>? = null, clientTlsPolicy: Output<String>? = null, description: Output<String>? = null, endpointMatcher: Output<EndpointMatcherArgs>? = null, endpointPolicyId: Output<String>? = null, labels: Output<Map<String, String>>? = null, location: Output<String>? = null, name: Output<String>? = null, project: Output<String>? = null, serverTlsPolicy: Output<String>? = null, trafficPortSelector: Output<TrafficPortSelectorArgs>? = null, type: Output<EndpointPolicyType>? = null)

Functions

Link copied to clipboard
open override fun toJava(): EndpointPolicyArgs

Properties

Link copied to clipboard
val authorizationPolicy: Output<String>? = null

Optional. This field specifies the URL of AuthorizationPolicy resource that applies authorization policies to the inbound traffic at the matched endpoints. Refer to Authorization. If this field is not specified, authorization is disabled(no authz checks) for this endpoint.

Link copied to clipboard
val clientTlsPolicy: Output<String>? = null

Optional. A URL referring to a ClientTlsPolicy resource. ClientTlsPolicy can be set to specify the authentication for traffic from the proxy to the actual endpoints. More specifically, it is applied to the outgoing traffic from the proxy to the endpoint. This is typically used for sidecar model where the proxy identifies itself as endpoint to the control plane, with the connection between sidecar and endpoint requiring authentication. If this field is not set, authentication is disabled(open). Applicable only when EndpointPolicyType is SIDECAR_PROXY.

Link copied to clipboard
val description: Output<String>? = null

Optional. A free-text description of the resource. Max length 1024 characters.

Link copied to clipboard

A matcher that selects endpoints to which the policies should be applied.

Link copied to clipboard
val endpointPolicyId: Output<String>? = null

Required. Short name of the EndpointPolicy resource to be created. E.g. "CustomECS".

Link copied to clipboard
val labels: Output<Map<String, String>>? = null

Optional. Set of label tags associated with the EndpointPolicy resource.

Link copied to clipboard
val location: Output<String>? = null
Link copied to clipboard
val name: Output<String>? = null

Name of the EndpointPolicy resource. It matches pattern projects/{project}/locations/global/endpointPolicies/{endpoint_policy}.

Link copied to clipboard
val project: Output<String>? = null
Link copied to clipboard
val serverTlsPolicy: Output<String>? = null

Optional. A URL referring to ServerTlsPolicy resource. ServerTlsPolicy is used to determine the authentication policy to be applied to terminate the inbound traffic at the identified backends. If this field is not set, authentication is disabled(open) for this endpoint.

Link copied to clipboard

Optional. Port selector for the (matched) endpoints. If no port selector is provided, the matched config is applied to all ports.

Link copied to clipboard
val type: Output<EndpointPolicyType>? = null

The type of endpoint policy. This is primarily used to validate the configuration.