Skip to content

Enable

inspector2_enable R Documentation

Enables Amazon Inspector scans for one or more Amazon Web Services accounts

Description

Enables Amazon Inspector scans for one or more Amazon Web Services accounts.

Usage

inspector2_enable(accountIds, clientToken, resourceTypes)

Arguments

accountIds

A list of account IDs you want to enable Amazon Inspector scans for.

clientToken

The idempotency token for the request.

resourceTypes

[required] The resource scan types you want to enable.

Value

A list with the following syntax:

list(
  accounts = list(
    list(
      accountId = "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"
    )
  ),
  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$enable(
  accountIds = list(
    "string"
  ),
  clientToken = "string",
  resourceTypes = list(
    "EC2"|"ECR"|"LAMBDA"|"LAMBDA_CODE"
  )
)