Skip to main content

connectors

Creates, updates, deletes or gets a connector resource or lists connectors in a region

Overview

Nameconnectors
TypeResource
DescriptionDefinition of AWS::PCAConnectorAD::Connector Resource Type
Idaws.pcaconnectorad.connectors

Fields

NameDatatypeDescription
certificate_authority_arnstring
connector_arnstring
directory_idstring
tagsobject
vpc_informationobject
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTCertificateAuthorityArn, DirectoryId, VpcInformation, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all connectors in a region.

SELECT
region,
certificate_authority_arn,
connector_arn,
directory_id,
tags,
vpc_information
FROM aws.pcaconnectorad.connectors
WHERE region = 'us-east-1';

Gets all properties from an individual connector.

SELECT
region,
certificate_authority_arn,
connector_arn,
directory_id,
tags,
vpc_information
FROM aws.pcaconnectorad.connectors
WHERE region = 'us-east-1' AND data__Identifier = '<ConnectorArn>';

INSERT example

Use the following StackQL query and manifest file to create a new connector resource, using stack-deploy.

/*+ create */
INSERT INTO aws.pcaconnectorad.connectors (
CertificateAuthorityArn,
DirectoryId,
VpcInformation,
region
)
SELECT
'{{ CertificateAuthorityArn }}',
'{{ DirectoryId }}',
'{{ VpcInformation }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.pcaconnectorad.connectors
WHERE data__Identifier = '<ConnectorArn>'
AND region = 'us-east-1';

Permissions

To operate on the connectors resource, the following permissions are required:

Create

acm-pca:DescribeCertificateAuthority,
acm-pca:GetCertificateAuthorityCertificate,
acm-pca:GetCertificate,
acm-pca:IssueCertificate,
ds:DescribeDirectories,
ec2:CreateTags,
ec2:CreateVpcEndpoint,
ec2:DescribeVpcEndpoints,
pca-connector-ad:CreateConnector,
pca-connector-ad:GetConnector

Read

pca-connector-ad:ListTagsForResource,
pca-connector-ad:GetConnector

Delete

pca-connector-ad:GetConnector,
pca-connector-ad:DeleteConnector,
ec2:DeleteVpcEndpoints,
ec2:DescribeVpcEndpoints

List

pca-connector-ad:ListConnectors

Update

pca-connector-ad:ListTagsForResource,
pca-connector-ad:TagResource,
pca-connector-ad:UntagResource