custom_action_types
Creates, updates, deletes or gets a custom_action_type resource or lists custom_action_types in a region
Overview
| Name | custom_action_types |
| Type | Resource |
| Description | The AWS::CodePipeline::CustomActionType resource creates a custom action for activities that aren't included in the CodePipeline default actions, such as running an internally developed build process or a test suite. You can use these custom actions in the stage of a pipeline. |
| Id | awscc.codepipeline.custom_action_types |
Fields
- get (all properties)
- list (identifiers only)
| Name | Datatype | Description |
|---|---|---|
category | string | The category of the custom action, such as a build action or a test action. |
configuration_properties | array | The configuration properties for the custom action. |
input_artifact_details | object | The details of the input artifact for the action, such as its commit ID. |
provider | string | The provider of the service used in the custom action, such as AWS CodeDeploy. |
settings | object | URLs that provide users information about this custom action. |
tags | array | Any tags assigned to the custom action. |
version | string | The version identifier of the custom action. |
id | string | |
region | string | AWS region. |
| Name | Datatype | Description |
|---|---|---|
category | string | The category of the custom action, such as a build action or a test action. |
provider | string | The provider of the service used in the custom action, such as AWS CodeDeploy. |
version | string | The version identifier of the custom action. |
id | string | |
region | string | AWS region. |
For more information, see AWS::CodePipeline::CustomActionType.
Methods
| Name | Resource | Accessible by | Required Params |
|---|---|---|---|
create_resource | custom_action_types | INSERT | Category, InputArtifactDetails, OutputArtifactDetails, Provider, Version, region |
delete_resource | custom_action_types | DELETE | Identifier, region |
update_resource | custom_action_types | UPDATE | Identifier, PatchDocument, region |
list_resources | custom_action_types_list_only | SELECT | region |
get_resource | custom_action_types | SELECT | Identifier, region |
SELECT examples
- get (all properties)
- list (identifiers only)
Gets all properties from an individual custom_action_type.
SELECT
region,
category,
configuration_properties,
input_artifact_details,
output_artifact_details,
provider,
settings,
tags,
version,
id
FROM awscc.codepipeline.custom_action_types
WHERE
region = 'us-east-1' AND
Identifier = '{{ category }}|{{ provider }}|{{ version }}';
Lists all custom_action_types in a region.
SELECT
region,
category,
provider,
version
FROM awscc.codepipeline.custom_action_types_list_only
WHERE
region = 'us-east-1';
INSERT example
Use the following StackQL query and manifest file to create a new custom_action_type resource, using stack-deploy.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO awscc.codepipeline.custom_action_types (
Category,
InputArtifactDetails,
OutputArtifactDetails,
Provider,
Version,
region
)
SELECT
'{{ category }}',
'{{ input_artifact_details }}',
'{{ output_artifact_details }}',
'{{ provider }}',
'{{ version }}',
'{{ region }}';
/*+ create */
INSERT INTO awscc.codepipeline.custom_action_types (
Category,
ConfigurationProperties,
InputArtifactDetails,
OutputArtifactDetails,
Provider,
Settings,
Tags,
Version,
region
)
SELECT
'{{ category }}',
'{{ configuration_properties }}',
'{{ input_artifact_details }}',
'{{ output_artifact_details }}',
'{{ provider }}',
'{{ settings }}',
'{{ tags }}',
'{{ version }}',
'{{ region }}';
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: custom_action_type
props:
- name: category
value: '{{ category }}'
- name: configuration_properties
value:
- description: '{{ description }}'
key: '{{ key }}'
name: '{{ name }}'
queryable: '{{ queryable }}'
required: '{{ required }}'
secret: '{{ secret }}'
type: '{{ type }}'
- name: input_artifact_details
value:
maximum_count: '{{ maximum_count }}'
minimum_count: '{{ minimum_count }}'
- name: output_artifact_details
value: null
- name: provider
value: '{{ provider }}'
- name: settings
value:
entity_url_template: '{{ entity_url_template }}'
execution_url_template: '{{ execution_url_template }}'
revision_url_template: '{{ revision_url_template }}'
third_party_configuration_url: '{{ third_party_configuration_url }}'
- name: tags
value:
- value: '{{ value }}'
key: '{{ key }}'
- name: version
value: '{{ version }}'
UPDATE example
Use the following StackQL query and manifest file to update a custom_action_type resource, using stack-deploy.
/*+ update */
UPDATE awscc.codepipeline.custom_action_types
SET PatchDocument = string('{{ {
"Tags": tags
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ category }}|{{ provider }}|{{ version }}';
DELETE example
/*+ delete */
DELETE FROM awscc.codepipeline.custom_action_types
WHERE
Identifier = '{{ category }}|{{ provider }}|{{ version }}' AND
region = 'us-east-1';
Permissions
To operate on the custom_action_types resource, the following permissions are required:
- Create
- Read
- Update
- Delete
- List
codepipeline:CreateCustomActionType,
codepipeline:TagResource,
codepipeline:ListActionTypes
codepipeline:ListActionTypes,
codepipeline:ListTagsForResource
codepipeline:ListActionTypes,
codepipeline:TagResource,
codepipeline:UntagResource
codepipeline:DeleteCustomActionType,
codepipeline:ListActionTypes
codepipeline:ListActionTypes