@aws-sdk/client-groundstation 3.433.0 → 3.436.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/dist-cjs/endpoint/ruleset.js +3 -3
- package/dist-cjs/models/models_0.js +2 -0
- package/dist-cjs/runtimeConfig.js +2 -0
- package/dist-cjs/runtimeConfig.shared.js +15 -13
- package/dist-es/endpoint/ruleset.js +3 -3
- package/dist-es/models/models_0.js +2 -0
- package/dist-es/runtimeConfig.js +2 -0
- package/dist-es/runtimeConfig.shared.js +15 -13
- package/dist-types/commands/CreateMissionProfileCommand.d.ts +1 -0
- package/dist-types/commands/GetMissionProfileCommand.d.ts +1 -0
- package/dist-types/commands/UpdateMissionProfileCommand.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +15 -1
- package/dist-types/ts3.4/models/models_0.d.ts +11 -0
- package/package.json +4 -4
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ruleSet = void 0;
|
|
4
|
-
const
|
|
5
|
-
const a = "isSet",
|
|
6
|
-
const _data = { version: "1.0", parameters: { Region:
|
|
4
|
+
const s = "required", t = "fn", u = "argv", v = "ref";
|
|
5
|
+
const a = true, b = "isSet", c = "booleanEquals", d = "error", e = "endpoint", f = "tree", g = "PartitionResult", h = { [s]: false, "type": "String" }, i = { [s]: true, "default": false, "type": "Boolean" }, j = { [v]: "Endpoint" }, k = { [t]: c, [u]: [{ [v]: "UseFIPS" }, true] }, l = { [t]: c, [u]: [{ [v]: "UseDualStack" }, true] }, m = {}, n = { [t]: "getAttr", [u]: [{ [v]: g }, "supportsFIPS"] }, o = { [t]: c, [u]: [true, { [t]: "getAttr", [u]: [{ [v]: g }, "supportsDualStack"] }] }, p = [k], q = [l], r = [{ [v]: "Region" }];
|
|
6
|
+
const _data = { version: "1.0", parameters: { Region: h, UseDualStack: i, UseFIPS: i, Endpoint: h }, rules: [{ conditions: [{ [t]: b, [u]: [j] }], rules: [{ conditions: p, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d }, { conditions: q, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d }, { endpoint: { url: j, properties: m, headers: m }, type: e }], type: f }, { conditions: [{ [t]: b, [u]: r }], rules: [{ conditions: [{ [t]: "aws.partition", [u]: r, assign: g }], rules: [{ conditions: [k, l], rules: [{ conditions: [{ [t]: c, [u]: [a, n] }, o], rules: [{ endpoint: { url: "https://groundstation-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m, headers: m }, type: e }], type: f }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d }], type: f }, { conditions: p, rules: [{ conditions: [{ [t]: c, [u]: [n, a] }], rules: [{ endpoint: { url: "https://groundstation-fips.{Region}.{PartitionResult#dnsSuffix}", properties: m, headers: m }, type: e }], type: f }, { error: "FIPS is enabled but this partition does not support FIPS", type: d }], type: f }, { conditions: q, rules: [{ conditions: [o], rules: [{ endpoint: { url: "https://groundstation.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m, headers: m }, type: e }], type: f }, { error: "DualStack is enabled but this partition does not support DualStack", type: d }], type: f }, { endpoint: { url: "https://groundstation.{Region}.{PartitionResult#dnsSuffix}", properties: m, headers: m }, type: e }], type: f }], type: f }, { error: "Invalid Configuration: Missing Region", type: d }] };
|
|
7
7
|
exports.ruleSet = _data;
|
|
@@ -187,6 +187,8 @@ var KmsKey;
|
|
|
187
187
|
return visitor.kmsKeyArn(value.kmsKeyArn);
|
|
188
188
|
if (value.kmsAliasArn !== undefined)
|
|
189
189
|
return visitor.kmsAliasArn(value.kmsAliasArn);
|
|
190
|
+
if (value.kmsAliasName !== undefined)
|
|
191
|
+
return visitor.kmsAliasName(value.kmsAliasName);
|
|
190
192
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
191
193
|
};
|
|
192
194
|
})(KmsKey = exports.KmsKey || (exports.KmsKey = {}));
|
|
@@ -4,6 +4,7 @@ exports.getRuntimeConfig = void 0;
|
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const package_json_1 = tslib_1.__importDefault(require("../package.json"));
|
|
6
6
|
const client_sts_1 = require("@aws-sdk/client-sts");
|
|
7
|
+
const core_1 = require("@aws-sdk/core");
|
|
7
8
|
const credential_provider_node_1 = require("@aws-sdk/credential-provider-node");
|
|
8
9
|
const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
|
|
9
10
|
const config_resolver_1 = require("@smithy/config-resolver");
|
|
@@ -22,6 +23,7 @@ const getRuntimeConfig = (config) => {
|
|
|
22
23
|
const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
|
|
23
24
|
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
24
25
|
const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
|
|
26
|
+
(0, core_1.emitWarningIfUnsupportedVersion)(process.version);
|
|
25
27
|
return {
|
|
26
28
|
...clientSharedValues,
|
|
27
29
|
...config,
|
|
@@ -6,17 +6,19 @@ const url_parser_1 = require("@smithy/url-parser");
|
|
|
6
6
|
const util_base64_1 = require("@smithy/util-base64");
|
|
7
7
|
const util_utf8_1 = require("@smithy/util-utf8");
|
|
8
8
|
const endpointResolver_1 = require("./endpoint/endpointResolver");
|
|
9
|
-
const getRuntimeConfig = (config) =>
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
9
|
+
const getRuntimeConfig = (config) => {
|
|
10
|
+
return {
|
|
11
|
+
apiVersion: "2019-05-23",
|
|
12
|
+
base64Decoder: config?.base64Decoder ?? util_base64_1.fromBase64,
|
|
13
|
+
base64Encoder: config?.base64Encoder ?? util_base64_1.toBase64,
|
|
14
|
+
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
15
|
+
endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,
|
|
16
|
+
extensions: config?.extensions ?? [],
|
|
17
|
+
logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
|
|
18
|
+
serviceId: config?.serviceId ?? "GroundStation",
|
|
19
|
+
urlParser: config?.urlParser ?? url_parser_1.parseUrl,
|
|
20
|
+
utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
|
|
21
|
+
utf8Encoder: config?.utf8Encoder ?? util_utf8_1.toUtf8,
|
|
22
|
+
};
|
|
23
|
+
};
|
|
22
24
|
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
2
|
-
const a = "isSet",
|
|
3
|
-
const _data = { version: "1.0", parameters: { Region:
|
|
1
|
+
const s = "required", t = "fn", u = "argv", v = "ref";
|
|
2
|
+
const a = true, b = "isSet", c = "booleanEquals", d = "error", e = "endpoint", f = "tree", g = "PartitionResult", h = { [s]: false, "type": "String" }, i = { [s]: true, "default": false, "type": "Boolean" }, j = { [v]: "Endpoint" }, k = { [t]: c, [u]: [{ [v]: "UseFIPS" }, true] }, l = { [t]: c, [u]: [{ [v]: "UseDualStack" }, true] }, m = {}, n = { [t]: "getAttr", [u]: [{ [v]: g }, "supportsFIPS"] }, o = { [t]: c, [u]: [true, { [t]: "getAttr", [u]: [{ [v]: g }, "supportsDualStack"] }] }, p = [k], q = [l], r = [{ [v]: "Region" }];
|
|
3
|
+
const _data = { version: "1.0", parameters: { Region: h, UseDualStack: i, UseFIPS: i, Endpoint: h }, rules: [{ conditions: [{ [t]: b, [u]: [j] }], rules: [{ conditions: p, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d }, { conditions: q, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d }, { endpoint: { url: j, properties: m, headers: m }, type: e }], type: f }, { conditions: [{ [t]: b, [u]: r }], rules: [{ conditions: [{ [t]: "aws.partition", [u]: r, assign: g }], rules: [{ conditions: [k, l], rules: [{ conditions: [{ [t]: c, [u]: [a, n] }, o], rules: [{ endpoint: { url: "https://groundstation-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m, headers: m }, type: e }], type: f }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d }], type: f }, { conditions: p, rules: [{ conditions: [{ [t]: c, [u]: [n, a] }], rules: [{ endpoint: { url: "https://groundstation-fips.{Region}.{PartitionResult#dnsSuffix}", properties: m, headers: m }, type: e }], type: f }, { error: "FIPS is enabled but this partition does not support FIPS", type: d }], type: f }, { conditions: q, rules: [{ conditions: [o], rules: [{ endpoint: { url: "https://groundstation.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m, headers: m }, type: e }], type: f }, { error: "DualStack is enabled but this partition does not support DualStack", type: d }], type: f }, { endpoint: { url: "https://groundstation.{Region}.{PartitionResult#dnsSuffix}", properties: m, headers: m }, type: e }], type: f }], type: f }, { error: "Invalid Configuration: Missing Region", type: d }] };
|
|
4
4
|
export const ruleSet = _data;
|
|
@@ -180,6 +180,8 @@ export var KmsKey;
|
|
|
180
180
|
return visitor.kmsKeyArn(value.kmsKeyArn);
|
|
181
181
|
if (value.kmsAliasArn !== undefined)
|
|
182
182
|
return visitor.kmsAliasArn(value.kmsAliasArn);
|
|
183
|
+
if (value.kmsAliasName !== undefined)
|
|
184
|
+
return visitor.kmsAliasName(value.kmsAliasName);
|
|
183
185
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
184
186
|
};
|
|
185
187
|
})(KmsKey || (KmsKey = {}));
|
package/dist-es/runtimeConfig.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import packageInfo from "../package.json";
|
|
2
2
|
import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
|
|
3
|
+
import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core";
|
|
3
4
|
import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
|
|
4
5
|
import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
|
|
5
6
|
import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@smithy/config-resolver";
|
|
@@ -18,6 +19,7 @@ export const getRuntimeConfig = (config) => {
|
|
|
18
19
|
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
19
20
|
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
|
20
21
|
const clientSharedValues = getSharedRuntimeConfig(config);
|
|
22
|
+
awsCheckVersion(process.version);
|
|
21
23
|
return {
|
|
22
24
|
...clientSharedValues,
|
|
23
25
|
...config,
|
|
@@ -3,16 +3,18 @@ import { parseUrl } from "@smithy/url-parser";
|
|
|
3
3
|
import { fromBase64, toBase64 } from "@smithy/util-base64";
|
|
4
4
|
import { fromUtf8, toUtf8 } from "@smithy/util-utf8";
|
|
5
5
|
import { defaultEndpointResolver } from "./endpoint/endpointResolver";
|
|
6
|
-
export const getRuntimeConfig = (config) =>
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
6
|
+
export const getRuntimeConfig = (config) => {
|
|
7
|
+
return {
|
|
8
|
+
apiVersion: "2019-05-23",
|
|
9
|
+
base64Decoder: config?.base64Decoder ?? fromBase64,
|
|
10
|
+
base64Encoder: config?.base64Encoder ?? toBase64,
|
|
11
|
+
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
12
|
+
endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
|
|
13
|
+
extensions: config?.extensions ?? [],
|
|
14
|
+
logger: config?.logger ?? new NoOpLogger(),
|
|
15
|
+
serviceId: config?.serviceId ?? "GroundStation",
|
|
16
|
+
urlParser: config?.urlParser ?? parseUrl,
|
|
17
|
+
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
18
|
+
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|
|
19
|
+
};
|
|
20
|
+
};
|
|
@@ -50,6 +50,7 @@ export interface CreateMissionProfileCommandOutput extends MissionProfileIdRespo
|
|
|
50
50
|
* streamsKmsKey: { // KmsKey Union: only one key present
|
|
51
51
|
* kmsKeyArn: "STRING_VALUE",
|
|
52
52
|
* kmsAliasArn: "STRING_VALUE",
|
|
53
|
+
* kmsAliasName: "STRING_VALUE",
|
|
53
54
|
* },
|
|
54
55
|
* streamsKmsRole: "STRING_VALUE",
|
|
55
56
|
* };
|
|
@@ -55,6 +55,7 @@ export interface GetMissionProfileCommandOutput extends GetMissionProfileRespons
|
|
|
55
55
|
* // streamsKmsKey: { // KmsKey Union: only one key present
|
|
56
56
|
* // kmsKeyArn: "STRING_VALUE",
|
|
57
57
|
* // kmsAliasArn: "STRING_VALUE",
|
|
58
|
+
* // kmsAliasName: "STRING_VALUE",
|
|
58
59
|
* // },
|
|
59
60
|
* // streamsKmsRole: "STRING_VALUE",
|
|
60
61
|
* // };
|
|
@@ -47,6 +47,7 @@ export interface UpdateMissionProfileCommandOutput extends MissionProfileIdRespo
|
|
|
47
47
|
* streamsKmsKey: { // KmsKey Union: only one key present
|
|
48
48
|
* kmsKeyArn: "STRING_VALUE",
|
|
49
49
|
* kmsAliasArn: "STRING_VALUE",
|
|
50
|
+
* kmsAliasName: "STRING_VALUE",
|
|
50
51
|
* },
|
|
51
52
|
* streamsKmsRole: "STRING_VALUE",
|
|
52
53
|
* };
|
|
@@ -1917,7 +1917,7 @@ export interface EphemerisIdResponse {
|
|
|
1917
1917
|
* @public
|
|
1918
1918
|
* <p>AWS Key Management Service (KMS) Key.</p>
|
|
1919
1919
|
*/
|
|
1920
|
-
export type KmsKey = KmsKey.KmsAliasArnMember | KmsKey.KmsKeyArnMember | KmsKey.$UnknownMember;
|
|
1920
|
+
export type KmsKey = KmsKey.KmsAliasArnMember | KmsKey.KmsAliasNameMember | KmsKey.KmsKeyArnMember | KmsKey.$UnknownMember;
|
|
1921
1921
|
/**
|
|
1922
1922
|
* @public
|
|
1923
1923
|
*/
|
|
@@ -1929,6 +1929,7 @@ export declare namespace KmsKey {
|
|
|
1929
1929
|
interface KmsKeyArnMember {
|
|
1930
1930
|
kmsKeyArn: string;
|
|
1931
1931
|
kmsAliasArn?: never;
|
|
1932
|
+
kmsAliasName?: never;
|
|
1932
1933
|
$unknown?: never;
|
|
1933
1934
|
}
|
|
1934
1935
|
/**
|
|
@@ -1938,6 +1939,17 @@ export declare namespace KmsKey {
|
|
|
1938
1939
|
interface KmsAliasArnMember {
|
|
1939
1940
|
kmsKeyArn?: never;
|
|
1940
1941
|
kmsAliasArn: string;
|
|
1942
|
+
kmsAliasName?: never;
|
|
1943
|
+
$unknown?: never;
|
|
1944
|
+
}
|
|
1945
|
+
/**
|
|
1946
|
+
* @public
|
|
1947
|
+
* <p>KMS Alias Name.</p>
|
|
1948
|
+
*/
|
|
1949
|
+
interface KmsAliasNameMember {
|
|
1950
|
+
kmsKeyArn?: never;
|
|
1951
|
+
kmsAliasArn?: never;
|
|
1952
|
+
kmsAliasName: string;
|
|
1941
1953
|
$unknown?: never;
|
|
1942
1954
|
}
|
|
1943
1955
|
/**
|
|
@@ -1946,11 +1958,13 @@ export declare namespace KmsKey {
|
|
|
1946
1958
|
interface $UnknownMember {
|
|
1947
1959
|
kmsKeyArn?: never;
|
|
1948
1960
|
kmsAliasArn?: never;
|
|
1961
|
+
kmsAliasName?: never;
|
|
1949
1962
|
$unknown: [string, any];
|
|
1950
1963
|
}
|
|
1951
1964
|
interface Visitor<T> {
|
|
1952
1965
|
kmsKeyArn: (value: string) => T;
|
|
1953
1966
|
kmsAliasArn: (value: string) => T;
|
|
1967
|
+
kmsAliasName: (value: string) => T;
|
|
1954
1968
|
_: (name: string, value: any) => T;
|
|
1955
1969
|
}
|
|
1956
1970
|
const visit: <T>(value: KmsKey, visitor: Visitor<T>) => T;
|
|
@@ -636,27 +636,38 @@ export interface EphemerisIdResponse {
|
|
|
636
636
|
}
|
|
637
637
|
export type KmsKey =
|
|
638
638
|
| KmsKey.KmsAliasArnMember
|
|
639
|
+
| KmsKey.KmsAliasNameMember
|
|
639
640
|
| KmsKey.KmsKeyArnMember
|
|
640
641
|
| KmsKey.$UnknownMember;
|
|
641
642
|
export declare namespace KmsKey {
|
|
642
643
|
interface KmsKeyArnMember {
|
|
643
644
|
kmsKeyArn: string;
|
|
644
645
|
kmsAliasArn?: never;
|
|
646
|
+
kmsAliasName?: never;
|
|
645
647
|
$unknown?: never;
|
|
646
648
|
}
|
|
647
649
|
interface KmsAliasArnMember {
|
|
648
650
|
kmsKeyArn?: never;
|
|
649
651
|
kmsAliasArn: string;
|
|
652
|
+
kmsAliasName?: never;
|
|
653
|
+
$unknown?: never;
|
|
654
|
+
}
|
|
655
|
+
interface KmsAliasNameMember {
|
|
656
|
+
kmsKeyArn?: never;
|
|
657
|
+
kmsAliasArn?: never;
|
|
658
|
+
kmsAliasName: string;
|
|
650
659
|
$unknown?: never;
|
|
651
660
|
}
|
|
652
661
|
interface $UnknownMember {
|
|
653
662
|
kmsKeyArn?: never;
|
|
654
663
|
kmsAliasArn?: never;
|
|
664
|
+
kmsAliasName?: never;
|
|
655
665
|
$unknown: [string, any];
|
|
656
666
|
}
|
|
657
667
|
interface Visitor<T> {
|
|
658
668
|
kmsKeyArn: (value: string) => T;
|
|
659
669
|
kmsAliasArn: (value: string) => T;
|
|
670
|
+
kmsAliasName: (value: string) => T;
|
|
660
671
|
_: (name: string, value: any) => T;
|
|
661
672
|
}
|
|
662
673
|
const visit: <T>(value: KmsKey, visitor: Visitor<T>) => T;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-groundstation",
|
|
3
3
|
"description": "AWS SDK for JavaScript Groundstation Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.436.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
25
|
-
"@aws-sdk/core": "3.
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
+
"@aws-sdk/client-sts": "3.436.0",
|
|
25
|
+
"@aws-sdk/core": "3.436.0",
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.436.0",
|
|
27
27
|
"@aws-sdk/middleware-host-header": "3.433.0",
|
|
28
28
|
"@aws-sdk/middleware-logger": "3.433.0",
|
|
29
29
|
"@aws-sdk/middleware-recursion-detection": "3.433.0",
|