Skip to main content

action_types

Creates, updates, deletes, gets or lists an action_types resource.

Overview

Nameaction_types
TypeResource
Idaws.codepipeline.action_types

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idobjectThe action category, owner, provider, and version of the action type to be updated.
descriptionstringThe description for the action type to be updated.
executorobjectInformation about the executor for an action type that was created with any supported integration model.
input_artifact_detailsobjectDetails for the artifacts, such as application files, to be worked on by the action. For example, the minimum and maximum number of input artifacts allowed.
output_artifact_detailsobjectDetails for the output artifacts, such as a built application, that are the result of the action. For example, the minimum and maximum number of output artifacts allowed.
permissionsobjectDetails identifying the accounts with permissions to use the action type.
properties_arrayThe properties of the action type to be updated.
urlsobjectThe links associated with the action type to be updated.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_action_typeselectregionReturns information about an action type created for an external provider, where the action is to be used by customers of the external provider. The action can be created with any supported integration model.
list_action_typesselectregionGets a summary of all CodePipeline action types associated with your account.
create_custom_action_typeinsertregion, category, provider, version, inputArtifactDetails, outputArtifactDetailsCreates a new custom action that can be used in all pipelines associated with the Amazon Web Services account. Only used for custom actions.
update_action_typeupdateregion, actionTypeUpdates an action type that was created with any supported integration model, where the action type is to be used by customers of the action type provider. Use a JSON file with the action definition and UpdateActionType to provide the full structure.
delete_custom_action_typedeleteregionMarks a custom action as deleted. PollForJobs for the custom action fails after the action is marked for deletion. Used for custom actions only. To re-create a custom action after it has been deleted you must use a string in the version field that has never been used before. This string can be an incremented version number, for example. To restore a deleted custom action, use a JSON file that is identical to the deleted action, including the original string in the version field.
poll_for_jobsexecregion, actionTypeIdReturns information about any jobs for CodePipeline to act on. PollForJobs is valid only for action types with "Custom" in the owner field. If the action type contains AWS or ThirdParty in the owner field, the PollForJobs action returns an error. When this API is called, CodePipeline returns temporary credentials for the S3 bucket used to store artifacts for the pipeline, if the action requires access to that S3 bucket for input or output artifacts. This API also returns any secret values defined for the action.
poll_for_third_party_jobsexecregion, actionTypeIdDetermines whether there are any third party jobs for a job worker to act on. Used for partner actions only. When this API is called, CodePipeline returns temporary credentials for the S3 bucket used to store artifacts for the pipeline, if the action requires access to that S3 bucket for input or output artifacts.

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
regionstringAWS region (default: us-east-1)

SELECT examples

Returns information about an action type created for an external provider, where the action is to be used by customers of the external provider. The action can be created with any supported integration model.

SELECT
id,
description,
executor,
input_artifact_details,
output_artifact_details,
permissions,
properties_,
urls
FROM aws.codepipeline.action_types
WHERE region = '{{ region }}' -- required
;

INSERT examples

Creates a new custom action that can be used in all pipelines associated with the Amazon Web Services account. Only used for custom actions.

INSERT INTO aws.codepipeline.action_types (
category,
provider,
version,
settings,
configurationProperties,
inputArtifactDetails,
outputArtifactDetails,
tags,
region
)
SELECT
'{{ category }}' /* required */,
'{{ provider }}' /* required */,
'{{ version }}' /* required */,
'{{ settings }}',
'{{ configurationProperties }}',
'{{ inputArtifactDetails }}' /* required */,
'{{ outputArtifactDetails }}' /* required */,
'{{ tags }}',
'{{ region }}'
RETURNING
action_type,
tags
;

UPDATE examples

Updates an action type that was created with any supported integration model, where the action type is to be used by customers of the action type provider. Use a JSON file with the action definition and UpdateActionType to provide the full structure.

UPDATE aws.codepipeline.action_types
SET
actionType = '{{ actionType }}'
WHERE
region = '{{ region }}' --required
AND actionType = '{{ actionType }}' --required;

DELETE examples

Marks a custom action as deleted. PollForJobs for the custom action fails after the action is marked for deletion. Used for custom actions only. To re-create a custom action after it has been deleted you must use a string in the version field that has never been used before. This string can be an incremented version number, for example. To restore a deleted custom action, use a JSON file that is identical to the deleted action, including the original string in the version field.

DELETE FROM aws.codepipeline.action_types
WHERE region = '{{ region }}' --required
;

Lifecycle Methods

Returns information about any jobs for CodePipeline to act on. PollForJobs is valid only for action types with "Custom" in the owner field. If the action type contains AWS or ThirdParty in the owner field, the PollForJobs action returns an error. When this API is called, CodePipeline returns temporary credentials for the S3 bucket used to store artifacts for the pipeline, if the action requires access to that S3 bucket for input or output artifacts. This API also returns any secret values defined for the action.

EXEC aws.codepipeline.action_types.poll_for_jobs
@region='{{ region }}' --required
@@json=
'{
"actionTypeId": "{{ actionTypeId }}",
"maxBatchSize": {{ maxBatchSize }},
"queryParam": "{{ queryParam }}"
}'
;