@aws-sdk/client-mpa 3.1137.0 → 3.1138.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/index.js CHANGED
@@ -67,7 +67,7 @@ const commonParams = {
67
67
  Region: { type: "builtInParams", name: "region" },
68
68
  };
69
69
 
70
- var version = "3.1136.0";
70
+ var version = "3.1137.0";
71
71
  var packageInfo = {
72
72
  version: version};
73
73
 
@@ -451,10 +451,10 @@ const _hQ = "httpQuery";
451
451
  const _s = "smithy.ts.sdk.synthetic.com.amazonaws.mpa";
452
452
  const _se = "server";
453
453
  const n0 = "com.amazonaws.mpa";
454
- const _s_registry = TypeRegistry.for(_s);
454
+ const _s_registry = new TypeRegistry(_s);
455
455
  var MPAServiceException$ = [-3, _s, "MPAServiceException", 0, [], []];
456
456
  _s_registry.registerError(MPAServiceException$, MPAServiceException);
457
- const n0_registry = TypeRegistry.for(n0);
457
+ const n0_registry = new TypeRegistry(n0);
458
458
  var AccessDeniedException$ = [-3, n0, _ADE,
459
459
  { [_e]: _c, [_hE]: 403 },
460
460
  [_M],
@@ -203,10 +203,10 @@ const n0 = "com.amazonaws.mpa";
203
203
  import { TypeRegistry } from "@smithy/core/schema";
204
204
  import { AccessDeniedException, ConflictException, InternalServerException, InvalidParameterException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, TooManyTagsException, ValidationException, } from "../models/errors";
205
205
  import { MPAServiceException } from "../models/MPAServiceException";
206
- const _s_registry = TypeRegistry.for(_s);
206
+ const _s_registry = new TypeRegistry(_s);
207
207
  export var MPAServiceException$ = [-3, _s, "MPAServiceException", 0, [], []];
208
208
  _s_registry.registerError(MPAServiceException$, MPAServiceException);
209
- const n0_registry = TypeRegistry.for(n0);
209
+ const n0_registry = new TypeRegistry(n0);
210
210
  export var AccessDeniedException$ = [-3, n0, _ADE,
211
211
  { [_e]: _c, [_hE]: 403 },
212
212
  [_M],
@@ -1,4 +1,4 @@
1
- import type { HttpHandlerOptions as __HttpHandlerOptions, PaginationConfiguration, Paginator } from "@smithy/types";
1
+ import type { HttpHandlerOptions as __HttpHandlerOptions, MetricsRecorder as __MetricsRecorder, PaginationConfiguration, Paginator } from "@smithy/types";
2
2
  import { type CancelSessionCommandInput, type CancelSessionCommandOutput } from "./commands/CancelSessionCommand";
3
3
  import { type CreateApprovalTeamCommandInput, type CreateApprovalTeamCommandOutput } from "./commands/CreateApprovalTeamCommand";
4
4
  import { type CreateIdentitySourceCommandInput, type CreateIdentitySourceCommandOutput } from "./commands/CreateIdentitySourceCommand";
@@ -22,142 +22,148 @@ import { type TagResourceCommandInput, type TagResourceCommandOutput } from "./c
22
22
  import { type UntagResourceCommandInput, type UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
23
23
  import { type UpdateApprovalTeamCommandInput, type UpdateApprovalTeamCommandOutput } from "./commands/UpdateApprovalTeamCommand";
24
24
  import { MPAClient } from "./MPAClient";
25
+ /**
26
+ * @public
27
+ */
28
+ export interface MPARequestOptions extends __HttpHandlerOptions {
29
+ metricsRecorder?: __MetricsRecorder<unknown>;
30
+ }
25
31
  export interface MPA {
26
32
  /**
27
33
  * @see {@link CancelSessionCommand}
28
34
  */
29
- cancelSession(args: CancelSessionCommandInput, options?: __HttpHandlerOptions): Promise<CancelSessionCommandOutput>;
35
+ cancelSession(args: CancelSessionCommandInput, options?: MPARequestOptions): Promise<CancelSessionCommandOutput>;
30
36
  cancelSession(args: CancelSessionCommandInput, cb: (err: any, data?: CancelSessionCommandOutput) => void): void;
31
- cancelSession(args: CancelSessionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CancelSessionCommandOutput) => void): void;
37
+ cancelSession(args: CancelSessionCommandInput, options: MPARequestOptions, cb: (err: any, data?: CancelSessionCommandOutput) => void): void;
32
38
  /**
33
39
  * @see {@link CreateApprovalTeamCommand}
34
40
  */
35
- createApprovalTeam(args: CreateApprovalTeamCommandInput, options?: __HttpHandlerOptions): Promise<CreateApprovalTeamCommandOutput>;
41
+ createApprovalTeam(args: CreateApprovalTeamCommandInput, options?: MPARequestOptions): Promise<CreateApprovalTeamCommandOutput>;
36
42
  createApprovalTeam(args: CreateApprovalTeamCommandInput, cb: (err: any, data?: CreateApprovalTeamCommandOutput) => void): void;
37
- createApprovalTeam(args: CreateApprovalTeamCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateApprovalTeamCommandOutput) => void): void;
43
+ createApprovalTeam(args: CreateApprovalTeamCommandInput, options: MPARequestOptions, cb: (err: any, data?: CreateApprovalTeamCommandOutput) => void): void;
38
44
  /**
39
45
  * @see {@link CreateIdentitySourceCommand}
40
46
  */
41
- createIdentitySource(args: CreateIdentitySourceCommandInput, options?: __HttpHandlerOptions): Promise<CreateIdentitySourceCommandOutput>;
47
+ createIdentitySource(args: CreateIdentitySourceCommandInput, options?: MPARequestOptions): Promise<CreateIdentitySourceCommandOutput>;
42
48
  createIdentitySource(args: CreateIdentitySourceCommandInput, cb: (err: any, data?: CreateIdentitySourceCommandOutput) => void): void;
43
- createIdentitySource(args: CreateIdentitySourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateIdentitySourceCommandOutput) => void): void;
49
+ createIdentitySource(args: CreateIdentitySourceCommandInput, options: MPARequestOptions, cb: (err: any, data?: CreateIdentitySourceCommandOutput) => void): void;
44
50
  /**
45
51
  * @see {@link DeleteIdentitySourceCommand}
46
52
  */
47
- deleteIdentitySource(args: DeleteIdentitySourceCommandInput, options?: __HttpHandlerOptions): Promise<DeleteIdentitySourceCommandOutput>;
53
+ deleteIdentitySource(args: DeleteIdentitySourceCommandInput, options?: MPARequestOptions): Promise<DeleteIdentitySourceCommandOutput>;
48
54
  deleteIdentitySource(args: DeleteIdentitySourceCommandInput, cb: (err: any, data?: DeleteIdentitySourceCommandOutput) => void): void;
49
- deleteIdentitySource(args: DeleteIdentitySourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteIdentitySourceCommandOutput) => void): void;
55
+ deleteIdentitySource(args: DeleteIdentitySourceCommandInput, options: MPARequestOptions, cb: (err: any, data?: DeleteIdentitySourceCommandOutput) => void): void;
50
56
  /**
51
57
  * @see {@link DeleteInactiveApprovalTeamVersionCommand}
52
58
  */
53
- deleteInactiveApprovalTeamVersion(args: DeleteInactiveApprovalTeamVersionCommandInput, options?: __HttpHandlerOptions): Promise<DeleteInactiveApprovalTeamVersionCommandOutput>;
59
+ deleteInactiveApprovalTeamVersion(args: DeleteInactiveApprovalTeamVersionCommandInput, options?: MPARequestOptions): Promise<DeleteInactiveApprovalTeamVersionCommandOutput>;
54
60
  deleteInactiveApprovalTeamVersion(args: DeleteInactiveApprovalTeamVersionCommandInput, cb: (err: any, data?: DeleteInactiveApprovalTeamVersionCommandOutput) => void): void;
55
- deleteInactiveApprovalTeamVersion(args: DeleteInactiveApprovalTeamVersionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteInactiveApprovalTeamVersionCommandOutput) => void): void;
61
+ deleteInactiveApprovalTeamVersion(args: DeleteInactiveApprovalTeamVersionCommandInput, options: MPARequestOptions, cb: (err: any, data?: DeleteInactiveApprovalTeamVersionCommandOutput) => void): void;
56
62
  /**
57
63
  * @see {@link GetApprovalTeamCommand}
58
64
  */
59
- getApprovalTeam(args: GetApprovalTeamCommandInput, options?: __HttpHandlerOptions): Promise<GetApprovalTeamCommandOutput>;
65
+ getApprovalTeam(args: GetApprovalTeamCommandInput, options?: MPARequestOptions): Promise<GetApprovalTeamCommandOutput>;
60
66
  getApprovalTeam(args: GetApprovalTeamCommandInput, cb: (err: any, data?: GetApprovalTeamCommandOutput) => void): void;
61
- getApprovalTeam(args: GetApprovalTeamCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetApprovalTeamCommandOutput) => void): void;
67
+ getApprovalTeam(args: GetApprovalTeamCommandInput, options: MPARequestOptions, cb: (err: any, data?: GetApprovalTeamCommandOutput) => void): void;
62
68
  /**
63
69
  * @see {@link GetIdentitySourceCommand}
64
70
  */
65
- getIdentitySource(args: GetIdentitySourceCommandInput, options?: __HttpHandlerOptions): Promise<GetIdentitySourceCommandOutput>;
71
+ getIdentitySource(args: GetIdentitySourceCommandInput, options?: MPARequestOptions): Promise<GetIdentitySourceCommandOutput>;
66
72
  getIdentitySource(args: GetIdentitySourceCommandInput, cb: (err: any, data?: GetIdentitySourceCommandOutput) => void): void;
67
- getIdentitySource(args: GetIdentitySourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetIdentitySourceCommandOutput) => void): void;
73
+ getIdentitySource(args: GetIdentitySourceCommandInput, options: MPARequestOptions, cb: (err: any, data?: GetIdentitySourceCommandOutput) => void): void;
68
74
  /**
69
75
  * @see {@link GetPolicyVersionCommand}
70
76
  */
71
- getPolicyVersion(args: GetPolicyVersionCommandInput, options?: __HttpHandlerOptions): Promise<GetPolicyVersionCommandOutput>;
77
+ getPolicyVersion(args: GetPolicyVersionCommandInput, options?: MPARequestOptions): Promise<GetPolicyVersionCommandOutput>;
72
78
  getPolicyVersion(args: GetPolicyVersionCommandInput, cb: (err: any, data?: GetPolicyVersionCommandOutput) => void): void;
73
- getPolicyVersion(args: GetPolicyVersionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetPolicyVersionCommandOutput) => void): void;
79
+ getPolicyVersion(args: GetPolicyVersionCommandInput, options: MPARequestOptions, cb: (err: any, data?: GetPolicyVersionCommandOutput) => void): void;
74
80
  /**
75
81
  * @see {@link GetResourcePolicyCommand}
76
82
  */
77
- getResourcePolicy(args: GetResourcePolicyCommandInput, options?: __HttpHandlerOptions): Promise<GetResourcePolicyCommandOutput>;
83
+ getResourcePolicy(args: GetResourcePolicyCommandInput, options?: MPARequestOptions): Promise<GetResourcePolicyCommandOutput>;
78
84
  getResourcePolicy(args: GetResourcePolicyCommandInput, cb: (err: any, data?: GetResourcePolicyCommandOutput) => void): void;
79
- getResourcePolicy(args: GetResourcePolicyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetResourcePolicyCommandOutput) => void): void;
85
+ getResourcePolicy(args: GetResourcePolicyCommandInput, options: MPARequestOptions, cb: (err: any, data?: GetResourcePolicyCommandOutput) => void): void;
80
86
  /**
81
87
  * @see {@link GetSessionCommand}
82
88
  */
83
- getSession(args: GetSessionCommandInput, options?: __HttpHandlerOptions): Promise<GetSessionCommandOutput>;
89
+ getSession(args: GetSessionCommandInput, options?: MPARequestOptions): Promise<GetSessionCommandOutput>;
84
90
  getSession(args: GetSessionCommandInput, cb: (err: any, data?: GetSessionCommandOutput) => void): void;
85
- getSession(args: GetSessionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetSessionCommandOutput) => void): void;
91
+ getSession(args: GetSessionCommandInput, options: MPARequestOptions, cb: (err: any, data?: GetSessionCommandOutput) => void): void;
86
92
  /**
87
93
  * @see {@link ListApprovalTeamsCommand}
88
94
  */
89
95
  listApprovalTeams(): Promise<ListApprovalTeamsCommandOutput>;
90
- listApprovalTeams(args: ListApprovalTeamsCommandInput, options?: __HttpHandlerOptions): Promise<ListApprovalTeamsCommandOutput>;
96
+ listApprovalTeams(args: ListApprovalTeamsCommandInput, options?: MPARequestOptions): Promise<ListApprovalTeamsCommandOutput>;
91
97
  listApprovalTeams(args: ListApprovalTeamsCommandInput, cb: (err: any, data?: ListApprovalTeamsCommandOutput) => void): void;
92
- listApprovalTeams(args: ListApprovalTeamsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListApprovalTeamsCommandOutput) => void): void;
98
+ listApprovalTeams(args: ListApprovalTeamsCommandInput, options: MPARequestOptions, cb: (err: any, data?: ListApprovalTeamsCommandOutput) => void): void;
93
99
  /**
94
100
  * @see {@link ListIdentitySourcesCommand}
95
101
  */
96
102
  listIdentitySources(): Promise<ListIdentitySourcesCommandOutput>;
97
- listIdentitySources(args: ListIdentitySourcesCommandInput, options?: __HttpHandlerOptions): Promise<ListIdentitySourcesCommandOutput>;
103
+ listIdentitySources(args: ListIdentitySourcesCommandInput, options?: MPARequestOptions): Promise<ListIdentitySourcesCommandOutput>;
98
104
  listIdentitySources(args: ListIdentitySourcesCommandInput, cb: (err: any, data?: ListIdentitySourcesCommandOutput) => void): void;
99
- listIdentitySources(args: ListIdentitySourcesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListIdentitySourcesCommandOutput) => void): void;
105
+ listIdentitySources(args: ListIdentitySourcesCommandInput, options: MPARequestOptions, cb: (err: any, data?: ListIdentitySourcesCommandOutput) => void): void;
100
106
  /**
101
107
  * @see {@link ListPoliciesCommand}
102
108
  */
103
109
  listPolicies(): Promise<ListPoliciesCommandOutput>;
104
- listPolicies(args: ListPoliciesCommandInput, options?: __HttpHandlerOptions): Promise<ListPoliciesCommandOutput>;
110
+ listPolicies(args: ListPoliciesCommandInput, options?: MPARequestOptions): Promise<ListPoliciesCommandOutput>;
105
111
  listPolicies(args: ListPoliciesCommandInput, cb: (err: any, data?: ListPoliciesCommandOutput) => void): void;
106
- listPolicies(args: ListPoliciesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListPoliciesCommandOutput) => void): void;
112
+ listPolicies(args: ListPoliciesCommandInput, options: MPARequestOptions, cb: (err: any, data?: ListPoliciesCommandOutput) => void): void;
107
113
  /**
108
114
  * @see {@link ListPolicyVersionsCommand}
109
115
  */
110
- listPolicyVersions(args: ListPolicyVersionsCommandInput, options?: __HttpHandlerOptions): Promise<ListPolicyVersionsCommandOutput>;
116
+ listPolicyVersions(args: ListPolicyVersionsCommandInput, options?: MPARequestOptions): Promise<ListPolicyVersionsCommandOutput>;
111
117
  listPolicyVersions(args: ListPolicyVersionsCommandInput, cb: (err: any, data?: ListPolicyVersionsCommandOutput) => void): void;
112
- listPolicyVersions(args: ListPolicyVersionsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListPolicyVersionsCommandOutput) => void): void;
118
+ listPolicyVersions(args: ListPolicyVersionsCommandInput, options: MPARequestOptions, cb: (err: any, data?: ListPolicyVersionsCommandOutput) => void): void;
113
119
  /**
114
120
  * @see {@link ListResourcePoliciesCommand}
115
121
  */
116
- listResourcePolicies(args: ListResourcePoliciesCommandInput, options?: __HttpHandlerOptions): Promise<ListResourcePoliciesCommandOutput>;
122
+ listResourcePolicies(args: ListResourcePoliciesCommandInput, options?: MPARequestOptions): Promise<ListResourcePoliciesCommandOutput>;
117
123
  listResourcePolicies(args: ListResourcePoliciesCommandInput, cb: (err: any, data?: ListResourcePoliciesCommandOutput) => void): void;
118
- listResourcePolicies(args: ListResourcePoliciesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListResourcePoliciesCommandOutput) => void): void;
124
+ listResourcePolicies(args: ListResourcePoliciesCommandInput, options: MPARequestOptions, cb: (err: any, data?: ListResourcePoliciesCommandOutput) => void): void;
119
125
  /**
120
126
  * @see {@link ListSessionsCommand}
121
127
  */
122
- listSessions(args: ListSessionsCommandInput, options?: __HttpHandlerOptions): Promise<ListSessionsCommandOutput>;
128
+ listSessions(args: ListSessionsCommandInput, options?: MPARequestOptions): Promise<ListSessionsCommandOutput>;
123
129
  listSessions(args: ListSessionsCommandInput, cb: (err: any, data?: ListSessionsCommandOutput) => void): void;
124
- listSessions(args: ListSessionsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListSessionsCommandOutput) => void): void;
130
+ listSessions(args: ListSessionsCommandInput, options: MPARequestOptions, cb: (err: any, data?: ListSessionsCommandOutput) => void): void;
125
131
  /**
126
132
  * @see {@link ListTagsForResourceCommand}
127
133
  */
128
- listTagsForResource(args: ListTagsForResourceCommandInput, options?: __HttpHandlerOptions): Promise<ListTagsForResourceCommandOutput>;
134
+ listTagsForResource(args: ListTagsForResourceCommandInput, options?: MPARequestOptions): Promise<ListTagsForResourceCommandOutput>;
129
135
  listTagsForResource(args: ListTagsForResourceCommandInput, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
130
- listTagsForResource(args: ListTagsForResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
136
+ listTagsForResource(args: ListTagsForResourceCommandInput, options: MPARequestOptions, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
131
137
  /**
132
138
  * @see {@link StartActiveApprovalTeamDeletionCommand}
133
139
  */
134
- startActiveApprovalTeamDeletion(args: StartActiveApprovalTeamDeletionCommandInput, options?: __HttpHandlerOptions): Promise<StartActiveApprovalTeamDeletionCommandOutput>;
140
+ startActiveApprovalTeamDeletion(args: StartActiveApprovalTeamDeletionCommandInput, options?: MPARequestOptions): Promise<StartActiveApprovalTeamDeletionCommandOutput>;
135
141
  startActiveApprovalTeamDeletion(args: StartActiveApprovalTeamDeletionCommandInput, cb: (err: any, data?: StartActiveApprovalTeamDeletionCommandOutput) => void): void;
136
- startActiveApprovalTeamDeletion(args: StartActiveApprovalTeamDeletionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartActiveApprovalTeamDeletionCommandOutput) => void): void;
142
+ startActiveApprovalTeamDeletion(args: StartActiveApprovalTeamDeletionCommandInput, options: MPARequestOptions, cb: (err: any, data?: StartActiveApprovalTeamDeletionCommandOutput) => void): void;
137
143
  /**
138
144
  * @see {@link StartApprovalTeamBaselineCommand}
139
145
  */
140
- startApprovalTeamBaseline(args: StartApprovalTeamBaselineCommandInput, options?: __HttpHandlerOptions): Promise<StartApprovalTeamBaselineCommandOutput>;
146
+ startApprovalTeamBaseline(args: StartApprovalTeamBaselineCommandInput, options?: MPARequestOptions): Promise<StartApprovalTeamBaselineCommandOutput>;
141
147
  startApprovalTeamBaseline(args: StartApprovalTeamBaselineCommandInput, cb: (err: any, data?: StartApprovalTeamBaselineCommandOutput) => void): void;
142
- startApprovalTeamBaseline(args: StartApprovalTeamBaselineCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartApprovalTeamBaselineCommandOutput) => void): void;
148
+ startApprovalTeamBaseline(args: StartApprovalTeamBaselineCommandInput, options: MPARequestOptions, cb: (err: any, data?: StartApprovalTeamBaselineCommandOutput) => void): void;
143
149
  /**
144
150
  * @see {@link TagResourceCommand}
145
151
  */
146
- tagResource(args: TagResourceCommandInput, options?: __HttpHandlerOptions): Promise<TagResourceCommandOutput>;
152
+ tagResource(args: TagResourceCommandInput, options?: MPARequestOptions): Promise<TagResourceCommandOutput>;
147
153
  tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
148
- tagResource(args: TagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
154
+ tagResource(args: TagResourceCommandInput, options: MPARequestOptions, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
149
155
  /**
150
156
  * @see {@link UntagResourceCommand}
151
157
  */
152
- untagResource(args: UntagResourceCommandInput, options?: __HttpHandlerOptions): Promise<UntagResourceCommandOutput>;
158
+ untagResource(args: UntagResourceCommandInput, options?: MPARequestOptions): Promise<UntagResourceCommandOutput>;
153
159
  untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
154
- untagResource(args: UntagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
160
+ untagResource(args: UntagResourceCommandInput, options: MPARequestOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
155
161
  /**
156
162
  * @see {@link UpdateApprovalTeamCommand}
157
163
  */
158
- updateApprovalTeam(args: UpdateApprovalTeamCommandInput, options?: __HttpHandlerOptions): Promise<UpdateApprovalTeamCommandOutput>;
164
+ updateApprovalTeam(args: UpdateApprovalTeamCommandInput, options?: MPARequestOptions): Promise<UpdateApprovalTeamCommandOutput>;
159
165
  updateApprovalTeam(args: UpdateApprovalTeamCommandInput, cb: (err: any, data?: UpdateApprovalTeamCommandOutput) => void): void;
160
- updateApprovalTeam(args: UpdateApprovalTeamCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateApprovalTeamCommandOutput) => void): void;
166
+ updateApprovalTeam(args: UpdateApprovalTeamCommandInput, options: MPARequestOptions, cb: (err: any, data?: UpdateApprovalTeamCommandOutput) => void): void;
161
167
  /**
162
168
  * @see {@link ListApprovalTeamsCommand}
163
169
  * @param args - command input.
@@ -1,5 +1,6 @@
1
1
  import {
2
2
  HttpHandlerOptions as __HttpHandlerOptions,
3
+ MetricsRecorder as __MetricsRecorder,
3
4
  PaginationConfiguration,
4
5
  Paginator,
5
6
  } from "@smithy/types";
@@ -86,10 +87,13 @@ import {
86
87
  UpdateApprovalTeamCommandOutput,
87
88
  } from "./commands/UpdateApprovalTeamCommand";
88
89
  import { MPAClient } from "./MPAClient";
90
+ export interface MPARequestOptions extends __HttpHandlerOptions {
91
+ metricsRecorder?: __MetricsRecorder<unknown>;
92
+ }
89
93
  export interface MPA {
90
94
  cancelSession(
91
95
  args: CancelSessionCommandInput,
92
- options?: __HttpHandlerOptions,
96
+ options?: MPARequestOptions,
93
97
  ): Promise<CancelSessionCommandOutput>;
94
98
  cancelSession(
95
99
  args: CancelSessionCommandInput,
@@ -97,12 +101,12 @@ export interface MPA {
97
101
  ): void;
98
102
  cancelSession(
99
103
  args: CancelSessionCommandInput,
100
- options: __HttpHandlerOptions,
104
+ options: MPARequestOptions,
101
105
  cb: (err: any, data?: CancelSessionCommandOutput) => void,
102
106
  ): void;
103
107
  createApprovalTeam(
104
108
  args: CreateApprovalTeamCommandInput,
105
- options?: __HttpHandlerOptions,
109
+ options?: MPARequestOptions,
106
110
  ): Promise<CreateApprovalTeamCommandOutput>;
107
111
  createApprovalTeam(
108
112
  args: CreateApprovalTeamCommandInput,
@@ -110,12 +114,12 @@ export interface MPA {
110
114
  ): void;
111
115
  createApprovalTeam(
112
116
  args: CreateApprovalTeamCommandInput,
113
- options: __HttpHandlerOptions,
117
+ options: MPARequestOptions,
114
118
  cb: (err: any, data?: CreateApprovalTeamCommandOutput) => void,
115
119
  ): void;
116
120
  createIdentitySource(
117
121
  args: CreateIdentitySourceCommandInput,
118
- options?: __HttpHandlerOptions,
122
+ options?: MPARequestOptions,
119
123
  ): Promise<CreateIdentitySourceCommandOutput>;
120
124
  createIdentitySource(
121
125
  args: CreateIdentitySourceCommandInput,
@@ -123,12 +127,12 @@ export interface MPA {
123
127
  ): void;
124
128
  createIdentitySource(
125
129
  args: CreateIdentitySourceCommandInput,
126
- options: __HttpHandlerOptions,
130
+ options: MPARequestOptions,
127
131
  cb: (err: any, data?: CreateIdentitySourceCommandOutput) => void,
128
132
  ): void;
129
133
  deleteIdentitySource(
130
134
  args: DeleteIdentitySourceCommandInput,
131
- options?: __HttpHandlerOptions,
135
+ options?: MPARequestOptions,
132
136
  ): Promise<DeleteIdentitySourceCommandOutput>;
133
137
  deleteIdentitySource(
134
138
  args: DeleteIdentitySourceCommandInput,
@@ -136,12 +140,12 @@ export interface MPA {
136
140
  ): void;
137
141
  deleteIdentitySource(
138
142
  args: DeleteIdentitySourceCommandInput,
139
- options: __HttpHandlerOptions,
143
+ options: MPARequestOptions,
140
144
  cb: (err: any, data?: DeleteIdentitySourceCommandOutput) => void,
141
145
  ): void;
142
146
  deleteInactiveApprovalTeamVersion(
143
147
  args: DeleteInactiveApprovalTeamVersionCommandInput,
144
- options?: __HttpHandlerOptions,
148
+ options?: MPARequestOptions,
145
149
  ): Promise<DeleteInactiveApprovalTeamVersionCommandOutput>;
146
150
  deleteInactiveApprovalTeamVersion(
147
151
  args: DeleteInactiveApprovalTeamVersionCommandInput,
@@ -149,12 +153,12 @@ export interface MPA {
149
153
  ): void;
150
154
  deleteInactiveApprovalTeamVersion(
151
155
  args: DeleteInactiveApprovalTeamVersionCommandInput,
152
- options: __HttpHandlerOptions,
156
+ options: MPARequestOptions,
153
157
  cb: (err: any, data?: DeleteInactiveApprovalTeamVersionCommandOutput) => void,
154
158
  ): void;
155
159
  getApprovalTeam(
156
160
  args: GetApprovalTeamCommandInput,
157
- options?: __HttpHandlerOptions,
161
+ options?: MPARequestOptions,
158
162
  ): Promise<GetApprovalTeamCommandOutput>;
159
163
  getApprovalTeam(
160
164
  args: GetApprovalTeamCommandInput,
@@ -162,12 +166,12 @@ export interface MPA {
162
166
  ): void;
163
167
  getApprovalTeam(
164
168
  args: GetApprovalTeamCommandInput,
165
- options: __HttpHandlerOptions,
169
+ options: MPARequestOptions,
166
170
  cb: (err: any, data?: GetApprovalTeamCommandOutput) => void,
167
171
  ): void;
168
172
  getIdentitySource(
169
173
  args: GetIdentitySourceCommandInput,
170
- options?: __HttpHandlerOptions,
174
+ options?: MPARequestOptions,
171
175
  ): Promise<GetIdentitySourceCommandOutput>;
172
176
  getIdentitySource(
173
177
  args: GetIdentitySourceCommandInput,
@@ -175,12 +179,12 @@ export interface MPA {
175
179
  ): void;
176
180
  getIdentitySource(
177
181
  args: GetIdentitySourceCommandInput,
178
- options: __HttpHandlerOptions,
182
+ options: MPARequestOptions,
179
183
  cb: (err: any, data?: GetIdentitySourceCommandOutput) => void,
180
184
  ): void;
181
185
  getPolicyVersion(
182
186
  args: GetPolicyVersionCommandInput,
183
- options?: __HttpHandlerOptions,
187
+ options?: MPARequestOptions,
184
188
  ): Promise<GetPolicyVersionCommandOutput>;
185
189
  getPolicyVersion(
186
190
  args: GetPolicyVersionCommandInput,
@@ -188,12 +192,12 @@ export interface MPA {
188
192
  ): void;
189
193
  getPolicyVersion(
190
194
  args: GetPolicyVersionCommandInput,
191
- options: __HttpHandlerOptions,
195
+ options: MPARequestOptions,
192
196
  cb: (err: any, data?: GetPolicyVersionCommandOutput) => void,
193
197
  ): void;
194
198
  getResourcePolicy(
195
199
  args: GetResourcePolicyCommandInput,
196
- options?: __HttpHandlerOptions,
200
+ options?: MPARequestOptions,
197
201
  ): Promise<GetResourcePolicyCommandOutput>;
198
202
  getResourcePolicy(
199
203
  args: GetResourcePolicyCommandInput,
@@ -201,12 +205,12 @@ export interface MPA {
201
205
  ): void;
202
206
  getResourcePolicy(
203
207
  args: GetResourcePolicyCommandInput,
204
- options: __HttpHandlerOptions,
208
+ options: MPARequestOptions,
205
209
  cb: (err: any, data?: GetResourcePolicyCommandOutput) => void,
206
210
  ): void;
207
211
  getSession(
208
212
  args: GetSessionCommandInput,
209
- options?: __HttpHandlerOptions,
213
+ options?: MPARequestOptions,
210
214
  ): Promise<GetSessionCommandOutput>;
211
215
  getSession(
212
216
  args: GetSessionCommandInput,
@@ -214,13 +218,13 @@ export interface MPA {
214
218
  ): void;
215
219
  getSession(
216
220
  args: GetSessionCommandInput,
217
- options: __HttpHandlerOptions,
221
+ options: MPARequestOptions,
218
222
  cb: (err: any, data?: GetSessionCommandOutput) => void,
219
223
  ): void;
220
224
  listApprovalTeams(): Promise<ListApprovalTeamsCommandOutput>;
221
225
  listApprovalTeams(
222
226
  args: ListApprovalTeamsCommandInput,
223
- options?: __HttpHandlerOptions,
227
+ options?: MPARequestOptions,
224
228
  ): Promise<ListApprovalTeamsCommandOutput>;
225
229
  listApprovalTeams(
226
230
  args: ListApprovalTeamsCommandInput,
@@ -228,13 +232,13 @@ export interface MPA {
228
232
  ): void;
229
233
  listApprovalTeams(
230
234
  args: ListApprovalTeamsCommandInput,
231
- options: __HttpHandlerOptions,
235
+ options: MPARequestOptions,
232
236
  cb: (err: any, data?: ListApprovalTeamsCommandOutput) => void,
233
237
  ): void;
234
238
  listIdentitySources(): Promise<ListIdentitySourcesCommandOutput>;
235
239
  listIdentitySources(
236
240
  args: ListIdentitySourcesCommandInput,
237
- options?: __HttpHandlerOptions,
241
+ options?: MPARequestOptions,
238
242
  ): Promise<ListIdentitySourcesCommandOutput>;
239
243
  listIdentitySources(
240
244
  args: ListIdentitySourcesCommandInput,
@@ -242,13 +246,13 @@ export interface MPA {
242
246
  ): void;
243
247
  listIdentitySources(
244
248
  args: ListIdentitySourcesCommandInput,
245
- options: __HttpHandlerOptions,
249
+ options: MPARequestOptions,
246
250
  cb: (err: any, data?: ListIdentitySourcesCommandOutput) => void,
247
251
  ): void;
248
252
  listPolicies(): Promise<ListPoliciesCommandOutput>;
249
253
  listPolicies(
250
254
  args: ListPoliciesCommandInput,
251
- options?: __HttpHandlerOptions,
255
+ options?: MPARequestOptions,
252
256
  ): Promise<ListPoliciesCommandOutput>;
253
257
  listPolicies(
254
258
  args: ListPoliciesCommandInput,
@@ -256,12 +260,12 @@ export interface MPA {
256
260
  ): void;
257
261
  listPolicies(
258
262
  args: ListPoliciesCommandInput,
259
- options: __HttpHandlerOptions,
263
+ options: MPARequestOptions,
260
264
  cb: (err: any, data?: ListPoliciesCommandOutput) => void,
261
265
  ): void;
262
266
  listPolicyVersions(
263
267
  args: ListPolicyVersionsCommandInput,
264
- options?: __HttpHandlerOptions,
268
+ options?: MPARequestOptions,
265
269
  ): Promise<ListPolicyVersionsCommandOutput>;
266
270
  listPolicyVersions(
267
271
  args: ListPolicyVersionsCommandInput,
@@ -269,12 +273,12 @@ export interface MPA {
269
273
  ): void;
270
274
  listPolicyVersions(
271
275
  args: ListPolicyVersionsCommandInput,
272
- options: __HttpHandlerOptions,
276
+ options: MPARequestOptions,
273
277
  cb: (err: any, data?: ListPolicyVersionsCommandOutput) => void,
274
278
  ): void;
275
279
  listResourcePolicies(
276
280
  args: ListResourcePoliciesCommandInput,
277
- options?: __HttpHandlerOptions,
281
+ options?: MPARequestOptions,
278
282
  ): Promise<ListResourcePoliciesCommandOutput>;
279
283
  listResourcePolicies(
280
284
  args: ListResourcePoliciesCommandInput,
@@ -282,12 +286,12 @@ export interface MPA {
282
286
  ): void;
283
287
  listResourcePolicies(
284
288
  args: ListResourcePoliciesCommandInput,
285
- options: __HttpHandlerOptions,
289
+ options: MPARequestOptions,
286
290
  cb: (err: any, data?: ListResourcePoliciesCommandOutput) => void,
287
291
  ): void;
288
292
  listSessions(
289
293
  args: ListSessionsCommandInput,
290
- options?: __HttpHandlerOptions,
294
+ options?: MPARequestOptions,
291
295
  ): Promise<ListSessionsCommandOutput>;
292
296
  listSessions(
293
297
  args: ListSessionsCommandInput,
@@ -295,12 +299,12 @@ export interface MPA {
295
299
  ): void;
296
300
  listSessions(
297
301
  args: ListSessionsCommandInput,
298
- options: __HttpHandlerOptions,
302
+ options: MPARequestOptions,
299
303
  cb: (err: any, data?: ListSessionsCommandOutput) => void,
300
304
  ): void;
301
305
  listTagsForResource(
302
306
  args: ListTagsForResourceCommandInput,
303
- options?: __HttpHandlerOptions,
307
+ options?: MPARequestOptions,
304
308
  ): Promise<ListTagsForResourceCommandOutput>;
305
309
  listTagsForResource(
306
310
  args: ListTagsForResourceCommandInput,
@@ -308,12 +312,12 @@ export interface MPA {
308
312
  ): void;
309
313
  listTagsForResource(
310
314
  args: ListTagsForResourceCommandInput,
311
- options: __HttpHandlerOptions,
315
+ options: MPARequestOptions,
312
316
  cb: (err: any, data?: ListTagsForResourceCommandOutput) => void,
313
317
  ): void;
314
318
  startActiveApprovalTeamDeletion(
315
319
  args: StartActiveApprovalTeamDeletionCommandInput,
316
- options?: __HttpHandlerOptions,
320
+ options?: MPARequestOptions,
317
321
  ): Promise<StartActiveApprovalTeamDeletionCommandOutput>;
318
322
  startActiveApprovalTeamDeletion(
319
323
  args: StartActiveApprovalTeamDeletionCommandInput,
@@ -321,12 +325,12 @@ export interface MPA {
321
325
  ): void;
322
326
  startActiveApprovalTeamDeletion(
323
327
  args: StartActiveApprovalTeamDeletionCommandInput,
324
- options: __HttpHandlerOptions,
328
+ options: MPARequestOptions,
325
329
  cb: (err: any, data?: StartActiveApprovalTeamDeletionCommandOutput) => void,
326
330
  ): void;
327
331
  startApprovalTeamBaseline(
328
332
  args: StartApprovalTeamBaselineCommandInput,
329
- options?: __HttpHandlerOptions,
333
+ options?: MPARequestOptions,
330
334
  ): Promise<StartApprovalTeamBaselineCommandOutput>;
331
335
  startApprovalTeamBaseline(
332
336
  args: StartApprovalTeamBaselineCommandInput,
@@ -334,12 +338,12 @@ export interface MPA {
334
338
  ): void;
335
339
  startApprovalTeamBaseline(
336
340
  args: StartApprovalTeamBaselineCommandInput,
337
- options: __HttpHandlerOptions,
341
+ options: MPARequestOptions,
338
342
  cb: (err: any, data?: StartApprovalTeamBaselineCommandOutput) => void,
339
343
  ): void;
340
344
  tagResource(
341
345
  args: TagResourceCommandInput,
342
- options?: __HttpHandlerOptions,
346
+ options?: MPARequestOptions,
343
347
  ): Promise<TagResourceCommandOutput>;
344
348
  tagResource(
345
349
  args: TagResourceCommandInput,
@@ -347,12 +351,12 @@ export interface MPA {
347
351
  ): void;
348
352
  tagResource(
349
353
  args: TagResourceCommandInput,
350
- options: __HttpHandlerOptions,
354
+ options: MPARequestOptions,
351
355
  cb: (err: any, data?: TagResourceCommandOutput) => void,
352
356
  ): void;
353
357
  untagResource(
354
358
  args: UntagResourceCommandInput,
355
- options?: __HttpHandlerOptions,
359
+ options?: MPARequestOptions,
356
360
  ): Promise<UntagResourceCommandOutput>;
357
361
  untagResource(
358
362
  args: UntagResourceCommandInput,
@@ -360,12 +364,12 @@ export interface MPA {
360
364
  ): void;
361
365
  untagResource(
362
366
  args: UntagResourceCommandInput,
363
- options: __HttpHandlerOptions,
367
+ options: MPARequestOptions,
364
368
  cb: (err: any, data?: UntagResourceCommandOutput) => void,
365
369
  ): void;
366
370
  updateApprovalTeam(
367
371
  args: UpdateApprovalTeamCommandInput,
368
- options?: __HttpHandlerOptions,
372
+ options?: MPARequestOptions,
369
373
  ): Promise<UpdateApprovalTeamCommandOutput>;
370
374
  updateApprovalTeam(
371
375
  args: UpdateApprovalTeamCommandInput,
@@ -373,7 +377,7 @@ export interface MPA {
373
377
  ): void;
374
378
  updateApprovalTeam(
375
379
  args: UpdateApprovalTeamCommandInput,
376
- options: __HttpHandlerOptions,
380
+ options: MPARequestOptions,
377
381
  cb: (err: any, data?: UpdateApprovalTeamCommandOutput) => void,
378
382
  ): void;
379
383
  paginateListApprovalTeams(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-mpa",
3
- "version": "3.1137.0",
3
+ "version": "3.1138.0",
4
4
  "description": "AWS SDK for JavaScript Mpa Client for Node.js, Browser and React Native",
5
5
  "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-mpa",
6
6
  "license": "Apache-2.0",
@@ -46,13 +46,13 @@
46
46
  "test:index": "tsc -p tsconfig.test.json && node ./test/index-objects.spec.mjs"
47
47
  },
48
48
  "dependencies": {
49
- "@aws-sdk/core": "^3.978.0",
50
- "@aws-sdk/credential-provider-node": "^3.972.83",
51
- "@aws-sdk/types": "^3.974.5",
52
- "@smithy/core": "^3.33.3",
53
- "@smithy/fetch-http-handler": "^5.7.2",
54
- "@smithy/node-http-handler": "^4.11.3",
55
- "@smithy/types": "^4.17.2",
49
+ "@aws-sdk/core": "^3.978.1",
50
+ "@aws-sdk/credential-provider-node": "^3.972.84",
51
+ "@aws-sdk/types": "^3.974.6",
52
+ "@smithy/core": "^3.35.0",
53
+ "@smithy/fetch-http-handler": "^5.8.0",
54
+ "@smithy/node-http-handler": "^4.12.1",
55
+ "@smithy/types": "^4.19.0",
56
56
  "tslib": "^2.6.2"
57
57
  },
58
58
  "devDependencies": {