Skip to content

Commit b4200b0

Browse files
author
awstools
committed
feat(client-quicksight): Amazon QuickSight launches Customer Managed Key (CMK) encryption for Data Source metadata
1 parent cbc6a87 commit b4200b0

File tree

8 files changed

+172
-90
lines changed

8 files changed

+172
-90
lines changed

clients/client-quicksight/src/commands/CreateDataSourceCommand.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -367,6 +367,9 @@ export interface CreateDataSourceCommandOutput extends CreateDataSourceResponse,
367367
* @throws {@link ConflictException} (client fault)
368368
* <p>Updating or deleting a resource can cause an inconsistent state.</p>
369369
*
370+
* @throws {@link CustomerManagedKeyUnavailableException} (client fault)
371+
* <p>The customer managed key that is registered to your Amazon QuickSight account is unavailable.</p>
372+
*
370373
* @throws {@link InternalFailureException} (server fault)
371374
* <p>An internal failure occurred.</p>
372375
*

clients/client-quicksight/src/commands/CreateFolderCommand.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ import { Command as $Command } from "@smithy/smithy-client";
55
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
66

77
import { commonParams } from "../endpoint/EndpointParameters";
8-
import { CreateFolderRequest } from "../models/models_2";
9-
import { CreateFolderResponse } from "../models/models_3";
8+
import { CreateFolderRequest, CreateFolderResponse } from "../models/models_3";
109
import { de_CreateFolderCommand, se_CreateFolderCommand } from "../protocols/Aws_restJson1";
1110
import { QuickSightClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../QuickSightClient";
1211

clients/client-quicksight/src/commands/UpdateDataSourceCommand.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,9 @@ export interface UpdateDataSourceCommandOutput extends UpdateDataSourceResponse,
349349
* @throws {@link ConflictException} (client fault)
350350
* <p>Updating or deleting a resource can cause an inconsistent state.</p>
351351
*
352+
* @throws {@link CustomerManagedKeyUnavailableException} (client fault)
353+
* <p>The customer managed key that is registered to your Amazon QuickSight account is unavailable.</p>
354+
*
352355
* @throws {@link InternalFailureException} (server fault)
353356
* <p>An internal failure occurred.</p>
354357
*

clients/client-quicksight/src/models/models_2.ts

Lines changed: 28 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -8735,6 +8735,34 @@ export interface CreateDataSourceResponse {
87358735
Status?: number;
87368736
}
87378737

8738+
/**
8739+
* <p>The customer managed key that is registered to your Amazon QuickSight account is unavailable.</p>
8740+
* @public
8741+
*/
8742+
export class CustomerManagedKeyUnavailableException extends __BaseException {
8743+
readonly name: "CustomerManagedKeyUnavailableException" = "CustomerManagedKeyUnavailableException";
8744+
readonly $fault: "client" = "client";
8745+
Message?: string;
8746+
/**
8747+
* <p>The Amazon Web Services request ID for this operation.</p>
8748+
* @public
8749+
*/
8750+
RequestId?: string;
8751+
/**
8752+
* @internal
8753+
*/
8754+
constructor(opts: __ExceptionOptionType<CustomerManagedKeyUnavailableException, __BaseException>) {
8755+
super({
8756+
name: "CustomerManagedKeyUnavailableException",
8757+
$fault: "client",
8758+
...opts,
8759+
});
8760+
Object.setPrototypeOf(this, CustomerManagedKeyUnavailableException.prototype);
8761+
this.Message = opts.Message;
8762+
this.RequestId = opts.RequestId;
8763+
}
8764+
}
8765+
87388766
/**
87398767
* @public
87408768
* @enum
@@ -8763,62 +8791,6 @@ export const SharingModel = {
87638791
*/
87648792
export type SharingModel = (typeof SharingModel)[keyof typeof SharingModel];
87658793

8766-
/**
8767-
* @public
8768-
*/
8769-
export interface CreateFolderRequest {
8770-
/**
8771-
* <p>The ID for the Amazon Web Services account where you want to create the folder.</p>
8772-
* @public
8773-
*/
8774-
AwsAccountId: string | undefined;
8775-
8776-
/**
8777-
* <p>The ID of the folder.</p>
8778-
* @public
8779-
*/
8780-
FolderId: string | undefined;
8781-
8782-
/**
8783-
* <p>The name of the folder.</p>
8784-
* @public
8785-
*/
8786-
Name?: string;
8787-
8788-
/**
8789-
* <p>The type of folder. By default, <code>folderType</code> is <code>SHARED</code>.</p>
8790-
* @public
8791-
*/
8792-
FolderType?: FolderType;
8793-
8794-
/**
8795-
* <p>The Amazon Resource Name (ARN) for the parent folder.</p>
8796-
* <p>
8797-
* <code>ParentFolderArn</code> can be null. An empty <code>parentFolderArn</code> creates a root-level folder.</p>
8798-
* @public
8799-
*/
8800-
ParentFolderArn?: string;
8801-
8802-
/**
8803-
* <p>A structure that describes the principals and the resource-level permissions of a folder.</p>
8804-
* <p>To specify no permissions, omit <code>Permissions</code>.</p>
8805-
* @public
8806-
*/
8807-
Permissions?: ResourcePermission[];
8808-
8809-
/**
8810-
* <p>Tags for the folder.</p>
8811-
* @public
8812-
*/
8813-
Tags?: Tag[];
8814-
8815-
/**
8816-
* <p>An optional parameter that determines the sharing scope of the folder. The default value for this parameter is <code>ACCOUNT</code>.</p>
8817-
* @public
8818-
*/
8819-
SharingModel?: SharingModel;
8820-
}
8821-
88228794
/**
88238795
* @internal
88248796
*/

clients/client-quicksight/src/models/models_3.ts

Lines changed: 56 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,62 @@ import {
9494

9595
import { QuickSightServiceException as __BaseException } from "./QuickSightServiceException";
9696

97+
/**
98+
* @public
99+
*/
100+
export interface CreateFolderRequest {
101+
/**
102+
* <p>The ID for the Amazon Web Services account where you want to create the folder.</p>
103+
* @public
104+
*/
105+
AwsAccountId: string | undefined;
106+
107+
/**
108+
* <p>The ID of the folder.</p>
109+
* @public
110+
*/
111+
FolderId: string | undefined;
112+
113+
/**
114+
* <p>The name of the folder.</p>
115+
* @public
116+
*/
117+
Name?: string;
118+
119+
/**
120+
* <p>The type of folder. By default, <code>folderType</code> is <code>SHARED</code>.</p>
121+
* @public
122+
*/
123+
FolderType?: FolderType;
124+
125+
/**
126+
* <p>The Amazon Resource Name (ARN) for the parent folder.</p>
127+
* <p>
128+
* <code>ParentFolderArn</code> can be null. An empty <code>parentFolderArn</code> creates a root-level folder.</p>
129+
* @public
130+
*/
131+
ParentFolderArn?: string;
132+
133+
/**
134+
* <p>A structure that describes the principals and the resource-level permissions of a folder.</p>
135+
* <p>To specify no permissions, omit <code>Permissions</code>.</p>
136+
* @public
137+
*/
138+
Permissions?: ResourcePermission[];
139+
140+
/**
141+
* <p>Tags for the folder.</p>
142+
* @public
143+
*/
144+
Tags?: Tag[];
145+
146+
/**
147+
* <p>An optional parameter that determines the sharing scope of the folder. The default value for this parameter is <code>ACCOUNT</code>.</p>
148+
* @public
149+
*/
150+
SharingModel?: SharingModel;
151+
}
152+
97153
/**
98154
* @public
99155
*/
@@ -9241,37 +9297,6 @@ export const EmbeddingIdentityType = {
92419297
*/
92429298
export type EmbeddingIdentityType = (typeof EmbeddingIdentityType)[keyof typeof EmbeddingIdentityType];
92439299

9244-
/**
9245-
* <p>An entry that appears when a <code>KeyRegistration</code> update to Amazon QuickSight fails.</p>
9246-
* @public
9247-
*/
9248-
export interface FailedKeyRegistrationEntry {
9249-
/**
9250-
* <p>The ARN of the KMS key that failed to update.</p>
9251-
* @public
9252-
*/
9253-
KeyArn?: string;
9254-
9255-
/**
9256-
* <p>A message that provides information about why a <code>FailedKeyRegistrationEntry</code> error occurred.</p>
9257-
* @public
9258-
*/
9259-
Message: string | undefined;
9260-
9261-
/**
9262-
* <p>The HTTP status of a <code>FailedKeyRegistrationEntry</code> error.</p>
9263-
* @public
9264-
*/
9265-
StatusCode: number | undefined;
9266-
9267-
/**
9268-
* <p>A boolean that indicates whether a <code>FailedKeyRegistrationEntry</code> resulted from user error. If the value of this property is <code>True</code>, the error was caused by user error. If the value of this property is <code>False</code>, the error occurred on the backend. If your job continues fail and with a <code>False</code>
9269-
* <code>SenderFault</code> value, contact Amazon Web Services Support.</p>
9270-
* @public
9271-
*/
9272-
SenderFault: boolean | undefined;
9273-
}
9274-
92759300
/**
92769301
* @internal
92779302
*/

clients/client-quicksight/src/models/models_4.ts

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ import {
7171
DataSourceSearchFilter,
7272
DataSourceSummary,
7373
EmbeddingIdentityType,
74-
FailedKeyRegistrationEntry,
7574
Group,
7675
GroupMember,
7776
IdentityType,
@@ -99,6 +98,37 @@ import {
9998

10099
import { QuickSightServiceException as __BaseException } from "./QuickSightServiceException";
101100

101+
/**
102+
* <p>An entry that appears when a <code>KeyRegistration</code> update to Amazon QuickSight fails.</p>
103+
* @public
104+
*/
105+
export interface FailedKeyRegistrationEntry {
106+
/**
107+
* <p>The ARN of the KMS key that failed to update.</p>
108+
* @public
109+
*/
110+
KeyArn?: string;
111+
112+
/**
113+
* <p>A message that provides information about why a <code>FailedKeyRegistrationEntry</code> error occurred.</p>
114+
* @public
115+
*/
116+
Message: string | undefined;
117+
118+
/**
119+
* <p>The HTTP status of a <code>FailedKeyRegistrationEntry</code> error.</p>
120+
* @public
121+
*/
122+
StatusCode: number | undefined;
123+
124+
/**
125+
* <p>A boolean that indicates whether a <code>FailedKeyRegistrationEntry</code> resulted from user error. If the value of this property is <code>True</code>, the error was caused by user error. If the value of this property is <code>False</code>, the error occurred on the backend. If your job continues fail and with a <code>False</code>
126+
* <code>SenderFault</code> value, contact Amazon Web Services Support.</p>
127+
* @public
128+
*/
129+
SenderFault: boolean | undefined;
130+
}
131+
102132
/**
103133
* @public
104134
* @enum

clients/client-quicksight/src/protocols/Aws_restJson1.ts

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1081,6 +1081,7 @@ import {
10811081
ContributionAnalysisTimeRanges,
10821082
CreateColumnsOperation,
10831083
CredentialPair,
1084+
CustomerManagedKeyUnavailableException,
10841085
CustomSql,
10851086
DashboardPublishOptions,
10861087
DashboardSourceEntity,
@@ -9862,6 +9863,9 @@ const de_CommandError = async (output: __HttpResponse, context: __SerdeContext):
98629863
case "UnsupportedUserEditionException":
98639864
case "com.amazonaws.quicksight#UnsupportedUserEditionException":
98649865
throw await de_UnsupportedUserEditionExceptionRes(parsedOutput, context);
9866+
case "CustomerManagedKeyUnavailableException":
9867+
case "com.amazonaws.quicksight#CustomerManagedKeyUnavailableException":
9868+
throw await de_CustomerManagedKeyUnavailableExceptionRes(parsedOutput, context);
98659869
case "ConcurrentUpdatingException":
98669870
case "com.amazonaws.quicksight#ConcurrentUpdatingException":
98679871
throw await de_ConcurrentUpdatingExceptionRes(parsedOutput, context);
@@ -9957,6 +9961,27 @@ const de_ConflictExceptionRes = async (parsedOutput: any, context: __SerdeContex
99579961
return __decorateServiceException(exception, parsedOutput.body);
99589962
};
99599963

9964+
/**
9965+
* deserializeAws_restJson1CustomerManagedKeyUnavailableExceptionRes
9966+
*/
9967+
const de_CustomerManagedKeyUnavailableExceptionRes = async (
9968+
parsedOutput: any,
9969+
context: __SerdeContext
9970+
): Promise<CustomerManagedKeyUnavailableException> => {
9971+
const contents: any = map({});
9972+
const data: any = parsedOutput.body;
9973+
const doc = take(data, {
9974+
Message: __expectString,
9975+
RequestId: __expectString,
9976+
});
9977+
Object.assign(contents, doc);
9978+
const exception = new CustomerManagedKeyUnavailableException({
9979+
$metadata: deserializeMetadata(parsedOutput),
9980+
...contents,
9981+
});
9982+
return __decorateServiceException(exception, parsedOutput.body);
9983+
};
9984+
99609985
/**
99619986
* deserializeAws_restJson1DomainNotWhitelistedExceptionRes
99629987
*/

codegen/sdk-codegen/aws-models/quicksight.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8237,6 +8237,9 @@
82378237
{
82388238
"target": "com.amazonaws.quicksight#ConflictException"
82398239
},
8240+
{
8241+
"target": "com.amazonaws.quicksight#CustomerManagedKeyUnavailableException"
8242+
},
82408243
{
82418244
"target": "com.amazonaws.quicksight#InternalFailureException"
82428245
},
@@ -10995,6 +10998,25 @@
1099510998
"smithy.api#documentation": "<p>The configuration of custom values for the destination parameter in <code>DestinationParameterValueConfiguration</code>.</p>"
1099610999
}
1099711000
},
11001+
"com.amazonaws.quicksight#CustomerManagedKeyUnavailableException": {
11002+
"type": "structure",
11003+
"members": {
11004+
"Message": {
11005+
"target": "com.amazonaws.quicksight#String"
11006+
},
11007+
"RequestId": {
11008+
"target": "com.amazonaws.quicksight#String",
11009+
"traits": {
11010+
"smithy.api#documentation": "<p>The Amazon Web Services request ID for this operation.</p>"
11011+
}
11012+
}
11013+
},
11014+
"traits": {
11015+
"smithy.api#documentation": "<p>The customer managed key that is registered to your Amazon QuickSight account is unavailable.</p>",
11016+
"smithy.api#error": "client",
11017+
"smithy.api#httpError": 400
11018+
}
11019+
},
1099811020
"com.amazonaws.quicksight#Dashboard": {
1099911021
"type": "structure",
1100011022
"members": {
@@ -52022,6 +52044,9 @@
5202252044
{
5202352045
"target": "com.amazonaws.quicksight#ConflictException"
5202452046
},
52047+
{
52048+
"target": "com.amazonaws.quicksight#CustomerManagedKeyUnavailableException"
52049+
},
5202552050
{
5202652051
"target": "com.amazonaws.quicksight#InternalFailureException"
5202752052
},

0 commit comments

Comments
 (0)