Skip to main content

security_requirement_packs

Creates, updates, deletes, gets or lists a security_requirement_packs resource.

Overview

Namesecurity_requirement_packs
TypeResource
Idaws.securityagent.security_requirement_packs

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringThe name of the security requirement pack.
created_atstring (date-time)The date and time the security requirement pack was created, in UTC format.
descriptionstringA description of the security requirement pack.
import_statusstringThe status of the security requirements import workflow for this pack. (PENDING, IN_PROGRESS, FAILED, COMPLETED)
kms_key_idstringIdentifier of a KMS key. Can be a key ID, key ARN, alias name, or alias ARN.
management_typestringThe management type of the pack. Valid values are AWS_MANAGED and CUSTOMER_MANAGED. (AWS_MANAGED, CUSTOMER_MANAGED)
pack_idstringThe unique identifier of the security requirement pack.
statusstringThe status of the security requirement pack. (ENABLED, DISABLED)
updated_atstring (date-time)The date and time the security requirement pack was last updated, in UTC format.
vendor_namestringThe vendor name for AWS managed packs, such as ISO or NIST.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_security_requirement_packselectregionRetrieves information about a security requirement pack.
list_security_requirement_packsselectregionLists all security requirement packs in the caller's account.
create_security_requirement_packinsertregion, nameCreates a customer managed security requirement pack.
update_security_requirement_packupdateregion, packIdUpdates a security requirement pack. For customer managed packs, both metadata and status can be updated. For AWS managed packs, only status can be updated.
delete_security_requirement_packdeleteregionDeletes a customer managed security requirement pack and all its associated security requirements.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

Retrieves information about a security requirement pack.

SELECT
name,
created_at,
description,
import_status,
kms_key_id,
management_type,
pack_id,
status,
updated_at,
vendor_name
FROM aws.securityagent.security_requirement_packs
WHERE region = '{{ region }}' -- required
;

INSERT examples

Creates a customer managed security requirement pack.

INSERT INTO aws.securityagent.security_requirement_packs (
name,
description,
status,
kmsKeyId,
tags,
region
)
SELECT
'{{ name }}' /* required */,
'{{ description }}',
'{{ status }}',
'{{ kmsKeyId }}',
'{{ tags }}',
'{{ region }}'
RETURNING
kms_key_id,
pack_id,
status
;

UPDATE examples

Updates a security requirement pack. For customer managed packs, both metadata and status can be updated. For AWS managed packs, only status can be updated.

UPDATE aws.securityagent.security_requirement_packs
SET
packId = '{{ packId }}',
name = '{{ name }}',
description = '{{ description }}',
status = '{{ status }}'
WHERE
region = '{{ region }}' --required
AND packId = '{{ packId }}' --required
RETURNING
name,
description,
pack_id,
status;

DELETE examples

Deletes a customer managed security requirement pack and all its associated security requirements.

DELETE FROM aws.securityagent.security_requirement_packs
WHERE region = '{{ region }}' --required
;