@aws-sdk/client-lightsail 3.1156.0 → 3.1158.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.
@@ -122,6 +122,44 @@ declare const GetDistributionsCommand_base: {
122
122
  * // errorCachingMinTTL: Number("long"),
123
123
  * // },
124
124
  * // ],
125
+ * // waf: { // WafConfig
126
+ * // isWafEnabled: true || false,
127
+ * // wafRules: [ // WafRuleList
128
+ * // { // WafRule
129
+ * // name: "STRING_VALUE", // required
130
+ * // atpConfig: { // WafAtpConfig
131
+ * // loginPath: "STRING_VALUE",
132
+ * // payloadType: "JSON" || "FORM_ENCODED",
133
+ * // usernameField: "STRING_VALUE",
134
+ * // passwordField: "STRING_VALUE",
135
+ * // responseInspection: { // WafResponseInspection
136
+ * // successCodes: [ // WafStatusCodeList
137
+ * // Number("int"),
138
+ * // ],
139
+ * // failureCodes: [
140
+ * // Number("int"),
141
+ * // ],
142
+ * // },
143
+ * // },
144
+ * // acfpConfig: { // WafAcfpConfig
145
+ * // payloadType: "JSON" || "FORM_ENCODED",
146
+ * // creationPath: "STRING_VALUE",
147
+ * // registrationPagePath: "STRING_VALUE",
148
+ * // responseInspection: {
149
+ * // successCodes: [
150
+ * // Number("int"),
151
+ * // ],
152
+ * // failureCodes: [
153
+ * // Number("int"),
154
+ * // ],
155
+ * // },
156
+ * // },
157
+ * // botControlConfig: { // WafBotControlConfig
158
+ * // inspectionLevel: "COMMON" || "TARGETED",
159
+ * // },
160
+ * // },
161
+ * // ],
162
+ * // },
125
163
  * // },
126
164
  * // ],
127
165
  * // nextPageToken: "STRING_VALUE",
@@ -1,5 +1,5 @@
1
1
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
- import type { GetInstanceStateRequest, GetInstanceStateResult } from "../models/models_0";
2
+ import type { GetInstanceStateRequest, GetInstanceStateResult } from "../models/models_1";
3
3
  /**
4
4
  * @public
5
5
  */
@@ -1,5 +1,5 @@
1
1
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
- import type { GetKeyPairRequest, GetKeyPairResult } from "../models/models_0";
2
+ import type { GetKeyPairRequest, GetKeyPairResult } from "../models/models_1";
3
3
  /**
4
4
  * @public
5
5
  */
@@ -1,5 +1,5 @@
1
1
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
- import type { GetKeyPairsRequest, GetKeyPairsResult } from "../models/models_0";
2
+ import type { GetKeyPairsRequest, GetKeyPairsResult } from "../models/models_1";
3
3
  /**
4
4
  * @public
5
5
  */
@@ -44,6 +44,9 @@ declare const StartInstanceCommand_base: {
44
44
  * const client = new LightsailClient(config);
45
45
  * const input = { // StartInstanceRequest
46
46
  * instanceName: "STRING_VALUE", // required
47
+ * attributeUpdates: { // InstanceAttributeUpdates
48
+ * bundleId: "STRING_VALUE",
49
+ * },
47
50
  * };
48
51
  * const command = new StartInstanceCommand(input);
49
52
  * const response = await client.send(command);
@@ -91,6 +91,42 @@ declare const UpdateDistributionCommand_base: {
91
91
  * errorCachingMinTTL: Number("long"),
92
92
  * },
93
93
  * ],
94
+ * enableWaf: true || false,
95
+ * wafRules: [ // WafRuleList
96
+ * { // WafRule
97
+ * name: "STRING_VALUE", // required
98
+ * atpConfig: { // WafAtpConfig
99
+ * loginPath: "STRING_VALUE",
100
+ * payloadType: "JSON" || "FORM_ENCODED",
101
+ * usernameField: "STRING_VALUE",
102
+ * passwordField: "STRING_VALUE",
103
+ * responseInspection: { // WafResponseInspection
104
+ * successCodes: [ // WafStatusCodeList
105
+ * Number("int"),
106
+ * ],
107
+ * failureCodes: [
108
+ * Number("int"),
109
+ * ],
110
+ * },
111
+ * },
112
+ * acfpConfig: { // WafAcfpConfig
113
+ * payloadType: "JSON" || "FORM_ENCODED",
114
+ * creationPath: "STRING_VALUE",
115
+ * registrationPagePath: "STRING_VALUE",
116
+ * responseInspection: {
117
+ * successCodes: [
118
+ * Number("int"),
119
+ * ],
120
+ * failureCodes: [
121
+ * Number("int"),
122
+ * ],
123
+ * },
124
+ * },
125
+ * botControlConfig: { // WafBotControlConfig
126
+ * inspectionLevel: "COMMON" || "TARGETED",
127
+ * },
128
+ * },
129
+ * ],
94
130
  * };
95
131
  * const command = new UpdateDistributionCommand(input);
96
132
  * const response = await client.send(command);
@@ -832,6 +832,30 @@ export declare const ViewerMinimumTlsProtocolVersionEnum: {
832
832
  * @public
833
833
  */
834
834
  export type ViewerMinimumTlsProtocolVersionEnum = (typeof ViewerMinimumTlsProtocolVersionEnum)[keyof typeof ViewerMinimumTlsProtocolVersionEnum];
835
+ /**
836
+ * @public
837
+ * @enum
838
+ */
839
+ export declare const WafPayloadTypeEnum: {
840
+ readonly FORM_ENCODED: "FORM_ENCODED";
841
+ readonly JSON: "JSON";
842
+ };
843
+ /**
844
+ * @public
845
+ */
846
+ export type WafPayloadTypeEnum = (typeof WafPayloadTypeEnum)[keyof typeof WafPayloadTypeEnum];
847
+ /**
848
+ * @public
849
+ * @enum
850
+ */
851
+ export declare const WafInspectionLevelEnum: {
852
+ readonly COMMON: "COMMON";
853
+ readonly TARGETED: "TARGETED";
854
+ };
855
+ /**
856
+ * @public
857
+ */
858
+ export type WafInspectionLevelEnum = (typeof WafInspectionLevelEnum)[keyof typeof WafInspectionLevelEnum];
835
859
  /**
836
860
  * @public
837
861
  * @enum
@@ -892,6 +916,8 @@ export declare const DistributionMetricName: {
892
916
  readonly Http5xxErrorRate: "Http5xxErrorRate";
893
917
  readonly Requests: "Requests";
894
918
  readonly TotalErrorRate: "TotalErrorRate";
919
+ readonly WafAllowedRequests: "WafAllowedRequests";
920
+ readonly WafBlockedRequests: "WafBlockedRequests";
895
921
  };
896
922
  /**
897
923
  * @public
@@ -1,4 +1,4 @@
1
- import type { AccessDirection, AccessType, AccountLevelBpaSyncStatus, AddOnType, AlarmState, AppCategory, AutoMountStatus, AutoSnapshotStatus, BehaviorEnum, BlueprintType, BPAStatusMessage, BucketMetricName, CertificateDomainValidationStatus, CertificateStatus, CloudFormationStackRecordSourceType, ComparisonOperator, ContactMethodStatus, ContactProtocol, ContainerServiceDeploymentState, ContainerServiceMetricName, ContainerServicePowerName, ContainerServiceProtocol, ContainerServiceState, ContainerServiceStateDetailCode, Currency, DiskSnapshotState, DiskState, DistributionMetricName, DnsRecordCreationStateCode, ExportSnapshotRecordSourceType, ForwardValues, HeaderEnum, HttpEndpoint, HttpProtocolIpv6, HttpTokens, InstanceAccessProtocol, InstanceMetadataState, InstanceMetricName, InstancePlatform, InstanceSnapshotState, IpAddressType, MetricName, MetricStatistic, MetricUnit, NameServersUpdateStateCode, NetworkProtocol, OperationStatus, OperationType, OriginIpAddressTypeEnum, OriginProtocolPolicyEnum, PortAccessType, PortInfoSourceType, PortState, PricingUnit, R53HostedZoneDeletionStateCode, RecordState, RegionName, RenewalStatus, ResourceType, Status, StatusType, TreatMissingData, ViewerMinimumTlsProtocolVersionEnum } from "./enums";
1
+ import type { AccessDirection, AccessType, AccountLevelBpaSyncStatus, AddOnType, AlarmState, AppCategory, AutoMountStatus, AutoSnapshotStatus, BehaviorEnum, BlueprintType, BPAStatusMessage, BucketMetricName, CertificateDomainValidationStatus, CertificateStatus, CloudFormationStackRecordSourceType, ComparisonOperator, ContactMethodStatus, ContactProtocol, ContainerServiceDeploymentState, ContainerServiceMetricName, ContainerServicePowerName, ContainerServiceProtocol, ContainerServiceState, ContainerServiceStateDetailCode, Currency, DiskSnapshotState, DiskState, DistributionMetricName, DnsRecordCreationStateCode, ExportSnapshotRecordSourceType, ForwardValues, HeaderEnum, HttpEndpoint, HttpProtocolIpv6, HttpTokens, InstanceAccessProtocol, InstanceMetadataState, InstanceMetricName, InstancePlatform, InstanceSnapshotState, IpAddressType, MetricName, MetricStatistic, MetricUnit, NameServersUpdateStateCode, NetworkProtocol, OperationStatus, OperationType, OriginIpAddressTypeEnum, OriginProtocolPolicyEnum, PortAccessType, PortInfoSourceType, PortState, PricingUnit, R53HostedZoneDeletionStateCode, RecordState, RegionName, RenewalStatus, ResourceType, Status, StatusType, TreatMissingData, ViewerMinimumTlsProtocolVersionEnum, WafInspectionLevelEnum, WafPayloadTypeEnum } from "./enums";
2
2
  /**
3
3
  * <p>Describes the last time an access key was used.</p>
4
4
  * <note>
@@ -4026,6 +4026,284 @@ export interface InputOrigin {
4026
4026
  */
4027
4027
  ipAddressType?: OriginIpAddressTypeEnum | undefined;
4028
4028
  }
4029
+ /**
4030
+ * <p>Describes the HTTP status codes that your application returns to indicate successful and
4031
+ * failed attempts. The Web Application Firewall (WAF) rule group uses these status codes to
4032
+ * track successful and failed attempts.</p>
4033
+ * @public
4034
+ */
4035
+ export interface WafResponseInspection {
4036
+ /**
4037
+ * <p>The HTTP status codes that indicate a successful attempt (for example,
4038
+ * <code>200</code>).</p>
4039
+ * <p>Constraints:</p>
4040
+ * <ul>
4041
+ * <li>
4042
+ * <p>Must contain from 1 to 10 status codes.</p>
4043
+ * </li>
4044
+ * <li>
4045
+ * <p>Each status code must be from <code>0</code> to <code>999</code>.</p>
4046
+ * </li>
4047
+ * <li>
4048
+ * <p>Can't contain a status code that is also in
4049
+ * <code>failureCodes</code>.</p>
4050
+ * </li>
4051
+ * </ul>
4052
+ * @public
4053
+ */
4054
+ successCodes?: number[] | undefined;
4055
+ /**
4056
+ * <p>The HTTP status codes that indicate a failed attempt (for example,
4057
+ * <code>401</code>).</p>
4058
+ * <p>Constraints:</p>
4059
+ * <ul>
4060
+ * <li>
4061
+ * <p>Must contain from 1 to 10 status codes.</p>
4062
+ * </li>
4063
+ * <li>
4064
+ * <p>Each status code must be from <code>0</code> to <code>999</code>.</p>
4065
+ * </li>
4066
+ * <li>
4067
+ * <p>Can't contain a status code that is also in
4068
+ * <code>successCodes</code>.</p>
4069
+ * </li>
4070
+ * </ul>
4071
+ * @public
4072
+ */
4073
+ failureCodes?: number[] | undefined;
4074
+ }
4075
+ /**
4076
+ * <p>Describes the configuration of the account creation fraud prevention Web Application
4077
+ * Firewall (WAF) rule group. The rule group inspects account creation requests to your
4078
+ * application.</p>
4079
+ * @public
4080
+ */
4081
+ export interface WafAcfpConfig {
4082
+ /**
4083
+ * <p>The content type of the request body of account creation requests.</p>
4084
+ * <p>The following content types are possible:</p>
4085
+ * <ul>
4086
+ * <li>
4087
+ * <p>
4088
+ * <code>JSON</code> – The request body is in JSON format.</p>
4089
+ * </li>
4090
+ * <li>
4091
+ * <p>
4092
+ * <code>FORM_ENCODED</code> – The request body is form encoded.</p>
4093
+ * </li>
4094
+ * </ul>
4095
+ * @public
4096
+ */
4097
+ payloadType?: WafPayloadTypeEnum | undefined;
4098
+ /**
4099
+ * <p>The path of the endpoint that accepts completed account creation forms (for example,
4100
+ * <code>/signup/submit</code>). This endpoint must accept <code>POST</code> requests.</p>
4101
+ * <p>Constraints:</p>
4102
+ * <ul>
4103
+ * <li>
4104
+ * <p>Must start with a forward slash (<code>/</code>).</p>
4105
+ * </li>
4106
+ * <li>
4107
+ * <p>Must contain from 1 to 256 characters.</p>
4108
+ * </li>
4109
+ * </ul>
4110
+ * @public
4111
+ */
4112
+ creationPath?: string | undefined;
4113
+ /**
4114
+ * <p>The path of the page that displays the account creation form (for example,
4115
+ * <code>/signup</code>).</p>
4116
+ * <p>Constraints:</p>
4117
+ * <ul>
4118
+ * <li>
4119
+ * <p>Must start with a forward slash (<code>/</code>).</p>
4120
+ * </li>
4121
+ * <li>
4122
+ * <p>Must contain from 1 to 256 characters.</p>
4123
+ * </li>
4124
+ * </ul>
4125
+ * @public
4126
+ */
4127
+ registrationPagePath?: string | undefined;
4128
+ /**
4129
+ * <p>An object that describes the HTTP status codes that your application returns for
4130
+ * successful and failed account creation attempts.</p>
4131
+ * @public
4132
+ */
4133
+ responseInspection?: WafResponseInspection | undefined;
4134
+ }
4135
+ /**
4136
+ * <p>Describes the configuration of the account takeover prevention Web Application Firewall
4137
+ * (WAF) rule group. The rule group inspects login requests to the login path of your
4138
+ * application.</p>
4139
+ * @public
4140
+ */
4141
+ export interface WafAtpConfig {
4142
+ /**
4143
+ * <p>The path of the login endpoint of your application (for example,
4144
+ * <code>/login</code>). Login paths that start with the path that you specify are a
4145
+ * match.</p>
4146
+ * <p>Constraints:</p>
4147
+ * <ul>
4148
+ * <li>
4149
+ * <p>Must start with a forward slash (<code>/</code>).</p>
4150
+ * </li>
4151
+ * <li>
4152
+ * <p>Must contain from 1 to 256 characters.</p>
4153
+ * </li>
4154
+ * </ul>
4155
+ * @public
4156
+ */
4157
+ loginPath?: string | undefined;
4158
+ /**
4159
+ * <p>The content type of the request body of login requests.</p>
4160
+ * <p>The following content types are possible:</p>
4161
+ * <ul>
4162
+ * <li>
4163
+ * <p>
4164
+ * <code>JSON</code> – The request body is in JSON format.</p>
4165
+ * </li>
4166
+ * <li>
4167
+ * <p>
4168
+ * <code>FORM_ENCODED</code> – The request body is form encoded.</p>
4169
+ * </li>
4170
+ * </ul>
4171
+ * @public
4172
+ */
4173
+ payloadType?: WafPayloadTypeEnum | undefined;
4174
+ /**
4175
+ * <p>The name of the field in the request body that contains the username (for example,
4176
+ * <code>/username</code> for <code>JSON</code> or <code>username</code> for
4177
+ * <code>FORM_ENCODED</code>).</p>
4178
+ * <p>Constraints:</p>
4179
+ * <ul>
4180
+ * <li>
4181
+ * <p>For a <code>JSON</code> payload, must be a JSON pointer that starts with a forward
4182
+ * slash (<code>/</code>).</p>
4183
+ * </li>
4184
+ * <li>
4185
+ * <p>Must contain from 1 to 512 characters.</p>
4186
+ * </li>
4187
+ * </ul>
4188
+ * @public
4189
+ */
4190
+ usernameField?: string | undefined;
4191
+ /**
4192
+ * <p>The name of the field in the request body that contains the password (for example,
4193
+ * <code>/password</code> for <code>JSON</code> or <code>password</code> for
4194
+ * <code>FORM_ENCODED</code>).</p>
4195
+ * <p>Constraints:</p>
4196
+ * <ul>
4197
+ * <li>
4198
+ * <p>For a <code>JSON</code> payload, must be a JSON pointer that starts with a forward
4199
+ * slash (<code>/</code>).</p>
4200
+ * </li>
4201
+ * <li>
4202
+ * <p>Must contain from 1 to 512 characters.</p>
4203
+ * </li>
4204
+ * </ul>
4205
+ * @public
4206
+ */
4207
+ passwordField?: string | undefined;
4208
+ /**
4209
+ * <p>An object that describes the HTTP status codes that your application returns for
4210
+ * successful and failed login attempts.</p>
4211
+ * @public
4212
+ */
4213
+ responseInspection?: WafResponseInspection | undefined;
4214
+ }
4215
+ /**
4216
+ * <p>Describes the configuration of the bot control Web Application Firewall (WAF) rule
4217
+ * group.</p>
4218
+ * @public
4219
+ */
4220
+ export interface WafBotControlConfig {
4221
+ /**
4222
+ * <p>The inspection level of the bot control rule group.</p>
4223
+ * <p>The following inspection levels are possible:</p>
4224
+ * <ul>
4225
+ * <li>
4226
+ * <p>
4227
+ * <code>COMMON</code> – Detects a variety of bots that identify themselves, such as
4228
+ * web scraping frameworks, search engines, and automated browsers.</p>
4229
+ * </li>
4230
+ * <li>
4231
+ * <p>
4232
+ * <code>TARGETED</code> – Includes the <code>COMMON</code> protections, and adds
4233
+ * detection for sophisticated bots that don't identify themselves. This level uses rate
4234
+ * limiting, CAPTCHA, and background browser challenges.</p>
4235
+ * </li>
4236
+ * </ul>
4237
+ * @public
4238
+ */
4239
+ inspectionLevel?: WafInspectionLevelEnum | undefined;
4240
+ }
4241
+ /**
4242
+ * <p>Describes a Web Application Firewall (WAF) rule group for a Lightsail distribution. A
4243
+ * WAF rule group is a set of rules managed by AWS. The rules inspect viewer requests and block
4244
+ * requests that match them.</p>
4245
+ * @public
4246
+ */
4247
+ export interface WafRule {
4248
+ /**
4249
+ * <p>The name of the WAF rule group (for example,
4250
+ * <code>AWSManagedRulesCommonRuleSet</code>).</p>
4251
+ * <p>For the WAF rule groups that you can specify for each bundle, see the
4252
+ * <code>wafRules</code> parameter of the <code>CreateDistribution</code> action.</p>
4253
+ * @public
4254
+ */
4255
+ name: string | undefined;
4256
+ /**
4257
+ * <p>An object that describes the configuration of the account takeover prevention rule
4258
+ * group.</p>
4259
+ * <p>Constraints:</p>
4260
+ * <ul>
4261
+ * <li>
4262
+ * <p>Define this parameter only when the <code>name</code> is
4263
+ * <code>AWSManagedRulesATPRuleSet</code>.</p>
4264
+ * </li>
4265
+ * <li>
4266
+ * <p>This parameter is required when the <code>name</code> is
4267
+ * <code>AWSManagedRulesATPRuleSet</code>.</p>
4268
+ * </li>
4269
+ * </ul>
4270
+ * @public
4271
+ */
4272
+ atpConfig?: WafAtpConfig | undefined;
4273
+ /**
4274
+ * <p>An object that describes the configuration of the account creation fraud prevention
4275
+ * rule group.</p>
4276
+ * <p>Constraints:</p>
4277
+ * <ul>
4278
+ * <li>
4279
+ * <p>Define this parameter only when the <code>name</code> is
4280
+ * <code>AWSManagedRulesACFPRuleSet</code>.</p>
4281
+ * </li>
4282
+ * <li>
4283
+ * <p>This parameter is required when the <code>name</code> is
4284
+ * <code>AWSManagedRulesACFPRuleSet</code>.</p>
4285
+ * </li>
4286
+ * </ul>
4287
+ * @public
4288
+ */
4289
+ acfpConfig?: WafAcfpConfig | undefined;
4290
+ /**
4291
+ * <p>An object that describes the configuration of the bot control rule group.</p>
4292
+ * <p>Constraints:</p>
4293
+ * <ul>
4294
+ * <li>
4295
+ * <p>Define this parameter only when the <code>name</code> is
4296
+ * <code>AWSManagedRulesBotControlRuleSet</code>.</p>
4297
+ * </li>
4298
+ * <li>
4299
+ * <p>This parameter is required when the <code>name</code> is
4300
+ * <code>AWSManagedRulesBotControlRuleSet</code>.</p>
4301
+ * </li>
4302
+ * </ul>
4303
+ * @public
4304
+ */
4305
+ botControlConfig?: WafBotControlConfig | undefined;
4306
+ }
4029
4307
  /**
4030
4308
  * @public
4031
4309
  */
@@ -4120,6 +4398,46 @@ export interface CreateDistributionRequest {
4120
4398
  * @public
4121
4399
  */
4122
4400
  customErrorResponses?: DistributionCustomErrorResponse[] | undefined;
4401
+ /**
4402
+ * <p>Specifies whether to enable Web Application Firewall (WAF) for the distribution. WAF
4403
+ * inspects viewer requests and blocks requests that match the WAF rule groups that you
4404
+ * enable.</p>
4405
+ * <p>When you enable WAF without specifying the <code>wafRules</code> parameter, the
4406
+ * distribution has no WAF rule groups enabled and doesn't block any requests.</p>
4407
+ * <note>
4408
+ * <p>WAF is available only for distributions that use the <code>medium_1_0</code> or
4409
+ * <code>large_1_0</code> bundle.</p>
4410
+ * </note>
4411
+ * @public
4412
+ */
4413
+ enableWaf?: boolean | undefined;
4414
+ /**
4415
+ * <p>An array of objects that describe the WAF rule groups to enable for the
4416
+ * distribution.</p>
4417
+ * <p>The WAF rule groups that you can specify depend on the bundle of the
4418
+ * distribution:</p>
4419
+ * <ul>
4420
+ * <li>
4421
+ * <p>
4422
+ * <code>medium_1_0</code> – Supports the <code>AWSManagedRulesCommonRuleSet</code>,
4423
+ * <code>AWSManagedRulesKnownBadInputsRuleSet</code>, and
4424
+ * <code>AWSManagedRulesAnonymousIpList</code> rule groups.</p>
4425
+ * </li>
4426
+ * <li>
4427
+ * <p>
4428
+ * <code>large_1_0</code> – Supports the rule groups for <code>medium_1_0</code>, plus
4429
+ * <code>AWSManagedRulesAdminProtectionRuleSet</code>,
4430
+ * <code>AWSManagedRulesSQLiRuleSet</code>, <code>AWSManagedRulesLinuxRuleSet</code>,
4431
+ * <code>AWSManagedRulesUnixRuleSet</code>, <code>AWSManagedRulesWindowsRuleSet</code>,
4432
+ * <code>AWSManagedRulesPHPRuleSet</code>, <code>AWSManagedRulesWordPressRuleSet</code>,
4433
+ * <code>AWSManagedRulesAmazonIpReputationList</code>,
4434
+ * <code>AWSManagedRulesATPRuleSet</code>, <code>AWSManagedRulesACFPRuleSet</code>, and
4435
+ * <code>AWSManagedRulesBotControlRuleSet</code> rule groups.</p>
4436
+ * </li>
4437
+ * </ul>
4438
+ * @public
4439
+ */
4440
+ wafRules?: WafRule[] | undefined;
4123
4441
  }
4124
4442
  /**
4125
4443
  * <p>Describes the origin resource of an Amazon Lightsail content delivery network (CDN)
@@ -4176,6 +4494,24 @@ export interface Origin {
4176
4494
  */
4177
4495
  isPrivateOriginAccessEnabled?: boolean | undefined;
4178
4496
  }
4497
+ /**
4498
+ * <p>Describes the Web Application Firewall (WAF) configuration of a Lightsail
4499
+ * distribution.</p>
4500
+ * @public
4501
+ */
4502
+ export interface WafConfig {
4503
+ /**
4504
+ * <p>Specifies whether WAF is enabled for the distribution.</p>
4505
+ * @public
4506
+ */
4507
+ isWafEnabled?: boolean | undefined;
4508
+ /**
4509
+ * <p>An array of objects that describe the WAF rule groups enabled for the
4510
+ * distribution.</p>
4511
+ * @public
4512
+ */
4513
+ wafRules?: WafRule[] | undefined;
4514
+ }
4179
4515
  /**
4180
4516
  * <p>Describes an Amazon Lightsail content delivery network (CDN) distribution.</p>
4181
4517
  * @public
@@ -4316,6 +4652,12 @@ export interface LightsailDistribution {
4316
4652
  * @public
4317
4653
  */
4318
4654
  customErrorResponses?: DistributionCustomErrorResponse[] | undefined;
4655
+ /**
4656
+ * <p>An object that describes the Web Application Firewall (WAF) configuration of the
4657
+ * distribution.</p>
4658
+ * @public
4659
+ */
4660
+ waf?: WafConfig | undefined;
4319
4661
  }
4320
4662
  /**
4321
4663
  * @public
@@ -7926,6 +8268,30 @@ export interface GetDistributionMetricDataRequest {
7926
8268
  * <p>
7927
8269
  * <code>Unit</code>: The published unit is <code>Percent</code>.</p>
7928
8270
  * </li>
8271
+ * <li>
8272
+ * <p>
8273
+ * <b>
8274
+ * <code>WafAllowedRequests</code>
8275
+ * </b> - The number of
8276
+ * viewer requests that Web Application Firewall (WAF) allowed. This metric is available only
8277
+ * when WAF is enabled for the distribution.</p>
8278
+ * <p>
8279
+ * <code>Statistics</code>: The most useful statistic is <code>Sum</code>.</p>
8280
+ * <p>
8281
+ * <code>Unit</code>: The published unit is <code>None</code>.</p>
8282
+ * </li>
8283
+ * <li>
8284
+ * <p>
8285
+ * <b>
8286
+ * <code>WafBlockedRequests</code>
8287
+ * </b> - The number of
8288
+ * viewer requests that WAF blocked. This metric is available only when WAF is enabled for
8289
+ * the distribution.</p>
8290
+ * <p>
8291
+ * <code>Statistics</code>: The most useful statistic is <code>Sum</code>.</p>
8292
+ * <p>
8293
+ * <code>Unit</code>: The published unit is <code>None</code>.</p>
8294
+ * </li>
7929
8295
  * </ul>
7930
8296
  * @public
7931
8297
  */
@@ -9440,80 +9806,3 @@ export interface GetInstanceSnapshotsResult {
9440
9806
  */
9441
9807
  nextPageToken?: string | undefined;
9442
9808
  }
9443
- /**
9444
- * @public
9445
- */
9446
- export interface GetInstanceStateRequest {
9447
- /**
9448
- * <p>The name of the instance to get state information about.</p>
9449
- * @public
9450
- */
9451
- instanceName: string | undefined;
9452
- }
9453
- /**
9454
- * @public
9455
- */
9456
- export interface GetInstanceStateResult {
9457
- /**
9458
- * <p>The state of the instance.</p>
9459
- * @public
9460
- */
9461
- state?: InstanceState | undefined;
9462
- }
9463
- /**
9464
- * @public
9465
- */
9466
- export interface GetKeyPairRequest {
9467
- /**
9468
- * <p>The name of the key pair for which you are requesting information.</p>
9469
- * @public
9470
- */
9471
- keyPairName: string | undefined;
9472
- }
9473
- /**
9474
- * @public
9475
- */
9476
- export interface GetKeyPairResult {
9477
- /**
9478
- * <p>An array of key-value pairs containing information about the key pair.</p>
9479
- * @public
9480
- */
9481
- keyPair?: KeyPair | undefined;
9482
- }
9483
- /**
9484
- * @public
9485
- */
9486
- export interface GetKeyPairsRequest {
9487
- /**
9488
- * <p>The token to advance to the next page of results from your request.</p>
9489
- * <p>To get a page token, perform an initial <code>GetKeyPairs</code> request. If your results
9490
- * are paginated, the response will return a next page token that you can specify as the page
9491
- * token in a subsequent request.</p>
9492
- * @public
9493
- */
9494
- pageToken?: string | undefined;
9495
- /**
9496
- * <p>A Boolean value that indicates whether to include the default key pair in the response of
9497
- * your request.</p>
9498
- * @public
9499
- */
9500
- includeDefaultKeyPair?: boolean | undefined;
9501
- }
9502
- /**
9503
- * @public
9504
- */
9505
- export interface GetKeyPairsResult {
9506
- /**
9507
- * <p>An array of key-value pairs containing information about the key pairs.</p>
9508
- * @public
9509
- */
9510
- keyPairs?: KeyPair[] | undefined;
9511
- /**
9512
- * <p>The token to advance to the next page of results from your request.</p>
9513
- * <p>A next page token is not returned if there are no more results to display.</p>
9514
- * <p>To get the next page of results, perform another <code>GetKeyPairs</code> request and
9515
- * specify the next page token using the <code>pageToken</code> parameter.</p>
9516
- * @public
9517
- */
9518
- nextPageToken?: string | undefined;
9519
- }