-
Notifications
You must be signed in to change notification settings - Fork 680
Expand file tree
/
Copy pathXmlListsCommand.ts
More file actions
141 lines (138 loc) · 4.16 KB
/
XmlListsCommand.ts
File metadata and controls
141 lines (138 loc) · 4.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
// smithy-typescript generated code
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { Command as $Command } from "@smithy/smithy-client";
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
import { EC2ProtocolClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2ProtocolClient";
import { commonParams } from "../endpoint/EndpointParameters";
import { XmlListsOutput } from "../models/models_0";
import { XmlLists } from "../schemas/schemas";
/**
* @public
*/
export type { __MetadataBearer };
export { $Command };
/**
* @public
*
* The input for {@link XmlListsCommand}.
*/
export interface XmlListsCommandInput {}
/**
* @public
*
* The output of {@link XmlListsCommand}.
*/
export interface XmlListsCommandOutput extends XmlListsOutput, __MetadataBearer {}
/**
* This test case serializes XML lists for the following cases for both
* input and output:
*
* 1. Normal XML lists.
* 2. Normal XML sets.
* 3. XML lists of lists.
* 4. XML lists with @xmlName on its members
* 5. Flattened XML lists.
* 6. Flattened XML lists with @xmlName.
* 7. Flattened XML lists with @xmlNamespace.
* 8. Lists of structures.
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
* import { EC2ProtocolClient, XmlListsCommand } from "@aws-sdk/aws-protocoltests-ec2-schema"; // ES Modules import
* // const { EC2ProtocolClient, XmlListsCommand } = require("@aws-sdk/aws-protocoltests-ec2-schema"); // CommonJS import
* const client = new EC2ProtocolClient(config);
* const input = {};
* const command = new XmlListsCommand(input);
* const response = await client.send(command);
* // { // XmlListsOutput
* // stringList: [ // StringList
* // "STRING_VALUE",
* // ],
* // stringSet: [ // StringSet
* // "STRING_VALUE",
* // ],
* // integerList: [ // IntegerList
* // Number("int"),
* // ],
* // booleanList: [ // BooleanList
* // true || false,
* // ],
* // timestampList: [ // TimestampList
* // new Date("TIMESTAMP"),
* // ],
* // enumList: [ // FooEnumList
* // "Foo" || "Baz" || "Bar" || "1" || "0",
* // ],
* // intEnumList: [ // IntegerEnumList
* // 1 || 2 || 3,
* // ],
* // nestedStringList: [ // NestedStringList
* // [
* // "STRING_VALUE",
* // ],
* // ],
* // renamedListMembers: [ // RenamedListMembers
* // "STRING_VALUE",
* // ],
* // flattenedList: [
* // "STRING_VALUE",
* // ],
* // flattenedList2: [
* // "STRING_VALUE",
* // ],
* // flattenedListWithMemberNamespace: [ // ListWithMemberNamespace
* // "STRING_VALUE",
* // ],
* // flattenedListWithNamespace: [ // ListWithNamespace
* // "STRING_VALUE",
* // ],
* // structureList: [ // StructureList
* // { // StructureListMember
* // a: "STRING_VALUE",
* // b: "STRING_VALUE",
* // },
* // ],
* // };
*
* ```
*
* @param XmlListsCommandInput - {@link XmlListsCommandInput}
* @returns {@link XmlListsCommandOutput}
* @see {@link XmlListsCommandInput} for command's `input` shape.
* @see {@link XmlListsCommandOutput} for command's `response` shape.
* @see {@link EC2ProtocolClientResolvedConfig | config} for EC2ProtocolClient's `config` shape.
*
* @throws {@link EC2ProtocolServiceException}
* <p>Base exception class for all service exceptions from EC2Protocol service.</p>
*
*
* @public
*/
export class XmlListsCommand extends $Command
.classBuilder<
XmlListsCommandInput,
XmlListsCommandOutput,
EC2ProtocolClientResolvedConfig,
ServiceInputTypes,
ServiceOutputTypes
>()
.ep(commonParams)
.m(function (this: any, Command: any, cs: any, config: EC2ProtocolClientResolvedConfig, o: any) {
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
})
.s("AwsEc2", "XmlLists", {})
.n("EC2ProtocolClient", "XmlListsCommand")
.sc(XmlLists)
.build() {
/** @internal type navigation helper, not in runtime. */
protected declare static __types: {
api: {
input: {};
output: XmlListsOutput;
};
sdk: {
input: XmlListsCommandInput;
output: XmlListsCommandOutput;
};
};
}