EndpointPolicyArgs class
The set of arguments for EndpointPolicy. The set of arguments for EndpointPolicy.
Constructors
-
EndpointPolicyArgs({Input<
String> ? authorizationPolicy, Input<String> ? clientTlsPolicy, Input<String> ? description, required Input<EndpointMatcher> endpointMatcher, required Input<String> endpointPolicyId, Input<Map< ? labels, Input<String, String> >String> ? location, Input<String> ? name, Input<String> ? project, Input<String> ? serverTlsPolicy, Input<TrafficPortSelector> ? trafficPortSelector, required Input<EndpointPolicyType> type}) -
Creates a new EndpointPolicyArgs.
authorizationPolicyOptional. 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.clientTlsPolicyOptional. 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.descriptionOptional. A free-text description of the resource. Max length 1024 characters.endpointMatcherA matcher that selects endpoints to which the policies should be applied.endpointPolicyIdRequired. Short name of the EndpointPolicy resource to be created. E.g. "CustomECS".labelsOptional. Set of label tags associated with the EndpointPolicy resource.locationOptional.nameName of the EndpointPolicy resource. It matches patternprojects/{project}/locations/global/endpointPolicies/{endpoint_policy}.projectOptional.serverTlsPolicyOptional. 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.trafficPortSelectorOptional. Port selector for the (matched) endpoints. If no port selector is provided, the matched config is applied to all ports.typeThe type of endpoint policy. This is primarily used to validate the configuration.const -
EndpointPolicyArgs.fromMap(Map<
String, dynamic> map) -
factory
Properties
-
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.
final
-
clientTlsPolicy
→ Input<
String> ? -
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.
final
-
description
→ Input<
String> ? -
Optional. A free-text description of the resource. Max length 1024 characters.
final
-
endpointMatcher
→ Input<
EndpointMatcher> -
A matcher that selects endpoints to which the policies should be applied.
final
-
endpointPolicyId
→ Input<
String> -
Required. Short name of the EndpointPolicy resource to be created. E.g. "CustomECS".
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
labels
→ Input<
Map< ?String, String> > -
Optional. Set of label tags associated with the EndpointPolicy resource.
final
-
location
→ Input<
String> ? -
final
-
name
→ Input<
String> ? -
Name of the EndpointPolicy resource. It matches pattern
projects/{project}/locations/global/endpointPolicies/{endpoint_policy}.final -
project
→ Input<
String> ? -
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
serverTlsPolicy
→ Input<
String> ? -
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.
final
-
trafficPortSelector
→ Input<
TrafficPortSelector> ? -
Optional. Port selector for the (matched) endpoints. If no port selector is provided, the matched config is applied to all ports.
final
-
type
→ Input<
EndpointPolicyType> -
The type of endpoint policy. This is primarily used to validate the configuration.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited