Skip to main content

challenges

Creates, updates, deletes or gets a challenge resource or lists challenges in a region

Overview

Namechallenges
TypeResource
DescriptionRepresents a SCEP Challenge that is used for certificate enrollment
Idaws.pcaconnectorscep.challenges

Fields

NameDatatypeDescription
challenge_arnstring
connector_arnstring
tagsobject
regionstringAWS region.

For more information, see AWS::PCAConnectorSCEP::Challenge.

Methods

NameAccessible byRequired Params
create_resourceINSERTConnectorArn, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all challenges in a region.

SELECT
region,
challenge_arn,
connector_arn,
tags
FROM aws.pcaconnectorscep.challenges
WHERE region = 'us-east-1';

Gets all properties from an individual challenge.

SELECT
region,
challenge_arn,
connector_arn,
tags
FROM aws.pcaconnectorscep.challenges
WHERE region = 'us-east-1' AND data__Identifier = '<ChallengeArn>';

INSERT example

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

/*+ create */
INSERT INTO aws.pcaconnectorscep.challenges (
ConnectorArn,
region
)
SELECT
'{{ ConnectorArn }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.pcaconnectorscep.challenges
WHERE data__Identifier = '<ChallengeArn>'
AND region = 'us-east-1';

Permissions

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

Create

pca-connector-scep:CreateChallenge,
pca-connector-scep:TagResource

Read

pca-connector-scep:ListTagsForResource,
pca-connector-scep:GetChallengeMetadata

Delete

pca-connector-scep:GetChallengeMetadata,
pca-connector-scep:DeleteChallenge,
pca-connector-scep:UntagResource

List

pca-connector-scep:ListChallengeMetadata

Update

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