@aws-sdk/client-account-access-runtime 0.0.0-stage → 3.1163.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 (82) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +194 -2
  3. package/dist-cjs/index.js +517 -0
  4. package/dist-es/AccountAccessRuntime.js +15 -0
  5. package/dist-es/AccountAccessRuntimeClient.js +47 -0
  6. package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
  7. package/dist-es/auth/httpAuthSchemeProvider.js +36 -0
  8. package/dist-es/commandBuilder.js +6 -0
  9. package/dist-es/commands/GetRoleCredentialsCommand.js +4 -0
  10. package/dist-es/commands/ListRolesCommand.js +4 -0
  11. package/dist-es/commands/index.js +2 -0
  12. package/dist-es/endpoint/EndpointParameters.js +11 -0
  13. package/dist-es/endpoint/bdd.js +29 -0
  14. package/dist-es/endpoint/endpointResolver.js +14 -0
  15. package/dist-es/extensionConfiguration.js +1 -0
  16. package/dist-es/index.js +10 -0
  17. package/dist-es/models/AccountAccessRuntimeServiceException.js +9 -0
  18. package/dist-es/models/enums.js +3 -0
  19. package/dist-es/models/errors.js +66 -0
  20. package/dist-es/models/models_0.js +1 -0
  21. package/dist-es/pagination/Interfaces.js +1 -0
  22. package/dist-es/pagination/ListRolesPaginator.js +4 -0
  23. package/dist-es/pagination/index.js +2 -0
  24. package/dist-es/runtimeConfig.browser.js +28 -0
  25. package/dist-es/runtimeConfig.js +53 -0
  26. package/dist-es/runtimeConfig.native.js +9 -0
  27. package/dist-es/runtimeConfig.shared.js +40 -0
  28. package/dist-es/runtimeExtensions.js +9 -0
  29. package/dist-es/schemas/schemas_0.js +125 -0
  30. package/dist-types/AccountAccessRuntime.d.ts +37 -0
  31. package/dist-types/AccountAccessRuntimeClient.d.ts +183 -0
  32. package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
  33. package/dist-types/auth/httpAuthSchemeProvider.d.ts +81 -0
  34. package/dist-types/commandBuilder.d.ts +18 -0
  35. package/dist-types/commands/GetRoleCredentialsCommand.d.ts +97 -0
  36. package/dist-types/commands/ListRolesCommand.d.ts +92 -0
  37. package/dist-types/commands/index.d.ts +2 -0
  38. package/dist-types/endpoint/EndpointParameters.d.ts +44 -0
  39. package/dist-types/endpoint/bdd.d.ts +2 -0
  40. package/dist-types/endpoint/endpointResolver.d.ts +8 -0
  41. package/dist-types/extensionConfiguration.d.ts +9 -0
  42. package/dist-types/index.d.ts +18 -0
  43. package/dist-types/models/AccountAccessRuntimeServiceException.d.ts +15 -0
  44. package/dist-types/models/enums.d.ts +11 -0
  45. package/dist-types/models/errors.d.ts +67 -0
  46. package/dist-types/models/models_0.d.ts +156 -0
  47. package/dist-types/pagination/Interfaces.d.ts +8 -0
  48. package/dist-types/pagination/ListRolesPaginator.d.ts +7 -0
  49. package/dist-types/pagination/index.d.ts +2 -0
  50. package/dist-types/runtimeConfig.browser.d.ts +54 -0
  51. package/dist-types/runtimeConfig.d.ts +57 -0
  52. package/dist-types/runtimeConfig.native.d.ts +53 -0
  53. package/dist-types/runtimeConfig.shared.d.ts +34 -0
  54. package/dist-types/runtimeExtensions.d.ts +17 -0
  55. package/dist-types/schemas/schemas_0.d.ts +23 -0
  56. package/dist-types/ts3.4/AccountAccessRuntime.d.ts +53 -0
  57. package/dist-types/ts3.4/AccountAccessRuntimeClient.d.ts +106 -0
  58. package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +23 -0
  59. package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +40 -0
  60. package/dist-types/ts3.4/commandBuilder.d.ts +40 -0
  61. package/dist-types/ts3.4/commands/GetRoleCredentialsCommand.d.ts +39 -0
  62. package/dist-types/ts3.4/commands/ListRolesCommand.d.ts +38 -0
  63. package/dist-types/ts3.4/commands/index.d.ts +2 -0
  64. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +45 -0
  65. package/dist-types/ts3.4/endpoint/bdd.d.ts +2 -0
  66. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  67. package/dist-types/ts3.4/extensionConfiguration.d.ts +10 -0
  68. package/dist-types/ts3.4/index.d.ts +13 -0
  69. package/dist-types/ts3.4/models/AccountAccessRuntimeServiceException.d.ts +10 -0
  70. package/dist-types/ts3.4/models/enums.d.ts +4 -0
  71. package/dist-types/ts3.4/models/errors.d.ts +32 -0
  72. package/dist-types/ts3.4/models/models_0.d.ts +48 -0
  73. package/dist-types/ts3.4/pagination/Interfaces.d.ts +5 -0
  74. package/dist-types/ts3.4/pagination/ListRolesPaginator.d.ts +8 -0
  75. package/dist-types/ts3.4/pagination/index.d.ts +2 -0
  76. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +81 -0
  77. package/dist-types/ts3.4/runtimeConfig.d.ts +86 -0
  78. package/dist-types/ts3.4/runtimeConfig.native.d.ts +85 -0
  79. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +39 -0
  80. package/dist-types/ts3.4/runtimeExtensions.d.ts +11 -0
  81. package/dist-types/ts3.4/schemas/schemas_0.d.ts +23 -0
  82. package/package.json +67 -4
@@ -0,0 +1,67 @@
1
+ import type { ExceptionOptionType as __ExceptionOptionType } from "@smithy/core/client";
2
+ import { AccountAccessRuntimeServiceException as __BaseException } from "./AccountAccessRuntimeServiceException";
3
+ /**
4
+ * <p>You are authenticated but not authorized to perform the requested action, such as assuming a role that you aren't entitled to. This error returns an HTTP 403 status code.</p>
5
+ * @public
6
+ */
7
+ export declare class AccessDeniedException extends __BaseException {
8
+ static readonly shapeId: string;
9
+ readonly name: "AccessDeniedException";
10
+ readonly $fault: "client";
11
+ /**
12
+ * @internal
13
+ */
14
+ constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
15
+ }
16
+ /**
17
+ * <p>An internal server error occurred. Retry the request. If the problem persists, contact Amazon Web Services Support. This error returns an HTTP 500 status code.</p>
18
+ * @public
19
+ */
20
+ export declare class InternalServerException extends __BaseException {
21
+ static readonly shapeId: string;
22
+ readonly name: "InternalServerException";
23
+ readonly $fault: "server";
24
+ /**
25
+ * @internal
26
+ */
27
+ constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
28
+ }
29
+ /**
30
+ * <p>The request rate exceeded the allowed limit. Reduce your request rate, and then retry the request. This error returns an HTTP 429 status code.</p>
31
+ * @public
32
+ */
33
+ export declare class ThrottlingException extends __BaseException {
34
+ static readonly shapeId: string;
35
+ readonly name: "ThrottlingException";
36
+ readonly $fault: "client";
37
+ /**
38
+ * @internal
39
+ */
40
+ constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
41
+ }
42
+ /**
43
+ * <p>The bearer token is missing, invalid, or expired. Obtain a new token, and then retry the request. This error returns an HTTP 401 status code.</p>
44
+ * @public
45
+ */
46
+ export declare class UnauthorizedException extends __BaseException {
47
+ static readonly shapeId: string;
48
+ readonly name: "UnauthorizedException";
49
+ readonly $fault: "client";
50
+ /**
51
+ * @internal
52
+ */
53
+ constructor(opts: __ExceptionOptionType<UnauthorizedException, __BaseException>);
54
+ }
55
+ /**
56
+ * <p>The request is missing a required parameter, or a parameter value doesn't satisfy its constraints, such as its length or pattern. Correct the input, and then retry the request. This error returns an HTTP 400 status code.</p>
57
+ * @public
58
+ */
59
+ export declare class ValidationException extends __BaseException {
60
+ static readonly shapeId: string;
61
+ readonly name: "ValidationException";
62
+ readonly $fault: "client";
63
+ /**
64
+ * @internal
65
+ */
66
+ constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
67
+ }
@@ -0,0 +1,156 @@
1
+ import type { AccessType } from "./enums";
2
+ /**
3
+ * <p>Describes a role that you can access, including the Amazon Web Services account that contains the role and the role's ARN.</p>
4
+ * @public
5
+ */
6
+ export interface AccessDetails {
7
+ /**
8
+ * <p>The 12-digit identifier of the Amazon Web Services account that contains the role.</p>
9
+ * @public
10
+ */
11
+ accountId: string | undefined;
12
+ /**
13
+ * <p>The display name of the Amazon Web Services account, if available. This value can be absent when the account name can't be resolved.</p>
14
+ * @public
15
+ */
16
+ accountName?: string | undefined;
17
+ /**
18
+ * <p>The Amazon Resource Name (ARN) of the role that you can access.</p>
19
+ * @public
20
+ */
21
+ roleArn: string | undefined;
22
+ }
23
+ /**
24
+ * @public
25
+ */
26
+ export interface GetRoleCredentialsRequest {
27
+ /**
28
+ * <p>The identifier of the tenant that the request applies to. A tenant ID begins with <code>aa-</code> and is 3 to 24 characters long. It can contain lowercase letters, numbers, and hyphens.</p>
29
+ * @public
30
+ */
31
+ tenantId: string | undefined;
32
+ /**
33
+ * <p>The Amazon Resource Name (ARN) of the role to retrieve credentials for. You must be entitled to assume this role.</p>
34
+ * @public
35
+ */
36
+ roleArn: string | undefined;
37
+ /**
38
+ * <p>The type of access to request for the role. Specify <code>PROGRAMMATIC_ACCESS</code> to receive access key credentials for use with the CLI or an Amazon Web Services SDK.</p>
39
+ * @public
40
+ */
41
+ accessType: AccessType | undefined;
42
+ /**
43
+ * <p>An optional name for the role session. The name can be 2 to 64 characters and can contain alphanumeric characters and the following symbols: plus (+), equal (=), comma (,), period (.), at (@), and hyphen (-). The session name appears in CloudTrail logs for the assumed role session.</p>
44
+ * @public
45
+ */
46
+ sessionName?: string | undefined;
47
+ /**
48
+ * <p>The duration, in seconds, that the returned credentials remain valid. If you don't specify a value, the service uses the default session duration. The maximum value can't exceed the maximum session duration configured for the role.</p>
49
+ * @public
50
+ */
51
+ sessionDuration?: number | undefined;
52
+ }
53
+ /**
54
+ * <p>A set of temporary Amazon Web Services credentials for programmatic access. Treat these values as sensitive.</p>
55
+ * @public
56
+ */
57
+ export interface ProgrammaticAccessDetails {
58
+ /**
59
+ * <p>The access key ID for the temporary credentials.</p>
60
+ * @public
61
+ */
62
+ accessKeyId: string | undefined;
63
+ /**
64
+ * <p>The secret access key for the temporary credentials. Treat this value as a secret.</p>
65
+ * @public
66
+ */
67
+ secretAccessKey: string | undefined;
68
+ /**
69
+ * <p>The session token that you must include along with the access key ID and secret access key when you make requests with the temporary credentials.</p>
70
+ * @public
71
+ */
72
+ sessionToken: string | undefined;
73
+ /**
74
+ * <p>The date and time when the temporary credentials expire, after which they can no longer be used.</p>
75
+ * @public
76
+ */
77
+ expiresAt: Date | undefined;
78
+ }
79
+ /**
80
+ * <p>The temporary credentials returned for a role. Only one member is set, depending on the type of access that you requested.</p>
81
+ * @public
82
+ */
83
+ export type CredentialsDetails = CredentialsDetails.ProgrammaticAccessMember | CredentialsDetails.$UnknownMember;
84
+ /**
85
+ * @public
86
+ */
87
+ export declare namespace CredentialsDetails {
88
+ /**
89
+ * <p>The access key credentials returned for programmatic access with the CLI or an Amazon Web Services SDK.</p>
90
+ * @public
91
+ */
92
+ interface ProgrammaticAccessMember {
93
+ programmaticAccess: ProgrammaticAccessDetails;
94
+ $unknown?: never;
95
+ }
96
+ /**
97
+ * @public
98
+ */
99
+ interface $UnknownMember {
100
+ programmaticAccess?: never;
101
+ $unknown: [string, any];
102
+ }
103
+ /**
104
+ * @deprecated unused in schema-serde mode.
105
+ *
106
+ */
107
+ interface Visitor<T> {
108
+ programmaticAccess: (value: ProgrammaticAccessDetails) => T;
109
+ _: (name: string, value: any) => T;
110
+ }
111
+ }
112
+ /**
113
+ * @public
114
+ */
115
+ export interface GetRoleCredentialsResponse {
116
+ /**
117
+ * <p>The temporary credentials that the service returns for the requested role.</p>
118
+ * @public
119
+ */
120
+ credentialsDetails?: CredentialsDetails | undefined;
121
+ }
122
+ /**
123
+ * @public
124
+ */
125
+ export interface ListRolesRequest {
126
+ /**
127
+ * <p>The identifier of the tenant whose roles you want to list. A tenant ID begins with <code>aa-</code> and is 3 to 24 characters long. It can contain lowercase letters, numbers, and hyphens.</p>
128
+ * @public
129
+ */
130
+ tenantId: string | undefined;
131
+ /**
132
+ * <p>The maximum number of roles to return in a single response. If more roles are available than the specified value, the response includes a <code>nextToken</code> value that you can use to retrieve the next page of results. If you don't specify a value, the service uses a default page size.</p>
133
+ * @public
134
+ */
135
+ maxResults?: number | undefined;
136
+ /**
137
+ * <p>The pagination token from a previous <code>ListRoles</code> response. Use it to retrieve the next page of results. Omit this parameter on the first call.</p>
138
+ * @public
139
+ */
140
+ nextToken?: string | undefined;
141
+ }
142
+ /**
143
+ * @public
144
+ */
145
+ export interface ListRolesResponse {
146
+ /**
147
+ * <p>The list of roles that you can access in the tenant. Each entry describes an Amazon Web Services account and a role.</p>
148
+ * @public
149
+ */
150
+ roles: AccessDetails[] | undefined;
151
+ /**
152
+ * <p>The pagination token to include in a subsequent <code>ListRoles</code> request to retrieve the next page of results. This value is absent when there are no more results to return.</p>
153
+ * @public
154
+ */
155
+ nextToken?: string | undefined;
156
+ }
@@ -0,0 +1,8 @@
1
+ import type { PaginationConfiguration } from "@smithy/types";
2
+ import { AccountAccessRuntimeClient } from "../AccountAccessRuntimeClient";
3
+ /**
4
+ * @public
5
+ */
6
+ export interface AccountAccessRuntimePaginationConfiguration extends PaginationConfiguration {
7
+ client: AccountAccessRuntimeClient;
8
+ }
@@ -0,0 +1,7 @@
1
+ import type { Paginator } from "@smithy/types";
2
+ import { ListRolesCommandInput, ListRolesCommandOutput } from "../commands/ListRolesCommand";
3
+ import type { AccountAccessRuntimePaginationConfiguration } from "./Interfaces";
4
+ /**
5
+ * @public
6
+ */
7
+ export declare const paginateListRoles: (config: AccountAccessRuntimePaginationConfiguration, input: ListRolesCommandInput, ...rest: any[]) => Paginator<ListRolesCommandOutput>;
@@ -0,0 +1,2 @@
1
+ export * from "./Interfaces";
2
+ export * from "./ListRolesPaginator";
@@ -0,0 +1,54 @@
1
+ import { FetchHttpHandler as RequestHandler } from "@smithy/fetch-http-handler";
2
+ import type { AccountAccessRuntimeClientConfig } from "./AccountAccessRuntimeClient";
3
+ /**
4
+ * @internal
5
+ */
6
+ export declare const getRuntimeConfig: (config: AccountAccessRuntimeClientConfig) => {
7
+ cacheMiddleware?: boolean;
8
+ customUserAgent?: string | import("@smithy/types").UserAgent;
9
+ userAgentAppId?: string | undefined | import("@smithy/types").Provider<string | undefined>;
10
+ endpoint?: ((string | import("@smithy/types").Endpoint | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>) & (string | import("@smithy/types").Endpoint | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<string> | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>)) | undefined;
11
+ tls?: boolean;
12
+ ignoreConfiguredEndpointUrls?: boolean;
13
+ serviceConfiguredEndpoint?: never;
14
+ retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2;
15
+ authSchemePreference?: string[] | import("@smithy/types").Provider<string[]>;
16
+ token?: import("@smithy/types").TokenIdentity | import("@smithy/types").TokenIdentityProvider;
17
+ apiVersion: string;
18
+ base64Decoder: import("@smithy/types").Decoder;
19
+ base64Encoder: (_input: Uint8Array | string) => string;
20
+ disableHostPrefix: boolean;
21
+ endpointProvider: (params: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
22
+ logger?: import("@smithy/types").Logger;
23
+ }) => import("@smithy/types").EndpointV2;
24
+ extensions: import("./runtimeExtensions").RuntimeExtension[];
25
+ httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").AccountAccessRuntimeHttpAuthSchemeProvider;
26
+ httpAuthSchemes: {
27
+ schemeId: string;
28
+ identityProvider: (ipc: import("@smithy/types").IdentityProviderConfig) => import("@smithy/types").IdentityProvider<import("@smithy/types").Identity> | undefined;
29
+ signer: import("@smithy/core").HttpBearerAuthSigner;
30
+ }[];
31
+ logger: import("@smithy/types").Logger;
32
+ protocol: import("@smithy/types").$ClientProtocol<any, any> | import("@smithy/types").$ClientProtocolCtor<any, any> | typeof import("@aws-sdk/core/protocols").AwsRestJsonProtocol;
33
+ protocolSettings: {
34
+ [setting: string]: unknown;
35
+ defaultNamespace?: string;
36
+ };
37
+ serviceId: string;
38
+ sha256: import("@smithy/types").HashConstructor;
39
+ urlParser: import("@smithy/types").UrlParser;
40
+ utf8Decoder: import("@smithy/types").Decoder;
41
+ utf8Encoder: (input: Uint8Array | string) => string;
42
+ profile?: string;
43
+ runtime: string;
44
+ defaultsMode: import("@smithy/types").Provider<import("@smithy/core/client").ResolvedDefaultsMode>;
45
+ bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
46
+ defaultUserAgentProvider: (config?: import("@aws-sdk/core/client").PreviouslyResolved) => Promise<import("@smithy/types").UserAgent>;
47
+ maxAttempts: number | import("@smithy/types").Provider<number>;
48
+ region: string | import("@smithy/types").Provider<any>;
49
+ requestHandler: RequestHandler | import("@smithy/core/protocols").HttpHandler<any>;
50
+ retryMode: string | import("@smithy/types").Provider<string>;
51
+ streamCollector: (stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob) => Promise<Uint8Array>;
52
+ useDualstackEndpoint: boolean | (() => Promise<boolean>);
53
+ useFipsEndpoint: boolean | (() => Promise<boolean>);
54
+ };
@@ -0,0 +1,57 @@
1
+ import { HttpBearerAuthSigner } from "@smithy/core";
2
+ import { NodeHttpHandler as RequestHandler } from "@smithy/node-http-handler";
3
+ import type { IdentityProviderConfig } from "@smithy/types";
4
+ import type { AccountAccessRuntimeClientConfig } from "./AccountAccessRuntimeClient";
5
+ /**
6
+ * @internal
7
+ */
8
+ export declare const getRuntimeConfig: (config: AccountAccessRuntimeClientConfig) => {
9
+ cacheMiddleware?: boolean;
10
+ customUserAgent?: string | import("@smithy/types").UserAgent;
11
+ endpoint?: ((string | import("@smithy/types").Endpoint | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>) & (string | import("@smithy/types").Endpoint | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<string> | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>)) | undefined;
12
+ tls?: boolean;
13
+ ignoreConfiguredEndpointUrls?: boolean;
14
+ serviceConfiguredEndpoint?: never;
15
+ retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2;
16
+ token?: import("@smithy/types").TokenIdentity | import("@smithy/types").TokenIdentityProvider;
17
+ apiVersion: string;
18
+ base64Decoder: import("@smithy/types").Decoder;
19
+ base64Encoder: (_input: Uint8Array | string) => string;
20
+ disableHostPrefix: boolean;
21
+ endpointProvider: (params: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
22
+ logger?: import("@smithy/types").Logger;
23
+ }) => import("@smithy/types").EndpointV2;
24
+ extensions: import("./runtimeExtensions").RuntimeExtension[];
25
+ httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").AccountAccessRuntimeHttpAuthSchemeProvider;
26
+ logger: import("@smithy/types").Logger;
27
+ protocol: import("@smithy/types").$ClientProtocol<any, any> | import("@smithy/types").$ClientProtocolCtor<any, any> | typeof import("@aws-sdk/core/protocols").AwsRestJsonProtocol;
28
+ protocolSettings: {
29
+ [setting: string]: unknown;
30
+ defaultNamespace?: string;
31
+ };
32
+ serviceId: string;
33
+ sha256: import("@smithy/types").HashConstructor;
34
+ urlParser: import("@smithy/types").UrlParser;
35
+ utf8Decoder: import("@smithy/types").Decoder;
36
+ utf8Encoder: (input: Uint8Array | string) => string;
37
+ runtime: string;
38
+ defaultsMode: import("@smithy/types").Provider<import("@smithy/core/client").ResolvedDefaultsMode>;
39
+ authSchemePreference: string[] | import("@smithy/types").Provider<string[]>;
40
+ bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
41
+ defaultSocketTimeout: number | undefined;
42
+ defaultUserAgentProvider: (config?: import("@aws-sdk/core/client").PreviouslyResolved) => Promise<import("@smithy/types").UserAgent>;
43
+ httpAuthSchemes: import("@smithy/types").HttpAuthScheme[] | {
44
+ schemeId: string;
45
+ identityProvider: (ipc: IdentityProviderConfig) => import("@smithy/types").IdentityProvider<import("@smithy/types").Identity>;
46
+ signer: HttpBearerAuthSigner;
47
+ }[];
48
+ maxAttempts: number | import("@smithy/types").Provider<number>;
49
+ region: string | import("@smithy/types").Provider<string>;
50
+ requestHandler: RequestHandler | import("@smithy/core/protocols").HttpHandler<any>;
51
+ retryMode: string | import("@smithy/types").Provider<string>;
52
+ streamCollector: (stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob) => Promise<Uint8Array>;
53
+ useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
54
+ useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
55
+ userAgentAppId: string | import("@smithy/types").Provider<string | undefined>;
56
+ profile?: string;
57
+ };
@@ -0,0 +1,53 @@
1
+ import type { AccountAccessRuntimeClientConfig } from "./AccountAccessRuntimeClient";
2
+ /**
3
+ * @internal
4
+ */
5
+ export declare const getRuntimeConfig: (config: AccountAccessRuntimeClientConfig) => {
6
+ cacheMiddleware?: boolean;
7
+ customUserAgent?: string | import("@smithy/types").UserAgent;
8
+ userAgentAppId?: string | undefined | import("@smithy/types").Provider<string | undefined>;
9
+ endpoint?: ((string | import("@smithy/types").Endpoint | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>) & (string | import("@smithy/types").Endpoint | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<string> | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>)) | undefined;
10
+ tls?: boolean;
11
+ ignoreConfiguredEndpointUrls?: boolean;
12
+ serviceConfiguredEndpoint?: never;
13
+ retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2;
14
+ authSchemePreference?: string[] | import("@smithy/types").Provider<string[]>;
15
+ token?: import("@smithy/types").TokenIdentity | import("@smithy/types").TokenIdentityProvider;
16
+ apiVersion: string;
17
+ base64Decoder: import("@smithy/types").Decoder;
18
+ base64Encoder: (_input: Uint8Array | string) => string;
19
+ disableHostPrefix: boolean;
20
+ endpointProvider: (params: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
21
+ logger?: import("@smithy/types").Logger;
22
+ }) => import("@smithy/types").EndpointV2;
23
+ extensions: import("./runtimeExtensions").RuntimeExtension[];
24
+ httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").AccountAccessRuntimeHttpAuthSchemeProvider;
25
+ httpAuthSchemes: {
26
+ schemeId: string;
27
+ identityProvider: (ipc: import("@smithy/types").IdentityProviderConfig) => import("@smithy/types").IdentityProvider<import("@smithy/types").Identity> | undefined;
28
+ signer: import("@smithy/core").HttpBearerAuthSigner;
29
+ }[];
30
+ logger: import("@smithy/types").Logger;
31
+ protocol: import("@smithy/types").$ClientProtocol<any, any> | import("@smithy/types").$ClientProtocolCtor<any, any> | typeof import("@aws-sdk/core/protocols").AwsRestJsonProtocol;
32
+ protocolSettings: {
33
+ [setting: string]: unknown;
34
+ defaultNamespace?: string;
35
+ };
36
+ serviceId: string;
37
+ sha256: import("@smithy/types").HashConstructor;
38
+ urlParser: import("@smithy/types").UrlParser;
39
+ utf8Decoder: import("@smithy/types").Decoder;
40
+ utf8Encoder: (input: Uint8Array | string) => string;
41
+ profile?: string;
42
+ defaultsMode: import("@smithy/types").Provider<import("@smithy/core/client").DefaultsMode> | import("@smithy/core/client").DefaultsMode;
43
+ bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
44
+ defaultUserAgentProvider: (config?: import("@aws-sdk/core/client").PreviouslyResolved) => Promise<import("@smithy/types").UserAgent>;
45
+ maxAttempts: number | import("@smithy/types").Provider<number>;
46
+ region: string | import("@smithy/types").Provider<any>;
47
+ requestHandler: import("@smithy/fetch-http-handler").FetchHttpHandler | import("@smithy/types").FetchHttpHandlerOptions | import("@smithy/types").NodeHttpHandlerOptions | Record<string, unknown> | import("@smithy/core/protocols").HttpHandler<any>;
48
+ retryMode: string | import("@smithy/types").Provider<string>;
49
+ streamCollector: (stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob) => Promise<Uint8Array>;
50
+ useDualstackEndpoint: boolean | (() => Promise<boolean>);
51
+ useFipsEndpoint: boolean | (() => Promise<boolean>);
52
+ runtime: string;
53
+ };
@@ -0,0 +1,34 @@
1
+ import { AwsRestJsonProtocol } from "@aws-sdk/core/protocols";
2
+ import { HttpBearerAuthSigner } from "@smithy/core";
3
+ import type { IdentityProviderConfig } from "@smithy/types";
4
+ import type { AccountAccessRuntimeClientConfig } from "./AccountAccessRuntimeClient";
5
+ /**
6
+ * @internal
7
+ */
8
+ export declare const getRuntimeConfig: (config: AccountAccessRuntimeClientConfig) => {
9
+ apiVersion: string;
10
+ base64Decoder: import("@smithy/types").Decoder;
11
+ base64Encoder: (_input: Uint8Array | string) => string;
12
+ disableHostPrefix: boolean;
13
+ endpointProvider: (params: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
14
+ logger?: import("@smithy/types").Logger;
15
+ }) => import("@smithy/types").EndpointV2;
16
+ extensions: import("./runtimeExtensions").RuntimeExtension[];
17
+ httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").AccountAccessRuntimeHttpAuthSchemeProvider;
18
+ httpAuthSchemes: {
19
+ schemeId: string;
20
+ identityProvider: (ipc: IdentityProviderConfig) => import("@smithy/types").IdentityProvider<import("@smithy/types").Identity> | undefined;
21
+ signer: HttpBearerAuthSigner;
22
+ }[];
23
+ logger: import("@smithy/types").Logger;
24
+ protocol: import("@smithy/types").$ClientProtocol<any, any> | import("@smithy/types").$ClientProtocolCtor<any, any> | typeof AwsRestJsonProtocol;
25
+ protocolSettings: {
26
+ [setting: string]: unknown;
27
+ defaultNamespace?: string;
28
+ };
29
+ serviceId: string;
30
+ sha256: import("@smithy/types").HashConstructor;
31
+ urlParser: import("@smithy/types").UrlParser;
32
+ utf8Decoder: import("@smithy/types").Decoder;
33
+ utf8Encoder: (input: Uint8Array | string) => string;
34
+ };
@@ -0,0 +1,17 @@
1
+ import type { AccountAccessRuntimeExtensionConfiguration } from "./extensionConfiguration";
2
+ /**
3
+ * @public
4
+ */
5
+ export interface RuntimeExtension {
6
+ configure(extensionConfiguration: AccountAccessRuntimeExtensionConfiguration): void;
7
+ }
8
+ /**
9
+ * @public
10
+ */
11
+ export interface RuntimeExtensionsConfig {
12
+ extensions: RuntimeExtension[];
13
+ }
14
+ /**
15
+ * @internal
16
+ */
17
+ export declare const resolveRuntimeExtensions: (runtimeConfig: any, extensions: RuntimeExtension[]) => any;
@@ -0,0 +1,23 @@
1
+ import { TypeRegistry } from "@smithy/core/schema";
2
+ import type { StaticErrorSchema, StaticOperationSchema, StaticStructureSchema, StaticUnionSchema } from "@smithy/types";
3
+ export declare var AccountAccessRuntimeServiceException$: StaticErrorSchema;
4
+ export declare var AccessDeniedException$: StaticErrorSchema;
5
+ export declare var InternalServerException$: StaticErrorSchema;
6
+ export declare var ThrottlingException$: StaticErrorSchema;
7
+ export declare var UnauthorizedException$: StaticErrorSchema;
8
+ export declare var ValidationException$: StaticErrorSchema;
9
+ /**
10
+ * TypeRegistry instances containing modeled errors.
11
+ * @internal
12
+ *
13
+ */
14
+ export declare const errorTypeRegistries: TypeRegistry[];
15
+ export declare var AccessDetails$: StaticStructureSchema;
16
+ export declare var GetRoleCredentialsRequest$: StaticStructureSchema;
17
+ export declare var GetRoleCredentialsResponse$: StaticStructureSchema;
18
+ export declare var ListRolesRequest$: StaticStructureSchema;
19
+ export declare var ListRolesResponse$: StaticStructureSchema;
20
+ export declare var ProgrammaticAccessDetails$: StaticStructureSchema;
21
+ export declare var CredentialsDetails$: StaticUnionSchema;
22
+ export declare var GetRoleCredentials$: StaticOperationSchema;
23
+ export declare var ListRoles$: StaticOperationSchema;
@@ -0,0 +1,53 @@
1
+ import {
2
+ HttpHandlerOptions as __HttpHandlerOptions,
3
+ MetricsRecorder as __MetricsRecorder,
4
+ PaginationConfiguration,
5
+ Paginator,
6
+ } from "@smithy/types";
7
+ import { AccountAccessRuntimeClient } from "./AccountAccessRuntimeClient";
8
+ import {
9
+ GetRoleCredentialsCommandInput,
10
+ GetRoleCredentialsCommandOutput,
11
+ } from "./commands/GetRoleCredentialsCommand";
12
+ import { ListRolesCommandInput, ListRolesCommandOutput } from "./commands/ListRolesCommand";
13
+ export interface AccountAccessRuntimeRequestOptions extends __HttpHandlerOptions {
14
+ metricsRecorder?: __MetricsRecorder<unknown>;
15
+ }
16
+ export interface AccountAccessRuntime {
17
+ getRoleCredentials(
18
+ args: GetRoleCredentialsCommandInput,
19
+ options?: AccountAccessRuntimeRequestOptions,
20
+ ): Promise<GetRoleCredentialsCommandOutput>;
21
+ getRoleCredentials(
22
+ args: GetRoleCredentialsCommandInput,
23
+ cb: (err: any, data?: GetRoleCredentialsCommandOutput) => void,
24
+ ): void;
25
+ getRoleCredentials(
26
+ args: GetRoleCredentialsCommandInput,
27
+ options: AccountAccessRuntimeRequestOptions,
28
+ cb: (err: any, data?: GetRoleCredentialsCommandOutput) => void,
29
+ ): void;
30
+ listRoles(
31
+ args: ListRolesCommandInput,
32
+ options?: AccountAccessRuntimeRequestOptions,
33
+ ): Promise<ListRolesCommandOutput>;
34
+ listRoles(
35
+ args: ListRolesCommandInput,
36
+ cb: (err: any, data?: ListRolesCommandOutput) => void,
37
+ ): void;
38
+ listRoles(
39
+ args: ListRolesCommandInput,
40
+ options: AccountAccessRuntimeRequestOptions,
41
+ cb: (err: any, data?: ListRolesCommandOutput) => void,
42
+ ): void;
43
+ paginateListRoles(
44
+ args: ListRolesCommandInput,
45
+ paginationConfig?: Pick<
46
+ PaginationConfiguration,
47
+ Exclude<keyof PaginationConfiguration, "client">
48
+ >,
49
+ ): Paginator<ListRolesCommandOutput>;
50
+ }
51
+ export declare class AccountAccessRuntime
52
+ extends AccountAccessRuntimeClient
53
+ implements AccountAccessRuntime {}
@@ -0,0 +1,106 @@
1
+ import {
2
+ HostHeaderInputConfig,
3
+ HostHeaderResolvedConfig,
4
+ UserAgentInputConfig,
5
+ UserAgentResolvedConfig,
6
+ } from "@aws-sdk/core/client";
7
+ import {
8
+ DefaultsMode as __DefaultsMode,
9
+ SmithyConfiguration as __SmithyConfiguration,
10
+ SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
11
+ Client as __Client,
12
+ } from "@smithy/core/client";
13
+ import { RegionInputConfig, RegionResolvedConfig } from "@smithy/core/config";
14
+ import { EndpointInputConfig, EndpointResolvedConfig } from "@smithy/core/endpoints";
15
+ import { HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/core/protocols";
16
+ import { RetryInputConfig, RetryResolvedConfig } from "@smithy/core/retry";
17
+ import {
18
+ BodyLengthCalculator as __BodyLengthCalculator,
19
+ CheckOptionalClientConfig as __CheckOptionalClientConfig,
20
+ ChecksumConstructor as __ChecksumConstructor,
21
+ Decoder as __Decoder,
22
+ Encoder as __Encoder,
23
+ HashConstructor as __HashConstructor,
24
+ HttpHandlerOptions as __HttpHandlerOptions,
25
+ Logger as __Logger,
26
+ Provider as __Provider,
27
+ StreamCollector as __StreamCollector,
28
+ UrlParser as __UrlParser,
29
+ UserAgent as __UserAgent,
30
+ } from "@smithy/types";
31
+ import {
32
+ HttpAuthSchemeInputConfig,
33
+ HttpAuthSchemeResolvedConfig,
34
+ } from "./auth/httpAuthSchemeProvider";
35
+ import {
36
+ GetRoleCredentialsCommandInput,
37
+ GetRoleCredentialsCommandOutput,
38
+ } from "./commands/GetRoleCredentialsCommand";
39
+ import { ListRolesCommandInput, ListRolesCommandOutput } from "./commands/ListRolesCommand";
40
+ import {
41
+ ClientInputEndpointParameters,
42
+ ClientResolvedEndpointParameters,
43
+ EndpointParameters,
44
+ } from "./endpoint/EndpointParameters";
45
+ import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";
46
+ export { __Client };
47
+ export type ServiceInputTypes = GetRoleCredentialsCommandInput | ListRolesCommandInput;
48
+ export type ServiceOutputTypes = GetRoleCredentialsCommandOutput | ListRolesCommandOutput;
49
+ export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHandlerOptions>> {
50
+ requestHandler?: __HttpHandlerUserInput;
51
+ sha256?: __ChecksumConstructor | __HashConstructor;
52
+ urlParser?: __UrlParser;
53
+ bodyLengthChecker?: __BodyLengthCalculator;
54
+ streamCollector?: __StreamCollector;
55
+ base64Decoder?: __Decoder;
56
+ base64Encoder?: __Encoder;
57
+ utf8Decoder?: __Decoder;
58
+ utf8Encoder?: __Encoder;
59
+ runtime?: string;
60
+ disableHostPrefix?: boolean;
61
+ serviceId?: string;
62
+ useDualstackEndpoint?: boolean | __Provider<boolean>;
63
+ useFipsEndpoint?: boolean | __Provider<boolean>;
64
+ region?: string | __Provider<string>;
65
+ profile?: string;
66
+ defaultUserAgentProvider?: __Provider<__UserAgent>;
67
+ maxAttempts?: number | __Provider<number>;
68
+ retryMode?: string | __Provider<string>;
69
+ logger?: __Logger;
70
+ extensions?: RuntimeExtension[];
71
+ defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
72
+ }
73
+ export type AccountAccessRuntimeClientConfigType = Partial<
74
+ __SmithyConfiguration<__HttpHandlerOptions>
75
+ > &
76
+ ClientDefaults &
77
+ UserAgentInputConfig &
78
+ RetryInputConfig &
79
+ RegionInputConfig &
80
+ HostHeaderInputConfig &
81
+ EndpointInputConfig<EndpointParameters> &
82
+ HttpAuthSchemeInputConfig &
83
+ ClientInputEndpointParameters;
84
+ export interface AccountAccessRuntimeClientConfig extends AccountAccessRuntimeClientConfigType {}
85
+ export type AccountAccessRuntimeClientResolvedConfigType =
86
+ __SmithyResolvedConfiguration<__HttpHandlerOptions> &
87
+ Required<ClientDefaults> &
88
+ RuntimeExtensionsConfig &
89
+ UserAgentResolvedConfig &
90
+ RetryResolvedConfig &
91
+ RegionResolvedConfig &
92
+ HostHeaderResolvedConfig &
93
+ EndpointResolvedConfig<EndpointParameters> &
94
+ HttpAuthSchemeResolvedConfig &
95
+ ClientResolvedEndpointParameters;
96
+ export interface AccountAccessRuntimeClientResolvedConfig extends AccountAccessRuntimeClientResolvedConfigType {}
97
+ export declare class AccountAccessRuntimeClient extends __Client<
98
+ __HttpHandlerOptions,
99
+ ServiceInputTypes,
100
+ ServiceOutputTypes,
101
+ AccountAccessRuntimeClientResolvedConfig
102
+ > {
103
+ readonly config: AccountAccessRuntimeClientResolvedConfig;
104
+ constructor(...[configuration]: __CheckOptionalClientConfig<AccountAccessRuntimeClientConfig>);
105
+ destroy(): void;
106
+ }