Retrieves the recommended policy to remediate a Security Hub finding¶
Description¶
Retrieves the recommended policy to remediate a Security Hub finding. get_recommended_policy_v2 only supports findings for unused permissions.
Usage¶
Arguments¶
-
MetadataUid[required] The unique identifier (ID) of Security Hub OCSF findings found under the
metadata.uidfield of the finding. -
NextTokenThe token used to paginate the
RecommendationStepslist returned. On your first call toget_recommended_policy_v2, omit this parameter or set it toNULL. For subsequent calls, use theNextTokenvalue returned in the previous response to retrieve the next page of results. -
MaxResultsThe maximum number of recommendation steps to return.
Value¶
A list with the following syntax:
list(
NextToken = "string",
RecommendationType = "UNUSED_PERMISSION_RECOMMENDATION",
RecommendationSteps = list(
list(
UnusedPermissions = list(
RecommendedAction = "string",
ExistingPolicy = "string",
ExistingPolicyId = "string",
PolicyUpdatedAt = as.POSIXct(
"2015-01-01"
),
RecommendedPolicy = "string"
)
)
),
Error = list(
Code = "string",
Message = "string"
),
Status = "IN_PROGRESS"|"SUCCEEDED"|"FAILED",
ResourceArn = "string"
)