Skip to content

Commit d61677e

Browse files
author
awstools
committed
feat(client-eventbridge): Adding support for KmsKeyIdentifer in CreateConnection, UpdateConnection and DescribeConnection APIs
1 parent da3e816 commit d61677e

File tree

6 files changed

+82
-8
lines changed

6 files changed

+82
-8
lines changed

clients/client-eventbridge/src/commands/CreateConnectionCommand.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ export interface CreateConnectionCommandOutput extends CreateConnectionResponse,
119119
* ResourceConfigurationArn: "STRING_VALUE", // required
120120
* },
121121
* },
122+
* KmsKeyIdentifier: "STRING_VALUE",
122123
* };
123124
* const command = new CreateConnectionCommand(input);
124125
* const response = await client.send(command);

clients/client-eventbridge/src/commands/DescribeConnectionCommand.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ export interface DescribeConnectionCommandOutput extends DescribeConnectionRespo
5858
* // StateReason: "STRING_VALUE",
5959
* // AuthorizationType: "BASIC" || "OAUTH_CLIENT_CREDENTIALS" || "API_KEY",
6060
* // SecretArn: "STRING_VALUE",
61+
* // KmsKeyIdentifier: "STRING_VALUE",
6162
* // AuthParameters: { // ConnectionAuthResponseParameters
6263
* // BasicAuthParameters: { // ConnectionBasicAuthResponseParameters
6364
* // Username: "STRING_VALUE",

clients/client-eventbridge/src/commands/UpdateConnectionCommand.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ export interface UpdateConnectionCommandOutput extends UpdateConnectionResponse,
117117
* ResourceConfigurationArn: "STRING_VALUE", // required
118118
* },
119119
* },
120+
* KmsKeyIdentifier: "STRING_VALUE",
120121
* };
121122
* const command = new UpdateConnectionCommand(input);
122123
* const response = await client.send(command);

clients/client-eventbridge/src/models/models_0.ts

Lines changed: 58 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -945,6 +945,18 @@ export interface CreateConnectionRequest {
945945
* @public
946946
*/
947947
InvocationConnectivityParameters?: ConnectivityResourceParameters | undefined;
948+
949+
/**
950+
* <p>The identifier of the KMS
951+
* customer managed key for EventBridge to use, if you choose to use a customer managed key to encrypt this connection. The identifier can be the key
952+
* Amazon Resource Name (ARN), KeyId, key alias, or key alias ARN.</p>
953+
* <p>If you do not specify a customer managed key identifier, EventBridge uses an
954+
* Amazon Web Services owned key to encrypt the connection.</p>
955+
* <p>For more information, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/viewing-keys.html">Identify and view keys</a> in the <i>Key Management Service
956+
* Developer Guide</i>. </p>
957+
* @public
958+
*/
959+
KmsKeyIdentifier?: string | undefined;
948960
}
949961

950962
/**
@@ -1301,9 +1313,19 @@ export interface CreateEventBusRequest {
13011313
* Developer Guide</i>. </p>
13021314
* <note>
13031315
* <p>Schema discovery is not supported for event buses encrypted using a
1304-
* customer managed key. EventBridge returns an error if you call <code>
1305-
* <a href="https://docs.aws.amazon.com/eventbridge/latest/schema-reference/v1-discoverers.html#CreateDiscoverer">CreateDiscoverer</a>
1306-
* </code> on an event bus set to use a customer managed key for encryption.</p>
1316+
* customer managed key. EventBridge returns an error if: </p>
1317+
* <ul>
1318+
* <li>
1319+
* <p>You call <code>
1320+
* <a href="https://docs.aws.amazon.com/eventbridge/latest/schema-reference/v1-discoverers.html#CreateDiscoverer">CreateDiscoverer</a>
1321+
* </code> on an event bus set to use a customer managed key for encryption.</p>
1322+
* </li>
1323+
* <li>
1324+
* <p>You call <code>
1325+
* <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_UpdatedEventBus.html">UpdatedEventBus</a>
1326+
* </code> to set a customer managed key on an event bus with schema discovery enabled.</p>
1327+
* </li>
1328+
* </ul>
13071329
* <p>To enable schema discovery on an event bus, choose to
13081330
* use an Amazon Web Services owned key. For more information, see <a href="https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-encryption-event-bus-cmkey.html">Encrypting events</a> in the <i>Amazon EventBridge User Guide</i>.</p>
13091331
* </note>
@@ -2022,6 +2044,14 @@ export interface DescribeConnectionResponse {
20222044
*/
20232045
SecretArn?: string | undefined;
20242046

2047+
/**
2048+
* <p>The identifier of the KMS
2049+
* customer managed key for EventBridge to use to encrypt the connection, if one has been specified.</p>
2050+
* <p>For more information, see <a href="https://docs.aws.amazon.com/eventbridge/latest/userguide/encryption-connections.html">Encrypting connections</a> in the <i>Amazon EventBridge User Guide</i>.</p>
2051+
* @public
2052+
*/
2053+
KmsKeyIdentifier?: string | undefined;
2054+
20252055
/**
20262056
* <p>The parameters to use for authorization for the connection.</p>
20272057
* @public
@@ -5724,6 +5754,18 @@ export interface UpdateConnectionRequest {
57245754
* @public
57255755
*/
57265756
InvocationConnectivityParameters?: ConnectivityResourceParameters | undefined;
5757+
5758+
/**
5759+
* <p>The identifier of the KMS
5760+
* customer managed key for EventBridge to use, if you choose to use a customer managed key to encrypt this connection. The identifier can be the key
5761+
* Amazon Resource Name (ARN), KeyId, key alias, or key alias ARN.</p>
5762+
* <p>If you do not specify a customer managed key identifier, EventBridge uses an
5763+
* Amazon Web Services owned key to encrypt the connection.</p>
5764+
* <p>For more information, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/viewing-keys.html">Identify and view keys</a> in the <i>Key Management Service
5765+
* Developer Guide</i>. </p>
5766+
* @public
5767+
*/
5768+
KmsKeyIdentifier?: string | undefined;
57275769
}
57285770

57295771
/**
@@ -5883,9 +5925,19 @@ export interface UpdateEventBusRequest {
58835925
* Developer Guide</i>. </p>
58845926
* <note>
58855927
* <p>Schema discovery is not supported for event buses encrypted using a
5886-
* customer managed key. EventBridge returns an error if you call <code>
5887-
* <a href="https://docs.aws.amazon.com/eventbridge/latest/schema-reference/v1-discoverers.html#CreateDiscoverer">CreateDiscoverer</a>
5888-
* </code> on an event bus set to use a customer managed key for encryption.</p>
5928+
* customer managed key. EventBridge returns an error if: </p>
5929+
* <ul>
5930+
* <li>
5931+
* <p>You call <code>
5932+
* <a href="https://docs.aws.amazon.com/eventbridge/latest/schema-reference/v1-discoverers.html#CreateDiscoverer">CreateDiscoverer</a>
5933+
* </code> on an event bus set to use a customer managed key for encryption.</p>
5934+
* </li>
5935+
* <li>
5936+
* <p>You call <code>
5937+
* <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_UpdatedEventBus.html">UpdatedEventBus</a>
5938+
* </code> to set a customer managed key on an event bus with schema discovery enabled.</p>
5939+
* </li>
5940+
* </ul>
58895941
* <p>To enable schema discovery on an event bus, choose to
58905942
* use an Amazon Web Services owned key. For more information, see <a href="https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-encryption-event-bus-cmkey.html">Encrypting events</a> in the <i>Amazon EventBridge User Guide</i>.</p>
58915943
* </note>

clients/client-eventbridge/src/protocols/Aws_json1_1.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2984,6 +2984,7 @@ const de_DescribeConnectionResponse = (output: any, context: __SerdeContext): De
29842984
CreationTime: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
29852985
Description: __expectString,
29862986
InvocationConnectivityParameters: _json,
2987+
KmsKeyIdentifier: __expectString,
29872988
LastAuthorizedTime: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
29882989
LastModifiedTime: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
29892990
Name: __expectString,

0 commit comments

Comments
 (0)