Skip to content

Get Finding Recommendation

accessanalyzer_get_finding_recommendation R Documentation

Retrieves information about a finding recommendation for the specified analyzer

Description

Retrieves information about a finding recommendation for the specified analyzer.

Usage

accessanalyzer_get_finding_recommendation(analyzerArn, id, maxResults,
  nextToken)

Arguments

analyzerArn

[required] The ARN of the analyzer used to generate the finding recommendation.

id

[required] The unique ID for the finding recommendation.

maxResults

The maximum number of results to return in the response.

nextToken

A token used for pagination of results returned.

Value

A list with the following syntax:

list(
  startedAt = as.POSIXct(
    "2015-01-01"
  ),
  completedAt = as.POSIXct(
    "2015-01-01"
  ),
  nextToken = "string",
  error = list(
    code = "string",
    message = "string"
  ),
  resourceArn = "string",
  recommendedSteps = list(
    list(
      unusedPermissionsRecommendedStep = list(
        policyUpdatedAt = as.POSIXct(
          "2015-01-01"
        ),
        recommendedAction = "CREATE_POLICY"|"DETACH_POLICY",
        recommendedPolicy = "string",
        existingPolicyId = "string"
      )
    )
  ),
  recommendationType = "UnusedPermissionRecommendation",
  status = "SUCCEEDED"|"FAILED"|"IN_PROGRESS"
)

Request syntax

svc$get_finding_recommendation(
  analyzerArn = "string",
  id = "string",
  maxResults = 123,
  nextToken = "string"
)

Examples

## Not run: 
#
svc$get_finding_recommendation(
  analyzerArn = "arn:aws:access-analyzer:us-east-1:111122223333:analyzer/a",
  id = "finding-id",
  maxResults = 3L,
  nextToken = "token"
)

#
svc$get_finding_recommendation(
  analyzerArn = "arn:aws:access-analyzer:us-east-1:111122223333:analyzer/a",
  id = "finding-id",
  maxResults = 3L
)

#
svc$get_finding_recommendation(
  analyzerArn = "arn:aws:access-analyzer:us-east-1:111122223333:analyzer/a",
  id = "finding-id",
  maxResults = 3L
)

#
svc$get_finding_recommendation(
  analyzerArn = "arn:aws:access-analyzer:us-east-1:111122223333:analyzer/a",
  id = "!"
)

## End(Not run)