Values.ValidateResourcePolicyResponseSourceValidates that a resource policy does not grant a wide range of principals access to your secret. A resource-based policy is optional for secrets. The API performs three checks when validating the policy: Sends a call to Zelkova, an automated reasoning engine, to ensure your resource policy does not allow broad access to your secret, for example policies that use a wildcard for the principal. Checks for correct syntax in a policy. Verifies the policy does not lock out a caller. Secrets Manager generates a CloudTrail log entry when you call this action. Do not include sensitive information in request parameters because it might be logged. For more information, see Logging Secrets Manager events with CloudTrail. Required permissions: secretsmanager:ValidateResourcePolicy and secretsmanager:PutResourcePolicy. For more information, see IAM policy actions for Secrets Manager and Authentication and access control in Secrets Manager.
type nonrec t = {policyValidationPassed : BooleanType.t option;True if your policy passes validation, otherwise false.
*)validationErrors : ValidationErrorsType.t option;Validation errors if your policy didn't pass validation.
*)}type nonrec error = [ | `InternalServiceError of InternalServiceError.t| `InvalidParameterException of InvalidParameterException.t| `InvalidRequestException of InvalidRequestException.t| `MalformedPolicyDocumentException of MalformedPolicyDocumentException.t| `ResourceNotFoundException of ResourceNotFoundException.t| `Unknown_operation_error of string * string option ]val error_of_json :
string ->
Yojson.Safe.t ->
[> `InternalServiceError of InternalServiceError.t
| `InvalidParameterException of InvalidParameterException.t
| `InvalidRequestException of InvalidRequestException.t
| `MalformedPolicyDocumentException of MalformedPolicyDocumentException.t
| `ResourceNotFoundException of ResourceNotFoundException.t
| `Unknown_operation_error of string * string option ]val error_of_xml :
string ->
Awso.Xml.t ->
[> `InternalServiceError of InternalServiceError.t
| `InvalidParameterException of InvalidParameterException.t
| `InvalidRequestException of InvalidRequestException.t
| `MalformedPolicyDocumentException of MalformedPolicyDocumentException.t
| `ResourceNotFoundException of ResourceNotFoundException.t
| `Unknown_operation_error of string * string option ]val to_value :
t ->
[> `Structure of
(string
* [> `Boolean of BooleanType.t
| `List of
[> `Structure of (string * [> `String of NameType.t ]) list ] list ])
list ]