There are more AWS SDK examples available in the AWS Doc SDK Examples
Use DeleteCustomActionType with a CLI
The following code examples show how to use DeleteCustomActionType.
- CLI
-
- AWS CLI
-
To delete a custom action
The following
delete-custom-action-typeexample deletes a custom action in AWS CodePipeline by using an already-created JSON file (here named DeleteMyCustomAction.json) that contains the action type, provider name, and version number of the action to be deleted. Use the list-action-types command to view the correct values for category, version, and provider.aws codepipeline delete-custom-action-type \ --cli-input-jsonfile://DeleteMyCustomAction.jsonContents of
DeleteMyCustomAction.json:{ "category": "Build", "version": "1", "provider": "MyJenkinsProviderName" }This command produces no output.
For more information, see Create and add a custom action in CodePipeline in the AWS CodePipeline User Guide.
-
For API details, see DeleteCustomActionType
in AWS CLI Command Reference.
-
- PowerShell
-
- Tools for PowerShell V4
-
Example 1: This example deletes the specified custom action. The command will prompt for confirmation before proceeding. Add the -Force parameter to delete the custom action without a prompt.
Remove-CPCustomActionType -Category Build -Provider MyBuildProviderName -Version 1-
For API details, see DeleteCustomActionType in AWS Tools for PowerShell Cmdlet Reference (V4).
-
- Tools for PowerShell V5
-
Example 1: This example deletes the specified custom action. The command will prompt for confirmation before proceeding. Add the -Force parameter to delete the custom action without a prompt.
Remove-CPCustomActionType -Category Build -Provider MyBuildProviderName -Version 1-
For API details, see DeleteCustomActionType in AWS Tools for PowerShell Cmdlet Reference (V5).
-