fms.d.ts
35.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
import {Request} from '../lib/request';
import {Response} from '../lib/response';
import {AWSError} from '../lib/error';
import {Service} from '../lib/service';
import {ServiceConfigurationOptions} from '../lib/service';
import {ConfigBase as Config} from '../lib/config';
interface Blob {}
declare class FMS extends Service {
/**
* Constructs a service object. This object has one method for each API operation.
*/
constructor(options?: FMS.Types.ClientConfiguration)
config: Config & FMS.Types.ClientConfiguration;
/**
* Sets the AWS Firewall Manager administrator account. AWS Firewall Manager must be associated with the master account of your AWS organization or associated with a member account that has the appropriate permissions. If the account ID that you submit is not an AWS Organizations master account, AWS Firewall Manager will set the appropriate permissions for the given member account. The account that you associate with AWS Firewall Manager is called the AWS Firewall Manager administrator account.
*/
associateAdminAccount(params: FMS.Types.AssociateAdminAccountRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
/**
* Sets the AWS Firewall Manager administrator account. AWS Firewall Manager must be associated with the master account of your AWS organization or associated with a member account that has the appropriate permissions. If the account ID that you submit is not an AWS Organizations master account, AWS Firewall Manager will set the appropriate permissions for the given member account. The account that you associate with AWS Firewall Manager is called the AWS Firewall Manager administrator account.
*/
associateAdminAccount(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
/**
* Deletes an AWS Firewall Manager association with the IAM role and the Amazon Simple Notification Service (SNS) topic that is used to record AWS Firewall Manager SNS logs.
*/
deleteNotificationChannel(params: FMS.Types.DeleteNotificationChannelRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
/**
* Deletes an AWS Firewall Manager association with the IAM role and the Amazon Simple Notification Service (SNS) topic that is used to record AWS Firewall Manager SNS logs.
*/
deleteNotificationChannel(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
/**
* Permanently deletes an AWS Firewall Manager policy.
*/
deletePolicy(params: FMS.Types.DeletePolicyRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
/**
* Permanently deletes an AWS Firewall Manager policy.
*/
deletePolicy(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
/**
* Disassociates the account that has been set as the AWS Firewall Manager administrator account. To set a different account as the administrator account, you must submit an AssociateAdminAccount request.
*/
disassociateAdminAccount(params: FMS.Types.DisassociateAdminAccountRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
/**
* Disassociates the account that has been set as the AWS Firewall Manager administrator account. To set a different account as the administrator account, you must submit an AssociateAdminAccount request.
*/
disassociateAdminAccount(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
/**
* Returns the AWS Organizations master account that is associated with AWS Firewall Manager as the AWS Firewall Manager administrator.
*/
getAdminAccount(params: FMS.Types.GetAdminAccountRequest, callback?: (err: AWSError, data: FMS.Types.GetAdminAccountResponse) => void): Request<FMS.Types.GetAdminAccountResponse, AWSError>;
/**
* Returns the AWS Organizations master account that is associated with AWS Firewall Manager as the AWS Firewall Manager administrator.
*/
getAdminAccount(callback?: (err: AWSError, data: FMS.Types.GetAdminAccountResponse) => void): Request<FMS.Types.GetAdminAccountResponse, AWSError>;
/**
* Returns detailed compliance information about the specified member account. Details include resources that are in and out of compliance with the specified policy. Resources are considered noncompliant for AWS WAF and Shield Advanced policies if the specified policy has not been applied to them. Resources are considered noncompliant for security group policies if they are in scope of the policy, they violate one or more of the policy rules, and remediation is disabled or not possible.
*/
getComplianceDetail(params: FMS.Types.GetComplianceDetailRequest, callback?: (err: AWSError, data: FMS.Types.GetComplianceDetailResponse) => void): Request<FMS.Types.GetComplianceDetailResponse, AWSError>;
/**
* Returns detailed compliance information about the specified member account. Details include resources that are in and out of compliance with the specified policy. Resources are considered noncompliant for AWS WAF and Shield Advanced policies if the specified policy has not been applied to them. Resources are considered noncompliant for security group policies if they are in scope of the policy, they violate one or more of the policy rules, and remediation is disabled or not possible.
*/
getComplianceDetail(callback?: (err: AWSError, data: FMS.Types.GetComplianceDetailResponse) => void): Request<FMS.Types.GetComplianceDetailResponse, AWSError>;
/**
* Information about the Amazon Simple Notification Service (SNS) topic that is used to record AWS Firewall Manager SNS logs.
*/
getNotificationChannel(params: FMS.Types.GetNotificationChannelRequest, callback?: (err: AWSError, data: FMS.Types.GetNotificationChannelResponse) => void): Request<FMS.Types.GetNotificationChannelResponse, AWSError>;
/**
* Information about the Amazon Simple Notification Service (SNS) topic that is used to record AWS Firewall Manager SNS logs.
*/
getNotificationChannel(callback?: (err: AWSError, data: FMS.Types.GetNotificationChannelResponse) => void): Request<FMS.Types.GetNotificationChannelResponse, AWSError>;
/**
* Returns information about the specified AWS Firewall Manager policy.
*/
getPolicy(params: FMS.Types.GetPolicyRequest, callback?: (err: AWSError, data: FMS.Types.GetPolicyResponse) => void): Request<FMS.Types.GetPolicyResponse, AWSError>;
/**
* Returns information about the specified AWS Firewall Manager policy.
*/
getPolicy(callback?: (err: AWSError, data: FMS.Types.GetPolicyResponse) => void): Request<FMS.Types.GetPolicyResponse, AWSError>;
/**
* If you created a Shield Advanced policy, returns policy-level attack summary information in the event of a potential DDoS attack. Other policy types are currently unsupported.
*/
getProtectionStatus(params: FMS.Types.GetProtectionStatusRequest, callback?: (err: AWSError, data: FMS.Types.GetProtectionStatusResponse) => void): Request<FMS.Types.GetProtectionStatusResponse, AWSError>;
/**
* If you created a Shield Advanced policy, returns policy-level attack summary information in the event of a potential DDoS attack. Other policy types are currently unsupported.
*/
getProtectionStatus(callback?: (err: AWSError, data: FMS.Types.GetProtectionStatusResponse) => void): Request<FMS.Types.GetProtectionStatusResponse, AWSError>;
/**
* Returns an array of PolicyComplianceStatus objects in the response. Use PolicyComplianceStatus to get a summary of which member accounts are protected by the specified policy.
*/
listComplianceStatus(params: FMS.Types.ListComplianceStatusRequest, callback?: (err: AWSError, data: FMS.Types.ListComplianceStatusResponse) => void): Request<FMS.Types.ListComplianceStatusResponse, AWSError>;
/**
* Returns an array of PolicyComplianceStatus objects in the response. Use PolicyComplianceStatus to get a summary of which member accounts are protected by the specified policy.
*/
listComplianceStatus(callback?: (err: AWSError, data: FMS.Types.ListComplianceStatusResponse) => void): Request<FMS.Types.ListComplianceStatusResponse, AWSError>;
/**
* Returns a MemberAccounts object that lists the member accounts in the administrator's AWS organization. The ListMemberAccounts must be submitted by the account that is set as the AWS Firewall Manager administrator.
*/
listMemberAccounts(params: FMS.Types.ListMemberAccountsRequest, callback?: (err: AWSError, data: FMS.Types.ListMemberAccountsResponse) => void): Request<FMS.Types.ListMemberAccountsResponse, AWSError>;
/**
* Returns a MemberAccounts object that lists the member accounts in the administrator's AWS organization. The ListMemberAccounts must be submitted by the account that is set as the AWS Firewall Manager administrator.
*/
listMemberAccounts(callback?: (err: AWSError, data: FMS.Types.ListMemberAccountsResponse) => void): Request<FMS.Types.ListMemberAccountsResponse, AWSError>;
/**
* Returns an array of PolicySummary objects in the response.
*/
listPolicies(params: FMS.Types.ListPoliciesRequest, callback?: (err: AWSError, data: FMS.Types.ListPoliciesResponse) => void): Request<FMS.Types.ListPoliciesResponse, AWSError>;
/**
* Returns an array of PolicySummary objects in the response.
*/
listPolicies(callback?: (err: AWSError, data: FMS.Types.ListPoliciesResponse) => void): Request<FMS.Types.ListPoliciesResponse, AWSError>;
/**
* Designates the IAM role and Amazon Simple Notification Service (SNS) topic that AWS Firewall Manager uses to record SNS logs.
*/
putNotificationChannel(params: FMS.Types.PutNotificationChannelRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
/**
* Designates the IAM role and Amazon Simple Notification Service (SNS) topic that AWS Firewall Manager uses to record SNS logs.
*/
putNotificationChannel(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
/**
* Creates an AWS Firewall Manager policy. Firewall Manager provides the following types of policies: A Shield Advanced policy, which applies Shield Advanced protection to specified accounts and resources An AWS WAF policy, which contains a rule group and defines which resources are to be protected by that rule group A security group policy, which manages VPC security groups across your AWS organization. Each policy is specific to one of the three types. If you want to enforce more than one policy type across accounts, you can create multiple policies. You can create multiple policies for each type. You must be subscribed to Shield Advanced to create a Shield Advanced policy. For more information about subscribing to Shield Advanced, see CreateSubscription.
*/
putPolicy(params: FMS.Types.PutPolicyRequest, callback?: (err: AWSError, data: FMS.Types.PutPolicyResponse) => void): Request<FMS.Types.PutPolicyResponse, AWSError>;
/**
* Creates an AWS Firewall Manager policy. Firewall Manager provides the following types of policies: A Shield Advanced policy, which applies Shield Advanced protection to specified accounts and resources An AWS WAF policy, which contains a rule group and defines which resources are to be protected by that rule group A security group policy, which manages VPC security groups across your AWS organization. Each policy is specific to one of the three types. If you want to enforce more than one policy type across accounts, you can create multiple policies. You can create multiple policies for each type. You must be subscribed to Shield Advanced to create a Shield Advanced policy. For more information about subscribing to Shield Advanced, see CreateSubscription.
*/
putPolicy(callback?: (err: AWSError, data: FMS.Types.PutPolicyResponse) => void): Request<FMS.Types.PutPolicyResponse, AWSError>;
}
declare namespace FMS {
export type AWSAccountId = string;
export type AccountRoleStatus = "READY"|"CREATING"|"PENDING_DELETION"|"DELETING"|"DELETED"|string;
export interface AssociateAdminAccountRequest {
/**
* The AWS account ID to associate with AWS Firewall Manager as the AWS Firewall Manager administrator account. This can be an AWS Organizations master account or a member account. For more information about AWS Organizations and master accounts, see Managing the AWS Accounts in Your Organization.
*/
AdminAccount: AWSAccountId;
}
export type Boolean = boolean;
export interface ComplianceViolator {
/**
* The resource ID.
*/
ResourceId?: ResourceId;
/**
* The reason that the resource is not protected by the policy.
*/
ViolationReason?: ViolationReason;
/**
* The resource type. This is in the format shown in the AWS Resource Types Reference. For example: AWS::ElasticLoadBalancingV2::LoadBalancer or AWS::CloudFront::Distribution.
*/
ResourceType?: ResourceType;
}
export type ComplianceViolators = ComplianceViolator[];
export type CustomerPolicyScopeId = string;
export type CustomerPolicyScopeIdList = CustomerPolicyScopeId[];
export type CustomerPolicyScopeIdType = "ACCOUNT"|string;
export type CustomerPolicyScopeMap = {[key: string]: CustomerPolicyScopeIdList};
export interface DeleteNotificationChannelRequest {
}
export interface DeletePolicyRequest {
/**
* The ID of the policy that you want to delete. PolicyId is returned by PutPolicy and by ListPolicies.
*/
PolicyId: PolicyId;
/**
* If True, the request performs cleanup according to the policy type. For AWS WAF and Shield Advanced policies, the cleanup does the following: Deletes rule groups created by AWS Firewall Manager Removes web ACLs from in-scope resources Deletes web ACLs that contain no rules or rule groups For security group policies, the cleanup does the following for each security group in the policy: Disassociates the security group from in-scope resources Deletes the security group if it was created through Firewall Manager and if it's no longer associated with any resources through another policy After the cleanup, in-scope resources are no longer protected by web ACLs in this policy. Protection of out-of-scope resources remains unchanged. Scope is determined by tags that you create and accounts that you associate with the policy. When creating the policy, if you specify that only resources in specific accounts or with specific tags are in scope of the policy, those accounts and resources are handled by the policy. All others are out of scope. If you don't specify tags or accounts, all resources are in scope.
*/
DeleteAllPolicyResources?: Boolean;
}
export type DependentServiceName = "AWSCONFIG"|"AWSWAF"|"AWSSHIELD_ADVANCED"|"AWSVPC"|string;
export type DetailedInfo = string;
export interface DisassociateAdminAccountRequest {
}
export interface EvaluationResult {
/**
* Describes an AWS account's compliance with the AWS Firewall Manager policy.
*/
ComplianceStatus?: PolicyComplianceStatusType;
/**
* The number of resources that are noncompliant with the specified policy. For AWS WAF and Shield Advanced policies, a resource is considered noncompliant if it is not associated with the policy. For security group policies, a resource is considered noncompliant if it doesn't comply with the rules of the policy and remediation is disabled or not possible.
*/
ViolatorCount?: ResourceCount;
/**
* Indicates that over 100 resources are noncompliant with the AWS Firewall Manager policy.
*/
EvaluationLimitExceeded?: Boolean;
}
export type EvaluationResults = EvaluationResult[];
export interface GetAdminAccountRequest {
}
export interface GetAdminAccountResponse {
/**
* The AWS account that is set as the AWS Firewall Manager administrator.
*/
AdminAccount?: AWSAccountId;
/**
* The status of the AWS account that you set as the AWS Firewall Manager administrator.
*/
RoleStatus?: AccountRoleStatus;
}
export interface GetComplianceDetailRequest {
/**
* The ID of the policy that you want to get the details for. PolicyId is returned by PutPolicy and by ListPolicies.
*/
PolicyId: PolicyId;
/**
* The AWS account that owns the resources that you want to get the details for.
*/
MemberAccount: AWSAccountId;
}
export interface GetComplianceDetailResponse {
/**
* Information about the resources and the policy that you specified in the GetComplianceDetail request.
*/
PolicyComplianceDetail?: PolicyComplianceDetail;
}
export interface GetNotificationChannelRequest {
}
export interface GetNotificationChannelResponse {
/**
* The SNS topic that records AWS Firewall Manager activity.
*/
SnsTopicArn?: ResourceArn;
/**
* The IAM role that is used by AWS Firewall Manager to record activity to SNS.
*/
SnsRoleName?: ResourceArn;
}
export interface GetPolicyRequest {
/**
* The ID of the AWS Firewall Manager policy that you want the details for.
*/
PolicyId: PolicyId;
}
export interface GetPolicyResponse {
/**
* Information about the specified AWS Firewall Manager policy.
*/
Policy?: Policy;
/**
* The Amazon Resource Name (ARN) of the specified policy.
*/
PolicyArn?: ResourceArn;
}
export interface GetProtectionStatusRequest {
/**
* The ID of the policy for which you want to get the attack information.
*/
PolicyId: PolicyId;
/**
* The AWS account that is in scope of the policy that you want to get the details for.
*/
MemberAccountId?: AWSAccountId;
/**
* The start of the time period to query for the attacks. This is a timestamp type. The request syntax listing indicates a number type because the default used by AWS Firewall Manager is Unix time in seconds. However, any valid timestamp format is allowed.
*/
StartTime?: TimeStamp;
/**
* The end of the time period to query for the attacks. This is a timestamp type. The request syntax listing indicates a number type because the default used by AWS Firewall Manager is Unix time in seconds. However, any valid timestamp format is allowed.
*/
EndTime?: TimeStamp;
/**
* If you specify a value for MaxResults and you have more objects than the number that you specify for MaxResults, AWS Firewall Manager returns a NextToken value in the response, which you can use to retrieve another group of objects. For the second and subsequent GetProtectionStatus requests, specify the value of NextToken from the previous response to get information about another batch of objects.
*/
NextToken?: PaginationToken;
/**
* Specifies the number of objects that you want AWS Firewall Manager to return for this request. If you have more objects than the number that you specify for MaxResults, the response includes a NextToken value that you can use to get another batch of objects.
*/
MaxResults?: PaginationMaxResults;
}
export interface GetProtectionStatusResponse {
/**
* The ID of the AWS Firewall administrator account for this policy.
*/
AdminAccountId?: AWSAccountId;
/**
* The service type that is protected by the policy. Currently, this is always SHIELD_ADVANCED.
*/
ServiceType?: SecurityServiceType;
/**
* Details about the attack, including the following: Attack type Account ID ARN of the resource attacked Start time of the attack End time of the attack (ongoing attacks will not have an end time) The details are in JSON format.
*/
Data?: ProtectionData;
/**
* If you have more objects than the number that you specified for MaxResults in the request, the response includes a NextToken value. To list more objects, submit another GetProtectionStatus request, and specify the NextToken value from the response in the NextToken value in the next request. AWS SDKs provide auto-pagination that identify NextToken in a response and make subsequent request calls automatically on your behalf. However, this feature is not supported by GetProtectionStatus. You must submit subsequent requests with NextToken using your own processes.
*/
NextToken?: PaginationToken;
}
export type IssueInfoMap = {[key: string]: DetailedInfo};
export interface ListComplianceStatusRequest {
/**
* The ID of the AWS Firewall Manager policy that you want the details for.
*/
PolicyId: PolicyId;
/**
* If you specify a value for MaxResults and you have more PolicyComplianceStatus objects than the number that you specify for MaxResults, AWS Firewall Manager returns a NextToken value in the response that allows you to list another group of PolicyComplianceStatus objects. For the second and subsequent ListComplianceStatus requests, specify the value of NextToken from the previous response to get information about another batch of PolicyComplianceStatus objects.
*/
NextToken?: PaginationToken;
/**
* Specifies the number of PolicyComplianceStatus objects that you want AWS Firewall Manager to return for this request. If you have more PolicyComplianceStatus objects than the number that you specify for MaxResults, the response includes a NextToken value that you can use to get another batch of PolicyComplianceStatus objects.
*/
MaxResults?: PaginationMaxResults;
}
export interface ListComplianceStatusResponse {
/**
* An array of PolicyComplianceStatus objects.
*/
PolicyComplianceStatusList?: PolicyComplianceStatusList;
/**
* If you have more PolicyComplianceStatus objects than the number that you specified for MaxResults in the request, the response includes a NextToken value. To list more PolicyComplianceStatus objects, submit another ListComplianceStatus request, and specify the NextToken value from the response in the NextToken value in the next request.
*/
NextToken?: PaginationToken;
}
export interface ListMemberAccountsRequest {
/**
* If you specify a value for MaxResults and you have more account IDs than the number that you specify for MaxResults, AWS Firewall Manager returns a NextToken value in the response that allows you to list another group of IDs. For the second and subsequent ListMemberAccountsRequest requests, specify the value of NextToken from the previous response to get information about another batch of member account IDs.
*/
NextToken?: PaginationToken;
/**
* Specifies the number of member account IDs that you want AWS Firewall Manager to return for this request. If you have more IDs than the number that you specify for MaxResults, the response includes a NextToken value that you can use to get another batch of member account IDs.
*/
MaxResults?: PaginationMaxResults;
}
export interface ListMemberAccountsResponse {
/**
* An array of account IDs.
*/
MemberAccounts?: MemberAccounts;
/**
* If you have more member account IDs than the number that you specified for MaxResults in the request, the response includes a NextToken value. To list more IDs, submit another ListMemberAccounts request, and specify the NextToken value from the response in the NextToken value in the next request.
*/
NextToken?: PaginationToken;
}
export interface ListPoliciesRequest {
/**
* If you specify a value for MaxResults and you have more PolicySummary objects than the number that you specify for MaxResults, AWS Firewall Manager returns a NextToken value in the response that allows you to list another group of PolicySummary objects. For the second and subsequent ListPolicies requests, specify the value of NextToken from the previous response to get information about another batch of PolicySummary objects.
*/
NextToken?: PaginationToken;
/**
* Specifies the number of PolicySummary objects that you want AWS Firewall Manager to return for this request. If you have more PolicySummary objects than the number that you specify for MaxResults, the response includes a NextToken value that you can use to get another batch of PolicySummary objects.
*/
MaxResults?: PaginationMaxResults;
}
export interface ListPoliciesResponse {
/**
* An array of PolicySummary objects.
*/
PolicyList?: PolicySummaryList;
/**
* If you have more PolicySummary objects than the number that you specified for MaxResults in the request, the response includes a NextToken value. To list more PolicySummary objects, submit another ListPolicies request, and specify the NextToken value from the response in the NextToken value in the next request.
*/
NextToken?: PaginationToken;
}
export type ManagedServiceData = string;
export type MemberAccounts = AWSAccountId[];
export type PaginationMaxResults = number;
export type PaginationToken = string;
export interface Policy {
/**
* The ID of the AWS Firewall Manager policy.
*/
PolicyId?: PolicyId;
/**
* The friendly name of the AWS Firewall Manager policy.
*/
PolicyName: ResourceName;
/**
* A unique identifier for each update to the policy. When issuing a PutPolicy request, the PolicyUpdateToken in the request must match the PolicyUpdateToken of the current policy version. To get the PolicyUpdateToken of the current policy version, use a GetPolicy request.
*/
PolicyUpdateToken?: PolicyUpdateToken;
/**
* Details about the security service that is being used to protect the resources.
*/
SecurityServicePolicyData: SecurityServicePolicyData;
/**
* The type of resource protected by or in scope of the policy. This is in the format shown in the AWS Resource Types Reference. For AWS WAF and Shield Advanced, examples include AWS::ElasticLoadBalancingV2::LoadBalancer and AWS::CloudFront::Distribution. For a security group common policy, valid values are AWS::EC2::NetworkInterface and AWS::EC2::Instance. For a security group content audit policy, valid values are AWS::EC2::SecurityGroup, AWS::EC2::NetworkInterface, and AWS::EC2::Instance. For a security group usage audit policy, the value is AWS::EC2::SecurityGroup.
*/
ResourceType: ResourceType;
/**
* An array of ResourceType.
*/
ResourceTypeList?: ResourceTypeList;
/**
* An array of ResourceTag objects.
*/
ResourceTags?: ResourceTags;
/**
* If set to True, resources with the tags that are specified in the ResourceTag array are not in scope of the policy. If set to False, and the ResourceTag array is not null, only resources with the specified tags are in scope of the policy.
*/
ExcludeResourceTags: Boolean;
/**
* Indicates if the policy should be automatically applied to new resources.
*/
RemediationEnabled: Boolean;
/**
* Specifies the AWS account IDs to include in the policy. If IncludeMap is null, all accounts in the organization in AWS Organizations are included in the policy. If IncludeMap is not null, only values listed in IncludeMap are included in the policy. The key to the map is ACCOUNT. For example, a valid IncludeMap would be {“ACCOUNT” : [“accountID1”, “accountID2”]}.
*/
IncludeMap?: CustomerPolicyScopeMap;
/**
* Specifies the AWS account IDs to exclude from the policy. The IncludeMap values are evaluated first, with all the appropriate account IDs added to the policy. Then the accounts listed in ExcludeMap are removed, resulting in the final list of accounts to add to the policy. The key to the map is ACCOUNT. For example, a valid ExcludeMap would be {“ACCOUNT” : [“accountID1”, “accountID2”]}.
*/
ExcludeMap?: CustomerPolicyScopeMap;
}
export interface PolicyComplianceDetail {
/**
* The AWS account that created the AWS Firewall Manager policy.
*/
PolicyOwner?: AWSAccountId;
/**
* The ID of the AWS Firewall Manager policy.
*/
PolicyId?: PolicyId;
/**
* The AWS account ID.
*/
MemberAccount?: AWSAccountId;
/**
* An array of resources that aren't protected by the AWS WAF or Shield Advanced policy or that aren't in compliance with the security group policy.
*/
Violators?: ComplianceViolators;
/**
* Indicates if over 100 resources are noncompliant with the AWS Firewall Manager policy.
*/
EvaluationLimitExceeded?: Boolean;
/**
* A timestamp that indicates when the returned information should be considered out of date.
*/
ExpiredAt?: TimeStamp;
/**
* Details about problems with dependent services, such as AWS WAF or AWS Config, that are causing a resource to be noncompliant. The details include the name of the dependent service and the error message received that indicates the problem with the service.
*/
IssueInfoMap?: IssueInfoMap;
}
export interface PolicyComplianceStatus {
/**
* The AWS account that created the AWS Firewall Manager policy.
*/
PolicyOwner?: AWSAccountId;
/**
* The ID of the AWS Firewall Manager policy.
*/
PolicyId?: PolicyId;
/**
* The friendly name of the AWS Firewall Manager policy.
*/
PolicyName?: ResourceName;
/**
* The member account ID.
*/
MemberAccount?: AWSAccountId;
/**
* An array of EvaluationResult objects.
*/
EvaluationResults?: EvaluationResults;
/**
* Timestamp of the last update to the EvaluationResult objects.
*/
LastUpdated?: TimeStamp;
/**
* Details about problems with dependent services, such as AWS WAF or AWS Config, that are causing a resource to be noncompliant. The details include the name of the dependent service and the error message received that indicates the problem with the service.
*/
IssueInfoMap?: IssueInfoMap;
}
export type PolicyComplianceStatusList = PolicyComplianceStatus[];
export type PolicyComplianceStatusType = "COMPLIANT"|"NON_COMPLIANT"|string;
export type PolicyId = string;
export interface PolicySummary {
/**
* The Amazon Resource Name (ARN) of the specified policy.
*/
PolicyArn?: ResourceArn;
/**
* The ID of the specified policy.
*/
PolicyId?: PolicyId;
/**
* The friendly name of the specified policy.
*/
PolicyName?: ResourceName;
/**
* The type of resource protected by or in scope of the policy. This is in the format shown in the AWS Resource Types Reference. For AWS WAF and Shield Advanced, examples include AWS::ElasticLoadBalancingV2::LoadBalancer and AWS::CloudFront::Distribution. For a security group common policy, valid values are AWS::EC2::NetworkInterface and AWS::EC2::Instance. For a security group content audit policy, valid values are AWS::EC2::SecurityGroup, AWS::EC2::NetworkInterface, and AWS::EC2::Instance. For a security group usage audit policy, the value is AWS::EC2::SecurityGroup.
*/
ResourceType?: ResourceType;
/**
* The service that the policy is using to protect the resources. This specifies the type of policy that is created, either an AWS WAF policy, a Shield Advanced policy, or a security group policy.
*/
SecurityServiceType?: SecurityServiceType;
/**
* Indicates if the policy should be automatically applied to new resources.
*/
RemediationEnabled?: Boolean;
}
export type PolicySummaryList = PolicySummary[];
export type PolicyUpdateToken = string;
export type ProtectionData = string;
export interface PutNotificationChannelRequest {
/**
* The Amazon Resource Name (ARN) of the SNS topic that collects notifications from AWS Firewall Manager.
*/
SnsTopicArn: ResourceArn;
/**
* The Amazon Resource Name (ARN) of the IAM role that allows Amazon SNS to record AWS Firewall Manager activity.
*/
SnsRoleName: ResourceArn;
}
export interface PutPolicyRequest {
/**
* The details of the AWS Firewall Manager policy to be created.
*/
Policy: Policy;
}
export interface PutPolicyResponse {
/**
* The details of the AWS Firewall Manager policy that was created.
*/
Policy?: Policy;
/**
* The Amazon Resource Name (ARN) of the policy that was created.
*/
PolicyArn?: ResourceArn;
}
export type ResourceArn = string;
export type ResourceCount = number;
export type ResourceId = string;
export type ResourceName = string;
export interface ResourceTag {
/**
* The resource tag key.
*/
Key: TagKey;
/**
* The resource tag value.
*/
Value?: TagValue;
}
export type ResourceTags = ResourceTag[];
export type ResourceType = string;
export type ResourceTypeList = ResourceType[];
export interface SecurityServicePolicyData {
/**
* The service that the policy is using to protect the resources. This specifies the type of policy that is created, either an AWS WAF policy, a Shield Advanced policy, or a security group policy. For security group policies, Firewall Manager supports one security group for each common policy and for each content audit policy. This is an adjustable limit that you can increase by contacting AWS Support.
*/
Type: SecurityServiceType;
/**
* Details about the service that are specific to the service type, in JSON format. For service type SHIELD_ADVANCED, this is an empty string. Example: WAF ManagedServiceData": "{\"type\": \"WAF\", \"ruleGroups\": [{\"id\": \"12345678-1bcd-9012-efga-0987654321ab\", \"overrideAction\" : {\"type\": \"COUNT\"}}], \"defaultAction\": {\"type\": \"BLOCK\"}} Example: SECURITY_GROUPS_COMMON "SecurityServicePolicyData":{"Type":"SECURITY_GROUPS_COMMON","ManagedServiceData":"{\"type\":\"SECURITY_GROUPS_COMMON\",\"revertManualSecurityGroupChanges\":false,\"exclusiveResourceSecurityGroupManagement\":false,\"securityGroups\":[{\"id\":\" sg-000e55995d61a06bd\"}]}"},"RemediationEnabled":false,"ResourceType":"AWS::EC2::NetworkInterface"} Example: SECURITY_GROUPS_CONTENT_AUDIT "SecurityServicePolicyData":{"Type":"SECURITY_GROUPS_CONTENT_AUDIT","ManagedServiceData":"{\"type\":\"SECURITY_GROUPS_CONTENT_AUDIT\",\"securityGroups\":[{\"id\":\" sg-000e55995d61a06bd \"}],\"securityGroupAction\":{\"type\":\"ALLOW\"}}"},"RemediationEnabled":false,"ResourceType":"AWS::EC2::NetworkInterface"} The security group action for content audit can be ALLOW or DENY. For ALLOW, all in-scope security group rules must be within the allowed range of the policy's security group rules. For DENY, all in-scope security group rules must not contain a value or a range that matches a rule value or range in the policy security group. Example: SECURITY_GROUPS_USAGE_AUDIT "SecurityServicePolicyData":{"Type":"SECURITY_GROUPS_USAGE_AUDIT","ManagedServiceData":"{\"type\":\"SECURITY_GROUPS_USAGE_AUDIT\",\"deleteUnusedSecurityGroups\":true,\"coalesceRedundantSecurityGroups\":true}"},"RemediationEnabled":false,"Resou rceType":"AWS::EC2::SecurityGroup"}
*/
ManagedServiceData?: ManagedServiceData;
}
export type SecurityServiceType = "WAF"|"SHIELD_ADVANCED"|"SECURITY_GROUPS_COMMON"|"SECURITY_GROUPS_CONTENT_AUDIT"|"SECURITY_GROUPS_USAGE_AUDIT"|string;
export type TagKey = string;
export type TagValue = string;
export type TimeStamp = Date;
export type ViolationReason = "WEB_ACL_MISSING_RULE_GROUP"|"RESOURCE_MISSING_WEB_ACL"|"RESOURCE_INCORRECT_WEB_ACL"|"RESOURCE_MISSING_SHIELD_PROTECTION"|"RESOURCE_MISSING_WEB_ACL_OR_SHIELD_PROTECTION"|"RESOURCE_MISSING_SECURITY_GROUP"|"RESOURCE_VIOLATES_AUDIT_SECURITY_GROUP"|"SECURITY_GROUP_UNUSED"|"SECURITY_GROUP_REDUNDANT"|string;
/**
* A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
*/
export type apiVersion = "2018-01-01"|"latest"|string;
export interface ClientApiVersions {
/**
* A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
*/
apiVersion?: apiVersion;
}
export type ClientConfiguration = ServiceConfigurationOptions & ClientApiVersions;
/**
* Contains interfaces for use with the FMS client.
*/
export import Types = FMS;
}
export = FMS;