@@ -5,7 +5,7 @@ import cdk = require('@aws-cdk/cdk');
5
5
/**
6
6
* Properties common to all CloudFormation actions
7
7
*/
8
- export interface CloudFormationCommonProps extends codepipeline . CommonActionProps {
8
+ export interface PipelineCloudFormationActionProps extends codepipeline . CommonActionProps {
9
9
/**
10
10
* The name of the stack to apply this action to
11
11
*/
@@ -37,15 +37,15 @@ export interface CloudFormationCommonProps extends codepipeline.CommonActionProp
37
37
/**
38
38
* Base class for Actions that execute CloudFormation
39
39
*/
40
- export abstract class CloudFormationAction extends codepipeline . DeployAction {
40
+ export abstract class PipelineCloudFormationAction extends codepipeline . DeployAction {
41
41
/**
42
42
* Output artifact containing the CloudFormation call response
43
43
*
44
44
* Only present if configured by passing `outputFileName`.
45
45
*/
46
46
public artifact ?: codepipeline . Artifact ;
47
47
48
- constructor ( parent : cdk . Construct , id : string , props : CloudFormationCommonProps , configuration ?: any ) {
48
+ constructor ( parent : cdk . Construct , id : string , props : PipelineCloudFormationActionProps , configuration ?: any ) {
49
49
super ( parent , id , {
50
50
stage : props . stage ,
51
51
artifactBounds : {
@@ -70,9 +70,9 @@ export abstract class CloudFormationAction extends codepipeline.DeployAction {
70
70
}
71
71
72
72
/**
73
- * Properties for the ExecuteChangeSet action .
73
+ * Properties for the PipelineExecuteChangeSetAction .
74
74
*/
75
- export interface ExecuteChangeSetProps extends CloudFormationCommonProps {
75
+ export interface PipelineExecuteChangeSetActionProps extends PipelineCloudFormationActionProps {
76
76
/**
77
77
* Name of the change set to execute.
78
78
*/
@@ -82,8 +82,8 @@ export interface ExecuteChangeSetProps extends CloudFormationCommonProps {
82
82
/**
83
83
* CodePipeline action to execute a prepared change set.
84
84
*/
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 ) {
87
87
super ( parent , id , props , {
88
88
ActionMode : 'CHANGE_SET_EXECUTE' ,
89
89
ChangeSetName : props . changeSetName ,
@@ -95,7 +95,7 @@ export class ExecuteChangeSet extends CloudFormationAction {
95
95
/**
96
96
* Properties common to CloudFormation actions that stage deployments
97
97
*/
98
- export interface CloudFormationDeploymentActionCommonProps extends CloudFormationCommonProps {
98
+ export interface PipelineCloudFormationDeployActionProps extends PipelineCloudFormationActionProps {
99
99
/**
100
100
* IAM role to assume when deploying changes.
101
101
*
@@ -176,10 +176,10 @@ export interface CloudFormationDeploymentActionCommonProps extends CloudFormatio
176
176
/**
177
177
* Base class for all CloudFormation actions that execute or stage deployments.
178
178
*/
179
- export abstract class CloudFormationDeploymentAction extends CloudFormationAction {
179
+ export abstract class PipelineCloudFormationDeployAction extends PipelineCloudFormationAction {
180
180
public readonly role : iam . Role ;
181
181
182
- constructor ( parent : cdk . Construct , id : string , props : CloudFormationDeploymentActionCommonProps , configuration : any ) {
182
+ constructor ( parent : cdk . Construct , id : string , props : PipelineCloudFormationDeployActionProps , configuration : any ) {
183
183
const capabilities = props . fullPermissions && props . capabilities === undefined ? [ CloudFormationCapabilities . NamedIAM ] : props . capabilities ;
184
184
185
185
super ( parent , id , props , {
@@ -214,9 +214,9 @@ export abstract class CloudFormationDeploymentAction extends CloudFormationActio
214
214
}
215
215
216
216
/**
217
- * Properties for the CreateReplaceChangeSet action .
217
+ * Properties for the PipelineCreateReplaceChangeSetAction .
218
218
*/
219
- export interface CreateReplaceChangeSetProps extends CloudFormationDeploymentActionCommonProps {
219
+ export interface PipelineCreateReplaceChangeSetActionProps extends PipelineCloudFormationDeployActionProps {
220
220
/**
221
221
* Name of the change set to create or update.
222
222
*/
@@ -234,8 +234,8 @@ export interface CreateReplaceChangeSetProps extends CloudFormationDeploymentAct
234
234
* Creates the change set if it doesn't exist based on the stack name and template that you submit.
235
235
* If the change set exists, AWS CloudFormation deletes it, and then creates a new one.
236
236
*/
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 ) {
239
239
super ( parent , id , props , {
240
240
ActionMode : 'CHANGE_SET_REPLACE' ,
241
241
ChangeSetName : props . changeSetName ,
@@ -247,9 +247,9 @@ export class CreateReplaceChangeSet extends CloudFormationDeploymentAction {
247
247
}
248
248
249
249
/**
250
- * Properties for the CreateUpdate action
250
+ * Properties for the PipelineCreateUpdateStackAction.
251
251
*/
252
- export interface CreateUpdateProps extends CloudFormationDeploymentActionCommonProps {
252
+ export interface PipelineCreateUpdateStackActionProps extends PipelineCloudFormationDeployActionProps {
253
253
/**
254
254
* Input artifact with the CloudFormation template to deploy
255
255
*/
@@ -285,8 +285,8 @@ export interface CreateUpdateProps extends CloudFormationDeploymentActionCommonP
285
285
* Use this action to automatically replace failed stacks without recovering or
286
286
* troubleshooting them. You would typically choose this mode for testing.
287
287
*/
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 ) {
290
290
super ( parent , id , props , {
291
291
ActionMode : props . replaceOnFailure ? 'REPLACE_ON_FAILURE' : 'CREATE_UPDATE' ,
292
292
TemplatePath : props . templatePath . location
@@ -296,10 +296,10 @@ export class CreateUpdateStack extends CloudFormationDeploymentAction {
296
296
}
297
297
298
298
/**
299
- * Properties for the DeleteOnly action
299
+ * Properties for the PipelineDeleteStackAction.
300
300
*/
301
301
// tslint:disable-next-line:no-empty-interface
302
- export interface DeleteStackOnlyProps extends CloudFormationDeploymentActionCommonProps {
302
+ export interface PipelineDeleteStackActionProps extends PipelineCloudFormationDeployActionProps {
303
303
}
304
304
305
305
/**
@@ -308,8 +308,8 @@ export interface DeleteStackOnlyProps extends CloudFormationDeploymentActionComm
308
308
* Deletes a stack. If you specify a stack that doesn't exist, the action completes successfully
309
309
* without deleting a stack.
310
310
*/
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 ) {
313
313
super ( parent , id , props , {
314
314
ActionMode : 'DELETE_ONLY' ,
315
315
} ) ;
0 commit comments