Skip to content

Disable

inspector2_disable R Documentation

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

Description

Disables Amazon Inspector scans for one or more Amazon Web Services accounts. Disabling all scan types in an account disables the Amazon Inspector service.

Usage

inspector2_disable(accountIds, resourceTypes)

Arguments

accountIds

An array of account IDs you want to disable Amazon Inspector scans for.

resourceTypes

The resource scan types you want to disable.

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