Skip to main content

connectors

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

Overview

Nameconnectors
TypeResource
Idaws.inspector2.connectors

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringThe name of the connector. (pattern: <code>[\p{L}\p{N}_-]+</code>)
auto_install_vm_scannerbooleanSpecifies whether the VM scanner is automatically installed on connected resources.
aws_config_connector_arnstringThe ARN of the Amazon Web Services Config connector associated with this connector. (pattern: <code>arn:([^:]+):config:([^:]+):([^:]+):connector/([^/]+)/([^/]+)/([^/:\s]+)</code>)
azure_regionsarrayThe Azure regions configured for the connector.
connector_arnstringThe Amazon Resource Name (ARN) of the connector. (pattern: <code>arn:aws(-[a-z]+)*:inspector2:[a-z0-9-]+:[0-9]{12}:connector/([a-f0-9-]+|aws-service-connector/.+/[a-f0-9-]+)</code>)
created_atstring (date-time)The date and time when the connector was created.
descriptionstringA description of the connector. (pattern: <code>[^\p{C}]*</code>)
enablement_statusstringThe enablement status of the connector, which indicates whether the connector is active and scanning resources. (ENABLED, PENDING_ENABLEMENT, FAILED_TO_ENABLE, PENDING_UPDATE, FAILED_TO_UPDATE, PENDING_DELETION, DELETED, FAILED_TO_DELETE)
enablement_status_reasonstringAdditional information about the current enablement status of the connector.
healthobjectThe health of the connector, which indicates whether Amazon Inspector can reach and scan the connected resources.
providerstringThe cloud provider for the connector. (AZURE)
scope_configurationobjectThe Azure scope configuration for the connector.
tagsobjectThe tags associated with the connector.
updated_atstring (date-time)The date and time when the connector was last updated.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_connectorsselectregionLists connectors in your account. Results are paginated. Use the nextToken parameter to retrieve the next page of results.
create_connectorinsertregion, name, provider, providerDetailCreates a connector that links an external cloud provider to Amazon Inspector for vulnerability scanning.
update_connectorupdateregion, connectorArnUpdates the description or provider-specific configuration details of an existing connector.
delete_connectordeleteregionDeletes a connector from your account.

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

Lists connectors in your account. Results are paginated. Use the nextToken parameter to retrieve the next page of results.

SELECT
name,
auto_install_vm_scanner,
aws_config_connector_arn,
azure_regions,
connector_arn,
created_at,
description,
enablement_status,
enablement_status_reason,
health,
provider,
scope_configuration,
tags,
updated_at
FROM aws.inspector2.connectors
WHERE region = '{{ region }}' -- required
;

INSERT examples

Creates a connector that links an external cloud provider to Amazon Inspector for vulnerability scanning.

INSERT INTO aws.inspector2.connectors (
clientToken,
name,
provider,
description,
providerDetail,
tags,
region
)
SELECT
'{{ clientToken }}',
'{{ name }}' /* required */,
'{{ provider }}' /* required */,
'{{ description }}',
'{{ providerDetail }}' /* required */,
'{{ tags }}',
'{{ region }}'
RETURNING
connector_arn
;

UPDATE examples

Updates the description or provider-specific configuration details of an existing connector.

UPDATE aws.inspector2.connectors
SET
connectorArn = '{{ connectorArn }}',
description = '{{ description }}',
providerDetail = '{{ providerDetail }}'
WHERE
region = '{{ region }}' --required
AND connectorArn = '{{ connectorArn }}' --required
RETURNING
connector_arn;

DELETE examples

Deletes a connector from your account.

DELETE FROM aws.inspector2.connectors
WHERE region = '{{ region }}' --required
;