-
Notifications
You must be signed in to change notification settings - Fork 680
Expand file tree
/
Copy pathXmlEmptyListsCommand.ts
More file actions
131 lines (128 loc) · 3.92 KB
/
XmlEmptyListsCommand.ts
File metadata and controls
131 lines (128 loc) · 3.92 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
// 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 { XmlEmptyLists } from "../schemas/schemas";
/**
* @public
*/
export type { __MetadataBearer };
export { $Command };
/**
* @public
*
* The input for {@link XmlEmptyListsCommand}.
*/
export interface XmlEmptyListsCommandInput {}
/**
* @public
*
* The output of {@link XmlEmptyListsCommand}.
*/
export interface XmlEmptyListsCommandOutput extends XmlListsOutput, __MetadataBearer {}
/**
* @public
*
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
* import { EC2ProtocolClient, XmlEmptyListsCommand } from "@aws-sdk/aws-protocoltests-ec2-schema"; // ES Modules import
* // const { EC2ProtocolClient, XmlEmptyListsCommand } = require("@aws-sdk/aws-protocoltests-ec2-schema"); // CommonJS import
* const client = new EC2ProtocolClient(config);
* const input = {};
* const command = new XmlEmptyListsCommand(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 XmlEmptyListsCommandInput - {@link XmlEmptyListsCommandInput}
* @returns {@link XmlEmptyListsCommandOutput}
* @see {@link XmlEmptyListsCommandInput} for command's `input` shape.
* @see {@link XmlEmptyListsCommandOutput} 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>
*
*
*/
export class XmlEmptyListsCommand extends $Command
.classBuilder<
XmlEmptyListsCommandInput,
XmlEmptyListsCommandOutput,
EC2ProtocolClientResolvedConfig,
ServiceInputTypes,
ServiceOutputTypes
>()
.ep(commonParams)
.m(function (this: any, Command: any, cs: any, config: EC2ProtocolClientResolvedConfig, o: any) {
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
})
.s("AwsEc2", "XmlEmptyLists", {})
.n("EC2ProtocolClient", "XmlEmptyListsCommand")
.sc(XmlEmptyLists)
.build() {
/** @internal type navigation helper, not in runtime. */
protected declare static __types: {
api: {
input: {};
output: XmlListsOutput;
};
sdk: {
input: XmlEmptyListsCommandInput;
output: XmlEmptyListsCommandOutput;
};
};
}