Skip to main content

connectors

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

Overview

Nameconnectors
TypeResource
Idaws.pca_connector_ad.connectors

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
arnstringThe Amazon Resource Name (ARN) that was returned when you called CreateConnector. (pattern: <code>^arn:[\w-]+:pca-connector-ad:[\w-]+:[0-9]+:connector/[0-9a-f]{8}(-[0-9a-f]{4}){3}-[0-9a-f]{12}$</code>)
certificate_authority_arnstringThe Amazon Resource Name (ARN) of the certificate authority being used. (pattern: <code>^arn:[\w-]+:acm-pca:[\w-]+:[0-9]+:certificate-authority/[0-9a-f]{8}(-[0-9a-f]{4}){3}-[0-9a-f]{12}$</code>)
certificate_enrollment_policy_server_endpointstringCertificate enrollment endpoint for Active Directory domain-joined objects reach out to when requesting certificates.
created_atstring (date-time)The date and time that the connector was created.
directory_idstringThe identifier of the Active Directory. (pattern: <code>^d-[0-9a-f]{10}$</code>)
statusstringStatus of the connector. Status can be creating, active, deleting, or failed. (CREATING, ACTIVE, DELETING, FAILED)
status_reasonstringAdditional information about the connector status if the status is failed. (CA_CERTIFICATE_REGISTRATION_FAILED, DIRECTORY_ACCESS_DENIED, INTERNAL_FAILURE, INSUFFICIENT_FREE_ADDRESSES, INVALID_SUBNET_IP_PROTOCOL, PRIVATECA_ACCESS_DENIED, PRIVATECA_RESOURCE_NOT_FOUND, SECURITY_GROUP_NOT_IN_VPC, VPC_ACCESS_DENIED, VPC_ENDPOINT_LIMIT_EXCEEDED, VPC_RESOURCE_NOT_FOUND)
updated_atstring (date-time)The date and time that the connector was updated.
vpc_informationobjectInformation about your VPC and security groups used with the connector.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_connectorselectconnector_arn, regionLists information about your connector. You specify the connector on input by its ARN (Amazon Resource Name).
list_connectorsselectregionMaxResults, NextTokenLists the connectors that you created by using the https:​//docs.aws.amazon.com/pca-connector-ad/latest/APIReference/API_CreateConnector action.
create_connectorinsertregion, CertificateAuthorityArn, DirectoryId, VpcInformationCreates a connector between Amazon Web Services Private CA and an Active Directory. You must specify the private CA, directory ID, and security groups.
delete_connectordeleteconnector_arn, regionDeletes a connector for Active Directory. You must provide the Amazon Resource Name (ARN) of the connector that you want to delete. You can find the ARN by calling the https:​//docs.aws.amazon.com/pca-connector-ad/latest/APIReference/API_ListConnectors action. Deleting a connector does not deregister your directory with Amazon Web Services Private CA. You can deregister your directory by calling the https:​//docs.aws.amazon.com/pca-connector-ad/latest/APIReference/API_DeleteDirectoryRegistration action.

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_arnstringThe Amazon Resource Name (ARN) that was returned when you called CreateConnector.
regionstringAWS region (default: us-east-1)
MaxResultsintegerUse this parameter when paginating results to specify the maximum number of items to return in the response on each page. If additional items exist beyond the number you specify, the NextToken element is sent in the response. Use this NextToken value in a subsequent request to retrieve additional items.
NextTokenstringUse this parameter when paginating results in a subsequent request after you receive a response with truncated results. Set it to the value of the NextToken parameter from the response you just received.

SELECT examples

Lists information about your connector. You specify the connector on input by its ARN (Amazon Resource Name).

SELECT
arn,
certificate_authority_arn,
certificate_enrollment_policy_server_endpoint,
created_at,
directory_id,
status,
status_reason,
updated_at,
vpc_information
FROM aws.pca_connector_ad.connectors
WHERE connector_arn = '{{ connector_arn }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates a connector between Amazon Web Services Private CA and an Active Directory. You must specify the private CA, directory ID, and security groups.

INSERT INTO aws.pca_connector_ad.connectors (
CertificateAuthorityArn,
ClientToken,
DirectoryId,
Tags,
VpcInformation,
region
)
SELECT
'{{ CertificateAuthorityArn }}' /* required */,
'{{ ClientToken }}',
'{{ DirectoryId }}' /* required */,
'{{ Tags }}',
'{{ VpcInformation }}' /* required */,
'{{ region }}'
RETURNING
connector_arn
;

DELETE examples

Deletes a connector for Active Directory. You must provide the Amazon Resource Name (ARN) of the connector that you want to delete. You can find the ARN by calling the https://docs.aws.amazon.com/pca-connector-ad/latest/APIReference/API_ListConnectors action. Deleting a connector does not deregister your directory with Amazon Web Services Private CA. You can deregister your directory by calling the https://docs.aws.amazon.com/pca-connector-ad/latest/APIReference/API_DeleteDirectoryRegistration action.

DELETE FROM aws.pca_connector_ad.connectors
WHERE connector_arn = '{{ connector_arn }}' --required
AND region = '{{ region }}' --required
;