Skip to content

Get Configuration Policy Association

securityhub_get_configuration_policy_association R Documentation

Returns the association between a configuration and a target account, organizational unit, or the root

Description

Returns the association between a configuration and a target account, organizational unit, or the root. The configuration can be a configuration policy or self-managed behavior. Only the Security Hub delegated administrator can invoke this operation from the home Region.

Usage

securityhub_get_configuration_policy_association(Target)

Arguments

Target

[required] The target account ID, organizational unit ID, or the root ID to retrieve the association for.

Value

A list with the following syntax:

list(
  ConfigurationPolicyId = "string",
  TargetId = "string",
  TargetType = "ACCOUNT"|"ORGANIZATIONAL_UNIT"|"ROOT",
  AssociationType = "INHERITED"|"APPLIED",
  UpdatedAt = as.POSIXct(
    "2015-01-01"
  ),
  AssociationStatus = "PENDING"|"SUCCESS"|"FAILED",
  AssociationStatusMessage = "string"
)

Request syntax

svc$get_configuration_policy_association(
  Target = list(
    AccountId = "string",
    OrganizationalUnitId = "string",
    RootId = "string"
  )
)

Examples

## Not run: 
# This operation provides details about configuration associations for a
# specific target account, organizational unit, or the root.
svc$get_configuration_policy_association(
  Target = list(
    AccountId = "111122223333"
  )
)

## End(Not run)