Skip to content

Commit

Permalink
feat(client-codestar-connections): Added a sync configuration enum to…
Browse files Browse the repository at this point in the history
… disable publishing of deployment status to source providers (PublishDeploymentStatus). Added a sync configuration enum (TriggerStackUpdateOn) to only trigger changes.
  • Loading branch information
awstools committed Mar 11, 2024
1 parent e25808c commit 582eb00
Show file tree
Hide file tree
Showing 6 changed files with 146 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ export interface CreateSyncConfigurationCommandOutput extends CreateSyncConfigur
* ResourceName: "STRING_VALUE", // required
* RoleArn: "STRING_VALUE", // required
* SyncType: "CFN_STACK_SYNC", // required
* PublishDeploymentStatus: "ENABLED" || "DISABLED",
* TriggerResourceUpdateOn: "ANY_CHANGE" || "FILE_CHANGE",
* };
* const command = new CreateSyncConfigurationCommand(input);
* const response = await client.send(command);
Expand All @@ -62,6 +64,8 @@ export interface CreateSyncConfigurationCommandOutput extends CreateSyncConfigur
* // ResourceName: "STRING_VALUE", // required
* // RoleArn: "STRING_VALUE", // required
* // SyncType: "CFN_STACK_SYNC", // required
* // PublishDeploymentStatus: "ENABLED" || "DISABLED",
* // TriggerResourceUpdateOn: "ANY_CHANGE" || "FILE_CHANGE",
* // },
* // };
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ export interface GetSyncConfigurationCommandOutput extends GetSyncConfigurationO
* // ResourceName: "STRING_VALUE", // required
* // RoleArn: "STRING_VALUE", // required
* // SyncType: "CFN_STACK_SYNC", // required
* // PublishDeploymentStatus: "ENABLED" || "DISABLED",
* // TriggerResourceUpdateOn: "ANY_CHANGE" || "FILE_CHANGE",
* // },
* // };
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ export interface ListSyncConfigurationsCommandOutput extends ListSyncConfigurati
* // ResourceName: "STRING_VALUE", // required
* // RoleArn: "STRING_VALUE", // required
* // SyncType: "CFN_STACK_SYNC", // required
* // PublishDeploymentStatus: "ENABLED" || "DISABLED",
* // TriggerResourceUpdateOn: "ANY_CHANGE" || "FILE_CHANGE",
* // },
* // ],
* // NextToken: "STRING_VALUE",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ export interface UpdateSyncConfigurationCommandOutput extends UpdateSyncConfigur
* ResourceName: "STRING_VALUE", // required
* RoleArn: "STRING_VALUE",
* SyncType: "CFN_STACK_SYNC", // required
* PublishDeploymentStatus: "ENABLED" || "DISABLED",
* TriggerResourceUpdateOn: "ANY_CHANGE" || "FILE_CHANGE",
* };
* const command = new UpdateSyncConfigurationCommand(input);
* const response = await client.send(command);
Expand All @@ -60,6 +62,8 @@ export interface UpdateSyncConfigurationCommandOutput extends UpdateSyncConfigur
* // ResourceName: "STRING_VALUE", // required
* // RoleArn: "STRING_VALUE", // required
* // SyncType: "CFN_STACK_SYNC", // required
* // PublishDeploymentStatus: "ENABLED" || "DISABLED",
* // TriggerResourceUpdateOn: "ANY_CHANGE" || "FILE_CHANGE",
* // },
* // };
*
Expand Down
64 changes: 64 additions & 0 deletions clients/client-codestar-connections/src/models/models_0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -500,6 +500,20 @@ export class ThrottlingException extends __BaseException {
}
}

/**
* @public
* @enum
*/
export const PublishDeploymentStatus = {
DISABLED: "DISABLED",
ENABLED: "ENABLED",
} as const;

/**
* @public
*/
export type PublishDeploymentStatus = (typeof PublishDeploymentStatus)[keyof typeof PublishDeploymentStatus];

/**
* @public
* @enum
Expand All @@ -513,6 +527,20 @@ export const SyncConfigurationType = {
*/
export type SyncConfigurationType = (typeof SyncConfigurationType)[keyof typeof SyncConfigurationType];

/**
* @public
* @enum
*/
export const TriggerResourceUpdateOn = {
ANY_CHANGE: "ANY_CHANGE",
FILE_CHANGE: "FILE_CHANGE",
} as const;

/**
* @public
*/
export type TriggerResourceUpdateOn = (typeof TriggerResourceUpdateOn)[keyof typeof TriggerResourceUpdateOn];

/**
* @public
*/
Expand Down Expand Up @@ -555,6 +583,18 @@ export interface CreateSyncConfigurationInput {
* <p>The type of sync configuration.</p>
*/
SyncType: SyncConfigurationType | undefined;

/**
* @public
* <p>Whether to enable or disable publishing of deployment status to source providers.</p>
*/
PublishDeploymentStatus?: PublishDeploymentStatus;

/**
* @public
* <p>When to trigger Git sync to begin the stack update.</p>
*/
TriggerResourceUpdateOn?: TriggerResourceUpdateOn;
}

/**
Expand Down Expand Up @@ -617,6 +657,18 @@ export interface SyncConfiguration {
* <p>The type of sync for a specific sync configuration.</p>
*/
SyncType: SyncConfigurationType | undefined;

/**
* @public
* <p>Whether to enable or disable publishing of deployment status to source providers.</p>
*/
PublishDeploymentStatus?: PublishDeploymentStatus;

/**
* @public
* <p>When to trigger Git sync to begin the stack update.</p>
*/
TriggerResourceUpdateOn?: TriggerResourceUpdateOn;
}

/**
Expand Down Expand Up @@ -2018,6 +2070,18 @@ export interface UpdateSyncConfigurationInput {
* <p>The sync type for the sync configuration to be updated.</p>
*/
SyncType: SyncConfigurationType | undefined;

/**
* @public
* <p>Whether to enable or disable publishing of deployment status to source providers.</p>
*/
PublishDeploymentStatus?: PublishDeploymentStatus;

/**
* @public
* <p>When to trigger Git sync to begin the stack update.</p>
*/
TriggerResourceUpdateOn?: TriggerResourceUpdateOn;
}

/**
Expand Down
70 changes: 70 additions & 0 deletions codegen/sdk-codegen/aws-models/codestar-connections.json
Original file line number Diff line number Diff line change
Expand Up @@ -1482,6 +1482,18 @@
"smithy.api#documentation": "<p>The type of sync configuration.</p>",
"smithy.api#required": {}
}
},
"PublishDeploymentStatus": {
"target": "com.amazonaws.codestarconnections#PublishDeploymentStatus",
"traits": {
"smithy.api#documentation": "<p>Whether to enable or disable publishing of deployment status to source providers.</p>"
}
},
"TriggerResourceUpdateOn": {
"target": "com.amazonaws.codestarconnections#TriggerResourceUpdateOn",
"traits": {
"smithy.api#documentation": "<p>When to trigger Git sync to begin the stack update.</p>"
}
}
},
"traits": {
Expand Down Expand Up @@ -2847,6 +2859,23 @@
}
}
},
"com.amazonaws.codestarconnections#PublishDeploymentStatus": {
"type": "enum",
"members": {
"ENABLED": {
"target": "smithy.api#Unit",
"traits": {
"smithy.api#enumValue": "ENABLED"
}
},
"DISABLED": {
"target": "smithy.api#Unit",
"traits": {
"smithy.api#enumValue": "DISABLED"
}
}
}
},
"com.amazonaws.codestarconnections#RepositoryLinkArn": {
"type": "string",
"traits": {
Expand Down Expand Up @@ -3581,6 +3610,18 @@
"smithy.api#documentation": "<p>The type of sync for a specific sync configuration.</p>",
"smithy.api#required": {}
}
},
"PublishDeploymentStatus": {
"target": "com.amazonaws.codestarconnections#PublishDeploymentStatus",
"traits": {
"smithy.api#documentation": "<p>Whether to enable or disable publishing of deployment status to source providers.</p>"
}
},
"TriggerResourceUpdateOn": {
"target": "com.amazonaws.codestarconnections#TriggerResourceUpdateOn",
"traits": {
"smithy.api#documentation": "<p>When to trigger Git sync to begin the stack update.</p>"
}
}
},
"traits": {
Expand Down Expand Up @@ -3761,6 +3802,23 @@
"smithy.api#pattern": "^[\\s\\S]*$"
}
},
"com.amazonaws.codestarconnections#TriggerResourceUpdateOn": {
"type": "enum",
"members": {
"ANY_CHANGE": {
"target": "smithy.api#Unit",
"traits": {
"smithy.api#enumValue": "ANY_CHANGE"
}
},
"FILE_CHANGE": {
"target": "smithy.api#Unit",
"traits": {
"smithy.api#enumValue": "FILE_CHANGE"
}
}
}
},
"com.amazonaws.codestarconnections#Type": {
"type": "string"
},
Expand Down Expand Up @@ -4160,6 +4218,18 @@
"smithy.api#documentation": "<p>The sync type for the sync configuration to be updated.</p>",
"smithy.api#required": {}
}
},
"PublishDeploymentStatus": {
"target": "com.amazonaws.codestarconnections#PublishDeploymentStatus",
"traits": {
"smithy.api#documentation": "<p>Whether to enable or disable publishing of deployment status to source providers.</p>"
}
},
"TriggerResourceUpdateOn": {
"target": "com.amazonaws.codestarconnections#TriggerResourceUpdateOn",
"traits": {
"smithy.api#documentation": "<p>When to trigger Git sync to begin the stack update.</p>"
}
}
},
"traits": {
Expand Down

0 comments on commit 582eb00

Please sign in to comment.