@aws-sdk/client-shield 3.1136.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
@@ -69,7 +69,7 @@ const commonParams = {
69
69
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
70
70
  };
71
71
 
72
- var version = "3.1135.0";
72
+ var version = "3.1137.0";
73
73
  var packageInfo = {
74
74
  version: version};
75
75
 
@@ -564,10 +564,10 @@ const _rT = "resourceType";
564
564
  const _s = "smithy.ts.sdk.synthetic.com.amazonaws.shield";
565
565
  const _se = "server";
566
566
  const n0 = "com.amazonaws.shield";
567
- const _s_registry = TypeRegistry.for(_s);
567
+ const _s_registry = new TypeRegistry(_s);
568
568
  var ShieldServiceException$ = [-3, _s, "ShieldServiceException", 0, [], []];
569
569
  _s_registry.registerError(ShieldServiceException$, ShieldServiceException);
570
- const n0_registry = TypeRegistry.for(n0);
570
+ const n0_registry = new TypeRegistry(n0);
571
571
  var AccessDeniedException$ = [-3, n0, _ADE,
572
572
  { [_e]: _c },
573
573
  [_m],
@@ -253,10 +253,10 @@ const n0 = "com.amazonaws.shield";
253
253
  import { TypeRegistry } from "@smithy/core/schema";
254
254
  import { AccessDeniedException, AccessDeniedForDependencyException, InternalErrorException, InvalidOperationException, InvalidPaginationTokenException, InvalidParameterException, InvalidResourceException, LimitsExceededException, LockedSubscriptionException, NoAssociatedRoleException, OptimisticLockException, ResourceAlreadyExistsException, ResourceNotFoundException, } from "../models/errors";
255
255
  import { ShieldServiceException } from "../models/ShieldServiceException";
256
- const _s_registry = TypeRegistry.for(_s);
256
+ const _s_registry = new TypeRegistry(_s);
257
257
  export var ShieldServiceException$ = [-3, _s, "ShieldServiceException", 0, [], []];
258
258
  _s_registry.registerError(ShieldServiceException$, ShieldServiceException);
259
- const n0_registry = TypeRegistry.for(n0);
259
+ const n0_registry = new TypeRegistry(n0);
260
260
  export var AccessDeniedException$ = [-3, n0, _ADE,
261
261
  { [_e]: _c },
262
262
  [_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 AssociateDRTLogBucketCommandInput, type AssociateDRTLogBucketCommandOutput } from "./commands/AssociateDRTLogBucketCommand";
3
3
  import { type AssociateDRTRoleCommandInput, type AssociateDRTRoleCommandOutput } from "./commands/AssociateDRTRoleCommand";
4
4
  import { type AssociateHealthCheckCommandInput, type AssociateHealthCheckCommandOutput } from "./commands/AssociateHealthCheckCommand";
@@ -36,239 +36,245 @@ import { type UpdateEmergencyContactSettingsCommandInput, type UpdateEmergencyCo
36
36
  import { type UpdateProtectionGroupCommandInput, type UpdateProtectionGroupCommandOutput } from "./commands/UpdateProtectionGroupCommand";
37
37
  import { type UpdateSubscriptionCommandInput, type UpdateSubscriptionCommandOutput } from "./commands/UpdateSubscriptionCommand";
38
38
  import { ShieldClient } from "./ShieldClient";
39
+ /**
40
+ * @public
41
+ */
42
+ export interface ShieldRequestOptions extends __HttpHandlerOptions {
43
+ metricsRecorder?: __MetricsRecorder<unknown>;
44
+ }
39
45
  export interface Shield {
40
46
  /**
41
47
  * @see {@link AssociateDRTLogBucketCommand}
42
48
  */
43
- associateDRTLogBucket(args: AssociateDRTLogBucketCommandInput, options?: __HttpHandlerOptions): Promise<AssociateDRTLogBucketCommandOutput>;
49
+ associateDRTLogBucket(args: AssociateDRTLogBucketCommandInput, options?: ShieldRequestOptions): Promise<AssociateDRTLogBucketCommandOutput>;
44
50
  associateDRTLogBucket(args: AssociateDRTLogBucketCommandInput, cb: (err: any, data?: AssociateDRTLogBucketCommandOutput) => void): void;
45
- associateDRTLogBucket(args: AssociateDRTLogBucketCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: AssociateDRTLogBucketCommandOutput) => void): void;
51
+ associateDRTLogBucket(args: AssociateDRTLogBucketCommandInput, options: ShieldRequestOptions, cb: (err: any, data?: AssociateDRTLogBucketCommandOutput) => void): void;
46
52
  /**
47
53
  * @see {@link AssociateDRTRoleCommand}
48
54
  */
49
- associateDRTRole(args: AssociateDRTRoleCommandInput, options?: __HttpHandlerOptions): Promise<AssociateDRTRoleCommandOutput>;
55
+ associateDRTRole(args: AssociateDRTRoleCommandInput, options?: ShieldRequestOptions): Promise<AssociateDRTRoleCommandOutput>;
50
56
  associateDRTRole(args: AssociateDRTRoleCommandInput, cb: (err: any, data?: AssociateDRTRoleCommandOutput) => void): void;
51
- associateDRTRole(args: AssociateDRTRoleCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: AssociateDRTRoleCommandOutput) => void): void;
57
+ associateDRTRole(args: AssociateDRTRoleCommandInput, options: ShieldRequestOptions, cb: (err: any, data?: AssociateDRTRoleCommandOutput) => void): void;
52
58
  /**
53
59
  * @see {@link AssociateHealthCheckCommand}
54
60
  */
55
- associateHealthCheck(args: AssociateHealthCheckCommandInput, options?: __HttpHandlerOptions): Promise<AssociateHealthCheckCommandOutput>;
61
+ associateHealthCheck(args: AssociateHealthCheckCommandInput, options?: ShieldRequestOptions): Promise<AssociateHealthCheckCommandOutput>;
56
62
  associateHealthCheck(args: AssociateHealthCheckCommandInput, cb: (err: any, data?: AssociateHealthCheckCommandOutput) => void): void;
57
- associateHealthCheck(args: AssociateHealthCheckCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: AssociateHealthCheckCommandOutput) => void): void;
63
+ associateHealthCheck(args: AssociateHealthCheckCommandInput, options: ShieldRequestOptions, cb: (err: any, data?: AssociateHealthCheckCommandOutput) => void): void;
58
64
  /**
59
65
  * @see {@link AssociateProactiveEngagementDetailsCommand}
60
66
  */
61
- associateProactiveEngagementDetails(args: AssociateProactiveEngagementDetailsCommandInput, options?: __HttpHandlerOptions): Promise<AssociateProactiveEngagementDetailsCommandOutput>;
67
+ associateProactiveEngagementDetails(args: AssociateProactiveEngagementDetailsCommandInput, options?: ShieldRequestOptions): Promise<AssociateProactiveEngagementDetailsCommandOutput>;
62
68
  associateProactiveEngagementDetails(args: AssociateProactiveEngagementDetailsCommandInput, cb: (err: any, data?: AssociateProactiveEngagementDetailsCommandOutput) => void): void;
63
- associateProactiveEngagementDetails(args: AssociateProactiveEngagementDetailsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: AssociateProactiveEngagementDetailsCommandOutput) => void): void;
69
+ associateProactiveEngagementDetails(args: AssociateProactiveEngagementDetailsCommandInput, options: ShieldRequestOptions, cb: (err: any, data?: AssociateProactiveEngagementDetailsCommandOutput) => void): void;
64
70
  /**
65
71
  * @see {@link CreateProtectionCommand}
66
72
  */
67
- createProtection(args: CreateProtectionCommandInput, options?: __HttpHandlerOptions): Promise<CreateProtectionCommandOutput>;
73
+ createProtection(args: CreateProtectionCommandInput, options?: ShieldRequestOptions): Promise<CreateProtectionCommandOutput>;
68
74
  createProtection(args: CreateProtectionCommandInput, cb: (err: any, data?: CreateProtectionCommandOutput) => void): void;
69
- createProtection(args: CreateProtectionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateProtectionCommandOutput) => void): void;
75
+ createProtection(args: CreateProtectionCommandInput, options: ShieldRequestOptions, cb: (err: any, data?: CreateProtectionCommandOutput) => void): void;
70
76
  /**
71
77
  * @see {@link CreateProtectionGroupCommand}
72
78
  */
73
- createProtectionGroup(args: CreateProtectionGroupCommandInput, options?: __HttpHandlerOptions): Promise<CreateProtectionGroupCommandOutput>;
79
+ createProtectionGroup(args: CreateProtectionGroupCommandInput, options?: ShieldRequestOptions): Promise<CreateProtectionGroupCommandOutput>;
74
80
  createProtectionGroup(args: CreateProtectionGroupCommandInput, cb: (err: any, data?: CreateProtectionGroupCommandOutput) => void): void;
75
- createProtectionGroup(args: CreateProtectionGroupCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateProtectionGroupCommandOutput) => void): void;
81
+ createProtectionGroup(args: CreateProtectionGroupCommandInput, options: ShieldRequestOptions, cb: (err: any, data?: CreateProtectionGroupCommandOutput) => void): void;
76
82
  /**
77
83
  * @see {@link CreateSubscriptionCommand}
78
84
  */
79
85
  createSubscription(): Promise<CreateSubscriptionCommandOutput>;
80
- createSubscription(args: CreateSubscriptionCommandInput, options?: __HttpHandlerOptions): Promise<CreateSubscriptionCommandOutput>;
86
+ createSubscription(args: CreateSubscriptionCommandInput, options?: ShieldRequestOptions): Promise<CreateSubscriptionCommandOutput>;
81
87
  createSubscription(args: CreateSubscriptionCommandInput, cb: (err: any, data?: CreateSubscriptionCommandOutput) => void): void;
82
- createSubscription(args: CreateSubscriptionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateSubscriptionCommandOutput) => void): void;
88
+ createSubscription(args: CreateSubscriptionCommandInput, options: ShieldRequestOptions, cb: (err: any, data?: CreateSubscriptionCommandOutput) => void): void;
83
89
  /**
84
90
  * @see {@link DeleteProtectionCommand}
85
91
  */
86
- deleteProtection(args: DeleteProtectionCommandInput, options?: __HttpHandlerOptions): Promise<DeleteProtectionCommandOutput>;
92
+ deleteProtection(args: DeleteProtectionCommandInput, options?: ShieldRequestOptions): Promise<DeleteProtectionCommandOutput>;
87
93
  deleteProtection(args: DeleteProtectionCommandInput, cb: (err: any, data?: DeleteProtectionCommandOutput) => void): void;
88
- deleteProtection(args: DeleteProtectionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteProtectionCommandOutput) => void): void;
94
+ deleteProtection(args: DeleteProtectionCommandInput, options: ShieldRequestOptions, cb: (err: any, data?: DeleteProtectionCommandOutput) => void): void;
89
95
  /**
90
96
  * @see {@link DeleteProtectionGroupCommand}
91
97
  */
92
- deleteProtectionGroup(args: DeleteProtectionGroupCommandInput, options?: __HttpHandlerOptions): Promise<DeleteProtectionGroupCommandOutput>;
98
+ deleteProtectionGroup(args: DeleteProtectionGroupCommandInput, options?: ShieldRequestOptions): Promise<DeleteProtectionGroupCommandOutput>;
93
99
  deleteProtectionGroup(args: DeleteProtectionGroupCommandInput, cb: (err: any, data?: DeleteProtectionGroupCommandOutput) => void): void;
94
- deleteProtectionGroup(args: DeleteProtectionGroupCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteProtectionGroupCommandOutput) => void): void;
100
+ deleteProtectionGroup(args: DeleteProtectionGroupCommandInput, options: ShieldRequestOptions, cb: (err: any, data?: DeleteProtectionGroupCommandOutput) => void): void;
95
101
  /**
96
102
  * @see {@link DeleteSubscriptionCommand}
97
103
  */
98
104
  deleteSubscription(): Promise<DeleteSubscriptionCommandOutput>;
99
- deleteSubscription(args: DeleteSubscriptionCommandInput, options?: __HttpHandlerOptions): Promise<DeleteSubscriptionCommandOutput>;
105
+ deleteSubscription(args: DeleteSubscriptionCommandInput, options?: ShieldRequestOptions): Promise<DeleteSubscriptionCommandOutput>;
100
106
  deleteSubscription(args: DeleteSubscriptionCommandInput, cb: (err: any, data?: DeleteSubscriptionCommandOutput) => void): void;
101
- deleteSubscription(args: DeleteSubscriptionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteSubscriptionCommandOutput) => void): void;
107
+ deleteSubscription(args: DeleteSubscriptionCommandInput, options: ShieldRequestOptions, cb: (err: any, data?: DeleteSubscriptionCommandOutput) => void): void;
102
108
  /**
103
109
  * @see {@link DescribeAttackCommand}
104
110
  */
105
- describeAttack(args: DescribeAttackCommandInput, options?: __HttpHandlerOptions): Promise<DescribeAttackCommandOutput>;
111
+ describeAttack(args: DescribeAttackCommandInput, options?: ShieldRequestOptions): Promise<DescribeAttackCommandOutput>;
106
112
  describeAttack(args: DescribeAttackCommandInput, cb: (err: any, data?: DescribeAttackCommandOutput) => void): void;
107
- describeAttack(args: DescribeAttackCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeAttackCommandOutput) => void): void;
113
+ describeAttack(args: DescribeAttackCommandInput, options: ShieldRequestOptions, cb: (err: any, data?: DescribeAttackCommandOutput) => void): void;
108
114
  /**
109
115
  * @see {@link DescribeAttackStatisticsCommand}
110
116
  */
111
117
  describeAttackStatistics(): Promise<DescribeAttackStatisticsCommandOutput>;
112
- describeAttackStatistics(args: DescribeAttackStatisticsCommandInput, options?: __HttpHandlerOptions): Promise<DescribeAttackStatisticsCommandOutput>;
118
+ describeAttackStatistics(args: DescribeAttackStatisticsCommandInput, options?: ShieldRequestOptions): Promise<DescribeAttackStatisticsCommandOutput>;
113
119
  describeAttackStatistics(args: DescribeAttackStatisticsCommandInput, cb: (err: any, data?: DescribeAttackStatisticsCommandOutput) => void): void;
114
- describeAttackStatistics(args: DescribeAttackStatisticsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeAttackStatisticsCommandOutput) => void): void;
120
+ describeAttackStatistics(args: DescribeAttackStatisticsCommandInput, options: ShieldRequestOptions, cb: (err: any, data?: DescribeAttackStatisticsCommandOutput) => void): void;
115
121
  /**
116
122
  * @see {@link DescribeDRTAccessCommand}
117
123
  */
118
124
  describeDRTAccess(): Promise<DescribeDRTAccessCommandOutput>;
119
- describeDRTAccess(args: DescribeDRTAccessCommandInput, options?: __HttpHandlerOptions): Promise<DescribeDRTAccessCommandOutput>;
125
+ describeDRTAccess(args: DescribeDRTAccessCommandInput, options?: ShieldRequestOptions): Promise<DescribeDRTAccessCommandOutput>;
120
126
  describeDRTAccess(args: DescribeDRTAccessCommandInput, cb: (err: any, data?: DescribeDRTAccessCommandOutput) => void): void;
121
- describeDRTAccess(args: DescribeDRTAccessCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeDRTAccessCommandOutput) => void): void;
127
+ describeDRTAccess(args: DescribeDRTAccessCommandInput, options: ShieldRequestOptions, cb: (err: any, data?: DescribeDRTAccessCommandOutput) => void): void;
122
128
  /**
123
129
  * @see {@link DescribeEmergencyContactSettingsCommand}
124
130
  */
125
131
  describeEmergencyContactSettings(): Promise<DescribeEmergencyContactSettingsCommandOutput>;
126
- describeEmergencyContactSettings(args: DescribeEmergencyContactSettingsCommandInput, options?: __HttpHandlerOptions): Promise<DescribeEmergencyContactSettingsCommandOutput>;
132
+ describeEmergencyContactSettings(args: DescribeEmergencyContactSettingsCommandInput, options?: ShieldRequestOptions): Promise<DescribeEmergencyContactSettingsCommandOutput>;
127
133
  describeEmergencyContactSettings(args: DescribeEmergencyContactSettingsCommandInput, cb: (err: any, data?: DescribeEmergencyContactSettingsCommandOutput) => void): void;
128
- describeEmergencyContactSettings(args: DescribeEmergencyContactSettingsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeEmergencyContactSettingsCommandOutput) => void): void;
134
+ describeEmergencyContactSettings(args: DescribeEmergencyContactSettingsCommandInput, options: ShieldRequestOptions, cb: (err: any, data?: DescribeEmergencyContactSettingsCommandOutput) => void): void;
129
135
  /**
130
136
  * @see {@link DescribeProtectionCommand}
131
137
  */
132
138
  describeProtection(): Promise<DescribeProtectionCommandOutput>;
133
- describeProtection(args: DescribeProtectionCommandInput, options?: __HttpHandlerOptions): Promise<DescribeProtectionCommandOutput>;
139
+ describeProtection(args: DescribeProtectionCommandInput, options?: ShieldRequestOptions): Promise<DescribeProtectionCommandOutput>;
134
140
  describeProtection(args: DescribeProtectionCommandInput, cb: (err: any, data?: DescribeProtectionCommandOutput) => void): void;
135
- describeProtection(args: DescribeProtectionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeProtectionCommandOutput) => void): void;
141
+ describeProtection(args: DescribeProtectionCommandInput, options: ShieldRequestOptions, cb: (err: any, data?: DescribeProtectionCommandOutput) => void): void;
136
142
  /**
137
143
  * @see {@link DescribeProtectionGroupCommand}
138
144
  */
139
- describeProtectionGroup(args: DescribeProtectionGroupCommandInput, options?: __HttpHandlerOptions): Promise<DescribeProtectionGroupCommandOutput>;
145
+ describeProtectionGroup(args: DescribeProtectionGroupCommandInput, options?: ShieldRequestOptions): Promise<DescribeProtectionGroupCommandOutput>;
140
146
  describeProtectionGroup(args: DescribeProtectionGroupCommandInput, cb: (err: any, data?: DescribeProtectionGroupCommandOutput) => void): void;
141
- describeProtectionGroup(args: DescribeProtectionGroupCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeProtectionGroupCommandOutput) => void): void;
147
+ describeProtectionGroup(args: DescribeProtectionGroupCommandInput, options: ShieldRequestOptions, cb: (err: any, data?: DescribeProtectionGroupCommandOutput) => void): void;
142
148
  /**
143
149
  * @see {@link DescribeSubscriptionCommand}
144
150
  */
145
151
  describeSubscription(): Promise<DescribeSubscriptionCommandOutput>;
146
- describeSubscription(args: DescribeSubscriptionCommandInput, options?: __HttpHandlerOptions): Promise<DescribeSubscriptionCommandOutput>;
152
+ describeSubscription(args: DescribeSubscriptionCommandInput, options?: ShieldRequestOptions): Promise<DescribeSubscriptionCommandOutput>;
147
153
  describeSubscription(args: DescribeSubscriptionCommandInput, cb: (err: any, data?: DescribeSubscriptionCommandOutput) => void): void;
148
- describeSubscription(args: DescribeSubscriptionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeSubscriptionCommandOutput) => void): void;
154
+ describeSubscription(args: DescribeSubscriptionCommandInput, options: ShieldRequestOptions, cb: (err: any, data?: DescribeSubscriptionCommandOutput) => void): void;
149
155
  /**
150
156
  * @see {@link DisableApplicationLayerAutomaticResponseCommand}
151
157
  */
152
- disableApplicationLayerAutomaticResponse(args: DisableApplicationLayerAutomaticResponseCommandInput, options?: __HttpHandlerOptions): Promise<DisableApplicationLayerAutomaticResponseCommandOutput>;
158
+ disableApplicationLayerAutomaticResponse(args: DisableApplicationLayerAutomaticResponseCommandInput, options?: ShieldRequestOptions): Promise<DisableApplicationLayerAutomaticResponseCommandOutput>;
153
159
  disableApplicationLayerAutomaticResponse(args: DisableApplicationLayerAutomaticResponseCommandInput, cb: (err: any, data?: DisableApplicationLayerAutomaticResponseCommandOutput) => void): void;
154
- disableApplicationLayerAutomaticResponse(args: DisableApplicationLayerAutomaticResponseCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DisableApplicationLayerAutomaticResponseCommandOutput) => void): void;
160
+ disableApplicationLayerAutomaticResponse(args: DisableApplicationLayerAutomaticResponseCommandInput, options: ShieldRequestOptions, cb: (err: any, data?: DisableApplicationLayerAutomaticResponseCommandOutput) => void): void;
155
161
  /**
156
162
  * @see {@link DisableProactiveEngagementCommand}
157
163
  */
158
164
  disableProactiveEngagement(): Promise<DisableProactiveEngagementCommandOutput>;
159
- disableProactiveEngagement(args: DisableProactiveEngagementCommandInput, options?: __HttpHandlerOptions): Promise<DisableProactiveEngagementCommandOutput>;
165
+ disableProactiveEngagement(args: DisableProactiveEngagementCommandInput, options?: ShieldRequestOptions): Promise<DisableProactiveEngagementCommandOutput>;
160
166
  disableProactiveEngagement(args: DisableProactiveEngagementCommandInput, cb: (err: any, data?: DisableProactiveEngagementCommandOutput) => void): void;
161
- disableProactiveEngagement(args: DisableProactiveEngagementCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DisableProactiveEngagementCommandOutput) => void): void;
167
+ disableProactiveEngagement(args: DisableProactiveEngagementCommandInput, options: ShieldRequestOptions, cb: (err: any, data?: DisableProactiveEngagementCommandOutput) => void): void;
162
168
  /**
163
169
  * @see {@link DisassociateDRTLogBucketCommand}
164
170
  */
165
- disassociateDRTLogBucket(args: DisassociateDRTLogBucketCommandInput, options?: __HttpHandlerOptions): Promise<DisassociateDRTLogBucketCommandOutput>;
171
+ disassociateDRTLogBucket(args: DisassociateDRTLogBucketCommandInput, options?: ShieldRequestOptions): Promise<DisassociateDRTLogBucketCommandOutput>;
166
172
  disassociateDRTLogBucket(args: DisassociateDRTLogBucketCommandInput, cb: (err: any, data?: DisassociateDRTLogBucketCommandOutput) => void): void;
167
- disassociateDRTLogBucket(args: DisassociateDRTLogBucketCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DisassociateDRTLogBucketCommandOutput) => void): void;
173
+ disassociateDRTLogBucket(args: DisassociateDRTLogBucketCommandInput, options: ShieldRequestOptions, cb: (err: any, data?: DisassociateDRTLogBucketCommandOutput) => void): void;
168
174
  /**
169
175
  * @see {@link DisassociateDRTRoleCommand}
170
176
  */
171
177
  disassociateDRTRole(): Promise<DisassociateDRTRoleCommandOutput>;
172
- disassociateDRTRole(args: DisassociateDRTRoleCommandInput, options?: __HttpHandlerOptions): Promise<DisassociateDRTRoleCommandOutput>;
178
+ disassociateDRTRole(args: DisassociateDRTRoleCommandInput, options?: ShieldRequestOptions): Promise<DisassociateDRTRoleCommandOutput>;
173
179
  disassociateDRTRole(args: DisassociateDRTRoleCommandInput, cb: (err: any, data?: DisassociateDRTRoleCommandOutput) => void): void;
174
- disassociateDRTRole(args: DisassociateDRTRoleCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DisassociateDRTRoleCommandOutput) => void): void;
180
+ disassociateDRTRole(args: DisassociateDRTRoleCommandInput, options: ShieldRequestOptions, cb: (err: any, data?: DisassociateDRTRoleCommandOutput) => void): void;
175
181
  /**
176
182
  * @see {@link DisassociateHealthCheckCommand}
177
183
  */
178
- disassociateHealthCheck(args: DisassociateHealthCheckCommandInput, options?: __HttpHandlerOptions): Promise<DisassociateHealthCheckCommandOutput>;
184
+ disassociateHealthCheck(args: DisassociateHealthCheckCommandInput, options?: ShieldRequestOptions): Promise<DisassociateHealthCheckCommandOutput>;
179
185
  disassociateHealthCheck(args: DisassociateHealthCheckCommandInput, cb: (err: any, data?: DisassociateHealthCheckCommandOutput) => void): void;
180
- disassociateHealthCheck(args: DisassociateHealthCheckCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DisassociateHealthCheckCommandOutput) => void): void;
186
+ disassociateHealthCheck(args: DisassociateHealthCheckCommandInput, options: ShieldRequestOptions, cb: (err: any, data?: DisassociateHealthCheckCommandOutput) => void): void;
181
187
  /**
182
188
  * @see {@link EnableApplicationLayerAutomaticResponseCommand}
183
189
  */
184
- enableApplicationLayerAutomaticResponse(args: EnableApplicationLayerAutomaticResponseCommandInput, options?: __HttpHandlerOptions): Promise<EnableApplicationLayerAutomaticResponseCommandOutput>;
190
+ enableApplicationLayerAutomaticResponse(args: EnableApplicationLayerAutomaticResponseCommandInput, options?: ShieldRequestOptions): Promise<EnableApplicationLayerAutomaticResponseCommandOutput>;
185
191
  enableApplicationLayerAutomaticResponse(args: EnableApplicationLayerAutomaticResponseCommandInput, cb: (err: any, data?: EnableApplicationLayerAutomaticResponseCommandOutput) => void): void;
186
- enableApplicationLayerAutomaticResponse(args: EnableApplicationLayerAutomaticResponseCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: EnableApplicationLayerAutomaticResponseCommandOutput) => void): void;
192
+ enableApplicationLayerAutomaticResponse(args: EnableApplicationLayerAutomaticResponseCommandInput, options: ShieldRequestOptions, cb: (err: any, data?: EnableApplicationLayerAutomaticResponseCommandOutput) => void): void;
187
193
  /**
188
194
  * @see {@link EnableProactiveEngagementCommand}
189
195
  */
190
196
  enableProactiveEngagement(): Promise<EnableProactiveEngagementCommandOutput>;
191
- enableProactiveEngagement(args: EnableProactiveEngagementCommandInput, options?: __HttpHandlerOptions): Promise<EnableProactiveEngagementCommandOutput>;
197
+ enableProactiveEngagement(args: EnableProactiveEngagementCommandInput, options?: ShieldRequestOptions): Promise<EnableProactiveEngagementCommandOutput>;
192
198
  enableProactiveEngagement(args: EnableProactiveEngagementCommandInput, cb: (err: any, data?: EnableProactiveEngagementCommandOutput) => void): void;
193
- enableProactiveEngagement(args: EnableProactiveEngagementCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: EnableProactiveEngagementCommandOutput) => void): void;
199
+ enableProactiveEngagement(args: EnableProactiveEngagementCommandInput, options: ShieldRequestOptions, cb: (err: any, data?: EnableProactiveEngagementCommandOutput) => void): void;
194
200
  /**
195
201
  * @see {@link GetSubscriptionStateCommand}
196
202
  */
197
203
  getSubscriptionState(): Promise<GetSubscriptionStateCommandOutput>;
198
- getSubscriptionState(args: GetSubscriptionStateCommandInput, options?: __HttpHandlerOptions): Promise<GetSubscriptionStateCommandOutput>;
204
+ getSubscriptionState(args: GetSubscriptionStateCommandInput, options?: ShieldRequestOptions): Promise<GetSubscriptionStateCommandOutput>;
199
205
  getSubscriptionState(args: GetSubscriptionStateCommandInput, cb: (err: any, data?: GetSubscriptionStateCommandOutput) => void): void;
200
- getSubscriptionState(args: GetSubscriptionStateCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetSubscriptionStateCommandOutput) => void): void;
206
+ getSubscriptionState(args: GetSubscriptionStateCommandInput, options: ShieldRequestOptions, cb: (err: any, data?: GetSubscriptionStateCommandOutput) => void): void;
201
207
  /**
202
208
  * @see {@link ListAttacksCommand}
203
209
  */
204
210
  listAttacks(): Promise<ListAttacksCommandOutput>;
205
- listAttacks(args: ListAttacksCommandInput, options?: __HttpHandlerOptions): Promise<ListAttacksCommandOutput>;
211
+ listAttacks(args: ListAttacksCommandInput, options?: ShieldRequestOptions): Promise<ListAttacksCommandOutput>;
206
212
  listAttacks(args: ListAttacksCommandInput, cb: (err: any, data?: ListAttacksCommandOutput) => void): void;
207
- listAttacks(args: ListAttacksCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListAttacksCommandOutput) => void): void;
213
+ listAttacks(args: ListAttacksCommandInput, options: ShieldRequestOptions, cb: (err: any, data?: ListAttacksCommandOutput) => void): void;
208
214
  /**
209
215
  * @see {@link ListProtectionGroupsCommand}
210
216
  */
211
217
  listProtectionGroups(): Promise<ListProtectionGroupsCommandOutput>;
212
- listProtectionGroups(args: ListProtectionGroupsCommandInput, options?: __HttpHandlerOptions): Promise<ListProtectionGroupsCommandOutput>;
218
+ listProtectionGroups(args: ListProtectionGroupsCommandInput, options?: ShieldRequestOptions): Promise<ListProtectionGroupsCommandOutput>;
213
219
  listProtectionGroups(args: ListProtectionGroupsCommandInput, cb: (err: any, data?: ListProtectionGroupsCommandOutput) => void): void;
214
- listProtectionGroups(args: ListProtectionGroupsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListProtectionGroupsCommandOutput) => void): void;
220
+ listProtectionGroups(args: ListProtectionGroupsCommandInput, options: ShieldRequestOptions, cb: (err: any, data?: ListProtectionGroupsCommandOutput) => void): void;
215
221
  /**
216
222
  * @see {@link ListProtectionsCommand}
217
223
  */
218
224
  listProtections(): Promise<ListProtectionsCommandOutput>;
219
- listProtections(args: ListProtectionsCommandInput, options?: __HttpHandlerOptions): Promise<ListProtectionsCommandOutput>;
225
+ listProtections(args: ListProtectionsCommandInput, options?: ShieldRequestOptions): Promise<ListProtectionsCommandOutput>;
220
226
  listProtections(args: ListProtectionsCommandInput, cb: (err: any, data?: ListProtectionsCommandOutput) => void): void;
221
- listProtections(args: ListProtectionsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListProtectionsCommandOutput) => void): void;
227
+ listProtections(args: ListProtectionsCommandInput, options: ShieldRequestOptions, cb: (err: any, data?: ListProtectionsCommandOutput) => void): void;
222
228
  /**
223
229
  * @see {@link ListResourcesInProtectionGroupCommand}
224
230
  */
225
- listResourcesInProtectionGroup(args: ListResourcesInProtectionGroupCommandInput, options?: __HttpHandlerOptions): Promise<ListResourcesInProtectionGroupCommandOutput>;
231
+ listResourcesInProtectionGroup(args: ListResourcesInProtectionGroupCommandInput, options?: ShieldRequestOptions): Promise<ListResourcesInProtectionGroupCommandOutput>;
226
232
  listResourcesInProtectionGroup(args: ListResourcesInProtectionGroupCommandInput, cb: (err: any, data?: ListResourcesInProtectionGroupCommandOutput) => void): void;
227
- listResourcesInProtectionGroup(args: ListResourcesInProtectionGroupCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListResourcesInProtectionGroupCommandOutput) => void): void;
233
+ listResourcesInProtectionGroup(args: ListResourcesInProtectionGroupCommandInput, options: ShieldRequestOptions, cb: (err: any, data?: ListResourcesInProtectionGroupCommandOutput) => void): void;
228
234
  /**
229
235
  * @see {@link ListTagsForResourceCommand}
230
236
  */
231
- listTagsForResource(args: ListTagsForResourceCommandInput, options?: __HttpHandlerOptions): Promise<ListTagsForResourceCommandOutput>;
237
+ listTagsForResource(args: ListTagsForResourceCommandInput, options?: ShieldRequestOptions): Promise<ListTagsForResourceCommandOutput>;
232
238
  listTagsForResource(args: ListTagsForResourceCommandInput, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
233
- listTagsForResource(args: ListTagsForResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
239
+ listTagsForResource(args: ListTagsForResourceCommandInput, options: ShieldRequestOptions, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
234
240
  /**
235
241
  * @see {@link TagResourceCommand}
236
242
  */
237
- tagResource(args: TagResourceCommandInput, options?: __HttpHandlerOptions): Promise<TagResourceCommandOutput>;
243
+ tagResource(args: TagResourceCommandInput, options?: ShieldRequestOptions): Promise<TagResourceCommandOutput>;
238
244
  tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
239
- tagResource(args: TagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
245
+ tagResource(args: TagResourceCommandInput, options: ShieldRequestOptions, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
240
246
  /**
241
247
  * @see {@link UntagResourceCommand}
242
248
  */
243
- untagResource(args: UntagResourceCommandInput, options?: __HttpHandlerOptions): Promise<UntagResourceCommandOutput>;
249
+ untagResource(args: UntagResourceCommandInput, options?: ShieldRequestOptions): Promise<UntagResourceCommandOutput>;
244
250
  untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
245
- untagResource(args: UntagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
251
+ untagResource(args: UntagResourceCommandInput, options: ShieldRequestOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
246
252
  /**
247
253
  * @see {@link UpdateApplicationLayerAutomaticResponseCommand}
248
254
  */
249
- updateApplicationLayerAutomaticResponse(args: UpdateApplicationLayerAutomaticResponseCommandInput, options?: __HttpHandlerOptions): Promise<UpdateApplicationLayerAutomaticResponseCommandOutput>;
255
+ updateApplicationLayerAutomaticResponse(args: UpdateApplicationLayerAutomaticResponseCommandInput, options?: ShieldRequestOptions): Promise<UpdateApplicationLayerAutomaticResponseCommandOutput>;
250
256
  updateApplicationLayerAutomaticResponse(args: UpdateApplicationLayerAutomaticResponseCommandInput, cb: (err: any, data?: UpdateApplicationLayerAutomaticResponseCommandOutput) => void): void;
251
- updateApplicationLayerAutomaticResponse(args: UpdateApplicationLayerAutomaticResponseCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateApplicationLayerAutomaticResponseCommandOutput) => void): void;
257
+ updateApplicationLayerAutomaticResponse(args: UpdateApplicationLayerAutomaticResponseCommandInput, options: ShieldRequestOptions, cb: (err: any, data?: UpdateApplicationLayerAutomaticResponseCommandOutput) => void): void;
252
258
  /**
253
259
  * @see {@link UpdateEmergencyContactSettingsCommand}
254
260
  */
255
261
  updateEmergencyContactSettings(): Promise<UpdateEmergencyContactSettingsCommandOutput>;
256
- updateEmergencyContactSettings(args: UpdateEmergencyContactSettingsCommandInput, options?: __HttpHandlerOptions): Promise<UpdateEmergencyContactSettingsCommandOutput>;
262
+ updateEmergencyContactSettings(args: UpdateEmergencyContactSettingsCommandInput, options?: ShieldRequestOptions): Promise<UpdateEmergencyContactSettingsCommandOutput>;
257
263
  updateEmergencyContactSettings(args: UpdateEmergencyContactSettingsCommandInput, cb: (err: any, data?: UpdateEmergencyContactSettingsCommandOutput) => void): void;
258
- updateEmergencyContactSettings(args: UpdateEmergencyContactSettingsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateEmergencyContactSettingsCommandOutput) => void): void;
264
+ updateEmergencyContactSettings(args: UpdateEmergencyContactSettingsCommandInput, options: ShieldRequestOptions, cb: (err: any, data?: UpdateEmergencyContactSettingsCommandOutput) => void): void;
259
265
  /**
260
266
  * @see {@link UpdateProtectionGroupCommand}
261
267
  */
262
- updateProtectionGroup(args: UpdateProtectionGroupCommandInput, options?: __HttpHandlerOptions): Promise<UpdateProtectionGroupCommandOutput>;
268
+ updateProtectionGroup(args: UpdateProtectionGroupCommandInput, options?: ShieldRequestOptions): Promise<UpdateProtectionGroupCommandOutput>;
263
269
  updateProtectionGroup(args: UpdateProtectionGroupCommandInput, cb: (err: any, data?: UpdateProtectionGroupCommandOutput) => void): void;
264
- updateProtectionGroup(args: UpdateProtectionGroupCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateProtectionGroupCommandOutput) => void): void;
270
+ updateProtectionGroup(args: UpdateProtectionGroupCommandInput, options: ShieldRequestOptions, cb: (err: any, data?: UpdateProtectionGroupCommandOutput) => void): void;
265
271
  /**
266
272
  * @see {@link UpdateSubscriptionCommand}
267
273
  */
268
274
  updateSubscription(): Promise<UpdateSubscriptionCommandOutput>;
269
- updateSubscription(args: UpdateSubscriptionCommandInput, options?: __HttpHandlerOptions): Promise<UpdateSubscriptionCommandOutput>;
275
+ updateSubscription(args: UpdateSubscriptionCommandInput, options?: ShieldRequestOptions): Promise<UpdateSubscriptionCommandOutput>;
270
276
  updateSubscription(args: UpdateSubscriptionCommandInput, cb: (err: any, data?: UpdateSubscriptionCommandOutput) => void): void;
271
- updateSubscription(args: UpdateSubscriptionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateSubscriptionCommandOutput) => void): void;
277
+ updateSubscription(args: UpdateSubscriptionCommandInput, options: ShieldRequestOptions, cb: (err: any, data?: UpdateSubscriptionCommandOutput) => void): void;
272
278
  /**
273
279
  * @see {@link ListAttacksCommand}
274
280
  * @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";
@@ -142,10 +143,13 @@ import {
142
143
  UpdateSubscriptionCommandOutput,
143
144
  } from "./commands/UpdateSubscriptionCommand";
144
145
  import { ShieldClient } from "./ShieldClient";
146
+ export interface ShieldRequestOptions extends __HttpHandlerOptions {
147
+ metricsRecorder?: __MetricsRecorder<unknown>;
148
+ }
145
149
  export interface Shield {
146
150
  associateDRTLogBucket(
147
151
  args: AssociateDRTLogBucketCommandInput,
148
- options?: __HttpHandlerOptions,
152
+ options?: ShieldRequestOptions,
149
153
  ): Promise<AssociateDRTLogBucketCommandOutput>;
150
154
  associateDRTLogBucket(
151
155
  args: AssociateDRTLogBucketCommandInput,
@@ -153,12 +157,12 @@ export interface Shield {
153
157
  ): void;
154
158
  associateDRTLogBucket(
155
159
  args: AssociateDRTLogBucketCommandInput,
156
- options: __HttpHandlerOptions,
160
+ options: ShieldRequestOptions,
157
161
  cb: (err: any, data?: AssociateDRTLogBucketCommandOutput) => void,
158
162
  ): void;
159
163
  associateDRTRole(
160
164
  args: AssociateDRTRoleCommandInput,
161
- options?: __HttpHandlerOptions,
165
+ options?: ShieldRequestOptions,
162
166
  ): Promise<AssociateDRTRoleCommandOutput>;
163
167
  associateDRTRole(
164
168
  args: AssociateDRTRoleCommandInput,
@@ -166,12 +170,12 @@ export interface Shield {
166
170
  ): void;
167
171
  associateDRTRole(
168
172
  args: AssociateDRTRoleCommandInput,
169
- options: __HttpHandlerOptions,
173
+ options: ShieldRequestOptions,
170
174
  cb: (err: any, data?: AssociateDRTRoleCommandOutput) => void,
171
175
  ): void;
172
176
  associateHealthCheck(
173
177
  args: AssociateHealthCheckCommandInput,
174
- options?: __HttpHandlerOptions,
178
+ options?: ShieldRequestOptions,
175
179
  ): Promise<AssociateHealthCheckCommandOutput>;
176
180
  associateHealthCheck(
177
181
  args: AssociateHealthCheckCommandInput,
@@ -179,12 +183,12 @@ export interface Shield {
179
183
  ): void;
180
184
  associateHealthCheck(
181
185
  args: AssociateHealthCheckCommandInput,
182
- options: __HttpHandlerOptions,
186
+ options: ShieldRequestOptions,
183
187
  cb: (err: any, data?: AssociateHealthCheckCommandOutput) => void,
184
188
  ): void;
185
189
  associateProactiveEngagementDetails(
186
190
  args: AssociateProactiveEngagementDetailsCommandInput,
187
- options?: __HttpHandlerOptions,
191
+ options?: ShieldRequestOptions,
188
192
  ): Promise<AssociateProactiveEngagementDetailsCommandOutput>;
189
193
  associateProactiveEngagementDetails(
190
194
  args: AssociateProactiveEngagementDetailsCommandInput,
@@ -192,12 +196,12 @@ export interface Shield {
192
196
  ): void;
193
197
  associateProactiveEngagementDetails(
194
198
  args: AssociateProactiveEngagementDetailsCommandInput,
195
- options: __HttpHandlerOptions,
199
+ options: ShieldRequestOptions,
196
200
  cb: (err: any, data?: AssociateProactiveEngagementDetailsCommandOutput) => void,
197
201
  ): void;
198
202
  createProtection(
199
203
  args: CreateProtectionCommandInput,
200
- options?: __HttpHandlerOptions,
204
+ options?: ShieldRequestOptions,
201
205
  ): Promise<CreateProtectionCommandOutput>;
202
206
  createProtection(
203
207
  args: CreateProtectionCommandInput,
@@ -205,12 +209,12 @@ export interface Shield {
205
209
  ): void;
206
210
  createProtection(
207
211
  args: CreateProtectionCommandInput,
208
- options: __HttpHandlerOptions,
212
+ options: ShieldRequestOptions,
209
213
  cb: (err: any, data?: CreateProtectionCommandOutput) => void,
210
214
  ): void;
211
215
  createProtectionGroup(
212
216
  args: CreateProtectionGroupCommandInput,
213
- options?: __HttpHandlerOptions,
217
+ options?: ShieldRequestOptions,
214
218
  ): Promise<CreateProtectionGroupCommandOutput>;
215
219
  createProtectionGroup(
216
220
  args: CreateProtectionGroupCommandInput,
@@ -218,13 +222,13 @@ export interface Shield {
218
222
  ): void;
219
223
  createProtectionGroup(
220
224
  args: CreateProtectionGroupCommandInput,
221
- options: __HttpHandlerOptions,
225
+ options: ShieldRequestOptions,
222
226
  cb: (err: any, data?: CreateProtectionGroupCommandOutput) => void,
223
227
  ): void;
224
228
  createSubscription(): Promise<CreateSubscriptionCommandOutput>;
225
229
  createSubscription(
226
230
  args: CreateSubscriptionCommandInput,
227
- options?: __HttpHandlerOptions,
231
+ options?: ShieldRequestOptions,
228
232
  ): Promise<CreateSubscriptionCommandOutput>;
229
233
  createSubscription(
230
234
  args: CreateSubscriptionCommandInput,
@@ -232,12 +236,12 @@ export interface Shield {
232
236
  ): void;
233
237
  createSubscription(
234
238
  args: CreateSubscriptionCommandInput,
235
- options: __HttpHandlerOptions,
239
+ options: ShieldRequestOptions,
236
240
  cb: (err: any, data?: CreateSubscriptionCommandOutput) => void,
237
241
  ): void;
238
242
  deleteProtection(
239
243
  args: DeleteProtectionCommandInput,
240
- options?: __HttpHandlerOptions,
244
+ options?: ShieldRequestOptions,
241
245
  ): Promise<DeleteProtectionCommandOutput>;
242
246
  deleteProtection(
243
247
  args: DeleteProtectionCommandInput,
@@ -245,12 +249,12 @@ export interface Shield {
245
249
  ): void;
246
250
  deleteProtection(
247
251
  args: DeleteProtectionCommandInput,
248
- options: __HttpHandlerOptions,
252
+ options: ShieldRequestOptions,
249
253
  cb: (err: any, data?: DeleteProtectionCommandOutput) => void,
250
254
  ): void;
251
255
  deleteProtectionGroup(
252
256
  args: DeleteProtectionGroupCommandInput,
253
- options?: __HttpHandlerOptions,
257
+ options?: ShieldRequestOptions,
254
258
  ): Promise<DeleteProtectionGroupCommandOutput>;
255
259
  deleteProtectionGroup(
256
260
  args: DeleteProtectionGroupCommandInput,
@@ -258,13 +262,13 @@ export interface Shield {
258
262
  ): void;
259
263
  deleteProtectionGroup(
260
264
  args: DeleteProtectionGroupCommandInput,
261
- options: __HttpHandlerOptions,
265
+ options: ShieldRequestOptions,
262
266
  cb: (err: any, data?: DeleteProtectionGroupCommandOutput) => void,
263
267
  ): void;
264
268
  deleteSubscription(): Promise<DeleteSubscriptionCommandOutput>;
265
269
  deleteSubscription(
266
270
  args: DeleteSubscriptionCommandInput,
267
- options?: __HttpHandlerOptions,
271
+ options?: ShieldRequestOptions,
268
272
  ): Promise<DeleteSubscriptionCommandOutput>;
269
273
  deleteSubscription(
270
274
  args: DeleteSubscriptionCommandInput,
@@ -272,12 +276,12 @@ export interface Shield {
272
276
  ): void;
273
277
  deleteSubscription(
274
278
  args: DeleteSubscriptionCommandInput,
275
- options: __HttpHandlerOptions,
279
+ options: ShieldRequestOptions,
276
280
  cb: (err: any, data?: DeleteSubscriptionCommandOutput) => void,
277
281
  ): void;
278
282
  describeAttack(
279
283
  args: DescribeAttackCommandInput,
280
- options?: __HttpHandlerOptions,
284
+ options?: ShieldRequestOptions,
281
285
  ): Promise<DescribeAttackCommandOutput>;
282
286
  describeAttack(
283
287
  args: DescribeAttackCommandInput,
@@ -285,13 +289,13 @@ export interface Shield {
285
289
  ): void;
286
290
  describeAttack(
287
291
  args: DescribeAttackCommandInput,
288
- options: __HttpHandlerOptions,
292
+ options: ShieldRequestOptions,
289
293
  cb: (err: any, data?: DescribeAttackCommandOutput) => void,
290
294
  ): void;
291
295
  describeAttackStatistics(): Promise<DescribeAttackStatisticsCommandOutput>;
292
296
  describeAttackStatistics(
293
297
  args: DescribeAttackStatisticsCommandInput,
294
- options?: __HttpHandlerOptions,
298
+ options?: ShieldRequestOptions,
295
299
  ): Promise<DescribeAttackStatisticsCommandOutput>;
296
300
  describeAttackStatistics(
297
301
  args: DescribeAttackStatisticsCommandInput,
@@ -299,13 +303,13 @@ export interface Shield {
299
303
  ): void;
300
304
  describeAttackStatistics(
301
305
  args: DescribeAttackStatisticsCommandInput,
302
- options: __HttpHandlerOptions,
306
+ options: ShieldRequestOptions,
303
307
  cb: (err: any, data?: DescribeAttackStatisticsCommandOutput) => void,
304
308
  ): void;
305
309
  describeDRTAccess(): Promise<DescribeDRTAccessCommandOutput>;
306
310
  describeDRTAccess(
307
311
  args: DescribeDRTAccessCommandInput,
308
- options?: __HttpHandlerOptions,
312
+ options?: ShieldRequestOptions,
309
313
  ): Promise<DescribeDRTAccessCommandOutput>;
310
314
  describeDRTAccess(
311
315
  args: DescribeDRTAccessCommandInput,
@@ -313,13 +317,13 @@ export interface Shield {
313
317
  ): void;
314
318
  describeDRTAccess(
315
319
  args: DescribeDRTAccessCommandInput,
316
- options: __HttpHandlerOptions,
320
+ options: ShieldRequestOptions,
317
321
  cb: (err: any, data?: DescribeDRTAccessCommandOutput) => void,
318
322
  ): void;
319
323
  describeEmergencyContactSettings(): Promise<DescribeEmergencyContactSettingsCommandOutput>;
320
324
  describeEmergencyContactSettings(
321
325
  args: DescribeEmergencyContactSettingsCommandInput,
322
- options?: __HttpHandlerOptions,
326
+ options?: ShieldRequestOptions,
323
327
  ): Promise<DescribeEmergencyContactSettingsCommandOutput>;
324
328
  describeEmergencyContactSettings(
325
329
  args: DescribeEmergencyContactSettingsCommandInput,
@@ -327,13 +331,13 @@ export interface Shield {
327
331
  ): void;
328
332
  describeEmergencyContactSettings(
329
333
  args: DescribeEmergencyContactSettingsCommandInput,
330
- options: __HttpHandlerOptions,
334
+ options: ShieldRequestOptions,
331
335
  cb: (err: any, data?: DescribeEmergencyContactSettingsCommandOutput) => void,
332
336
  ): void;
333
337
  describeProtection(): Promise<DescribeProtectionCommandOutput>;
334
338
  describeProtection(
335
339
  args: DescribeProtectionCommandInput,
336
- options?: __HttpHandlerOptions,
340
+ options?: ShieldRequestOptions,
337
341
  ): Promise<DescribeProtectionCommandOutput>;
338
342
  describeProtection(
339
343
  args: DescribeProtectionCommandInput,
@@ -341,12 +345,12 @@ export interface Shield {
341
345
  ): void;
342
346
  describeProtection(
343
347
  args: DescribeProtectionCommandInput,
344
- options: __HttpHandlerOptions,
348
+ options: ShieldRequestOptions,
345
349
  cb: (err: any, data?: DescribeProtectionCommandOutput) => void,
346
350
  ): void;
347
351
  describeProtectionGroup(
348
352
  args: DescribeProtectionGroupCommandInput,
349
- options?: __HttpHandlerOptions,
353
+ options?: ShieldRequestOptions,
350
354
  ): Promise<DescribeProtectionGroupCommandOutput>;
351
355
  describeProtectionGroup(
352
356
  args: DescribeProtectionGroupCommandInput,
@@ -354,13 +358,13 @@ export interface Shield {
354
358
  ): void;
355
359
  describeProtectionGroup(
356
360
  args: DescribeProtectionGroupCommandInput,
357
- options: __HttpHandlerOptions,
361
+ options: ShieldRequestOptions,
358
362
  cb: (err: any, data?: DescribeProtectionGroupCommandOutput) => void,
359
363
  ): void;
360
364
  describeSubscription(): Promise<DescribeSubscriptionCommandOutput>;
361
365
  describeSubscription(
362
366
  args: DescribeSubscriptionCommandInput,
363
- options?: __HttpHandlerOptions,
367
+ options?: ShieldRequestOptions,
364
368
  ): Promise<DescribeSubscriptionCommandOutput>;
365
369
  describeSubscription(
366
370
  args: DescribeSubscriptionCommandInput,
@@ -368,12 +372,12 @@ export interface Shield {
368
372
  ): void;
369
373
  describeSubscription(
370
374
  args: DescribeSubscriptionCommandInput,
371
- options: __HttpHandlerOptions,
375
+ options: ShieldRequestOptions,
372
376
  cb: (err: any, data?: DescribeSubscriptionCommandOutput) => void,
373
377
  ): void;
374
378
  disableApplicationLayerAutomaticResponse(
375
379
  args: DisableApplicationLayerAutomaticResponseCommandInput,
376
- options?: __HttpHandlerOptions,
380
+ options?: ShieldRequestOptions,
377
381
  ): Promise<DisableApplicationLayerAutomaticResponseCommandOutput>;
378
382
  disableApplicationLayerAutomaticResponse(
379
383
  args: DisableApplicationLayerAutomaticResponseCommandInput,
@@ -381,13 +385,13 @@ export interface Shield {
381
385
  ): void;
382
386
  disableApplicationLayerAutomaticResponse(
383
387
  args: DisableApplicationLayerAutomaticResponseCommandInput,
384
- options: __HttpHandlerOptions,
388
+ options: ShieldRequestOptions,
385
389
  cb: (err: any, data?: DisableApplicationLayerAutomaticResponseCommandOutput) => void,
386
390
  ): void;
387
391
  disableProactiveEngagement(): Promise<DisableProactiveEngagementCommandOutput>;
388
392
  disableProactiveEngagement(
389
393
  args: DisableProactiveEngagementCommandInput,
390
- options?: __HttpHandlerOptions,
394
+ options?: ShieldRequestOptions,
391
395
  ): Promise<DisableProactiveEngagementCommandOutput>;
392
396
  disableProactiveEngagement(
393
397
  args: DisableProactiveEngagementCommandInput,
@@ -395,12 +399,12 @@ export interface Shield {
395
399
  ): void;
396
400
  disableProactiveEngagement(
397
401
  args: DisableProactiveEngagementCommandInput,
398
- options: __HttpHandlerOptions,
402
+ options: ShieldRequestOptions,
399
403
  cb: (err: any, data?: DisableProactiveEngagementCommandOutput) => void,
400
404
  ): void;
401
405
  disassociateDRTLogBucket(
402
406
  args: DisassociateDRTLogBucketCommandInput,
403
- options?: __HttpHandlerOptions,
407
+ options?: ShieldRequestOptions,
404
408
  ): Promise<DisassociateDRTLogBucketCommandOutput>;
405
409
  disassociateDRTLogBucket(
406
410
  args: DisassociateDRTLogBucketCommandInput,
@@ -408,13 +412,13 @@ export interface Shield {
408
412
  ): void;
409
413
  disassociateDRTLogBucket(
410
414
  args: DisassociateDRTLogBucketCommandInput,
411
- options: __HttpHandlerOptions,
415
+ options: ShieldRequestOptions,
412
416
  cb: (err: any, data?: DisassociateDRTLogBucketCommandOutput) => void,
413
417
  ): void;
414
418
  disassociateDRTRole(): Promise<DisassociateDRTRoleCommandOutput>;
415
419
  disassociateDRTRole(
416
420
  args: DisassociateDRTRoleCommandInput,
417
- options?: __HttpHandlerOptions,
421
+ options?: ShieldRequestOptions,
418
422
  ): Promise<DisassociateDRTRoleCommandOutput>;
419
423
  disassociateDRTRole(
420
424
  args: DisassociateDRTRoleCommandInput,
@@ -422,12 +426,12 @@ export interface Shield {
422
426
  ): void;
423
427
  disassociateDRTRole(
424
428
  args: DisassociateDRTRoleCommandInput,
425
- options: __HttpHandlerOptions,
429
+ options: ShieldRequestOptions,
426
430
  cb: (err: any, data?: DisassociateDRTRoleCommandOutput) => void,
427
431
  ): void;
428
432
  disassociateHealthCheck(
429
433
  args: DisassociateHealthCheckCommandInput,
430
- options?: __HttpHandlerOptions,
434
+ options?: ShieldRequestOptions,
431
435
  ): Promise<DisassociateHealthCheckCommandOutput>;
432
436
  disassociateHealthCheck(
433
437
  args: DisassociateHealthCheckCommandInput,
@@ -435,12 +439,12 @@ export interface Shield {
435
439
  ): void;
436
440
  disassociateHealthCheck(
437
441
  args: DisassociateHealthCheckCommandInput,
438
- options: __HttpHandlerOptions,
442
+ options: ShieldRequestOptions,
439
443
  cb: (err: any, data?: DisassociateHealthCheckCommandOutput) => void,
440
444
  ): void;
441
445
  enableApplicationLayerAutomaticResponse(
442
446
  args: EnableApplicationLayerAutomaticResponseCommandInput,
443
- options?: __HttpHandlerOptions,
447
+ options?: ShieldRequestOptions,
444
448
  ): Promise<EnableApplicationLayerAutomaticResponseCommandOutput>;
445
449
  enableApplicationLayerAutomaticResponse(
446
450
  args: EnableApplicationLayerAutomaticResponseCommandInput,
@@ -448,13 +452,13 @@ export interface Shield {
448
452
  ): void;
449
453
  enableApplicationLayerAutomaticResponse(
450
454
  args: EnableApplicationLayerAutomaticResponseCommandInput,
451
- options: __HttpHandlerOptions,
455
+ options: ShieldRequestOptions,
452
456
  cb: (err: any, data?: EnableApplicationLayerAutomaticResponseCommandOutput) => void,
453
457
  ): void;
454
458
  enableProactiveEngagement(): Promise<EnableProactiveEngagementCommandOutput>;
455
459
  enableProactiveEngagement(
456
460
  args: EnableProactiveEngagementCommandInput,
457
- options?: __HttpHandlerOptions,
461
+ options?: ShieldRequestOptions,
458
462
  ): Promise<EnableProactiveEngagementCommandOutput>;
459
463
  enableProactiveEngagement(
460
464
  args: EnableProactiveEngagementCommandInput,
@@ -462,13 +466,13 @@ export interface Shield {
462
466
  ): void;
463
467
  enableProactiveEngagement(
464
468
  args: EnableProactiveEngagementCommandInput,
465
- options: __HttpHandlerOptions,
469
+ options: ShieldRequestOptions,
466
470
  cb: (err: any, data?: EnableProactiveEngagementCommandOutput) => void,
467
471
  ): void;
468
472
  getSubscriptionState(): Promise<GetSubscriptionStateCommandOutput>;
469
473
  getSubscriptionState(
470
474
  args: GetSubscriptionStateCommandInput,
471
- options?: __HttpHandlerOptions,
475
+ options?: ShieldRequestOptions,
472
476
  ): Promise<GetSubscriptionStateCommandOutput>;
473
477
  getSubscriptionState(
474
478
  args: GetSubscriptionStateCommandInput,
@@ -476,13 +480,13 @@ export interface Shield {
476
480
  ): void;
477
481
  getSubscriptionState(
478
482
  args: GetSubscriptionStateCommandInput,
479
- options: __HttpHandlerOptions,
483
+ options: ShieldRequestOptions,
480
484
  cb: (err: any, data?: GetSubscriptionStateCommandOutput) => void,
481
485
  ): void;
482
486
  listAttacks(): Promise<ListAttacksCommandOutput>;
483
487
  listAttacks(
484
488
  args: ListAttacksCommandInput,
485
- options?: __HttpHandlerOptions,
489
+ options?: ShieldRequestOptions,
486
490
  ): Promise<ListAttacksCommandOutput>;
487
491
  listAttacks(
488
492
  args: ListAttacksCommandInput,
@@ -490,13 +494,13 @@ export interface Shield {
490
494
  ): void;
491
495
  listAttacks(
492
496
  args: ListAttacksCommandInput,
493
- options: __HttpHandlerOptions,
497
+ options: ShieldRequestOptions,
494
498
  cb: (err: any, data?: ListAttacksCommandOutput) => void,
495
499
  ): void;
496
500
  listProtectionGroups(): Promise<ListProtectionGroupsCommandOutput>;
497
501
  listProtectionGroups(
498
502
  args: ListProtectionGroupsCommandInput,
499
- options?: __HttpHandlerOptions,
503
+ options?: ShieldRequestOptions,
500
504
  ): Promise<ListProtectionGroupsCommandOutput>;
501
505
  listProtectionGroups(
502
506
  args: ListProtectionGroupsCommandInput,
@@ -504,13 +508,13 @@ export interface Shield {
504
508
  ): void;
505
509
  listProtectionGroups(
506
510
  args: ListProtectionGroupsCommandInput,
507
- options: __HttpHandlerOptions,
511
+ options: ShieldRequestOptions,
508
512
  cb: (err: any, data?: ListProtectionGroupsCommandOutput) => void,
509
513
  ): void;
510
514
  listProtections(): Promise<ListProtectionsCommandOutput>;
511
515
  listProtections(
512
516
  args: ListProtectionsCommandInput,
513
- options?: __HttpHandlerOptions,
517
+ options?: ShieldRequestOptions,
514
518
  ): Promise<ListProtectionsCommandOutput>;
515
519
  listProtections(
516
520
  args: ListProtectionsCommandInput,
@@ -518,12 +522,12 @@ export interface Shield {
518
522
  ): void;
519
523
  listProtections(
520
524
  args: ListProtectionsCommandInput,
521
- options: __HttpHandlerOptions,
525
+ options: ShieldRequestOptions,
522
526
  cb: (err: any, data?: ListProtectionsCommandOutput) => void,
523
527
  ): void;
524
528
  listResourcesInProtectionGroup(
525
529
  args: ListResourcesInProtectionGroupCommandInput,
526
- options?: __HttpHandlerOptions,
530
+ options?: ShieldRequestOptions,
527
531
  ): Promise<ListResourcesInProtectionGroupCommandOutput>;
528
532
  listResourcesInProtectionGroup(
529
533
  args: ListResourcesInProtectionGroupCommandInput,
@@ -531,12 +535,12 @@ export interface Shield {
531
535
  ): void;
532
536
  listResourcesInProtectionGroup(
533
537
  args: ListResourcesInProtectionGroupCommandInput,
534
- options: __HttpHandlerOptions,
538
+ options: ShieldRequestOptions,
535
539
  cb: (err: any, data?: ListResourcesInProtectionGroupCommandOutput) => void,
536
540
  ): void;
537
541
  listTagsForResource(
538
542
  args: ListTagsForResourceCommandInput,
539
- options?: __HttpHandlerOptions,
543
+ options?: ShieldRequestOptions,
540
544
  ): Promise<ListTagsForResourceCommandOutput>;
541
545
  listTagsForResource(
542
546
  args: ListTagsForResourceCommandInput,
@@ -544,12 +548,12 @@ export interface Shield {
544
548
  ): void;
545
549
  listTagsForResource(
546
550
  args: ListTagsForResourceCommandInput,
547
- options: __HttpHandlerOptions,
551
+ options: ShieldRequestOptions,
548
552
  cb: (err: any, data?: ListTagsForResourceCommandOutput) => void,
549
553
  ): void;
550
554
  tagResource(
551
555
  args: TagResourceCommandInput,
552
- options?: __HttpHandlerOptions,
556
+ options?: ShieldRequestOptions,
553
557
  ): Promise<TagResourceCommandOutput>;
554
558
  tagResource(
555
559
  args: TagResourceCommandInput,
@@ -557,12 +561,12 @@ export interface Shield {
557
561
  ): void;
558
562
  tagResource(
559
563
  args: TagResourceCommandInput,
560
- options: __HttpHandlerOptions,
564
+ options: ShieldRequestOptions,
561
565
  cb: (err: any, data?: TagResourceCommandOutput) => void,
562
566
  ): void;
563
567
  untagResource(
564
568
  args: UntagResourceCommandInput,
565
- options?: __HttpHandlerOptions,
569
+ options?: ShieldRequestOptions,
566
570
  ): Promise<UntagResourceCommandOutput>;
567
571
  untagResource(
568
572
  args: UntagResourceCommandInput,
@@ -570,12 +574,12 @@ export interface Shield {
570
574
  ): void;
571
575
  untagResource(
572
576
  args: UntagResourceCommandInput,
573
- options: __HttpHandlerOptions,
577
+ options: ShieldRequestOptions,
574
578
  cb: (err: any, data?: UntagResourceCommandOutput) => void,
575
579
  ): void;
576
580
  updateApplicationLayerAutomaticResponse(
577
581
  args: UpdateApplicationLayerAutomaticResponseCommandInput,
578
- options?: __HttpHandlerOptions,
582
+ options?: ShieldRequestOptions,
579
583
  ): Promise<UpdateApplicationLayerAutomaticResponseCommandOutput>;
580
584
  updateApplicationLayerAutomaticResponse(
581
585
  args: UpdateApplicationLayerAutomaticResponseCommandInput,
@@ -583,13 +587,13 @@ export interface Shield {
583
587
  ): void;
584
588
  updateApplicationLayerAutomaticResponse(
585
589
  args: UpdateApplicationLayerAutomaticResponseCommandInput,
586
- options: __HttpHandlerOptions,
590
+ options: ShieldRequestOptions,
587
591
  cb: (err: any, data?: UpdateApplicationLayerAutomaticResponseCommandOutput) => void,
588
592
  ): void;
589
593
  updateEmergencyContactSettings(): Promise<UpdateEmergencyContactSettingsCommandOutput>;
590
594
  updateEmergencyContactSettings(
591
595
  args: UpdateEmergencyContactSettingsCommandInput,
592
- options?: __HttpHandlerOptions,
596
+ options?: ShieldRequestOptions,
593
597
  ): Promise<UpdateEmergencyContactSettingsCommandOutput>;
594
598
  updateEmergencyContactSettings(
595
599
  args: UpdateEmergencyContactSettingsCommandInput,
@@ -597,12 +601,12 @@ export interface Shield {
597
601
  ): void;
598
602
  updateEmergencyContactSettings(
599
603
  args: UpdateEmergencyContactSettingsCommandInput,
600
- options: __HttpHandlerOptions,
604
+ options: ShieldRequestOptions,
601
605
  cb: (err: any, data?: UpdateEmergencyContactSettingsCommandOutput) => void,
602
606
  ): void;
603
607
  updateProtectionGroup(
604
608
  args: UpdateProtectionGroupCommandInput,
605
- options?: __HttpHandlerOptions,
609
+ options?: ShieldRequestOptions,
606
610
  ): Promise<UpdateProtectionGroupCommandOutput>;
607
611
  updateProtectionGroup(
608
612
  args: UpdateProtectionGroupCommandInput,
@@ -610,13 +614,13 @@ export interface Shield {
610
614
  ): void;
611
615
  updateProtectionGroup(
612
616
  args: UpdateProtectionGroupCommandInput,
613
- options: __HttpHandlerOptions,
617
+ options: ShieldRequestOptions,
614
618
  cb: (err: any, data?: UpdateProtectionGroupCommandOutput) => void,
615
619
  ): void;
616
620
  updateSubscription(): Promise<UpdateSubscriptionCommandOutput>;
617
621
  updateSubscription(
618
622
  args: UpdateSubscriptionCommandInput,
619
- options?: __HttpHandlerOptions,
623
+ options?: ShieldRequestOptions,
620
624
  ): Promise<UpdateSubscriptionCommandOutput>;
621
625
  updateSubscription(
622
626
  args: UpdateSubscriptionCommandInput,
@@ -624,7 +628,7 @@ export interface Shield {
624
628
  ): void;
625
629
  updateSubscription(
626
630
  args: UpdateSubscriptionCommandInput,
627
- options: __HttpHandlerOptions,
631
+ options: ShieldRequestOptions,
628
632
  cb: (err: any, data?: UpdateSubscriptionCommandOutput) => void,
629
633
  ): void;
630
634
  paginateListAttacks(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-shield",
3
- "version": "3.1136.0",
3
+ "version": "3.1138.0",
4
4
  "description": "AWS SDK for JavaScript Shield Client for Node.js, Browser and React Native",
5
5
  "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-shield",
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": {