@sphereon/ssi-sdk.kms-rest-client 0.34.1-feature.IDK.11.48 → 0.34.1-feature.IDK.11.50
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/index.cjs +1056 -1185
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1137 -17
- package/dist/index.d.ts +1137 -17
- package/dist/index.js +1049 -1179
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/plugin.schema.json +38 -157
- package/src/agent/KmsRestClient.ts +19 -20
- package/src/index.ts +1 -1
- package/src/models/AwsAssumeRoleCredentials.ts +49 -57
- package/src/models/AwsClientConfiguration.ts +29 -32
- package/src/models/AwsKmsSetting.ts +71 -85
- package/src/models/AwsStaticCredentials.ts +49 -57
- package/src/models/AwsWebIdentityTokenCredentials.ts +50 -58
- package/src/models/AzureClientSecretCredentialOpts.ts +45 -50
- package/src/models/AzureCredentialOpts.ts +24 -29
- package/src/models/AzureKeyVaultSetting.ts +60 -71
- package/src/models/CoseKey.ts +96 -104
- package/src/models/CoseKeyPair.ts +32 -38
- package/src/models/CoseKeyType.ts +18 -21
- package/src/models/CreateKeyProvider.ts +60 -74
- package/src/models/CreateRawSignature.ts +33 -39
- package/src/models/CreateRawSignatureResponse.ts +22 -25
- package/src/models/CreateSimpleSignature.ts +45 -59
- package/src/models/CryptoAlg.ts +18 -21
- package/src/models/Curve.ts +22 -25
- package/src/models/DigestAlg.ts +21 -24
- package/src/models/ErrorResponse.ts +39 -42
- package/src/models/GenerateKey.ts +51 -65
- package/src/models/GenerateKeyGlobal.ts +59 -73
- package/src/models/GenerateKeyResponse.ts +24 -30
- package/src/models/GetKeyResponse.ts +24 -30
- package/src/models/IdentifierMethod.ts +19 -22
- package/src/models/JoseKeyPair.ts +32 -38
- package/src/models/Jwk.ts +190 -207
- package/src/models/JwkKeyType.ts +18 -21
- package/src/models/JwkUse.ts +16 -19
- package/src/models/KeyEncoding.ts +16 -19
- package/src/models/KeyInfo.ts +103 -123
- package/src/models/KeyOperations.ts +22 -25
- package/src/models/KeyProvider.ts +33 -41
- package/src/models/KeyProviderResponse.ts +33 -41
- package/src/models/KeyProviderType.ts +17 -20
- package/src/models/KeyResolver.ts +44 -51
- package/src/models/KeyType.ts +17 -20
- package/src/models/KeyVisibility.ts +16 -19
- package/src/models/ListKeyProvidersResponse.ts +24 -30
- package/src/models/ListKeysResponse.ts +24 -30
- package/src/models/ListResolversResponse.ts +24 -30
- package/src/models/LookupMode.ts +17 -20
- package/src/models/ManagedKeyInfo.ts +106 -126
- package/src/models/ManagedKeyPair.ts +61 -70
- package/src/models/MaskGenFunction.ts +15 -18
- package/src/models/ProviderCapabilities.ts +65 -81
- package/src/models/ResolvePublicKey.ts +50 -61
- package/src/models/ResolvedKeyInfo.ts +104 -124
- package/src/models/Resolver.ts +44 -51
- package/src/models/SignInput.ts +42 -47
- package/src/models/SignOutput.ts +32 -38
- package/src/models/Signature.ts +51 -62
- package/src/models/SignatureAlgorithm.ts +26 -29
- package/src/models/StoreKey.ts +32 -38
- package/src/models/StoreKeyResponse.ts +24 -30
- package/src/models/UpdateKeyProvider.ts +49 -58
- package/src/models/VerifyRawSignature.ts +42 -48
- package/src/models/VerifyRawSignatureResponse.ts +22 -25
- package/src/models/VerifySimpleSignature.ts +35 -44
- package/src/models/index.ts +58 -58
- package/src/types/IKmsRestClient.ts +2 -2
|
@@ -12,11 +12,8 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
import type { LookupMode } from './LookupMode'
|
|
16
|
-
import {
|
|
17
|
-
LookupModeFromJSON,
|
|
18
|
-
LookupModeToJSON,
|
|
19
|
-
} from './LookupMode';
|
|
15
|
+
import type { LookupMode } from './LookupMode'
|
|
16
|
+
import { LookupModeFromJSON, LookupModeToJSON } from './LookupMode'
|
|
20
17
|
|
|
21
18
|
/**
|
|
22
19
|
* Credentials obtained by assuming an IAM role.
|
|
@@ -24,75 +21,70 @@ import {
|
|
|
24
21
|
* @interface AwsAssumeRoleCredentials
|
|
25
22
|
*/
|
|
26
23
|
export interface AwsAssumeRoleCredentials {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
24
|
+
/**
|
|
25
|
+
* The Amazon Resource Name (ARN) of the role to assume.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof AwsAssumeRoleCredentials
|
|
28
|
+
*/
|
|
29
|
+
roleArn: string
|
|
30
|
+
/**
|
|
31
|
+
* An identifier for the assumed role session. Use characters compatible with file systems.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof AwsAssumeRoleCredentials
|
|
34
|
+
*/
|
|
35
|
+
roleSessionName: string
|
|
36
|
+
/**
|
|
37
|
+
* An optional external ID that might be required by the role's trust policy.
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof AwsAssumeRoleCredentials
|
|
40
|
+
*/
|
|
41
|
+
externalId?: string
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {LookupMode}
|
|
45
|
+
* @memberof AwsAssumeRoleCredentials
|
|
46
|
+
*/
|
|
47
|
+
lookupMode?: LookupMode
|
|
51
48
|
}
|
|
52
49
|
|
|
53
|
-
|
|
54
|
-
|
|
55
50
|
/**
|
|
56
51
|
* Check if a given object implements the AwsAssumeRoleCredentials interface.
|
|
57
52
|
*/
|
|
58
53
|
export function instanceOfAwsAssumeRoleCredentials(value: object): value is AwsAssumeRoleCredentials {
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
54
|
+
if (!('roleArn' in value) || value['roleArn'] === undefined) return false
|
|
55
|
+
if (!('roleSessionName' in value) || value['roleSessionName'] === undefined) return false
|
|
56
|
+
return true
|
|
62
57
|
}
|
|
63
58
|
|
|
64
59
|
export function AwsAssumeRoleCredentialsFromJSON(json: any): AwsAssumeRoleCredentials {
|
|
65
|
-
|
|
60
|
+
return AwsAssumeRoleCredentialsFromJSONTyped(json, false)
|
|
66
61
|
}
|
|
67
62
|
|
|
68
63
|
export function AwsAssumeRoleCredentialsFromJSONTyped(json: any, ignoreDiscriminator: boolean): AwsAssumeRoleCredentials {
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
};
|
|
64
|
+
if (json == null) {
|
|
65
|
+
return json
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
roleArn: json['roleArn'],
|
|
69
|
+
roleSessionName: json['roleSessionName'],
|
|
70
|
+
externalId: json['externalId'] == null ? undefined : json['externalId'],
|
|
71
|
+
lookupMode: json['lookupMode'] == null ? undefined : LookupModeFromJSON(json['lookupMode']),
|
|
72
|
+
}
|
|
79
73
|
}
|
|
80
74
|
|
|
81
75
|
export function AwsAssumeRoleCredentialsToJSON(json: any): AwsAssumeRoleCredentials {
|
|
82
|
-
|
|
76
|
+
return AwsAssumeRoleCredentialsToJSONTyped(json, false)
|
|
83
77
|
}
|
|
84
78
|
|
|
85
79
|
export function AwsAssumeRoleCredentialsToJSONTyped(value?: AwsAssumeRoleCredentials | null, ignoreDiscriminator: boolean = false): any {
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
80
|
+
if (value == null) {
|
|
81
|
+
return value
|
|
82
|
+
}
|
|
89
83
|
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
};
|
|
84
|
+
return {
|
|
85
|
+
roleArn: value['roleArn'],
|
|
86
|
+
roleSessionName: value['roleSessionName'],
|
|
87
|
+
externalId: value['externalId'],
|
|
88
|
+
lookupMode: LookupModeToJSON(value['lookupMode']),
|
|
89
|
+
}
|
|
97
90
|
}
|
|
98
|
-
|
|
@@ -18,55 +18,52 @@
|
|
|
18
18
|
* @interface AwsClientConfiguration
|
|
19
19
|
*/
|
|
20
20
|
export interface AwsClientConfiguration {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
21
|
+
/**
|
|
22
|
+
* Amount of time (in milliseconds) to wait when initially establishing a connection before giving up.
|
|
23
|
+
* @type {number}
|
|
24
|
+
* @memberof AwsClientConfiguration
|
|
25
|
+
*/
|
|
26
|
+
connectionTimeoutInMillis?: number
|
|
27
|
+
/**
|
|
28
|
+
* Amount of time (in milliseconds) to wait for data to be transferred over an established, open connection before timing out.
|
|
29
|
+
* @type {number}
|
|
30
|
+
* @memberof AwsClientConfiguration
|
|
31
|
+
*/
|
|
32
|
+
socketTimeoutInMillis?: number
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
/**
|
|
36
36
|
* Check if a given object implements the AwsClientConfiguration interface.
|
|
37
37
|
*/
|
|
38
38
|
export function instanceOfAwsClientConfiguration(value: object): value is AwsClientConfiguration {
|
|
39
|
-
|
|
39
|
+
return true
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
export function AwsClientConfigurationFromJSON(json: any): AwsClientConfiguration {
|
|
43
|
-
|
|
43
|
+
return AwsClientConfigurationFromJSONTyped(json, false)
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
export function AwsClientConfigurationFromJSONTyped(json: any, ignoreDiscriminator: boolean): AwsClientConfiguration {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
};
|
|
47
|
+
if (json == null) {
|
|
48
|
+
return json
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
connectionTimeoutInMillis: json['connectionTimeoutInMillis'] == null ? undefined : json['connectionTimeoutInMillis'],
|
|
52
|
+
socketTimeoutInMillis: json['socketTimeoutInMillis'] == null ? undefined : json['socketTimeoutInMillis'],
|
|
53
|
+
}
|
|
55
54
|
}
|
|
56
55
|
|
|
57
56
|
export function AwsClientConfigurationToJSON(json: any): AwsClientConfiguration {
|
|
58
|
-
|
|
57
|
+
return AwsClientConfigurationToJSONTyped(json, false)
|
|
59
58
|
}
|
|
60
59
|
|
|
61
60
|
export function AwsClientConfigurationToJSONTyped(value?: AwsClientConfiguration | null, ignoreDiscriminator: boolean = false): any {
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
return {
|
|
61
|
+
if (value == null) {
|
|
62
|
+
return value
|
|
63
|
+
}
|
|
67
64
|
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
65
|
+
return {
|
|
66
|
+
connectionTimeoutInMillis: value['connectionTimeoutInMillis'],
|
|
67
|
+
socketTimeoutInMillis: value['socketTimeoutInMillis'],
|
|
68
|
+
}
|
|
71
69
|
}
|
|
72
|
-
|
|
@@ -12,26 +12,14 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
import type { AwsAssumeRoleCredentials } from './AwsAssumeRoleCredentials'
|
|
16
|
-
import {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
} from './
|
|
20
|
-
import
|
|
21
|
-
import {
|
|
22
|
-
|
|
23
|
-
AwsStaticCredentialsToJSON,
|
|
24
|
-
} from './AwsStaticCredentials';
|
|
25
|
-
import type { AwsWebIdentityTokenCredentials } from './AwsWebIdentityTokenCredentials';
|
|
26
|
-
import {
|
|
27
|
-
AwsWebIdentityTokenCredentialsFromJSON,
|
|
28
|
-
AwsWebIdentityTokenCredentialsToJSON,
|
|
29
|
-
} from './AwsWebIdentityTokenCredentials';
|
|
30
|
-
import type { AwsClientConfiguration } from './AwsClientConfiguration';
|
|
31
|
-
import {
|
|
32
|
-
AwsClientConfigurationFromJSON,
|
|
33
|
-
AwsClientConfigurationToJSON,
|
|
34
|
-
} from './AwsClientConfiguration';
|
|
15
|
+
import type { AwsAssumeRoleCredentials } from './AwsAssumeRoleCredentials'
|
|
16
|
+
import { AwsAssumeRoleCredentialsFromJSON, AwsAssumeRoleCredentialsToJSON } from './AwsAssumeRoleCredentials'
|
|
17
|
+
import type { AwsStaticCredentials } from './AwsStaticCredentials'
|
|
18
|
+
import { AwsStaticCredentialsFromJSON, AwsStaticCredentialsToJSON } from './AwsStaticCredentials'
|
|
19
|
+
import type { AwsWebIdentityTokenCredentials } from './AwsWebIdentityTokenCredentials'
|
|
20
|
+
import { AwsWebIdentityTokenCredentialsFromJSON, AwsWebIdentityTokenCredentialsToJSON } from './AwsWebIdentityTokenCredentials'
|
|
21
|
+
import type { AwsClientConfiguration } from './AwsClientConfiguration'
|
|
22
|
+
import { AwsClientConfigurationFromJSON, AwsClientConfigurationToJSON } from './AwsClientConfiguration'
|
|
35
23
|
|
|
36
24
|
/**
|
|
37
25
|
* Configuration settings specific to the AWS_KMS provider type. Defines how to connect and authenticate to AWS KMS. If no specific credential provider is specified, the implementation should rely on the default AWS SDK credential provider chain.
|
|
@@ -39,88 +27,86 @@ import {
|
|
|
39
27
|
* @interface AwsKmsSetting
|
|
40
28
|
*/
|
|
41
29
|
export interface AwsKmsSetting {
|
|
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
|
-
|
|
30
|
+
/**
|
|
31
|
+
* The AWS region where the KMS keys reside (e.g., 'us-east-1', 'eu-west-1').
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof AwsKmsSetting
|
|
34
|
+
*/
|
|
35
|
+
region: string
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {AwsStaticCredentials}
|
|
39
|
+
* @memberof AwsKmsSetting
|
|
40
|
+
*/
|
|
41
|
+
staticCredentials?: AwsStaticCredentials
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {AwsAssumeRoleCredentials}
|
|
45
|
+
* @memberof AwsKmsSetting
|
|
46
|
+
*/
|
|
47
|
+
assumeRoleCredentials?: AwsAssumeRoleCredentials
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {AwsWebIdentityTokenCredentials}
|
|
51
|
+
* @memberof AwsKmsSetting
|
|
52
|
+
*/
|
|
53
|
+
webIdentityTokenCredentials?: AwsWebIdentityTokenCredentials
|
|
54
|
+
/**
|
|
55
|
+
* Optional custom endpoint URL for AWS KMS (e.g., for VPC endpoints or local testing).
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof AwsKmsSetting
|
|
58
|
+
*/
|
|
59
|
+
endpointUrl?: string
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {AwsClientConfiguration}
|
|
63
|
+
* @memberof AwsKmsSetting
|
|
64
|
+
*/
|
|
65
|
+
clientConfiguration?: AwsClientConfiguration
|
|
78
66
|
}
|
|
79
67
|
|
|
80
68
|
/**
|
|
81
69
|
* Check if a given object implements the AwsKmsSetting interface.
|
|
82
70
|
*/
|
|
83
71
|
export function instanceOfAwsKmsSetting(value: object): value is AwsKmsSetting {
|
|
84
|
-
|
|
85
|
-
|
|
72
|
+
if (!('region' in value) || value['region'] === undefined) return false
|
|
73
|
+
return true
|
|
86
74
|
}
|
|
87
75
|
|
|
88
76
|
export function AwsKmsSettingFromJSON(json: any): AwsKmsSetting {
|
|
89
|
-
|
|
77
|
+
return AwsKmsSettingFromJSONTyped(json, false)
|
|
90
78
|
}
|
|
91
79
|
|
|
92
80
|
export function AwsKmsSettingFromJSONTyped(json: any, ignoreDiscriminator: boolean): AwsKmsSetting {
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
81
|
+
if (json == null) {
|
|
82
|
+
return json
|
|
83
|
+
}
|
|
84
|
+
return {
|
|
85
|
+
region: json['region'],
|
|
86
|
+
staticCredentials: json['staticCredentials'] == null ? undefined : AwsStaticCredentialsFromJSON(json['staticCredentials']),
|
|
87
|
+
assumeRoleCredentials: json['assumeRoleCredentials'] == null ? undefined : AwsAssumeRoleCredentialsFromJSON(json['assumeRoleCredentials']),
|
|
88
|
+
webIdentityTokenCredentials:
|
|
89
|
+
json['webIdentityTokenCredentials'] == null ? undefined : AwsWebIdentityTokenCredentialsFromJSON(json['webIdentityTokenCredentials']),
|
|
90
|
+
endpointUrl: json['endpointUrl'] == null ? undefined : json['endpointUrl'],
|
|
91
|
+
clientConfiguration: json['clientConfiguration'] == null ? undefined : AwsClientConfigurationFromJSON(json['clientConfiguration']),
|
|
92
|
+
}
|
|
105
93
|
}
|
|
106
94
|
|
|
107
95
|
export function AwsKmsSettingToJSON(json: any): AwsKmsSetting {
|
|
108
|
-
|
|
96
|
+
return AwsKmsSettingToJSONTyped(json, false)
|
|
109
97
|
}
|
|
110
98
|
|
|
111
99
|
export function AwsKmsSettingToJSONTyped(value?: AwsKmsSetting | null, ignoreDiscriminator: boolean = false): any {
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
return {
|
|
100
|
+
if (value == null) {
|
|
101
|
+
return value
|
|
102
|
+
}
|
|
117
103
|
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
104
|
+
return {
|
|
105
|
+
region: value['region'],
|
|
106
|
+
staticCredentials: AwsStaticCredentialsToJSON(value['staticCredentials']),
|
|
107
|
+
assumeRoleCredentials: AwsAssumeRoleCredentialsToJSON(value['assumeRoleCredentials']),
|
|
108
|
+
webIdentityTokenCredentials: AwsWebIdentityTokenCredentialsToJSON(value['webIdentityTokenCredentials']),
|
|
109
|
+
endpointUrl: value['endpointUrl'],
|
|
110
|
+
clientConfiguration: AwsClientConfigurationToJSON(value['clientConfiguration']),
|
|
111
|
+
}
|
|
125
112
|
}
|
|
126
|
-
|
|
@@ -12,11 +12,8 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
import type { LookupMode } from './LookupMode'
|
|
16
|
-
import {
|
|
17
|
-
LookupModeFromJSON,
|
|
18
|
-
LookupModeToJSON,
|
|
19
|
-
} from './LookupMode';
|
|
15
|
+
import type { LookupMode } from './LookupMode'
|
|
16
|
+
import { LookupModeFromJSON, LookupModeToJSON } from './LookupMode'
|
|
20
17
|
|
|
21
18
|
/**
|
|
22
19
|
* Explicit AWS access key ID and secret access key. Use with caution; prefer IAM roles or other mechanisms where possible.
|
|
@@ -24,75 +21,70 @@ import {
|
|
|
24
21
|
* @interface AwsStaticCredentials
|
|
25
22
|
*/
|
|
26
23
|
export interface AwsStaticCredentials {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
24
|
+
/**
|
|
25
|
+
* AWS Access Key ID.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof AwsStaticCredentials
|
|
28
|
+
*/
|
|
29
|
+
accesskid: string
|
|
30
|
+
/**
|
|
31
|
+
* AWS Secret Access Key.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof AwsStaticCredentials
|
|
34
|
+
*/
|
|
35
|
+
secretAccessKey: string
|
|
36
|
+
/**
|
|
37
|
+
* Optional AWS session token, typically used with temporary credentials.
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof AwsStaticCredentials
|
|
40
|
+
*/
|
|
41
|
+
sessionToken?: string
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {LookupMode}
|
|
45
|
+
* @memberof AwsStaticCredentials
|
|
46
|
+
*/
|
|
47
|
+
lookupMode?: LookupMode
|
|
51
48
|
}
|
|
52
49
|
|
|
53
|
-
|
|
54
|
-
|
|
55
50
|
/**
|
|
56
51
|
* Check if a given object implements the AwsStaticCredentials interface.
|
|
57
52
|
*/
|
|
58
53
|
export function instanceOfAwsStaticCredentials(value: object): value is AwsStaticCredentials {
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
54
|
+
if (!('accesskid' in value) || value['accesskid'] === undefined) return false
|
|
55
|
+
if (!('secretAccessKey' in value) || value['secretAccessKey'] === undefined) return false
|
|
56
|
+
return true
|
|
62
57
|
}
|
|
63
58
|
|
|
64
59
|
export function AwsStaticCredentialsFromJSON(json: any): AwsStaticCredentials {
|
|
65
|
-
|
|
60
|
+
return AwsStaticCredentialsFromJSONTyped(json, false)
|
|
66
61
|
}
|
|
67
62
|
|
|
68
63
|
export function AwsStaticCredentialsFromJSONTyped(json: any, ignoreDiscriminator: boolean): AwsStaticCredentials {
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
};
|
|
64
|
+
if (json == null) {
|
|
65
|
+
return json
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
accesskid: json['accesskid'],
|
|
69
|
+
secretAccessKey: json['secretAccessKey'],
|
|
70
|
+
sessionToken: json['sessionToken'] == null ? undefined : json['sessionToken'],
|
|
71
|
+
lookupMode: json['lookupMode'] == null ? undefined : LookupModeFromJSON(json['lookupMode']),
|
|
72
|
+
}
|
|
79
73
|
}
|
|
80
74
|
|
|
81
75
|
export function AwsStaticCredentialsToJSON(json: any): AwsStaticCredentials {
|
|
82
|
-
|
|
76
|
+
return AwsStaticCredentialsToJSONTyped(json, false)
|
|
83
77
|
}
|
|
84
78
|
|
|
85
79
|
export function AwsStaticCredentialsToJSONTyped(value?: AwsStaticCredentials | null, ignoreDiscriminator: boolean = false): any {
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
80
|
+
if (value == null) {
|
|
81
|
+
return value
|
|
82
|
+
}
|
|
89
83
|
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
};
|
|
84
|
+
return {
|
|
85
|
+
accesskid: value['accesskid'],
|
|
86
|
+
secretAccessKey: value['secretAccessKey'],
|
|
87
|
+
sessionToken: value['sessionToken'],
|
|
88
|
+
lookupMode: LookupModeToJSON(value['lookupMode']),
|
|
89
|
+
}
|
|
97
90
|
}
|
|
98
|
-
|