@aws-sdk/client-iam 3.774.0 → 3.777.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/auth/httpAuthSchemeProvider.js +1 -3
- package/dist-cjs/endpoint/ruleset.js +3 -3
- package/dist-cjs/index.js +17 -18
- package/dist-es/IAMClient.js +2 -1
- package/dist-es/auth/httpAuthSchemeProvider.js +1 -3
- package/dist-es/endpoint/EndpointParameters.js +2 -3
- package/dist-es/endpoint/ruleset.js +3 -3
- package/dist-es/runtimeExtensions.js +2 -14
- package/dist-types/commands/AddClientIDToOpenIDConnectProviderCommand.d.ts +8 -5
- package/dist-types/commands/AddRoleToInstanceProfileCommand.d.ts +8 -5
- package/dist-types/commands/AddUserToGroupCommand.d.ts +8 -5
- package/dist-types/commands/AttachGroupPolicyCommand.d.ts +8 -5
- package/dist-types/commands/AttachRolePolicyCommand.d.ts +8 -5
- package/dist-types/commands/AttachUserPolicyCommand.d.ts +8 -5
- package/dist-types/commands/ChangePasswordCommand.d.ts +8 -5
- package/dist-types/commands/CreateAccessKeyCommand.d.ts +10 -10
- package/dist-types/commands/CreateAccountAliasCommand.d.ts +7 -4
- package/dist-types/commands/CreateGroupCommand.d.ts +10 -10
- package/dist-types/commands/CreateInstanceProfileCommand.d.ts +11 -11
- package/dist-types/commands/CreateLoginProfileCommand.d.ts +10 -10
- package/dist-types/commands/CreateOpenIDConnectProviderCommand.d.ts +7 -7
- package/dist-types/commands/CreatePolicyCommand.d.ts +1 -0
- package/dist-types/commands/CreatePolicyVersionCommand.d.ts +1 -0
- package/dist-types/commands/CreateRoleCommand.d.ts +13 -13
- package/dist-types/commands/CreateSAMLProviderCommand.d.ts +1 -0
- package/dist-types/commands/CreateServiceLinkedRoleCommand.d.ts +1 -0
- package/dist-types/commands/CreateServiceSpecificCredentialCommand.d.ts +1 -0
- package/dist-types/commands/CreateUserCommand.d.ts +10 -10
- package/dist-types/commands/CreateVirtualMFADeviceCommand.d.ts +1 -0
- package/dist-types/commands/DeactivateMFADeviceCommand.d.ts +1 -0
- package/dist-types/commands/DeleteAccessKeyCommand.d.ts +8 -5
- package/dist-types/commands/DeleteAccountAliasCommand.d.ts +7 -4
- package/dist-types/commands/DeleteAccountPasswordPolicyCommand.d.ts +7 -4
- package/dist-types/commands/DeleteGroupCommand.d.ts +1 -0
- package/dist-types/commands/DeleteGroupPolicyCommand.d.ts +8 -5
- package/dist-types/commands/DeleteInstanceProfileCommand.d.ts +7 -4
- package/dist-types/commands/DeleteLoginProfileCommand.d.ts +7 -4
- package/dist-types/commands/DeleteOpenIDConnectProviderCommand.d.ts +1 -0
- package/dist-types/commands/DeletePolicyCommand.d.ts +1 -0
- package/dist-types/commands/DeletePolicyVersionCommand.d.ts +1 -0
- package/dist-types/commands/DeleteRoleCommand.d.ts +7 -4
- package/dist-types/commands/DeleteRolePermissionsBoundaryCommand.d.ts +1 -0
- package/dist-types/commands/DeleteRolePolicyCommand.d.ts +8 -5
- package/dist-types/commands/DeleteSAMLProviderCommand.d.ts +1 -0
- package/dist-types/commands/DeleteSSHPublicKeyCommand.d.ts +1 -0
- package/dist-types/commands/DeleteServerCertificateCommand.d.ts +1 -0
- package/dist-types/commands/DeleteServiceLinkedRoleCommand.d.ts +1 -0
- package/dist-types/commands/DeleteServiceSpecificCredentialCommand.d.ts +1 -0
- package/dist-types/commands/DeleteSigningCertificateCommand.d.ts +8 -5
- package/dist-types/commands/DeleteUserCommand.d.ts +7 -4
- package/dist-types/commands/DeleteUserPermissionsBoundaryCommand.d.ts +1 -0
- package/dist-types/commands/DeleteUserPolicyCommand.d.ts +8 -5
- package/dist-types/commands/DeleteVirtualMFADeviceCommand.d.ts +7 -4
- package/dist-types/commands/DetachGroupPolicyCommand.d.ts +1 -0
- package/dist-types/commands/DetachRolePolicyCommand.d.ts +1 -0
- package/dist-types/commands/DetachUserPolicyCommand.d.ts +1 -0
- package/dist-types/commands/DisableOrganizationsRootCredentialsManagementCommand.d.ts +6 -6
- package/dist-types/commands/DisableOrganizationsRootSessionsCommand.d.ts +6 -6
- package/dist-types/commands/EnableMFADeviceCommand.d.ts +1 -0
- package/dist-types/commands/EnableOrganizationsRootCredentialsManagementCommand.d.ts +6 -6
- package/dist-types/commands/EnableOrganizationsRootSessionsCommand.d.ts +6 -6
- package/dist-types/commands/GenerateCredentialReportCommand.d.ts +1 -0
- package/dist-types/commands/GenerateOrganizationsAccessReportCommand.d.ts +5 -5
- package/dist-types/commands/GenerateServiceLastAccessedDetailsCommand.d.ts +5 -5
- package/dist-types/commands/GetAccessKeyLastUsedCommand.d.ts +1 -0
- package/dist-types/commands/GetAccountAuthorizationDetailsCommand.d.ts +1 -0
- package/dist-types/commands/GetAccountPasswordPolicyCommand.d.ts +15 -15
- package/dist-types/commands/GetAccountSummaryCommand.d.ts +31 -31
- package/dist-types/commands/GetContextKeysForCustomPolicyCommand.d.ts +1 -0
- package/dist-types/commands/GetContextKeysForPrincipalPolicyCommand.d.ts +1 -0
- package/dist-types/commands/GetCredentialReportCommand.d.ts +1 -0
- package/dist-types/commands/GetGroupCommand.d.ts +1 -0
- package/dist-types/commands/GetGroupPolicyCommand.d.ts +1 -0
- package/dist-types/commands/GetInstanceProfileCommand.d.ts +17 -17
- package/dist-types/commands/GetLoginProfileCommand.d.ts +7 -7
- package/dist-types/commands/GetMFADeviceCommand.d.ts +1 -0
- package/dist-types/commands/GetOpenIDConnectProviderCommand.d.ts +1 -0
- package/dist-types/commands/GetOrganizationsAccessReportCommand.d.ts +26 -26
- package/dist-types/commands/GetPolicyCommand.d.ts +1 -0
- package/dist-types/commands/GetPolicyVersionCommand.d.ts +1 -0
- package/dist-types/commands/GetRoleCommand.d.ts +15 -15
- package/dist-types/commands/GetRolePolicyCommand.d.ts +1 -0
- package/dist-types/commands/GetSAMLProviderCommand.d.ts +1 -0
- package/dist-types/commands/GetSSHPublicKeyCommand.d.ts +1 -0
- package/dist-types/commands/GetServerCertificateCommand.d.ts +1 -0
- package/dist-types/commands/GetServiceLastAccessedDetailsCommand.d.ts +17 -17
- package/dist-types/commands/GetServiceLastAccessedDetailsWithEntitiesCommand.d.ts +23 -23
- package/dist-types/commands/GetServiceLinkedRoleDeletionStatusCommand.d.ts +1 -0
- package/dist-types/commands/GetUserCommand.d.ts +10 -10
- package/dist-types/commands/GetUserPolicyCommand.d.ts +1 -0
- package/dist-types/commands/ListAccessKeysCommand.d.ts +13 -13
- package/dist-types/commands/ListAccountAliasesCommand.d.ts +5 -5
- package/dist-types/commands/ListAttachedGroupPoliciesCommand.d.ts +1 -0
- package/dist-types/commands/ListAttachedRolePoliciesCommand.d.ts +1 -0
- package/dist-types/commands/ListAttachedUserPoliciesCommand.d.ts +1 -0
- package/dist-types/commands/ListEntitiesForPolicyCommand.d.ts +1 -0
- package/dist-types/commands/ListGroupPoliciesCommand.d.ts +5 -5
- package/dist-types/commands/ListGroupsCommand.d.ts +20 -20
- package/dist-types/commands/ListGroupsForUserCommand.d.ts +15 -15
- package/dist-types/commands/ListInstanceProfileTagsCommand.d.ts +1 -0
- package/dist-types/commands/ListInstanceProfilesCommand.d.ts +1 -0
- package/dist-types/commands/ListInstanceProfilesForRoleCommand.d.ts +1 -0
- package/dist-types/commands/ListMFADeviceTagsCommand.d.ts +1 -0
- package/dist-types/commands/ListMFADevicesCommand.d.ts +1 -0
- package/dist-types/commands/ListOpenIDConnectProviderTagsCommand.d.ts +1 -0
- package/dist-types/commands/ListOpenIDConnectProvidersCommand.d.ts +1 -0
- package/dist-types/commands/ListOrganizationsFeaturesCommand.d.ts +6 -6
- package/dist-types/commands/ListPoliciesCommand.d.ts +1 -0
- package/dist-types/commands/ListPoliciesGrantingServiceAccessCommand.d.ts +21 -21
- package/dist-types/commands/ListPolicyTagsCommand.d.ts +1 -0
- package/dist-types/commands/ListPolicyVersionsCommand.d.ts +1 -0
- package/dist-types/commands/ListRolePoliciesCommand.d.ts +1 -0
- package/dist-types/commands/ListRoleTagsCommand.d.ts +10 -10
- package/dist-types/commands/ListRolesCommand.d.ts +1 -0
- package/dist-types/commands/ListSAMLProviderTagsCommand.d.ts +1 -0
- package/dist-types/commands/ListSAMLProvidersCommand.d.ts +1 -0
- package/dist-types/commands/ListSSHPublicKeysCommand.d.ts +1 -0
- package/dist-types/commands/ListServerCertificateTagsCommand.d.ts +1 -0
- package/dist-types/commands/ListServerCertificatesCommand.d.ts +1 -0
- package/dist-types/commands/ListServiceSpecificCredentialsCommand.d.ts +1 -0
- package/dist-types/commands/ListSigningCertificatesCommand.d.ts +10 -10
- package/dist-types/commands/ListUserPoliciesCommand.d.ts +1 -0
- package/dist-types/commands/ListUserTagsCommand.d.ts +10 -10
- package/dist-types/commands/ListUsersCommand.d.ts +17 -17
- package/dist-types/commands/ListVirtualMFADevicesCommand.d.ts +7 -7
- package/dist-types/commands/PutGroupPolicyCommand.d.ts +9 -6
- package/dist-types/commands/PutRolePermissionsBoundaryCommand.d.ts +1 -0
- package/dist-types/commands/PutRolePolicyCommand.d.ts +9 -6
- package/dist-types/commands/PutUserPermissionsBoundaryCommand.d.ts +1 -0
- package/dist-types/commands/PutUserPolicyCommand.d.ts +9 -6
- package/dist-types/commands/RemoveClientIDFromOpenIDConnectProviderCommand.d.ts +1 -0
- package/dist-types/commands/RemoveRoleFromInstanceProfileCommand.d.ts +8 -5
- package/dist-types/commands/RemoveUserFromGroupCommand.d.ts +8 -5
- package/dist-types/commands/ResetServiceSpecificCredentialCommand.d.ts +1 -0
- package/dist-types/commands/ResyncMFADeviceCommand.d.ts +1 -0
- package/dist-types/commands/SetDefaultPolicyVersionCommand.d.ts +1 -0
- package/dist-types/commands/SetSecurityTokenServicePreferencesCommand.d.ts +7 -4
- package/dist-types/commands/SimulateCustomPolicyCommand.d.ts +1 -0
- package/dist-types/commands/SimulatePrincipalPolicyCommand.d.ts +1 -0
- package/dist-types/commands/TagInstanceProfileCommand.d.ts +1 -0
- package/dist-types/commands/TagMFADeviceCommand.d.ts +1 -0
- package/dist-types/commands/TagOpenIDConnectProviderCommand.d.ts +1 -0
- package/dist-types/commands/TagPolicyCommand.d.ts +1 -0
- package/dist-types/commands/TagRoleCommand.d.ts +12 -9
- package/dist-types/commands/TagSAMLProviderCommand.d.ts +1 -0
- package/dist-types/commands/TagServerCertificateCommand.d.ts +1 -0
- package/dist-types/commands/TagUserCommand.d.ts +12 -9
- package/dist-types/commands/UntagInstanceProfileCommand.d.ts +1 -0
- package/dist-types/commands/UntagMFADeviceCommand.d.ts +1 -0
- package/dist-types/commands/UntagOpenIDConnectProviderCommand.d.ts +1 -0
- package/dist-types/commands/UntagPolicyCommand.d.ts +1 -0
- package/dist-types/commands/UntagRoleCommand.d.ts +8 -5
- package/dist-types/commands/UntagSAMLProviderCommand.d.ts +1 -0
- package/dist-types/commands/UntagServerCertificateCommand.d.ts +1 -0
- package/dist-types/commands/UntagUserCommand.d.ts +8 -5
- package/dist-types/commands/UpdateAccessKeyCommand.d.ts +9 -6
- package/dist-types/commands/UpdateAccountPasswordPolicyCommand.d.ts +8 -5
- package/dist-types/commands/UpdateAssumeRolePolicyCommand.d.ts +8 -5
- package/dist-types/commands/UpdateGroupCommand.d.ts +8 -5
- package/dist-types/commands/UpdateLoginProfileCommand.d.ts +8 -5
- package/dist-types/commands/UpdateOpenIDConnectProviderThumbprintCommand.d.ts +1 -0
- package/dist-types/commands/UpdateRoleCommand.d.ts +1 -0
- package/dist-types/commands/UpdateRoleDescriptionCommand.d.ts +1 -0
- package/dist-types/commands/UpdateSAMLProviderCommand.d.ts +1 -0
- package/dist-types/commands/UpdateSSHPublicKeyCommand.d.ts +1 -0
- package/dist-types/commands/UpdateServerCertificateCommand.d.ts +1 -0
- package/dist-types/commands/UpdateServiceSpecificCredentialCommand.d.ts +1 -0
- package/dist-types/commands/UpdateSigningCertificateCommand.d.ts +9 -6
- package/dist-types/commands/UpdateUserCommand.d.ts +8 -5
- package/dist-types/commands/UploadSSHPublicKeyCommand.d.ts +1 -0
- package/dist-types/commands/UploadServerCertificateCommand.d.ts +14 -14
- package/dist-types/commands/UploadSigningCertificateCommand.d.ts +11 -11
- package/dist-types/endpoint/EndpointParameters.d.ts +2 -2
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +2 -2
- package/package.json +34 -34
|
@@ -40,8 +40,6 @@ const defaultIAMHttpAuthSchemeProvider = (authParameters) => {
|
|
|
40
40
|
exports.defaultIAMHttpAuthSchemeProvider = defaultIAMHttpAuthSchemeProvider;
|
|
41
41
|
const resolveHttpAuthSchemeConfig = (config) => {
|
|
42
42
|
const config_0 = (0, core_1.resolveAwsSdkSigV4Config)(config);
|
|
43
|
-
return {
|
|
44
|
-
...config_0,
|
|
45
|
-
};
|
|
43
|
+
return Object.assign(config_0, {});
|
|
46
44
|
};
|
|
47
45
|
exports.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ruleSet = void 0;
|
|
4
|
-
const
|
|
5
|
-
const a = true, b = "isSet", c = "booleanEquals", d = "error", e = "endpoint", f = "tree", g = "PartitionResult", h = "stringEquals", i = "sigv4", j =
|
|
6
|
-
const _data = { version: "1.0", parameters: {
|
|
4
|
+
const H = "required", I = "fn", J = "argv", K = "ref", L = "properties", M = "headers", N = "authSchemes", O = "name", P = "signingRegion";
|
|
5
|
+
const a = true, b = "isSet", c = "booleanEquals", d = "error", e = "endpoint", f = "tree", g = "PartitionResult", h = "stringEquals", i = "sigv4", j = { [H]: true, "default": false, "type": "Boolean" }, k = { [H]: false, "type": "String" }, l = { [K]: "Endpoint" }, m = { [I]: c, [J]: [{ [K]: "UseFIPS" }, true] }, n = { [I]: c, [J]: [{ [K]: "UseDualStack" }, true] }, o = {}, p = { [I]: h, [J]: [{ [I]: "getAttr", [J]: [{ [K]: g }, "name"] }, "aws"] }, q = { [I]: "getAttr", [J]: [{ [K]: g }, "name"] }, r = { [I]: c, [J]: [{ [K]: "UseFIPS" }, false] }, s = { [N]: [{ [O]: i, [P]: "us-east-1" }] }, t = { [I]: h, [J]: [q, "aws-cn"] }, u = { [N]: [{ [O]: i, [P]: "cn-north-1" }] }, v = { [I]: c, [J]: [{ [K]: "UseDualStack" }, false] }, w = { [I]: h, [J]: [q, "aws-us-gov"] }, x = { "url": "https://iam.us-gov.api.aws", [L]: { [N]: [{ [O]: i, [P]: "us-gov-west-1" }] }, [M]: {} }, y = { "url": "https://iam.us-gov.amazonaws.com", [L]: { [N]: [{ [O]: i, [P]: "us-gov-west-1" }] }, [M]: {} }, z = { [I]: h, [J]: [q, "aws-iso"] }, A = { [N]: [{ [O]: i, [P]: "us-iso-east-1" }] }, B = { [I]: h, [J]: [q, "aws-iso-b"] }, C = { [N]: [{ [O]: i, [P]: "us-isob-east-1" }] }, D = { [I]: "getAttr", [J]: [{ [K]: g }, "supportsFIPS"] }, E = { [I]: c, [J]: [true, { [I]: "getAttr", [J]: [{ [K]: g }, "supportsDualStack"] }] }, F = { [N]: [{ [O]: i, [P]: "{PartitionResult#implicitGlobalRegion}" }] }, G = [{ [K]: "Region" }];
|
|
6
|
+
const _data = { version: "1.0", parameters: { UseDualStack: j, UseFIPS: j, Endpoint: k, Region: k }, rules: [{ conditions: [{ [I]: b, [J]: [l] }], rules: [{ conditions: [m], error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d }, { rules: [{ conditions: [n], error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d }, { endpoint: { url: l, [L]: o, [M]: o }, type: e }], type: f }], type: f }, { rules: [{ conditions: [{ [I]: b, [J]: G }], rules: [{ conditions: [{ [I]: "aws.partition", [J]: G, assign: g }], rules: [{ conditions: [p, r, n], endpoint: { url: "https://iam.global.api.aws", [L]: s, [M]: o }, type: e }, { conditions: [p, m, n], endpoint: { url: "https://iam-fips.global.api.aws", [L]: s, [M]: o }, type: e }, { conditions: [t, r, n], endpoint: { url: "https://iam.global.api.amazonwebservices.com.cn", [L]: u, [M]: o }, type: e }, { conditions: [t, r, v], endpoint: { url: "https://iam.cn-north-1.amazonaws.com.cn", [L]: u, [M]: o }, type: e }, { conditions: [w, r, n], endpoint: x, type: e }, { conditions: [w, m, n], endpoint: x, type: e }, { conditions: [w, r, v], endpoint: y, type: e }, { conditions: [w, m, v], endpoint: y, type: e }, { conditions: [z, r, v], endpoint: { url: "https://iam.us-iso-east-1.c2s.ic.gov", [L]: A, [M]: o }, type: e }, { conditions: [z, m, v], endpoint: { url: "https://iam-fips.us-iso-east-1.c2s.ic.gov", [L]: A, [M]: o }, type: e }, { conditions: [B, r, v], endpoint: { url: "https://iam.us-isob-east-1.sc2s.sgov.gov", [L]: C, [M]: o }, type: e }, { conditions: [B, m, v], endpoint: { url: "https://iam-fips.us-isob-east-1.sc2s.sgov.gov", [L]: C, [M]: o }, type: e }, { conditions: [{ [I]: h, [J]: [q, "aws-iso-e"] }, r, v], endpoint: { url: "https://iam.eu-isoe-west-1.cloud.adc-e.uk", [L]: { [N]: [{ [O]: i, [P]: "eu-isoe-west-1" }] }, [M]: o }, type: e }, { conditions: [{ [I]: h, [J]: [q, "aws-iso-f"] }, r, v], endpoint: { url: "https://iam.us-isof-south-1.csp.hci.ic.gov", [L]: { [N]: [{ [O]: i, [P]: "us-isof-south-1" }] }, [M]: o }, type: e }, { conditions: [m, n], rules: [{ conditions: [{ [I]: c, [J]: [a, D] }, E], rules: [{ endpoint: { url: "https://iam-fips.{PartitionResult#dualStackDnsSuffix}", [L]: F, [M]: o }, type: e }], type: f }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d }], type: f }, { conditions: [m, v], rules: [{ conditions: [{ [I]: c, [J]: [D, a] }], rules: [{ endpoint: { url: "https://iam-fips.{PartitionResult#dnsSuffix}", [L]: F, [M]: o }, type: e }], type: f }, { error: "FIPS is enabled but this partition does not support FIPS", type: d }], type: f }, { conditions: [r, n], rules: [{ conditions: [E], rules: [{ endpoint: { url: "https://iam.{PartitionResult#dualStackDnsSuffix}", [L]: F, [M]: o }, type: e }], type: f }, { error: "DualStack is enabled but this partition does not support DualStack", type: d }], type: f }, { endpoint: { url: "https://iam.{PartitionResult#dnsSuffix}", [L]: F, [M]: o }, type: e }], type: f }], type: f }, { error: "Invalid Configuration: Missing Region", type: d }], type: f }] };
|
|
7
7
|
exports.ruleSet = _data;
|
package/dist-cjs/index.js
CHANGED
|
@@ -318,12 +318,11 @@ var import_httpAuthSchemeProvider = require("./auth/httpAuthSchemeProvider");
|
|
|
318
318
|
|
|
319
319
|
// src/endpoint/EndpointParameters.ts
|
|
320
320
|
var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
|
|
321
|
-
return {
|
|
322
|
-
...options,
|
|
321
|
+
return Object.assign(options, {
|
|
323
322
|
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
324
323
|
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
325
324
|
defaultSigningName: "iam"
|
|
326
|
-
};
|
|
325
|
+
});
|
|
327
326
|
}, "resolveClientEndpointParameters");
|
|
328
327
|
var commonParams = {
|
|
329
328
|
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
@@ -380,22 +379,21 @@ var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => {
|
|
|
380
379
|
}, "resolveHttpAuthRuntimeConfig");
|
|
381
380
|
|
|
382
381
|
// src/runtimeExtensions.ts
|
|
383
|
-
var asPartial = /* @__PURE__ */ __name((t) => t, "asPartial");
|
|
384
382
|
var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
|
|
385
|
-
const extensionConfiguration =
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
383
|
+
const extensionConfiguration = Object.assign(
|
|
384
|
+
(0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig),
|
|
385
|
+
(0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig),
|
|
386
|
+
(0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig),
|
|
387
|
+
getHttpAuthExtensionConfiguration(runtimeConfig)
|
|
388
|
+
);
|
|
391
389
|
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
392
|
-
return
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
390
|
+
return Object.assign(
|
|
391
|
+
runtimeConfig,
|
|
392
|
+
(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
393
|
+
(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
394
|
+
(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
|
|
395
|
+
resolveHttpAuthRuntimeConfig(extensionConfiguration)
|
|
396
|
+
);
|
|
399
397
|
}, "resolveRuntimeExtensions");
|
|
400
398
|
|
|
401
399
|
// src/IAMClient.ts
|
|
@@ -409,6 +407,8 @@ var IAMClient = class extends import_smithy_client.Client {
|
|
|
409
407
|
config;
|
|
410
408
|
constructor(...[configuration]) {
|
|
411
409
|
const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
|
|
410
|
+
super(_config_0);
|
|
411
|
+
this.initConfig = _config_0;
|
|
412
412
|
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
413
413
|
const _config_2 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_1);
|
|
414
414
|
const _config_3 = (0, import_middleware_retry.resolveRetryConfig)(_config_2);
|
|
@@ -417,7 +417,6 @@ var IAMClient = class extends import_smithy_client.Client {
|
|
|
417
417
|
const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5);
|
|
418
418
|
const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);
|
|
419
419
|
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
420
|
-
super(_config_8);
|
|
421
420
|
this.config = _config_8;
|
|
422
421
|
this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
|
|
423
422
|
this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
|
package/dist-es/IAMClient.js
CHANGED
|
@@ -17,6 +17,8 @@ export class IAMClient extends __Client {
|
|
|
17
17
|
config;
|
|
18
18
|
constructor(...[configuration]) {
|
|
19
19
|
const _config_0 = __getRuntimeConfig(configuration || {});
|
|
20
|
+
super(_config_0);
|
|
21
|
+
this.initConfig = _config_0;
|
|
20
22
|
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
21
23
|
const _config_2 = resolveUserAgentConfig(_config_1);
|
|
22
24
|
const _config_3 = resolveRetryConfig(_config_2);
|
|
@@ -25,7 +27,6 @@ export class IAMClient extends __Client {
|
|
|
25
27
|
const _config_6 = resolveEndpointConfig(_config_5);
|
|
26
28
|
const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
|
|
27
29
|
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
28
|
-
super(_config_8);
|
|
29
30
|
this.config = _config_8;
|
|
30
31
|
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
31
32
|
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
@@ -35,7 +35,5 @@ export const defaultIAMHttpAuthSchemeProvider = (authParameters) => {
|
|
|
35
35
|
};
|
|
36
36
|
export const resolveHttpAuthSchemeConfig = (config) => {
|
|
37
37
|
const config_0 = resolveAwsSdkSigV4Config(config);
|
|
38
|
-
return {
|
|
39
|
-
...config_0,
|
|
40
|
-
};
|
|
38
|
+
return Object.assign(config_0, {});
|
|
41
39
|
};
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
export const resolveClientEndpointParameters = (options) => {
|
|
2
|
-
return {
|
|
3
|
-
...options,
|
|
2
|
+
return Object.assign(options, {
|
|
4
3
|
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
5
4
|
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
6
5
|
defaultSigningName: "iam",
|
|
7
|
-
};
|
|
6
|
+
});
|
|
8
7
|
};
|
|
9
8
|
export const commonParams = {
|
|
10
9
|
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
2
|
-
const a = true, b = "isSet", c = "booleanEquals", d = "error", e = "endpoint", f = "tree", g = "PartitionResult", h = "stringEquals", i = "sigv4", j =
|
|
3
|
-
const _data = { version: "1.0", parameters: {
|
|
1
|
+
const H = "required", I = "fn", J = "argv", K = "ref", L = "properties", M = "headers", N = "authSchemes", O = "name", P = "signingRegion";
|
|
2
|
+
const a = true, b = "isSet", c = "booleanEquals", d = "error", e = "endpoint", f = "tree", g = "PartitionResult", h = "stringEquals", i = "sigv4", j = { [H]: true, "default": false, "type": "Boolean" }, k = { [H]: false, "type": "String" }, l = { [K]: "Endpoint" }, m = { [I]: c, [J]: [{ [K]: "UseFIPS" }, true] }, n = { [I]: c, [J]: [{ [K]: "UseDualStack" }, true] }, o = {}, p = { [I]: h, [J]: [{ [I]: "getAttr", [J]: [{ [K]: g }, "name"] }, "aws"] }, q = { [I]: "getAttr", [J]: [{ [K]: g }, "name"] }, r = { [I]: c, [J]: [{ [K]: "UseFIPS" }, false] }, s = { [N]: [{ [O]: i, [P]: "us-east-1" }] }, t = { [I]: h, [J]: [q, "aws-cn"] }, u = { [N]: [{ [O]: i, [P]: "cn-north-1" }] }, v = { [I]: c, [J]: [{ [K]: "UseDualStack" }, false] }, w = { [I]: h, [J]: [q, "aws-us-gov"] }, x = { "url": "https://iam.us-gov.api.aws", [L]: { [N]: [{ [O]: i, [P]: "us-gov-west-1" }] }, [M]: {} }, y = { "url": "https://iam.us-gov.amazonaws.com", [L]: { [N]: [{ [O]: i, [P]: "us-gov-west-1" }] }, [M]: {} }, z = { [I]: h, [J]: [q, "aws-iso"] }, A = { [N]: [{ [O]: i, [P]: "us-iso-east-1" }] }, B = { [I]: h, [J]: [q, "aws-iso-b"] }, C = { [N]: [{ [O]: i, [P]: "us-isob-east-1" }] }, D = { [I]: "getAttr", [J]: [{ [K]: g }, "supportsFIPS"] }, E = { [I]: c, [J]: [true, { [I]: "getAttr", [J]: [{ [K]: g }, "supportsDualStack"] }] }, F = { [N]: [{ [O]: i, [P]: "{PartitionResult#implicitGlobalRegion}" }] }, G = [{ [K]: "Region" }];
|
|
3
|
+
const _data = { version: "1.0", parameters: { UseDualStack: j, UseFIPS: j, Endpoint: k, Region: k }, rules: [{ conditions: [{ [I]: b, [J]: [l] }], rules: [{ conditions: [m], error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d }, { rules: [{ conditions: [n], error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d }, { endpoint: { url: l, [L]: o, [M]: o }, type: e }], type: f }], type: f }, { rules: [{ conditions: [{ [I]: b, [J]: G }], rules: [{ conditions: [{ [I]: "aws.partition", [J]: G, assign: g }], rules: [{ conditions: [p, r, n], endpoint: { url: "https://iam.global.api.aws", [L]: s, [M]: o }, type: e }, { conditions: [p, m, n], endpoint: { url: "https://iam-fips.global.api.aws", [L]: s, [M]: o }, type: e }, { conditions: [t, r, n], endpoint: { url: "https://iam.global.api.amazonwebservices.com.cn", [L]: u, [M]: o }, type: e }, { conditions: [t, r, v], endpoint: { url: "https://iam.cn-north-1.amazonaws.com.cn", [L]: u, [M]: o }, type: e }, { conditions: [w, r, n], endpoint: x, type: e }, { conditions: [w, m, n], endpoint: x, type: e }, { conditions: [w, r, v], endpoint: y, type: e }, { conditions: [w, m, v], endpoint: y, type: e }, { conditions: [z, r, v], endpoint: { url: "https://iam.us-iso-east-1.c2s.ic.gov", [L]: A, [M]: o }, type: e }, { conditions: [z, m, v], endpoint: { url: "https://iam-fips.us-iso-east-1.c2s.ic.gov", [L]: A, [M]: o }, type: e }, { conditions: [B, r, v], endpoint: { url: "https://iam.us-isob-east-1.sc2s.sgov.gov", [L]: C, [M]: o }, type: e }, { conditions: [B, m, v], endpoint: { url: "https://iam-fips.us-isob-east-1.sc2s.sgov.gov", [L]: C, [M]: o }, type: e }, { conditions: [{ [I]: h, [J]: [q, "aws-iso-e"] }, r, v], endpoint: { url: "https://iam.eu-isoe-west-1.cloud.adc-e.uk", [L]: { [N]: [{ [O]: i, [P]: "eu-isoe-west-1" }] }, [M]: o }, type: e }, { conditions: [{ [I]: h, [J]: [q, "aws-iso-f"] }, r, v], endpoint: { url: "https://iam.us-isof-south-1.csp.hci.ic.gov", [L]: { [N]: [{ [O]: i, [P]: "us-isof-south-1" }] }, [M]: o }, type: e }, { conditions: [m, n], rules: [{ conditions: [{ [I]: c, [J]: [a, D] }, E], rules: [{ endpoint: { url: "https://iam-fips.{PartitionResult#dualStackDnsSuffix}", [L]: F, [M]: o }, type: e }], type: f }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d }], type: f }, { conditions: [m, v], rules: [{ conditions: [{ [I]: c, [J]: [D, a] }], rules: [{ endpoint: { url: "https://iam-fips.{PartitionResult#dnsSuffix}", [L]: F, [M]: o }, type: e }], type: f }, { error: "FIPS is enabled but this partition does not support FIPS", type: d }], type: f }, { conditions: [r, n], rules: [{ conditions: [E], rules: [{ endpoint: { url: "https://iam.{PartitionResult#dualStackDnsSuffix}", [L]: F, [M]: o }, type: e }], type: f }, { error: "DualStack is enabled but this partition does not support DualStack", type: d }], type: f }, { endpoint: { url: "https://iam.{PartitionResult#dnsSuffix}", [L]: F, [M]: o }, type: e }], type: f }], type: f }, { error: "Invalid Configuration: Missing Region", type: d }], type: f }] };
|
|
4
4
|
export const ruleSet = _data;
|
|
@@ -2,20 +2,8 @@ import { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfigurat
|
|
|
2
2
|
import { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig } from "@smithy/protocol-http";
|
|
3
3
|
import { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig } from "@smithy/smithy-client";
|
|
4
4
|
import { getHttpAuthExtensionConfiguration, resolveHttpAuthRuntimeConfig } from "./auth/httpAuthExtensionConfiguration";
|
|
5
|
-
const asPartial = (t) => t;
|
|
6
5
|
export const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
7
|
-
const extensionConfiguration =
|
|
8
|
-
...asPartial(getAwsRegionExtensionConfiguration(runtimeConfig)),
|
|
9
|
-
...asPartial(getDefaultExtensionConfiguration(runtimeConfig)),
|
|
10
|
-
...asPartial(getHttpHandlerExtensionConfiguration(runtimeConfig)),
|
|
11
|
-
...asPartial(getHttpAuthExtensionConfiguration(runtimeConfig)),
|
|
12
|
-
};
|
|
6
|
+
const extensionConfiguration = Object.assign(getAwsRegionExtensionConfiguration(runtimeConfig), getDefaultExtensionConfiguration(runtimeConfig), getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
|
|
13
7
|
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
14
|
-
return
|
|
15
|
-
...runtimeConfig,
|
|
16
|
-
...resolveAwsRegionExtensionConfiguration(extensionConfiguration),
|
|
17
|
-
...resolveDefaultRuntimeConfig(extensionConfiguration),
|
|
18
|
-
...resolveHttpHandlerRuntimeConfig(extensionConfiguration),
|
|
19
|
-
...resolveHttpAuthRuntimeConfig(extensionConfiguration),
|
|
20
|
-
};
|
|
8
|
+
return Object.assign(runtimeConfig, resolveAwsRegionExtensionConfiguration(extensionConfiguration), resolveDefaultRuntimeConfig(extensionConfiguration), resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
|
|
21
9
|
};
|
|
@@ -72,19 +72,22 @@ declare const AddClientIDToOpenIDConnectProviderCommand_base: {
|
|
|
72
72
|
* @throws {@link IAMServiceException}
|
|
73
73
|
* <p>Base exception class for all service exceptions from IAM service.</p>
|
|
74
74
|
*
|
|
75
|
-
*
|
|
75
|
+
*
|
|
76
76
|
* @example To add a client ID (audience) to an Open-ID Connect (OIDC) provider
|
|
77
77
|
* ```javascript
|
|
78
78
|
* // The following add-client-id-to-open-id-connect-provider command adds the client ID my-application-ID to the OIDC provider named server.example.com:
|
|
79
79
|
* const input = {
|
|
80
|
-
*
|
|
81
|
-
*
|
|
80
|
+
* ClientID: "my-application-ID",
|
|
81
|
+
* OpenIDConnectProviderArn: "arn:aws:iam::123456789012:oidc-provider/server.example.com"
|
|
82
82
|
* };
|
|
83
83
|
* const command = new AddClientIDToOpenIDConnectProviderCommand(input);
|
|
84
|
-
* await client.send(command);
|
|
85
|
-
*
|
|
84
|
+
* const response = await client.send(command);
|
|
85
|
+
* /* response is
|
|
86
|
+
* { /* metadata only *\/ }
|
|
87
|
+
* *\/
|
|
86
88
|
* ```
|
|
87
89
|
*
|
|
90
|
+
* @public
|
|
88
91
|
*/
|
|
89
92
|
export declare class AddClientIDToOpenIDConnectProviderCommand extends AddClientIDToOpenIDConnectProviderCommand_base {
|
|
90
93
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -95,19 +95,22 @@ declare const AddRoleToInstanceProfileCommand_base: {
|
|
|
95
95
|
* @throws {@link IAMServiceException}
|
|
96
96
|
* <p>Base exception class for all service exceptions from IAM service.</p>
|
|
97
97
|
*
|
|
98
|
-
*
|
|
98
|
+
*
|
|
99
99
|
* @example To add a role to an instance profile
|
|
100
100
|
* ```javascript
|
|
101
101
|
* // The following command adds the role named S3Access to the instance profile named Webserver:
|
|
102
102
|
* const input = {
|
|
103
|
-
*
|
|
104
|
-
*
|
|
103
|
+
* InstanceProfileName: "Webserver",
|
|
104
|
+
* RoleName: "S3Access"
|
|
105
105
|
* };
|
|
106
106
|
* const command = new AddRoleToInstanceProfileCommand(input);
|
|
107
|
-
* await client.send(command);
|
|
108
|
-
*
|
|
107
|
+
* const response = await client.send(command);
|
|
108
|
+
* /* response is
|
|
109
|
+
* { /* metadata only *\/ }
|
|
110
|
+
* *\/
|
|
109
111
|
* ```
|
|
110
112
|
*
|
|
113
|
+
* @public
|
|
111
114
|
*/
|
|
112
115
|
export declare class AddRoleToInstanceProfileCommand extends AddRoleToInstanceProfileCommand_base {
|
|
113
116
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -65,19 +65,22 @@ declare const AddUserToGroupCommand_base: {
|
|
|
65
65
|
* @throws {@link IAMServiceException}
|
|
66
66
|
* <p>Base exception class for all service exceptions from IAM service.</p>
|
|
67
67
|
*
|
|
68
|
-
*
|
|
68
|
+
*
|
|
69
69
|
* @example To add a user to an IAM group
|
|
70
70
|
* ```javascript
|
|
71
71
|
* // The following command adds an IAM user named Bob to the IAM group named Admins:
|
|
72
72
|
* const input = {
|
|
73
|
-
*
|
|
74
|
-
*
|
|
73
|
+
* GroupName: "Admins",
|
|
74
|
+
* UserName: "Bob"
|
|
75
75
|
* };
|
|
76
76
|
* const command = new AddUserToGroupCommand(input);
|
|
77
|
-
* await client.send(command);
|
|
78
|
-
*
|
|
77
|
+
* const response = await client.send(command);
|
|
78
|
+
* /* response is
|
|
79
|
+
* { /* metadata only *\/ }
|
|
80
|
+
* *\/
|
|
79
81
|
* ```
|
|
80
82
|
*
|
|
83
|
+
* @public
|
|
81
84
|
*/
|
|
82
85
|
export declare class AddUserToGroupCommand extends AddUserToGroupCommand_base {
|
|
83
86
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -82,19 +82,22 @@ declare const AttachGroupPolicyCommand_base: {
|
|
|
82
82
|
* @throws {@link IAMServiceException}
|
|
83
83
|
* <p>Base exception class for all service exceptions from IAM service.</p>
|
|
84
84
|
*
|
|
85
|
-
*
|
|
85
|
+
*
|
|
86
86
|
* @example To attach a managed policy to an IAM group
|
|
87
87
|
* ```javascript
|
|
88
88
|
* // The following command attaches the AWS managed policy named ReadOnlyAccess to the IAM group named Finance.
|
|
89
89
|
* const input = {
|
|
90
|
-
*
|
|
91
|
-
*
|
|
90
|
+
* GroupName: "Finance",
|
|
91
|
+
* PolicyArn: "arn:aws:iam::aws:policy/ReadOnlyAccess"
|
|
92
92
|
* };
|
|
93
93
|
* const command = new AttachGroupPolicyCommand(input);
|
|
94
|
-
* await client.send(command);
|
|
95
|
-
*
|
|
94
|
+
* const response = await client.send(command);
|
|
95
|
+
* /* response is
|
|
96
|
+
* { /* metadata only *\/ }
|
|
97
|
+
* *\/
|
|
96
98
|
* ```
|
|
97
99
|
*
|
|
100
|
+
* @public
|
|
98
101
|
*/
|
|
99
102
|
export declare class AttachGroupPolicyCommand extends AttachGroupPolicyCommand_base {
|
|
100
103
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -99,19 +99,22 @@ declare const AttachRolePolicyCommand_base: {
|
|
|
99
99
|
* @throws {@link IAMServiceException}
|
|
100
100
|
* <p>Base exception class for all service exceptions from IAM service.</p>
|
|
101
101
|
*
|
|
102
|
-
*
|
|
102
|
+
*
|
|
103
103
|
* @example To attach a managed policy to an IAM role
|
|
104
104
|
* ```javascript
|
|
105
105
|
* // The following command attaches the AWS managed policy named ReadOnlyAccess to the IAM role named ReadOnlyRole.
|
|
106
106
|
* const input = {
|
|
107
|
-
*
|
|
108
|
-
*
|
|
107
|
+
* PolicyArn: "arn:aws:iam::aws:policy/ReadOnlyAccess",
|
|
108
|
+
* RoleName: "ReadOnlyRole"
|
|
109
109
|
* };
|
|
110
110
|
* const command = new AttachRolePolicyCommand(input);
|
|
111
|
-
* await client.send(command);
|
|
112
|
-
*
|
|
111
|
+
* const response = await client.send(command);
|
|
112
|
+
* /* response is
|
|
113
|
+
* { /* metadata only *\/ }
|
|
114
|
+
* *\/
|
|
113
115
|
* ```
|
|
114
116
|
*
|
|
117
|
+
* @public
|
|
115
118
|
*/
|
|
116
119
|
export declare class AttachRolePolicyCommand extends AttachRolePolicyCommand_base {
|
|
117
120
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -82,19 +82,22 @@ declare const AttachUserPolicyCommand_base: {
|
|
|
82
82
|
* @throws {@link IAMServiceException}
|
|
83
83
|
* <p>Base exception class for all service exceptions from IAM service.</p>
|
|
84
84
|
*
|
|
85
|
-
*
|
|
85
|
+
*
|
|
86
86
|
* @example To attach a managed policy to an IAM user
|
|
87
87
|
* ```javascript
|
|
88
88
|
* // The following command attaches the AWS managed policy named AdministratorAccess to the IAM user named Alice.
|
|
89
89
|
* const input = {
|
|
90
|
-
*
|
|
91
|
-
*
|
|
90
|
+
* PolicyArn: "arn:aws:iam::aws:policy/AdministratorAccess",
|
|
91
|
+
* UserName: "Alice"
|
|
92
92
|
* };
|
|
93
93
|
* const command = new AttachUserPolicyCommand(input);
|
|
94
|
-
* await client.send(command);
|
|
95
|
-
*
|
|
94
|
+
* const response = await client.send(command);
|
|
95
|
+
* /* response is
|
|
96
|
+
* { /* metadata only *\/ }
|
|
97
|
+
* *\/
|
|
96
98
|
* ```
|
|
97
99
|
*
|
|
100
|
+
* @public
|
|
98
101
|
*/
|
|
99
102
|
export declare class AttachUserPolicyCommand extends AttachUserPolicyCommand_base {
|
|
100
103
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -86,19 +86,22 @@ declare const ChangePasswordCommand_base: {
|
|
|
86
86
|
* @throws {@link IAMServiceException}
|
|
87
87
|
* <p>Base exception class for all service exceptions from IAM service.</p>
|
|
88
88
|
*
|
|
89
|
-
*
|
|
89
|
+
*
|
|
90
90
|
* @example To change the password for your IAM user
|
|
91
91
|
* ```javascript
|
|
92
92
|
* // The following command changes the password for the current IAM user.
|
|
93
93
|
* const input = {
|
|
94
|
-
*
|
|
95
|
-
*
|
|
94
|
+
* NewPassword: "]35d/{pB9Fo9wJ",
|
|
95
|
+
* OldPassword: "3s0K_;xh4~8XXI"
|
|
96
96
|
* };
|
|
97
97
|
* const command = new ChangePasswordCommand(input);
|
|
98
|
-
* await client.send(command);
|
|
99
|
-
*
|
|
98
|
+
* const response = await client.send(command);
|
|
99
|
+
* /* response is
|
|
100
|
+
* { /* metadata only *\/ }
|
|
101
|
+
* *\/
|
|
100
102
|
* ```
|
|
101
103
|
*
|
|
104
|
+
* @public
|
|
102
105
|
*/
|
|
103
106
|
export declare class ChangePasswordCommand extends ChangePasswordCommand_base {
|
|
104
107
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -85,29 +85,29 @@ declare const CreateAccessKeyCommand_base: {
|
|
|
85
85
|
* @throws {@link IAMServiceException}
|
|
86
86
|
* <p>Base exception class for all service exceptions from IAM service.</p>
|
|
87
87
|
*
|
|
88
|
-
*
|
|
88
|
+
*
|
|
89
89
|
* @example To create an access key for an IAM user
|
|
90
90
|
* ```javascript
|
|
91
91
|
* // The following command creates an access key (access key ID and secret access key) for the IAM user named Bob.
|
|
92
92
|
* const input = {
|
|
93
|
-
*
|
|
93
|
+
* UserName: "Bob"
|
|
94
94
|
* };
|
|
95
95
|
* const command = new CreateAccessKeyCommand(input);
|
|
96
96
|
* const response = await client.send(command);
|
|
97
|
-
* /* response
|
|
97
|
+
* /* response is
|
|
98
98
|
* {
|
|
99
|
-
*
|
|
100
|
-
*
|
|
101
|
-
*
|
|
102
|
-
*
|
|
103
|
-
*
|
|
104
|
-
*
|
|
99
|
+
* AccessKey: {
|
|
100
|
+
* AccessKeyId: "AKIAIOSFODNN7EXAMPLE",
|
|
101
|
+
* CreateDate: "2015-03-09T18:39:23.411Z",
|
|
102
|
+
* SecretAccessKey: "wJalrXUtnFEMI/K7MDENG/bPxRfiCYzEXAMPLEKEY",
|
|
103
|
+
* Status: "Active",
|
|
104
|
+
* UserName: "Bob"
|
|
105
105
|
* }
|
|
106
106
|
* }
|
|
107
107
|
* *\/
|
|
108
|
-
* // example id: 1fbb3211-4cf2-41db-8c20-ba58d9f5802d
|
|
109
108
|
* ```
|
|
110
109
|
*
|
|
110
|
+
* @public
|
|
111
111
|
*/
|
|
112
112
|
export declare class CreateAccessKeyCommand extends CreateAccessKeyCommand_base {
|
|
113
113
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -71,18 +71,21 @@ declare const CreateAccountAliasCommand_base: {
|
|
|
71
71
|
* @throws {@link IAMServiceException}
|
|
72
72
|
* <p>Base exception class for all service exceptions from IAM service.</p>
|
|
73
73
|
*
|
|
74
|
-
*
|
|
74
|
+
*
|
|
75
75
|
* @example To create an account alias
|
|
76
76
|
* ```javascript
|
|
77
77
|
* // The following command associates the alias examplecorp to your AWS account.
|
|
78
78
|
* const input = {
|
|
79
|
-
*
|
|
79
|
+
* AccountAlias: "examplecorp"
|
|
80
80
|
* };
|
|
81
81
|
* const command = new CreateAccountAliasCommand(input);
|
|
82
|
-
* await client.send(command);
|
|
83
|
-
*
|
|
82
|
+
* const response = await client.send(command);
|
|
83
|
+
* /* response is
|
|
84
|
+
* { /* metadata only *\/ }
|
|
85
|
+
* *\/
|
|
84
86
|
* ```
|
|
85
87
|
*
|
|
88
|
+
* @public
|
|
86
89
|
*/
|
|
87
90
|
export declare class CreateAccountAliasCommand extends CreateAccountAliasCommand_base {
|
|
88
91
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -79,29 +79,29 @@ declare const CreateGroupCommand_base: {
|
|
|
79
79
|
* @throws {@link IAMServiceException}
|
|
80
80
|
* <p>Base exception class for all service exceptions from IAM service.</p>
|
|
81
81
|
*
|
|
82
|
-
*
|
|
82
|
+
*
|
|
83
83
|
* @example To create an IAM group
|
|
84
84
|
* ```javascript
|
|
85
85
|
* // The following command creates an IAM group named Admins.
|
|
86
86
|
* const input = {
|
|
87
|
-
*
|
|
87
|
+
* GroupName: "Admins"
|
|
88
88
|
* };
|
|
89
89
|
* const command = new CreateGroupCommand(input);
|
|
90
90
|
* const response = await client.send(command);
|
|
91
|
-
* /* response
|
|
91
|
+
* /* response is
|
|
92
92
|
* {
|
|
93
|
-
*
|
|
94
|
-
*
|
|
95
|
-
*
|
|
96
|
-
*
|
|
97
|
-
*
|
|
98
|
-
*
|
|
93
|
+
* Group: {
|
|
94
|
+
* Arn: "arn:aws:iam::123456789012:group/Admins",
|
|
95
|
+
* CreateDate: "2015-03-09T20:30:24.940Z",
|
|
96
|
+
* GroupId: "AIDGPMS9RO4H3FEXAMPLE",
|
|
97
|
+
* GroupName: "Admins",
|
|
98
|
+
* Path: "/"
|
|
99
99
|
* }
|
|
100
100
|
* }
|
|
101
101
|
* *\/
|
|
102
|
-
* // example id: d5da2a90-5e69-4ef7-8ae8-4c33dc21fd21
|
|
103
102
|
* ```
|
|
104
103
|
*
|
|
104
|
+
* @public
|
|
105
105
|
*/
|
|
106
106
|
export declare class CreateGroupCommand extends CreateGroupCommand_base {
|
|
107
107
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -123,30 +123,30 @@ declare const CreateInstanceProfileCommand_base: {
|
|
|
123
123
|
* @throws {@link IAMServiceException}
|
|
124
124
|
* <p>Base exception class for all service exceptions from IAM service.</p>
|
|
125
125
|
*
|
|
126
|
-
*
|
|
126
|
+
*
|
|
127
127
|
* @example To create an instance profile
|
|
128
128
|
* ```javascript
|
|
129
129
|
* // The following command creates an instance profile named Webserver that is ready to have a role attached and then be associated with an EC2 instance.
|
|
130
130
|
* const input = {
|
|
131
|
-
*
|
|
131
|
+
* InstanceProfileName: "Webserver"
|
|
132
132
|
* };
|
|
133
133
|
* const command = new CreateInstanceProfileCommand(input);
|
|
134
134
|
* const response = await client.send(command);
|
|
135
|
-
* /* response
|
|
135
|
+
* /* response is
|
|
136
136
|
* {
|
|
137
|
-
*
|
|
138
|
-
*
|
|
139
|
-
*
|
|
140
|
-
*
|
|
141
|
-
*
|
|
142
|
-
*
|
|
143
|
-
*
|
|
137
|
+
* InstanceProfile: {
|
|
138
|
+
* Arn: "arn:aws:iam::123456789012:instance-profile/Webserver",
|
|
139
|
+
* CreateDate: "2015-03-09T20:33:19.626Z",
|
|
140
|
+
* InstanceProfileId: "AIPAJMBYC7DLSPEXAMPLE",
|
|
141
|
+
* InstanceProfileName: "Webserver",
|
|
142
|
+
* Path: "/",
|
|
143
|
+
* Roles: []
|
|
144
144
|
* }
|
|
145
145
|
* }
|
|
146
146
|
* *\/
|
|
147
|
-
* // example id: 5d84e6ae-5921-4e39-8454-10232cd9ff9a
|
|
148
147
|
* ```
|
|
149
148
|
*
|
|
149
|
+
* @public
|
|
150
150
|
*/
|
|
151
151
|
export declare class CreateInstanceProfileCommand extends CreateInstanceProfileCommand_base {
|
|
152
152
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -85,29 +85,29 @@ declare const CreateLoginProfileCommand_base: {
|
|
|
85
85
|
* @throws {@link IAMServiceException}
|
|
86
86
|
* <p>Base exception class for all service exceptions from IAM service.</p>
|
|
87
87
|
*
|
|
88
|
-
*
|
|
88
|
+
*
|
|
89
89
|
* @example To create an instance profile
|
|
90
90
|
* ```javascript
|
|
91
91
|
* // The following command changes IAM user Bob's password and sets the flag that required Bob to change the password the next time he signs in.
|
|
92
92
|
* const input = {
|
|
93
|
-
*
|
|
94
|
-
*
|
|
95
|
-
*
|
|
93
|
+
* Password: "h]6EszR}vJ*m",
|
|
94
|
+
* PasswordResetRequired: true,
|
|
95
|
+
* UserName: "Bob"
|
|
96
96
|
* };
|
|
97
97
|
* const command = new CreateLoginProfileCommand(input);
|
|
98
98
|
* const response = await client.send(command);
|
|
99
|
-
* /* response
|
|
99
|
+
* /* response is
|
|
100
100
|
* {
|
|
101
|
-
*
|
|
102
|
-
*
|
|
103
|
-
*
|
|
104
|
-
*
|
|
101
|
+
* LoginProfile: {
|
|
102
|
+
* CreateDate: "2015-03-10T20:55:40.274Z",
|
|
103
|
+
* PasswordResetRequired: true,
|
|
104
|
+
* UserName: "Bob"
|
|
105
105
|
* }
|
|
106
106
|
* }
|
|
107
107
|
* *\/
|
|
108
|
-
* // example id: c63795bc-3444-40b3-89df-83c474ef88be
|
|
109
108
|
* ```
|
|
110
109
|
*
|
|
110
|
+
* @public
|
|
111
111
|
*/
|
|
112
112
|
export declare class CreateLoginProfileCommand extends CreateLoginProfileCommand_base {
|
|
113
113
|
/** @internal type navigation helper, not in runtime. */
|