@aws-sdk/client-iam 3.186.0 → 3.188.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/CHANGELOG.md +8 -0
- package/dist-cjs/models/models_0.js +66 -6
- package/dist-cjs/protocols/Aws_query.js +8 -4
- package/dist-es/IAM.js +634 -641
- package/dist-es/IAMClient.js +22 -28
- package/dist-es/commands/AddClientIDToOpenIDConnectProviderCommand.js +22 -29
- package/dist-es/commands/AddRoleToInstanceProfileCommand.js +22 -29
- package/dist-es/commands/AddUserToGroupCommand.js +22 -29
- package/dist-es/commands/AttachGroupPolicyCommand.js +22 -29
- package/dist-es/commands/AttachRolePolicyCommand.js +22 -29
- package/dist-es/commands/AttachUserPolicyCommand.js +22 -29
- package/dist-es/commands/ChangePasswordCommand.js +22 -29
- package/dist-es/commands/CreateAccessKeyCommand.js +21 -28
- package/dist-es/commands/CreateAccountAliasCommand.js +22 -29
- package/dist-es/commands/CreateGroupCommand.js +21 -28
- package/dist-es/commands/CreateInstanceProfileCommand.js +21 -28
- package/dist-es/commands/CreateLoginProfileCommand.js +21 -28
- package/dist-es/commands/CreateOpenIDConnectProviderCommand.js +21 -28
- package/dist-es/commands/CreatePolicyCommand.js +21 -28
- package/dist-es/commands/CreatePolicyVersionCommand.js +21 -28
- package/dist-es/commands/CreateRoleCommand.js +21 -28
- package/dist-es/commands/CreateSAMLProviderCommand.js +21 -28
- package/dist-es/commands/CreateServiceLinkedRoleCommand.js +21 -28
- package/dist-es/commands/CreateServiceSpecificCredentialCommand.js +21 -28
- package/dist-es/commands/CreateUserCommand.js +21 -28
- package/dist-es/commands/CreateVirtualMFADeviceCommand.js +21 -28
- package/dist-es/commands/DeactivateMFADeviceCommand.js +22 -29
- package/dist-es/commands/DeleteAccessKeyCommand.js +22 -29
- package/dist-es/commands/DeleteAccountAliasCommand.js +22 -29
- package/dist-es/commands/DeleteAccountPasswordPolicyCommand.js +23 -30
- package/dist-es/commands/DeleteGroupCommand.js +22 -29
- package/dist-es/commands/DeleteGroupPolicyCommand.js +22 -29
- package/dist-es/commands/DeleteInstanceProfileCommand.js +22 -29
- package/dist-es/commands/DeleteLoginProfileCommand.js +22 -29
- package/dist-es/commands/DeleteOpenIDConnectProviderCommand.js +22 -29
- package/dist-es/commands/DeletePolicyCommand.js +22 -29
- package/dist-es/commands/DeletePolicyVersionCommand.js +22 -29
- package/dist-es/commands/DeleteRoleCommand.js +22 -29
- package/dist-es/commands/DeleteRolePermissionsBoundaryCommand.js +22 -29
- package/dist-es/commands/DeleteRolePolicyCommand.js +22 -29
- package/dist-es/commands/DeleteSAMLProviderCommand.js +22 -29
- package/dist-es/commands/DeleteSSHPublicKeyCommand.js +22 -29
- package/dist-es/commands/DeleteServerCertificateCommand.js +22 -29
- package/dist-es/commands/DeleteServiceLinkedRoleCommand.js +21 -28
- package/dist-es/commands/DeleteServiceSpecificCredentialCommand.js +22 -29
- package/dist-es/commands/DeleteSigningCertificateCommand.js +22 -29
- package/dist-es/commands/DeleteUserCommand.js +22 -29
- package/dist-es/commands/DeleteUserPermissionsBoundaryCommand.js +22 -29
- package/dist-es/commands/DeleteUserPolicyCommand.js +22 -29
- package/dist-es/commands/DeleteVirtualMFADeviceCommand.js +22 -29
- package/dist-es/commands/DetachGroupPolicyCommand.js +22 -29
- package/dist-es/commands/DetachRolePolicyCommand.js +22 -29
- package/dist-es/commands/DetachUserPolicyCommand.js +22 -29
- package/dist-es/commands/EnableMFADeviceCommand.js +22 -29
- package/dist-es/commands/GenerateCredentialReportCommand.js +22 -29
- package/dist-es/commands/GenerateOrganizationsAccessReportCommand.js +21 -28
- package/dist-es/commands/GenerateServiceLastAccessedDetailsCommand.js +21 -28
- package/dist-es/commands/GetAccessKeyLastUsedCommand.js +21 -28
- package/dist-es/commands/GetAccountAuthorizationDetailsCommand.js +21 -28
- package/dist-es/commands/GetAccountPasswordPolicyCommand.js +22 -29
- package/dist-es/commands/GetAccountSummaryCommand.js +22 -29
- package/dist-es/commands/GetContextKeysForCustomPolicyCommand.js +21 -28
- package/dist-es/commands/GetContextKeysForPrincipalPolicyCommand.js +21 -28
- package/dist-es/commands/GetCredentialReportCommand.js +22 -29
- package/dist-es/commands/GetGroupCommand.js +21 -28
- package/dist-es/commands/GetGroupPolicyCommand.js +21 -28
- package/dist-es/commands/GetInstanceProfileCommand.js +21 -28
- package/dist-es/commands/GetLoginProfileCommand.js +21 -28
- package/dist-es/commands/GetOpenIDConnectProviderCommand.js +21 -28
- package/dist-es/commands/GetOrganizationsAccessReportCommand.js +21 -28
- package/dist-es/commands/GetPolicyCommand.js +21 -28
- package/dist-es/commands/GetPolicyVersionCommand.js +21 -28
- package/dist-es/commands/GetRoleCommand.js +21 -28
- package/dist-es/commands/GetRolePolicyCommand.js +21 -28
- package/dist-es/commands/GetSAMLProviderCommand.js +21 -28
- package/dist-es/commands/GetSSHPublicKeyCommand.js +21 -28
- package/dist-es/commands/GetServerCertificateCommand.js +21 -28
- package/dist-es/commands/GetServiceLastAccessedDetailsCommand.js +21 -28
- package/dist-es/commands/GetServiceLastAccessedDetailsWithEntitiesCommand.js +21 -28
- package/dist-es/commands/GetServiceLinkedRoleDeletionStatusCommand.js +21 -28
- package/dist-es/commands/GetUserCommand.js +21 -28
- package/dist-es/commands/GetUserPolicyCommand.js +21 -28
- package/dist-es/commands/ListAccessKeysCommand.js +21 -28
- package/dist-es/commands/ListAccountAliasesCommand.js +21 -28
- package/dist-es/commands/ListAttachedGroupPoliciesCommand.js +21 -28
- package/dist-es/commands/ListAttachedRolePoliciesCommand.js +21 -28
- package/dist-es/commands/ListAttachedUserPoliciesCommand.js +21 -28
- package/dist-es/commands/ListEntitiesForPolicyCommand.js +21 -28
- package/dist-es/commands/ListGroupPoliciesCommand.js +21 -28
- package/dist-es/commands/ListGroupsCommand.js +21 -28
- package/dist-es/commands/ListGroupsForUserCommand.js +21 -28
- package/dist-es/commands/ListInstanceProfileTagsCommand.js +21 -28
- package/dist-es/commands/ListInstanceProfilesCommand.js +21 -28
- package/dist-es/commands/ListInstanceProfilesForRoleCommand.js +21 -28
- package/dist-es/commands/ListMFADeviceTagsCommand.js +21 -28
- package/dist-es/commands/ListMFADevicesCommand.js +21 -28
- package/dist-es/commands/ListOpenIDConnectProviderTagsCommand.js +21 -28
- package/dist-es/commands/ListOpenIDConnectProvidersCommand.js +21 -28
- package/dist-es/commands/ListPoliciesCommand.js +21 -28
- package/dist-es/commands/ListPoliciesGrantingServiceAccessCommand.js +21 -28
- package/dist-es/commands/ListPolicyTagsCommand.js +21 -28
- package/dist-es/commands/ListPolicyVersionsCommand.js +21 -28
- package/dist-es/commands/ListRolePoliciesCommand.js +21 -28
- package/dist-es/commands/ListRoleTagsCommand.js +21 -28
- package/dist-es/commands/ListRolesCommand.js +21 -28
- package/dist-es/commands/ListSAMLProviderTagsCommand.js +21 -28
- package/dist-es/commands/ListSAMLProvidersCommand.js +21 -28
- package/dist-es/commands/ListSSHPublicKeysCommand.js +21 -28
- package/dist-es/commands/ListServerCertificateTagsCommand.js +21 -28
- package/dist-es/commands/ListServerCertificatesCommand.js +21 -28
- package/dist-es/commands/ListServiceSpecificCredentialsCommand.js +21 -28
- package/dist-es/commands/ListSigningCertificatesCommand.js +21 -28
- package/dist-es/commands/ListUserPoliciesCommand.js +21 -28
- package/dist-es/commands/ListUserTagsCommand.js +21 -28
- package/dist-es/commands/ListUsersCommand.js +21 -28
- package/dist-es/commands/ListVirtualMFADevicesCommand.js +21 -28
- package/dist-es/commands/PutGroupPolicyCommand.js +22 -29
- package/dist-es/commands/PutRolePermissionsBoundaryCommand.js +22 -29
- package/dist-es/commands/PutRolePolicyCommand.js +22 -29
- package/dist-es/commands/PutUserPermissionsBoundaryCommand.js +22 -29
- package/dist-es/commands/PutUserPolicyCommand.js +22 -29
- package/dist-es/commands/RemoveClientIDFromOpenIDConnectProviderCommand.js +22 -29
- package/dist-es/commands/RemoveRoleFromInstanceProfileCommand.js +22 -29
- package/dist-es/commands/RemoveUserFromGroupCommand.js +22 -29
- package/dist-es/commands/ResetServiceSpecificCredentialCommand.js +21 -28
- package/dist-es/commands/ResyncMFADeviceCommand.js +22 -29
- package/dist-es/commands/SetDefaultPolicyVersionCommand.js +22 -29
- package/dist-es/commands/SetSecurityTokenServicePreferencesCommand.js +22 -29
- package/dist-es/commands/SimulateCustomPolicyCommand.js +21 -28
- package/dist-es/commands/SimulatePrincipalPolicyCommand.js +21 -28
- package/dist-es/commands/TagInstanceProfileCommand.js +22 -29
- package/dist-es/commands/TagMFADeviceCommand.js +22 -29
- package/dist-es/commands/TagOpenIDConnectProviderCommand.js +22 -29
- package/dist-es/commands/TagPolicyCommand.js +22 -29
- package/dist-es/commands/TagRoleCommand.js +22 -29
- package/dist-es/commands/TagSAMLProviderCommand.js +22 -29
- package/dist-es/commands/TagServerCertificateCommand.js +22 -29
- package/dist-es/commands/TagUserCommand.js +22 -29
- package/dist-es/commands/UntagInstanceProfileCommand.js +22 -29
- package/dist-es/commands/UntagMFADeviceCommand.js +22 -29
- package/dist-es/commands/UntagOpenIDConnectProviderCommand.js +22 -29
- package/dist-es/commands/UntagPolicyCommand.js +22 -29
- package/dist-es/commands/UntagRoleCommand.js +22 -29
- package/dist-es/commands/UntagSAMLProviderCommand.js +22 -29
- package/dist-es/commands/UntagServerCertificateCommand.js +22 -29
- package/dist-es/commands/UntagUserCommand.js +22 -29
- package/dist-es/commands/UpdateAccessKeyCommand.js +22 -29
- package/dist-es/commands/UpdateAccountPasswordPolicyCommand.js +22 -29
- package/dist-es/commands/UpdateAssumeRolePolicyCommand.js +22 -29
- package/dist-es/commands/UpdateGroupCommand.js +22 -29
- package/dist-es/commands/UpdateLoginProfileCommand.js +22 -29
- package/dist-es/commands/UpdateOpenIDConnectProviderThumbprintCommand.js +22 -29
- package/dist-es/commands/UpdateRoleCommand.js +21 -28
- package/dist-es/commands/UpdateRoleDescriptionCommand.js +21 -28
- package/dist-es/commands/UpdateSAMLProviderCommand.js +21 -28
- package/dist-es/commands/UpdateSSHPublicKeyCommand.js +22 -29
- package/dist-es/commands/UpdateServerCertificateCommand.js +22 -29
- package/dist-es/commands/UpdateServiceSpecificCredentialCommand.js +22 -29
- package/dist-es/commands/UpdateSigningCertificateCommand.js +22 -29
- package/dist-es/commands/UpdateUserCommand.js +22 -29
- package/dist-es/commands/UploadSSHPublicKeyCommand.js +21 -28
- package/dist-es/commands/UploadServerCertificateCommand.js +21 -28
- package/dist-es/commands/UploadSigningCertificateCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/IAMServiceException.js +5 -10
- package/dist-es/models/models_0.js +1086 -497
- package/dist-es/models/models_1.js +152 -95
- package/dist-es/pagination/GetAccountAuthorizationDetailsPaginator.js +25 -68
- package/dist-es/pagination/GetGroupPaginator.js +25 -68
- package/dist-es/pagination/ListAccessKeysPaginator.js +25 -68
- package/dist-es/pagination/ListAccountAliasesPaginator.js +25 -68
- package/dist-es/pagination/ListAttachedGroupPoliciesPaginator.js +25 -68
- package/dist-es/pagination/ListAttachedRolePoliciesPaginator.js +25 -68
- package/dist-es/pagination/ListAttachedUserPoliciesPaginator.js +25 -68
- package/dist-es/pagination/ListEntitiesForPolicyPaginator.js +25 -68
- package/dist-es/pagination/ListGroupPoliciesPaginator.js +25 -68
- package/dist-es/pagination/ListGroupsForUserPaginator.js +25 -68
- package/dist-es/pagination/ListGroupsPaginator.js +25 -68
- package/dist-es/pagination/ListInstanceProfilesForRolePaginator.js +25 -68
- package/dist-es/pagination/ListInstanceProfilesPaginator.js +25 -68
- package/dist-es/pagination/ListMFADevicesPaginator.js +25 -68
- package/dist-es/pagination/ListPoliciesPaginator.js +25 -68
- package/dist-es/pagination/ListPolicyVersionsPaginator.js +25 -68
- package/dist-es/pagination/ListRolePoliciesPaginator.js +25 -68
- package/dist-es/pagination/ListRolesPaginator.js +25 -68
- package/dist-es/pagination/ListSSHPublicKeysPaginator.js +25 -68
- package/dist-es/pagination/ListServerCertificatesPaginator.js +25 -68
- package/dist-es/pagination/ListSigningCertificatesPaginator.js +25 -68
- package/dist-es/pagination/ListUserPoliciesPaginator.js +25 -68
- package/dist-es/pagination/ListUserTagsPaginator.js +25 -68
- package/dist-es/pagination/ListUsersPaginator.js +25 -68
- package/dist-es/pagination/ListVirtualMFADevicesPaginator.js +25 -68
- package/dist-es/pagination/SimulateCustomPolicyPaginator.js +25 -68
- package/dist-es/pagination/SimulatePrincipalPolicyPaginator.js +25 -68
- package/dist-es/protocols/Aws_query.js +9075 -12381
- package/dist-es/runtimeConfig.browser.js +26 -12
- package/dist-es/runtimeConfig.js +30 -12
- package/dist-es/runtimeConfig.native.js +8 -5
- package/dist-es/runtimeConfig.shared.js +8 -11
- package/dist-es/waiters/waitForInstanceProfileExists.js +23 -42
- package/dist-es/waiters/waitForPolicyExists.js +23 -42
- package/dist-es/waiters/waitForRoleExists.js +23 -42
- package/dist-es/waiters/waitForUserExists.js +23 -42
- package/dist-types/IAM.d.ts +4 -4
- package/dist-types/commands/DeleteLoginProfileCommand.d.ts +4 -4
- package/dist-types/models/models_0.d.ts +65 -19
- package/dist-types/ts3.4/models/models_0.d.ts +53 -35
- package/package.json +35 -36
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
1
|
import packageInfo from "../package.json";
|
|
3
2
|
import { Sha256 } from "@aws-crypto/sha256-browser";
|
|
4
3
|
import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws-sdk/config-resolver";
|
|
@@ -12,15 +11,30 @@ import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
|
|
|
12
11
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
13
12
|
import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
|
|
14
13
|
import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-browser";
|
|
15
|
-
export
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
14
|
+
export const getRuntimeConfig = (config) => {
|
|
15
|
+
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
16
|
+
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
|
17
|
+
const clientSharedValues = getSharedRuntimeConfig(config);
|
|
18
|
+
return {
|
|
19
|
+
...clientSharedValues,
|
|
20
|
+
...config,
|
|
21
|
+
runtime: "browser",
|
|
22
|
+
defaultsMode,
|
|
23
|
+
base64Decoder: config?.base64Decoder ?? fromBase64,
|
|
24
|
+
base64Encoder: config?.base64Encoder ?? toBase64,
|
|
25
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
26
|
+
credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
|
|
27
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
28
|
+
defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
29
|
+
maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
|
|
30
|
+
region: config?.region ?? invalidProvider("Region is missing"),
|
|
31
|
+
requestHandler: config?.requestHandler ?? new RequestHandler(defaultConfigProvider),
|
|
32
|
+
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
|
|
33
|
+
sha256: config?.sha256 ?? Sha256,
|
|
34
|
+
streamCollector: config?.streamCollector ?? streamCollector,
|
|
35
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
|
|
36
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
|
|
37
|
+
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
38
|
+
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|
|
39
|
+
};
|
|
26
40
|
};
|
package/dist-es/runtimeConfig.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
1
|
import packageInfo from "../package.json";
|
|
3
2
|
import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
|
|
4
3
|
import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@aws-sdk/config-resolver";
|
|
@@ -15,16 +14,35 @@ import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shar
|
|
|
15
14
|
import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
|
|
16
15
|
import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-node";
|
|
17
16
|
import { emitWarningIfUnsupportedVersion } from "@aws-sdk/smithy-client";
|
|
18
|
-
export
|
|
19
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
17
|
+
export const getRuntimeConfig = (config) => {
|
|
20
18
|
emitWarningIfUnsupportedVersion(process.version);
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
return
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
19
|
+
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
20
|
+
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
|
21
|
+
const clientSharedValues = getSharedRuntimeConfig(config);
|
|
22
|
+
return {
|
|
23
|
+
...clientSharedValues,
|
|
24
|
+
...config,
|
|
25
|
+
runtime: "node",
|
|
26
|
+
defaultsMode,
|
|
27
|
+
base64Decoder: config?.base64Decoder ?? fromBase64,
|
|
28
|
+
base64Encoder: config?.base64Encoder ?? toBase64,
|
|
29
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
30
|
+
credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider),
|
|
31
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
32
|
+
defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
33
|
+
maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
|
|
34
|
+
region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS),
|
|
35
|
+
requestHandler: config?.requestHandler ?? new RequestHandler(defaultConfigProvider),
|
|
36
|
+
retryMode: config?.retryMode ??
|
|
37
|
+
loadNodeConfig({
|
|
38
|
+
...NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
39
|
+
default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
|
|
40
|
+
}),
|
|
41
|
+
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
|
|
42
|
+
streamCollector: config?.streamCollector ?? streamCollector,
|
|
43
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
|
|
44
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
|
|
45
|
+
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
46
|
+
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|
|
47
|
+
};
|
|
30
48
|
};
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
import { __assign } from "tslib";
|
|
2
1
|
import { Sha256 } from "@aws-crypto/sha256-js";
|
|
3
2
|
import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser";
|
|
4
|
-
export
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
export const getRuntimeConfig = (config) => {
|
|
4
|
+
const browserDefaults = getBrowserRuntimeConfig(config);
|
|
5
|
+
return {
|
|
6
|
+
...browserDefaults,
|
|
7
|
+
...config,
|
|
8
|
+
runtime: "react-native",
|
|
9
|
+
sha256: config?.sha256 ?? Sha256,
|
|
10
|
+
};
|
|
8
11
|
};
|
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
import { parseUrl } from "@aws-sdk/url-parser";
|
|
2
2
|
import { defaultRegionInfoProvider } from "./endpoints";
|
|
3
|
-
export
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
urlParser: (_e = config === null || config === void 0 ? void 0 : config.urlParser) !== null && _e !== void 0 ? _e : parseUrl,
|
|
12
|
-
});
|
|
13
|
-
};
|
|
3
|
+
export const getRuntimeConfig = (config) => ({
|
|
4
|
+
apiVersion: "2010-05-08",
|
|
5
|
+
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
6
|
+
logger: config?.logger ?? {},
|
|
7
|
+
regionInfoProvider: config?.regionInfoProvider ?? defaultRegionInfoProvider,
|
|
8
|
+
serviceId: config?.serviceId ?? "IAM",
|
|
9
|
+
urlParser: config?.urlParser ?? parseUrl,
|
|
10
|
+
});
|
|
@@ -1,45 +1,26 @@
|
|
|
1
|
-
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
1
|
import { checkExceptions, createWaiter, WaiterState } from "@aws-sdk/util-waiter";
|
|
3
2
|
import { GetInstanceProfileCommand } from "../commands/GetInstanceProfileCommand";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
case 2:
|
|
16
|
-
exception_1 = _a.sent();
|
|
17
|
-
reason = exception_1;
|
|
18
|
-
if (exception_1.name && exception_1.name == "NoSuchEntityException") {
|
|
19
|
-
return [2, { state: WaiterState.RETRY, reason: reason }];
|
|
20
|
-
}
|
|
21
|
-
return [3, 3];
|
|
22
|
-
case 3: return [2, { state: WaiterState.RETRY, reason: reason }];
|
|
3
|
+
const checkState = async (client, input) => {
|
|
4
|
+
let reason;
|
|
5
|
+
try {
|
|
6
|
+
const result = await client.send(new GetInstanceProfileCommand(input));
|
|
7
|
+
reason = result;
|
|
8
|
+
return { state: WaiterState.SUCCESS, reason };
|
|
9
|
+
}
|
|
10
|
+
catch (exception) {
|
|
11
|
+
reason = exception;
|
|
12
|
+
if (exception.name && exception.name == "NoSuchEntityException") {
|
|
13
|
+
return { state: WaiterState.RETRY, reason };
|
|
23
14
|
}
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
switch (_a.label) {
|
|
37
|
-
case 0:
|
|
38
|
-
serviceDefaults = { minDelay: 1, maxDelay: 120 };
|
|
39
|
-
return [4, createWaiter(__assign(__assign({}, serviceDefaults), params), input, checkState)];
|
|
40
|
-
case 1:
|
|
41
|
-
result = _a.sent();
|
|
42
|
-
return [2, checkExceptions(result)];
|
|
43
|
-
}
|
|
44
|
-
});
|
|
45
|
-
}); };
|
|
15
|
+
}
|
|
16
|
+
return { state: WaiterState.RETRY, reason };
|
|
17
|
+
};
|
|
18
|
+
export const waitForInstanceProfileExists = async (params, input) => {
|
|
19
|
+
const serviceDefaults = { minDelay: 1, maxDelay: 120 };
|
|
20
|
+
return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
21
|
+
};
|
|
22
|
+
export const waitUntilInstanceProfileExists = async (params, input) => {
|
|
23
|
+
const serviceDefaults = { minDelay: 1, maxDelay: 120 };
|
|
24
|
+
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
25
|
+
return checkExceptions(result);
|
|
26
|
+
};
|
|
@@ -1,45 +1,26 @@
|
|
|
1
|
-
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
1
|
import { checkExceptions, createWaiter, WaiterState } from "@aws-sdk/util-waiter";
|
|
3
2
|
import { GetPolicyCommand } from "../commands/GetPolicyCommand";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
case 2:
|
|
16
|
-
exception_1 = _a.sent();
|
|
17
|
-
reason = exception_1;
|
|
18
|
-
if (exception_1.name && exception_1.name == "NoSuchEntity") {
|
|
19
|
-
return [2, { state: WaiterState.RETRY, reason: reason }];
|
|
20
|
-
}
|
|
21
|
-
return [3, 3];
|
|
22
|
-
case 3: return [2, { state: WaiterState.RETRY, reason: reason }];
|
|
3
|
+
const checkState = async (client, input) => {
|
|
4
|
+
let reason;
|
|
5
|
+
try {
|
|
6
|
+
const result = await client.send(new GetPolicyCommand(input));
|
|
7
|
+
reason = result;
|
|
8
|
+
return { state: WaiterState.SUCCESS, reason };
|
|
9
|
+
}
|
|
10
|
+
catch (exception) {
|
|
11
|
+
reason = exception;
|
|
12
|
+
if (exception.name && exception.name == "NoSuchEntity") {
|
|
13
|
+
return { state: WaiterState.RETRY, reason };
|
|
23
14
|
}
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
switch (_a.label) {
|
|
37
|
-
case 0:
|
|
38
|
-
serviceDefaults = { minDelay: 1, maxDelay: 120 };
|
|
39
|
-
return [4, createWaiter(__assign(__assign({}, serviceDefaults), params), input, checkState)];
|
|
40
|
-
case 1:
|
|
41
|
-
result = _a.sent();
|
|
42
|
-
return [2, checkExceptions(result)];
|
|
43
|
-
}
|
|
44
|
-
});
|
|
45
|
-
}); };
|
|
15
|
+
}
|
|
16
|
+
return { state: WaiterState.RETRY, reason };
|
|
17
|
+
};
|
|
18
|
+
export const waitForPolicyExists = async (params, input) => {
|
|
19
|
+
const serviceDefaults = { minDelay: 1, maxDelay: 120 };
|
|
20
|
+
return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
21
|
+
};
|
|
22
|
+
export const waitUntilPolicyExists = async (params, input) => {
|
|
23
|
+
const serviceDefaults = { minDelay: 1, maxDelay: 120 };
|
|
24
|
+
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
25
|
+
return checkExceptions(result);
|
|
26
|
+
};
|
|
@@ -1,45 +1,26 @@
|
|
|
1
|
-
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
1
|
import { checkExceptions, createWaiter, WaiterState } from "@aws-sdk/util-waiter";
|
|
3
2
|
import { GetRoleCommand } from "../commands/GetRoleCommand";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
case 2:
|
|
16
|
-
exception_1 = _a.sent();
|
|
17
|
-
reason = exception_1;
|
|
18
|
-
if (exception_1.name && exception_1.name == "NoSuchEntity") {
|
|
19
|
-
return [2, { state: WaiterState.RETRY, reason: reason }];
|
|
20
|
-
}
|
|
21
|
-
return [3, 3];
|
|
22
|
-
case 3: return [2, { state: WaiterState.RETRY, reason: reason }];
|
|
3
|
+
const checkState = async (client, input) => {
|
|
4
|
+
let reason;
|
|
5
|
+
try {
|
|
6
|
+
const result = await client.send(new GetRoleCommand(input));
|
|
7
|
+
reason = result;
|
|
8
|
+
return { state: WaiterState.SUCCESS, reason };
|
|
9
|
+
}
|
|
10
|
+
catch (exception) {
|
|
11
|
+
reason = exception;
|
|
12
|
+
if (exception.name && exception.name == "NoSuchEntity") {
|
|
13
|
+
return { state: WaiterState.RETRY, reason };
|
|
23
14
|
}
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
switch (_a.label) {
|
|
37
|
-
case 0:
|
|
38
|
-
serviceDefaults = { minDelay: 1, maxDelay: 120 };
|
|
39
|
-
return [4, createWaiter(__assign(__assign({}, serviceDefaults), params), input, checkState)];
|
|
40
|
-
case 1:
|
|
41
|
-
result = _a.sent();
|
|
42
|
-
return [2, checkExceptions(result)];
|
|
43
|
-
}
|
|
44
|
-
});
|
|
45
|
-
}); };
|
|
15
|
+
}
|
|
16
|
+
return { state: WaiterState.RETRY, reason };
|
|
17
|
+
};
|
|
18
|
+
export const waitForRoleExists = async (params, input) => {
|
|
19
|
+
const serviceDefaults = { minDelay: 1, maxDelay: 120 };
|
|
20
|
+
return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
21
|
+
};
|
|
22
|
+
export const waitUntilRoleExists = async (params, input) => {
|
|
23
|
+
const serviceDefaults = { minDelay: 1, maxDelay: 120 };
|
|
24
|
+
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
25
|
+
return checkExceptions(result);
|
|
26
|
+
};
|
|
@@ -1,45 +1,26 @@
|
|
|
1
|
-
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
1
|
import { checkExceptions, createWaiter, WaiterState } from "@aws-sdk/util-waiter";
|
|
3
2
|
import { GetUserCommand } from "../commands/GetUserCommand";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
case 2:
|
|
16
|
-
exception_1 = _a.sent();
|
|
17
|
-
reason = exception_1;
|
|
18
|
-
if (exception_1.name && exception_1.name == "NoSuchEntity") {
|
|
19
|
-
return [2, { state: WaiterState.RETRY, reason: reason }];
|
|
20
|
-
}
|
|
21
|
-
return [3, 3];
|
|
22
|
-
case 3: return [2, { state: WaiterState.RETRY, reason: reason }];
|
|
3
|
+
const checkState = async (client, input) => {
|
|
4
|
+
let reason;
|
|
5
|
+
try {
|
|
6
|
+
const result = await client.send(new GetUserCommand(input));
|
|
7
|
+
reason = result;
|
|
8
|
+
return { state: WaiterState.SUCCESS, reason };
|
|
9
|
+
}
|
|
10
|
+
catch (exception) {
|
|
11
|
+
reason = exception;
|
|
12
|
+
if (exception.name && exception.name == "NoSuchEntity") {
|
|
13
|
+
return { state: WaiterState.RETRY, reason };
|
|
23
14
|
}
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
switch (_a.label) {
|
|
37
|
-
case 0:
|
|
38
|
-
serviceDefaults = { minDelay: 1, maxDelay: 120 };
|
|
39
|
-
return [4, createWaiter(__assign(__assign({}, serviceDefaults), params), input, checkState)];
|
|
40
|
-
case 1:
|
|
41
|
-
result = _a.sent();
|
|
42
|
-
return [2, checkExceptions(result)];
|
|
43
|
-
}
|
|
44
|
-
});
|
|
45
|
-
}); };
|
|
15
|
+
}
|
|
16
|
+
return { state: WaiterState.RETRY, reason };
|
|
17
|
+
};
|
|
18
|
+
export const waitForUserExists = async (params, input) => {
|
|
19
|
+
const serviceDefaults = { minDelay: 1, maxDelay: 120 };
|
|
20
|
+
return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
21
|
+
};
|
|
22
|
+
export const waitUntilUserExists = async (params, input) => {
|
|
23
|
+
const serviceDefaults = { minDelay: 1, maxDelay: 120 };
|
|
24
|
+
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
25
|
+
return checkExceptions(result);
|
|
26
|
+
};
|
package/dist-types/IAM.d.ts
CHANGED
|
@@ -544,18 +544,18 @@ export declare class IAM extends IAMClient {
|
|
|
544
544
|
deleteInstanceProfile(args: DeleteInstanceProfileCommandInput, cb: (err: any, data?: DeleteInstanceProfileCommandOutput) => void): void;
|
|
545
545
|
deleteInstanceProfile(args: DeleteInstanceProfileCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteInstanceProfileCommandOutput) => void): void;
|
|
546
546
|
/**
|
|
547
|
-
* <p>Deletes the password for the specified IAM user,
|
|
548
|
-
*
|
|
547
|
+
* <p>Deletes the password for the specified IAM user, For more information, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_passwords_admin-change-user.html">Managing
|
|
548
|
+
* passwords for IAM users</a>.</p>
|
|
549
549
|
* <p>You can use the CLI, the Amazon Web Services API, or the <b>Users</b>
|
|
550
550
|
* page in the IAM console to delete a password for any IAM user. You can use <a>ChangePassword</a> to update, but not delete, your own password in the
|
|
551
551
|
* <b>My Security Credentials</b> page in the
|
|
552
552
|
* Amazon Web Services Management Console.</p>
|
|
553
553
|
* <important>
|
|
554
|
-
* <p>
|
|
554
|
+
* <p>Deleting a user's password does not prevent a user from accessing Amazon Web Services through
|
|
555
555
|
* the command line interface or the API. To prevent all user access, you must also
|
|
556
556
|
* either make any access keys inactive or delete them. For more information about
|
|
557
557
|
* making keys inactive or deleting them, see <a>UpdateAccessKey</a> and
|
|
558
|
-
* <a>DeleteAccessKey</a
|
|
558
|
+
* <a>DeleteAccessKey</a>.</p>
|
|
559
559
|
* </important>
|
|
560
560
|
*/
|
|
561
561
|
deleteLoginProfile(args: DeleteLoginProfileCommandInput, options?: __HttpHandlerOptions): Promise<DeleteLoginProfileCommandOutput>;
|
|
@@ -7,18 +7,18 @@ export interface DeleteLoginProfileCommandInput extends DeleteLoginProfileReques
|
|
|
7
7
|
export interface DeleteLoginProfileCommandOutput extends __MetadataBearer {
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
* <p>Deletes the password for the specified IAM user,
|
|
11
|
-
*
|
|
10
|
+
* <p>Deletes the password for the specified IAM user, For more information, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_passwords_admin-change-user.html">Managing
|
|
11
|
+
* passwords for IAM users</a>.</p>
|
|
12
12
|
* <p>You can use the CLI, the Amazon Web Services API, or the <b>Users</b>
|
|
13
13
|
* page in the IAM console to delete a password for any IAM user. You can use <a>ChangePassword</a> to update, but not delete, your own password in the
|
|
14
14
|
* <b>My Security Credentials</b> page in the
|
|
15
15
|
* Amazon Web Services Management Console.</p>
|
|
16
16
|
* <important>
|
|
17
|
-
* <p>
|
|
17
|
+
* <p>Deleting a user's password does not prevent a user from accessing Amazon Web Services through
|
|
18
18
|
* the command line interface or the API. To prevent all user access, you must also
|
|
19
19
|
* either make any access keys inactive or delete them. For more information about
|
|
20
20
|
* making keys inactive or deleting them, see <a>UpdateAccessKey</a> and
|
|
21
|
-
* <a>DeleteAccessKey</a
|
|
21
|
+
* <a>DeleteAccessKey</a>.</p>
|
|
22
22
|
* </important>
|
|
23
23
|
* @example
|
|
24
24
|
* Use a bare-bones client and the command you need to make an API call.
|