Skip to content

Commit 582eb00

Browse files
author
awstools
committed
feat(client-codestar-connections): Added a sync configuration enum to disable publishing of deployment status to source providers (PublishDeploymentStatus). Added a sync configuration enum (TriggerStackUpdateOn) to only trigger changes.
1 parent e25808c commit 582eb00

File tree

6 files changed

+146
-0
lines changed

6 files changed

+146
-0
lines changed

clients/client-codestar-connections/src/commands/CreateSyncConfigurationCommand.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ export interface CreateSyncConfigurationCommandOutput extends CreateSyncConfigur
4848
* ResourceName: "STRING_VALUE", // required
4949
* RoleArn: "STRING_VALUE", // required
5050
* SyncType: "CFN_STACK_SYNC", // required
51+
* PublishDeploymentStatus: "ENABLED" || "DISABLED",
52+
* TriggerResourceUpdateOn: "ANY_CHANGE" || "FILE_CHANGE",
5153
* };
5254
* const command = new CreateSyncConfigurationCommand(input);
5355
* const response = await client.send(command);
@@ -62,6 +64,8 @@ export interface CreateSyncConfigurationCommandOutput extends CreateSyncConfigur
6264
* // ResourceName: "STRING_VALUE", // required
6365
* // RoleArn: "STRING_VALUE", // required
6466
* // SyncType: "CFN_STACK_SYNC", // required
67+
* // PublishDeploymentStatus: "ENABLED" || "DISABLED",
68+
* // TriggerResourceUpdateOn: "ANY_CHANGE" || "FILE_CHANGE",
6569
* // },
6670
* // };
6771
*

clients/client-codestar-connections/src/commands/GetSyncConfigurationCommand.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ export interface GetSyncConfigurationCommandOutput extends GetSyncConfigurationO
5656
* // ResourceName: "STRING_VALUE", // required
5757
* // RoleArn: "STRING_VALUE", // required
5858
* // SyncType: "CFN_STACK_SYNC", // required
59+
* // PublishDeploymentStatus: "ENABLED" || "DISABLED",
60+
* // TriggerResourceUpdateOn: "ANY_CHANGE" || "FILE_CHANGE",
5961
* // },
6062
* // };
6163
*

clients/client-codestar-connections/src/commands/ListSyncConfigurationsCommand.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ export interface ListSyncConfigurationsCommandOutput extends ListSyncConfigurati
5959
* // ResourceName: "STRING_VALUE", // required
6060
* // RoleArn: "STRING_VALUE", // required
6161
* // SyncType: "CFN_STACK_SYNC", // required
62+
* // PublishDeploymentStatus: "ENABLED" || "DISABLED",
63+
* // TriggerResourceUpdateOn: "ANY_CHANGE" || "FILE_CHANGE",
6264
* // },
6365
* // ],
6466
* // NextToken: "STRING_VALUE",

clients/client-codestar-connections/src/commands/UpdateSyncConfigurationCommand.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ export interface UpdateSyncConfigurationCommandOutput extends UpdateSyncConfigur
4646
* ResourceName: "STRING_VALUE", // required
4747
* RoleArn: "STRING_VALUE",
4848
* SyncType: "CFN_STACK_SYNC", // required
49+
* PublishDeploymentStatus: "ENABLED" || "DISABLED",
50+
* TriggerResourceUpdateOn: "ANY_CHANGE" || "FILE_CHANGE",
4951
* };
5052
* const command = new UpdateSyncConfigurationCommand(input);
5153
* const response = await client.send(command);
@@ -60,6 +62,8 @@ export interface UpdateSyncConfigurationCommandOutput extends UpdateSyncConfigur
6062
* // ResourceName: "STRING_VALUE", // required
6163
* // RoleArn: "STRING_VALUE", // required
6264
* // SyncType: "CFN_STACK_SYNC", // required
65+
* // PublishDeploymentStatus: "ENABLED" || "DISABLED",
66+
* // TriggerResourceUpdateOn: "ANY_CHANGE" || "FILE_CHANGE",
6367
* // },
6468
* // };
6569
*

clients/client-codestar-connections/src/models/models_0.ts

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -500,6 +500,20 @@ export class ThrottlingException extends __BaseException {
500500
}
501501
}
502502

503+
/**
504+
* @public
505+
* @enum
506+
*/
507+
export const PublishDeploymentStatus = {
508+
DISABLED: "DISABLED",
509+
ENABLED: "ENABLED",
510+
} as const;
511+
512+
/**
513+
* @public
514+
*/
515+
export type PublishDeploymentStatus = (typeof PublishDeploymentStatus)[keyof typeof PublishDeploymentStatus];
516+
503517
/**
504518
* @public
505519
* @enum
@@ -513,6 +527,20 @@ export const SyncConfigurationType = {
513527
*/
514528
export type SyncConfigurationType = (typeof SyncConfigurationType)[keyof typeof SyncConfigurationType];
515529

530+
/**
531+
* @public
532+
* @enum
533+
*/
534+
export const TriggerResourceUpdateOn = {
535+
ANY_CHANGE: "ANY_CHANGE",
536+
FILE_CHANGE: "FILE_CHANGE",
537+
} as const;
538+
539+
/**
540+
* @public
541+
*/
542+
export type TriggerResourceUpdateOn = (typeof TriggerResourceUpdateOn)[keyof typeof TriggerResourceUpdateOn];
543+
516544
/**
517545
* @public
518546
*/
@@ -555,6 +583,18 @@ export interface CreateSyncConfigurationInput {
555583
* <p>The type of sync configuration.</p>
556584
*/
557585
SyncType: SyncConfigurationType | undefined;
586+
587+
/**
588+
* @public
589+
* <p>Whether to enable or disable publishing of deployment status to source providers.</p>
590+
*/
591+
PublishDeploymentStatus?: PublishDeploymentStatus;
592+
593+
/**
594+
* @public
595+
* <p>When to trigger Git sync to begin the stack update.</p>
596+
*/
597+
TriggerResourceUpdateOn?: TriggerResourceUpdateOn;
558598
}
559599

560600
/**
@@ -617,6 +657,18 @@ export interface SyncConfiguration {
617657
* <p>The type of sync for a specific sync configuration.</p>
618658
*/
619659
SyncType: SyncConfigurationType | undefined;
660+
661+
/**
662+
* @public
663+
* <p>Whether to enable or disable publishing of deployment status to source providers.</p>
664+
*/
665+
PublishDeploymentStatus?: PublishDeploymentStatus;
666+
667+
/**
668+
* @public
669+
* <p>When to trigger Git sync to begin the stack update.</p>
670+
*/
671+
TriggerResourceUpdateOn?: TriggerResourceUpdateOn;
620672
}
621673

622674
/**
@@ -2018,6 +2070,18 @@ export interface UpdateSyncConfigurationInput {
20182070
* <p>The sync type for the sync configuration to be updated.</p>
20192071
*/
20202072
SyncType: SyncConfigurationType | undefined;
2073+
2074+
/**
2075+
* @public
2076+
* <p>Whether to enable or disable publishing of deployment status to source providers.</p>
2077+
*/
2078+
PublishDeploymentStatus?: PublishDeploymentStatus;
2079+
2080+
/**
2081+
* @public
2082+
* <p>When to trigger Git sync to begin the stack update.</p>
2083+
*/
2084+
TriggerResourceUpdateOn?: TriggerResourceUpdateOn;
20212085
}
20222086

20232087
/**

codegen/sdk-codegen/aws-models/codestar-connections.json

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1482,6 +1482,18 @@
14821482
"smithy.api#documentation": "<p>The type of sync configuration.</p>",
14831483
"smithy.api#required": {}
14841484
}
1485+
},
1486+
"PublishDeploymentStatus": {
1487+
"target": "com.amazonaws.codestarconnections#PublishDeploymentStatus",
1488+
"traits": {
1489+
"smithy.api#documentation": "<p>Whether to enable or disable publishing of deployment status to source providers.</p>"
1490+
}
1491+
},
1492+
"TriggerResourceUpdateOn": {
1493+
"target": "com.amazonaws.codestarconnections#TriggerResourceUpdateOn",
1494+
"traits": {
1495+
"smithy.api#documentation": "<p>When to trigger Git sync to begin the stack update.</p>"
1496+
}
14851497
}
14861498
},
14871499
"traits": {
@@ -2847,6 +2859,23 @@
28472859
}
28482860
}
28492861
},
2862+
"com.amazonaws.codestarconnections#PublishDeploymentStatus": {
2863+
"type": "enum",
2864+
"members": {
2865+
"ENABLED": {
2866+
"target": "smithy.api#Unit",
2867+
"traits": {
2868+
"smithy.api#enumValue": "ENABLED"
2869+
}
2870+
},
2871+
"DISABLED": {
2872+
"target": "smithy.api#Unit",
2873+
"traits": {
2874+
"smithy.api#enumValue": "DISABLED"
2875+
}
2876+
}
2877+
}
2878+
},
28502879
"com.amazonaws.codestarconnections#RepositoryLinkArn": {
28512880
"type": "string",
28522881
"traits": {
@@ -3581,6 +3610,18 @@
35813610
"smithy.api#documentation": "<p>The type of sync for a specific sync configuration.</p>",
35823611
"smithy.api#required": {}
35833612
}
3613+
},
3614+
"PublishDeploymentStatus": {
3615+
"target": "com.amazonaws.codestarconnections#PublishDeploymentStatus",
3616+
"traits": {
3617+
"smithy.api#documentation": "<p>Whether to enable or disable publishing of deployment status to source providers.</p>"
3618+
}
3619+
},
3620+
"TriggerResourceUpdateOn": {
3621+
"target": "com.amazonaws.codestarconnections#TriggerResourceUpdateOn",
3622+
"traits": {
3623+
"smithy.api#documentation": "<p>When to trigger Git sync to begin the stack update.</p>"
3624+
}
35843625
}
35853626
},
35863627
"traits": {
@@ -3761,6 +3802,23 @@
37613802
"smithy.api#pattern": "^[\\s\\S]*$"
37623803
}
37633804
},
3805+
"com.amazonaws.codestarconnections#TriggerResourceUpdateOn": {
3806+
"type": "enum",
3807+
"members": {
3808+
"ANY_CHANGE": {
3809+
"target": "smithy.api#Unit",
3810+
"traits": {
3811+
"smithy.api#enumValue": "ANY_CHANGE"
3812+
}
3813+
},
3814+
"FILE_CHANGE": {
3815+
"target": "smithy.api#Unit",
3816+
"traits": {
3817+
"smithy.api#enumValue": "FILE_CHANGE"
3818+
}
3819+
}
3820+
}
3821+
},
37643822
"com.amazonaws.codestarconnections#Type": {
37653823
"type": "string"
37663824
},
@@ -4160,6 +4218,18 @@
41604218
"smithy.api#documentation": "<p>The sync type for the sync configuration to be updated.</p>",
41614219
"smithy.api#required": {}
41624220
}
4221+
},
4222+
"PublishDeploymentStatus": {
4223+
"target": "com.amazonaws.codestarconnections#PublishDeploymentStatus",
4224+
"traits": {
4225+
"smithy.api#documentation": "<p>Whether to enable or disable publishing of deployment status to source providers.</p>"
4226+
}
4227+
},
4228+
"TriggerResourceUpdateOn": {
4229+
"target": "com.amazonaws.codestarconnections#TriggerResourceUpdateOn",
4230+
"traits": {
4231+
"smithy.api#documentation": "<p>When to trigger Git sync to begin the stack update.</p>"
4232+
}
41634233
}
41644234
},
41654235
"traits": {

0 commit comments

Comments
 (0)