UNPKG

40.6 kBTypeScriptView Raw
1import {Request} from '../lib/request';
2import {Response} from '../lib/response';
3import {AWSError} from '../lib/error';
4import {Service} from '../lib/service';
5import {ServiceConfigurationOptions} from '../lib/service';
6import {ConfigBase as Config} from '../lib/config';
7interface Blob {}
8declare class FMS extends Service {
9 /**
10 * Constructs a service object. This object has one method for each API operation.
11 */
12 constructor(options?: FMS.Types.ClientConfiguration)
13 config: Config & FMS.Types.ClientConfiguration;
14 /**
15 * 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.
16 */
17 associateAdminAccount(params: FMS.Types.AssociateAdminAccountRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
18 /**
19 * 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.
20 */
21 associateAdminAccount(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
22 /**
23 * 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.
24 */
25 deleteNotificationChannel(params: FMS.Types.DeleteNotificationChannelRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
26 /**
27 * 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.
28 */
29 deleteNotificationChannel(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
30 /**
31 * Permanently deletes an AWS Firewall Manager policy.
32 */
33 deletePolicy(params: FMS.Types.DeletePolicyRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
34 /**
35 * Permanently deletes an AWS Firewall Manager policy.
36 */
37 deletePolicy(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
38 /**
39 * 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.
40 */
41 disassociateAdminAccount(params: FMS.Types.DisassociateAdminAccountRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
42 /**
43 * 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.
44 */
45 disassociateAdminAccount(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
46 /**
47 * Returns the AWS Organizations master account that is associated with AWS Firewall Manager as the AWS Firewall Manager administrator.
48 */
49 getAdminAccount(params: FMS.Types.GetAdminAccountRequest, callback?: (err: AWSError, data: FMS.Types.GetAdminAccountResponse) => void): Request<FMS.Types.GetAdminAccountResponse, AWSError>;
50 /**
51 * Returns the AWS Organizations master account that is associated with AWS Firewall Manager as the AWS Firewall Manager administrator.
52 */
53 getAdminAccount(callback?: (err: AWSError, data: FMS.Types.GetAdminAccountResponse) => void): Request<FMS.Types.GetAdminAccountResponse, AWSError>;
54 /**
55 * 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.
56 */
57 getComplianceDetail(params: FMS.Types.GetComplianceDetailRequest, callback?: (err: AWSError, data: FMS.Types.GetComplianceDetailResponse) => void): Request<FMS.Types.GetComplianceDetailResponse, AWSError>;
58 /**
59 * 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.
60 */
61 getComplianceDetail(callback?: (err: AWSError, data: FMS.Types.GetComplianceDetailResponse) => void): Request<FMS.Types.GetComplianceDetailResponse, AWSError>;
62 /**
63 * Information about the Amazon Simple Notification Service (SNS) topic that is used to record AWS Firewall Manager SNS logs.
64 */
65 getNotificationChannel(params: FMS.Types.GetNotificationChannelRequest, callback?: (err: AWSError, data: FMS.Types.GetNotificationChannelResponse) => void): Request<FMS.Types.GetNotificationChannelResponse, AWSError>;
66 /**
67 * Information about the Amazon Simple Notification Service (SNS) topic that is used to record AWS Firewall Manager SNS logs.
68 */
69 getNotificationChannel(callback?: (err: AWSError, data: FMS.Types.GetNotificationChannelResponse) => void): Request<FMS.Types.GetNotificationChannelResponse, AWSError>;
70 /**
71 * Returns information about the specified AWS Firewall Manager policy.
72 */
73 getPolicy(params: FMS.Types.GetPolicyRequest, callback?: (err: AWSError, data: FMS.Types.GetPolicyResponse) => void): Request<FMS.Types.GetPolicyResponse, AWSError>;
74 /**
75 * Returns information about the specified AWS Firewall Manager policy.
76 */
77 getPolicy(callback?: (err: AWSError, data: FMS.Types.GetPolicyResponse) => void): Request<FMS.Types.GetPolicyResponse, AWSError>;
78 /**
79 * 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.
80 */
81 getProtectionStatus(params: FMS.Types.GetProtectionStatusRequest, callback?: (err: AWSError, data: FMS.Types.GetProtectionStatusResponse) => void): Request<FMS.Types.GetProtectionStatusResponse, AWSError>;
82 /**
83 * 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.
84 */
85 getProtectionStatus(callback?: (err: AWSError, data: FMS.Types.GetProtectionStatusResponse) => void): Request<FMS.Types.GetProtectionStatusResponse, AWSError>;
86 /**
87 * 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.
88 */
89 listComplianceStatus(params: FMS.Types.ListComplianceStatusRequest, callback?: (err: AWSError, data: FMS.Types.ListComplianceStatusResponse) => void): Request<FMS.Types.ListComplianceStatusResponse, AWSError>;
90 /**
91 * 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.
92 */
93 listComplianceStatus(callback?: (err: AWSError, data: FMS.Types.ListComplianceStatusResponse) => void): Request<FMS.Types.ListComplianceStatusResponse, AWSError>;
94 /**
95 * 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.
96 */
97 listMemberAccounts(params: FMS.Types.ListMemberAccountsRequest, callback?: (err: AWSError, data: FMS.Types.ListMemberAccountsResponse) => void): Request<FMS.Types.ListMemberAccountsResponse, AWSError>;
98 /**
99 * 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.
100 */
101 listMemberAccounts(callback?: (err: AWSError, data: FMS.Types.ListMemberAccountsResponse) => void): Request<FMS.Types.ListMemberAccountsResponse, AWSError>;
102 /**
103 * Returns an array of PolicySummary objects in the response.
104 */
105 listPolicies(params: FMS.Types.ListPoliciesRequest, callback?: (err: AWSError, data: FMS.Types.ListPoliciesResponse) => void): Request<FMS.Types.ListPoliciesResponse, AWSError>;
106 /**
107 * Returns an array of PolicySummary objects in the response.
108 */
109 listPolicies(callback?: (err: AWSError, data: FMS.Types.ListPoliciesResponse) => void): Request<FMS.Types.ListPoliciesResponse, AWSError>;
110 /**
111 * Retrieves the list of tags for the specified AWS resource.
112 */
113 listTagsForResource(params: FMS.Types.ListTagsForResourceRequest, callback?: (err: AWSError, data: FMS.Types.ListTagsForResourceResponse) => void): Request<FMS.Types.ListTagsForResourceResponse, AWSError>;
114 /**
115 * Retrieves the list of tags for the specified AWS resource.
116 */
117 listTagsForResource(callback?: (err: AWSError, data: FMS.Types.ListTagsForResourceResponse) => void): Request<FMS.Types.ListTagsForResourceResponse, AWSError>;
118 /**
119 * Designates the IAM role and Amazon Simple Notification Service (SNS) topic that AWS Firewall Manager uses to record SNS logs.
120 */
121 putNotificationChannel(params: FMS.Types.PutNotificationChannelRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
122 /**
123 * Designates the IAM role and Amazon Simple Notification Service (SNS) topic that AWS Firewall Manager uses to record SNS logs.
124 */
125 putNotificationChannel(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
126 /**
127 * 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.
128 */
129 putPolicy(params: FMS.Types.PutPolicyRequest, callback?: (err: AWSError, data: FMS.Types.PutPolicyResponse) => void): Request<FMS.Types.PutPolicyResponse, AWSError>;
130 /**
131 * 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.
132 */
133 putPolicy(callback?: (err: AWSError, data: FMS.Types.PutPolicyResponse) => void): Request<FMS.Types.PutPolicyResponse, AWSError>;
134 /**
135 * Adds one or more tags to an AWS resource.
136 */
137 tagResource(params: FMS.Types.TagResourceRequest, callback?: (err: AWSError, data: FMS.Types.TagResourceResponse) => void): Request<FMS.Types.TagResourceResponse, AWSError>;
138 /**
139 * Adds one or more tags to an AWS resource.
140 */
141 tagResource(callback?: (err: AWSError, data: FMS.Types.TagResourceResponse) => void): Request<FMS.Types.TagResourceResponse, AWSError>;
142 /**
143 * Removes one or more tags from an AWS resource.
144 */
145 untagResource(params: FMS.Types.UntagResourceRequest, callback?: (err: AWSError, data: FMS.Types.UntagResourceResponse) => void): Request<FMS.Types.UntagResourceResponse, AWSError>;
146 /**
147 * Removes one or more tags from an AWS resource.
148 */
149 untagResource(callback?: (err: AWSError, data: FMS.Types.UntagResourceResponse) => void): Request<FMS.Types.UntagResourceResponse, AWSError>;
150}
151declare namespace FMS {
152 export type AWSAccountId = string;
153 export type AccountRoleStatus = "READY"|"CREATING"|"PENDING_DELETION"|"DELETING"|"DELETED"|string;
154 export interface AssociateAdminAccountRequest {
155 /**
156 * 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.
157 */
158 AdminAccount: AWSAccountId;
159 }
160 export type Boolean = boolean;
161 export interface ComplianceViolator {
162 /**
163 * The resource ID.
164 */
165 ResourceId?: ResourceId;
166 /**
167 * The reason that the resource is not protected by the policy.
168 */
169 ViolationReason?: ViolationReason;
170 /**
171 * The resource type. This is in the format shown in the AWS Resource Types Reference. For example: AWS::ElasticLoadBalancingV2::LoadBalancer or AWS::CloudFront::Distribution.
172 */
173 ResourceType?: ResourceType;
174 }
175 export type ComplianceViolators = ComplianceViolator[];
176 export type CustomerPolicyScopeId = string;
177 export type CustomerPolicyScopeIdList = CustomerPolicyScopeId[];
178 export type CustomerPolicyScopeIdType = "ACCOUNT"|string;
179 export type CustomerPolicyScopeMap = {[key: string]: CustomerPolicyScopeIdList};
180 export interface DeleteNotificationChannelRequest {
181 }
182 export interface DeletePolicyRequest {
183 /**
184 * The ID of the policy that you want to delete. PolicyId is returned by PutPolicy and by ListPolicies.
185 */
186 PolicyId: PolicyId;
187 /**
188 * 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.
189 */
190 DeleteAllPolicyResources?: Boolean;
191 }
192 export type DependentServiceName = "AWSCONFIG"|"AWSWAF"|"AWSSHIELD_ADVANCED"|"AWSVPC"|string;
193 export type DetailedInfo = string;
194 export interface DisassociateAdminAccountRequest {
195 }
196 export interface EvaluationResult {
197 /**
198 * Describes an AWS account's compliance with the AWS Firewall Manager policy.
199 */
200 ComplianceStatus?: PolicyComplianceStatusType;
201 /**
202 * 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.
203 */
204 ViolatorCount?: ResourceCount;
205 /**
206 * Indicates that over 100 resources are noncompliant with the AWS Firewall Manager policy.
207 */
208 EvaluationLimitExceeded?: Boolean;
209 }
210 export type EvaluationResults = EvaluationResult[];
211 export interface GetAdminAccountRequest {
212 }
213 export interface GetAdminAccountResponse {
214 /**
215 * The AWS account that is set as the AWS Firewall Manager administrator.
216 */
217 AdminAccount?: AWSAccountId;
218 /**
219 * The status of the AWS account that you set as the AWS Firewall Manager administrator.
220 */
221 RoleStatus?: AccountRoleStatus;
222 }
223 export interface GetComplianceDetailRequest {
224 /**
225 * The ID of the policy that you want to get the details for. PolicyId is returned by PutPolicy and by ListPolicies.
226 */
227 PolicyId: PolicyId;
228 /**
229 * The AWS account that owns the resources that you want to get the details for.
230 */
231 MemberAccount: AWSAccountId;
232 }
233 export interface GetComplianceDetailResponse {
234 /**
235 * Information about the resources and the policy that you specified in the GetComplianceDetail request.
236 */
237 PolicyComplianceDetail?: PolicyComplianceDetail;
238 }
239 export interface GetNotificationChannelRequest {
240 }
241 export interface GetNotificationChannelResponse {
242 /**
243 * The SNS topic that records AWS Firewall Manager activity.
244 */
245 SnsTopicArn?: ResourceArn;
246 /**
247 * The IAM role that is used by AWS Firewall Manager to record activity to SNS.
248 */
249 SnsRoleName?: ResourceArn;
250 }
251 export interface GetPolicyRequest {
252 /**
253 * The ID of the AWS Firewall Manager policy that you want the details for.
254 */
255 PolicyId: PolicyId;
256 }
257 export interface GetPolicyResponse {
258 /**
259 * Information about the specified AWS Firewall Manager policy.
260 */
261 Policy?: Policy;
262 /**
263 * The Amazon Resource Name (ARN) of the specified policy.
264 */
265 PolicyArn?: ResourceArn;
266 }
267 export interface GetProtectionStatusRequest {
268 /**
269 * The ID of the policy for which you want to get the attack information.
270 */
271 PolicyId: PolicyId;
272 /**
273 * The AWS account that is in scope of the policy that you want to get the details for.
274 */
275 MemberAccountId?: AWSAccountId;
276 /**
277 * 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.
278 */
279 StartTime?: TimeStamp;
280 /**
281 * 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.
282 */
283 EndTime?: TimeStamp;
284 /**
285 * 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.
286 */
287 NextToken?: PaginationToken;
288 /**
289 * 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.
290 */
291 MaxResults?: PaginationMaxResults;
292 }
293 export interface GetProtectionStatusResponse {
294 /**
295 * The ID of the AWS Firewall administrator account for this policy.
296 */
297 AdminAccountId?: AWSAccountId;
298 /**
299 * The service type that is protected by the policy. Currently, this is always SHIELD_ADVANCED.
300 */
301 ServiceType?: SecurityServiceType;
302 /**
303 * 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.
304 */
305 Data?: ProtectionData;
306 /**
307 * 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.
308 */
309 NextToken?: PaginationToken;
310 }
311 export type IssueInfoMap = {[key: string]: DetailedInfo};
312 export interface ListComplianceStatusRequest {
313 /**
314 * The ID of the AWS Firewall Manager policy that you want the details for.
315 */
316 PolicyId: PolicyId;
317 /**
318 * 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.
319 */
320 NextToken?: PaginationToken;
321 /**
322 * 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.
323 */
324 MaxResults?: PaginationMaxResults;
325 }
326 export interface ListComplianceStatusResponse {
327 /**
328 * An array of PolicyComplianceStatus objects.
329 */
330 PolicyComplianceStatusList?: PolicyComplianceStatusList;
331 /**
332 * 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.
333 */
334 NextToken?: PaginationToken;
335 }
336 export interface ListMemberAccountsRequest {
337 /**
338 * 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.
339 */
340 NextToken?: PaginationToken;
341 /**
342 * 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.
343 */
344 MaxResults?: PaginationMaxResults;
345 }
346 export interface ListMemberAccountsResponse {
347 /**
348 * An array of account IDs.
349 */
350 MemberAccounts?: MemberAccounts;
351 /**
352 * 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.
353 */
354 NextToken?: PaginationToken;
355 }
356 export interface ListPoliciesRequest {
357 /**
358 * 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.
359 */
360 NextToken?: PaginationToken;
361 /**
362 * 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.
363 */
364 MaxResults?: PaginationMaxResults;
365 }
366 export interface ListPoliciesResponse {
367 /**
368 * An array of PolicySummary objects.
369 */
370 PolicyList?: PolicySummaryList;
371 /**
372 * 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.
373 */
374 NextToken?: PaginationToken;
375 }
376 export interface ListTagsForResourceRequest {
377 /**
378 * The Amazon Resource Name (ARN) of the resource to return tags for. The Firewall Manager policy is the only AWS resource that supports tagging, so this ARN is a policy ARN..
379 */
380 ResourceArn: ResourceArn;
381 }
382 export interface ListTagsForResourceResponse {
383 /**
384 * The tags associated with the resource.
385 */
386 TagList?: TagList;
387 }
388 export type ManagedServiceData = string;
389 export type MemberAccounts = AWSAccountId[];
390 export type PaginationMaxResults = number;
391 export type PaginationToken = string;
392 export interface Policy {
393 /**
394 * The ID of the AWS Firewall Manager policy.
395 */
396 PolicyId?: PolicyId;
397 /**
398 * The friendly name of the AWS Firewall Manager policy.
399 */
400 PolicyName: ResourceName;
401 /**
402 * 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.
403 */
404 PolicyUpdateToken?: PolicyUpdateToken;
405 /**
406 * Details about the security service that is being used to protect the resources.
407 */
408 SecurityServicePolicyData: SecurityServicePolicyData;
409 /**
410 * 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.
411 */
412 ResourceType: ResourceType;
413 /**
414 * An array of ResourceType.
415 */
416 ResourceTypeList?: ResourceTypeList;
417 /**
418 * An array of ResourceTag objects.
419 */
420 ResourceTags?: ResourceTags;
421 /**
422 * 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.
423 */
424 ExcludeResourceTags: Boolean;
425 /**
426 * Indicates if the policy should be automatically applied to new resources.
427 */
428 RemediationEnabled: Boolean;
429 /**
430 * 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”]}.
431 */
432 IncludeMap?: CustomerPolicyScopeMap;
433 /**
434 * 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”]}.
435 */
436 ExcludeMap?: CustomerPolicyScopeMap;
437 }
438 export interface PolicyComplianceDetail {
439 /**
440 * The AWS account that created the AWS Firewall Manager policy.
441 */
442 PolicyOwner?: AWSAccountId;
443 /**
444 * The ID of the AWS Firewall Manager policy.
445 */
446 PolicyId?: PolicyId;
447 /**
448 * The AWS account ID.
449 */
450 MemberAccount?: AWSAccountId;
451 /**
452 * 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.
453 */
454 Violators?: ComplianceViolators;
455 /**
456 * Indicates if over 100 resources are noncompliant with the AWS Firewall Manager policy.
457 */
458 EvaluationLimitExceeded?: Boolean;
459 /**
460 * A timestamp that indicates when the returned information should be considered out of date.
461 */
462 ExpiredAt?: TimeStamp;
463 /**
464 * 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.
465 */
466 IssueInfoMap?: IssueInfoMap;
467 }
468 export interface PolicyComplianceStatus {
469 /**
470 * The AWS account that created the AWS Firewall Manager policy.
471 */
472 PolicyOwner?: AWSAccountId;
473 /**
474 * The ID of the AWS Firewall Manager policy.
475 */
476 PolicyId?: PolicyId;
477 /**
478 * The friendly name of the AWS Firewall Manager policy.
479 */
480 PolicyName?: ResourceName;
481 /**
482 * The member account ID.
483 */
484 MemberAccount?: AWSAccountId;
485 /**
486 * An array of EvaluationResult objects.
487 */
488 EvaluationResults?: EvaluationResults;
489 /**
490 * Timestamp of the last update to the EvaluationResult objects.
491 */
492 LastUpdated?: TimeStamp;
493 /**
494 * 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.
495 */
496 IssueInfoMap?: IssueInfoMap;
497 }
498 export type PolicyComplianceStatusList = PolicyComplianceStatus[];
499 export type PolicyComplianceStatusType = "COMPLIANT"|"NON_COMPLIANT"|string;
500 export type PolicyId = string;
501 export interface PolicySummary {
502 /**
503 * The Amazon Resource Name (ARN) of the specified policy.
504 */
505 PolicyArn?: ResourceArn;
506 /**
507 * The ID of the specified policy.
508 */
509 PolicyId?: PolicyId;
510 /**
511 * The friendly name of the specified policy.
512 */
513 PolicyName?: ResourceName;
514 /**
515 * 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.
516 */
517 ResourceType?: ResourceType;
518 /**
519 * 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.
520 */
521 SecurityServiceType?: SecurityServiceType;
522 /**
523 * Indicates if the policy should be automatically applied to new resources.
524 */
525 RemediationEnabled?: Boolean;
526 }
527 export type PolicySummaryList = PolicySummary[];
528 export type PolicyUpdateToken = string;
529 export type ProtectionData = string;
530 export interface PutNotificationChannelRequest {
531 /**
532 * The Amazon Resource Name (ARN) of the SNS topic that collects notifications from AWS Firewall Manager.
533 */
534 SnsTopicArn: ResourceArn;
535 /**
536 * The Amazon Resource Name (ARN) of the IAM role that allows Amazon SNS to record AWS Firewall Manager activity.
537 */
538 SnsRoleName: ResourceArn;
539 }
540 export interface PutPolicyRequest {
541 /**
542 * The details of the AWS Firewall Manager policy to be created.
543 */
544 Policy: Policy;
545 /**
546 * The tags to add to the AWS resource.
547 */
548 TagList?: TagList;
549 }
550 export interface PutPolicyResponse {
551 /**
552 * The details of the AWS Firewall Manager policy that was created.
553 */
554 Policy?: Policy;
555 /**
556 * The Amazon Resource Name (ARN) of the policy that was created.
557 */
558 PolicyArn?: ResourceArn;
559 }
560 export type ResourceArn = string;
561 export type ResourceCount = number;
562 export type ResourceId = string;
563 export type ResourceName = string;
564 export interface ResourceTag {
565 /**
566 * The resource tag key.
567 */
568 Key: ResourceTagKey;
569 /**
570 * The resource tag value.
571 */
572 Value?: ResourceTagValue;
573 }
574 export type ResourceTagKey = string;
575 export type ResourceTagValue = string;
576 export type ResourceTags = ResourceTag[];
577 export type ResourceType = string;
578 export type ResourceTypeList = ResourceType[];
579 export interface SecurityServicePolicyData {
580 /**
581 * 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.
582 */
583 Type: SecurityServiceType;
584 /**
585 * 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: WAFV2 "SecurityServicePolicyData": "{ \"type\": \"WAFV2\", \"postProcessRuleGroups\": [ { \"managedRuleGroupIdentifier\": { \"managedRuleGroupName\": \"AWSManagedRulesAdminProtectionRuleSet\", \"vendor\": \"AWS\" } \"ruleGroupARN\": \"rule group arn", \"overrideAction\": { \"type\": \"COUNT|\" }, \"excludedRules\": [ { \"name\" : \"EntityName\" } ], \"type\": \"ManagedRuleGroup|RuleGroup\" } ], \"preProcessRuleGroups\": [ { \"managedRuleGroupIdentifier\": { \"managedRuleGroupName\": \"AWSManagedRulesAdminProtectionRuleSet\", \"vendor\": \"AWS\" } \"ruleGroupARN\": \"rule group arn\", \"overrideAction\": { \"type\": \"COUNT\" }, \"excludedRules\": [ { \"name\" : \"EntityName\" } ], \"type\": \"ManagedRuleGroup|RuleGroup\" } ], \"defaultAction\": { \"type\": \"BLOCK\" }}" 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"}
586 */
587 ManagedServiceData?: ManagedServiceData;
588 }
589 export type SecurityServiceType = "WAF"|"WAFV2"|"SHIELD_ADVANCED"|"SECURITY_GROUPS_COMMON"|"SECURITY_GROUPS_CONTENT_AUDIT"|"SECURITY_GROUPS_USAGE_AUDIT"|string;
590 export interface Tag {
591 /**
592 * Part of the key:value pair that defines a tag. You can use a tag key to describe a category of information, such as "customer." Tag keys are case-sensitive.
593 */
594 Key: TagKey;
595 /**
596 * Part of the key:value pair that defines a tag. You can use a tag value to describe a specific value within a category, such as "companyA" or "companyB." Tag values are case-sensitive.
597 */
598 Value: TagValue;
599 }
600 export type TagKey = string;
601 export type TagKeyList = TagKey[];
602 export type TagList = Tag[];
603 export interface TagResourceRequest {
604 /**
605 * The Amazon Resource Name (ARN) of the resource. The Firewall Manager policy is the only AWS resource that supports tagging, so this ARN is a policy ARN.
606 */
607 ResourceArn: ResourceArn;
608 /**
609 * The tags to add to the resource.
610 */
611 TagList: TagList;
612 }
613 export interface TagResourceResponse {
614 }
615 export type TagValue = string;
616 export type TimeStamp = Date;
617 export interface UntagResourceRequest {
618 /**
619 * The Amazon Resource Name (ARN) of the resource. The Firewall Manager policy is the only AWS resource that supports tagging, so this ARN is a policy ARN.
620 */
621 ResourceArn: ResourceArn;
622 /**
623 * The keys of the tags to remove from the resource.
624 */
625 TagKeys: TagKeyList;
626 }
627 export interface UntagResourceResponse {
628 }
629 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;
630 /**
631 * 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.
632 */
633 export type apiVersion = "2018-01-01"|"latest"|string;
634 export interface ClientApiVersions {
635 /**
636 * 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.
637 */
638 apiVersion?: apiVersion;
639 }
640 export type ClientConfiguration = ServiceConfigurationOptions & ClientApiVersions;
641 /**
642 * Contains interfaces for use with the FMS client.
643 */
644 export import Types = FMS;
645}
646export = FMS;