@aws-sdk/client-mpa 3.831.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/LICENSE +201 -0
- package/README.md +373 -0
- package/dist-cjs/MPA.js +53 -0
- package/dist-cjs/MPAClient.js +52 -0
- package/dist-cjs/auth/httpAuthExtensionConfiguration.js +43 -0
- package/dist-cjs/auth/httpAuthSchemeProvider.js +47 -0
- package/dist-cjs/commands/CancelSessionCommand.js +26 -0
- package/dist-cjs/commands/CreateApprovalTeamCommand.js +27 -0
- package/dist-cjs/commands/CreateIdentitySourceCommand.js +27 -0
- package/dist-cjs/commands/DeleteIdentitySourceCommand.js +26 -0
- package/dist-cjs/commands/DeleteInactiveApprovalTeamVersionCommand.js +26 -0
- package/dist-cjs/commands/GetApprovalTeamCommand.js +27 -0
- package/dist-cjs/commands/GetIdentitySourceCommand.js +26 -0
- package/dist-cjs/commands/GetPolicyVersionCommand.js +27 -0
- package/dist-cjs/commands/GetResourcePolicyCommand.js +27 -0
- package/dist-cjs/commands/GetSessionCommand.js +27 -0
- package/dist-cjs/commands/ListApprovalTeamsCommand.js +27 -0
- package/dist-cjs/commands/ListIdentitySourcesCommand.js +26 -0
- package/dist-cjs/commands/ListPoliciesCommand.js +26 -0
- package/dist-cjs/commands/ListPolicyVersionsCommand.js +26 -0
- package/dist-cjs/commands/ListResourcePoliciesCommand.js +26 -0
- package/dist-cjs/commands/ListSessionsCommand.js +27 -0
- package/dist-cjs/commands/ListTagsForResourceCommand.js +27 -0
- package/dist-cjs/commands/StartActiveApprovalTeamDeletionCommand.js +26 -0
- package/dist-cjs/commands/TagResourceCommand.js +27 -0
- package/dist-cjs/commands/UntagResourceCommand.js +27 -0
- package/dist-cjs/commands/UpdateApprovalTeamCommand.js +27 -0
- package/dist-cjs/commands/index.js +24 -0
- package/dist-cjs/endpoint/EndpointParameters.js +15 -0
- package/dist-cjs/endpoint/endpointResolver.js +18 -0
- package/dist-cjs/endpoint/ruleset.js +7 -0
- package/dist-cjs/extensionConfiguration.js +2 -0
- package/dist-cjs/index.js +11 -0
- package/dist-cjs/models/MPAServiceException.js +12 -0
- package/dist-cjs/models/index.js +4 -0
- package/dist-cjs/models/models_0.js +354 -0
- package/dist-cjs/pagination/Interfaces.js +2 -0
- package/dist-cjs/pagination/ListApprovalTeamsPaginator.js +7 -0
- package/dist-cjs/pagination/ListIdentitySourcesPaginator.js +7 -0
- package/dist-cjs/pagination/ListPoliciesPaginator.js +7 -0
- package/dist-cjs/pagination/ListPolicyVersionsPaginator.js +7 -0
- package/dist-cjs/pagination/ListResourcePoliciesPaginator.js +7 -0
- package/dist-cjs/pagination/ListSessionsPaginator.js +7 -0
- package/dist-cjs/pagination/index.js +10 -0
- package/dist-cjs/protocols/Aws_restJson1.js +976 -0
- package/dist-cjs/runtimeConfig.browser.js +39 -0
- package/dist-cjs/runtimeConfig.js +56 -0
- package/dist-cjs/runtimeConfig.native.js +15 -0
- package/dist-cjs/runtimeConfig.shared.js +34 -0
- package/dist-cjs/runtimeExtensions.js +13 -0
- package/dist-es/MPA.js +49 -0
- package/dist-es/MPAClient.js +48 -0
- package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
- package/dist-es/auth/httpAuthSchemeProvider.js +41 -0
- package/dist-es/commands/CancelSessionCommand.js +22 -0
- package/dist-es/commands/CreateApprovalTeamCommand.js +23 -0
- package/dist-es/commands/CreateIdentitySourceCommand.js +23 -0
- package/dist-es/commands/DeleteIdentitySourceCommand.js +22 -0
- package/dist-es/commands/DeleteInactiveApprovalTeamVersionCommand.js +22 -0
- package/dist-es/commands/GetApprovalTeamCommand.js +23 -0
- package/dist-es/commands/GetIdentitySourceCommand.js +22 -0
- package/dist-es/commands/GetPolicyVersionCommand.js +23 -0
- package/dist-es/commands/GetResourcePolicyCommand.js +23 -0
- package/dist-es/commands/GetSessionCommand.js +23 -0
- package/dist-es/commands/ListApprovalTeamsCommand.js +23 -0
- package/dist-es/commands/ListIdentitySourcesCommand.js +22 -0
- package/dist-es/commands/ListPoliciesCommand.js +22 -0
- package/dist-es/commands/ListPolicyVersionsCommand.js +22 -0
- package/dist-es/commands/ListResourcePoliciesCommand.js +22 -0
- package/dist-es/commands/ListSessionsCommand.js +23 -0
- package/dist-es/commands/ListTagsForResourceCommand.js +23 -0
- package/dist-es/commands/StartActiveApprovalTeamDeletionCommand.js +22 -0
- package/dist-es/commands/TagResourceCommand.js +23 -0
- package/dist-es/commands/UntagResourceCommand.js +23 -0
- package/dist-es/commands/UpdateApprovalTeamCommand.js +23 -0
- package/dist-es/commands/index.js +21 -0
- package/dist-es/endpoint/EndpointParameters.js +11 -0
- package/dist-es/endpoint/endpointResolver.js +14 -0
- package/dist-es/endpoint/ruleset.js +4 -0
- package/dist-es/extensionConfiguration.js +1 -0
- package/dist-es/index.js +6 -0
- package/dist-es/models/MPAServiceException.js +8 -0
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +327 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListApprovalTeamsPaginator.js +4 -0
- package/dist-es/pagination/ListIdentitySourcesPaginator.js +4 -0
- package/dist-es/pagination/ListPoliciesPaginator.js +4 -0
- package/dist-es/pagination/ListPolicyVersionsPaginator.js +4 -0
- package/dist-es/pagination/ListResourcePoliciesPaginator.js +4 -0
- package/dist-es/pagination/ListSessionsPaginator.js +4 -0
- package/dist-es/pagination/index.js +7 -0
- package/dist-es/protocols/Aws_restJson1.js +931 -0
- package/dist-es/runtimeConfig.browser.js +34 -0
- package/dist-es/runtimeConfig.js +51 -0
- package/dist-es/runtimeConfig.native.js +11 -0
- package/dist-es/runtimeConfig.shared.js +30 -0
- package/dist-es/runtimeExtensions.js +9 -0
- package/dist-types/MPA.d.ts +160 -0
- package/dist-types/MPAClient.d.ts +208 -0
- package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
- package/dist-types/auth/httpAuthSchemeProvider.d.ts +75 -0
- package/dist-types/commands/CancelSessionCommand.d.ts +88 -0
- package/dist-types/commands/CreateApprovalTeamCommand.d.ts +114 -0
- package/dist-types/commands/CreateIdentitySourceCommand.d.ts +98 -0
- package/dist-types/commands/DeleteIdentitySourceCommand.d.ts +85 -0
- package/dist-types/commands/DeleteInactiveApprovalTeamVersionCommand.d.ts +89 -0
- package/dist-types/commands/GetApprovalTeamCommand.d.ts +139 -0
- package/dist-types/commands/GetIdentitySourceCommand.d.ts +99 -0
- package/dist-types/commands/GetPolicyVersionCommand.d.ts +98 -0
- package/dist-types/commands/GetResourcePolicyCommand.d.ts +93 -0
- package/dist-types/commands/GetSessionCommand.d.ts +123 -0
- package/dist-types/commands/ListApprovalTeamsCommand.d.ts +102 -0
- package/dist-types/commands/ListIdentitySourcesCommand.d.ts +102 -0
- package/dist-types/commands/ListPoliciesCommand.d.ts +93 -0
- package/dist-types/commands/ListPolicyVersionsCommand.d.ts +102 -0
- package/dist-types/commands/ListResourcePoliciesCommand.d.ts +96 -0
- package/dist-types/commands/ListSessionsCommand.d.ts +117 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +89 -0
- package/dist-types/commands/StartActiveApprovalTeamDeletionCommand.d.ts +92 -0
- package/dist-types/commands/TagResourceCommand.d.ts +91 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +88 -0
- package/dist-types/commands/UpdateApprovalTeamCommand.d.ts +105 -0
- package/dist-types/commands/index.d.ts +21 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +32 -0
- package/dist-types/endpoint/endpointResolver.d.ts +5 -0
- package/dist-types/endpoint/ruleset.d.ts +2 -0
- package/dist-types/extensionConfiguration.d.ts +9 -0
- package/dist-types/index.d.ts +14 -0
- package/dist-types/models/MPAServiceException.d.ts +14 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +1947 -0
- package/dist-types/pagination/Interfaces.d.ts +8 -0
- package/dist-types/pagination/ListApprovalTeamsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListIdentitySourcesPaginator.d.ts +7 -0
- package/dist-types/pagination/ListPoliciesPaginator.d.ts +7 -0
- package/dist-types/pagination/ListPolicyVersionsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListResourcePoliciesPaginator.d.ts +7 -0
- package/dist-types/pagination/ListSessionsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +7 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +191 -0
- package/dist-types/runtimeConfig.browser.d.ts +50 -0
- package/dist-types/runtimeConfig.d.ts +50 -0
- package/dist-types/runtimeConfig.native.d.ts +49 -0
- package/dist-types/runtimeConfig.shared.d.ts +21 -0
- package/dist-types/runtimeExtensions.d.ts +17 -0
- package/dist-types/ts3.4/MPA.d.ts +371 -0
- package/dist-types/ts3.4/MPAClient.d.ts +242 -0
- package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +32 -0
- package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +46 -0
- package/dist-types/ts3.4/commands/CancelSessionCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/CreateApprovalTeamCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/CreateIdentitySourceCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DeleteIdentitySourceCommand.d.ts +46 -0
- package/dist-types/ts3.4/commands/DeleteInactiveApprovalTeamVersionCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetApprovalTeamCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/GetIdentitySourceCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetPolicyVersionCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/GetResourcePolicyCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetSessionCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/ListApprovalTeamsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListIdentitySourcesCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListPoliciesCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/ListPolicyVersionsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListResourcePoliciesCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListSessionsCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/StartActiveApprovalTeamDeletionCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/UpdateApprovalTeamCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/index.d.ts +21 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +42 -0
- package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
- package/dist-types/ts3.4/extensionConfiguration.d.ts +9 -0
- package/dist-types/ts3.4/index.d.ts +9 -0
- package/dist-types/ts3.4/models/MPAServiceException.d.ts +9 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +645 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +5 -0
- package/dist-types/ts3.4/pagination/ListApprovalTeamsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListIdentitySourcesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListPoliciesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListPolicyVersionsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListResourcePoliciesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListSessionsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +7 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +257 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +91 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +89 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +95 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +21 -0
- package/dist-types/ts3.4/runtimeExtensions.d.ts +11 -0
- package/package.json +101 -0
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { GetIdentitySourceRequest, GetIdentitySourceResponse } from "../models/models_0";
|
|
4
|
+
import { MPAClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MPAClient";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link GetIdentitySourceCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface GetIdentitySourceCommandInput extends GetIdentitySourceRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link GetIdentitySourceCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface GetIdentitySourceCommandOutput extends GetIdentitySourceResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const GetIdentitySourceCommand_base: {
|
|
25
|
+
new (input: GetIdentitySourceCommandInput): import("@smithy/smithy-client").CommandImpl<GetIdentitySourceCommandInput, GetIdentitySourceCommandOutput, MPAClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: GetIdentitySourceCommandInput): import("@smithy/smithy-client").CommandImpl<GetIdentitySourceCommandInput, GetIdentitySourceCommandOutput, MPAClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Returns details for an identity source. For more information, see <a href="https://docs.aws.amazon.com/mpa/latest/userguide/mpa-concepts.html">Identity Source</a> in the <i>Multi-party approval User Guide</i>.</p>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { MPAClient, GetIdentitySourceCommand } from "@aws-sdk/client-mpa"; // ES Modules import
|
|
35
|
+
* // const { MPAClient, GetIdentitySourceCommand } = require("@aws-sdk/client-mpa"); // CommonJS import
|
|
36
|
+
* const client = new MPAClient(config);
|
|
37
|
+
* const input = { // GetIdentitySourceRequest
|
|
38
|
+
* IdentitySourceArn: "STRING_VALUE", // required
|
|
39
|
+
* };
|
|
40
|
+
* const command = new GetIdentitySourceCommand(input);
|
|
41
|
+
* const response = await client.send(command);
|
|
42
|
+
* // { // GetIdentitySourceResponse
|
|
43
|
+
* // IdentitySourceType: "IAM_IDENTITY_CENTER",
|
|
44
|
+
* // IdentitySourceParameters: { // IdentitySourceParametersForGet Union: only one key present
|
|
45
|
+
* // IamIdentityCenter: { // IamIdentityCenterForGet
|
|
46
|
+
* // InstanceArn: "STRING_VALUE",
|
|
47
|
+
* // ApprovalPortalUrl: "STRING_VALUE",
|
|
48
|
+
* // Region: "STRING_VALUE",
|
|
49
|
+
* // },
|
|
50
|
+
* // },
|
|
51
|
+
* // IdentitySourceArn: "STRING_VALUE",
|
|
52
|
+
* // CreationTime: new Date("TIMESTAMP"),
|
|
53
|
+
* // Status: "CREATING" || "ACTIVE" || "DELETING" || "ERROR",
|
|
54
|
+
* // StatusCode: "ACCESS_DENIED" || "DELETION_FAILED" || "IDC_INSTANCE_NOT_FOUND" || "IDC_INSTANCE_NOT_VALID",
|
|
55
|
+
* // StatusMessage: "STRING_VALUE",
|
|
56
|
+
* // };
|
|
57
|
+
*
|
|
58
|
+
* ```
|
|
59
|
+
*
|
|
60
|
+
* @param GetIdentitySourceCommandInput - {@link GetIdentitySourceCommandInput}
|
|
61
|
+
* @returns {@link GetIdentitySourceCommandOutput}
|
|
62
|
+
* @see {@link GetIdentitySourceCommandInput} for command's `input` shape.
|
|
63
|
+
* @see {@link GetIdentitySourceCommandOutput} for command's `response` shape.
|
|
64
|
+
* @see {@link MPAClientResolvedConfig | config} for MPAClient's `config` shape.
|
|
65
|
+
*
|
|
66
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
67
|
+
* <p>You do not have sufficient access to perform this action. Check your permissions, and try again.</p>
|
|
68
|
+
*
|
|
69
|
+
* @throws {@link InternalServerException} (server fault)
|
|
70
|
+
* <p>The service encountered an internal error. Try your request again. If the problem persists, contact Amazon Web Services Support.</p>
|
|
71
|
+
*
|
|
72
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
73
|
+
* <p>The specified resource doesn't exist. Check the resource ID, and try again.</p>
|
|
74
|
+
*
|
|
75
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
76
|
+
* <p>The request was denied due to request throttling.</p>
|
|
77
|
+
*
|
|
78
|
+
* @throws {@link ValidationException} (client fault)
|
|
79
|
+
* <p>The input fails to satisfy the constraints specified by an Amazon Web Services service.</p>
|
|
80
|
+
*
|
|
81
|
+
* @throws {@link MPAServiceException}
|
|
82
|
+
* <p>Base exception class for all service exceptions from MPA service.</p>
|
|
83
|
+
*
|
|
84
|
+
*
|
|
85
|
+
* @public
|
|
86
|
+
*/
|
|
87
|
+
export declare class GetIdentitySourceCommand extends GetIdentitySourceCommand_base {
|
|
88
|
+
/** @internal type navigation helper, not in runtime. */
|
|
89
|
+
protected static __types: {
|
|
90
|
+
api: {
|
|
91
|
+
input: GetIdentitySourceRequest;
|
|
92
|
+
output: GetIdentitySourceResponse;
|
|
93
|
+
};
|
|
94
|
+
sdk: {
|
|
95
|
+
input: GetIdentitySourceCommandInput;
|
|
96
|
+
output: GetIdentitySourceCommandOutput;
|
|
97
|
+
};
|
|
98
|
+
};
|
|
99
|
+
}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { GetPolicyVersionRequest, GetPolicyVersionResponse } from "../models/models_0";
|
|
4
|
+
import { MPAClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MPAClient";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link GetPolicyVersionCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface GetPolicyVersionCommandInput extends GetPolicyVersionRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link GetPolicyVersionCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface GetPolicyVersionCommandOutput extends GetPolicyVersionResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const GetPolicyVersionCommand_base: {
|
|
25
|
+
new (input: GetPolicyVersionCommandInput): import("@smithy/smithy-client").CommandImpl<GetPolicyVersionCommandInput, GetPolicyVersionCommandOutput, MPAClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: GetPolicyVersionCommandInput): import("@smithy/smithy-client").CommandImpl<GetPolicyVersionCommandInput, GetPolicyVersionCommandOutput, MPAClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Returns details for the version of a policy. Policies define the permissions for team resources.</p> <p>The protected operation for a service integration might require specific permissions. For more information, see <a href="https://docs.aws.amazon.com/mpa/latest/userguide/mpa-integrations.html">How other services work with Multi-party approval</a> in the <i>Multi-party approval User Guide</i>.</p>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { MPAClient, GetPolicyVersionCommand } from "@aws-sdk/client-mpa"; // ES Modules import
|
|
35
|
+
* // const { MPAClient, GetPolicyVersionCommand } = require("@aws-sdk/client-mpa"); // CommonJS import
|
|
36
|
+
* const client = new MPAClient(config);
|
|
37
|
+
* const input = { // GetPolicyVersionRequest
|
|
38
|
+
* PolicyVersionArn: "STRING_VALUE", // required
|
|
39
|
+
* };
|
|
40
|
+
* const command = new GetPolicyVersionCommand(input);
|
|
41
|
+
* const response = await client.send(command);
|
|
42
|
+
* // { // GetPolicyVersionResponse
|
|
43
|
+
* // PolicyVersion: { // PolicyVersion
|
|
44
|
+
* // Arn: "STRING_VALUE", // required
|
|
45
|
+
* // PolicyArn: "STRING_VALUE", // required
|
|
46
|
+
* // VersionId: Number("int"), // required
|
|
47
|
+
* // PolicyType: "AWS_MANAGED" || "AWS_RAM", // required
|
|
48
|
+
* // IsDefault: true || false, // required
|
|
49
|
+
* // Name: "STRING_VALUE", // required
|
|
50
|
+
* // Status: "ATTACHABLE" || "DEPRECATED", // required
|
|
51
|
+
* // CreationTime: new Date("TIMESTAMP"), // required
|
|
52
|
+
* // LastUpdatedTime: new Date("TIMESTAMP"), // required
|
|
53
|
+
* // Document: "STRING_VALUE", // required
|
|
54
|
+
* // },
|
|
55
|
+
* // };
|
|
56
|
+
*
|
|
57
|
+
* ```
|
|
58
|
+
*
|
|
59
|
+
* @param GetPolicyVersionCommandInput - {@link GetPolicyVersionCommandInput}
|
|
60
|
+
* @returns {@link GetPolicyVersionCommandOutput}
|
|
61
|
+
* @see {@link GetPolicyVersionCommandInput} for command's `input` shape.
|
|
62
|
+
* @see {@link GetPolicyVersionCommandOutput} for command's `response` shape.
|
|
63
|
+
* @see {@link MPAClientResolvedConfig | config} for MPAClient's `config` shape.
|
|
64
|
+
*
|
|
65
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
66
|
+
* <p>You do not have sufficient access to perform this action. Check your permissions, and try again.</p>
|
|
67
|
+
*
|
|
68
|
+
* @throws {@link InternalServerException} (server fault)
|
|
69
|
+
* <p>The service encountered an internal error. Try your request again. If the problem persists, contact Amazon Web Services Support.</p>
|
|
70
|
+
*
|
|
71
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
72
|
+
* <p>The specified resource doesn't exist. Check the resource ID, and try again.</p>
|
|
73
|
+
*
|
|
74
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
75
|
+
* <p>The request was denied due to request throttling.</p>
|
|
76
|
+
*
|
|
77
|
+
* @throws {@link ValidationException} (client fault)
|
|
78
|
+
* <p>The input fails to satisfy the constraints specified by an Amazon Web Services service.</p>
|
|
79
|
+
*
|
|
80
|
+
* @throws {@link MPAServiceException}
|
|
81
|
+
* <p>Base exception class for all service exceptions from MPA service.</p>
|
|
82
|
+
*
|
|
83
|
+
*
|
|
84
|
+
* @public
|
|
85
|
+
*/
|
|
86
|
+
export declare class GetPolicyVersionCommand extends GetPolicyVersionCommand_base {
|
|
87
|
+
/** @internal type navigation helper, not in runtime. */
|
|
88
|
+
protected static __types: {
|
|
89
|
+
api: {
|
|
90
|
+
input: GetPolicyVersionRequest;
|
|
91
|
+
output: GetPolicyVersionResponse;
|
|
92
|
+
};
|
|
93
|
+
sdk: {
|
|
94
|
+
input: GetPolicyVersionCommandInput;
|
|
95
|
+
output: GetPolicyVersionCommandOutput;
|
|
96
|
+
};
|
|
97
|
+
};
|
|
98
|
+
}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { GetResourcePolicyRequest, GetResourcePolicyResponse } from "../models/models_0";
|
|
4
|
+
import { MPAClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MPAClient";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link GetResourcePolicyCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface GetResourcePolicyCommandInput extends GetResourcePolicyRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link GetResourcePolicyCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface GetResourcePolicyCommandOutput extends GetResourcePolicyResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const GetResourcePolicyCommand_base: {
|
|
25
|
+
new (input: GetResourcePolicyCommandInput): import("@smithy/smithy-client").CommandImpl<GetResourcePolicyCommandInput, GetResourcePolicyCommandOutput, MPAClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: GetResourcePolicyCommandInput): import("@smithy/smithy-client").CommandImpl<GetResourcePolicyCommandInput, GetResourcePolicyCommandOutput, MPAClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Returns details about a policy for a resource.</p>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { MPAClient, GetResourcePolicyCommand } from "@aws-sdk/client-mpa"; // ES Modules import
|
|
35
|
+
* // const { MPAClient, GetResourcePolicyCommand } = require("@aws-sdk/client-mpa"); // CommonJS import
|
|
36
|
+
* const client = new MPAClient(config);
|
|
37
|
+
* const input = { // GetResourcePolicyRequest
|
|
38
|
+
* ResourceArn: "STRING_VALUE", // required
|
|
39
|
+
* PolicyName: "STRING_VALUE", // required
|
|
40
|
+
* PolicyType: "AWS_MANAGED" || "AWS_RAM", // required
|
|
41
|
+
* };
|
|
42
|
+
* const command = new GetResourcePolicyCommand(input);
|
|
43
|
+
* const response = await client.send(command);
|
|
44
|
+
* // { // GetResourcePolicyResponse
|
|
45
|
+
* // ResourceArn: "STRING_VALUE", // required
|
|
46
|
+
* // PolicyType: "AWS_MANAGED" || "AWS_RAM", // required
|
|
47
|
+
* // PolicyVersionArn: "STRING_VALUE",
|
|
48
|
+
* // PolicyName: "STRING_VALUE", // required
|
|
49
|
+
* // PolicyDocument: "STRING_VALUE", // required
|
|
50
|
+
* // };
|
|
51
|
+
*
|
|
52
|
+
* ```
|
|
53
|
+
*
|
|
54
|
+
* @param GetResourcePolicyCommandInput - {@link GetResourcePolicyCommandInput}
|
|
55
|
+
* @returns {@link GetResourcePolicyCommandOutput}
|
|
56
|
+
* @see {@link GetResourcePolicyCommandInput} for command's `input` shape.
|
|
57
|
+
* @see {@link GetResourcePolicyCommandOutput} for command's `response` shape.
|
|
58
|
+
* @see {@link MPAClientResolvedConfig | config} for MPAClient's `config` shape.
|
|
59
|
+
*
|
|
60
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
61
|
+
* <p>You do not have sufficient access to perform this action. Check your permissions, and try again.</p>
|
|
62
|
+
*
|
|
63
|
+
* @throws {@link InvalidParameterException} (client fault)
|
|
64
|
+
* <p>The request contains an invalid parameter value.</p>
|
|
65
|
+
*
|
|
66
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
67
|
+
* <p>The specified resource doesn't exist. Check the resource ID, and try again.</p>
|
|
68
|
+
*
|
|
69
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
70
|
+
* <p>The request was denied due to request throttling.</p>
|
|
71
|
+
*
|
|
72
|
+
* @throws {@link ValidationException} (client fault)
|
|
73
|
+
* <p>The input fails to satisfy the constraints specified by an Amazon Web Services service.</p>
|
|
74
|
+
*
|
|
75
|
+
* @throws {@link MPAServiceException}
|
|
76
|
+
* <p>Base exception class for all service exceptions from MPA service.</p>
|
|
77
|
+
*
|
|
78
|
+
*
|
|
79
|
+
* @public
|
|
80
|
+
*/
|
|
81
|
+
export declare class GetResourcePolicyCommand extends GetResourcePolicyCommand_base {
|
|
82
|
+
/** @internal type navigation helper, not in runtime. */
|
|
83
|
+
protected static __types: {
|
|
84
|
+
api: {
|
|
85
|
+
input: GetResourcePolicyRequest;
|
|
86
|
+
output: GetResourcePolicyResponse;
|
|
87
|
+
};
|
|
88
|
+
sdk: {
|
|
89
|
+
input: GetResourcePolicyCommandInput;
|
|
90
|
+
output: GetResourcePolicyCommandOutput;
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
}
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { GetSessionRequest, GetSessionResponse } from "../models/models_0";
|
|
4
|
+
import { MPAClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MPAClient";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link GetSessionCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface GetSessionCommandInput extends GetSessionRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link GetSessionCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface GetSessionCommandOutput extends GetSessionResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const GetSessionCommand_base: {
|
|
25
|
+
new (input: GetSessionCommandInput): import("@smithy/smithy-client").CommandImpl<GetSessionCommandInput, GetSessionCommandOutput, MPAClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: GetSessionCommandInput): import("@smithy/smithy-client").CommandImpl<GetSessionCommandInput, GetSessionCommandOutput, MPAClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Returns details for an approval session. For more information, see <a href="https://docs.aws.amazon.com/mpa/latest/userguide/mpa-concepts.html">Session</a> in the <i>Multi-party approval User Guide</i>.</p>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { MPAClient, GetSessionCommand } from "@aws-sdk/client-mpa"; // ES Modules import
|
|
35
|
+
* // const { MPAClient, GetSessionCommand } = require("@aws-sdk/client-mpa"); // CommonJS import
|
|
36
|
+
* const client = new MPAClient(config);
|
|
37
|
+
* const input = { // GetSessionRequest
|
|
38
|
+
* SessionArn: "STRING_VALUE", // required
|
|
39
|
+
* };
|
|
40
|
+
* const command = new GetSessionCommand(input);
|
|
41
|
+
* const response = await client.send(command);
|
|
42
|
+
* // { // GetSessionResponse
|
|
43
|
+
* // SessionArn: "STRING_VALUE",
|
|
44
|
+
* // ApprovalTeamArn: "STRING_VALUE",
|
|
45
|
+
* // ApprovalTeamName: "STRING_VALUE",
|
|
46
|
+
* // ProtectedResourceArn: "STRING_VALUE",
|
|
47
|
+
* // ApprovalStrategy: { // ApprovalStrategyResponse Union: only one key present
|
|
48
|
+
* // MofN: { // MofNApprovalStrategy
|
|
49
|
+
* // MinApprovalsRequired: Number("int"), // required
|
|
50
|
+
* // },
|
|
51
|
+
* // },
|
|
52
|
+
* // NumberOfApprovers: Number("int"),
|
|
53
|
+
* // InitiationTime: new Date("TIMESTAMP"),
|
|
54
|
+
* // ExpirationTime: new Date("TIMESTAMP"),
|
|
55
|
+
* // CompletionTime: new Date("TIMESTAMP"),
|
|
56
|
+
* // Description: "STRING_VALUE",
|
|
57
|
+
* // Metadata: { // SessionMetadata
|
|
58
|
+
* // "<keys>": "STRING_VALUE",
|
|
59
|
+
* // },
|
|
60
|
+
* // Status: "PENDING" || "CANCELLED" || "APPROVED" || "FAILED" || "CREATING",
|
|
61
|
+
* // StatusCode: "REJECTED" || "EXPIRED" || "CONFIGURATION_CHANGED",
|
|
62
|
+
* // StatusMessage: "STRING_VALUE",
|
|
63
|
+
* // ExecutionStatus: "EXECUTED" || "FAILED" || "PENDING",
|
|
64
|
+
* // ActionName: "STRING_VALUE",
|
|
65
|
+
* // RequesterServicePrincipal: "STRING_VALUE",
|
|
66
|
+
* // RequesterPrincipalArn: "STRING_VALUE",
|
|
67
|
+
* // RequesterAccountId: "STRING_VALUE",
|
|
68
|
+
* // RequesterRegion: "STRING_VALUE",
|
|
69
|
+
* // RequesterComment: "STRING_VALUE",
|
|
70
|
+
* // ActionCompletionStrategy: "AUTO_COMPLETION_UPON_APPROVAL",
|
|
71
|
+
* // ApproverResponses: [ // GetSessionResponseApproverResponses
|
|
72
|
+
* // { // GetSessionResponseApproverResponse
|
|
73
|
+
* // ApproverId: "STRING_VALUE",
|
|
74
|
+
* // IdentitySourceArn: "STRING_VALUE",
|
|
75
|
+
* // IdentityId: "STRING_VALUE",
|
|
76
|
+
* // Response: "APPROVED" || "REJECTED" || "NO_RESPONSE",
|
|
77
|
+
* // ResponseTime: new Date("TIMESTAMP"),
|
|
78
|
+
* // },
|
|
79
|
+
* // ],
|
|
80
|
+
* // };
|
|
81
|
+
*
|
|
82
|
+
* ```
|
|
83
|
+
*
|
|
84
|
+
* @param GetSessionCommandInput - {@link GetSessionCommandInput}
|
|
85
|
+
* @returns {@link GetSessionCommandOutput}
|
|
86
|
+
* @see {@link GetSessionCommandInput} for command's `input` shape.
|
|
87
|
+
* @see {@link GetSessionCommandOutput} for command's `response` shape.
|
|
88
|
+
* @see {@link MPAClientResolvedConfig | config} for MPAClient's `config` shape.
|
|
89
|
+
*
|
|
90
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
91
|
+
* <p>You do not have sufficient access to perform this action. Check your permissions, and try again.</p>
|
|
92
|
+
*
|
|
93
|
+
* @throws {@link InternalServerException} (server fault)
|
|
94
|
+
* <p>The service encountered an internal error. Try your request again. If the problem persists, contact Amazon Web Services Support.</p>
|
|
95
|
+
*
|
|
96
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
97
|
+
* <p>The specified resource doesn't exist. Check the resource ID, and try again.</p>
|
|
98
|
+
*
|
|
99
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
100
|
+
* <p>The request was denied due to request throttling.</p>
|
|
101
|
+
*
|
|
102
|
+
* @throws {@link ValidationException} (client fault)
|
|
103
|
+
* <p>The input fails to satisfy the constraints specified by an Amazon Web Services service.</p>
|
|
104
|
+
*
|
|
105
|
+
* @throws {@link MPAServiceException}
|
|
106
|
+
* <p>Base exception class for all service exceptions from MPA service.</p>
|
|
107
|
+
*
|
|
108
|
+
*
|
|
109
|
+
* @public
|
|
110
|
+
*/
|
|
111
|
+
export declare class GetSessionCommand extends GetSessionCommand_base {
|
|
112
|
+
/** @internal type navigation helper, not in runtime. */
|
|
113
|
+
protected static __types: {
|
|
114
|
+
api: {
|
|
115
|
+
input: GetSessionRequest;
|
|
116
|
+
output: GetSessionResponse;
|
|
117
|
+
};
|
|
118
|
+
sdk: {
|
|
119
|
+
input: GetSessionCommandInput;
|
|
120
|
+
output: GetSessionCommandOutput;
|
|
121
|
+
};
|
|
122
|
+
};
|
|
123
|
+
}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { ListApprovalTeamsRequest, ListApprovalTeamsResponse } from "../models/models_0";
|
|
4
|
+
import { MPAClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MPAClient";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link ListApprovalTeamsCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface ListApprovalTeamsCommandInput extends ListApprovalTeamsRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link ListApprovalTeamsCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface ListApprovalTeamsCommandOutput extends ListApprovalTeamsResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const ListApprovalTeamsCommand_base: {
|
|
25
|
+
new (input: ListApprovalTeamsCommandInput): import("@smithy/smithy-client").CommandImpl<ListApprovalTeamsCommandInput, ListApprovalTeamsCommandOutput, MPAClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (...[input]: [] | [ListApprovalTeamsCommandInput]): import("@smithy/smithy-client").CommandImpl<ListApprovalTeamsCommandInput, ListApprovalTeamsCommandOutput, MPAClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Returns a list of approval teams.</p>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { MPAClient, ListApprovalTeamsCommand } from "@aws-sdk/client-mpa"; // ES Modules import
|
|
35
|
+
* // const { MPAClient, ListApprovalTeamsCommand } = require("@aws-sdk/client-mpa"); // CommonJS import
|
|
36
|
+
* const client = new MPAClient(config);
|
|
37
|
+
* const input = { // ListApprovalTeamsRequest
|
|
38
|
+
* MaxResults: Number("int"),
|
|
39
|
+
* NextToken: "STRING_VALUE",
|
|
40
|
+
* };
|
|
41
|
+
* const command = new ListApprovalTeamsCommand(input);
|
|
42
|
+
* const response = await client.send(command);
|
|
43
|
+
* // { // ListApprovalTeamsResponse
|
|
44
|
+
* // NextToken: "STRING_VALUE",
|
|
45
|
+
* // ApprovalTeams: [ // ListApprovalTeamsResponseApprovalTeams
|
|
46
|
+
* // { // ListApprovalTeamsResponseApprovalTeam
|
|
47
|
+
* // CreationTime: new Date("TIMESTAMP"),
|
|
48
|
+
* // ApprovalStrategy: { // ApprovalStrategyResponse Union: only one key present
|
|
49
|
+
* // MofN: { // MofNApprovalStrategy
|
|
50
|
+
* // MinApprovalsRequired: Number("int"), // required
|
|
51
|
+
* // },
|
|
52
|
+
* // },
|
|
53
|
+
* // NumberOfApprovers: Number("int"),
|
|
54
|
+
* // Arn: "STRING_VALUE",
|
|
55
|
+
* // Name: "STRING_VALUE",
|
|
56
|
+
* // Description: "STRING_VALUE",
|
|
57
|
+
* // Status: "ACTIVE" || "INACTIVE" || "DELETING" || "PENDING",
|
|
58
|
+
* // StatusCode: "VALIDATING" || "PENDING_ACTIVATION" || "FAILED_VALIDATION" || "FAILED_ACTIVATION" || "UPDATE_PENDING_APPROVAL" || "UPDATE_PENDING_ACTIVATION" || "UPDATE_FAILED_APPROVAL" || "UPDATE_FAILED_ACTIVATION" || "UPDATE_FAILED_VALIDATION" || "DELETE_PENDING_APPROVAL" || "DELETE_FAILED_APPROVAL" || "DELETE_FAILED_VALIDATION",
|
|
59
|
+
* // StatusMessage: "STRING_VALUE",
|
|
60
|
+
* // },
|
|
61
|
+
* // ],
|
|
62
|
+
* // };
|
|
63
|
+
*
|
|
64
|
+
* ```
|
|
65
|
+
*
|
|
66
|
+
* @param ListApprovalTeamsCommandInput - {@link ListApprovalTeamsCommandInput}
|
|
67
|
+
* @returns {@link ListApprovalTeamsCommandOutput}
|
|
68
|
+
* @see {@link ListApprovalTeamsCommandInput} for command's `input` shape.
|
|
69
|
+
* @see {@link ListApprovalTeamsCommandOutput} for command's `response` shape.
|
|
70
|
+
* @see {@link MPAClientResolvedConfig | config} for MPAClient's `config` shape.
|
|
71
|
+
*
|
|
72
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
73
|
+
* <p>You do not have sufficient access to perform this action. Check your permissions, and try again.</p>
|
|
74
|
+
*
|
|
75
|
+
* @throws {@link InternalServerException} (server fault)
|
|
76
|
+
* <p>The service encountered an internal error. Try your request again. If the problem persists, contact Amazon Web Services Support.</p>
|
|
77
|
+
*
|
|
78
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
79
|
+
* <p>The request was denied due to request throttling.</p>
|
|
80
|
+
*
|
|
81
|
+
* @throws {@link ValidationException} (client fault)
|
|
82
|
+
* <p>The input fails to satisfy the constraints specified by an Amazon Web Services service.</p>
|
|
83
|
+
*
|
|
84
|
+
* @throws {@link MPAServiceException}
|
|
85
|
+
* <p>Base exception class for all service exceptions from MPA service.</p>
|
|
86
|
+
*
|
|
87
|
+
*
|
|
88
|
+
* @public
|
|
89
|
+
*/
|
|
90
|
+
export declare class ListApprovalTeamsCommand extends ListApprovalTeamsCommand_base {
|
|
91
|
+
/** @internal type navigation helper, not in runtime. */
|
|
92
|
+
protected static __types: {
|
|
93
|
+
api: {
|
|
94
|
+
input: ListApprovalTeamsRequest;
|
|
95
|
+
output: ListApprovalTeamsResponse;
|
|
96
|
+
};
|
|
97
|
+
sdk: {
|
|
98
|
+
input: ListApprovalTeamsCommandInput;
|
|
99
|
+
output: ListApprovalTeamsCommandOutput;
|
|
100
|
+
};
|
|
101
|
+
};
|
|
102
|
+
}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { ListIdentitySourcesRequest, ListIdentitySourcesResponse } from "../models/models_0";
|
|
4
|
+
import { MPAClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MPAClient";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link ListIdentitySourcesCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface ListIdentitySourcesCommandInput extends ListIdentitySourcesRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link ListIdentitySourcesCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface ListIdentitySourcesCommandOutput extends ListIdentitySourcesResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const ListIdentitySourcesCommand_base: {
|
|
25
|
+
new (input: ListIdentitySourcesCommandInput): import("@smithy/smithy-client").CommandImpl<ListIdentitySourcesCommandInput, ListIdentitySourcesCommandOutput, MPAClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (...[input]: [] | [ListIdentitySourcesCommandInput]): import("@smithy/smithy-client").CommandImpl<ListIdentitySourcesCommandInput, ListIdentitySourcesCommandOutput, MPAClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Returns a list of identity sources. For more information, see <a href="https://docs.aws.amazon.com/mpa/latest/userguide/mpa-concepts.html">Identity Source</a> in the <i>Multi-party approval User Guide</i>.</p>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { MPAClient, ListIdentitySourcesCommand } from "@aws-sdk/client-mpa"; // ES Modules import
|
|
35
|
+
* // const { MPAClient, ListIdentitySourcesCommand } = require("@aws-sdk/client-mpa"); // CommonJS import
|
|
36
|
+
* const client = new MPAClient(config);
|
|
37
|
+
* const input = { // ListIdentitySourcesRequest
|
|
38
|
+
* MaxResults: Number("int"),
|
|
39
|
+
* NextToken: "STRING_VALUE",
|
|
40
|
+
* };
|
|
41
|
+
* const command = new ListIdentitySourcesCommand(input);
|
|
42
|
+
* const response = await client.send(command);
|
|
43
|
+
* // { // ListIdentitySourcesResponse
|
|
44
|
+
* // NextToken: "STRING_VALUE",
|
|
45
|
+
* // IdentitySources: [ // IdentitySources
|
|
46
|
+
* // { // IdentitySourceForList
|
|
47
|
+
* // IdentitySourceType: "IAM_IDENTITY_CENTER",
|
|
48
|
+
* // IdentitySourceParameters: { // IdentitySourceParametersForList Union: only one key present
|
|
49
|
+
* // IamIdentityCenter: { // IamIdentityCenterForList
|
|
50
|
+
* // InstanceArn: "STRING_VALUE",
|
|
51
|
+
* // ApprovalPortalUrl: "STRING_VALUE",
|
|
52
|
+
* // Region: "STRING_VALUE",
|
|
53
|
+
* // },
|
|
54
|
+
* // },
|
|
55
|
+
* // IdentitySourceArn: "STRING_VALUE",
|
|
56
|
+
* // CreationTime: new Date("TIMESTAMP"),
|
|
57
|
+
* // Status: "CREATING" || "ACTIVE" || "DELETING" || "ERROR",
|
|
58
|
+
* // StatusCode: "ACCESS_DENIED" || "DELETION_FAILED" || "IDC_INSTANCE_NOT_FOUND" || "IDC_INSTANCE_NOT_VALID",
|
|
59
|
+
* // StatusMessage: "STRING_VALUE",
|
|
60
|
+
* // },
|
|
61
|
+
* // ],
|
|
62
|
+
* // };
|
|
63
|
+
*
|
|
64
|
+
* ```
|
|
65
|
+
*
|
|
66
|
+
* @param ListIdentitySourcesCommandInput - {@link ListIdentitySourcesCommandInput}
|
|
67
|
+
* @returns {@link ListIdentitySourcesCommandOutput}
|
|
68
|
+
* @see {@link ListIdentitySourcesCommandInput} for command's `input` shape.
|
|
69
|
+
* @see {@link ListIdentitySourcesCommandOutput} for command's `response` shape.
|
|
70
|
+
* @see {@link MPAClientResolvedConfig | config} for MPAClient's `config` shape.
|
|
71
|
+
*
|
|
72
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
73
|
+
* <p>You do not have sufficient access to perform this action. Check your permissions, and try again.</p>
|
|
74
|
+
*
|
|
75
|
+
* @throws {@link InternalServerException} (server fault)
|
|
76
|
+
* <p>The service encountered an internal error. Try your request again. If the problem persists, contact Amazon Web Services Support.</p>
|
|
77
|
+
*
|
|
78
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
79
|
+
* <p>The request was denied due to request throttling.</p>
|
|
80
|
+
*
|
|
81
|
+
* @throws {@link ValidationException} (client fault)
|
|
82
|
+
* <p>The input fails to satisfy the constraints specified by an Amazon Web Services service.</p>
|
|
83
|
+
*
|
|
84
|
+
* @throws {@link MPAServiceException}
|
|
85
|
+
* <p>Base exception class for all service exceptions from MPA service.</p>
|
|
86
|
+
*
|
|
87
|
+
*
|
|
88
|
+
* @public
|
|
89
|
+
*/
|
|
90
|
+
export declare class ListIdentitySourcesCommand extends ListIdentitySourcesCommand_base {
|
|
91
|
+
/** @internal type navigation helper, not in runtime. */
|
|
92
|
+
protected static __types: {
|
|
93
|
+
api: {
|
|
94
|
+
input: ListIdentitySourcesRequest;
|
|
95
|
+
output: ListIdentitySourcesResponse;
|
|
96
|
+
};
|
|
97
|
+
sdk: {
|
|
98
|
+
input: ListIdentitySourcesCommandInput;
|
|
99
|
+
output: ListIdentitySourcesCommandOutput;
|
|
100
|
+
};
|
|
101
|
+
};
|
|
102
|
+
}
|