Skip to content

Commit

Permalink
feat(client-codeconnections): This release adds the PullRequestCommen…
Browse files Browse the repository at this point in the history
…t field to CreateSyncConfiguration API input, UpdateSyncConfiguration API input, GetSyncConfiguration API output and ListSyncConfiguration API output
  • Loading branch information
awstools committed Sep 19, 2024
1 parent dacf7b5 commit 0b63507
Show file tree
Hide file tree
Showing 6 changed files with 75 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ export interface CreateSyncConfigurationCommandOutput extends CreateSyncConfigur
* SyncType: "CFN_STACK_SYNC", // required
* PublishDeploymentStatus: "ENABLED" || "DISABLED",
* TriggerResourceUpdateOn: "ANY_CHANGE" || "FILE_CHANGE",
* PullRequestComment: "ENABLED" || "DISABLED",
* };
* const command = new CreateSyncConfigurationCommand(input);
* const response = await client.send(command);
Expand All @@ -62,6 +63,7 @@ export interface CreateSyncConfigurationCommandOutput extends CreateSyncConfigur
* // SyncType: "CFN_STACK_SYNC", // required
* // PublishDeploymentStatus: "ENABLED" || "DISABLED",
* // TriggerResourceUpdateOn: "ANY_CHANGE" || "FILE_CHANGE",
* // PullRequestComment: "ENABLED" || "DISABLED",
* // },
* // };
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ export interface GetSyncConfigurationCommandOutput extends GetSyncConfigurationO
* // SyncType: "CFN_STACK_SYNC", // required
* // PublishDeploymentStatus: "ENABLED" || "DISABLED",
* // TriggerResourceUpdateOn: "ANY_CHANGE" || "FILE_CHANGE",
* // PullRequestComment: "ENABLED" || "DISABLED",
* // },
* // };
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ export interface ListSyncConfigurationsCommandOutput extends ListSyncConfigurati
* // SyncType: "CFN_STACK_SYNC", // required
* // PublishDeploymentStatus: "ENABLED" || "DISABLED",
* // TriggerResourceUpdateOn: "ANY_CHANGE" || "FILE_CHANGE",
* // PullRequestComment: "ENABLED" || "DISABLED",
* // },
* // ],
* // NextToken: "STRING_VALUE",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ export interface UpdateSyncConfigurationCommandOutput extends UpdateSyncConfigur
* SyncType: "CFN_STACK_SYNC", // required
* PublishDeploymentStatus: "ENABLED" || "DISABLED",
* TriggerResourceUpdateOn: "ANY_CHANGE" || "FILE_CHANGE",
* PullRequestComment: "ENABLED" || "DISABLED",
* };
* const command = new UpdateSyncConfigurationCommand(input);
* const response = await client.send(command);
Expand All @@ -60,6 +61,7 @@ export interface UpdateSyncConfigurationCommandOutput extends UpdateSyncConfigur
* // SyncType: "CFN_STACK_SYNC", // required
* // PublishDeploymentStatus: "ENABLED" || "DISABLED",
* // TriggerResourceUpdateOn: "ANY_CHANGE" || "FILE_CHANGE",
* // PullRequestComment: "ENABLED" || "DISABLED",
* // },
* // };
*
Expand Down
34 changes: 33 additions & 1 deletion clients/client-codeconnections/src/models/models_0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -514,6 +514,20 @@ export const PublishDeploymentStatus = {
*/
export type PublishDeploymentStatus = (typeof PublishDeploymentStatus)[keyof typeof PublishDeploymentStatus];

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

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

/**
* @public
* @enum
Expand Down Expand Up @@ -595,6 +609,12 @@ export interface CreateSyncConfigurationInput {
* @public
*/
TriggerResourceUpdateOn?: TriggerResourceUpdateOn;

/**
* <p>A toggle that specifies whether to enable or disable pull request comments for the sync configuration to be created.</p>
* @public
*/
PullRequestComment?: PullRequestComment;
}

/**
Expand Down Expand Up @@ -669,6 +689,12 @@ export interface SyncConfiguration {
* @public
*/
TriggerResourceUpdateOn?: TriggerResourceUpdateOn;

/**
* <p>A toggle that specifies whether to enable or disable pull request comments for the sync configuration to be created.</p>
* @public
*/
PullRequestComment?: PullRequestComment;
}

/**
Expand Down Expand Up @@ -842,7 +868,7 @@ export interface Connection {

/**
* <p>The Amazon Resource Name (ARN) of the connection. The ARN is used as the connection
* reference when the connection is shared between Amazon Web Services.</p>
* reference when the connection is shared between Amazon Web Servicesservices.</p>
* <note>
* <p>The ARN is never reused if the connection is deleted.</p>
* </note>
Expand Down Expand Up @@ -2082,6 +2108,12 @@ export interface UpdateSyncConfigurationInput {
* @public
*/
TriggerResourceUpdateOn?: TriggerResourceUpdateOn;

/**
* <p>TA toggle that specifies whether to enable or disable pull request comments for the sync configuration to be updated.</p>
* @public
*/
PullRequestComment?: PullRequestComment;
}

/**
Expand Down
37 changes: 36 additions & 1 deletion codegen/sdk-codegen/aws-models/codeconnections.json
Original file line number Diff line number Diff line change
Expand Up @@ -917,7 +917,7 @@
"ConnectionArn": {
"target": "com.amazonaws.codeconnections#ConnectionArn",
"traits": {
"smithy.api#documentation": "<p>The Amazon Resource Name (ARN) of the connection. The ARN is used as the connection\n reference when the connection is shared between Amazon Web Services.</p>\n <note>\n <p>The ARN is never reused if the connection is deleted.</p>\n </note>"
"smithy.api#documentation": "<p>The Amazon Resource Name (ARN) of the connection. The ARN is used as the connection\n reference when the connection is shared between Amazon Web Servicesservices.</p>\n <note>\n <p>The ARN is never reused if the connection is deleted.</p>\n </note>"
}
},
"ProviderType": {
Expand Down Expand Up @@ -1335,6 +1335,12 @@
"traits": {
"smithy.api#documentation": "<p>When to trigger Git sync to begin the stack update.</p>"
}
},
"PullRequestComment": {
"target": "com.amazonaws.codeconnections#PullRequestComment",
"traits": {
"smithy.api#documentation": "<p>A toggle that specifies whether to enable or disable pull request comments for the sync configuration to be created.</p>"
}
}
},
"traits": {
Expand Down Expand Up @@ -2717,6 +2723,23 @@
}
}
},
"com.amazonaws.codeconnections#PullRequestComment": {
"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.codeconnections#RepositoryLinkArn": {
"type": "string",
"traits": {
Expand Down Expand Up @@ -3463,6 +3486,12 @@
"traits": {
"smithy.api#documentation": "<p>When to trigger Git sync to begin the stack update.</p>"
}
},
"PullRequestComment": {
"target": "com.amazonaws.codeconnections#PullRequestComment",
"traits": {
"smithy.api#documentation": "<p>A toggle that specifies whether to enable or disable pull request comments for the sync configuration to be created.</p>"
}
}
},
"traits": {
Expand Down Expand Up @@ -4071,6 +4100,12 @@
"traits": {
"smithy.api#documentation": "<p>When to trigger Git sync to begin the stack update.</p>"
}
},
"PullRequestComment": {
"target": "com.amazonaws.codeconnections#PullRequestComment",
"traits": {
"smithy.api#documentation": "<p>TA toggle that specifies whether to enable or disable pull request comments for the sync configuration to be updated.</p>"
}
}
},
"traits": {
Expand Down

0 comments on commit 0b63507

Please sign in to comment.