@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,183 @@
1
+ import { type HostHeaderInputConfig, type HostHeaderResolvedConfig, type UserAgentInputConfig, type UserAgentResolvedConfig } from "@aws-sdk/core/client";
2
+ import { type DefaultsMode as __DefaultsMode, type SmithyConfiguration as __SmithyConfiguration, type SmithyResolvedConfiguration as __SmithyResolvedConfiguration, Client as __Client } from "@smithy/core/client";
3
+ import { type RegionInputConfig, type RegionResolvedConfig } from "@smithy/core/config";
4
+ import { type EndpointInputConfig, type EndpointResolvedConfig } from "@smithy/core/endpoints";
5
+ import { type HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/core/protocols";
6
+ import { type RetryInputConfig, type RetryResolvedConfig } from "@smithy/core/retry";
7
+ import type { 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, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
8
+ import { type HttpAuthSchemeInputConfig, type HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
9
+ import type { GetRoleCredentialsCommandInput, GetRoleCredentialsCommandOutput } from "./commands/GetRoleCredentialsCommand";
10
+ import type { ListRolesCommandInput, ListRolesCommandOutput } from "./commands/ListRolesCommand";
11
+ import { type ClientInputEndpointParameters, type ClientResolvedEndpointParameters, type EndpointParameters } from "./endpoint/EndpointParameters";
12
+ import { type RuntimeExtension, type RuntimeExtensionsConfig } from "./runtimeExtensions";
13
+ export { __Client };
14
+ /**
15
+ * @public
16
+ */
17
+ export type ServiceInputTypes = GetRoleCredentialsCommandInput | ListRolesCommandInput;
18
+ /**
19
+ * @public
20
+ */
21
+ export type ServiceOutputTypes = GetRoleCredentialsCommandOutput | ListRolesCommandOutput;
22
+ /**
23
+ * @public
24
+ */
25
+ export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHandlerOptions>> {
26
+ /**
27
+ * The HTTP handler to use or its constructor options. Fetch in browser and Https in Nodejs.
28
+ */
29
+ requestHandler?: __HttpHandlerUserInput;
30
+ /**
31
+ * A constructor for a class implementing the {@link @smithy/types#ChecksumConstructor} interface
32
+ * that computes the SHA-256 HMAC or checksum of a string or binary buffer.
33
+ * @internal
34
+ */
35
+ sha256?: __ChecksumConstructor | __HashConstructor;
36
+ /**
37
+ * The function that will be used to convert strings into HTTP endpoints.
38
+ * @internal
39
+ */
40
+ urlParser?: __UrlParser;
41
+ /**
42
+ * A function that can calculate the length of a request body.
43
+ * @internal
44
+ */
45
+ bodyLengthChecker?: __BodyLengthCalculator;
46
+ /**
47
+ * A function that converts a stream into an array of bytes.
48
+ * @internal
49
+ */
50
+ streamCollector?: __StreamCollector;
51
+ /**
52
+ * The function that will be used to convert a base64-encoded string to a byte array.
53
+ * @internal
54
+ */
55
+ base64Decoder?: __Decoder;
56
+ /**
57
+ * The function that will be used to convert binary data to a base64-encoded string.
58
+ * @internal
59
+ */
60
+ base64Encoder?: __Encoder;
61
+ /**
62
+ * The function that will be used to convert a UTF8-encoded string to a byte array.
63
+ * @internal
64
+ */
65
+ utf8Decoder?: __Decoder;
66
+ /**
67
+ * The function that will be used to convert binary data to a UTF-8 encoded string.
68
+ * @internal
69
+ */
70
+ utf8Encoder?: __Encoder;
71
+ /**
72
+ * The runtime environment.
73
+ * @internal
74
+ */
75
+ runtime?: string;
76
+ /**
77
+ * Disable dynamically changing the endpoint of the client based on the hostPrefix
78
+ * trait of an operation.
79
+ */
80
+ disableHostPrefix?: boolean;
81
+ /**
82
+ * Unique service identifier.
83
+ * @internal
84
+ */
85
+ serviceId?: string;
86
+ /**
87
+ * Enables IPv6/IPv4 dualstack endpoint.
88
+ */
89
+ useDualstackEndpoint?: boolean | __Provider<boolean>;
90
+ /**
91
+ * Enables FIPS compatible endpoints.
92
+ */
93
+ useFipsEndpoint?: boolean | __Provider<boolean>;
94
+ /**
95
+ * The AWS region to which this client will send requests
96
+ */
97
+ region?: string | __Provider<string>;
98
+ /**
99
+ * Setting a client profile is similar to setting a value for the
100
+ * AWS_PROFILE environment variable. Setting a profile on a client
101
+ * in code only affects the single client instance, unlike AWS_PROFILE.
102
+ *
103
+ * When set, and only for environments where an AWS configuration
104
+ * file exists, fields configurable by this file will be retrieved
105
+ * from the specified profile within that file.
106
+ * Conflicting code configuration and environment variables will
107
+ * still have higher priority.
108
+ *
109
+ * For client credential resolution that involves checking the AWS
110
+ * configuration file, the client's profile (this value) will be
111
+ * used unless a different profile is set in the credential
112
+ * provider options.
113
+ *
114
+ */
115
+ profile?: string;
116
+ /**
117
+ * The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
118
+ * @internal
119
+ */
120
+ defaultUserAgentProvider?: __Provider<__UserAgent>;
121
+ /**
122
+ * Value for how many times a request will be made at most in case of retry.
123
+ */
124
+ maxAttempts?: number | __Provider<number>;
125
+ /**
126
+ * Specifies which retry algorithm to use.
127
+ * Accepted values are "standard" and "adaptive".
128
+ * @see https://docs.aws.amazon.com/sdkref/latest/guide/feature-retry-behavior.html
129
+ *
130
+ */
131
+ retryMode?: string | __Provider<string>;
132
+ /**
133
+ * Optional logger for logging debug/info/warn/error.
134
+ */
135
+ logger?: __Logger;
136
+ /**
137
+ * Optional extensions
138
+ */
139
+ extensions?: RuntimeExtension[];
140
+ /**
141
+ * The {@link @smithy/smithy-client#DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
142
+ */
143
+ defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
144
+ }
145
+ /**
146
+ * @public
147
+ */
148
+ export type AccountAccessRuntimeClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & UserAgentInputConfig & RetryInputConfig & RegionInputConfig & HostHeaderInputConfig & EndpointInputConfig<EndpointParameters> & HttpAuthSchemeInputConfig & ClientInputEndpointParameters;
149
+ /**
150
+ * @public
151
+ *
152
+ * The configuration interface of AccountAccessRuntimeClient class constructor that set the region, credentials and other options.
153
+ */
154
+ export interface AccountAccessRuntimeClientConfig extends AccountAccessRuntimeClientConfigType {
155
+ }
156
+ /**
157
+ * @public
158
+ */
159
+ export type AccountAccessRuntimeClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RuntimeExtensionsConfig & UserAgentResolvedConfig & RetryResolvedConfig & RegionResolvedConfig & HostHeaderResolvedConfig & EndpointResolvedConfig<EndpointParameters> & HttpAuthSchemeResolvedConfig & ClientResolvedEndpointParameters;
160
+ /**
161
+ * @public
162
+ *
163
+ * The resolved configuration interface of AccountAccessRuntimeClient class. This is resolved and normalized from the {@link AccountAccessRuntimeClientConfig | constructor configuration interface}.
164
+ */
165
+ export interface AccountAccessRuntimeClientResolvedConfig extends AccountAccessRuntimeClientResolvedConfigType {
166
+ }
167
+ /**
168
+ * <p>Use the Account Access Runtime API to list the roles that you can access and retrieve temporary Amazon Web Services credentials for those roles. You authenticate with a bearer token from IAM Identity Center. Each request is scoped to a tenant.</p>
169
+ * @public
170
+ */
171
+ export declare class AccountAccessRuntimeClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, AccountAccessRuntimeClientResolvedConfig> {
172
+ /**
173
+ * The resolved configuration of AccountAccessRuntimeClient class. This is resolved and normalized from the {@link AccountAccessRuntimeClientConfig | constructor configuration interface}.
174
+ */
175
+ readonly config: AccountAccessRuntimeClientResolvedConfig;
176
+ constructor(...[configuration]: __CheckOptionalClientConfig<AccountAccessRuntimeClientConfig>);
177
+ /**
178
+ * Destroy underlying resources, like sockets. It's usually not necessary to do this.
179
+ * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
180
+ * Otherwise, sockets might stay open for quite a long time before the server terminates them.
181
+ */
182
+ destroy(): void;
183
+ }
@@ -0,0 +1,29 @@
1
+ import { type HttpAuthScheme, TokenIdentity, TokenIdentityProvider } from "@smithy/types";
2
+ import type { AccountAccessRuntimeHttpAuthSchemeProvider } from "./httpAuthSchemeProvider";
3
+ /**
4
+ * @internal
5
+ */
6
+ export interface HttpAuthExtensionConfiguration {
7
+ setHttpAuthScheme(httpAuthScheme: HttpAuthScheme): void;
8
+ httpAuthSchemes(): HttpAuthScheme[];
9
+ setHttpAuthSchemeProvider(httpAuthSchemeProvider: AccountAccessRuntimeHttpAuthSchemeProvider): void;
10
+ httpAuthSchemeProvider(): AccountAccessRuntimeHttpAuthSchemeProvider;
11
+ setToken(token: TokenIdentity | TokenIdentityProvider): void;
12
+ token(): TokenIdentity | TokenIdentityProvider | undefined;
13
+ }
14
+ /**
15
+ * @internal
16
+ */
17
+ export type HttpAuthRuntimeConfig = Partial<{
18
+ httpAuthSchemes: HttpAuthScheme[];
19
+ httpAuthSchemeProvider: AccountAccessRuntimeHttpAuthSchemeProvider;
20
+ token: TokenIdentity | TokenIdentityProvider;
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,81 @@
1
+ import { type HandlerExecutionContext, type HttpAuthScheme, type HttpAuthSchemeParameters, type HttpAuthSchemeParametersProvider, type HttpAuthSchemeProvider, type Provider, TokenIdentity, TokenIdentityProvider } from "@smithy/types";
2
+ import type { AccountAccessRuntimeClientResolvedConfig } from "../AccountAccessRuntimeClient";
3
+ /**
4
+ * @internal
5
+ */
6
+ export interface AccountAccessRuntimeHttpAuthSchemeParameters extends HttpAuthSchemeParameters {
7
+ }
8
+ /**
9
+ * @internal
10
+ */
11
+ export interface AccountAccessRuntimeHttpAuthSchemeParametersProvider extends HttpAuthSchemeParametersProvider<AccountAccessRuntimeClientResolvedConfig, HandlerExecutionContext, AccountAccessRuntimeHttpAuthSchemeParameters, object> {
12
+ }
13
+ /**
14
+ * @internal
15
+ */
16
+ export declare const defaultAccountAccessRuntimeHttpAuthSchemeParametersProvider: (config: AccountAccessRuntimeClientResolvedConfig, context: HandlerExecutionContext, input: object) => Promise<AccountAccessRuntimeHttpAuthSchemeParameters>;
17
+ /**
18
+ * @internal
19
+ */
20
+ export interface AccountAccessRuntimeHttpAuthSchemeProvider extends HttpAuthSchemeProvider<AccountAccessRuntimeHttpAuthSchemeParameters> {
21
+ }
22
+ /**
23
+ * @internal
24
+ */
25
+ export declare const defaultAccountAccessRuntimeHttpAuthSchemeProvider: AccountAccessRuntimeHttpAuthSchemeProvider;
26
+ /**
27
+ * @public
28
+ */
29
+ export interface HttpAuthSchemeInputConfig {
30
+ /**
31
+ * A comma-separated list of case-sensitive auth scheme names.
32
+ * An auth scheme name is a fully qualified auth scheme ID with the namespace prefix trimmed.
33
+ * For example, the auth scheme with ID aws.auth#sigv4 is named sigv4.
34
+ * @public
35
+ */
36
+ authSchemePreference?: string[] | Provider<string[]>;
37
+ /**
38
+ * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme.
39
+ * @internal
40
+ */
41
+ httpAuthSchemes?: HttpAuthScheme[];
42
+ /**
43
+ * Configuration of an HttpAuthSchemeProvider for a client which resolves which HttpAuthScheme to use.
44
+ * @internal
45
+ */
46
+ httpAuthSchemeProvider?: AccountAccessRuntimeHttpAuthSchemeProvider;
47
+ /**
48
+ * The token used to authenticate requests.
49
+ */
50
+ token?: TokenIdentity | TokenIdentityProvider;
51
+ }
52
+ /**
53
+ * @internal
54
+ */
55
+ export interface HttpAuthSchemeResolvedConfig {
56
+ /**
57
+ * A comma-separated list of case-sensitive auth scheme names.
58
+ * An auth scheme name is a fully qualified auth scheme ID with the namespace prefix trimmed.
59
+ * For example, the auth scheme with ID aws.auth#sigv4 is named sigv4.
60
+ * @public
61
+ */
62
+ readonly authSchemePreference: Provider<string[]>;
63
+ /**
64
+ * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme.
65
+ * @internal
66
+ */
67
+ readonly httpAuthSchemes: HttpAuthScheme[];
68
+ /**
69
+ * Configuration of an HttpAuthSchemeProvider for a client which resolves which HttpAuthScheme to use.
70
+ * @internal
71
+ */
72
+ readonly httpAuthSchemeProvider: AccountAccessRuntimeHttpAuthSchemeProvider;
73
+ /**
74
+ * The token used to authenticate requests.
75
+ */
76
+ readonly token?: TokenIdentityProvider;
77
+ }
78
+ /**
79
+ * @internal
80
+ */
81
+ export declare const resolveHttpAuthSchemeConfig: <T>(config: T & HttpAuthSchemeInputConfig) => T & HttpAuthSchemeResolvedConfig;
@@ -0,0 +1,18 @@
1
+ import type { EndpointParameterInstructions } from "@smithy/types";
2
+ import type { AccountAccessRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "./AccountAccessRuntimeClient";
3
+ /**
4
+ * @internal
5
+ */
6
+ export declare const command: <I extends ServiceInputTypes, O extends ServiceOutputTypes>(added: EndpointParameterInstructions, plugins: (CommandCtor: any, clientStack: any, config: any, options: any) => import("@smithy/types").Pluggable<any, any>[], op: string, $: import("@smithy/types").StaticOperationSchema, smithyContext?: Record<string, unknown>) => {
7
+ new (input: I): import("@smithy/core/client").CommandImpl<I, O, AccountAccessRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
8
+ new (...[input]: import("@smithy/types").OptionalParameter<I>): import("@smithy/core/client").CommandImpl<I, O, AccountAccessRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
9
+ getEndpointParameterInstructions(): EndpointParameterInstructions;
10
+ };
11
+ /**
12
+ * @internal
13
+ */
14
+ export declare const _ep0: EndpointParameterInstructions;
15
+ /**
16
+ * @internal
17
+ */
18
+ export declare const _mw0: (Command: any, cs: any, config: any, o: any) => never[];
@@ -0,0 +1,97 @@
1
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
+ import type { GetRoleCredentialsRequest, GetRoleCredentialsResponse } from "../models/models_0";
3
+ /**
4
+ * @public
5
+ */
6
+ export type { __MetadataBearer };
7
+ /**
8
+ * @public
9
+ *
10
+ * The input for {@link GetRoleCredentialsCommand}.
11
+ */
12
+ export interface GetRoleCredentialsCommandInput extends GetRoleCredentialsRequest {
13
+ }
14
+ /**
15
+ * @public
16
+ *
17
+ * The output of {@link GetRoleCredentialsCommand}.
18
+ */
19
+ export interface GetRoleCredentialsCommandOutput extends GetRoleCredentialsResponse, __MetadataBearer {
20
+ }
21
+ declare const GetRoleCredentialsCommand_base: {
22
+ new (input: GetRoleCredentialsCommandInput): import("@smithy/core/client").CommandImpl<GetRoleCredentialsCommandInput, GetRoleCredentialsCommandOutput, import("..").AccountAccessRuntimeClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: GetRoleCredentialsCommandInput): import("@smithy/core/client").CommandImpl<GetRoleCredentialsCommandInput, GetRoleCredentialsCommandOutput, import("..").AccountAccessRuntimeClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
25
+ };
26
+ /**
27
+ * <p>Returns temporary Amazon Web Services credentials for a role that you are entitled to assume within a tenant. You can use these credentials for programmatic access with the CLI or an Amazon Web Services SDK. If you aren't entitled to the role, the request fails with an <code>AccessDeniedException</code> error.</p>
28
+ * @example
29
+ * Use a bare-bones client and the command you need to make an API call.
30
+ * ```javascript
31
+ * import { AccountAccessRuntimeClient, GetRoleCredentialsCommand } from "@aws-sdk/client-account-access-runtime"; // ES Modules import
32
+ * // const { AccountAccessRuntimeClient, GetRoleCredentialsCommand } = require("@aws-sdk/client-account-access-runtime"); // CommonJS import
33
+ * // import type { AccountAccessRuntimeClientConfig } from "@aws-sdk/client-account-access-runtime";
34
+ * const config = {}; // type is AccountAccessRuntimeClientConfig
35
+ * const client = new AccountAccessRuntimeClient(config);
36
+ * const input = { // GetRoleCredentialsRequest
37
+ * tenantId: "STRING_VALUE", // required
38
+ * roleArn: "STRING_VALUE", // required
39
+ * accessType: "PROGRAMMATIC_ACCESS", // required
40
+ * sessionName: "STRING_VALUE",
41
+ * sessionDuration: Number("int"),
42
+ * };
43
+ * const command = new GetRoleCredentialsCommand(input);
44
+ * const response = await client.send(command);
45
+ * // { // GetRoleCredentialsResponse
46
+ * // credentialsDetails: { // CredentialsDetails Union: only one key present
47
+ * // programmaticAccess: { // ProgrammaticAccessDetails
48
+ * // accessKeyId: "STRING_VALUE", // required
49
+ * // secretAccessKey: "STRING_VALUE", // required
50
+ * // sessionToken: "STRING_VALUE", // required
51
+ * // expiresAt: new Date("TIMESTAMP"), // required
52
+ * // },
53
+ * // },
54
+ * // };
55
+ *
56
+ * ```
57
+ *
58
+ * @param GetRoleCredentialsCommandInput - {@link GetRoleCredentialsCommandInput}
59
+ * @returns {@link GetRoleCredentialsCommandOutput}
60
+ * @see {@link GetRoleCredentialsCommandInput} for command's `input` shape.
61
+ * @see {@link GetRoleCredentialsCommandOutput} for command's `response` shape.
62
+ * @see {@link AccountAccessRuntimeClientResolvedConfig | config} for AccountAccessRuntimeClient's `config` shape.
63
+ *
64
+ * @throws {@link AccessDeniedException} (client fault)
65
+ * <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>
66
+ *
67
+ * @throws {@link InternalServerException} (server fault)
68
+ * <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>
69
+ *
70
+ * @throws {@link ThrottlingException} (client fault)
71
+ * <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>
72
+ *
73
+ * @throws {@link UnauthorizedException} (client fault)
74
+ * <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>
75
+ *
76
+ * @throws {@link ValidationException} (client fault)
77
+ * <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>
78
+ *
79
+ * @throws {@link AccountAccessRuntimeServiceException}
80
+ * <p>Base exception class for all service exceptions from AccountAccessRuntime service.</p>
81
+ *
82
+ *
83
+ * @public
84
+ */
85
+ export declare class GetRoleCredentialsCommand extends GetRoleCredentialsCommand_base {
86
+ /** @internal type navigation helper, not in runtime. */
87
+ protected static __types: {
88
+ api: {
89
+ input: GetRoleCredentialsRequest;
90
+ output: GetRoleCredentialsResponse;
91
+ };
92
+ sdk: {
93
+ input: GetRoleCredentialsCommandInput;
94
+ output: GetRoleCredentialsCommandOutput;
95
+ };
96
+ };
97
+ }
@@ -0,0 +1,92 @@
1
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
+ import type { ListRolesRequest, ListRolesResponse } from "../models/models_0";
3
+ /**
4
+ * @public
5
+ */
6
+ export type { __MetadataBearer };
7
+ /**
8
+ * @public
9
+ *
10
+ * The input for {@link ListRolesCommand}.
11
+ */
12
+ export interface ListRolesCommandInput extends ListRolesRequest {
13
+ }
14
+ /**
15
+ * @public
16
+ *
17
+ * The output of {@link ListRolesCommand}.
18
+ */
19
+ export interface ListRolesCommandOutput extends ListRolesResponse, __MetadataBearer {
20
+ }
21
+ declare const ListRolesCommand_base: {
22
+ new (input: ListRolesCommandInput): import("@smithy/core/client").CommandImpl<ListRolesCommandInput, ListRolesCommandOutput, import("..").AccountAccessRuntimeClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: ListRolesCommandInput): import("@smithy/core/client").CommandImpl<ListRolesCommandInput, ListRolesCommandOutput, import("..").AccountAccessRuntimeClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
25
+ };
26
+ /**
27
+ * <p>Returns the roles that you are entitled to access within a tenant. The results are paginated. Use a returned role with <code>GetRoleCredentials</code> to obtain temporary credentials.</p>
28
+ * @example
29
+ * Use a bare-bones client and the command you need to make an API call.
30
+ * ```javascript
31
+ * import { AccountAccessRuntimeClient, ListRolesCommand } from "@aws-sdk/client-account-access-runtime"; // ES Modules import
32
+ * // const { AccountAccessRuntimeClient, ListRolesCommand } = require("@aws-sdk/client-account-access-runtime"); // CommonJS import
33
+ * // import type { AccountAccessRuntimeClientConfig } from "@aws-sdk/client-account-access-runtime";
34
+ * const config = {}; // type is AccountAccessRuntimeClientConfig
35
+ * const client = new AccountAccessRuntimeClient(config);
36
+ * const input = { // ListRolesRequest
37
+ * tenantId: "STRING_VALUE", // required
38
+ * maxResults: Number("int"),
39
+ * nextToken: "STRING_VALUE",
40
+ * };
41
+ * const command = new ListRolesCommand(input);
42
+ * const response = await client.send(command);
43
+ * // { // ListRolesResponse
44
+ * // roles: [ // AccessDetailsList // required
45
+ * // { // AccessDetails
46
+ * // accountId: "STRING_VALUE", // required
47
+ * // accountName: "STRING_VALUE",
48
+ * // roleArn: "STRING_VALUE", // required
49
+ * // },
50
+ * // ],
51
+ * // nextToken: "STRING_VALUE",
52
+ * // };
53
+ *
54
+ * ```
55
+ *
56
+ * @param ListRolesCommandInput - {@link ListRolesCommandInput}
57
+ * @returns {@link ListRolesCommandOutput}
58
+ * @see {@link ListRolesCommandInput} for command's `input` shape.
59
+ * @see {@link ListRolesCommandOutput} for command's `response` shape.
60
+ * @see {@link AccountAccessRuntimeClientResolvedConfig | config} for AccountAccessRuntimeClient's `config` shape.
61
+ *
62
+ * @throws {@link InternalServerException} (server fault)
63
+ * <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>
64
+ *
65
+ * @throws {@link ThrottlingException} (client fault)
66
+ * <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>
67
+ *
68
+ * @throws {@link UnauthorizedException} (client fault)
69
+ * <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>
70
+ *
71
+ * @throws {@link ValidationException} (client fault)
72
+ * <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>
73
+ *
74
+ * @throws {@link AccountAccessRuntimeServiceException}
75
+ * <p>Base exception class for all service exceptions from AccountAccessRuntime service.</p>
76
+ *
77
+ *
78
+ * @public
79
+ */
80
+ export declare class ListRolesCommand extends ListRolesCommand_base {
81
+ /** @internal type navigation helper, not in runtime. */
82
+ protected static __types: {
83
+ api: {
84
+ input: ListRolesRequest;
85
+ output: ListRolesResponse;
86
+ };
87
+ sdk: {
88
+ input: ListRolesCommandInput;
89
+ output: ListRolesCommandOutput;
90
+ };
91
+ };
92
+ }
@@ -0,0 +1,2 @@
1
+ export * from "./GetRoleCredentialsCommand";
2
+ export * from "./ListRolesCommand";
@@ -0,0 +1,44 @@
1
+ import type { Endpoint, EndpointParameters as __EndpointParameters, EndpointV2, Provider } from "@smithy/types";
2
+ /**
3
+ * @public
4
+ */
5
+ export interface ClientInputEndpointParameters {
6
+ useFipsEndpoint?: boolean | undefined | Provider<boolean | undefined>;
7
+ endpoint?: string | Provider<string> | Endpoint | Provider<Endpoint> | EndpointV2 | Provider<EndpointV2>;
8
+ region?: string | undefined | Provider<string | undefined>;
9
+ }
10
+ /**
11
+ * @public
12
+ */
13
+ export type ClientResolvedEndpointParameters = Omit<ClientInputEndpointParameters, "endpoint"> & {
14
+ defaultSigningName: string;
15
+ };
16
+ /**
17
+ * @internal
18
+ */
19
+ export declare const resolveClientEndpointParameters: <T>(options: T & ClientInputEndpointParameters) => T & ClientResolvedEndpointParameters;
20
+ /**
21
+ * @internal
22
+ */
23
+ export declare const commonParams: {
24
+ readonly UseFIPS: {
25
+ readonly type: "builtInParams";
26
+ readonly name: "useFipsEndpoint";
27
+ };
28
+ readonly Endpoint: {
29
+ readonly type: "builtInParams";
30
+ readonly name: "endpoint";
31
+ };
32
+ readonly Region: {
33
+ readonly type: "builtInParams";
34
+ readonly name: "region";
35
+ };
36
+ };
37
+ /**
38
+ * @internal
39
+ */
40
+ export interface EndpointParameters extends __EndpointParameters {
41
+ UseFIPS?: boolean | undefined;
42
+ Endpoint?: string | undefined;
43
+ Region?: string | undefined;
44
+ }
@@ -0,0 +1,2 @@
1
+ import { BinaryDecisionDiagram } from "@smithy/core/endpoints";
2
+ export declare const bdd: BinaryDecisionDiagram;
@@ -0,0 +1,8 @@
1
+ import type { EndpointV2, Logger } from "@smithy/types";
2
+ import type { EndpointParameters } from "./EndpointParameters";
3
+ /**
4
+ * @internal
5
+ */
6
+ export declare const defaultEndpointResolver: (endpointParams: EndpointParameters, context?: {
7
+ logger?: Logger;
8
+ }) => EndpointV2;
@@ -0,0 +1,9 @@
1
+ import type { AwsRegionExtensionConfiguration } from "@aws-sdk/types";
2
+ import type { HttpHandlerExtensionConfiguration } from "@smithy/core/protocols";
3
+ import type { DefaultExtensionConfiguration } from "@smithy/types";
4
+ import type { HttpAuthExtensionConfiguration } from "./auth/httpAuthExtensionConfiguration";
5
+ /**
6
+ * @internal
7
+ */
8
+ export interface AccountAccessRuntimeExtensionConfiguration extends HttpHandlerExtensionConfiguration, DefaultExtensionConfiguration, AwsRegionExtensionConfiguration, HttpAuthExtensionConfiguration {
9
+ }
@@ -0,0 +1,18 @@
1
+ /**
2
+ * <p>Use the Account Access Runtime API to list the roles that you can access and retrieve temporary Amazon Web Services credentials for those roles. You authenticate with a bearer token from IAM Identity Center. Each request is scoped to a tenant.</p>
3
+ *
4
+ * @packageDocumentation
5
+ */
6
+ export * from "./AccountAccessRuntimeClient";
7
+ export * from "./AccountAccessRuntime";
8
+ export type { ClientInputEndpointParameters } from "./endpoint/EndpointParameters";
9
+ export type { RuntimeExtension } from "./runtimeExtensions";
10
+ export type { AccountAccessRuntimeExtensionConfiguration } from "./extensionConfiguration";
11
+ export * from "./commands";
12
+ export { Command as $Command } from "@smithy/core/client";
13
+ export * from "./pagination";
14
+ export * from "./schemas/schemas_0";
15
+ export * from "./models/enums";
16
+ export * from "./models/errors";
17
+ export * from "./models/models_0";
18
+ export { AccountAccessRuntimeServiceException } from "./models/AccountAccessRuntimeServiceException";
@@ -0,0 +1,15 @@
1
+ import { type ServiceExceptionOptions as __ServiceExceptionOptions, ServiceException as __ServiceException } from "@smithy/core/client";
2
+ export type { __ServiceExceptionOptions };
3
+ export { __ServiceException };
4
+ /**
5
+ * @public
6
+ *
7
+ * Base exception class for all service exceptions from AccountAccessRuntime service.
8
+ */
9
+ export declare class AccountAccessRuntimeServiceException extends __ServiceException {
10
+ static readonly shapeId: string;
11
+ /**
12
+ * @internal
13
+ */
14
+ constructor(options: __ServiceExceptionOptions);
15
+ }
@@ -0,0 +1,11 @@
1
+ /**
2
+ * @public
3
+ * @enum
4
+ */
5
+ export declare const AccessType: {
6
+ readonly PROGRAMMATIC_ACCESS: "PROGRAMMATIC_ACCESS";
7
+ };
8
+ /**
9
+ * @public
10
+ */
11
+ export type AccessType = (typeof AccessType)[keyof typeof AccessType];