Skip to content

Batch Get Account Status

inspector2_batch_get_account_status R Documentation

Retrieves the Amazon Inspector status of multiple Amazon Web Services accounts within your environment

Description

Retrieves the Amazon Inspector status of multiple Amazon Web Services accounts within your environment.

Usage

inspector2_batch_get_account_status(accountIds)

Arguments

accountIds

The 12-digit Amazon Web Services account IDs of the accounts to retrieve Amazon Inspector status for.

Value

A list with the following syntax:

list(
  accounts = list(
    list(
      accountId = "string",
      resourceState = list(
        ec2 = list(
          errorCode = "ALREADY_ENABLED"|"ENABLE_IN_PROGRESS"|"DISABLE_IN_PROGRESS"|"SUSPEND_IN_PROGRESS"|"RESOURCE_NOT_FOUND"|"ACCESS_DENIED"|"INTERNAL_ERROR"|"SSM_UNAVAILABLE"|"SSM_THROTTLED"|"EVENTBRIDGE_UNAVAILABLE"|"EVENTBRIDGE_THROTTLED"|"RESOURCE_SCAN_NOT_DISABLED"|"DISASSOCIATE_ALL_MEMBERS"|"ACCOUNT_IS_ISOLATED"|"EC2_SSM_RESOURCE_DATA_SYNC_LIMIT_EXCEEDED"|"EC2_SSM_ASSOCIATION_VERSION_LIMIT_EXCEEDED",
          errorMessage = "string",
          status = "ENABLING"|"ENABLED"|"DISABLING"|"DISABLED"|"SUSPENDING"|"SUSPENDED"
        ),
        ecr = list(
          errorCode = "ALREADY_ENABLED"|"ENABLE_IN_PROGRESS"|"DISABLE_IN_PROGRESS"|"SUSPEND_IN_PROGRESS"|"RESOURCE_NOT_FOUND"|"ACCESS_DENIED"|"INTERNAL_ERROR"|"SSM_UNAVAILABLE"|"SSM_THROTTLED"|"EVENTBRIDGE_UNAVAILABLE"|"EVENTBRIDGE_THROTTLED"|"RESOURCE_SCAN_NOT_DISABLED"|"DISASSOCIATE_ALL_MEMBERS"|"ACCOUNT_IS_ISOLATED"|"EC2_SSM_RESOURCE_DATA_SYNC_LIMIT_EXCEEDED"|"EC2_SSM_ASSOCIATION_VERSION_LIMIT_EXCEEDED",
          errorMessage = "string",
          status = "ENABLING"|"ENABLED"|"DISABLING"|"DISABLED"|"SUSPENDING"|"SUSPENDED"
        ),
        lambda = list(
          errorCode = "ALREADY_ENABLED"|"ENABLE_IN_PROGRESS"|"DISABLE_IN_PROGRESS"|"SUSPEND_IN_PROGRESS"|"RESOURCE_NOT_FOUND"|"ACCESS_DENIED"|"INTERNAL_ERROR"|"SSM_UNAVAILABLE"|"SSM_THROTTLED"|"EVENTBRIDGE_UNAVAILABLE"|"EVENTBRIDGE_THROTTLED"|"RESOURCE_SCAN_NOT_DISABLED"|"DISASSOCIATE_ALL_MEMBERS"|"ACCOUNT_IS_ISOLATED"|"EC2_SSM_RESOURCE_DATA_SYNC_LIMIT_EXCEEDED"|"EC2_SSM_ASSOCIATION_VERSION_LIMIT_EXCEEDED",
          errorMessage = "string",
          status = "ENABLING"|"ENABLED"|"DISABLING"|"DISABLED"|"SUSPENDING"|"SUSPENDED"
        ),
        lambdaCode = list(
          errorCode = "ALREADY_ENABLED"|"ENABLE_IN_PROGRESS"|"DISABLE_IN_PROGRESS"|"SUSPEND_IN_PROGRESS"|"RESOURCE_NOT_FOUND"|"ACCESS_DENIED"|"INTERNAL_ERROR"|"SSM_UNAVAILABLE"|"SSM_THROTTLED"|"EVENTBRIDGE_UNAVAILABLE"|"EVENTBRIDGE_THROTTLED"|"RESOURCE_SCAN_NOT_DISABLED"|"DISASSOCIATE_ALL_MEMBERS"|"ACCOUNT_IS_ISOLATED"|"EC2_SSM_RESOURCE_DATA_SYNC_LIMIT_EXCEEDED"|"EC2_SSM_ASSOCIATION_VERSION_LIMIT_EXCEEDED",
          errorMessage = "string",
          status = "ENABLING"|"ENABLED"|"DISABLING"|"DISABLED"|"SUSPENDING"|"SUSPENDED"
        )
      ),
      state = list(
        errorCode = "ALREADY_ENABLED"|"ENABLE_IN_PROGRESS"|"DISABLE_IN_PROGRESS"|"SUSPEND_IN_PROGRESS"|"RESOURCE_NOT_FOUND"|"ACCESS_DENIED"|"INTERNAL_ERROR"|"SSM_UNAVAILABLE"|"SSM_THROTTLED"|"EVENTBRIDGE_UNAVAILABLE"|"EVENTBRIDGE_THROTTLED"|"RESOURCE_SCAN_NOT_DISABLED"|"DISASSOCIATE_ALL_MEMBERS"|"ACCOUNT_IS_ISOLATED"|"EC2_SSM_RESOURCE_DATA_SYNC_LIMIT_EXCEEDED"|"EC2_SSM_ASSOCIATION_VERSION_LIMIT_EXCEEDED",
        errorMessage = "string",
        status = "ENABLING"|"ENABLED"|"DISABLING"|"DISABLED"|"SUSPENDING"|"SUSPENDED"
      )
    )
  ),
  failedAccounts = list(
    list(
      accountId = "string",
      errorCode = "ALREADY_ENABLED"|"ENABLE_IN_PROGRESS"|"DISABLE_IN_PROGRESS"|"SUSPEND_IN_PROGRESS"|"RESOURCE_NOT_FOUND"|"ACCESS_DENIED"|"INTERNAL_ERROR"|"SSM_UNAVAILABLE"|"SSM_THROTTLED"|"EVENTBRIDGE_UNAVAILABLE"|"EVENTBRIDGE_THROTTLED"|"RESOURCE_SCAN_NOT_DISABLED"|"DISASSOCIATE_ALL_MEMBERS"|"ACCOUNT_IS_ISOLATED"|"EC2_SSM_RESOURCE_DATA_SYNC_LIMIT_EXCEEDED"|"EC2_SSM_ASSOCIATION_VERSION_LIMIT_EXCEEDED",
      errorMessage = "string",
      resourceStatus = list(
        ec2 = "ENABLING"|"ENABLED"|"DISABLING"|"DISABLED"|"SUSPENDING"|"SUSPENDED",
        ecr = "ENABLING"|"ENABLED"|"DISABLING"|"DISABLED"|"SUSPENDING"|"SUSPENDED",
        lambda = "ENABLING"|"ENABLED"|"DISABLING"|"DISABLED"|"SUSPENDING"|"SUSPENDED",
        lambdaCode = "ENABLING"|"ENABLED"|"DISABLING"|"DISABLED"|"SUSPENDING"|"SUSPENDED"
      ),
      status = "ENABLING"|"ENABLED"|"DISABLING"|"DISABLED"|"SUSPENDING"|"SUSPENDED"
    )
  )
)

Request syntax

svc$batch_get_account_status(
  accountIds = list(
    "string"
  )
)