@aws-sdk/client-shield 3.933.0 → 3.935.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.
@@ -0,0 +1,159 @@
1
+ /**
2
+ * @public
3
+ * @enum
4
+ */
5
+ export declare const ApplicationLayerAutomaticResponseStatus: {
6
+ readonly DISABLED: "DISABLED";
7
+ readonly ENABLED: "ENABLED";
8
+ };
9
+ /**
10
+ * @public
11
+ */
12
+ export type ApplicationLayerAutomaticResponseStatus = (typeof ApplicationLayerAutomaticResponseStatus)[keyof typeof ApplicationLayerAutomaticResponseStatus];
13
+ /**
14
+ * @public
15
+ * @enum
16
+ */
17
+ export declare const ValidationExceptionReason: {
18
+ readonly FIELD_VALIDATION_FAILED: "FIELD_VALIDATION_FAILED";
19
+ readonly OTHER: "OTHER";
20
+ };
21
+ /**
22
+ * @public
23
+ */
24
+ export type ValidationExceptionReason = (typeof ValidationExceptionReason)[keyof typeof ValidationExceptionReason];
25
+ /**
26
+ * @public
27
+ * @enum
28
+ */
29
+ export declare const AttackLayer: {
30
+ readonly APPLICATION: "APPLICATION";
31
+ readonly NETWORK: "NETWORK";
32
+ };
33
+ /**
34
+ * @public
35
+ */
36
+ export type AttackLayer = (typeof AttackLayer)[keyof typeof AttackLayer];
37
+ /**
38
+ * @public
39
+ * @enum
40
+ */
41
+ export declare const AttackPropertyIdentifier: {
42
+ readonly DESTINATION_URL: "DESTINATION_URL";
43
+ readonly REFERRER: "REFERRER";
44
+ readonly SOURCE_ASN: "SOURCE_ASN";
45
+ readonly SOURCE_COUNTRY: "SOURCE_COUNTRY";
46
+ readonly SOURCE_IP_ADDRESS: "SOURCE_IP_ADDRESS";
47
+ readonly SOURCE_USER_AGENT: "SOURCE_USER_AGENT";
48
+ readonly WORDPRESS_PINGBACK_REFLECTOR: "WORDPRESS_PINGBACK_REFLECTOR";
49
+ readonly WORDPRESS_PINGBACK_SOURCE: "WORDPRESS_PINGBACK_SOURCE";
50
+ };
51
+ /**
52
+ * @public
53
+ */
54
+ export type AttackPropertyIdentifier = (typeof AttackPropertyIdentifier)[keyof typeof AttackPropertyIdentifier];
55
+ /**
56
+ * @public
57
+ * @enum
58
+ */
59
+ export declare const Unit: {
60
+ readonly BITS: "BITS";
61
+ readonly BYTES: "BYTES";
62
+ readonly PACKETS: "PACKETS";
63
+ readonly REQUESTS: "REQUESTS";
64
+ };
65
+ /**
66
+ * @public
67
+ */
68
+ export type Unit = (typeof Unit)[keyof typeof Unit];
69
+ /**
70
+ * @public
71
+ * @enum
72
+ */
73
+ export declare const SubResourceType: {
74
+ readonly IP: "IP";
75
+ readonly URL: "URL";
76
+ };
77
+ /**
78
+ * @public
79
+ */
80
+ export type SubResourceType = (typeof SubResourceType)[keyof typeof SubResourceType];
81
+ /**
82
+ * @public
83
+ * @enum
84
+ */
85
+ export declare const AutoRenew: {
86
+ readonly DISABLED: "DISABLED";
87
+ readonly ENABLED: "ENABLED";
88
+ };
89
+ /**
90
+ * @public
91
+ */
92
+ export type AutoRenew = (typeof AutoRenew)[keyof typeof AutoRenew];
93
+ /**
94
+ * @public
95
+ * @enum
96
+ */
97
+ export declare const ProtectionGroupAggregation: {
98
+ readonly MAX: "MAX";
99
+ readonly MEAN: "MEAN";
100
+ readonly SUM: "SUM";
101
+ };
102
+ /**
103
+ * @public
104
+ */
105
+ export type ProtectionGroupAggregation = (typeof ProtectionGroupAggregation)[keyof typeof ProtectionGroupAggregation];
106
+ /**
107
+ * @public
108
+ * @enum
109
+ */
110
+ export declare const ProtectionGroupPattern: {
111
+ readonly ALL: "ALL";
112
+ readonly ARBITRARY: "ARBITRARY";
113
+ readonly BY_RESOURCE_TYPE: "BY_RESOURCE_TYPE";
114
+ };
115
+ /**
116
+ * @public
117
+ */
118
+ export type ProtectionGroupPattern = (typeof ProtectionGroupPattern)[keyof typeof ProtectionGroupPattern];
119
+ /**
120
+ * @public
121
+ * @enum
122
+ */
123
+ export declare const ProtectedResourceType: {
124
+ readonly APPLICATION_LOAD_BALANCER: "APPLICATION_LOAD_BALANCER";
125
+ readonly CLASSIC_LOAD_BALANCER: "CLASSIC_LOAD_BALANCER";
126
+ readonly CLOUDFRONT_DISTRIBUTION: "CLOUDFRONT_DISTRIBUTION";
127
+ readonly ELASTIC_IP_ALLOCATION: "ELASTIC_IP_ALLOCATION";
128
+ readonly GLOBAL_ACCELERATOR: "GLOBAL_ACCELERATOR";
129
+ readonly ROUTE_53_HOSTED_ZONE: "ROUTE_53_HOSTED_ZONE";
130
+ };
131
+ /**
132
+ * @public
133
+ */
134
+ export type ProtectedResourceType = (typeof ProtectedResourceType)[keyof typeof ProtectedResourceType];
135
+ /**
136
+ * @public
137
+ * @enum
138
+ */
139
+ export declare const ProactiveEngagementStatus: {
140
+ readonly DISABLED: "DISABLED";
141
+ readonly ENABLED: "ENABLED";
142
+ readonly PENDING: "PENDING";
143
+ };
144
+ /**
145
+ * @public
146
+ */
147
+ export type ProactiveEngagementStatus = (typeof ProactiveEngagementStatus)[keyof typeof ProactiveEngagementStatus];
148
+ /**
149
+ * @public
150
+ * @enum
151
+ */
152
+ export declare const SubscriptionState: {
153
+ readonly ACTIVE: "ACTIVE";
154
+ readonly INACTIVE: "INACTIVE";
155
+ };
156
+ /**
157
+ * @public
158
+ */
159
+ export type SubscriptionState = (typeof SubscriptionState)[keyof typeof SubscriptionState];
@@ -0,0 +1,191 @@
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
+ import { ValidationExceptionReason } from "./enums";
3
+ import { ValidationExceptionField } from "./models_0";
4
+ import { ShieldServiceException as __BaseException } from "./ShieldServiceException";
5
+ /**
6
+ * <p>Exception that indicates the specified <code>AttackId</code> does not exist, or the requester does not have the appropriate permissions to access the <code>AttackId</code>.</p>
7
+ * @public
8
+ */
9
+ export declare class AccessDeniedException extends __BaseException {
10
+ readonly name: "AccessDeniedException";
11
+ readonly $fault: "client";
12
+ /**
13
+ * @internal
14
+ */
15
+ constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
16
+ }
17
+ /**
18
+ * <p>In order to grant the necessary access to the Shield Response Team (SRT) the user submitting the request must have the <code>iam:PassRole</code> permission. This error indicates the user did not have the appropriate permissions. For more information, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_use_passrole.html">Granting a User Permissions to Pass a Role to an Amazon Web Services Service</a>. </p>
19
+ * @public
20
+ */
21
+ export declare class AccessDeniedForDependencyException extends __BaseException {
22
+ readonly name: "AccessDeniedForDependencyException";
23
+ readonly $fault: "client";
24
+ /**
25
+ * @internal
26
+ */
27
+ constructor(opts: __ExceptionOptionType<AccessDeniedForDependencyException, __BaseException>);
28
+ }
29
+ /**
30
+ * <p>Exception that indicates that a problem occurred with the service infrastructure. You can retry the request.</p>
31
+ * @public
32
+ */
33
+ export declare class InternalErrorException extends __BaseException {
34
+ readonly name: "InternalErrorException";
35
+ readonly $fault: "server";
36
+ /**
37
+ * @internal
38
+ */
39
+ constructor(opts: __ExceptionOptionType<InternalErrorException, __BaseException>);
40
+ }
41
+ /**
42
+ * <p>Exception that indicates that the operation would not cause any change to occur.</p>
43
+ * @public
44
+ */
45
+ export declare class InvalidOperationException extends __BaseException {
46
+ readonly name: "InvalidOperationException";
47
+ readonly $fault: "client";
48
+ /**
49
+ * @internal
50
+ */
51
+ constructor(opts: __ExceptionOptionType<InvalidOperationException, __BaseException>);
52
+ }
53
+ /**
54
+ * <p>Exception that indicates that the parameters passed to the API are invalid. If available, this exception includes details in additional properties. </p>
55
+ * @public
56
+ */
57
+ export declare class InvalidParameterException extends __BaseException {
58
+ readonly name: "InvalidParameterException";
59
+ readonly $fault: "client";
60
+ /**
61
+ * <p>Additional information about the exception.</p>
62
+ * @public
63
+ */
64
+ reason?: ValidationExceptionReason | undefined;
65
+ /**
66
+ * <p>Fields that caused the exception.</p>
67
+ * @public
68
+ */
69
+ fields?: ValidationExceptionField[] | undefined;
70
+ /**
71
+ * @internal
72
+ */
73
+ constructor(opts: __ExceptionOptionType<InvalidParameterException, __BaseException>);
74
+ }
75
+ /**
76
+ * <p>Exception that indicates that the operation would exceed a limit.</p>
77
+ * @public
78
+ */
79
+ export declare class LimitsExceededException extends __BaseException {
80
+ readonly name: "LimitsExceededException";
81
+ readonly $fault: "client";
82
+ /**
83
+ * <p>The type of limit that would be exceeded.</p>
84
+ * @public
85
+ */
86
+ Type?: string | undefined;
87
+ /**
88
+ * <p>The threshold that would be exceeded.</p>
89
+ * @public
90
+ */
91
+ Limit?: number | undefined;
92
+ /**
93
+ * @internal
94
+ */
95
+ constructor(opts: __ExceptionOptionType<LimitsExceededException, __BaseException>);
96
+ }
97
+ /**
98
+ * <p>The ARN of the role that you specified does not exist.</p>
99
+ * @public
100
+ */
101
+ export declare class NoAssociatedRoleException extends __BaseException {
102
+ readonly name: "NoAssociatedRoleException";
103
+ readonly $fault: "client";
104
+ /**
105
+ * @internal
106
+ */
107
+ constructor(opts: __ExceptionOptionType<NoAssociatedRoleException, __BaseException>);
108
+ }
109
+ /**
110
+ * <p>Exception that indicates that the resource state has been modified by another
111
+ * client. Retrieve the resource and then retry your request.</p>
112
+ * @public
113
+ */
114
+ export declare class OptimisticLockException extends __BaseException {
115
+ readonly name: "OptimisticLockException";
116
+ readonly $fault: "client";
117
+ /**
118
+ * @internal
119
+ */
120
+ constructor(opts: __ExceptionOptionType<OptimisticLockException, __BaseException>);
121
+ }
122
+ /**
123
+ * <p>Exception indicating the specified resource does not exist. If available, this exception includes details in additional properties. </p>
124
+ * @public
125
+ */
126
+ export declare class ResourceNotFoundException extends __BaseException {
127
+ readonly name: "ResourceNotFoundException";
128
+ readonly $fault: "client";
129
+ /**
130
+ * <p>Type of resource.</p>
131
+ * @public
132
+ */
133
+ resourceType?: string | undefined;
134
+ /**
135
+ * @internal
136
+ */
137
+ constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
138
+ }
139
+ /**
140
+ * <p>Exception that indicates that the resource is invalid. You might not have access to the resource, or the resource might not exist.</p>
141
+ * @public
142
+ */
143
+ export declare class InvalidResourceException extends __BaseException {
144
+ readonly name: "InvalidResourceException";
145
+ readonly $fault: "client";
146
+ /**
147
+ * @internal
148
+ */
149
+ constructor(opts: __ExceptionOptionType<InvalidResourceException, __BaseException>);
150
+ }
151
+ /**
152
+ * <p>Exception indicating the specified resource already exists. If available, this exception includes details in additional properties. </p>
153
+ * @public
154
+ */
155
+ export declare class ResourceAlreadyExistsException extends __BaseException {
156
+ readonly name: "ResourceAlreadyExistsException";
157
+ readonly $fault: "client";
158
+ /**
159
+ * <p>The type of resource that already exists.</p>
160
+ * @public
161
+ */
162
+ resourceType?: string | undefined;
163
+ /**
164
+ * @internal
165
+ */
166
+ constructor(opts: __ExceptionOptionType<ResourceAlreadyExistsException, __BaseException>);
167
+ }
168
+ /**
169
+ * <p>You are trying to update a subscription that has not yet completed the 1-year commitment. You can change the <code>AutoRenew</code> parameter during the last 30 days of your subscription. This exception indicates that you are attempting to change <code>AutoRenew</code> prior to that period.</p>
170
+ * @public
171
+ */
172
+ export declare class LockedSubscriptionException extends __BaseException {
173
+ readonly name: "LockedSubscriptionException";
174
+ readonly $fault: "client";
175
+ /**
176
+ * @internal
177
+ */
178
+ constructor(opts: __ExceptionOptionType<LockedSubscriptionException, __BaseException>);
179
+ }
180
+ /**
181
+ * <p>Exception that indicates that the <code>NextToken</code> specified in the request is invalid. Submit the request using the <code>NextToken</code> value that was returned in the prior response.</p>
182
+ * @public
183
+ */
184
+ export declare class InvalidPaginationTokenException extends __BaseException {
185
+ readonly name: "InvalidPaginationTokenException";
186
+ readonly $fault: "client";
187
+ /**
188
+ * @internal
189
+ */
190
+ constructor(opts: __ExceptionOptionType<InvalidPaginationTokenException, __BaseException>);
191
+ }