@aws-sdk/client-cleanrooms 3.294.0 → 3.296.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +25 -4
- package/dist-cjs/CleanRooms.js +45 -0
- package/dist-cjs/commands/BatchGetSchemaCommand.js +4 -4
- package/dist-cjs/commands/CreateCollaborationCommand.js +4 -4
- package/dist-cjs/commands/CreateConfiguredTableAnalysisRuleCommand.js +4 -4
- package/dist-cjs/commands/CreateConfiguredTableAssociationCommand.js +4 -4
- package/dist-cjs/commands/CreateConfiguredTableCommand.js +4 -4
- package/dist-cjs/commands/CreateMembershipCommand.js +4 -4
- package/dist-cjs/commands/DeleteCollaborationCommand.js +4 -4
- package/dist-cjs/commands/DeleteConfiguredTableAnalysisRuleCommand.js +4 -4
- package/dist-cjs/commands/DeleteConfiguredTableAssociationCommand.js +4 -4
- package/dist-cjs/commands/DeleteConfiguredTableCommand.js +4 -4
- package/dist-cjs/commands/DeleteMemberCommand.js +4 -4
- package/dist-cjs/commands/DeleteMembershipCommand.js +4 -4
- package/dist-cjs/commands/GetCollaborationCommand.js +4 -4
- package/dist-cjs/commands/GetConfiguredTableAnalysisRuleCommand.js +4 -4
- package/dist-cjs/commands/GetConfiguredTableAssociationCommand.js +4 -4
- package/dist-cjs/commands/GetConfiguredTableCommand.js +4 -4
- package/dist-cjs/commands/GetMembershipCommand.js +4 -4
- package/dist-cjs/commands/GetProtectedQueryCommand.js +4 -4
- package/dist-cjs/commands/GetSchemaAnalysisRuleCommand.js +4 -4
- package/dist-cjs/commands/GetSchemaCommand.js +4 -4
- package/dist-cjs/commands/ListCollaborationsCommand.js +4 -4
- package/dist-cjs/commands/ListConfiguredTableAssociationsCommand.js +4 -4
- package/dist-cjs/commands/ListConfiguredTablesCommand.js +4 -4
- package/dist-cjs/commands/ListMembersCommand.js +4 -4
- package/dist-cjs/commands/ListMembershipsCommand.js +4 -4
- package/dist-cjs/commands/ListProtectedQueriesCommand.js +4 -4
- package/dist-cjs/commands/ListSchemasCommand.js +4 -4
- package/dist-cjs/commands/ListTagsForResourceCommand.js +46 -0
- package/dist-cjs/commands/StartProtectedQueryCommand.js +4 -4
- package/dist-cjs/commands/TagResourceCommand.js +46 -0
- package/dist-cjs/commands/UntagResourceCommand.js +46 -0
- package/dist-cjs/commands/UpdateCollaborationCommand.js +4 -4
- package/dist-cjs/commands/UpdateConfiguredTableAnalysisRuleCommand.js +4 -4
- package/dist-cjs/commands/UpdateConfiguredTableAssociationCommand.js +4 -4
- package/dist-cjs/commands/UpdateConfiguredTableCommand.js +4 -4
- package/dist-cjs/commands/UpdateMembershipCommand.js +4 -4
- package/dist-cjs/commands/UpdateProtectedQueryCommand.js +4 -4
- package/dist-cjs/commands/index.js +3 -0
- package/dist-cjs/endpoint/ruleset.js +3 -3
- package/dist-cjs/models/models_0.js +26 -1
- package/dist-cjs/protocols/Aws_restJson1.js +198 -2
- package/dist-es/CleanRooms.js +45 -0
- package/dist-es/commands/BatchGetSchemaCommand.js +4 -4
- package/dist-es/commands/CreateCollaborationCommand.js +4 -4
- package/dist-es/commands/CreateConfiguredTableAnalysisRuleCommand.js +4 -4
- package/dist-es/commands/CreateConfiguredTableAssociationCommand.js +4 -4
- package/dist-es/commands/CreateConfiguredTableCommand.js +4 -4
- package/dist-es/commands/CreateMembershipCommand.js +4 -4
- package/dist-es/commands/DeleteCollaborationCommand.js +4 -4
- package/dist-es/commands/DeleteConfiguredTableAnalysisRuleCommand.js +4 -4
- package/dist-es/commands/DeleteConfiguredTableAssociationCommand.js +4 -4
- package/dist-es/commands/DeleteConfiguredTableCommand.js +4 -4
- package/dist-es/commands/DeleteMemberCommand.js +4 -4
- package/dist-es/commands/DeleteMembershipCommand.js +4 -4
- package/dist-es/commands/GetCollaborationCommand.js +4 -4
- package/dist-es/commands/GetConfiguredTableAnalysisRuleCommand.js +4 -4
- package/dist-es/commands/GetConfiguredTableAssociationCommand.js +4 -4
- package/dist-es/commands/GetConfiguredTableCommand.js +4 -4
- package/dist-es/commands/GetMembershipCommand.js +4 -4
- package/dist-es/commands/GetProtectedQueryCommand.js +4 -4
- package/dist-es/commands/GetSchemaAnalysisRuleCommand.js +4 -4
- package/dist-es/commands/GetSchemaCommand.js +4 -4
- package/dist-es/commands/ListCollaborationsCommand.js +4 -4
- package/dist-es/commands/ListConfiguredTableAssociationsCommand.js +4 -4
- package/dist-es/commands/ListConfiguredTablesCommand.js +4 -4
- package/dist-es/commands/ListMembersCommand.js +4 -4
- package/dist-es/commands/ListMembershipsCommand.js +4 -4
- package/dist-es/commands/ListProtectedQueriesCommand.js +4 -4
- package/dist-es/commands/ListSchemasCommand.js +4 -4
- package/dist-es/commands/ListTagsForResourceCommand.js +42 -0
- package/dist-es/commands/StartProtectedQueryCommand.js +4 -4
- package/dist-es/commands/TagResourceCommand.js +42 -0
- package/dist-es/commands/UntagResourceCommand.js +42 -0
- package/dist-es/commands/UpdateCollaborationCommand.js +4 -4
- package/dist-es/commands/UpdateConfiguredTableAnalysisRuleCommand.js +4 -4
- package/dist-es/commands/UpdateConfiguredTableAssociationCommand.js +4 -4
- package/dist-es/commands/UpdateConfiguredTableCommand.js +4 -4
- package/dist-es/commands/UpdateMembershipCommand.js +4 -4
- package/dist-es/commands/UpdateProtectedQueryCommand.js +4 -4
- package/dist-es/commands/index.js +3 -0
- package/dist-es/endpoint/ruleset.js +3 -3
- package/dist-es/models/models_0.js +19 -0
- package/dist-es/protocols/Aws_restJson1.js +190 -0
- package/dist-types/CleanRooms.d.ts +23 -5
- package/dist-types/CleanRoomsClient.d.ts +9 -9
- package/dist-types/commands/ListConfiguredTableAssociationsCommand.d.ts +3 -0
- package/dist-types/commands/ListProtectedQueriesCommand.d.ts +3 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +50 -0
- package/dist-types/commands/TagResourceCommand.d.ts +50 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +50 -0
- package/dist-types/commands/index.d.ts +3 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +2 -2
- package/dist-types/models/models_0.d.ts +99 -10
- package/dist-types/protocols/Aws_restJson1.d.ts +9 -0
- package/dist-types/ts3.4/CleanRooms.d.ts +51 -0
- package/dist-types/ts3.4/CleanRoomsClient.d.ts +22 -4
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/index.d.ts +3 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +4 -5
- package/dist-types/ts3.4/models/models_0.d.ts +46 -7
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +36 -0
- package/package.json +36 -36
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const q = "
|
|
2
|
-
const a =
|
|
3
|
-
const _data = { version: "1.0", parameters: { Region:
|
|
1
|
+
const q = "required", r = "fn", s = "argv", t = "ref";
|
|
2
|
+
const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = { [q]: false, "type": "String" }, g = { [q]: true, "default": false, "type": "Boolean" }, h = { [t]: "Endpoint" }, i = { [r]: "booleanEquals", [s]: [{ [t]: "UseFIPS" }, true] }, j = { [r]: "booleanEquals", [s]: [{ [t]: "UseDualStack" }, true] }, k = {}, l = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsFIPS"] }] }, m = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsDualStack"] }] }, n = [i], o = [j], p = [{ [t]: "Region" }];
|
|
3
|
+
const _data = { version: "1.0", parameters: { Region: f, UseDualStack: g, UseFIPS: g, Endpoint: f }, rules: [{ conditions: [{ [r]: a, [s]: [h] }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: h, properties: k, headers: k }, type: d }] }] }, { type: b, rules: [{ conditions: [{ [r]: a, [s]: p }], type: b, rules: [{ conditions: [{ [r]: "aws.partition", [s]: p, assign: e }], type: b, rules: [{ conditions: [i, j], type: b, rules: [{ conditions: [l, m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://cleanrooms-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [l], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://cleanrooms-fips.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://cleanrooms.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { type: b, rules: [{ endpoint: { url: "https://cleanrooms.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] }] };
|
|
4
4
|
export const ruleSet = _data;
|
|
@@ -129,6 +129,7 @@ export var ValidationExceptionReason;
|
|
|
129
129
|
(function (ValidationExceptionReason) {
|
|
130
130
|
ValidationExceptionReason["FIELD_VALIDATION_FAILED"] = "FIELD_VALIDATION_FAILED";
|
|
131
131
|
ValidationExceptionReason["INVALID_CONFIGURATION"] = "INVALID_CONFIGURATION";
|
|
132
|
+
ValidationExceptionReason["INVALID_QUERY"] = "INVALID_QUERY";
|
|
132
133
|
})(ValidationExceptionReason || (ValidationExceptionReason = {}));
|
|
133
134
|
export class ValidationException extends __BaseException {
|
|
134
135
|
constructor(opts) {
|
|
@@ -546,6 +547,12 @@ export const UpdateConfiguredTableAnalysisRuleOutputFilterSensitiveLog = (obj) =
|
|
|
546
547
|
...obj,
|
|
547
548
|
...(obj.analysisRule && { analysisRule: ConfiguredTableAnalysisRuleFilterSensitiveLog(obj.analysisRule) }),
|
|
548
549
|
});
|
|
550
|
+
export const ListTagsForResourceInputFilterSensitiveLog = (obj) => ({
|
|
551
|
+
...obj,
|
|
552
|
+
});
|
|
553
|
+
export const ListTagsForResourceOutputFilterSensitiveLog = (obj) => ({
|
|
554
|
+
...obj,
|
|
555
|
+
});
|
|
549
556
|
export const CreateMembershipInputFilterSensitiveLog = (obj) => ({
|
|
550
557
|
...obj,
|
|
551
558
|
});
|
|
@@ -661,3 +668,15 @@ export const UpdateProtectedQueryOutputFilterSensitiveLog = (obj) => ({
|
|
|
661
668
|
...obj,
|
|
662
669
|
...(obj.protectedQuery && { protectedQuery: ProtectedQueryFilterSensitiveLog(obj.protectedQuery) }),
|
|
663
670
|
});
|
|
671
|
+
export const TagResourceInputFilterSensitiveLog = (obj) => ({
|
|
672
|
+
...obj,
|
|
673
|
+
});
|
|
674
|
+
export const TagResourceOutputFilterSensitiveLog = (obj) => ({
|
|
675
|
+
...obj,
|
|
676
|
+
});
|
|
677
|
+
export const UntagResourceInputFilterSensitiveLog = (obj) => ({
|
|
678
|
+
...obj,
|
|
679
|
+
});
|
|
680
|
+
export const UntagResourceOutputFilterSensitiveLog = (obj) => ({
|
|
681
|
+
...obj,
|
|
682
|
+
});
|
|
@@ -43,6 +43,7 @@ export const serializeAws_restJson1CreateCollaborationCommand = async (input, co
|
|
|
43
43
|
...(input.members != null && { members: serializeAws_restJson1MemberList(input.members, context) }),
|
|
44
44
|
...(input.name != null && { name: input.name }),
|
|
45
45
|
...(input.queryLogStatus != null && { queryLogStatus: input.queryLogStatus }),
|
|
46
|
+
...(input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
|
|
46
47
|
});
|
|
47
48
|
return new __HttpRequest({
|
|
48
49
|
protocol,
|
|
@@ -71,6 +72,7 @@ export const serializeAws_restJson1CreateConfiguredTableCommand = async (input,
|
|
|
71
72
|
...(input.tableReference != null && {
|
|
72
73
|
tableReference: serializeAws_restJson1TableReference(input.tableReference, context),
|
|
73
74
|
}),
|
|
75
|
+
...(input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
|
|
74
76
|
});
|
|
75
77
|
return new __HttpRequest({
|
|
76
78
|
protocol,
|
|
@@ -121,6 +123,7 @@ export const serializeAws_restJson1CreateConfiguredTableAssociationCommand = asy
|
|
|
121
123
|
...(input.description != null && { description: input.description }),
|
|
122
124
|
...(input.name != null && { name: input.name }),
|
|
123
125
|
...(input.roleArn != null && { roleArn: input.roleArn }),
|
|
126
|
+
...(input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
|
|
124
127
|
});
|
|
125
128
|
return new __HttpRequest({
|
|
126
129
|
protocol,
|
|
@@ -142,6 +145,7 @@ export const serializeAws_restJson1CreateMembershipCommand = async (input, conte
|
|
|
142
145
|
body = JSON.stringify({
|
|
143
146
|
...(input.collaborationIdentifier != null && { collaborationIdentifier: input.collaborationIdentifier }),
|
|
144
147
|
...(input.queryLogStatus != null && { queryLogStatus: input.queryLogStatus }),
|
|
148
|
+
...(input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
|
|
145
149
|
});
|
|
146
150
|
return new __HttpRequest({
|
|
147
151
|
protocol,
|
|
@@ -548,6 +552,22 @@ export const serializeAws_restJson1ListSchemasCommand = async (input, context) =
|
|
|
548
552
|
body,
|
|
549
553
|
});
|
|
550
554
|
};
|
|
555
|
+
export const serializeAws_restJson1ListTagsForResourceCommand = async (input, context) => {
|
|
556
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
557
|
+
const headers = {};
|
|
558
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
559
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
560
|
+
let body;
|
|
561
|
+
return new __HttpRequest({
|
|
562
|
+
protocol,
|
|
563
|
+
hostname,
|
|
564
|
+
port,
|
|
565
|
+
method: "GET",
|
|
566
|
+
headers,
|
|
567
|
+
path: resolvedPath,
|
|
568
|
+
body,
|
|
569
|
+
});
|
|
570
|
+
};
|
|
551
571
|
export const serializeAws_restJson1StartProtectedQueryCommand = async (input, context) => {
|
|
552
572
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
553
573
|
const headers = {
|
|
@@ -576,6 +596,50 @@ export const serializeAws_restJson1StartProtectedQueryCommand = async (input, co
|
|
|
576
596
|
body,
|
|
577
597
|
});
|
|
578
598
|
};
|
|
599
|
+
export const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
600
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
601
|
+
const headers = {
|
|
602
|
+
"content-type": "application/json",
|
|
603
|
+
};
|
|
604
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
605
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
606
|
+
let body;
|
|
607
|
+
body = JSON.stringify({
|
|
608
|
+
...(input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
|
|
609
|
+
});
|
|
610
|
+
return new __HttpRequest({
|
|
611
|
+
protocol,
|
|
612
|
+
hostname,
|
|
613
|
+
port,
|
|
614
|
+
method: "POST",
|
|
615
|
+
headers,
|
|
616
|
+
path: resolvedPath,
|
|
617
|
+
body,
|
|
618
|
+
});
|
|
619
|
+
};
|
|
620
|
+
export const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
|
|
621
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
622
|
+
const headers = {};
|
|
623
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
624
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
625
|
+
const query = map({
|
|
626
|
+
tagKeys: [
|
|
627
|
+
__expectNonNull(input.tagKeys, `tagKeys`) != null,
|
|
628
|
+
() => (input.tagKeys || []).map((_entry) => _entry),
|
|
629
|
+
],
|
|
630
|
+
});
|
|
631
|
+
let body;
|
|
632
|
+
return new __HttpRequest({
|
|
633
|
+
protocol,
|
|
634
|
+
hostname,
|
|
635
|
+
port,
|
|
636
|
+
method: "DELETE",
|
|
637
|
+
headers,
|
|
638
|
+
path: resolvedPath,
|
|
639
|
+
query,
|
|
640
|
+
body,
|
|
641
|
+
});
|
|
642
|
+
};
|
|
579
643
|
export const serializeAws_restJson1UpdateCollaborationCommand = async (input, context) => {
|
|
580
644
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
581
645
|
const headers = {
|
|
@@ -1703,6 +1767,9 @@ const deserializeAws_restJson1ListConfiguredTableAssociationsCommandError = asyn
|
|
|
1703
1767
|
case "InternalServerException":
|
|
1704
1768
|
case "com.amazonaws.cleanrooms#InternalServerException":
|
|
1705
1769
|
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1770
|
+
case "ResourceNotFoundException":
|
|
1771
|
+
case "com.amazonaws.cleanrooms#ResourceNotFoundException":
|
|
1772
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1706
1773
|
case "ThrottlingException":
|
|
1707
1774
|
case "com.amazonaws.cleanrooms#ThrottlingException":
|
|
1708
1775
|
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
@@ -1886,6 +1953,9 @@ const deserializeAws_restJson1ListProtectedQueriesCommandError = async (output,
|
|
|
1886
1953
|
case "InternalServerException":
|
|
1887
1954
|
case "com.amazonaws.cleanrooms#InternalServerException":
|
|
1888
1955
|
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1956
|
+
case "ResourceNotFoundException":
|
|
1957
|
+
case "com.amazonaws.cleanrooms#ResourceNotFoundException":
|
|
1958
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1889
1959
|
case "ThrottlingException":
|
|
1890
1960
|
case "com.amazonaws.cleanrooms#ThrottlingException":
|
|
1891
1961
|
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
@@ -1950,6 +2020,42 @@ const deserializeAws_restJson1ListSchemasCommandError = async (output, context)
|
|
|
1950
2020
|
});
|
|
1951
2021
|
}
|
|
1952
2022
|
};
|
|
2023
|
+
export const deserializeAws_restJson1ListTagsForResourceCommand = async (output, context) => {
|
|
2024
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2025
|
+
return deserializeAws_restJson1ListTagsForResourceCommandError(output, context);
|
|
2026
|
+
}
|
|
2027
|
+
const contents = map({
|
|
2028
|
+
$metadata: deserializeMetadata(output),
|
|
2029
|
+
});
|
|
2030
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2031
|
+
if (data.tags != null) {
|
|
2032
|
+
contents.tags = deserializeAws_restJson1TagMap(data.tags, context);
|
|
2033
|
+
}
|
|
2034
|
+
return contents;
|
|
2035
|
+
};
|
|
2036
|
+
const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, context) => {
|
|
2037
|
+
const parsedOutput = {
|
|
2038
|
+
...output,
|
|
2039
|
+
body: await parseErrorBody(output.body, context),
|
|
2040
|
+
};
|
|
2041
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2042
|
+
switch (errorCode) {
|
|
2043
|
+
case "ResourceNotFoundException":
|
|
2044
|
+
case "com.amazonaws.cleanrooms#ResourceNotFoundException":
|
|
2045
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2046
|
+
case "ValidationException":
|
|
2047
|
+
case "com.amazonaws.cleanrooms#ValidationException":
|
|
2048
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2049
|
+
default:
|
|
2050
|
+
const parsedBody = parsedOutput.body;
|
|
2051
|
+
throwDefaultError({
|
|
2052
|
+
output,
|
|
2053
|
+
parsedBody,
|
|
2054
|
+
exceptionCtor: __BaseException,
|
|
2055
|
+
errorCode,
|
|
2056
|
+
});
|
|
2057
|
+
}
|
|
2058
|
+
};
|
|
1953
2059
|
export const deserializeAws_restJson1StartProtectedQueryCommand = async (output, context) => {
|
|
1954
2060
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1955
2061
|
return deserializeAws_restJson1StartProtectedQueryCommandError(output, context);
|
|
@@ -1998,6 +2104,72 @@ const deserializeAws_restJson1StartProtectedQueryCommandError = async (output, c
|
|
|
1998
2104
|
});
|
|
1999
2105
|
}
|
|
2000
2106
|
};
|
|
2107
|
+
export const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
|
|
2108
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2109
|
+
return deserializeAws_restJson1TagResourceCommandError(output, context);
|
|
2110
|
+
}
|
|
2111
|
+
const contents = map({
|
|
2112
|
+
$metadata: deserializeMetadata(output),
|
|
2113
|
+
});
|
|
2114
|
+
await collectBody(output.body, context);
|
|
2115
|
+
return contents;
|
|
2116
|
+
};
|
|
2117
|
+
const deserializeAws_restJson1TagResourceCommandError = async (output, context) => {
|
|
2118
|
+
const parsedOutput = {
|
|
2119
|
+
...output,
|
|
2120
|
+
body: await parseErrorBody(output.body, context),
|
|
2121
|
+
};
|
|
2122
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2123
|
+
switch (errorCode) {
|
|
2124
|
+
case "ResourceNotFoundException":
|
|
2125
|
+
case "com.amazonaws.cleanrooms#ResourceNotFoundException":
|
|
2126
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2127
|
+
case "ValidationException":
|
|
2128
|
+
case "com.amazonaws.cleanrooms#ValidationException":
|
|
2129
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2130
|
+
default:
|
|
2131
|
+
const parsedBody = parsedOutput.body;
|
|
2132
|
+
throwDefaultError({
|
|
2133
|
+
output,
|
|
2134
|
+
parsedBody,
|
|
2135
|
+
exceptionCtor: __BaseException,
|
|
2136
|
+
errorCode,
|
|
2137
|
+
});
|
|
2138
|
+
}
|
|
2139
|
+
};
|
|
2140
|
+
export const deserializeAws_restJson1UntagResourceCommand = async (output, context) => {
|
|
2141
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2142
|
+
return deserializeAws_restJson1UntagResourceCommandError(output, context);
|
|
2143
|
+
}
|
|
2144
|
+
const contents = map({
|
|
2145
|
+
$metadata: deserializeMetadata(output),
|
|
2146
|
+
});
|
|
2147
|
+
await collectBody(output.body, context);
|
|
2148
|
+
return contents;
|
|
2149
|
+
};
|
|
2150
|
+
const deserializeAws_restJson1UntagResourceCommandError = async (output, context) => {
|
|
2151
|
+
const parsedOutput = {
|
|
2152
|
+
...output,
|
|
2153
|
+
body: await parseErrorBody(output.body, context),
|
|
2154
|
+
};
|
|
2155
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2156
|
+
switch (errorCode) {
|
|
2157
|
+
case "ResourceNotFoundException":
|
|
2158
|
+
case "com.amazonaws.cleanrooms#ResourceNotFoundException":
|
|
2159
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2160
|
+
case "ValidationException":
|
|
2161
|
+
case "com.amazonaws.cleanrooms#ValidationException":
|
|
2162
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2163
|
+
default:
|
|
2164
|
+
const parsedBody = parsedOutput.body;
|
|
2165
|
+
throwDefaultError({
|
|
2166
|
+
output,
|
|
2167
|
+
parsedBody,
|
|
2168
|
+
exceptionCtor: __BaseException,
|
|
2169
|
+
errorCode,
|
|
2170
|
+
});
|
|
2171
|
+
}
|
|
2172
|
+
};
|
|
2001
2173
|
export const deserializeAws_restJson1UpdateCollaborationCommand = async (output, context) => {
|
|
2002
2174
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2003
2175
|
return deserializeAws_restJson1UpdateCollaborationCommandError(output, context);
|
|
@@ -2572,6 +2744,15 @@ const serializeAws_restJson1TableReference = (input, context) => {
|
|
|
2572
2744
|
_: (name, value) => ({ name: value }),
|
|
2573
2745
|
});
|
|
2574
2746
|
};
|
|
2747
|
+
const serializeAws_restJson1TagMap = (input, context) => {
|
|
2748
|
+
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
2749
|
+
if (value === null) {
|
|
2750
|
+
return acc;
|
|
2751
|
+
}
|
|
2752
|
+
acc[key] = value;
|
|
2753
|
+
return acc;
|
|
2754
|
+
}, {});
|
|
2755
|
+
};
|
|
2575
2756
|
const deserializeAws_restJson1AggregateColumn = (output, context) => {
|
|
2576
2757
|
return {
|
|
2577
2758
|
columnNames: output.columnNames != null
|
|
@@ -3187,6 +3368,15 @@ const deserializeAws_restJson1TableReference = (output, context) => {
|
|
|
3187
3368
|
}
|
|
3188
3369
|
return { $unknown: Object.entries(output)[0] };
|
|
3189
3370
|
};
|
|
3371
|
+
const deserializeAws_restJson1TagMap = (output, context) => {
|
|
3372
|
+
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
3373
|
+
if (value === null) {
|
|
3374
|
+
return acc;
|
|
3375
|
+
}
|
|
3376
|
+
acc[key] = __expectString(value);
|
|
3377
|
+
return acc;
|
|
3378
|
+
}, {});
|
|
3379
|
+
};
|
|
3190
3380
|
const deserializeAws_restJson1ValidationExceptionField = (output, context) => {
|
|
3191
3381
|
return {
|
|
3192
3382
|
message: __expectString(output.message),
|
|
@@ -27,7 +27,10 @@ import { ListMembersCommandInput, ListMembersCommandOutput } from "./commands/Li
|
|
|
27
27
|
import { ListMembershipsCommandInput, ListMembershipsCommandOutput } from "./commands/ListMembershipsCommand";
|
|
28
28
|
import { ListProtectedQueriesCommandInput, ListProtectedQueriesCommandOutput } from "./commands/ListProtectedQueriesCommand";
|
|
29
29
|
import { ListSchemasCommandInput, ListSchemasCommandOutput } from "./commands/ListSchemasCommand";
|
|
30
|
+
import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
|
|
30
31
|
import { StartProtectedQueryCommandInput, StartProtectedQueryCommandOutput } from "./commands/StartProtectedQueryCommand";
|
|
32
|
+
import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
|
|
33
|
+
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
|
|
31
34
|
import { UpdateCollaborationCommandInput, UpdateCollaborationCommandOutput } from "./commands/UpdateCollaborationCommand";
|
|
32
35
|
import { UpdateConfiguredTableAnalysisRuleCommandInput, UpdateConfiguredTableAnalysisRuleCommandOutput } from "./commands/UpdateConfiguredTableAnalysisRuleCommand";
|
|
33
36
|
import { UpdateConfiguredTableAssociationCommandInput, UpdateConfiguredTableAssociationCommandOutput } from "./commands/UpdateConfiguredTableAssociationCommand";
|
|
@@ -35,13 +38,10 @@ import { UpdateConfiguredTableCommandInput, UpdateConfiguredTableCommandOutput }
|
|
|
35
38
|
import { UpdateMembershipCommandInput, UpdateMembershipCommandOutput } from "./commands/UpdateMembershipCommand";
|
|
36
39
|
import { UpdateProtectedQueryCommandInput, UpdateProtectedQueryCommandOutput } from "./commands/UpdateProtectedQueryCommand";
|
|
37
40
|
/**
|
|
38
|
-
* <
|
|
39
|
-
* <p>AWS Clean Rooms is in preview release and is subject to change.</p>
|
|
40
|
-
* </note>
|
|
41
|
-
* <p>Welcome to the <i>AWS Clean Rooms API Reference</i>.</p>
|
|
41
|
+
* <p>Welcome to the <i>AWS Clean Rooms API Reference</i>.</p>
|
|
42
42
|
* <p>AWS Clean Rooms is an AWS service that helps multiple parties to join their data
|
|
43
43
|
* together in a secure collaboration workspace. In the collaboration, members who can query
|
|
44
|
-
* and receive results can get insights into the
|
|
44
|
+
* and receive results can get insights into the collective datasets without either party getting
|
|
45
45
|
* access to the other party's raw data.</p>
|
|
46
46
|
* <p>To learn more about AWS Clean Rooms concepts, procedures, and best practices, see the
|
|
47
47
|
* <a href="https://docs.aws.amazon.com/clean-rooms/latest/userguide/what-is.html">AWS Clean
|
|
@@ -215,12 +215,30 @@ export declare class CleanRooms extends CleanRoomsClient {
|
|
|
215
215
|
listSchemas(args: ListSchemasCommandInput, options?: __HttpHandlerOptions): Promise<ListSchemasCommandOutput>;
|
|
216
216
|
listSchemas(args: ListSchemasCommandInput, cb: (err: any, data?: ListSchemasCommandOutput) => void): void;
|
|
217
217
|
listSchemas(args: ListSchemasCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListSchemasCommandOutput) => void): void;
|
|
218
|
+
/**
|
|
219
|
+
* <p>Lists all of the tags that have been added to a resource.</p>
|
|
220
|
+
*/
|
|
221
|
+
listTagsForResource(args: ListTagsForResourceCommandInput, options?: __HttpHandlerOptions): Promise<ListTagsForResourceCommandOutput>;
|
|
222
|
+
listTagsForResource(args: ListTagsForResourceCommandInput, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
|
|
223
|
+
listTagsForResource(args: ListTagsForResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
|
|
218
224
|
/**
|
|
219
225
|
* <p>Creates a protected query that is started by AWS Clean Rooms.</p>
|
|
220
226
|
*/
|
|
221
227
|
startProtectedQuery(args: StartProtectedQueryCommandInput, options?: __HttpHandlerOptions): Promise<StartProtectedQueryCommandOutput>;
|
|
222
228
|
startProtectedQuery(args: StartProtectedQueryCommandInput, cb: (err: any, data?: StartProtectedQueryCommandOutput) => void): void;
|
|
223
229
|
startProtectedQuery(args: StartProtectedQueryCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartProtectedQueryCommandOutput) => void): void;
|
|
230
|
+
/**
|
|
231
|
+
* <p>Tags a resource.</p>
|
|
232
|
+
*/
|
|
233
|
+
tagResource(args: TagResourceCommandInput, options?: __HttpHandlerOptions): Promise<TagResourceCommandOutput>;
|
|
234
|
+
tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
|
|
235
|
+
tagResource(args: TagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
|
|
236
|
+
/**
|
|
237
|
+
* <p>Removes a tag or list of tags from a resource.</p>
|
|
238
|
+
*/
|
|
239
|
+
untagResource(args: UntagResourceCommandInput, options?: __HttpHandlerOptions): Promise<UntagResourceCommandOutput>;
|
|
240
|
+
untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
|
|
241
|
+
untagResource(args: UntagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
|
|
224
242
|
/**
|
|
225
243
|
* <p>Updates collaboration metadata and can only be called by the collaboration owner.</p>
|
|
226
244
|
*/
|
|
@@ -34,7 +34,10 @@ import { ListMembersCommandInput, ListMembersCommandOutput } from "./commands/Li
|
|
|
34
34
|
import { ListMembershipsCommandInput, ListMembershipsCommandOutput } from "./commands/ListMembershipsCommand";
|
|
35
35
|
import { ListProtectedQueriesCommandInput, ListProtectedQueriesCommandOutput } from "./commands/ListProtectedQueriesCommand";
|
|
36
36
|
import { ListSchemasCommandInput, ListSchemasCommandOutput } from "./commands/ListSchemasCommand";
|
|
37
|
+
import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
|
|
37
38
|
import { StartProtectedQueryCommandInput, StartProtectedQueryCommandOutput } from "./commands/StartProtectedQueryCommand";
|
|
39
|
+
import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
|
|
40
|
+
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
|
|
38
41
|
import { UpdateCollaborationCommandInput, UpdateCollaborationCommandOutput } from "./commands/UpdateCollaborationCommand";
|
|
39
42
|
import { UpdateConfiguredTableAnalysisRuleCommandInput, UpdateConfiguredTableAnalysisRuleCommandOutput } from "./commands/UpdateConfiguredTableAnalysisRuleCommand";
|
|
40
43
|
import { UpdateConfiguredTableAssociationCommandInput, UpdateConfiguredTableAssociationCommandOutput } from "./commands/UpdateConfiguredTableAssociationCommand";
|
|
@@ -42,8 +45,8 @@ import { UpdateConfiguredTableCommandInput, UpdateConfiguredTableCommandOutput }
|
|
|
42
45
|
import { UpdateMembershipCommandInput, UpdateMembershipCommandOutput } from "./commands/UpdateMembershipCommand";
|
|
43
46
|
import { UpdateProtectedQueryCommandInput, UpdateProtectedQueryCommandOutput } from "./commands/UpdateProtectedQueryCommand";
|
|
44
47
|
import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters";
|
|
45
|
-
export
|
|
46
|
-
export
|
|
48
|
+
export type ServiceInputTypes = BatchGetSchemaCommandInput | CreateCollaborationCommandInput | CreateConfiguredTableAnalysisRuleCommandInput | CreateConfiguredTableAssociationCommandInput | CreateConfiguredTableCommandInput | CreateMembershipCommandInput | DeleteCollaborationCommandInput | DeleteConfiguredTableAnalysisRuleCommandInput | DeleteConfiguredTableAssociationCommandInput | DeleteConfiguredTableCommandInput | DeleteMemberCommandInput | DeleteMembershipCommandInput | GetCollaborationCommandInput | GetConfiguredTableAnalysisRuleCommandInput | GetConfiguredTableAssociationCommandInput | GetConfiguredTableCommandInput | GetMembershipCommandInput | GetProtectedQueryCommandInput | GetSchemaAnalysisRuleCommandInput | GetSchemaCommandInput | ListCollaborationsCommandInput | ListConfiguredTableAssociationsCommandInput | ListConfiguredTablesCommandInput | ListMembersCommandInput | ListMembershipsCommandInput | ListProtectedQueriesCommandInput | ListSchemasCommandInput | ListTagsForResourceCommandInput | StartProtectedQueryCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateCollaborationCommandInput | UpdateConfiguredTableAnalysisRuleCommandInput | UpdateConfiguredTableAssociationCommandInput | UpdateConfiguredTableCommandInput | UpdateMembershipCommandInput | UpdateProtectedQueryCommandInput;
|
|
49
|
+
export type ServiceOutputTypes = BatchGetSchemaCommandOutput | CreateCollaborationCommandOutput | CreateConfiguredTableAnalysisRuleCommandOutput | CreateConfiguredTableAssociationCommandOutput | CreateConfiguredTableCommandOutput | CreateMembershipCommandOutput | DeleteCollaborationCommandOutput | DeleteConfiguredTableAnalysisRuleCommandOutput | DeleteConfiguredTableAssociationCommandOutput | DeleteConfiguredTableCommandOutput | DeleteMemberCommandOutput | DeleteMembershipCommandOutput | GetCollaborationCommandOutput | GetConfiguredTableAnalysisRuleCommandOutput | GetConfiguredTableAssociationCommandOutput | GetConfiguredTableCommandOutput | GetMembershipCommandOutput | GetProtectedQueryCommandOutput | GetSchemaAnalysisRuleCommandOutput | GetSchemaCommandOutput | ListCollaborationsCommandOutput | ListConfiguredTableAssociationsCommandOutput | ListConfiguredTablesCommandOutput | ListMembersCommandOutput | ListMembershipsCommandOutput | ListProtectedQueriesCommandOutput | ListSchemasCommandOutput | ListTagsForResourceCommandOutput | StartProtectedQueryCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateCollaborationCommandOutput | UpdateConfiguredTableAnalysisRuleCommandOutput | UpdateConfiguredTableAssociationCommandOutput | UpdateConfiguredTableCommandOutput | UpdateMembershipCommandOutput | UpdateProtectedQueryCommandOutput;
|
|
47
50
|
export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
|
|
48
51
|
/**
|
|
49
52
|
* The HTTP handler to use. Fetch in browser and Https in Nodejs.
|
|
@@ -144,26 +147,23 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
|
|
|
144
147
|
*/
|
|
145
148
|
defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
|
|
146
149
|
}
|
|
147
|
-
|
|
150
|
+
type CleanRoomsClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointInputConfig<EndpointParameters> & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig & ClientInputEndpointParameters;
|
|
148
151
|
/**
|
|
149
152
|
* The configuration interface of CleanRoomsClient class constructor that set the region, credentials and other options.
|
|
150
153
|
*/
|
|
151
154
|
export interface CleanRoomsClientConfig extends CleanRoomsClientConfigType {
|
|
152
155
|
}
|
|
153
|
-
|
|
156
|
+
type CleanRoomsClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RegionResolvedConfig & EndpointResolvedConfig<EndpointParameters> & RetryResolvedConfig & HostHeaderResolvedConfig & AwsAuthResolvedConfig & UserAgentResolvedConfig & ClientResolvedEndpointParameters;
|
|
154
157
|
/**
|
|
155
158
|
* The resolved configuration interface of CleanRoomsClient class. This is resolved and normalized from the {@link CleanRoomsClientConfig | constructor configuration interface}.
|
|
156
159
|
*/
|
|
157
160
|
export interface CleanRoomsClientResolvedConfig extends CleanRoomsClientResolvedConfigType {
|
|
158
161
|
}
|
|
159
162
|
/**
|
|
160
|
-
* <
|
|
161
|
-
* <p>AWS Clean Rooms is in preview release and is subject to change.</p>
|
|
162
|
-
* </note>
|
|
163
|
-
* <p>Welcome to the <i>AWS Clean Rooms API Reference</i>.</p>
|
|
163
|
+
* <p>Welcome to the <i>AWS Clean Rooms API Reference</i>.</p>
|
|
164
164
|
* <p>AWS Clean Rooms is an AWS service that helps multiple parties to join their data
|
|
165
165
|
* together in a secure collaboration workspace. In the collaboration, members who can query
|
|
166
|
-
* and receive results can get insights into the
|
|
166
|
+
* and receive results can get insights into the collective datasets without either party getting
|
|
167
167
|
* access to the other party's raw data.</p>
|
|
168
168
|
* <p>To learn more about AWS Clean Rooms concepts, procedures, and best practices, see the
|
|
169
169
|
* <a href="https://docs.aws.amazon.com/clean-rooms/latest/userguide/what-is.html">AWS Clean
|
|
@@ -35,6 +35,9 @@ export interface ListConfiguredTableAssociationsCommandOutput extends ListConfig
|
|
|
35
35
|
* @throws {@link InternalServerException} (server fault)
|
|
36
36
|
* <p>Unexpected error during processing of request.</p>
|
|
37
37
|
*
|
|
38
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
39
|
+
* <p>Request references a resource which does not exist.</p>
|
|
40
|
+
*
|
|
38
41
|
* @throws {@link ThrottlingException} (client fault)
|
|
39
42
|
* <p>Request was denied due to request throttling.</p>
|
|
40
43
|
*
|
|
@@ -35,6 +35,9 @@ export interface ListProtectedQueriesCommandOutput extends ListProtectedQueriesO
|
|
|
35
35
|
* @throws {@link InternalServerException} (server fault)
|
|
36
36
|
* <p>Unexpected error during processing of request.</p>
|
|
37
37
|
*
|
|
38
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
39
|
+
* <p>Request references a resource which does not exist.</p>
|
|
40
|
+
*
|
|
38
41
|
* @throws {@link ThrottlingException} (client fault)
|
|
39
42
|
* <p>Request was denied due to request throttling.</p>
|
|
40
43
|
*
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
4
|
+
import { CleanRoomsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CleanRoomsClient";
|
|
5
|
+
import { ListTagsForResourceInput, ListTagsForResourceOutput } from "../models/models_0";
|
|
6
|
+
/**
|
|
7
|
+
* The input for {@link ListTagsForResourceCommand}.
|
|
8
|
+
*/
|
|
9
|
+
export interface ListTagsForResourceCommandInput extends ListTagsForResourceInput {
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* The output of {@link ListTagsForResourceCommand}.
|
|
13
|
+
*/
|
|
14
|
+
export interface ListTagsForResourceCommandOutput extends ListTagsForResourceOutput, __MetadataBearer {
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* <p>Lists all of the tags that have been added to a resource.</p>
|
|
18
|
+
* @example
|
|
19
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
20
|
+
* ```javascript
|
|
21
|
+
* import { CleanRoomsClient, ListTagsForResourceCommand } from "@aws-sdk/client-cleanrooms"; // ES Modules import
|
|
22
|
+
* // const { CleanRoomsClient, ListTagsForResourceCommand } = require("@aws-sdk/client-cleanrooms"); // CommonJS import
|
|
23
|
+
* const client = new CleanRoomsClient(config);
|
|
24
|
+
* const command = new ListTagsForResourceCommand(input);
|
|
25
|
+
* const response = await client.send(command);
|
|
26
|
+
* ```
|
|
27
|
+
*
|
|
28
|
+
* @see {@link ListTagsForResourceCommandInput} for command's `input` shape.
|
|
29
|
+
* @see {@link ListTagsForResourceCommandOutput} for command's `response` shape.
|
|
30
|
+
* @see {@link CleanRoomsClientResolvedConfig | config} for CleanRoomsClient's `config` shape.
|
|
31
|
+
*
|
|
32
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
33
|
+
* <p>Request references a resource which does not exist.</p>
|
|
34
|
+
*
|
|
35
|
+
* @throws {@link ValidationException} (client fault)
|
|
36
|
+
* <p>The input fails to satisfy the specified constraints.</p>
|
|
37
|
+
*
|
|
38
|
+
*
|
|
39
|
+
*/
|
|
40
|
+
export declare class ListTagsForResourceCommand extends $Command<ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput, CleanRoomsClientResolvedConfig> {
|
|
41
|
+
readonly input: ListTagsForResourceCommandInput;
|
|
42
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
43
|
+
constructor(input: ListTagsForResourceCommandInput);
|
|
44
|
+
/**
|
|
45
|
+
* @internal
|
|
46
|
+
*/
|
|
47
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CleanRoomsClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput>;
|
|
48
|
+
private serialize;
|
|
49
|
+
private deserialize;
|
|
50
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
4
|
+
import { CleanRoomsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CleanRoomsClient";
|
|
5
|
+
import { TagResourceInput, TagResourceOutput } from "../models/models_0";
|
|
6
|
+
/**
|
|
7
|
+
* The input for {@link TagResourceCommand}.
|
|
8
|
+
*/
|
|
9
|
+
export interface TagResourceCommandInput extends TagResourceInput {
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* The output of {@link TagResourceCommand}.
|
|
13
|
+
*/
|
|
14
|
+
export interface TagResourceCommandOutput extends TagResourceOutput, __MetadataBearer {
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* <p>Tags a resource.</p>
|
|
18
|
+
* @example
|
|
19
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
20
|
+
* ```javascript
|
|
21
|
+
* import { CleanRoomsClient, TagResourceCommand } from "@aws-sdk/client-cleanrooms"; // ES Modules import
|
|
22
|
+
* // const { CleanRoomsClient, TagResourceCommand } = require("@aws-sdk/client-cleanrooms"); // CommonJS import
|
|
23
|
+
* const client = new CleanRoomsClient(config);
|
|
24
|
+
* const command = new TagResourceCommand(input);
|
|
25
|
+
* const response = await client.send(command);
|
|
26
|
+
* ```
|
|
27
|
+
*
|
|
28
|
+
* @see {@link TagResourceCommandInput} for command's `input` shape.
|
|
29
|
+
* @see {@link TagResourceCommandOutput} for command's `response` shape.
|
|
30
|
+
* @see {@link CleanRoomsClientResolvedConfig | config} for CleanRoomsClient's `config` shape.
|
|
31
|
+
*
|
|
32
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
33
|
+
* <p>Request references a resource which does not exist.</p>
|
|
34
|
+
*
|
|
35
|
+
* @throws {@link ValidationException} (client fault)
|
|
36
|
+
* <p>The input fails to satisfy the specified constraints.</p>
|
|
37
|
+
*
|
|
38
|
+
*
|
|
39
|
+
*/
|
|
40
|
+
export declare class TagResourceCommand extends $Command<TagResourceCommandInput, TagResourceCommandOutput, CleanRoomsClientResolvedConfig> {
|
|
41
|
+
readonly input: TagResourceCommandInput;
|
|
42
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
43
|
+
constructor(input: TagResourceCommandInput);
|
|
44
|
+
/**
|
|
45
|
+
* @internal
|
|
46
|
+
*/
|
|
47
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CleanRoomsClientResolvedConfig, options?: __HttpHandlerOptions): Handler<TagResourceCommandInput, TagResourceCommandOutput>;
|
|
48
|
+
private serialize;
|
|
49
|
+
private deserialize;
|
|
50
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
4
|
+
import { CleanRoomsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CleanRoomsClient";
|
|
5
|
+
import { UntagResourceInput, UntagResourceOutput } from "../models/models_0";
|
|
6
|
+
/**
|
|
7
|
+
* The input for {@link UntagResourceCommand}.
|
|
8
|
+
*/
|
|
9
|
+
export interface UntagResourceCommandInput extends UntagResourceInput {
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* The output of {@link UntagResourceCommand}.
|
|
13
|
+
*/
|
|
14
|
+
export interface UntagResourceCommandOutput extends UntagResourceOutput, __MetadataBearer {
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* <p>Removes a tag or list of tags from a resource.</p>
|
|
18
|
+
* @example
|
|
19
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
20
|
+
* ```javascript
|
|
21
|
+
* import { CleanRoomsClient, UntagResourceCommand } from "@aws-sdk/client-cleanrooms"; // ES Modules import
|
|
22
|
+
* // const { CleanRoomsClient, UntagResourceCommand } = require("@aws-sdk/client-cleanrooms"); // CommonJS import
|
|
23
|
+
* const client = new CleanRoomsClient(config);
|
|
24
|
+
* const command = new UntagResourceCommand(input);
|
|
25
|
+
* const response = await client.send(command);
|
|
26
|
+
* ```
|
|
27
|
+
*
|
|
28
|
+
* @see {@link UntagResourceCommandInput} for command's `input` shape.
|
|
29
|
+
* @see {@link UntagResourceCommandOutput} for command's `response` shape.
|
|
30
|
+
* @see {@link CleanRoomsClientResolvedConfig | config} for CleanRoomsClient's `config` shape.
|
|
31
|
+
*
|
|
32
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
33
|
+
* <p>Request references a resource which does not exist.</p>
|
|
34
|
+
*
|
|
35
|
+
* @throws {@link ValidationException} (client fault)
|
|
36
|
+
* <p>The input fails to satisfy the specified constraints.</p>
|
|
37
|
+
*
|
|
38
|
+
*
|
|
39
|
+
*/
|
|
40
|
+
export declare class UntagResourceCommand extends $Command<UntagResourceCommandInput, UntagResourceCommandOutput, CleanRoomsClientResolvedConfig> {
|
|
41
|
+
readonly input: UntagResourceCommandInput;
|
|
42
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
43
|
+
constructor(input: UntagResourceCommandInput);
|
|
44
|
+
/**
|
|
45
|
+
* @internal
|
|
46
|
+
*/
|
|
47
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CleanRoomsClientResolvedConfig, options?: __HttpHandlerOptions): Handler<UntagResourceCommandInput, UntagResourceCommandOutput>;
|
|
48
|
+
private serialize;
|
|
49
|
+
private deserialize;
|
|
50
|
+
}
|
|
@@ -25,7 +25,10 @@ export * from "./ListMembersCommand";
|
|
|
25
25
|
export * from "./ListMembershipsCommand";
|
|
26
26
|
export * from "./ListProtectedQueriesCommand";
|
|
27
27
|
export * from "./ListSchemasCommand";
|
|
28
|
+
export * from "./ListTagsForResourceCommand";
|
|
28
29
|
export * from "./StartProtectedQueryCommand";
|
|
30
|
+
export * from "./TagResourceCommand";
|
|
31
|
+
export * from "./UntagResourceCommand";
|
|
29
32
|
export * from "./UpdateCollaborationCommand";
|
|
30
33
|
export * from "./UpdateConfiguredTableAnalysisRuleCommand";
|
|
31
34
|
export * from "./UpdateConfiguredTableAssociationCommand";
|