Class ValidatingAdmissionPolicySpecV1Beta1.Jsii$Proxy
- java.lang.Object
-
- software.amazon.jsii.JsiiObject
-
- org.cdk8s.plus28.k8s.ValidatingAdmissionPolicySpecV1Beta1.Jsii$Proxy
-
- All Implemented Interfaces:
ValidatingAdmissionPolicySpecV1Beta1,software.amazon.jsii.JsiiSerializable
- Enclosing interface:
- ValidatingAdmissionPolicySpecV1Beta1
@Stability(Stable) @Internal public static final class ValidatingAdmissionPolicySpecV1Beta1.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements ValidatingAdmissionPolicySpecV1Beta1
An implementation forValidatingAdmissionPolicySpecV1Beta1
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
-
Nested classes/interfaces inherited from interface org.cdk8s.plus28.k8s.ValidatingAdmissionPolicySpecV1Beta1
ValidatingAdmissionPolicySpecV1Beta1.Builder, ValidatingAdmissionPolicySpecV1Beta1.Jsii$Proxy
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedJsii$Proxy(ValidatingAdmissionPolicySpecV1Beta1.Builder builder)Constructor that initializes the object based on literal property values passed by theValidatingAdmissionPolicySpecV1Beta1.Builder.protectedJsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)Constructor that initializes the object based on values retrieved from the JsiiObject.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.fasterxml.jackson.databind.JsonNode$jsii$toJson()booleanequals(Object o)List<AuditAnnotationV1Beta1>getAuditAnnotations()auditAnnotations contains CEL expressions which are used to produce audit annotations for the audit event of the API request.StringgetFailurePolicy()failurePolicy defines how to handle failures for the admission policy.List<MatchConditionV1Beta1>getMatchConditions()MatchConditions is a list of conditions that must be met for a request to be validated.MatchResourcesV1Beta1getMatchConstraints()MatchConstraints specifies what resources this policy is designed to validate.ParamKindV1Beta1getParamKind()ParamKind specifies the kind of resources used to parameterize this policy.List<ValidationV1Beta1>getValidations()Validations contain CEL expressions which is used to apply the validation.List<VariableV1Beta1>getVariables()Variables contain definitions of variables that can be used in composition of other expressions.inthashCode()
-
-
-
Constructor Detail
-
Jsii$Proxy
protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
Constructor that initializes the object based on values retrieved from the JsiiObject.- Parameters:
objRef- Reference to the JSII managed object.
-
Jsii$Proxy
protected Jsii$Proxy(ValidatingAdmissionPolicySpecV1Beta1.Builder builder)
Constructor that initializes the object based on literal property values passed by theValidatingAdmissionPolicySpecV1Beta1.Builder.
-
-
Method Detail
-
getAuditAnnotations
public final List<AuditAnnotationV1Beta1> getAuditAnnotations()
Description copied from interface:ValidatingAdmissionPolicySpecV1Beta1auditAnnotations contains CEL expressions which are used to produce audit annotations for the audit event of the API request.validations and auditAnnotations may not both be empty; a least one of validations or auditAnnotations is required.
- Specified by:
getAuditAnnotationsin interfaceValidatingAdmissionPolicySpecV1Beta1
-
getFailurePolicy
public final String getFailurePolicy()
Description copied from interface:ValidatingAdmissionPolicySpecV1Beta1failurePolicy defines how to handle failures for the admission policy.Failures can occur from CEL expression parse errors, type check errors, runtime errors and invalid or mis-configured policy definitions or bindings.
A policy is invalid if spec.paramKind refers to a non-existent Kind. A binding is invalid if spec.paramRef.name refers to a non-existent resource.
failurePolicy does not define how validations that evaluate to false are handled.
When failurePolicy is set to Fail, ValidatingAdmissionPolicyBinding validationActions define how failures are enforced.
Allowed values are Ignore or Fail. Defaults to Fail.
Default: Fail.
- Specified by:
getFailurePolicyin interfaceValidatingAdmissionPolicySpecV1Beta1
-
getMatchConditions
public final List<MatchConditionV1Beta1> getMatchConditions()
Description copied from interface:ValidatingAdmissionPolicySpecV1Beta1MatchConditions is a list of conditions that must be met for a request to be validated.Match conditions filter requests that have already been matched by the rules, namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed.
If a parameter object is provided, it can be accessed via the
paramshandle in the same manner as validation expressions.The exact matching logic is (in order):
- If ANY matchCondition evaluates to FALSE, the policy is skipped.
- If ALL matchConditions evaluate to TRUE, the policy is evaluated.
- If any matchCondition evaluates to an error (but none are FALSE):
- If failurePolicy=Fail, reject the request
- If failurePolicy=Ignore, the policy is skipped
- Specified by:
getMatchConditionsin interfaceValidatingAdmissionPolicySpecV1Beta1
-
getMatchConstraints
public final MatchResourcesV1Beta1 getMatchConstraints()
Description copied from interface:ValidatingAdmissionPolicySpecV1Beta1MatchConstraints specifies what resources this policy is designed to validate.The AdmissionPolicy cares about a request if it matches all Constraints. However, in order to prevent clusters from being put into an unstable state that cannot be recovered from via the API ValidatingAdmissionPolicy cannot match ValidatingAdmissionPolicy and ValidatingAdmissionPolicyBinding. Required.
- Specified by:
getMatchConstraintsin interfaceValidatingAdmissionPolicySpecV1Beta1
-
getParamKind
public final ParamKindV1Beta1 getParamKind()
Description copied from interface:ValidatingAdmissionPolicySpecV1Beta1ParamKind specifies the kind of resources used to parameterize this policy.If absent, there are no parameters for this policy and the param CEL variable will not be provided to validation expressions. If ParamKind refers to a non-existent kind, this policy definition is mis-configured and the FailurePolicy is applied. If paramKind is specified but paramRef is unset in ValidatingAdmissionPolicyBinding, the params variable will be null.
- Specified by:
getParamKindin interfaceValidatingAdmissionPolicySpecV1Beta1
-
getValidations
public final List<ValidationV1Beta1> getValidations()
Description copied from interface:ValidatingAdmissionPolicySpecV1Beta1Validations contain CEL expressions which is used to apply the validation.Validations and AuditAnnotations may not both be empty; a minimum of one Validations or AuditAnnotations is required.
- Specified by:
getValidationsin interfaceValidatingAdmissionPolicySpecV1Beta1
-
getVariables
public final List<VariableV1Beta1> getVariables()
Description copied from interface:ValidatingAdmissionPolicySpecV1Beta1Variables contain definitions of variables that can be used in composition of other expressions.Each variable is defined as a named CEL expression. The variables defined here will be available under
variablesin other expressions of the policy except MatchConditions because MatchConditions are evaluated before the rest of the policy.The expression of a variable can refer to other variables defined earlier in the list but not those after. Thus, Variables must be sorted by the order of first appearance and acyclic.
- Specified by:
getVariablesin interfaceValidatingAdmissionPolicySpecV1Beta1
-
$jsii$toJson
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
- Specified by:
$jsii$toJsonin interfacesoftware.amazon.jsii.JsiiSerializable
-
-