@aws-sdk/client-ssm-guiconnect 3.799.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.
Files changed (91) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +253 -0
  3. package/dist-cjs/SSMGuiConnect.js +17 -0
  4. package/dist-cjs/SSMGuiConnectClient.js +52 -0
  5. package/dist-cjs/auth/httpAuthExtensionConfiguration.js +43 -0
  6. package/dist-cjs/auth/httpAuthSchemeProvider.js +47 -0
  7. package/dist-cjs/commands/DeleteConnectionRecordingPreferencesCommand.js +26 -0
  8. package/dist-cjs/commands/GetConnectionRecordingPreferencesCommand.js +26 -0
  9. package/dist-cjs/commands/UpdateConnectionRecordingPreferencesCommand.js +26 -0
  10. package/dist-cjs/commands/index.js +6 -0
  11. package/dist-cjs/endpoint/EndpointParameters.js +17 -0
  12. package/dist-cjs/endpoint/endpointResolver.js +18 -0
  13. package/dist-cjs/endpoint/ruleset.js +7 -0
  14. package/dist-cjs/extensionConfiguration.js +2 -0
  15. package/dist-cjs/index.js +10 -0
  16. package/dist-cjs/models/SSMGuiConnectServiceException.js +12 -0
  17. package/dist-cjs/models/index.js +4 -0
  18. package/dist-cjs/models/models_0.js +95 -0
  19. package/dist-cjs/protocols/Aws_restJson1.js +230 -0
  20. package/dist-cjs/runtimeConfig.browser.js +39 -0
  21. package/dist-cjs/runtimeConfig.js +53 -0
  22. package/dist-cjs/runtimeConfig.native.js +15 -0
  23. package/dist-cjs/runtimeConfig.shared.js +34 -0
  24. package/dist-cjs/runtimeExtensions.js +13 -0
  25. package/dist-es/SSMGuiConnect.js +13 -0
  26. package/dist-es/SSMGuiConnectClient.js +48 -0
  27. package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
  28. package/dist-es/auth/httpAuthSchemeProvider.js +41 -0
  29. package/dist-es/commands/DeleteConnectionRecordingPreferencesCommand.js +22 -0
  30. package/dist-es/commands/GetConnectionRecordingPreferencesCommand.js +22 -0
  31. package/dist-es/commands/UpdateConnectionRecordingPreferencesCommand.js +22 -0
  32. package/dist-es/commands/index.js +3 -0
  33. package/dist-es/endpoint/EndpointParameters.js +13 -0
  34. package/dist-es/endpoint/endpointResolver.js +14 -0
  35. package/dist-es/endpoint/ruleset.js +4 -0
  36. package/dist-es/extensionConfiguration.js +1 -0
  37. package/dist-es/index.js +5 -0
  38. package/dist-es/models/SSMGuiConnectServiceException.js +8 -0
  39. package/dist-es/models/index.js +1 -0
  40. package/dist-es/models/models_0.js +85 -0
  41. package/dist-es/protocols/Aws_restJson1.js +221 -0
  42. package/dist-es/runtimeConfig.browser.js +34 -0
  43. package/dist-es/runtimeConfig.js +48 -0
  44. package/dist-es/runtimeConfig.native.js +11 -0
  45. package/dist-es/runtimeConfig.shared.js +30 -0
  46. package/dist-es/runtimeExtensions.js +9 -0
  47. package/dist-types/SSMGuiConnect.d.ts +56 -0
  48. package/dist-types/SSMGuiConnectClient.d.ts +213 -0
  49. package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
  50. package/dist-types/auth/httpAuthSchemeProvider.d.ts +75 -0
  51. package/dist-types/commands/DeleteConnectionRecordingPreferencesCommand.d.ts +106 -0
  52. package/dist-types/commands/GetConnectionRecordingPreferencesCommand.d.ts +126 -0
  53. package/dist-types/commands/UpdateConnectionRecordingPreferencesCommand.d.ts +151 -0
  54. package/dist-types/commands/index.d.ts +3 -0
  55. package/dist-types/endpoint/EndpointParameters.d.ts +40 -0
  56. package/dist-types/endpoint/endpointResolver.d.ts +5 -0
  57. package/dist-types/endpoint/ruleset.d.ts +2 -0
  58. package/dist-types/extensionConfiguration.d.ts +9 -0
  59. package/dist-types/index.d.ts +36 -0
  60. package/dist-types/models/SSMGuiConnectServiceException.d.ts +14 -0
  61. package/dist-types/models/index.d.ts +1 -0
  62. package/dist-types/models/models_0.d.ts +194 -0
  63. package/dist-types/protocols/Aws_restJson1.d.ts +29 -0
  64. package/dist-types/runtimeConfig.browser.d.ts +50 -0
  65. package/dist-types/runtimeConfig.d.ts +50 -0
  66. package/dist-types/runtimeConfig.native.d.ts +49 -0
  67. package/dist-types/runtimeConfig.shared.d.ts +21 -0
  68. package/dist-types/runtimeExtensions.d.ts +17 -0
  69. package/dist-types/ts3.4/SSMGuiConnect.d.ts +78 -0
  70. package/dist-types/ts3.4/SSMGuiConnectClient.d.ts +138 -0
  71. package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +32 -0
  72. package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +47 -0
  73. package/dist-types/ts3.4/commands/DeleteConnectionRecordingPreferencesCommand.d.ts +51 -0
  74. package/dist-types/ts3.4/commands/GetConnectionRecordingPreferencesCommand.d.ts +47 -0
  75. package/dist-types/ts3.4/commands/UpdateConnectionRecordingPreferencesCommand.d.ts +51 -0
  76. package/dist-types/ts3.4/commands/index.d.ts +3 -0
  77. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +51 -0
  78. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  79. package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
  80. package/dist-types/ts3.4/extensionConfiguration.d.ts +9 -0
  81. package/dist-types/ts3.4/index.d.ts +8 -0
  82. package/dist-types/ts3.4/models/SSMGuiConnectServiceException.d.ts +9 -0
  83. package/dist-types/ts3.4/models/index.d.ts +1 -0
  84. package/dist-types/ts3.4/models/models_0.d.ts +78 -0
  85. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +41 -0
  86. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +100 -0
  87. package/dist-types/ts3.4/runtimeConfig.d.ts +98 -0
  88. package/dist-types/ts3.4/runtimeConfig.native.d.ts +104 -0
  89. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +21 -0
  90. package/dist-types/ts3.4/runtimeExtensions.d.ts +11 -0
  91. package/package.json +101 -0
@@ -0,0 +1,11 @@
1
+ import { Sha256 } from "@aws-crypto/sha256-js";
2
+ import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser";
3
+ export const getRuntimeConfig = (config) => {
4
+ const browserDefaults = getBrowserRuntimeConfig(config);
5
+ return {
6
+ ...browserDefaults,
7
+ ...config,
8
+ runtime: "react-native",
9
+ sha256: config?.sha256 ?? Sha256,
10
+ };
11
+ };
@@ -0,0 +1,30 @@
1
+ import { AwsSdkSigV4Signer } from "@aws-sdk/core";
2
+ import { NoOpLogger } from "@smithy/smithy-client";
3
+ import { parseUrl } from "@smithy/url-parser";
4
+ import { fromBase64, toBase64 } from "@smithy/util-base64";
5
+ import { fromUtf8, toUtf8 } from "@smithy/util-utf8";
6
+ import { defaultSSMGuiConnectHttpAuthSchemeProvider } from "./auth/httpAuthSchemeProvider";
7
+ import { defaultEndpointResolver } from "./endpoint/endpointResolver";
8
+ export const getRuntimeConfig = (config) => {
9
+ return {
10
+ apiVersion: "2021-05-01",
11
+ base64Decoder: config?.base64Decoder ?? fromBase64,
12
+ base64Encoder: config?.base64Encoder ?? toBase64,
13
+ disableHostPrefix: config?.disableHostPrefix ?? false,
14
+ endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
15
+ extensions: config?.extensions ?? [],
16
+ httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultSSMGuiConnectHttpAuthSchemeProvider,
17
+ httpAuthSchemes: config?.httpAuthSchemes ?? [
18
+ {
19
+ schemeId: "aws.auth#sigv4",
20
+ identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
21
+ signer: new AwsSdkSigV4Signer(),
22
+ },
23
+ ],
24
+ logger: config?.logger ?? new NoOpLogger(),
25
+ serviceId: config?.serviceId ?? "SSM GuiConnect",
26
+ urlParser: config?.urlParser ?? parseUrl,
27
+ utf8Decoder: config?.utf8Decoder ?? fromUtf8,
28
+ utf8Encoder: config?.utf8Encoder ?? toUtf8,
29
+ };
30
+ };
@@ -0,0 +1,9 @@
1
+ import { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, } from "@aws-sdk/region-config-resolver";
2
+ import { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig } from "@smithy/protocol-http";
3
+ import { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig } from "@smithy/smithy-client";
4
+ import { getHttpAuthExtensionConfiguration, resolveHttpAuthRuntimeConfig } from "./auth/httpAuthExtensionConfiguration";
5
+ export const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
6
+ const extensionConfiguration = Object.assign(getAwsRegionExtensionConfiguration(runtimeConfig), getDefaultExtensionConfiguration(runtimeConfig), getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
7
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
8
+ return Object.assign(runtimeConfig, resolveAwsRegionExtensionConfiguration(extensionConfiguration), resolveDefaultRuntimeConfig(extensionConfiguration), resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
9
+ };
@@ -0,0 +1,56 @@
1
+ import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
2
+ import { DeleteConnectionRecordingPreferencesCommandInput, DeleteConnectionRecordingPreferencesCommandOutput } from "./commands/DeleteConnectionRecordingPreferencesCommand";
3
+ import { GetConnectionRecordingPreferencesCommandInput, GetConnectionRecordingPreferencesCommandOutput } from "./commands/GetConnectionRecordingPreferencesCommand";
4
+ import { UpdateConnectionRecordingPreferencesCommandInput, UpdateConnectionRecordingPreferencesCommandOutput } from "./commands/UpdateConnectionRecordingPreferencesCommand";
5
+ import { SSMGuiConnectClient } from "./SSMGuiConnectClient";
6
+ export interface SSMGuiConnect {
7
+ /**
8
+ * @see {@link DeleteConnectionRecordingPreferencesCommand}
9
+ */
10
+ deleteConnectionRecordingPreferences(): Promise<DeleteConnectionRecordingPreferencesCommandOutput>;
11
+ deleteConnectionRecordingPreferences(args: DeleteConnectionRecordingPreferencesCommandInput, options?: __HttpHandlerOptions): Promise<DeleteConnectionRecordingPreferencesCommandOutput>;
12
+ deleteConnectionRecordingPreferences(args: DeleteConnectionRecordingPreferencesCommandInput, cb: (err: any, data?: DeleteConnectionRecordingPreferencesCommandOutput) => void): void;
13
+ deleteConnectionRecordingPreferences(args: DeleteConnectionRecordingPreferencesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteConnectionRecordingPreferencesCommandOutput) => void): void;
14
+ /**
15
+ * @see {@link GetConnectionRecordingPreferencesCommand}
16
+ */
17
+ getConnectionRecordingPreferences(): Promise<GetConnectionRecordingPreferencesCommandOutput>;
18
+ getConnectionRecordingPreferences(args: GetConnectionRecordingPreferencesCommandInput, options?: __HttpHandlerOptions): Promise<GetConnectionRecordingPreferencesCommandOutput>;
19
+ getConnectionRecordingPreferences(args: GetConnectionRecordingPreferencesCommandInput, cb: (err: any, data?: GetConnectionRecordingPreferencesCommandOutput) => void): void;
20
+ getConnectionRecordingPreferences(args: GetConnectionRecordingPreferencesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetConnectionRecordingPreferencesCommandOutput) => void): void;
21
+ /**
22
+ * @see {@link UpdateConnectionRecordingPreferencesCommand}
23
+ */
24
+ updateConnectionRecordingPreferences(args: UpdateConnectionRecordingPreferencesCommandInput, options?: __HttpHandlerOptions): Promise<UpdateConnectionRecordingPreferencesCommandOutput>;
25
+ updateConnectionRecordingPreferences(args: UpdateConnectionRecordingPreferencesCommandInput, cb: (err: any, data?: UpdateConnectionRecordingPreferencesCommandOutput) => void): void;
26
+ updateConnectionRecordingPreferences(args: UpdateConnectionRecordingPreferencesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateConnectionRecordingPreferencesCommandOutput) => void): void;
27
+ }
28
+ /**
29
+ * <fullname>AWS Systems Manager GUI Connect</fullname>
30
+ * <p>Systems Manager GUI Connect, a component of Fleet Manager, lets you connect to your Window
31
+ * Server-type Amazon Elastic Compute Cloud (Amazon EC2) instances using the Remote Desktop Protocol (RDP). GUI
32
+ * Connect, which is powered by <a href="https://docs.aws.amazon.com/dcv/latest/adminguide/what-is-dcv.html">Amazon DCV</a>, provides you
33
+ * with secure connectivity to your Windows Server instances directly from the Systems Manager console.
34
+ * You can have up to four simultaneous connections in a single browser window. In the
35
+ * console, GUI Connect is also referred to as Fleet Manager Remote Desktop.</p>
36
+ * <p>This reference is intended to be used with the <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/">
37
+ * <i>Amazon Web Services Systems Manager User
38
+ * Guide</i>
39
+ * </a>. To get started, see the following user guide topics:</p>
40
+ * <ul>
41
+ * <li>
42
+ * <p>
43
+ * <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/systems-manager-setting-up.html">Setting up
44
+ * Amazon Web Services Systems Manager</a>
45
+ * </p>
46
+ * </li>
47
+ * <li>
48
+ * <p>
49
+ * <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/fleet-rdp.html">Connect to a Windows Server managed instance using Remote Desktop</a>
50
+ * </p>
51
+ * </li>
52
+ * </ul>
53
+ * @public
54
+ */
55
+ export declare class SSMGuiConnect extends SSMGuiConnectClient implements SSMGuiConnect {
56
+ }
@@ -0,0 +1,213 @@
1
+ import { HostHeaderInputConfig, HostHeaderResolvedConfig } from "@aws-sdk/middleware-host-header";
2
+ import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
3
+ import { RegionInputConfig, RegionResolvedConfig } from "@smithy/config-resolver";
4
+ import { EndpointInputConfig, EndpointResolvedConfig } from "@smithy/middleware-endpoint";
5
+ import { RetryInputConfig, RetryResolvedConfig } from "@smithy/middleware-retry";
6
+ import { HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/protocol-http";
7
+ import { Client as __Client, DefaultsMode as __DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@smithy/smithy-client";
8
+ import { AwsCredentialIdentityProvider, BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
9
+ import { HttpAuthSchemeInputConfig, HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
10
+ import { DeleteConnectionRecordingPreferencesCommandInput, DeleteConnectionRecordingPreferencesCommandOutput } from "./commands/DeleteConnectionRecordingPreferencesCommand";
11
+ import { GetConnectionRecordingPreferencesCommandInput, GetConnectionRecordingPreferencesCommandOutput } from "./commands/GetConnectionRecordingPreferencesCommand";
12
+ import { UpdateConnectionRecordingPreferencesCommandInput, UpdateConnectionRecordingPreferencesCommandOutput } from "./commands/UpdateConnectionRecordingPreferencesCommand";
13
+ import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters";
14
+ import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";
15
+ export { __Client };
16
+ /**
17
+ * @public
18
+ */
19
+ export type ServiceInputTypes = DeleteConnectionRecordingPreferencesCommandInput | GetConnectionRecordingPreferencesCommandInput | UpdateConnectionRecordingPreferencesCommandInput;
20
+ /**
21
+ * @public
22
+ */
23
+ export type ServiceOutputTypes = DeleteConnectionRecordingPreferencesCommandOutput | GetConnectionRecordingPreferencesCommandOutput | UpdateConnectionRecordingPreferencesCommandOutput;
24
+ /**
25
+ * @public
26
+ */
27
+ export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHandlerOptions>> {
28
+ /**
29
+ * The HTTP handler to use or its constructor options. Fetch in browser and Https in Nodejs.
30
+ */
31
+ requestHandler?: __HttpHandlerUserInput;
32
+ /**
33
+ * A constructor for a class implementing the {@link @smithy/types#ChecksumConstructor} interface
34
+ * that computes the SHA-256 HMAC or checksum of a string or binary buffer.
35
+ * @internal
36
+ */
37
+ sha256?: __ChecksumConstructor | __HashConstructor;
38
+ /**
39
+ * The function that will be used to convert strings into HTTP endpoints.
40
+ * @internal
41
+ */
42
+ urlParser?: __UrlParser;
43
+ /**
44
+ * A function that can calculate the length of a request body.
45
+ * @internal
46
+ */
47
+ bodyLengthChecker?: __BodyLengthCalculator;
48
+ /**
49
+ * A function that converts a stream into an array of bytes.
50
+ * @internal
51
+ */
52
+ streamCollector?: __StreamCollector;
53
+ /**
54
+ * The function that will be used to convert a base64-encoded string to a byte array.
55
+ * @internal
56
+ */
57
+ base64Decoder?: __Decoder;
58
+ /**
59
+ * The function that will be used to convert binary data to a base64-encoded string.
60
+ * @internal
61
+ */
62
+ base64Encoder?: __Encoder;
63
+ /**
64
+ * The function that will be used to convert a UTF8-encoded string to a byte array.
65
+ * @internal
66
+ */
67
+ utf8Decoder?: __Decoder;
68
+ /**
69
+ * The function that will be used to convert binary data to a UTF-8 encoded string.
70
+ * @internal
71
+ */
72
+ utf8Encoder?: __Encoder;
73
+ /**
74
+ * The runtime environment.
75
+ * @internal
76
+ */
77
+ runtime?: string;
78
+ /**
79
+ * Disable dynamically changing the endpoint of the client based on the hostPrefix
80
+ * trait of an operation.
81
+ */
82
+ disableHostPrefix?: boolean;
83
+ /**
84
+ * Unique service identifier.
85
+ * @internal
86
+ */
87
+ serviceId?: string;
88
+ /**
89
+ * Enables IPv6/IPv4 dualstack endpoint.
90
+ */
91
+ useDualstackEndpoint?: boolean | __Provider<boolean>;
92
+ /**
93
+ * Enables FIPS compatible endpoints.
94
+ */
95
+ useFipsEndpoint?: boolean | __Provider<boolean>;
96
+ /**
97
+ * The AWS region to which this client will send requests
98
+ */
99
+ region?: string | __Provider<string>;
100
+ /**
101
+ * Setting a client profile is similar to setting a value for the
102
+ * AWS_PROFILE environment variable. Setting a profile on a client
103
+ * in code only affects the single client instance, unlike AWS_PROFILE.
104
+ *
105
+ * When set, and only for environments where an AWS configuration
106
+ * file exists, fields configurable by this file will be retrieved
107
+ * from the specified profile within that file.
108
+ * Conflicting code configuration and environment variables will
109
+ * still have higher priority.
110
+ *
111
+ * For client credential resolution that involves checking the AWS
112
+ * configuration file, the client's profile (this value) will be
113
+ * used unless a different profile is set in the credential
114
+ * provider options.
115
+ *
116
+ */
117
+ profile?: string;
118
+ /**
119
+ * The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
120
+ * @internal
121
+ */
122
+ defaultUserAgentProvider?: Provider<__UserAgent>;
123
+ /**
124
+ * Default credentials provider; Not available in browser runtime.
125
+ * @deprecated
126
+ * @internal
127
+ */
128
+ credentialDefaultProvider?: (input: any) => AwsCredentialIdentityProvider;
129
+ /**
130
+ * Value for how many times a request will be made at most in case of retry.
131
+ */
132
+ maxAttempts?: number | __Provider<number>;
133
+ /**
134
+ * Specifies which retry algorithm to use.
135
+ * @see https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-smithy-util-retry/Enum/RETRY_MODES/
136
+ *
137
+ */
138
+ retryMode?: string | __Provider<string>;
139
+ /**
140
+ * Optional logger for logging debug/info/warn/error.
141
+ */
142
+ logger?: __Logger;
143
+ /**
144
+ * Optional extensions
145
+ */
146
+ extensions?: RuntimeExtension[];
147
+ /**
148
+ * The {@link @smithy/smithy-client#DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
149
+ */
150
+ defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
151
+ }
152
+ /**
153
+ * @public
154
+ */
155
+ export type SSMGuiConnectClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & UserAgentInputConfig & RetryInputConfig & RegionInputConfig & HostHeaderInputConfig & EndpointInputConfig<EndpointParameters> & HttpAuthSchemeInputConfig & ClientInputEndpointParameters;
156
+ /**
157
+ * @public
158
+ *
159
+ * The configuration interface of SSMGuiConnectClient class constructor that set the region, credentials and other options.
160
+ */
161
+ export interface SSMGuiConnectClientConfig extends SSMGuiConnectClientConfigType {
162
+ }
163
+ /**
164
+ * @public
165
+ */
166
+ export type SSMGuiConnectClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RuntimeExtensionsConfig & UserAgentResolvedConfig & RetryResolvedConfig & RegionResolvedConfig & HostHeaderResolvedConfig & EndpointResolvedConfig<EndpointParameters> & HttpAuthSchemeResolvedConfig & ClientResolvedEndpointParameters;
167
+ /**
168
+ * @public
169
+ *
170
+ * The resolved configuration interface of SSMGuiConnectClient class. This is resolved and normalized from the {@link SSMGuiConnectClientConfig | constructor configuration interface}.
171
+ */
172
+ export interface SSMGuiConnectClientResolvedConfig extends SSMGuiConnectClientResolvedConfigType {
173
+ }
174
+ /**
175
+ * <fullname>AWS Systems Manager GUI Connect</fullname>
176
+ * <p>Systems Manager GUI Connect, a component of Fleet Manager, lets you connect to your Window
177
+ * Server-type Amazon Elastic Compute Cloud (Amazon EC2) instances using the Remote Desktop Protocol (RDP). GUI
178
+ * Connect, which is powered by <a href="https://docs.aws.amazon.com/dcv/latest/adminguide/what-is-dcv.html">Amazon DCV</a>, provides you
179
+ * with secure connectivity to your Windows Server instances directly from the Systems Manager console.
180
+ * You can have up to four simultaneous connections in a single browser window. In the
181
+ * console, GUI Connect is also referred to as Fleet Manager Remote Desktop.</p>
182
+ * <p>This reference is intended to be used with the <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/">
183
+ * <i>Amazon Web Services Systems Manager User
184
+ * Guide</i>
185
+ * </a>. To get started, see the following user guide topics:</p>
186
+ * <ul>
187
+ * <li>
188
+ * <p>
189
+ * <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/systems-manager-setting-up.html">Setting up
190
+ * Amazon Web Services Systems Manager</a>
191
+ * </p>
192
+ * </li>
193
+ * <li>
194
+ * <p>
195
+ * <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/fleet-rdp.html">Connect to a Windows Server managed instance using Remote Desktop</a>
196
+ * </p>
197
+ * </li>
198
+ * </ul>
199
+ * @public
200
+ */
201
+ export declare class SSMGuiConnectClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, SSMGuiConnectClientResolvedConfig> {
202
+ /**
203
+ * The resolved configuration of SSMGuiConnectClient class. This is resolved and normalized from the {@link SSMGuiConnectClientConfig | constructor configuration interface}.
204
+ */
205
+ readonly config: SSMGuiConnectClientResolvedConfig;
206
+ constructor(...[configuration]: __CheckOptionalClientConfig<SSMGuiConnectClientConfig>);
207
+ /**
208
+ * Destroy underlying resources, like sockets. It's usually not necessary to do this.
209
+ * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
210
+ * Otherwise, sockets might stay open for quite a long time before the server terminates them.
211
+ */
212
+ destroy(): void;
213
+ }
@@ -0,0 +1,29 @@
1
+ import { AwsCredentialIdentity, AwsCredentialIdentityProvider, HttpAuthScheme } from "@smithy/types";
2
+ import { SSMGuiConnectHttpAuthSchemeProvider } from "./httpAuthSchemeProvider";
3
+ /**
4
+ * @internal
5
+ */
6
+ export interface HttpAuthExtensionConfiguration {
7
+ setHttpAuthScheme(httpAuthScheme: HttpAuthScheme): void;
8
+ httpAuthSchemes(): HttpAuthScheme[];
9
+ setHttpAuthSchemeProvider(httpAuthSchemeProvider: SSMGuiConnectHttpAuthSchemeProvider): void;
10
+ httpAuthSchemeProvider(): SSMGuiConnectHttpAuthSchemeProvider;
11
+ setCredentials(credentials: AwsCredentialIdentity | AwsCredentialIdentityProvider): void;
12
+ credentials(): AwsCredentialIdentity | AwsCredentialIdentityProvider | undefined;
13
+ }
14
+ /**
15
+ * @internal
16
+ */
17
+ export type HttpAuthRuntimeConfig = Partial<{
18
+ httpAuthSchemes: HttpAuthScheme[];
19
+ httpAuthSchemeProvider: SSMGuiConnectHttpAuthSchemeProvider;
20
+ credentials: AwsCredentialIdentity | AwsCredentialIdentityProvider;
21
+ }>;
22
+ /**
23
+ * @internal
24
+ */
25
+ export declare const getHttpAuthExtensionConfiguration: (runtimeConfig: HttpAuthRuntimeConfig) => HttpAuthExtensionConfiguration;
26
+ /**
27
+ * @internal
28
+ */
29
+ export declare const resolveHttpAuthRuntimeConfig: (config: HttpAuthExtensionConfiguration) => HttpAuthRuntimeConfig;
@@ -0,0 +1,75 @@
1
+ import { AwsSdkSigV4AuthInputConfig, AwsSdkSigV4AuthResolvedConfig, AwsSdkSigV4PreviouslyResolved } from "@aws-sdk/core";
2
+ import { HandlerExecutionContext, HttpAuthScheme, HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, Provider } from "@smithy/types";
3
+ import { SSMGuiConnectClientResolvedConfig } from "../SSMGuiConnectClient";
4
+ /**
5
+ * @internal
6
+ */
7
+ export interface SSMGuiConnectHttpAuthSchemeParameters extends HttpAuthSchemeParameters {
8
+ region?: string;
9
+ }
10
+ /**
11
+ * @internal
12
+ */
13
+ export interface SSMGuiConnectHttpAuthSchemeParametersProvider extends HttpAuthSchemeParametersProvider<SSMGuiConnectClientResolvedConfig, HandlerExecutionContext, SSMGuiConnectHttpAuthSchemeParameters, object> {
14
+ }
15
+ /**
16
+ * @internal
17
+ */
18
+ export declare const defaultSSMGuiConnectHttpAuthSchemeParametersProvider: (config: SSMGuiConnectClientResolvedConfig, context: HandlerExecutionContext, input: object) => Promise<SSMGuiConnectHttpAuthSchemeParameters>;
19
+ /**
20
+ * @internal
21
+ */
22
+ export interface SSMGuiConnectHttpAuthSchemeProvider extends HttpAuthSchemeProvider<SSMGuiConnectHttpAuthSchemeParameters> {
23
+ }
24
+ /**
25
+ * @internal
26
+ */
27
+ export declare const defaultSSMGuiConnectHttpAuthSchemeProvider: SSMGuiConnectHttpAuthSchemeProvider;
28
+ /**
29
+ * @internal
30
+ */
31
+ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig {
32
+ /**
33
+ * A comma-separated list of case-sensitive auth scheme names.
34
+ * An auth scheme name is a fully qualified auth scheme ID with the namespace prefix trimmed.
35
+ * For example, the auth scheme with ID aws.auth#sigv4 is named sigv4.
36
+ * @public
37
+ */
38
+ authSchemePreference?: string[] | Provider<string[]>;
39
+ /**
40
+ * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme.
41
+ * @internal
42
+ */
43
+ httpAuthSchemes?: HttpAuthScheme[];
44
+ /**
45
+ * Configuration of an HttpAuthSchemeProvider for a client which resolves which HttpAuthScheme to use.
46
+ * @internal
47
+ */
48
+ httpAuthSchemeProvider?: SSMGuiConnectHttpAuthSchemeProvider;
49
+ }
50
+ /**
51
+ * @internal
52
+ */
53
+ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig {
54
+ /**
55
+ * A comma-separated list of case-sensitive auth scheme names.
56
+ * An auth scheme name is a fully qualified auth scheme ID with the namespace prefix trimmed.
57
+ * For example, the auth scheme with ID aws.auth#sigv4 is named sigv4.
58
+ * @public
59
+ */
60
+ readonly authSchemePreference: Provider<string[]>;
61
+ /**
62
+ * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme.
63
+ * @internal
64
+ */
65
+ readonly httpAuthSchemes: HttpAuthScheme[];
66
+ /**
67
+ * Configuration of an HttpAuthSchemeProvider for a client which resolves which HttpAuthScheme to use.
68
+ * @internal
69
+ */
70
+ readonly httpAuthSchemeProvider: SSMGuiConnectHttpAuthSchemeProvider;
71
+ }
72
+ /**
73
+ * @internal
74
+ */
75
+ export declare const resolveHttpAuthSchemeConfig: <T>(config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved) => T & HttpAuthSchemeResolvedConfig;
@@ -0,0 +1,106 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { DeleteConnectionRecordingPreferencesRequest, DeleteConnectionRecordingPreferencesResponse } from "../models/models_0";
4
+ import { ServiceInputTypes, ServiceOutputTypes, SSMGuiConnectClientResolvedConfig } from "../SSMGuiConnectClient";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link DeleteConnectionRecordingPreferencesCommand}.
14
+ */
15
+ export interface DeleteConnectionRecordingPreferencesCommandInput extends DeleteConnectionRecordingPreferencesRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link DeleteConnectionRecordingPreferencesCommand}.
21
+ */
22
+ export interface DeleteConnectionRecordingPreferencesCommandOutput extends DeleteConnectionRecordingPreferencesResponse, __MetadataBearer {
23
+ }
24
+ declare const DeleteConnectionRecordingPreferencesCommand_base: {
25
+ new (input: DeleteConnectionRecordingPreferencesCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteConnectionRecordingPreferencesCommandInput, DeleteConnectionRecordingPreferencesCommandOutput, SSMGuiConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (...[input]: [] | [DeleteConnectionRecordingPreferencesCommandInput]): import("@smithy/smithy-client").CommandImpl<DeleteConnectionRecordingPreferencesCommandInput, DeleteConnectionRecordingPreferencesCommandOutput, SSMGuiConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Deletes the preferences for recording RDP connections.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { SSMGuiConnectClient, DeleteConnectionRecordingPreferencesCommand } from "@aws-sdk/client-ssm-guiconnect"; // ES Modules import
35
+ * // const { SSMGuiConnectClient, DeleteConnectionRecordingPreferencesCommand } = require("@aws-sdk/client-ssm-guiconnect"); // CommonJS import
36
+ * const client = new SSMGuiConnectClient(config);
37
+ * const input = { // DeleteConnectionRecordingPreferencesRequest
38
+ * ClientToken: "STRING_VALUE",
39
+ * };
40
+ * const command = new DeleteConnectionRecordingPreferencesCommand(input);
41
+ * const response = await client.send(command);
42
+ * // { // DeleteConnectionRecordingPreferencesResponse
43
+ * // ClientToken: "STRING_VALUE",
44
+ * // };
45
+ *
46
+ * ```
47
+ *
48
+ * @param DeleteConnectionRecordingPreferencesCommandInput - {@link DeleteConnectionRecordingPreferencesCommandInput}
49
+ * @returns {@link DeleteConnectionRecordingPreferencesCommandOutput}
50
+ * @see {@link DeleteConnectionRecordingPreferencesCommandInput} for command's `input` shape.
51
+ * @see {@link DeleteConnectionRecordingPreferencesCommandOutput} for command's `response` shape.
52
+ * @see {@link SSMGuiConnectClientResolvedConfig | config} for SSMGuiConnectClient's `config` shape.
53
+ *
54
+ * @throws {@link AccessDeniedException} (client fault)
55
+ * <p>You do not have sufficient access to perform this action.</p>
56
+ *
57
+ * @throws {@link ConflictException} (client fault)
58
+ * <p>An error occurred due to a conflict.</p>
59
+ *
60
+ * @throws {@link InternalServerException} (server fault)
61
+ * <p>The request processing has failed because of an unknown error, exception or failure.</p>
62
+ *
63
+ * @throws {@link ResourceNotFoundException} (client fault)
64
+ * <p>The resource could not be found.</p>
65
+ *
66
+ * @throws {@link ServiceQuotaExceededException} (client fault)
67
+ * <p>Your request exceeds a service quota.</p>
68
+ *
69
+ * @throws {@link ThrottlingException} (client fault)
70
+ * <p>The request was denied due to request throttling.</p>
71
+ *
72
+ * @throws {@link ValidationException} (client fault)
73
+ * <p>The input fails to satisfy the constraints specified by an AWS service.</p>
74
+ *
75
+ * @throws {@link SSMGuiConnectServiceException}
76
+ * <p>Base exception class for all service exceptions from SSMGuiConnect service.</p>
77
+ *
78
+ *
79
+ * @example Delete the connection recording preferences for the account
80
+ * ```javascript
81
+ * //
82
+ * const input = { /* empty *\/ };
83
+ * const command = new DeleteConnectionRecordingPreferencesCommand(input);
84
+ * const response = await client.send(command);
85
+ * /* response is
86
+ * {
87
+ * ClientToken: "sample_uuid"
88
+ * }
89
+ * *\/
90
+ * ```
91
+ *
92
+ * @public
93
+ */
94
+ export declare class DeleteConnectionRecordingPreferencesCommand extends DeleteConnectionRecordingPreferencesCommand_base {
95
+ /** @internal type navigation helper, not in runtime. */
96
+ protected static __types: {
97
+ api: {
98
+ input: DeleteConnectionRecordingPreferencesRequest;
99
+ output: DeleteConnectionRecordingPreferencesResponse;
100
+ };
101
+ sdk: {
102
+ input: DeleteConnectionRecordingPreferencesCommandInput;
103
+ output: DeleteConnectionRecordingPreferencesCommandOutput;
104
+ };
105
+ };
106
+ }
@@ -0,0 +1,126 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { GetConnectionRecordingPreferencesResponse } from "../models/models_0";
4
+ import { ServiceInputTypes, ServiceOutputTypes, SSMGuiConnectClientResolvedConfig } from "../SSMGuiConnectClient";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link GetConnectionRecordingPreferencesCommand}.
14
+ */
15
+ export interface GetConnectionRecordingPreferencesCommandInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link GetConnectionRecordingPreferencesCommand}.
21
+ */
22
+ export interface GetConnectionRecordingPreferencesCommandOutput extends GetConnectionRecordingPreferencesResponse, __MetadataBearer {
23
+ }
24
+ declare const GetConnectionRecordingPreferencesCommand_base: {
25
+ new (input: GetConnectionRecordingPreferencesCommandInput): import("@smithy/smithy-client").CommandImpl<GetConnectionRecordingPreferencesCommandInput, GetConnectionRecordingPreferencesCommandOutput, SSMGuiConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (...[input]: [] | [GetConnectionRecordingPreferencesCommandInput]): import("@smithy/smithy-client").CommandImpl<GetConnectionRecordingPreferencesCommandInput, GetConnectionRecordingPreferencesCommandOutput, SSMGuiConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Returns the preferences specified for recording RDP connections in the requesting Amazon Web Services account and Amazon Web Services Region.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { SSMGuiConnectClient, GetConnectionRecordingPreferencesCommand } from "@aws-sdk/client-ssm-guiconnect"; // ES Modules import
35
+ * // const { SSMGuiConnectClient, GetConnectionRecordingPreferencesCommand } = require("@aws-sdk/client-ssm-guiconnect"); // CommonJS import
36
+ * const client = new SSMGuiConnectClient(config);
37
+ * const input = {};
38
+ * const command = new GetConnectionRecordingPreferencesCommand(input);
39
+ * const response = await client.send(command);
40
+ * // { // GetConnectionRecordingPreferencesResponse
41
+ * // ClientToken: "STRING_VALUE",
42
+ * // ConnectionRecordingPreferences: { // ConnectionRecordingPreferences
43
+ * // RecordingDestinations: { // RecordingDestinations
44
+ * // S3Buckets: [ // S3Buckets // required
45
+ * // { // S3Bucket
46
+ * // BucketOwner: "STRING_VALUE", // required
47
+ * // BucketName: "STRING_VALUE", // required
48
+ * // },
49
+ * // ],
50
+ * // },
51
+ * // KMSKeyArn: "STRING_VALUE", // required
52
+ * // },
53
+ * // };
54
+ *
55
+ * ```
56
+ *
57
+ * @param GetConnectionRecordingPreferencesCommandInput - {@link GetConnectionRecordingPreferencesCommandInput}
58
+ * @returns {@link GetConnectionRecordingPreferencesCommandOutput}
59
+ * @see {@link GetConnectionRecordingPreferencesCommandInput} for command's `input` shape.
60
+ * @see {@link GetConnectionRecordingPreferencesCommandOutput} for command's `response` shape.
61
+ * @see {@link SSMGuiConnectClientResolvedConfig | config} for SSMGuiConnectClient's `config` shape.
62
+ *
63
+ * @throws {@link AccessDeniedException} (client fault)
64
+ * <p>You do not have sufficient access to perform this action.</p>
65
+ *
66
+ * @throws {@link ConflictException} (client fault)
67
+ * <p>An error occurred due to a conflict.</p>
68
+ *
69
+ * @throws {@link InternalServerException} (server fault)
70
+ * <p>The request processing has failed because of an unknown error, exception or failure.</p>
71
+ *
72
+ * @throws {@link ResourceNotFoundException} (client fault)
73
+ * <p>The resource could not be found.</p>
74
+ *
75
+ * @throws {@link ServiceQuotaExceededException} (client fault)
76
+ * <p>Your request exceeds a service quota.</p>
77
+ *
78
+ * @throws {@link ThrottlingException} (client fault)
79
+ * <p>The request was denied due to request throttling.</p>
80
+ *
81
+ * @throws {@link ValidationException} (client fault)
82
+ * <p>The input fails to satisfy the constraints specified by an AWS service.</p>
83
+ *
84
+ * @throws {@link SSMGuiConnectServiceException}
85
+ * <p>Base exception class for all service exceptions from SSMGuiConnect service.</p>
86
+ *
87
+ *
88
+ * @example Retrieves the connection recording preferences for the account
89
+ * ```javascript
90
+ * //
91
+ * const input = { /* empty *\/ };
92
+ * const command = new GetConnectionRecordingPreferencesCommand(input);
93
+ * const response = await client.send(command);
94
+ * /* response is
95
+ * {
96
+ * ClientToken: "sample_uuid",
97
+ * ConnectionRecordingPreferences: {
98
+ * KMSKeyArn: "arn:aws:kms:region:account_id:key/sample_key_id",
99
+ * RecordingDestinations: {
100
+ * S3Buckets: [
101
+ * {
102
+ * BucketName: "sample-connection-recording-bucket",
103
+ * BucketOwner: "123456789012"
104
+ * }
105
+ * ]
106
+ * }
107
+ * }
108
+ * }
109
+ * *\/
110
+ * ```
111
+ *
112
+ * @public
113
+ */
114
+ export declare class GetConnectionRecordingPreferencesCommand extends GetConnectionRecordingPreferencesCommand_base {
115
+ /** @internal type navigation helper, not in runtime. */
116
+ protected static __types: {
117
+ api: {
118
+ input: {};
119
+ output: GetConnectionRecordingPreferencesResponse;
120
+ };
121
+ sdk: {
122
+ input: GetConnectionRecordingPreferencesCommandInput;
123
+ output: GetConnectionRecordingPreferencesCommandOutput;
124
+ };
125
+ };
126
+ }