From 0b63507df8f717c628105a8a28425066f7070824 Mon Sep 17 00:00:00 2001
From: awstools
Date: Thu, 19 Sep 2024 18:18:29 +0000
Subject: [PATCH] feat(client-codeconnections): This release adds the
PullRequestComment field to CreateSyncConfiguration API input,
UpdateSyncConfiguration API input, GetSyncConfiguration API output and
ListSyncConfiguration API output
---
.../CreateSyncConfigurationCommand.ts | 2 +
.../commands/GetSyncConfigurationCommand.ts | 1 +
.../commands/ListSyncConfigurationsCommand.ts | 1 +
.../UpdateSyncConfigurationCommand.ts | 2 +
.../src/models/models_0.ts | 34 ++++++++++++++++-
.../aws-models/codeconnections.json | 37 ++++++++++++++++++-
6 files changed, 75 insertions(+), 2 deletions(-)
diff --git a/clients/client-codeconnections/src/commands/CreateSyncConfigurationCommand.ts b/clients/client-codeconnections/src/commands/CreateSyncConfigurationCommand.ts
index 07ce2733bfef..40005c8d0c58 100644
--- a/clients/client-codeconnections/src/commands/CreateSyncConfigurationCommand.ts
+++ b/clients/client-codeconnections/src/commands/CreateSyncConfigurationCommand.ts
@@ -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);
@@ -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",
* // },
* // };
*
diff --git a/clients/client-codeconnections/src/commands/GetSyncConfigurationCommand.ts b/clients/client-codeconnections/src/commands/GetSyncConfigurationCommand.ts
index a008d5760a37..aa6efc630a8d 100644
--- a/clients/client-codeconnections/src/commands/GetSyncConfigurationCommand.ts
+++ b/clients/client-codeconnections/src/commands/GetSyncConfigurationCommand.ts
@@ -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",
* // },
* // };
*
diff --git a/clients/client-codeconnections/src/commands/ListSyncConfigurationsCommand.ts b/clients/client-codeconnections/src/commands/ListSyncConfigurationsCommand.ts
index 0c859d16c18a..df3e38354990 100644
--- a/clients/client-codeconnections/src/commands/ListSyncConfigurationsCommand.ts
+++ b/clients/client-codeconnections/src/commands/ListSyncConfigurationsCommand.ts
@@ -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",
diff --git a/clients/client-codeconnections/src/commands/UpdateSyncConfigurationCommand.ts b/clients/client-codeconnections/src/commands/UpdateSyncConfigurationCommand.ts
index 2d5ea6880dd2..bc4636661850 100644
--- a/clients/client-codeconnections/src/commands/UpdateSyncConfigurationCommand.ts
+++ b/clients/client-codeconnections/src/commands/UpdateSyncConfigurationCommand.ts
@@ -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);
@@ -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",
* // },
* // };
*
diff --git a/clients/client-codeconnections/src/models/models_0.ts b/clients/client-codeconnections/src/models/models_0.ts
index 27ca8114c8a8..d6f66cecfdc0 100644
--- a/clients/client-codeconnections/src/models/models_0.ts
+++ b/clients/client-codeconnections/src/models/models_0.ts
@@ -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
@@ -595,6 +609,12 @@ export interface CreateSyncConfigurationInput {
* @public
*/
TriggerResourceUpdateOn?: TriggerResourceUpdateOn;
+
+ /**
+ * A toggle that specifies whether to enable or disable pull request comments for the sync configuration to be created.
+ * @public
+ */
+ PullRequestComment?: PullRequestComment;
}
/**
@@ -669,6 +689,12 @@ export interface SyncConfiguration {
* @public
*/
TriggerResourceUpdateOn?: TriggerResourceUpdateOn;
+
+ /**
+ * A toggle that specifies whether to enable or disable pull request comments for the sync configuration to be created.
+ * @public
+ */
+ PullRequestComment?: PullRequestComment;
}
/**
@@ -842,7 +868,7 @@ export interface Connection {
/**
* 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.
+ * reference when the connection is shared between Amazon Web Servicesservices.
*
* The ARN is never reused if the connection is deleted.
*
@@ -2082,6 +2108,12 @@ export interface UpdateSyncConfigurationInput {
* @public
*/
TriggerResourceUpdateOn?: TriggerResourceUpdateOn;
+
+ /**
+ * TA toggle that specifies whether to enable or disable pull request comments for the sync configuration to be updated.
+ * @public
+ */
+ PullRequestComment?: PullRequestComment;
}
/**
diff --git a/codegen/sdk-codegen/aws-models/codeconnections.json b/codegen/sdk-codegen/aws-models/codeconnections.json
index fb121557410f..e6450eea50f6 100644
--- a/codegen/sdk-codegen/aws-models/codeconnections.json
+++ b/codegen/sdk-codegen/aws-models/codeconnections.json
@@ -917,7 +917,7 @@
"ConnectionArn": {
"target": "com.amazonaws.codeconnections#ConnectionArn",
"traits": {
- "smithy.api#documentation": "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.
\n \n The ARN is never reused if the connection is deleted.
\n "
+ "smithy.api#documentation": "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.
\n \n The ARN is never reused if the connection is deleted.
\n "
}
},
"ProviderType": {
@@ -1335,6 +1335,12 @@
"traits": {
"smithy.api#documentation": "When to trigger Git sync to begin the stack update.
"
}
+ },
+ "PullRequestComment": {
+ "target": "com.amazonaws.codeconnections#PullRequestComment",
+ "traits": {
+ "smithy.api#documentation": "A toggle that specifies whether to enable or disable pull request comments for the sync configuration to be created.
"
+ }
}
},
"traits": {
@@ -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": {
@@ -3463,6 +3486,12 @@
"traits": {
"smithy.api#documentation": "When to trigger Git sync to begin the stack update.
"
}
+ },
+ "PullRequestComment": {
+ "target": "com.amazonaws.codeconnections#PullRequestComment",
+ "traits": {
+ "smithy.api#documentation": "A toggle that specifies whether to enable or disable pull request comments for the sync configuration to be created.
"
+ }
}
},
"traits": {
@@ -4071,6 +4100,12 @@
"traits": {
"smithy.api#documentation": "When to trigger Git sync to begin the stack update.
"
}
+ },
+ "PullRequestComment": {
+ "target": "com.amazonaws.codeconnections#PullRequestComment",
+ "traits": {
+ "smithy.api#documentation": "TA toggle that specifies whether to enable or disable pull request comments for the sync configuration to be updated.
"
+ }
}
},
"traits": {