@@ -5,7 +5,7 @@ import cdk = require('@aws-cdk/cdk');
55/**
66 * Properties common to all CloudFormation actions
77 */
8- export interface CloudFormationCommonProps extends codepipeline . CommonActionProps {
8+ export interface PipelineCloudFormationActionProps extends codepipeline . CommonActionProps {
99 /**
1010 * The name of the stack to apply this action to
1111 */
@@ -37,15 +37,15 @@ export interface CloudFormationCommonProps extends codepipeline.CommonActionProp
3737/**
3838 * Base class for Actions that execute CloudFormation
3939 */
40- export abstract class CloudFormationAction extends codepipeline . DeployAction {
40+ export abstract class PipelineCloudFormationAction extends codepipeline . DeployAction {
4141 /**
4242 * Output artifact containing the CloudFormation call response
4343 *
4444 * Only present if configured by passing `outputFileName`.
4545 */
4646 public artifact ?: codepipeline . Artifact ;
4747
48- constructor ( parent : cdk . Construct , id : string , props : CloudFormationCommonProps , configuration ?: any ) {
48+ constructor ( parent : cdk . Construct , id : string , props : PipelineCloudFormationActionProps , configuration ?: any ) {
4949 super ( parent , id , {
5050 stage : props . stage ,
5151 artifactBounds : {
@@ -70,9 +70,9 @@ export abstract class CloudFormationAction extends codepipeline.DeployAction {
7070}
7171
7272/**
73- * Properties for the ExecuteChangeSet action .
73+ * Properties for the PipelineExecuteChangeSetAction .
7474 */
75- export interface ExecuteChangeSetProps extends CloudFormationCommonProps {
75+ export interface PipelineExecuteChangeSetActionProps extends PipelineCloudFormationActionProps {
7676 /**
7777 * Name of the change set to execute.
7878 */
@@ -82,8 +82,8 @@ export interface ExecuteChangeSetProps extends CloudFormationCommonProps {
8282/**
8383 * CodePipeline action to execute a prepared change set.
8484 */
85- export class ExecuteChangeSet extends CloudFormationAction {
86- constructor ( parent : cdk . Construct , id : string , props : ExecuteChangeSetProps ) {
85+ export class PipelineExecuteChangeSetAction extends PipelineCloudFormationAction {
86+ constructor ( parent : cdk . Construct , id : string , props : PipelineExecuteChangeSetActionProps ) {
8787 super ( parent , id , props , {
8888 ActionMode : 'CHANGE_SET_EXECUTE' ,
8989 ChangeSetName : props . changeSetName ,
@@ -95,7 +95,7 @@ export class ExecuteChangeSet extends CloudFormationAction {
9595/**
9696 * Properties common to CloudFormation actions that stage deployments
9797 */
98- export interface CloudFormationDeploymentActionCommonProps extends CloudFormationCommonProps {
98+ export interface PipelineCloudFormationDeployActionProps extends PipelineCloudFormationActionProps {
9999 /**
100100 * IAM role to assume when deploying changes.
101101 *
@@ -176,10 +176,10 @@ export interface CloudFormationDeploymentActionCommonProps extends CloudFormatio
176176/**
177177 * Base class for all CloudFormation actions that execute or stage deployments.
178178 */
179- export abstract class CloudFormationDeploymentAction extends CloudFormationAction {
179+ export abstract class PipelineCloudFormationDeployAction extends PipelineCloudFormationAction {
180180 public readonly role : iam . Role ;
181181
182- constructor ( parent : cdk . Construct , id : string , props : CloudFormationDeploymentActionCommonProps , configuration : any ) {
182+ constructor ( parent : cdk . Construct , id : string , props : PipelineCloudFormationDeployActionProps , configuration : any ) {
183183 const capabilities = props . fullPermissions && props . capabilities === undefined ? [ CloudFormationCapabilities . NamedIAM ] : props . capabilities ;
184184
185185 super ( parent , id , props , {
@@ -214,9 +214,9 @@ export abstract class CloudFormationDeploymentAction extends CloudFormationActio
214214}
215215
216216/**
217- * Properties for the CreateReplaceChangeSet action .
217+ * Properties for the PipelineCreateReplaceChangeSetAction .
218218 */
219- export interface CreateReplaceChangeSetProps extends CloudFormationDeploymentActionCommonProps {
219+ export interface PipelineCreateReplaceChangeSetActionProps extends PipelineCloudFormationDeployActionProps {
220220 /**
221221 * Name of the change set to create or update.
222222 */
@@ -234,8 +234,8 @@ export interface CreateReplaceChangeSetProps extends CloudFormationDeploymentAct
234234 * Creates the change set if it doesn't exist based on the stack name and template that you submit.
235235 * If the change set exists, AWS CloudFormation deletes it, and then creates a new one.
236236 */
237- export class CreateReplaceChangeSet extends CloudFormationDeploymentAction {
238- constructor ( parent : cdk . Construct , id : string , props : CreateReplaceChangeSetProps ) {
237+ export class PipelineCreateReplaceChangeSetAction extends PipelineCloudFormationDeployAction {
238+ constructor ( parent : cdk . Construct , id : string , props : PipelineCreateReplaceChangeSetActionProps ) {
239239 super ( parent , id , props , {
240240 ActionMode : 'CHANGE_SET_REPLACE' ,
241241 ChangeSetName : props . changeSetName ,
@@ -247,9 +247,9 @@ export class CreateReplaceChangeSet extends CloudFormationDeploymentAction {
247247}
248248
249249/**
250- * Properties for the CreateUpdate action
250+ * Properties for the PipelineCreateUpdateStackAction.
251251 */
252- export interface CreateUpdateProps extends CloudFormationDeploymentActionCommonProps {
252+ export interface PipelineCreateUpdateStackActionProps extends PipelineCloudFormationDeployActionProps {
253253 /**
254254 * Input artifact with the CloudFormation template to deploy
255255 */
@@ -285,8 +285,8 @@ export interface CreateUpdateProps extends CloudFormationDeploymentActionCommonP
285285 * Use this action to automatically replace failed stacks without recovering or
286286 * troubleshooting them. You would typically choose this mode for testing.
287287 */
288- export class CreateUpdateStack extends CloudFormationDeploymentAction {
289- constructor ( parent : cdk . Construct , id : string , props : CreateUpdateProps ) {
288+ export class PipelineCreateUpdateStackAction extends PipelineCloudFormationDeployAction {
289+ constructor ( parent : cdk . Construct , id : string , props : PipelineCreateUpdateStackActionProps ) {
290290 super ( parent , id , props , {
291291 ActionMode : props . replaceOnFailure ? 'REPLACE_ON_FAILURE' : 'CREATE_UPDATE' ,
292292 TemplatePath : props . templatePath . location
@@ -296,10 +296,10 @@ export class CreateUpdateStack extends CloudFormationDeploymentAction {
296296}
297297
298298/**
299- * Properties for the DeleteOnly action
299+ * Properties for the PipelineDeleteStackAction.
300300 */
301301// tslint:disable-next-line:no-empty-interface
302- export interface DeleteStackOnlyProps extends CloudFormationDeploymentActionCommonProps {
302+ export interface PipelineDeleteStackActionProps extends PipelineCloudFormationDeployActionProps {
303303}
304304
305305/**
@@ -308,8 +308,8 @@ export interface DeleteStackOnlyProps extends CloudFormationDeploymentActionComm
308308 * Deletes a stack. If you specify a stack that doesn't exist, the action completes successfully
309309 * without deleting a stack.
310310 */
311- export class DeleteStackOnly extends CloudFormationDeploymentAction {
312- constructor ( parent : cdk . Construct , id : string , props : DeleteStackOnlyProps ) {
311+ export class PipelineDeleteStackAction extends PipelineCloudFormationDeployAction {
312+ constructor ( parent : cdk . Construct , id : string , props : PipelineDeleteStackActionProps ) {
313313 super ( parent , id , props , {
314314 ActionMode : 'DELETE_ONLY' ,
315315 } ) ;
0 commit comments