Skip to main content

systems

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

Overview

Namesystems
TypeResource
Idaws.resiliencehubv2.systems

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringResource name (used in ARN — no spaces allowed). (pattern: <code>[A-Za-z0-9][A-Za-z0-9_-]{1,59}</code>)
created_atstring (date-time)The timestamp when the system was created.
descriptionstringResource description.
kms_key_idstringKMS key identifier — accepts key ID, key ARN, alias name, or alias ARN.
organization_idstringThe AWS Organizations identifier for the system. (pattern: <code>o-[a-z0-9]{10,32}</code>)
ou_idstringThe organizational unit (OU) identifier for the system. (pattern: <code>ou-[a-z0-9]{4,32}-[a-z0-9]{8,32}</code>)
sharing_enabledbooleanIndicates whether cross-account sharing is enabled.
system_arnstringARN identifier. (pattern: <code>arn:(aws|aws-cn|aws-iso|aws-iso-[a-z]{1}|aws-us-gov):[A-Za-z0-9][A-Za-z0-9_/.-]{0,62}:([a-z]{2}-((iso[a-z]{0,1}-)|(gov-)){0,1}[a-z]+-[0-9]):[0-9]{12}:[A-Za-z0-9/][A-Za-z0-9:_/+.-]{0,1023}</code>)
system_idstringSystem ID for cross-account use without exposing account structure. (pattern: <code>\S{1,255}</code>)
tagsobject
updated_atstring (date-time)The timestamp when the system was last updated.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_systemselectsystemArn, regionRetrieves a system by ARN.
list_systemsselectregionouId, maxResults, nextTokenLists systems.
create_systeminsertregion, nameCreates a system that represents a logical grouping of services.
update_systemupdateregion, systemArnUpdates an existing system.
delete_systemdeleteregionDeletes a system.

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)
systemArnstring
maxResultsinteger
nextTokenstring
ouIdstringFilter systems by organizational unit (OU) identifier.

SELECT examples

Retrieves a system by ARN.

SELECT
name,
created_at,
description,
kms_key_id,
organization_id,
ou_id,
sharing_enabled,
system_arn,
system_id,
tags,
updated_at
FROM aws.resiliencehubv2.systems
WHERE systemArn = '{{ systemArn }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates a system that represents a logical grouping of services.

INSERT INTO aws.resiliencehubv2.systems (
name,
description,
sharingEnabled,
kmsKeyId,
tags,
clientToken,
region
)
SELECT
'{{ name }}' /* required */,
'{{ description }}',
{{ sharingEnabled }},
'{{ kmsKeyId }}',
'{{ tags }}',
'{{ clientToken }}',
'{{ region }}'
RETURNING
system
;

UPDATE examples

Updates an existing system.

UPDATE aws.resiliencehubv2.systems
SET
systemArn = '{{ systemArn }}',
description = '{{ description }}',
sharingEnabled = {{ sharingEnabled }}
WHERE
region = '{{ region }}' --required
AND systemArn = '{{ systemArn }}' --required
RETURNING
system;

DELETE examples

Deletes a system.

DELETE FROM aws.resiliencehubv2.systems
WHERE region = '{{ region }}' --required
;