Skip to content

Update Security Control

securityhub_update_security_control R Documentation

Updates the properties of a security control

Description

Updates the properties of a security control.

Usage

securityhub_update_security_control(SecurityControlId, Parameters,
  LastUpdateReason)

Arguments

SecurityControlId

[required] The Amazon Resource Name (ARN) or ID of the control to update.

Parameters

[required] An object that specifies which security control parameters to update.

LastUpdateReason

The most recent reason for updating the properties of the security control. This field accepts alphanumeric characters in addition to white spaces, dashes, and underscores.

Value

An empty list.

Request syntax

svc$update_security_control(
  SecurityControlId = "string",
  Parameters = list(
    list(
      ValueType = "DEFAULT"|"CUSTOM",
      Value = list(
        Integer = 123,
        IntegerList = list(
          123
        ),
        Double = 123.0,
        String = "string",
        StringList = list(
          "string"
        ),
        Boolean = TRUE|FALSE,
        Enum = "string",
        EnumList = list(
          "string"
        )
      )
    )
  ),
  LastUpdateReason = "string"
)

Examples

## Not run: 
# The following example updates the specified security control.
# Specifically, this example updates control parameters.
svc$update_security_control(
  LastUpdateReason = "Comply with internal requirements",
  Parameters = list(
    maxCredentialUsageAge = list(
      Value = list(
        Integer = 15L
      ),
      ValueType = "CUSTOM"
    )
  ),
  SecurityControlId = "ACM.1"
)

## End(Not run)