Skip to main content

connector_v2s

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

Overview

Nameconnector_v2s
TypeResource
Idaws.securityhub.connector_v2s

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
connector_arnstringThe Amazon Resource Name (ARN) of the connectorV2. (pattern: <code>.\S.</code>)
connector_idstringThe UUID of the connectorV2 to identify connectorV2 resource. (pattern: <code>.\S.</code>)
created_atstring (date-time)ISO 8601 UTC timestamp for the time create the connectorV2.
descriptionstringThe description of the connectorV2. (pattern: <code>.\S.</code>)
enablement_statusstringThe enablement status of the connector. (ENABLED, PENDING_ENABLEMENT, FAILED_TO_ENABLE, PENDING_UPDATE, FAILED_TO_UPDATE, PENDING_DELETION, FAILED_TO_DELETE)
enablement_status_reasonstringThe reason for the current enablement status. Provides additional context when the connector is in a failed state. (pattern: <code>.\S.</code>)
healthobjectThe current health status for connectorV2
kms_key_arnstringThe Amazon Resource Name (ARN) of KMS key used for the connectorV2. (pattern: <code>.\S.</code>)
last_updated_atstring (date-time)ISO 8601 UTC timestamp for the time update the connectorV2 connectorStatus.
namestringThe name of the connectorV2. (pattern: <code>.\S.</code>)
provider_detailobjectThe third-party provider detail for a service configuration.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_connector_v2selectconnector_id, regionGrants permission to retrieve details for a connectorV2 based on connector id.
register_connector_v2insertregion, AuthCode, AuthStateGrants permission to complete the authorization based on input parameters.
create_connector_v2insertregion, ProviderGrants permission to create a connectorV2 based on input parameters.
update_connector_v2updateconnector_id, regionGrants permission to update a connectorV2 based on its id and input parameters.
delete_connector_v2deleteconnector_id, regionGrants permission to delete a connectorV2.

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
connector_idstringThe UUID of the connectorV2 to identify connectorV2 resource.
regionstringAWS region (default: us-east-1)

SELECT examples

Grants permission to retrieve details for a connectorV2 based on connector id.

SELECT
connector_arn,
connector_id,
created_at,
description,
enablement_status,
enablement_status_reason,
health,
kms_key_arn,
last_updated_at,
name,
provider_detail
FROM aws.securityhub.connector_v2s
WHERE connector_id = '{{ connector_id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Grants permission to complete the authorization based on input parameters.

INSERT INTO aws.securityhub.connector_v2s (
AuthCode,
AuthState,
region
)
SELECT
'{{ AuthCode }}' /* required */,
'{{ AuthState }}' /* required */,
'{{ region }}'
RETURNING
connector_arn,
connector_id
;

UPDATE examples

Grants permission to update a connectorV2 based on its id and input parameters.

UPDATE aws.securityhub.connector_v2s
SET
Description = '{{ Description }}',
Provider = '{{ Provider }}'
WHERE
connector_id = '{{ connector_id }}' --required
AND region = '{{ region }}' --required
RETURNING
connector_status,
enablement_status;

DELETE examples

Grants permission to delete a connectorV2.

DELETE FROM aws.securityhub.connector_v2s
WHERE connector_id = '{{ connector_id }}' --required
AND region = '{{ region }}' --required
;