Skip to content

Get Finding

accessanalyzer_get_finding R Documentation

Retrieves information about the specified finding

Description

Retrieves information about the specified finding. GetFinding and GetFindingV2 both use access-analyzer:GetFinding in the Action element of an IAM policy statement. You must have permission to perform the access-analyzer:GetFinding action.

Usage

accessanalyzer_get_finding(analyzerArn, id)

Arguments

analyzerArn

[required] The ARN of the analyzer that generated the finding.

id

[required] The ID of the finding to retrieve.

Value

A list with the following syntax:

list(
  finding = list(
    id = "string",
    principal = list(
      "string"
    ),
    action = list(
      "string"
    ),
    resource = "string",
    isPublic = TRUE|FALSE,
    resourceType = "AWS::S3::Bucket"|"AWS::IAM::Role"|"AWS::SQS::Queue"|"AWS::Lambda::Function"|"AWS::Lambda::LayerVersion"|"AWS::KMS::Key"|"AWS::SecretsManager::Secret"|"AWS::EFS::FileSystem"|"AWS::EC2::Snapshot"|"AWS::ECR::Repository"|"AWS::RDS::DBSnapshot"|"AWS::RDS::DBClusterSnapshot"|"AWS::SNS::Topic"|"AWS::S3Express::DirectoryBucket"|"AWS::DynamoDB::Table"|"AWS::DynamoDB::Stream",
    condition = list(
      "string"
    ),
    createdAt = as.POSIXct(
      "2015-01-01"
    ),
    analyzedAt = as.POSIXct(
      "2015-01-01"
    ),
    updatedAt = as.POSIXct(
      "2015-01-01"
    ),
    status = "ACTIVE"|"ARCHIVED"|"RESOLVED",
    resourceOwnerAccount = "string",
    error = "string",
    sources = list(
      list(
        type = "POLICY"|"BUCKET_ACL"|"S3_ACCESS_POINT"|"S3_ACCESS_POINT_ACCOUNT",
        detail = list(
          accessPointArn = "string",
          accessPointAccount = "string"
        )
      )
    )
  )
)

Request syntax

svc$get_finding(
  analyzerArn = "string",
  id = "string"
)