challenges
Creates, updates, deletes or gets a challenge
resource or lists challenges
in a region
Overview
Name | challenges |
Type | Resource |
Description | Represents a SCEP Challenge that is used for certificate enrollment |
Id | aws.pcaconnectorscep.challenges |
Fields
Name | Datatype | Description |
---|---|---|
challenge_arn | string | |
connector_arn | string | |
tags | object | |
region | string | AWS region. |
For more information, see AWS::PCAConnectorSCEP::Challenge
.
Methods
Name | Accessible by | Required Params |
---|---|---|
create_resource | INSERT | ConnectorArn, region |
delete_resource | DELETE | data__Identifier, region |
update_resource | UPDATE | data__Identifier, data__PatchDocument, region |
list_resources | SELECT | region |
get_resource | SELECT | data__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
.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO aws.pcaconnectorscep.challenges (
ConnectorArn,
region
)
SELECT
'{{ ConnectorArn }}',
'{{ region }}';
/*+ create */
INSERT INTO aws.pcaconnectorscep.challenges (
ConnectorArn,
Tags,
region
)
SELECT
'{{ ConnectorArn }}',
'{{ Tags }}',
'{{ region }}';
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: challenge
props:
- name: ConnectorArn
value: '{{ ConnectorArn }}'
- name: Tags
value: {}
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