Module Values.GetRecommendedPolicyV2ResponseSource

Retrieves the recommended policy to remediate a Security Hub finding. GetRecommendedPolicyV2 only supports findings for unused permissions.

Sourcetype nonrec t = {
  1. nextToken : NextToken.t option;
    (*

    The pagination token to use to request the next page of results.

    *)
  2. recommendationType : RecommendationType.t option;
    (*

    The type of recommendation for the finding.

    *)
  3. recommendationSteps : RecommendationSteps.t option;
    (*

    The recommended steps to take to resolve the finding.

    *)
  4. error : RecommendationError.t option;
    (*

    Detailed information for a FAILED retrieval status.

    *)
  5. status : RecommendationStatus.t option;
    (*

    The current status of the recommended policy retrieval.

    *)
  6. resourceArn : NonEmptyString.t option;
    (*

    The ARN of the resource of the finding.

    *)
}
Sourcetype nonrec error = [
  1. | `AccessDeniedException of AccessDeniedException.t
  2. | `InternalServerException of InternalServerException.t
  3. | `InvalidInputException of InvalidInputException.t
  4. | `ResourceNotFoundException of ResourceNotFoundException.t
  5. | `ThrottlingException of ThrottlingException.t
  6. | `ValidationException of ValidationException.t
  7. | `Unknown_operation_error of string * string option
]
Sourceval make : ?nextToken:??? -> ?recommendationType:??? -> ?recommendationSteps:??? -> ?error:??? -> ?status:??? -> ?resourceArn:??? -> unit -> t
Sourceval error_of_json : string -> Yojson.Safe.t -> [> `AccessDeniedException of AccessDeniedException.t | `InternalServerException of InternalServerException.t | `InvalidInputException of InvalidInputException.t | `ResourceNotFoundException of ResourceNotFoundException.t | `ThrottlingException of ThrottlingException.t | `Unknown_operation_error of string * string option | `ValidationException of ValidationException.t ]
Sourceval error_of_xml : string -> Awso.Xml.t -> [> `AccessDeniedException of AccessDeniedException.t | `InternalServerException of InternalServerException.t | `InvalidInputException of InvalidInputException.t | `ResourceNotFoundException of ResourceNotFoundException.t | `ThrottlingException of ThrottlingException.t | `Unknown_operation_error of string * string option | `ValidationException of ValidationException.t ]
Sourceval error_to_json : error -> Yojson.Safe.t
Sourceval to_value : t -> [> `Structure of (string * [> `Enum of string | `List of [> `Structure of (string * [> `Structure of (string * [> `String of NonEmptyString.t | `Timestamp of Timestamp.t ]) list ]) list ] list | `String of NextToken.t | `Structure of (string * [> `String of NonEmptyString.t ]) list ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t