All Downloads are FREE. Search and download functionalities are using the official Maven repository.

software.amazon.awssdk.services.fms.FmsClient Maven / Gradle / Ivy

/*
 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
 * 
 * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
 * the License. A copy of the License is located at
 * 
 * http://aws.amazon.com/apache2.0
 * 
 * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
 * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
 * and limitations under the License.
 */

package software.amazon.awssdk.services.fms;

import java.util.function.Consumer;
import software.amazon.awssdk.annotations.Generated;
import software.amazon.awssdk.annotations.SdkPublicApi;
import software.amazon.awssdk.annotations.ThreadSafe;
import software.amazon.awssdk.awscore.exception.AwsServiceException;
import software.amazon.awssdk.core.SdkClient;
import software.amazon.awssdk.core.exception.SdkClientException;
import software.amazon.awssdk.regions.ServiceMetadata;
import software.amazon.awssdk.services.fms.model.AssociateAdminAccountRequest;
import software.amazon.awssdk.services.fms.model.AssociateAdminAccountResponse;
import software.amazon.awssdk.services.fms.model.AssociateThirdPartyFirewallRequest;
import software.amazon.awssdk.services.fms.model.AssociateThirdPartyFirewallResponse;
import software.amazon.awssdk.services.fms.model.DeleteAppsListRequest;
import software.amazon.awssdk.services.fms.model.DeleteAppsListResponse;
import software.amazon.awssdk.services.fms.model.DeleteNotificationChannelRequest;
import software.amazon.awssdk.services.fms.model.DeleteNotificationChannelResponse;
import software.amazon.awssdk.services.fms.model.DeletePolicyRequest;
import software.amazon.awssdk.services.fms.model.DeletePolicyResponse;
import software.amazon.awssdk.services.fms.model.DeleteProtocolsListRequest;
import software.amazon.awssdk.services.fms.model.DeleteProtocolsListResponse;
import software.amazon.awssdk.services.fms.model.DisassociateAdminAccountRequest;
import software.amazon.awssdk.services.fms.model.DisassociateAdminAccountResponse;
import software.amazon.awssdk.services.fms.model.DisassociateThirdPartyFirewallRequest;
import software.amazon.awssdk.services.fms.model.DisassociateThirdPartyFirewallResponse;
import software.amazon.awssdk.services.fms.model.FmsException;
import software.amazon.awssdk.services.fms.model.GetAdminAccountRequest;
import software.amazon.awssdk.services.fms.model.GetAdminAccountResponse;
import software.amazon.awssdk.services.fms.model.GetAppsListRequest;
import software.amazon.awssdk.services.fms.model.GetAppsListResponse;
import software.amazon.awssdk.services.fms.model.GetComplianceDetailRequest;
import software.amazon.awssdk.services.fms.model.GetComplianceDetailResponse;
import software.amazon.awssdk.services.fms.model.GetNotificationChannelRequest;
import software.amazon.awssdk.services.fms.model.GetNotificationChannelResponse;
import software.amazon.awssdk.services.fms.model.GetPolicyRequest;
import software.amazon.awssdk.services.fms.model.GetPolicyResponse;
import software.amazon.awssdk.services.fms.model.GetProtectionStatusRequest;
import software.amazon.awssdk.services.fms.model.GetProtectionStatusResponse;
import software.amazon.awssdk.services.fms.model.GetProtocolsListRequest;
import software.amazon.awssdk.services.fms.model.GetProtocolsListResponse;
import software.amazon.awssdk.services.fms.model.GetThirdPartyFirewallAssociationStatusRequest;
import software.amazon.awssdk.services.fms.model.GetThirdPartyFirewallAssociationStatusResponse;
import software.amazon.awssdk.services.fms.model.GetViolationDetailsRequest;
import software.amazon.awssdk.services.fms.model.GetViolationDetailsResponse;
import software.amazon.awssdk.services.fms.model.InternalErrorException;
import software.amazon.awssdk.services.fms.model.InvalidInputException;
import software.amazon.awssdk.services.fms.model.InvalidOperationException;
import software.amazon.awssdk.services.fms.model.InvalidTypeException;
import software.amazon.awssdk.services.fms.model.LimitExceededException;
import software.amazon.awssdk.services.fms.model.ListAppsListsRequest;
import software.amazon.awssdk.services.fms.model.ListAppsListsResponse;
import software.amazon.awssdk.services.fms.model.ListComplianceStatusRequest;
import software.amazon.awssdk.services.fms.model.ListComplianceStatusResponse;
import software.amazon.awssdk.services.fms.model.ListMemberAccountsRequest;
import software.amazon.awssdk.services.fms.model.ListMemberAccountsResponse;
import software.amazon.awssdk.services.fms.model.ListPoliciesRequest;
import software.amazon.awssdk.services.fms.model.ListPoliciesResponse;
import software.amazon.awssdk.services.fms.model.ListProtocolsListsRequest;
import software.amazon.awssdk.services.fms.model.ListProtocolsListsResponse;
import software.amazon.awssdk.services.fms.model.ListTagsForResourceRequest;
import software.amazon.awssdk.services.fms.model.ListTagsForResourceResponse;
import software.amazon.awssdk.services.fms.model.ListThirdPartyFirewallFirewallPoliciesRequest;
import software.amazon.awssdk.services.fms.model.ListThirdPartyFirewallFirewallPoliciesResponse;
import software.amazon.awssdk.services.fms.model.PutAppsListRequest;
import software.amazon.awssdk.services.fms.model.PutAppsListResponse;
import software.amazon.awssdk.services.fms.model.PutNotificationChannelRequest;
import software.amazon.awssdk.services.fms.model.PutNotificationChannelResponse;
import software.amazon.awssdk.services.fms.model.PutPolicyRequest;
import software.amazon.awssdk.services.fms.model.PutPolicyResponse;
import software.amazon.awssdk.services.fms.model.PutProtocolsListRequest;
import software.amazon.awssdk.services.fms.model.PutProtocolsListResponse;
import software.amazon.awssdk.services.fms.model.ResourceNotFoundException;
import software.amazon.awssdk.services.fms.model.TagResourceRequest;
import software.amazon.awssdk.services.fms.model.TagResourceResponse;
import software.amazon.awssdk.services.fms.model.UntagResourceRequest;
import software.amazon.awssdk.services.fms.model.UntagResourceResponse;
import software.amazon.awssdk.services.fms.paginators.ListAppsListsIterable;
import software.amazon.awssdk.services.fms.paginators.ListComplianceStatusIterable;
import software.amazon.awssdk.services.fms.paginators.ListMemberAccountsIterable;
import software.amazon.awssdk.services.fms.paginators.ListPoliciesIterable;
import software.amazon.awssdk.services.fms.paginators.ListProtocolsListsIterable;
import software.amazon.awssdk.services.fms.paginators.ListThirdPartyFirewallFirewallPoliciesIterable;

/**
 * Service client for accessing FMS. This can be created using the static {@link #builder()} method.
 *
 * 

* This is the Firewall Manager API Reference. This guide is for developers who need detailed information about * the Firewall Manager API actions, data types, and errors. For detailed information about Firewall Manager features, * see the Firewall Manager Developer * Guide. *

*

* Some API actions require explicit resource permissions. For information, see the developer guide topic Firewall Manager required * permissions for API actions. *

*/ @Generated("software.amazon.awssdk:codegen") @SdkPublicApi @ThreadSafe public interface FmsClient extends SdkClient { String SERVICE_NAME = "fms"; /** * Value for looking up the service's metadata from the * {@link software.amazon.awssdk.regions.ServiceMetadataProvider}. */ String SERVICE_METADATA_ID = "fms"; /** * Create a {@link FmsClient} with the region loaded from the * {@link software.amazon.awssdk.regions.providers.DefaultAwsRegionProviderChain} and credentials loaded from the * {@link software.amazon.awssdk.auth.credentials.DefaultCredentialsProvider}. */ static FmsClient create() { return builder().build(); } /** * Create a builder that can be used to configure and create a {@link FmsClient}. */ static FmsClientBuilder builder() { return new DefaultFmsClientBuilder(); } /** *

* Sets the Firewall Manager administrator account. The account must be a member of the organization in * Organizations whose resources you want to protect. Firewall Manager sets the permissions that allow the account * to administer your Firewall Manager policies. *

*

* The account that you associate with Firewall Manager is called the Firewall Manager administrator account. *

* * @param associateAdminAccountRequest * @return Result of the AssociateAdminAccount operation returned by the service. * @throws InvalidOperationException * The operation failed because there was nothing to do or the operation wasn't possible. For example, you * might have submitted an AssociateAdminAccount request for an account ID that was already set * as the Firewall Manager administrator. Or you might have tried to access a Region that's disabled by * default, and that you need to enable for the Firewall Manager administrator account and for Organizations * before you can access it. * @throws InvalidInputException * The parameters of the request were invalid. * @throws ResourceNotFoundException * The specified resource was not found. * @throws InternalErrorException * The operation failed because of a system problem, even though the request was valid. Retry your request. * @throws LimitExceededException * The operation exceeds a resource limit, for example, the maximum number of policy objects * that you can create for an Amazon Web Services account. For more information, see Firewall Manager Limits * in the WAF Developer Guide. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws FmsException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample FmsClient.AssociateAdminAccount * @see AWS API * Documentation */ default AssociateAdminAccountResponse associateAdminAccount(AssociateAdminAccountRequest associateAdminAccountRequest) throws InvalidOperationException, InvalidInputException, ResourceNotFoundException, InternalErrorException, LimitExceededException, AwsServiceException, SdkClientException, FmsException { throw new UnsupportedOperationException(); } /** *

* Sets the Firewall Manager administrator account. The account must be a member of the organization in * Organizations whose resources you want to protect. Firewall Manager sets the permissions that allow the account * to administer your Firewall Manager policies. *

*

* The account that you associate with Firewall Manager is called the Firewall Manager administrator account. *

*
*

* This is a convenience which creates an instance of the {@link AssociateAdminAccountRequest.Builder} avoiding the * need to create one manually via {@link AssociateAdminAccountRequest#builder()} *

* * @param associateAdminAccountRequest * A {@link Consumer} that will call methods on {@link AssociateAdminAccountRequest.Builder} to create a * request. * @return Result of the AssociateAdminAccount operation returned by the service. * @throws InvalidOperationException * The operation failed because there was nothing to do or the operation wasn't possible. For example, you * might have submitted an AssociateAdminAccount request for an account ID that was already set * as the Firewall Manager administrator. Or you might have tried to access a Region that's disabled by * default, and that you need to enable for the Firewall Manager administrator account and for Organizations * before you can access it. * @throws InvalidInputException * The parameters of the request were invalid. * @throws ResourceNotFoundException * The specified resource was not found. * @throws InternalErrorException * The operation failed because of a system problem, even though the request was valid. Retry your request. * @throws LimitExceededException * The operation exceeds a resource limit, for example, the maximum number of policy objects * that you can create for an Amazon Web Services account. For more information, see Firewall Manager Limits * in the WAF Developer Guide. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws FmsException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample FmsClient.AssociateAdminAccount * @see AWS API * Documentation */ default AssociateAdminAccountResponse associateAdminAccount( Consumer associateAdminAccountRequest) throws InvalidOperationException, InvalidInputException, ResourceNotFoundException, InternalErrorException, LimitExceededException, AwsServiceException, SdkClientException, FmsException { return associateAdminAccount(AssociateAdminAccountRequest.builder().applyMutation(associateAdminAccountRequest).build()); } /** *

* Sets the Firewall Manager policy administrator as a tenant administrator of a third-party firewall service. A * tenant is an instance of the third-party firewall service that's associated with your Amazon Web Services * customer account. *

* * @param associateThirdPartyFirewallRequest * @return Result of the AssociateThirdPartyFirewall operation returned by the service. * @throws InvalidOperationException * The operation failed because there was nothing to do or the operation wasn't possible. For example, you * might have submitted an AssociateAdminAccount request for an account ID that was already set * as the Firewall Manager administrator. Or you might have tried to access a Region that's disabled by * default, and that you need to enable for the Firewall Manager administrator account and for Organizations * before you can access it. * @throws InvalidInputException * The parameters of the request were invalid. * @throws ResourceNotFoundException * The specified resource was not found. * @throws InternalErrorException * The operation failed because of a system problem, even though the request was valid. Retry your request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws FmsException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample FmsClient.AssociateThirdPartyFirewall * @see AWS API Documentation */ default AssociateThirdPartyFirewallResponse associateThirdPartyFirewall( AssociateThirdPartyFirewallRequest associateThirdPartyFirewallRequest) throws InvalidOperationException, InvalidInputException, ResourceNotFoundException, InternalErrorException, AwsServiceException, SdkClientException, FmsException { throw new UnsupportedOperationException(); } /** *

* Sets the Firewall Manager policy administrator as a tenant administrator of a third-party firewall service. A * tenant is an instance of the third-party firewall service that's associated with your Amazon Web Services * customer account. *

*
*

* This is a convenience which creates an instance of the {@link AssociateThirdPartyFirewallRequest.Builder} * avoiding the need to create one manually via {@link AssociateThirdPartyFirewallRequest#builder()} *

* * @param associateThirdPartyFirewallRequest * A {@link Consumer} that will call methods on {@link AssociateThirdPartyFirewallRequest.Builder} to create * a request. * @return Result of the AssociateThirdPartyFirewall operation returned by the service. * @throws InvalidOperationException * The operation failed because there was nothing to do or the operation wasn't possible. For example, you * might have submitted an AssociateAdminAccount request for an account ID that was already set * as the Firewall Manager administrator. Or you might have tried to access a Region that's disabled by * default, and that you need to enable for the Firewall Manager administrator account and for Organizations * before you can access it. * @throws InvalidInputException * The parameters of the request were invalid. * @throws ResourceNotFoundException * The specified resource was not found. * @throws InternalErrorException * The operation failed because of a system problem, even though the request was valid. Retry your request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws FmsException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample FmsClient.AssociateThirdPartyFirewall * @see AWS API Documentation */ default AssociateThirdPartyFirewallResponse associateThirdPartyFirewall( Consumer associateThirdPartyFirewallRequest) throws InvalidOperationException, InvalidInputException, ResourceNotFoundException, InternalErrorException, AwsServiceException, SdkClientException, FmsException { return associateThirdPartyFirewall(AssociateThirdPartyFirewallRequest.builder() .applyMutation(associateThirdPartyFirewallRequest).build()); } /** *

* Permanently deletes an Firewall Manager applications list. *

* * @param deleteAppsListRequest * @return Result of the DeleteAppsList operation returned by the service. * @throws ResourceNotFoundException * The specified resource was not found. * @throws InvalidOperationException * The operation failed because there was nothing to do or the operation wasn't possible. For example, you * might have submitted an AssociateAdminAccount request for an account ID that was already set * as the Firewall Manager administrator. Or you might have tried to access a Region that's disabled by * default, and that you need to enable for the Firewall Manager administrator account and for Organizations * before you can access it. * @throws InternalErrorException * The operation failed because of a system problem, even though the request was valid. Retry your request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws FmsException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample FmsClient.DeleteAppsList * @see AWS API * Documentation */ default DeleteAppsListResponse deleteAppsList(DeleteAppsListRequest deleteAppsListRequest) throws ResourceNotFoundException, InvalidOperationException, InternalErrorException, AwsServiceException, SdkClientException, FmsException { throw new UnsupportedOperationException(); } /** *

* Permanently deletes an Firewall Manager applications list. *

*
*

* This is a convenience which creates an instance of the {@link DeleteAppsListRequest.Builder} avoiding the need to * create one manually via {@link DeleteAppsListRequest#builder()} *

* * @param deleteAppsListRequest * A {@link Consumer} that will call methods on {@link DeleteAppsListRequest.Builder} to create a request. * @return Result of the DeleteAppsList operation returned by the service. * @throws ResourceNotFoundException * The specified resource was not found. * @throws InvalidOperationException * The operation failed because there was nothing to do or the operation wasn't possible. For example, you * might have submitted an AssociateAdminAccount request for an account ID that was already set * as the Firewall Manager administrator. Or you might have tried to access a Region that's disabled by * default, and that you need to enable for the Firewall Manager administrator account and for Organizations * before you can access it. * @throws InternalErrorException * The operation failed because of a system problem, even though the request was valid. Retry your request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws FmsException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample FmsClient.DeleteAppsList * @see AWS API * Documentation */ default DeleteAppsListResponse deleteAppsList(Consumer deleteAppsListRequest) throws ResourceNotFoundException, InvalidOperationException, InternalErrorException, AwsServiceException, SdkClientException, FmsException { return deleteAppsList(DeleteAppsListRequest.builder().applyMutation(deleteAppsListRequest).build()); } /** *

* Deletes an Firewall Manager association with the IAM role and the Amazon Simple Notification Service (SNS) topic * that is used to record Firewall Manager SNS logs. *

* * @param deleteNotificationChannelRequest * @return Result of the DeleteNotificationChannel operation returned by the service. * @throws ResourceNotFoundException * The specified resource was not found. * @throws InvalidOperationException * The operation failed because there was nothing to do or the operation wasn't possible. For example, you * might have submitted an AssociateAdminAccount request for an account ID that was already set * as the Firewall Manager administrator. Or you might have tried to access a Region that's disabled by * default, and that you need to enable for the Firewall Manager administrator account and for Organizations * before you can access it. * @throws InternalErrorException * The operation failed because of a system problem, even though the request was valid. Retry your request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws FmsException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample FmsClient.DeleteNotificationChannel * @see AWS * API Documentation */ default DeleteNotificationChannelResponse deleteNotificationChannel( DeleteNotificationChannelRequest deleteNotificationChannelRequest) throws ResourceNotFoundException, InvalidOperationException, InternalErrorException, AwsServiceException, SdkClientException, FmsException { throw new UnsupportedOperationException(); } /** *

* Deletes an Firewall Manager association with the IAM role and the Amazon Simple Notification Service (SNS) topic * that is used to record Firewall Manager SNS logs. *

*
*

* This is a convenience which creates an instance of the {@link DeleteNotificationChannelRequest.Builder} avoiding * the need to create one manually via {@link DeleteNotificationChannelRequest#builder()} *

* * @param deleteNotificationChannelRequest * A {@link Consumer} that will call methods on {@link DeleteNotificationChannelRequest.Builder} to create a * request. * @return Result of the DeleteNotificationChannel operation returned by the service. * @throws ResourceNotFoundException * The specified resource was not found. * @throws InvalidOperationException * The operation failed because there was nothing to do or the operation wasn't possible. For example, you * might have submitted an AssociateAdminAccount request for an account ID that was already set * as the Firewall Manager administrator. Or you might have tried to access a Region that's disabled by * default, and that you need to enable for the Firewall Manager administrator account and for Organizations * before you can access it. * @throws InternalErrorException * The operation failed because of a system problem, even though the request was valid. Retry your request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws FmsException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample FmsClient.DeleteNotificationChannel * @see AWS * API Documentation */ default DeleteNotificationChannelResponse deleteNotificationChannel( Consumer deleteNotificationChannelRequest) throws ResourceNotFoundException, InvalidOperationException, InternalErrorException, AwsServiceException, SdkClientException, FmsException { return deleteNotificationChannel(DeleteNotificationChannelRequest.builder() .applyMutation(deleteNotificationChannelRequest).build()); } /** *

* Permanently deletes an Firewall Manager policy. *

* * @param deletePolicyRequest * @return Result of the DeletePolicy operation returned by the service. * @throws ResourceNotFoundException * The specified resource was not found. * @throws InvalidOperationException * The operation failed because there was nothing to do or the operation wasn't possible. For example, you * might have submitted an AssociateAdminAccount request for an account ID that was already set * as the Firewall Manager administrator. Or you might have tried to access a Region that's disabled by * default, and that you need to enable for the Firewall Manager administrator account and for Organizations * before you can access it. * @throws InternalErrorException * The operation failed because of a system problem, even though the request was valid. Retry your request. * @throws InvalidInputException * The parameters of the request were invalid. * @throws LimitExceededException * The operation exceeds a resource limit, for example, the maximum number of policy objects * that you can create for an Amazon Web Services account. For more information, see Firewall Manager Limits * in the WAF Developer Guide. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws FmsException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample FmsClient.DeletePolicy * @see AWS API * Documentation */ default DeletePolicyResponse deletePolicy(DeletePolicyRequest deletePolicyRequest) throws ResourceNotFoundException, InvalidOperationException, InternalErrorException, InvalidInputException, LimitExceededException, AwsServiceException, SdkClientException, FmsException { throw new UnsupportedOperationException(); } /** *

* Permanently deletes an Firewall Manager policy. *

*
*

* This is a convenience which creates an instance of the {@link DeletePolicyRequest.Builder} avoiding the need to * create one manually via {@link DeletePolicyRequest#builder()} *

* * @param deletePolicyRequest * A {@link Consumer} that will call methods on {@link DeletePolicyRequest.Builder} to create a request. * @return Result of the DeletePolicy operation returned by the service. * @throws ResourceNotFoundException * The specified resource was not found. * @throws InvalidOperationException * The operation failed because there was nothing to do or the operation wasn't possible. For example, you * might have submitted an AssociateAdminAccount request for an account ID that was already set * as the Firewall Manager administrator. Or you might have tried to access a Region that's disabled by * default, and that you need to enable for the Firewall Manager administrator account and for Organizations * before you can access it. * @throws InternalErrorException * The operation failed because of a system problem, even though the request was valid. Retry your request. * @throws InvalidInputException * The parameters of the request were invalid. * @throws LimitExceededException * The operation exceeds a resource limit, for example, the maximum number of policy objects * that you can create for an Amazon Web Services account. For more information, see Firewall Manager Limits * in the WAF Developer Guide. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws FmsException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample FmsClient.DeletePolicy * @see AWS API * Documentation */ default DeletePolicyResponse deletePolicy(Consumer deletePolicyRequest) throws ResourceNotFoundException, InvalidOperationException, InternalErrorException, InvalidInputException, LimitExceededException, AwsServiceException, SdkClientException, FmsException { return deletePolicy(DeletePolicyRequest.builder().applyMutation(deletePolicyRequest).build()); } /** *

* Permanently deletes an Firewall Manager protocols list. *

* * @param deleteProtocolsListRequest * @return Result of the DeleteProtocolsList operation returned by the service. * @throws ResourceNotFoundException * The specified resource was not found. * @throws InvalidOperationException * The operation failed because there was nothing to do or the operation wasn't possible. For example, you * might have submitted an AssociateAdminAccount request for an account ID that was already set * as the Firewall Manager administrator. Or you might have tried to access a Region that's disabled by * default, and that you need to enable for the Firewall Manager administrator account and for Organizations * before you can access it. * @throws InternalErrorException * The operation failed because of a system problem, even though the request was valid. Retry your request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws FmsException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample FmsClient.DeleteProtocolsList * @see AWS API * Documentation */ default DeleteProtocolsListResponse deleteProtocolsList(DeleteProtocolsListRequest deleteProtocolsListRequest) throws ResourceNotFoundException, InvalidOperationException, InternalErrorException, AwsServiceException, SdkClientException, FmsException { throw new UnsupportedOperationException(); } /** *

* Permanently deletes an Firewall Manager protocols list. *

*
*

* This is a convenience which creates an instance of the {@link DeleteProtocolsListRequest.Builder} avoiding the * need to create one manually via {@link DeleteProtocolsListRequest#builder()} *

* * @param deleteProtocolsListRequest * A {@link Consumer} that will call methods on {@link DeleteProtocolsListRequest.Builder} to create a * request. * @return Result of the DeleteProtocolsList operation returned by the service. * @throws ResourceNotFoundException * The specified resource was not found. * @throws InvalidOperationException * The operation failed because there was nothing to do or the operation wasn't possible. For example, you * might have submitted an AssociateAdminAccount request for an account ID that was already set * as the Firewall Manager administrator. Or you might have tried to access a Region that's disabled by * default, and that you need to enable for the Firewall Manager administrator account and for Organizations * before you can access it. * @throws InternalErrorException * The operation failed because of a system problem, even though the request was valid. Retry your request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws FmsException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample FmsClient.DeleteProtocolsList * @see AWS API * Documentation */ default DeleteProtocolsListResponse deleteProtocolsList( Consumer deleteProtocolsListRequest) throws ResourceNotFoundException, InvalidOperationException, InternalErrorException, AwsServiceException, SdkClientException, FmsException { return deleteProtocolsList(DeleteProtocolsListRequest.builder().applyMutation(deleteProtocolsListRequest).build()); } /** *

* Disassociates the account that has been set as the Firewall Manager administrator account. To set a different * account as the administrator account, you must submit an AssociateAdminAccount request. *

* * @param disassociateAdminAccountRequest * @return Result of the DisassociateAdminAccount operation returned by the service. * @throws InvalidOperationException * The operation failed because there was nothing to do or the operation wasn't possible. For example, you * might have submitted an AssociateAdminAccount request for an account ID that was already set * as the Firewall Manager administrator. Or you might have tried to access a Region that's disabled by * default, and that you need to enable for the Firewall Manager administrator account and for Organizations * before you can access it. * @throws ResourceNotFoundException * The specified resource was not found. * @throws InternalErrorException * The operation failed because of a system problem, even though the request was valid. Retry your request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws FmsException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample FmsClient.DisassociateAdminAccount * @see AWS * API Documentation */ default DisassociateAdminAccountResponse disassociateAdminAccount( DisassociateAdminAccountRequest disassociateAdminAccountRequest) throws InvalidOperationException, ResourceNotFoundException, InternalErrorException, AwsServiceException, SdkClientException, FmsException { throw new UnsupportedOperationException(); } /** *

* Disassociates the account that has been set as the Firewall Manager administrator account. To set a different * account as the administrator account, you must submit an AssociateAdminAccount request. *

*
*

* This is a convenience which creates an instance of the {@link DisassociateAdminAccountRequest.Builder} avoiding * the need to create one manually via {@link DisassociateAdminAccountRequest#builder()} *

* * @param disassociateAdminAccountRequest * A {@link Consumer} that will call methods on {@link DisassociateAdminAccountRequest.Builder} to create a * request. * @return Result of the DisassociateAdminAccount operation returned by the service. * @throws InvalidOperationException * The operation failed because there was nothing to do or the operation wasn't possible. For example, you * might have submitted an AssociateAdminAccount request for an account ID that was already set * as the Firewall Manager administrator. Or you might have tried to access a Region that's disabled by * default, and that you need to enable for the Firewall Manager administrator account and for Organizations * before you can access it. * @throws ResourceNotFoundException * The specified resource was not found. * @throws InternalErrorException * The operation failed because of a system problem, even though the request was valid. Retry your request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws FmsException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample FmsClient.DisassociateAdminAccount * @see AWS * API Documentation */ default DisassociateAdminAccountResponse disassociateAdminAccount( Consumer disassociateAdminAccountRequest) throws InvalidOperationException, ResourceNotFoundException, InternalErrorException, AwsServiceException, SdkClientException, FmsException { return disassociateAdminAccount(DisassociateAdminAccountRequest.builder().applyMutation(disassociateAdminAccountRequest) .build()); } /** *

* Disassociates a Firewall Manager policy administrator from a third-party firewall tenant. When you call * DisassociateThirdPartyFirewall, the third-party firewall vendor deletes all of the firewalls that * are associated with the account. *

* * @param disassociateThirdPartyFirewallRequest * @return Result of the DisassociateThirdPartyFirewall operation returned by the service. * @throws InvalidOperationException * The operation failed because there was nothing to do or the operation wasn't possible. For example, you * might have submitted an AssociateAdminAccount request for an account ID that was already set * as the Firewall Manager administrator. Or you might have tried to access a Region that's disabled by * default, and that you need to enable for the Firewall Manager administrator account and for Organizations * before you can access it. * @throws InvalidInputException * The parameters of the request were invalid. * @throws ResourceNotFoundException * The specified resource was not found. * @throws InternalErrorException * The operation failed because of a system problem, even though the request was valid. Retry your request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws FmsException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample FmsClient.DisassociateThirdPartyFirewall * @see AWS API Documentation */ default DisassociateThirdPartyFirewallResponse disassociateThirdPartyFirewall( DisassociateThirdPartyFirewallRequest disassociateThirdPartyFirewallRequest) throws InvalidOperationException, InvalidInputException, ResourceNotFoundException, InternalErrorException, AwsServiceException, SdkClientException, FmsException { throw new UnsupportedOperationException(); } /** *

* Disassociates a Firewall Manager policy administrator from a third-party firewall tenant. When you call * DisassociateThirdPartyFirewall, the third-party firewall vendor deletes all of the firewalls that * are associated with the account. *

*
*

* This is a convenience which creates an instance of the {@link DisassociateThirdPartyFirewallRequest.Builder} * avoiding the need to create one manually via {@link DisassociateThirdPartyFirewallRequest#builder()} *

* * @param disassociateThirdPartyFirewallRequest * A {@link Consumer} that will call methods on {@link DisassociateThirdPartyFirewallRequest.Builder} to * create a request. * @return Result of the DisassociateThirdPartyFirewall operation returned by the service. * @throws InvalidOperationException * The operation failed because there was nothing to do or the operation wasn't possible. For example, you * might have submitted an AssociateAdminAccount request for an account ID that was already set * as the Firewall Manager administrator. Or you might have tried to access a Region that's disabled by * default, and that you need to enable for the Firewall Manager administrator account and for Organizations * before you can access it. * @throws InvalidInputException * The parameters of the request were invalid. * @throws ResourceNotFoundException * The specified resource was not found. * @throws InternalErrorException * The operation failed because of a system problem, even though the request was valid. Retry your request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws FmsException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample FmsClient.DisassociateThirdPartyFirewall * @see AWS API Documentation */ default DisassociateThirdPartyFirewallResponse disassociateThirdPartyFirewall( Consumer disassociateThirdPartyFirewallRequest) throws InvalidOperationException, InvalidInputException, ResourceNotFoundException, InternalErrorException, AwsServiceException, SdkClientException, FmsException { return disassociateThirdPartyFirewall(DisassociateThirdPartyFirewallRequest.builder() .applyMutation(disassociateThirdPartyFirewallRequest).build()); } /** *

* Returns the Organizations account that is associated with Firewall Manager as the Firewall Manager administrator. *

* * @param getAdminAccountRequest * @return Result of the GetAdminAccount operation returned by the service. * @throws InvalidOperationException * The operation failed because there was nothing to do or the operation wasn't possible. For example, you * might have submitted an AssociateAdminAccount request for an account ID that was already set * as the Firewall Manager administrator. Or you might have tried to access a Region that's disabled by * default, and that you need to enable for the Firewall Manager administrator account and for Organizations * before you can access it. * @throws ResourceNotFoundException * The specified resource was not found. * @throws InternalErrorException * The operation failed because of a system problem, even though the request was valid. Retry your request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws FmsException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample FmsClient.GetAdminAccount * @see AWS API * Documentation */ default GetAdminAccountResponse getAdminAccount(GetAdminAccountRequest getAdminAccountRequest) throws InvalidOperationException, ResourceNotFoundException, InternalErrorException, AwsServiceException, SdkClientException, FmsException { throw new UnsupportedOperationException(); } /** *

* Returns the Organizations account that is associated with Firewall Manager as the Firewall Manager administrator. *

*
*

* This is a convenience which creates an instance of the {@link GetAdminAccountRequest.Builder} avoiding the need * to create one manually via {@link GetAdminAccountRequest#builder()} *

* * @param getAdminAccountRequest * A {@link Consumer} that will call methods on {@link GetAdminAccountRequest.Builder} to create a request. * @return Result of the GetAdminAccount operation returned by the service. * @throws InvalidOperationException * The operation failed because there was nothing to do or the operation wasn't possible. For example, you * might have submitted an AssociateAdminAccount request for an account ID that was already set * as the Firewall Manager administrator. Or you might have tried to access a Region that's disabled by * default, and that you need to enable for the Firewall Manager administrator account and for Organizations * before you can access it. * @throws ResourceNotFoundException * The specified resource was not found. * @throws InternalErrorException * The operation failed because of a system problem, even though the request was valid. Retry your request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws FmsException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample FmsClient.GetAdminAccount * @see AWS API * Documentation */ default GetAdminAccountResponse getAdminAccount(Consumer getAdminAccountRequest) throws InvalidOperationException, ResourceNotFoundException, InternalErrorException, AwsServiceException, SdkClientException, FmsException { return getAdminAccount(GetAdminAccountRequest.builder().applyMutation(getAdminAccountRequest).build()); } /** *

* Returns information about the specified Firewall Manager applications list. *

* * @param getAppsListRequest * @return Result of the GetAppsList operation returned by the service. * @throws ResourceNotFoundException * The specified resource was not found. * @throws InvalidOperationException * The operation failed because there was nothing to do or the operation wasn't possible. For example, you * might have submitted an AssociateAdminAccount request for an account ID that was already set * as the Firewall Manager administrator. Or you might have tried to access a Region that's disabled by * default, and that you need to enable for the Firewall Manager administrator account and for Organizations * before you can access it. * @throws InternalErrorException * The operation failed because of a system problem, even though the request was valid. Retry your request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws FmsException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample FmsClient.GetAppsList * @see AWS API * Documentation */ default GetAppsListResponse getAppsList(GetAppsListRequest getAppsListRequest) throws ResourceNotFoundException, InvalidOperationException, InternalErrorException, AwsServiceException, SdkClientException, FmsException { throw new UnsupportedOperationException(); } /** *

* Returns information about the specified Firewall Manager applications list. *

*
*

* This is a convenience which creates an instance of the {@link GetAppsListRequest.Builder} avoiding the need to * create one manually via {@link GetAppsListRequest#builder()} *

* * @param getAppsListRequest * A {@link Consumer} that will call methods on {@link GetAppsListRequest.Builder} to create a request. * @return Result of the GetAppsList operation returned by the service. * @throws ResourceNotFoundException * The specified resource was not found. * @throws InvalidOperationException * The operation failed because there was nothing to do or the operation wasn't possible. For example, you * might have submitted an AssociateAdminAccount request for an account ID that was already set * as the Firewall Manager administrator. Or you might have tried to access a Region that's disabled by * default, and that you need to enable for the Firewall Manager administrator account and for Organizations * before you can access it. * @throws InternalErrorException * The operation failed because of a system problem, even though the request was valid. Retry your request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws FmsException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample FmsClient.GetAppsList * @see AWS API * Documentation */ default GetAppsListResponse getAppsList(Consumer getAppsListRequest) throws ResourceNotFoundException, InvalidOperationException, InternalErrorException, AwsServiceException, SdkClientException, FmsException { return getAppsList(GetAppsListRequest.builder().applyMutation(getAppsListRequest).build()); } /** *

* 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 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. *

    *
  • *
  • *

    * Resources are considered noncompliant for Network Firewall policies if a firewall is missing in the VPC, if the * firewall endpoint isn't set up in an expected Availability Zone and subnet, if a subnet created by the Firewall * Manager doesn't have the expected route table, and for modifications to a firewall policy that violate the * Firewall Manager policy's rules. *

    *
  • *
  • *

    * Resources are considered noncompliant for DNS Firewall policies if a DNS Firewall rule group is missing from the * rule group associations for the VPC. *

    *
  • *
* * @param getComplianceDetailRequest * @return Result of the GetComplianceDetail operation returned by the service. * @throws ResourceNotFoundException * The specified resource was not found. * @throws InternalErrorException * The operation failed because of a system problem, even though the request was valid. Retry your request. * @throws InvalidInputException * The parameters of the request were invalid. * @throws InvalidOperationException * The operation failed because there was nothing to do or the operation wasn't possible. For example, you * might have submitted an AssociateAdminAccount request for an account ID that was already set * as the Firewall Manager administrator. Or you might have tried to access a Region that's disabled by * default, and that you need to enable for the Firewall Manager administrator account and for Organizations * before you can access it. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws FmsException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample FmsClient.GetComplianceDetail * @see AWS API * Documentation */ default GetComplianceDetailResponse getComplianceDetail(GetComplianceDetailRequest getComplianceDetailRequest) throws ResourceNotFoundException, InternalErrorException, InvalidInputException, InvalidOperationException, AwsServiceException, SdkClientException, FmsException { throw new UnsupportedOperationException(); } /** *

* 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 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. *

    *
  • *
  • *

    * Resources are considered noncompliant for Network Firewall policies if a firewall is missing in the VPC, if the * firewall endpoint isn't set up in an expected Availability Zone and subnet, if a subnet created by the Firewall * Manager doesn't have the expected route table, and for modifications to a firewall policy that violate the * Firewall Manager policy's rules. *

    *
  • *
  • *

    * Resources are considered noncompliant for DNS Firewall policies if a DNS Firewall rule group is missing from the * rule group associations for the VPC. *

    *
  • *
*
*

* This is a convenience which creates an instance of the {@link GetComplianceDetailRequest.Builder} avoiding the * need to create one manually via {@link GetComplianceDetailRequest#builder()} *

* * @param getComplianceDetailRequest * A {@link Consumer} that will call methods on {@link GetComplianceDetailRequest.Builder} to create a * request. * @return Result of the GetComplianceDetail operation returned by the service. * @throws ResourceNotFoundException * The specified resource was not found. * @throws InternalErrorException * The operation failed because of a system problem, even though the request was valid. Retry your request. * @throws InvalidInputException * The parameters of the request were invalid. * @throws InvalidOperationException * The operation failed because there was nothing to do or the operation wasn't possible. For example, you * might have submitted an AssociateAdminAccount request for an account ID that was already set * as the Firewall Manager administrator. Or you might have tried to access a Region that's disabled by * default, and that you need to enable for the Firewall Manager administrator account and for Organizations * before you can access it. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws FmsException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample FmsClient.GetComplianceDetail * @see AWS API * Documentation */ default GetComplianceDetailResponse getComplianceDetail( Consumer getComplianceDetailRequest) throws ResourceNotFoundException, InternalErrorException, InvalidInputException, InvalidOperationException, AwsServiceException, SdkClientException, FmsException { return getComplianceDetail(GetComplianceDetailRequest.builder().applyMutation(getComplianceDetailRequest).build()); } /** *

* Information about the Amazon Simple Notification Service (SNS) topic that is used to record Firewall Manager SNS * logs. *

* * @param getNotificationChannelRequest * @return Result of the GetNotificationChannel operation returned by the service. * @throws ResourceNotFoundException * The specified resource was not found. * @throws InvalidOperationException * The operation failed because there was nothing to do or the operation wasn't possible. For example, you * might have submitted an AssociateAdminAccount request for an account ID that was already set * as the Firewall Manager administrator. Or you might have tried to access a Region that's disabled by * default, and that you need to enable for the Firewall Manager administrator account and for Organizations * before you can access it. * @throws InternalErrorException * The operation failed because of a system problem, even though the request was valid. Retry your request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws FmsException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample FmsClient.GetNotificationChannel * @see AWS * API Documentation */ default GetNotificationChannelResponse getNotificationChannel(GetNotificationChannelRequest getNotificationChannelRequest) throws ResourceNotFoundException, InvalidOperationException, InternalErrorException, AwsServiceException, SdkClientException, FmsException { throw new UnsupportedOperationException(); } /** *

* Information about the Amazon Simple Notification Service (SNS) topic that is used to record Firewall Manager SNS * logs. *

*
*

* This is a convenience which creates an instance of the {@link GetNotificationChannelRequest.Builder} avoiding the * need to create one manually via {@link GetNotificationChannelRequest#builder()} *

* * @param getNotificationChannelRequest * A {@link Consumer} that will call methods on {@link GetNotificationChannelRequest.Builder} to create a * request. * @return Result of the GetNotificationChannel operation returned by the service. * @throws ResourceNotFoundException * The specified resource was not found. * @throws InvalidOperationException * The operation failed because there was nothing to do or the operation wasn't possible. For example, you * might have submitted an AssociateAdminAccount request for an account ID that was already set * as the Firewall Manager administrator. Or you might have tried to access a Region that's disabled by * default, and that you need to enable for the Firewall Manager administrator account and for Organizations * before you can access it. * @throws InternalErrorException * The operation failed because of a system problem, even though the request was valid. Retry your request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws FmsException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample FmsClient.GetNotificationChannel * @see AWS * API Documentation */ default GetNotificationChannelResponse getNotificationChannel( Consumer getNotificationChannelRequest) throws ResourceNotFoundException, InvalidOperationException, InternalErrorException, AwsServiceException, SdkClientException, FmsException { return getNotificationChannel(GetNotificationChannelRequest.builder().applyMutation(getNotificationChannelRequest) .build()); } /** *

* Returns information about the specified Firewall Manager policy. *

* * @param getPolicyRequest * @return Result of the GetPolicy operation returned by the service. * @throws ResourceNotFoundException * The specified resource was not found. * @throws InvalidOperationException * The operation failed because there was nothing to do or the operation wasn't possible. For example, you * might have submitted an AssociateAdminAccount request for an account ID that was already set * as the Firewall Manager administrator. Or you might have tried to access a Region that's disabled by * default, and that you need to enable for the Firewall Manager administrator account and for Organizations * before you can access it. * @throws InternalErrorException * The operation failed because of a system problem, even though the request was valid. Retry your request. * @throws InvalidTypeException * The value of the Type parameter is invalid. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws FmsException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample FmsClient.GetPolicy * @see AWS API * Documentation */ default GetPolicyResponse getPolicy(GetPolicyRequest getPolicyRequest) throws ResourceNotFoundException, InvalidOperationException, InternalErrorException, InvalidTypeException, AwsServiceException, SdkClientException, FmsException { throw new UnsupportedOperationException(); } /** *

* Returns information about the specified Firewall Manager policy. *

*
*

* This is a convenience which creates an instance of the {@link GetPolicyRequest.Builder} avoiding the need to * create one manually via {@link GetPolicyRequest#builder()} *

* * @param getPolicyRequest * A {@link Consumer} that will call methods on {@link GetPolicyRequest.Builder} to create a request. * @return Result of the GetPolicy operation returned by the service. * @throws ResourceNotFoundException * The specified resource was not found. * @throws InvalidOperationException * The operation failed because there was nothing to do or the operation wasn't possible. For example, you * might have submitted an AssociateAdminAccount request for an account ID that was already set * as the Firewall Manager administrator. Or you might have tried to access a Region that's disabled by * default, and that you need to enable for the Firewall Manager administrator account and for Organizations * before you can access it. * @throws InternalErrorException * The operation failed because of a system problem, even though the request was valid. Retry your request. * @throws InvalidTypeException * The value of the Type parameter is invalid. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws FmsException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample FmsClient.GetPolicy * @see AWS API * Documentation */ default GetPolicyResponse getPolicy(Consumer getPolicyRequest) throws ResourceNotFoundException, InvalidOperationException, InternalErrorException, InvalidTypeException, AwsServiceException, SdkClientException, FmsException { return getPolicy(GetPolicyRequest.builder().applyMutation(getPolicyRequest).build()); } /** *

* 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. *

* * @param getProtectionStatusRequest * @return Result of the GetProtectionStatus operation returned by the service. * @throws InvalidInputException * The parameters of the request were invalid. * @throws ResourceNotFoundException * The specified resource was not found. * @throws InternalErrorException * The operation failed because of a system problem, even though the request was valid. Retry your request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws FmsException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample FmsClient.GetProtectionStatus * @see AWS API * Documentation */ default GetProtectionStatusResponse getProtectionStatus(GetProtectionStatusRequest getProtectionStatusRequest) throws InvalidInputException, ResourceNotFoundException, InternalErrorException, AwsServiceException, SdkClientException, FmsException { throw new UnsupportedOperationException(); } /** *

* 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. *

*
*

* This is a convenience which creates an instance of the {@link GetProtectionStatusRequest.Builder} avoiding the * need to create one manually via {@link GetProtectionStatusRequest#builder()} *

* * @param getProtectionStatusRequest * A {@link Consumer} that will call methods on {@link GetProtectionStatusRequest.Builder} to create a * request. * @return Result of the GetProtectionStatus operation returned by the service. * @throws InvalidInputException * The parameters of the request were invalid. * @throws ResourceNotFoundException * The specified resource was not found. * @throws InternalErrorException * The operation failed because of a system problem, even though the request was valid. Retry your request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws FmsException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample FmsClient.GetProtectionStatus * @see AWS API * Documentation */ default GetProtectionStatusResponse getProtectionStatus( Consumer getProtectionStatusRequest) throws InvalidInputException, ResourceNotFoundException, InternalErrorException, AwsServiceException, SdkClientException, FmsException { return getProtectionStatus(GetProtectionStatusRequest.builder().applyMutation(getProtectionStatusRequest).build()); } /** *

* Returns information about the specified Firewall Manager protocols list. *

* * @param getProtocolsListRequest * @return Result of the GetProtocolsList operation returned by the service. * @throws ResourceNotFoundException * The specified resource was not found. * @throws InvalidOperationException * The operation failed because there was nothing to do or the operation wasn't possible. For example, you * might have submitted an AssociateAdminAccount request for an account ID that was already set * as the Firewall Manager administrator. Or you might have tried to access a Region that's disabled by * default, and that you need to enable for the Firewall Manager administrator account and for Organizations * before you can access it. * @throws InternalErrorException * The operation failed because of a system problem, even though the request was valid. Retry your request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws FmsException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample FmsClient.GetProtocolsList * @see AWS API * Documentation */ default GetProtocolsListResponse getProtocolsList(GetProtocolsListRequest getProtocolsListRequest) throws ResourceNotFoundException, InvalidOperationException, InternalErrorException, AwsServiceException, SdkClientException, FmsException { throw new UnsupportedOperationException(); } /** *

* Returns information about the specified Firewall Manager protocols list. *

*
*

* This is a convenience which creates an instance of the {@link GetProtocolsListRequest.Builder} avoiding the need * to create one manually via {@link GetProtocolsListRequest#builder()} *

* * @param getProtocolsListRequest * A {@link Consumer} that will call methods on {@link GetProtocolsListRequest.Builder} to create a request. * @return Result of the GetProtocolsList operation returned by the service. * @throws ResourceNotFoundException * The specified resource was not found. * @throws InvalidOperationException * The operation failed because there was nothing to do or the operation wasn't possible. For example, you * might have submitted an AssociateAdminAccount request for an account ID that was already set * as the Firewall Manager administrator. Or you might have tried to access a Region that's disabled by * default, and that you need to enable for the Firewall Manager administrator account and for Organizations * before you can access it. * @throws InternalErrorException * The operation failed because of a system problem, even though the request was valid. Retry your request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws FmsException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample FmsClient.GetProtocolsList * @see AWS API * Documentation */ default GetProtocolsListResponse getProtocolsList(Consumer getProtocolsListRequest) throws ResourceNotFoundException, InvalidOperationException, InternalErrorException, AwsServiceException, SdkClientException, FmsException { return getProtocolsList(GetProtocolsListRequest.builder().applyMutation(getProtocolsListRequest).build()); } /** *

* The onboarding status of a Firewall Manager admin account to third-party firewall vendor tenant. *

* * @param getThirdPartyFirewallAssociationStatusRequest * @return Result of the GetThirdPartyFirewallAssociationStatus operation returned by the service. * @throws InvalidOperationException * The operation failed because there was nothing to do or the operation wasn't possible. For example, you * might have submitted an AssociateAdminAccount request for an account ID that was already set * as the Firewall Manager administrator. Or you might have tried to access a Region that's disabled by * default, and that you need to enable for the Firewall Manager administrator account and for Organizations * before you can access it. * @throws InvalidInputException * The parameters of the request were invalid. * @throws ResourceNotFoundException * The specified resource was not found. * @throws InternalErrorException * The operation failed because of a system problem, even though the request was valid. Retry your request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws FmsException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample FmsClient.GetThirdPartyFirewallAssociationStatus * @see AWS API Documentation */ default GetThirdPartyFirewallAssociationStatusResponse getThirdPartyFirewallAssociationStatus( GetThirdPartyFirewallAssociationStatusRequest getThirdPartyFirewallAssociationStatusRequest) throws InvalidOperationException, InvalidInputException, ResourceNotFoundException, InternalErrorException, AwsServiceException, SdkClientException, FmsException { throw new UnsupportedOperationException(); } /** *

* The onboarding status of a Firewall Manager admin account to third-party firewall vendor tenant. *

*
*

* This is a convenience which creates an instance of the * {@link GetThirdPartyFirewallAssociationStatusRequest.Builder} avoiding the need to create one manually via * {@link GetThirdPartyFirewallAssociationStatusRequest#builder()} *

* * @param getThirdPartyFirewallAssociationStatusRequest * A {@link Consumer} that will call methods on {@link GetThirdPartyFirewallAssociationStatusRequest.Builder} * to create a request. * @return Result of the GetThirdPartyFirewallAssociationStatus operation returned by the service. * @throws InvalidOperationException * The operation failed because there was nothing to do or the operation wasn't possible. For example, you * might have submitted an AssociateAdminAccount request for an account ID that was already set * as the Firewall Manager administrator. Or you might have tried to access a Region that's disabled by * default, and that you need to enable for the Firewall Manager administrator account and for Organizations * before you can access it. * @throws InvalidInputException * The parameters of the request were invalid. * @throws ResourceNotFoundException * The specified resource was not found. * @throws InternalErrorException * The operation failed because of a system problem, even though the request was valid. Retry your request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws FmsException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample FmsClient.GetThirdPartyFirewallAssociationStatus * @see AWS API Documentation */ default GetThirdPartyFirewallAssociationStatusResponse getThirdPartyFirewallAssociationStatus( Consumer getThirdPartyFirewallAssociationStatusRequest) throws InvalidOperationException, InvalidInputException, ResourceNotFoundException, InternalErrorException, AwsServiceException, SdkClientException, FmsException { return getThirdPartyFirewallAssociationStatus(GetThirdPartyFirewallAssociationStatusRequest.builder() .applyMutation(getThirdPartyFirewallAssociationStatusRequest).build()); } /** *

* Retrieves violations for a resource based on the specified Firewall Manager policy and Amazon Web Services * account. *

* * @param getViolationDetailsRequest * @return Result of the GetViolationDetails operation returned by the service. * @throws ResourceNotFoundException * The specified resource was not found. * @throws InvalidInputException * The parameters of the request were invalid. * @throws InternalErrorException * The operation failed because of a system problem, even though the request was valid. Retry your request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws FmsException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample FmsClient.GetViolationDetails * @see AWS API * Documentation */ default GetViolationDetailsResponse getViolationDetails(GetViolationDetailsRequest getViolationDetailsRequest) throws ResourceNotFoundException, InvalidInputException, InternalErrorException, AwsServiceException, SdkClientException, FmsException { throw new UnsupportedOperationException(); } /** *

* Retrieves violations for a resource based on the specified Firewall Manager policy and Amazon Web Services * account. *

*
*

* This is a convenience which creates an instance of the {@link GetViolationDetailsRequest.Builder} avoiding the * need to create one manually via {@link GetViolationDetailsRequest#builder()} *

* * @param getViolationDetailsRequest * A {@link Consumer} that will call methods on {@link GetViolationDetailsRequest.Builder} to create a * request. * @return Result of the GetViolationDetails operation returned by the service. * @throws ResourceNotFoundException * The specified resource was not found. * @throws InvalidInputException * The parameters of the request were invalid. * @throws InternalErrorException * The operation failed because of a system problem, even though the request was valid. Retry your request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws FmsException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample FmsClient.GetViolationDetails * @see AWS API * Documentation */ default GetViolationDetailsResponse getViolationDetails( Consumer getViolationDetailsRequest) throws ResourceNotFoundException, InvalidInputException, InternalErrorException, AwsServiceException, SdkClientException, FmsException { return getViolationDetails(GetViolationDetailsRequest.builder().applyMutation(getViolationDetailsRequest).build()); } /** *

* Returns an array of AppsListDataSummary objects. *

* * @param listAppsListsRequest * @return Result of the ListAppsLists operation returned by the service. * @throws ResourceNotFoundException * The specified resource was not found. * @throws InvalidOperationException * The operation failed because there was nothing to do or the operation wasn't possible. For example, you * might have submitted an AssociateAdminAccount request for an account ID that was already set * as the Firewall Manager administrator. Or you might have tried to access a Region that's disabled by * default, and that you need to enable for the Firewall Manager administrator account and for Organizations * before you can access it. * @throws LimitExceededException * The operation exceeds a resource limit, for example, the maximum number of policy objects * that you can create for an Amazon Web Services account. For more information, see Firewall Manager Limits * in the WAF Developer Guide. * @throws InternalErrorException * The operation failed because of a system problem, even though the request was valid. Retry your request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws FmsException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample FmsClient.ListAppsLists * @see AWS API * Documentation */ default ListAppsListsResponse listAppsLists(ListAppsListsRequest listAppsListsRequest) throws ResourceNotFoundException, InvalidOperationException, LimitExceededException, InternalErrorException, AwsServiceException, SdkClientException, FmsException { throw new UnsupportedOperationException(); } /** *

* Returns an array of AppsListDataSummary objects. *

*
*

* This is a convenience which creates an instance of the {@link ListAppsListsRequest.Builder} avoiding the need to * create one manually via {@link ListAppsListsRequest#builder()} *

* * @param listAppsListsRequest * A {@link Consumer} that will call methods on {@link ListAppsListsRequest.Builder} to create a request. * @return Result of the ListAppsLists operation returned by the service. * @throws ResourceNotFoundException * The specified resource was not found. * @throws InvalidOperationException * The operation failed because there was nothing to do or the operation wasn't possible. For example, you * might have submitted an AssociateAdminAccount request for an account ID that was already set * as the Firewall Manager administrator. Or you might have tried to access a Region that's disabled by * default, and that you need to enable for the Firewall Manager administrator account and for Organizations * before you can access it. * @throws LimitExceededException * The operation exceeds a resource limit, for example, the maximum number of policy objects * that you can create for an Amazon Web Services account. For more information, see Firewall Manager Limits * in the WAF Developer Guide. * @throws InternalErrorException * The operation failed because of a system problem, even though the request was valid. Retry your request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws FmsException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample FmsClient.ListAppsLists * @see AWS API * Documentation */ default ListAppsListsResponse listAppsLists(Consumer listAppsListsRequest) throws ResourceNotFoundException, InvalidOperationException, LimitExceededException, InternalErrorException, AwsServiceException, SdkClientException, FmsException { return listAppsLists(ListAppsListsRequest.builder().applyMutation(listAppsListsRequest).build()); } /** *

* Returns an array of AppsListDataSummary objects. *

*
*

* This is a variant of {@link #listAppsLists(software.amazon.awssdk.services.fms.model.ListAppsListsRequest)} * operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will * internally handle making service calls for you. *

*

* When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no * guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response * pages by making service calls until there are no pages left or your iteration stops. If there are errors in your * request, you will see the failures only after you start iterating through the iterable. *

* *

* The following are few ways to iterate through the response pages: *

* 1) Using a Stream * *
     * {@code
     * software.amazon.awssdk.services.fms.paginators.ListAppsListsIterable responses = client.listAppsListsPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.fms.paginators.ListAppsListsIterable responses = client.listAppsListsPaginator(request);
     *     for (software.amazon.awssdk.services.fms.model.ListAppsListsResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.fms.paginators.ListAppsListsIterable responses = client.listAppsListsPaginator(request);
     * responses.iterator().forEachRemaining(....);
     * }
     * 
*

* Please notice that the configuration of MaxResults won't limit the number of results you get with the * paginator. It only limits the number of results in each page. *

*

* Note: If you prefer to have control on service calls, use the * {@link #listAppsLists(software.amazon.awssdk.services.fms.model.ListAppsListsRequest)} operation. *

* * @param listAppsListsRequest * @return A custom iterable that can be used to iterate through all the response pages. * @throws ResourceNotFoundException * The specified resource was not found. * @throws InvalidOperationException * The operation failed because there was nothing to do or the operation wasn't possible. For example, you * might have submitted an AssociateAdminAccount request for an account ID that was already set * as the Firewall Manager administrator. Or you might have tried to access a Region that's disabled by * default, and that you need to enable for the Firewall Manager administrator account and for Organizations * before you can access it. * @throws LimitExceededException * The operation exceeds a resource limit, for example, the maximum number of policy objects * that you can create for an Amazon Web Services account. For more information, see Firewall Manager Limits * in the WAF Developer Guide. * @throws InternalErrorException * The operation failed because of a system problem, even though the request was valid. Retry your request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws FmsException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample FmsClient.ListAppsLists * @see AWS API * Documentation */ default ListAppsListsIterable listAppsListsPaginator(ListAppsListsRequest listAppsListsRequest) throws ResourceNotFoundException, InvalidOperationException, LimitExceededException, InternalErrorException, AwsServiceException, SdkClientException, FmsException { throw new UnsupportedOperationException(); } /** *

* Returns an array of AppsListDataSummary objects. *

*
*

* This is a variant of {@link #listAppsLists(software.amazon.awssdk.services.fms.model.ListAppsListsRequest)} * operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will * internally handle making service calls for you. *

*

* When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no * guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response * pages by making service calls until there are no pages left or your iteration stops. If there are errors in your * request, you will see the failures only after you start iterating through the iterable. *

* *

* The following are few ways to iterate through the response pages: *

* 1) Using a Stream * *
     * {@code
     * software.amazon.awssdk.services.fms.paginators.ListAppsListsIterable responses = client.listAppsListsPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.fms.paginators.ListAppsListsIterable responses = client.listAppsListsPaginator(request);
     *     for (software.amazon.awssdk.services.fms.model.ListAppsListsResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.fms.paginators.ListAppsListsIterable responses = client.listAppsListsPaginator(request);
     * responses.iterator().forEachRemaining(....);
     * }
     * 
*

* Please notice that the configuration of MaxResults won't limit the number of results you get with the * paginator. It only limits the number of results in each page. *

*

* Note: If you prefer to have control on service calls, use the * {@link #listAppsLists(software.amazon.awssdk.services.fms.model.ListAppsListsRequest)} operation. *

*

* This is a convenience which creates an instance of the {@link ListAppsListsRequest.Builder} avoiding the need to * create one manually via {@link ListAppsListsRequest#builder()} *

* * @param listAppsListsRequest * A {@link Consumer} that will call methods on {@link ListAppsListsRequest.Builder} to create a request. * @return A custom iterable that can be used to iterate through all the response pages. * @throws ResourceNotFoundException * The specified resource was not found. * @throws InvalidOperationException * The operation failed because there was nothing to do or the operation wasn't possible. For example, you * might have submitted an AssociateAdminAccount request for an account ID that was already set * as the Firewall Manager administrator. Or you might have tried to access a Region that's disabled by * default, and that you need to enable for the Firewall Manager administrator account and for Organizations * before you can access it. * @throws LimitExceededException * The operation exceeds a resource limit, for example, the maximum number of policy objects * that you can create for an Amazon Web Services account. For more information, see Firewall Manager Limits * in the WAF Developer Guide. * @throws InternalErrorException * The operation failed because of a system problem, even though the request was valid. Retry your request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws FmsException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample FmsClient.ListAppsLists * @see AWS API * Documentation */ default ListAppsListsIterable listAppsListsPaginator(Consumer listAppsListsRequest) throws ResourceNotFoundException, InvalidOperationException, LimitExceededException, InternalErrorException, AwsServiceException, SdkClientException, FmsException { return listAppsListsPaginator(ListAppsListsRequest.builder().applyMutation(listAppsListsRequest).build()); } /** *

* Returns an array of PolicyComplianceStatus objects. Use PolicyComplianceStatus to get a * summary of which member accounts are protected by the specified policy. *

* * @param listComplianceStatusRequest * @return Result of the ListComplianceStatus operation returned by the service. * @throws ResourceNotFoundException * The specified resource was not found. * @throws InternalErrorException * The operation failed because of a system problem, even though the request was valid. Retry your request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws FmsException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample FmsClient.ListComplianceStatus * @see AWS API * Documentation */ default ListComplianceStatusResponse listComplianceStatus(ListComplianceStatusRequest listComplianceStatusRequest) throws ResourceNotFoundException, InternalErrorException, AwsServiceException, SdkClientException, FmsException { throw new UnsupportedOperationException(); } /** *

* Returns an array of PolicyComplianceStatus objects. Use PolicyComplianceStatus to get a * summary of which member accounts are protected by the specified policy. *

*
*

* This is a convenience which creates an instance of the {@link ListComplianceStatusRequest.Builder} avoiding the * need to create one manually via {@link ListComplianceStatusRequest#builder()} *

* * @param listComplianceStatusRequest * A {@link Consumer} that will call methods on {@link ListComplianceStatusRequest.Builder} to create a * request. * @return Result of the ListComplianceStatus operation returned by the service. * @throws ResourceNotFoundException * The specified resource was not found. * @throws InternalErrorException * The operation failed because of a system problem, even though the request was valid. Retry your request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws FmsException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample FmsClient.ListComplianceStatus * @see AWS API * Documentation */ default ListComplianceStatusResponse listComplianceStatus( Consumer listComplianceStatusRequest) throws ResourceNotFoundException, InternalErrorException, AwsServiceException, SdkClientException, FmsException { return listComplianceStatus(ListComplianceStatusRequest.builder().applyMutation(listComplianceStatusRequest).build()); } /** *

* Returns an array of PolicyComplianceStatus objects. Use PolicyComplianceStatus to get a * summary of which member accounts are protected by the specified policy. *

*
*

* This is a variant of * {@link #listComplianceStatus(software.amazon.awssdk.services.fms.model.ListComplianceStatusRequest)} operation. * The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally * handle making service calls for you. *

*

* When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no * guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response * pages by making service calls until there are no pages left or your iteration stops. If there are errors in your * request, you will see the failures only after you start iterating through the iterable. *

* *

* The following are few ways to iterate through the response pages: *

* 1) Using a Stream * *
     * {@code
     * software.amazon.awssdk.services.fms.paginators.ListComplianceStatusIterable responses = client.listComplianceStatusPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.fms.paginators.ListComplianceStatusIterable responses = client
     *             .listComplianceStatusPaginator(request);
     *     for (software.amazon.awssdk.services.fms.model.ListComplianceStatusResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.fms.paginators.ListComplianceStatusIterable responses = client.listComplianceStatusPaginator(request);
     * responses.iterator().forEachRemaining(....);
     * }
     * 
*

* Please notice that the configuration of MaxResults won't limit the number of results you get with the * paginator. It only limits the number of results in each page. *

*

* Note: If you prefer to have control on service calls, use the * {@link #listComplianceStatus(software.amazon.awssdk.services.fms.model.ListComplianceStatusRequest)} * operation. *

* * @param listComplianceStatusRequest * @return A custom iterable that can be used to iterate through all the response pages. * @throws ResourceNotFoundException * The specified resource was not found. * @throws InternalErrorException * The operation failed because of a system problem, even though the request was valid. Retry your request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws FmsException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample FmsClient.ListComplianceStatus * @see AWS API * Documentation */ default ListComplianceStatusIterable listComplianceStatusPaginator(ListComplianceStatusRequest listComplianceStatusRequest) throws ResourceNotFoundException, InternalErrorException, AwsServiceException, SdkClientException, FmsException { throw new UnsupportedOperationException(); } /** *

* Returns an array of PolicyComplianceStatus objects. Use PolicyComplianceStatus to get a * summary of which member accounts are protected by the specified policy. *

*
*

* This is a variant of * {@link #listComplianceStatus(software.amazon.awssdk.services.fms.model.ListComplianceStatusRequest)} operation. * The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally * handle making service calls for you. *

*

* When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no * guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response * pages by making service calls until there are no pages left or your iteration stops. If there are errors in your * request, you will see the failures only after you start iterating through the iterable. *

* *

* The following are few ways to iterate through the response pages: *

* 1) Using a Stream * *
     * {@code
     * software.amazon.awssdk.services.fms.paginators.ListComplianceStatusIterable responses = client.listComplianceStatusPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.fms.paginators.ListComplianceStatusIterable responses = client
     *             .listComplianceStatusPaginator(request);
     *     for (software.amazon.awssdk.services.fms.model.ListComplianceStatusResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.fms.paginators.ListComplianceStatusIterable responses = client.listComplianceStatusPaginator(request);
     * responses.iterator().forEachRemaining(....);
     * }
     * 
*

* Please notice that the configuration of MaxResults won't limit the number of results you get with the * paginator. It only limits the number of results in each page. *

*

* Note: If you prefer to have control on service calls, use the * {@link #listComplianceStatus(software.amazon.awssdk.services.fms.model.ListComplianceStatusRequest)} * operation. *

*

* This is a convenience which creates an instance of the {@link ListComplianceStatusRequest.Builder} avoiding the * need to create one manually via {@link ListComplianceStatusRequest#builder()} *

* * @param listComplianceStatusRequest * A {@link Consumer} that will call methods on {@link ListComplianceStatusRequest.Builder} to create a * request. * @return A custom iterable that can be used to iterate through all the response pages. * @throws ResourceNotFoundException * The specified resource was not found. * @throws InternalErrorException * The operation failed because of a system problem, even though the request was valid. Retry your request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws FmsException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample FmsClient.ListComplianceStatus * @see AWS API * Documentation */ default ListComplianceStatusIterable listComplianceStatusPaginator( Consumer listComplianceStatusRequest) throws ResourceNotFoundException, InternalErrorException, AwsServiceException, SdkClientException, FmsException { return listComplianceStatusPaginator(ListComplianceStatusRequest.builder().applyMutation(listComplianceStatusRequest) .build()); } /** *

* Returns a MemberAccounts object that lists the member accounts in the administrator's Amazon Web * Services organization. *

*

* The ListMemberAccounts must be submitted by the account that is set as the Firewall Manager * administrator. *

* * @param listMemberAccountsRequest * @return Result of the ListMemberAccounts operation returned by the service. * @throws ResourceNotFoundException * The specified resource was not found. * @throws InternalErrorException * The operation failed because of a system problem, even though the request was valid. Retry your request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws FmsException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample FmsClient.ListMemberAccounts * @see AWS API * Documentation */ default ListMemberAccountsResponse listMemberAccounts(ListMemberAccountsRequest listMemberAccountsRequest) throws ResourceNotFoundException, InternalErrorException, AwsServiceException, SdkClientException, FmsException { throw new UnsupportedOperationException(); } /** *

* Returns a MemberAccounts object that lists the member accounts in the administrator's Amazon Web * Services organization. *

*

* The ListMemberAccounts must be submitted by the account that is set as the Firewall Manager * administrator. *

*
*

* This is a convenience which creates an instance of the {@link ListMemberAccountsRequest.Builder} avoiding the * need to create one manually via {@link ListMemberAccountsRequest#builder()} *

* * @param listMemberAccountsRequest * A {@link Consumer} that will call methods on {@link ListMemberAccountsRequest.Builder} to create a * request. * @return Result of the ListMemberAccounts operation returned by the service. * @throws ResourceNotFoundException * The specified resource was not found. * @throws InternalErrorException * The operation failed because of a system problem, even though the request was valid. Retry your request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws FmsException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample FmsClient.ListMemberAccounts * @see AWS API * Documentation */ default ListMemberAccountsResponse listMemberAccounts(Consumer listMemberAccountsRequest) throws ResourceNotFoundException, InternalErrorException, AwsServiceException, SdkClientException, FmsException { return listMemberAccounts(ListMemberAccountsRequest.builder().applyMutation(listMemberAccountsRequest).build()); } /** *

* Returns a MemberAccounts object that lists the member accounts in the administrator's Amazon Web * Services organization. *

*

* The ListMemberAccounts must be submitted by the account that is set as the Firewall Manager * administrator. *

*
*

* This is a variant of * {@link #listMemberAccounts(software.amazon.awssdk.services.fms.model.ListMemberAccountsRequest)} operation. The * return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle * making service calls for you. *

*

* When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no * guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response * pages by making service calls until there are no pages left or your iteration stops. If there are errors in your * request, you will see the failures only after you start iterating through the iterable. *

* *

* The following are few ways to iterate through the response pages: *

* 1) Using a Stream * *
     * {@code
     * software.amazon.awssdk.services.fms.paginators.ListMemberAccountsIterable responses = client.listMemberAccountsPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.fms.paginators.ListMemberAccountsIterable responses = client
     *             .listMemberAccountsPaginator(request);
     *     for (software.amazon.awssdk.services.fms.model.ListMemberAccountsResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.fms.paginators.ListMemberAccountsIterable responses = client.listMemberAccountsPaginator(request);
     * responses.iterator().forEachRemaining(....);
     * }
     * 
*

* Please notice that the configuration of MaxResults won't limit the number of results you get with the * paginator. It only limits the number of results in each page. *

*

* Note: If you prefer to have control on service calls, use the * {@link #listMemberAccounts(software.amazon.awssdk.services.fms.model.ListMemberAccountsRequest)} operation. *

* * @param listMemberAccountsRequest * @return A custom iterable that can be used to iterate through all the response pages. * @throws ResourceNotFoundException * The specified resource was not found. * @throws InternalErrorException * The operation failed because of a system problem, even though the request was valid. Retry your request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws FmsException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample FmsClient.ListMemberAccounts * @see AWS API * Documentation */ default ListMemberAccountsIterable listMemberAccountsPaginator(ListMemberAccountsRequest listMemberAccountsRequest) throws ResourceNotFoundException, InternalErrorException, AwsServiceException, SdkClientException, FmsException { throw new UnsupportedOperationException(); } /** *

* Returns a MemberAccounts object that lists the member accounts in the administrator's Amazon Web * Services organization. *

*

* The ListMemberAccounts must be submitted by the account that is set as the Firewall Manager * administrator. *

*
*

* This is a variant of * {@link #listMemberAccounts(software.amazon.awssdk.services.fms.model.ListMemberAccountsRequest)} operation. The * return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle * making service calls for you. *

*

* When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no * guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response * pages by making service calls until there are no pages left or your iteration stops. If there are errors in your * request, you will see the failures only after you start iterating through the iterable. *

* *

* The following are few ways to iterate through the response pages: *

* 1) Using a Stream * *
     * {@code
     * software.amazon.awssdk.services.fms.paginators.ListMemberAccountsIterable responses = client.listMemberAccountsPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.fms.paginators.ListMemberAccountsIterable responses = client
     *             .listMemberAccountsPaginator(request);
     *     for (software.amazon.awssdk.services.fms.model.ListMemberAccountsResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.fms.paginators.ListMemberAccountsIterable responses = client.listMemberAccountsPaginator(request);
     * responses.iterator().forEachRemaining(....);
     * }
     * 
*

* Please notice that the configuration of MaxResults won't limit the number of results you get with the * paginator. It only limits the number of results in each page. *

*

* Note: If you prefer to have control on service calls, use the * {@link #listMemberAccounts(software.amazon.awssdk.services.fms.model.ListMemberAccountsRequest)} operation. *

*

* This is a convenience which creates an instance of the {@link ListMemberAccountsRequest.Builder} avoiding the * need to create one manually via {@link ListMemberAccountsRequest#builder()} *

* * @param listMemberAccountsRequest * A {@link Consumer} that will call methods on {@link ListMemberAccountsRequest.Builder} to create a * request. * @return A custom iterable that can be used to iterate through all the response pages. * @throws ResourceNotFoundException * The specified resource was not found. * @throws InternalErrorException * The operation failed because of a system problem, even though the request was valid. Retry your request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws FmsException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample FmsClient.ListMemberAccounts * @see AWS API * Documentation */ default ListMemberAccountsIterable listMemberAccountsPaginator( Consumer listMemberAccountsRequest) throws ResourceNotFoundException, InternalErrorException, AwsServiceException, SdkClientException, FmsException { return listMemberAccountsPaginator(ListMemberAccountsRequest.builder().applyMutation(listMemberAccountsRequest).build()); } /** *

* Returns an array of PolicySummary objects. *

* * @param listPoliciesRequest * @return Result of the ListPolicies operation returned by the service. * @throws ResourceNotFoundException * The specified resource was not found. * @throws InvalidOperationException * The operation failed because there was nothing to do or the operation wasn't possible. For example, you * might have submitted an AssociateAdminAccount request for an account ID that was already set * as the Firewall Manager administrator. Or you might have tried to access a Region that's disabled by * default, and that you need to enable for the Firewall Manager administrator account and for Organizations * before you can access it. * @throws LimitExceededException * The operation exceeds a resource limit, for example, the maximum number of policy objects * that you can create for an Amazon Web Services account. For more information, see Firewall Manager Limits * in the WAF Developer Guide. * @throws InternalErrorException * The operation failed because of a system problem, even though the request was valid. Retry your request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws FmsException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample FmsClient.ListPolicies * @see AWS API * Documentation */ default ListPoliciesResponse listPolicies(ListPoliciesRequest listPoliciesRequest) throws ResourceNotFoundException, InvalidOperationException, LimitExceededException, InternalErrorException, AwsServiceException, SdkClientException, FmsException { throw new UnsupportedOperationException(); } /** *

* Returns an array of PolicySummary objects. *

*
*

* This is a convenience which creates an instance of the {@link ListPoliciesRequest.Builder} avoiding the need to * create one manually via {@link ListPoliciesRequest#builder()} *

* * @param listPoliciesRequest * A {@link Consumer} that will call methods on {@link ListPoliciesRequest.Builder} to create a request. * @return Result of the ListPolicies operation returned by the service. * @throws ResourceNotFoundException * The specified resource was not found. * @throws InvalidOperationException * The operation failed because there was nothing to do or the operation wasn't possible. For example, you * might have submitted an AssociateAdminAccount request for an account ID that was already set * as the Firewall Manager administrator. Or you might have tried to access a Region that's disabled by * default, and that you need to enable for the Firewall Manager administrator account and for Organizations * before you can access it. * @throws LimitExceededException * The operation exceeds a resource limit, for example, the maximum number of policy objects * that you can create for an Amazon Web Services account. For more information, see Firewall Manager Limits * in the WAF Developer Guide. * @throws InternalErrorException * The operation failed because of a system problem, even though the request was valid. Retry your request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws FmsException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample FmsClient.ListPolicies * @see AWS API * Documentation */ default ListPoliciesResponse listPolicies(Consumer listPoliciesRequest) throws ResourceNotFoundException, InvalidOperationException, LimitExceededException, InternalErrorException, AwsServiceException, SdkClientException, FmsException { return listPolicies(ListPoliciesRequest.builder().applyMutation(listPoliciesRequest).build()); } /** *

* Returns an array of PolicySummary objects. *

*
*

* This is a variant of {@link #listPolicies(software.amazon.awssdk.services.fms.model.ListPoliciesRequest)} * operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will * internally handle making service calls for you. *

*

* When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no * guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response * pages by making service calls until there are no pages left or your iteration stops. If there are errors in your * request, you will see the failures only after you start iterating through the iterable. *

* *

* The following are few ways to iterate through the response pages: *

* 1) Using a Stream * *
     * {@code
     * software.amazon.awssdk.services.fms.paginators.ListPoliciesIterable responses = client.listPoliciesPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.fms.paginators.ListPoliciesIterable responses = client.listPoliciesPaginator(request);
     *     for (software.amazon.awssdk.services.fms.model.ListPoliciesResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.fms.paginators.ListPoliciesIterable responses = client.listPoliciesPaginator(request);
     * responses.iterator().forEachRemaining(....);
     * }
     * 
*

* Please notice that the configuration of MaxResults won't limit the number of results you get with the * paginator. It only limits the number of results in each page. *

*

* Note: If you prefer to have control on service calls, use the * {@link #listPolicies(software.amazon.awssdk.services.fms.model.ListPoliciesRequest)} operation. *

* * @param listPoliciesRequest * @return A custom iterable that can be used to iterate through all the response pages. * @throws ResourceNotFoundException * The specified resource was not found. * @throws InvalidOperationException * The operation failed because there was nothing to do or the operation wasn't possible. For example, you * might have submitted an AssociateAdminAccount request for an account ID that was already set * as the Firewall Manager administrator. Or you might have tried to access a Region that's disabled by * default, and that you need to enable for the Firewall Manager administrator account and for Organizations * before you can access it. * @throws LimitExceededException * The operation exceeds a resource limit, for example, the maximum number of policy objects * that you can create for an Amazon Web Services account. For more information, see Firewall Manager Limits * in the WAF Developer Guide. * @throws InternalErrorException * The operation failed because of a system problem, even though the request was valid. Retry your request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws FmsException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample FmsClient.ListPolicies * @see AWS API * Documentation */ default ListPoliciesIterable listPoliciesPaginator(ListPoliciesRequest listPoliciesRequest) throws ResourceNotFoundException, InvalidOperationException, LimitExceededException, InternalErrorException, AwsServiceException, SdkClientException, FmsException { throw new UnsupportedOperationException(); } /** *

* Returns an array of PolicySummary objects. *

*
*

* This is a variant of {@link #listPolicies(software.amazon.awssdk.services.fms.model.ListPoliciesRequest)} * operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will * internally handle making service calls for you. *

*

* When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no * guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response * pages by making service calls until there are no pages left or your iteration stops. If there are errors in your * request, you will see the failures only after you start iterating through the iterable. *

* *

* The following are few ways to iterate through the response pages: *

* 1) Using a Stream * *
     * {@code
     * software.amazon.awssdk.services.fms.paginators.ListPoliciesIterable responses = client.listPoliciesPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.fms.paginators.ListPoliciesIterable responses = client.listPoliciesPaginator(request);
     *     for (software.amazon.awssdk.services.fms.model.ListPoliciesResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.fms.paginators.ListPoliciesIterable responses = client.listPoliciesPaginator(request);
     * responses.iterator().forEachRemaining(....);
     * }
     * 
*

* Please notice that the configuration of MaxResults won't limit the number of results you get with the * paginator. It only limits the number of results in each page. *

*

* Note: If you prefer to have control on service calls, use the * {@link #listPolicies(software.amazon.awssdk.services.fms.model.ListPoliciesRequest)} operation. *

*

* This is a convenience which creates an instance of the {@link ListPoliciesRequest.Builder} avoiding the need to * create one manually via {@link ListPoliciesRequest#builder()} *

* * @param listPoliciesRequest * A {@link Consumer} that will call methods on {@link ListPoliciesRequest.Builder} to create a request. * @return A custom iterable that can be used to iterate through all the response pages. * @throws ResourceNotFoundException * The specified resource was not found. * @throws InvalidOperationException * The operation failed because there was nothing to do or the operation wasn't possible. For example, you * might have submitted an AssociateAdminAccount request for an account ID that was already set * as the Firewall Manager administrator. Or you might have tried to access a Region that's disabled by * default, and that you need to enable for the Firewall Manager administrator account and for Organizations * before you can access it. * @throws LimitExceededException * The operation exceeds a resource limit, for example, the maximum number of policy objects * that you can create for an Amazon Web Services account. For more information, see Firewall Manager Limits * in the WAF Developer Guide. * @throws InternalErrorException * The operation failed because of a system problem, even though the request was valid. Retry your request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws FmsException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample FmsClient.ListPolicies * @see AWS API * Documentation */ default ListPoliciesIterable listPoliciesPaginator(Consumer listPoliciesRequest) throws ResourceNotFoundException, InvalidOperationException, LimitExceededException, InternalErrorException, AwsServiceException, SdkClientException, FmsException { return listPoliciesPaginator(ListPoliciesRequest.builder().applyMutation(listPoliciesRequest).build()); } /** *

* Returns an array of ProtocolsListDataSummary objects. *

* * @param listProtocolsListsRequest * @return Result of the ListProtocolsLists operation returned by the service. * @throws ResourceNotFoundException * The specified resource was not found. * @throws InvalidOperationException * The operation failed because there was nothing to do or the operation wasn't possible. For example, you * might have submitted an AssociateAdminAccount request for an account ID that was already set * as the Firewall Manager administrator. Or you might have tried to access a Region that's disabled by * default, and that you need to enable for the Firewall Manager administrator account and for Organizations * before you can access it. * @throws InternalErrorException * The operation failed because of a system problem, even though the request was valid. Retry your request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws FmsException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample FmsClient.ListProtocolsLists * @see AWS API * Documentation */ default ListProtocolsListsResponse listProtocolsLists(ListProtocolsListsRequest listProtocolsListsRequest) throws ResourceNotFoundException, InvalidOperationException, InternalErrorException, AwsServiceException, SdkClientException, FmsException { throw new UnsupportedOperationException(); } /** *

* Returns an array of ProtocolsListDataSummary objects. *

*
*

* This is a convenience which creates an instance of the {@link ListProtocolsListsRequest.Builder} avoiding the * need to create one manually via {@link ListProtocolsListsRequest#builder()} *

* * @param listProtocolsListsRequest * A {@link Consumer} that will call methods on {@link ListProtocolsListsRequest.Builder} to create a * request. * @return Result of the ListProtocolsLists operation returned by the service. * @throws ResourceNotFoundException * The specified resource was not found. * @throws InvalidOperationException * The operation failed because there was nothing to do or the operation wasn't possible. For example, you * might have submitted an AssociateAdminAccount request for an account ID that was already set * as the Firewall Manager administrator. Or you might have tried to access a Region that's disabled by * default, and that you need to enable for the Firewall Manager administrator account and for Organizations * before you can access it. * @throws InternalErrorException * The operation failed because of a system problem, even though the request was valid. Retry your request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws FmsException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample FmsClient.ListProtocolsLists * @see AWS API * Documentation */ default ListProtocolsListsResponse listProtocolsLists(Consumer listProtocolsListsRequest) throws ResourceNotFoundException, InvalidOperationException, InternalErrorException, AwsServiceException, SdkClientException, FmsException { return listProtocolsLists(ListProtocolsListsRequest.builder().applyMutation(listProtocolsListsRequest).build()); } /** *

* Returns an array of ProtocolsListDataSummary objects. *

*
*

* This is a variant of * {@link #listProtocolsLists(software.amazon.awssdk.services.fms.model.ListProtocolsListsRequest)} operation. The * return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle * making service calls for you. *

*

* When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no * guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response * pages by making service calls until there are no pages left or your iteration stops. If there are errors in your * request, you will see the failures only after you start iterating through the iterable. *

* *

* The following are few ways to iterate through the response pages: *

* 1) Using a Stream * *
     * {@code
     * software.amazon.awssdk.services.fms.paginators.ListProtocolsListsIterable responses = client.listProtocolsListsPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.fms.paginators.ListProtocolsListsIterable responses = client
     *             .listProtocolsListsPaginator(request);
     *     for (software.amazon.awssdk.services.fms.model.ListProtocolsListsResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.fms.paginators.ListProtocolsListsIterable responses = client.listProtocolsListsPaginator(request);
     * responses.iterator().forEachRemaining(....);
     * }
     * 
*

* Please notice that the configuration of MaxResults won't limit the number of results you get with the * paginator. It only limits the number of results in each page. *

*

* Note: If you prefer to have control on service calls, use the * {@link #listProtocolsLists(software.amazon.awssdk.services.fms.model.ListProtocolsListsRequest)} operation. *

* * @param listProtocolsListsRequest * @return A custom iterable that can be used to iterate through all the response pages. * @throws ResourceNotFoundException * The specified resource was not found. * @throws InvalidOperationException * The operation failed because there was nothing to do or the operation wasn't possible. For example, you * might have submitted an AssociateAdminAccount request for an account ID that was already set * as the Firewall Manager administrator. Or you might have tried to access a Region that's disabled by * default, and that you need to enable for the Firewall Manager administrator account and for Organizations * before you can access it. * @throws InternalErrorException * The operation failed because of a system problem, even though the request was valid. Retry your request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws FmsException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample FmsClient.ListProtocolsLists * @see AWS API * Documentation */ default ListProtocolsListsIterable listProtocolsListsPaginator(ListProtocolsListsRequest listProtocolsListsRequest) throws ResourceNotFoundException, InvalidOperationException, InternalErrorException, AwsServiceException, SdkClientException, FmsException { throw new UnsupportedOperationException(); } /** *

* Returns an array of ProtocolsListDataSummary objects. *

*
*

* This is a variant of * {@link #listProtocolsLists(software.amazon.awssdk.services.fms.model.ListProtocolsListsRequest)} operation. The * return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle * making service calls for you. *

*

* When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no * guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response * pages by making service calls until there are no pages left or your iteration stops. If there are errors in your * request, you will see the failures only after you start iterating through the iterable. *

* *

* The following are few ways to iterate through the response pages: *

* 1) Using a Stream * *
     * {@code
     * software.amazon.awssdk.services.fms.paginators.ListProtocolsListsIterable responses = client.listProtocolsListsPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.fms.paginators.ListProtocolsListsIterable responses = client
     *             .listProtocolsListsPaginator(request);
     *     for (software.amazon.awssdk.services.fms.model.ListProtocolsListsResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.fms.paginators.ListProtocolsListsIterable responses = client.listProtocolsListsPaginator(request);
     * responses.iterator().forEachRemaining(....);
     * }
     * 
*

* Please notice that the configuration of MaxResults won't limit the number of results you get with the * paginator. It only limits the number of results in each page. *

*

* Note: If you prefer to have control on service calls, use the * {@link #listProtocolsLists(software.amazon.awssdk.services.fms.model.ListProtocolsListsRequest)} operation. *

*

* This is a convenience which creates an instance of the {@link ListProtocolsListsRequest.Builder} avoiding the * need to create one manually via {@link ListProtocolsListsRequest#builder()} *

* * @param listProtocolsListsRequest * A {@link Consumer} that will call methods on {@link ListProtocolsListsRequest.Builder} to create a * request. * @return A custom iterable that can be used to iterate through all the response pages. * @throws ResourceNotFoundException * The specified resource was not found. * @throws InvalidOperationException * The operation failed because there was nothing to do or the operation wasn't possible. For example, you * might have submitted an AssociateAdminAccount request for an account ID that was already set * as the Firewall Manager administrator. Or you might have tried to access a Region that's disabled by * default, and that you need to enable for the Firewall Manager administrator account and for Organizations * before you can access it. * @throws InternalErrorException * The operation failed because of a system problem, even though the request was valid. Retry your request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws FmsException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample FmsClient.ListProtocolsLists * @see AWS API * Documentation */ default ListProtocolsListsIterable listProtocolsListsPaginator( Consumer listProtocolsListsRequest) throws ResourceNotFoundException, InvalidOperationException, InternalErrorException, AwsServiceException, SdkClientException, FmsException { return listProtocolsListsPaginator(ListProtocolsListsRequest.builder().applyMutation(listProtocolsListsRequest).build()); } /** *

* Retrieves the list of tags for the specified Amazon Web Services resource. *

* * @param listTagsForResourceRequest * @return Result of the ListTagsForResource operation returned by the service. * @throws ResourceNotFoundException * The specified resource was not found. * @throws InvalidOperationException * The operation failed because there was nothing to do or the operation wasn't possible. For example, you * might have submitted an AssociateAdminAccount request for an account ID that was already set * as the Firewall Manager administrator. Or you might have tried to access a Region that's disabled by * default, and that you need to enable for the Firewall Manager administrator account and for Organizations * before you can access it. * @throws InternalErrorException * The operation failed because of a system problem, even though the request was valid. Retry your request. * @throws InvalidInputException * The parameters of the request were invalid. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws FmsException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample FmsClient.ListTagsForResource * @see AWS API * Documentation */ default ListTagsForResourceResponse listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) throws ResourceNotFoundException, InvalidOperationException, InternalErrorException, InvalidInputException, AwsServiceException, SdkClientException, FmsException { throw new UnsupportedOperationException(); } /** *

* Retrieves the list of tags for the specified Amazon Web Services resource. *

*
*

* This is a convenience which creates an instance of the {@link ListTagsForResourceRequest.Builder} avoiding the * need to create one manually via {@link ListTagsForResourceRequest#builder()} *

* * @param listTagsForResourceRequest * A {@link Consumer} that will call methods on {@link ListTagsForResourceRequest.Builder} to create a * request. * @return Result of the ListTagsForResource operation returned by the service. * @throws ResourceNotFoundException * The specified resource was not found. * @throws InvalidOperationException * The operation failed because there was nothing to do or the operation wasn't possible. For example, you * might have submitted an AssociateAdminAccount request for an account ID that was already set * as the Firewall Manager administrator. Or you might have tried to access a Region that's disabled by * default, and that you need to enable for the Firewall Manager administrator account and for Organizations * before you can access it. * @throws InternalErrorException * The operation failed because of a system problem, even though the request was valid. Retry your request. * @throws InvalidInputException * The parameters of the request were invalid. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws FmsException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample FmsClient.ListTagsForResource * @see AWS API * Documentation */ default ListTagsForResourceResponse listTagsForResource( Consumer listTagsForResourceRequest) throws ResourceNotFoundException, InvalidOperationException, InternalErrorException, InvalidInputException, AwsServiceException, SdkClientException, FmsException { return listTagsForResource(ListTagsForResourceRequest.builder().applyMutation(listTagsForResourceRequest).build()); } /** *

* Retrieves a list of all of the third-party firewall policies that are associated with the third-party firewall * administrator's account. *

* * @param listThirdPartyFirewallFirewallPoliciesRequest * @return Result of the ListThirdPartyFirewallFirewallPolicies operation returned by the service. * @throws InvalidOperationException * The operation failed because there was nothing to do or the operation wasn't possible. For example, you * might have submitted an AssociateAdminAccount request for an account ID that was already set * as the Firewall Manager administrator. Or you might have tried to access a Region that's disabled by * default, and that you need to enable for the Firewall Manager administrator account and for Organizations * before you can access it. * @throws InvalidInputException * The parameters of the request were invalid. * @throws ResourceNotFoundException * The specified resource was not found. * @throws InternalErrorException * The operation failed because of a system problem, even though the request was valid. Retry your request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws FmsException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample FmsClient.ListThirdPartyFirewallFirewallPolicies * @see AWS API Documentation */ default ListThirdPartyFirewallFirewallPoliciesResponse listThirdPartyFirewallFirewallPolicies( ListThirdPartyFirewallFirewallPoliciesRequest listThirdPartyFirewallFirewallPoliciesRequest) throws InvalidOperationException, InvalidInputException, ResourceNotFoundException, InternalErrorException, AwsServiceException, SdkClientException, FmsException { throw new UnsupportedOperationException(); } /** *

* Retrieves a list of all of the third-party firewall policies that are associated with the third-party firewall * administrator's account. *

*
*

* This is a convenience which creates an instance of the * {@link ListThirdPartyFirewallFirewallPoliciesRequest.Builder} avoiding the need to create one manually via * {@link ListThirdPartyFirewallFirewallPoliciesRequest#builder()} *

* * @param listThirdPartyFirewallFirewallPoliciesRequest * A {@link Consumer} that will call methods on {@link ListThirdPartyFirewallFirewallPoliciesRequest.Builder} * to create a request. * @return Result of the ListThirdPartyFirewallFirewallPolicies operation returned by the service. * @throws InvalidOperationException * The operation failed because there was nothing to do or the operation wasn't possible. For example, you * might have submitted an AssociateAdminAccount request for an account ID that was already set * as the Firewall Manager administrator. Or you might have tried to access a Region that's disabled by * default, and that you need to enable for the Firewall Manager administrator account and for Organizations * before you can access it. * @throws InvalidInputException * The parameters of the request were invalid. * @throws ResourceNotFoundException * The specified resource was not found. * @throws InternalErrorException * The operation failed because of a system problem, even though the request was valid. Retry your request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws FmsException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample FmsClient.ListThirdPartyFirewallFirewallPolicies * @see AWS API Documentation */ default ListThirdPartyFirewallFirewallPoliciesResponse listThirdPartyFirewallFirewallPolicies( Consumer listThirdPartyFirewallFirewallPoliciesRequest) throws InvalidOperationException, InvalidInputException, ResourceNotFoundException, InternalErrorException, AwsServiceException, SdkClientException, FmsException { return listThirdPartyFirewallFirewallPolicies(ListThirdPartyFirewallFirewallPoliciesRequest.builder() .applyMutation(listThirdPartyFirewallFirewallPoliciesRequest).build()); } /** *

* Retrieves a list of all of the third-party firewall policies that are associated with the third-party firewall * administrator's account. *

*
*

* This is a variant of * {@link #listThirdPartyFirewallFirewallPolicies(software.amazon.awssdk.services.fms.model.ListThirdPartyFirewallFirewallPoliciesRequest)} * operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will * internally handle making service calls for you. *

*

* When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no * guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response * pages by making service calls until there are no pages left or your iteration stops. If there are errors in your * request, you will see the failures only after you start iterating through the iterable. *

* *

* The following are few ways to iterate through the response pages: *

* 1) Using a Stream * *
     * {@code
     * software.amazon.awssdk.services.fms.paginators.ListThirdPartyFirewallFirewallPoliciesIterable responses = client.listThirdPartyFirewallFirewallPoliciesPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.fms.paginators.ListThirdPartyFirewallFirewallPoliciesIterable responses = client
     *             .listThirdPartyFirewallFirewallPoliciesPaginator(request);
     *     for (software.amazon.awssdk.services.fms.model.ListThirdPartyFirewallFirewallPoliciesResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.fms.paginators.ListThirdPartyFirewallFirewallPoliciesIterable responses = client.listThirdPartyFirewallFirewallPoliciesPaginator(request);
     * responses.iterator().forEachRemaining(....);
     * }
     * 
*

* Please notice that the configuration of MaxResults won't limit the number of results you get with the * paginator. It only limits the number of results in each page. *

*

* Note: If you prefer to have control on service calls, use the * {@link #listThirdPartyFirewallFirewallPolicies(software.amazon.awssdk.services.fms.model.ListThirdPartyFirewallFirewallPoliciesRequest)} * operation. *

* * @param listThirdPartyFirewallFirewallPoliciesRequest * @return A custom iterable that can be used to iterate through all the response pages. * @throws InvalidOperationException * The operation failed because there was nothing to do or the operation wasn't possible. For example, you * might have submitted an AssociateAdminAccount request for an account ID that was already set * as the Firewall Manager administrator. Or you might have tried to access a Region that's disabled by * default, and that you need to enable for the Firewall Manager administrator account and for Organizations * before you can access it. * @throws InvalidInputException * The parameters of the request were invalid. * @throws ResourceNotFoundException * The specified resource was not found. * @throws InternalErrorException * The operation failed because of a system problem, even though the request was valid. Retry your request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws FmsException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample FmsClient.ListThirdPartyFirewallFirewallPolicies * @see AWS API Documentation */ default ListThirdPartyFirewallFirewallPoliciesIterable listThirdPartyFirewallFirewallPoliciesPaginator( ListThirdPartyFirewallFirewallPoliciesRequest listThirdPartyFirewallFirewallPoliciesRequest) throws InvalidOperationException, InvalidInputException, ResourceNotFoundException, InternalErrorException, AwsServiceException, SdkClientException, FmsException { throw new UnsupportedOperationException(); } /** *

* Retrieves a list of all of the third-party firewall policies that are associated with the third-party firewall * administrator's account. *

*
*

* This is a variant of * {@link #listThirdPartyFirewallFirewallPolicies(software.amazon.awssdk.services.fms.model.ListThirdPartyFirewallFirewallPoliciesRequest)} * operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will * internally handle making service calls for you. *

*

* When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no * guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response * pages by making service calls until there are no pages left or your iteration stops. If there are errors in your * request, you will see the failures only after you start iterating through the iterable. *

* *

* The following are few ways to iterate through the response pages: *

* 1) Using a Stream * *
     * {@code
     * software.amazon.awssdk.services.fms.paginators.ListThirdPartyFirewallFirewallPoliciesIterable responses = client.listThirdPartyFirewallFirewallPoliciesPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.fms.paginators.ListThirdPartyFirewallFirewallPoliciesIterable responses = client
     *             .listThirdPartyFirewallFirewallPoliciesPaginator(request);
     *     for (software.amazon.awssdk.services.fms.model.ListThirdPartyFirewallFirewallPoliciesResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.fms.paginators.ListThirdPartyFirewallFirewallPoliciesIterable responses = client.listThirdPartyFirewallFirewallPoliciesPaginator(request);
     * responses.iterator().forEachRemaining(....);
     * }
     * 
*

* Please notice that the configuration of MaxResults won't limit the number of results you get with the * paginator. It only limits the number of results in each page. *

*

* Note: If you prefer to have control on service calls, use the * {@link #listThirdPartyFirewallFirewallPolicies(software.amazon.awssdk.services.fms.model.ListThirdPartyFirewallFirewallPoliciesRequest)} * operation. *

*

* This is a convenience which creates an instance of the * {@link ListThirdPartyFirewallFirewallPoliciesRequest.Builder} avoiding the need to create one manually via * {@link ListThirdPartyFirewallFirewallPoliciesRequest#builder()} *

* * @param listThirdPartyFirewallFirewallPoliciesRequest * A {@link Consumer} that will call methods on {@link ListThirdPartyFirewallFirewallPoliciesRequest.Builder} * to create a request. * @return A custom iterable that can be used to iterate through all the response pages. * @throws InvalidOperationException * The operation failed because there was nothing to do or the operation wasn't possible. For example, you * might have submitted an AssociateAdminAccount request for an account ID that was already set * as the Firewall Manager administrator. Or you might have tried to access a Region that's disabled by * default, and that you need to enable for the Firewall Manager administrator account and for Organizations * before you can access it. * @throws InvalidInputException * The parameters of the request were invalid. * @throws ResourceNotFoundException * The specified resource was not found. * @throws InternalErrorException * The operation failed because of a system problem, even though the request was valid. Retry your request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws FmsException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample FmsClient.ListThirdPartyFirewallFirewallPolicies * @see AWS API Documentation */ default ListThirdPartyFirewallFirewallPoliciesIterable listThirdPartyFirewallFirewallPoliciesPaginator( Consumer listThirdPartyFirewallFirewallPoliciesRequest) throws InvalidOperationException, InvalidInputException, ResourceNotFoundException, InternalErrorException, AwsServiceException, SdkClientException, FmsException { return listThirdPartyFirewallFirewallPoliciesPaginator(ListThirdPartyFirewallFirewallPoliciesRequest.builder() .applyMutation(listThirdPartyFirewallFirewallPoliciesRequest).build()); } /** *

* Creates an Firewall Manager applications list. *

* * @param putAppsListRequest * @return Result of the PutAppsList operation returned by the service. * @throws ResourceNotFoundException * The specified resource was not found. * @throws InvalidOperationException * The operation failed because there was nothing to do or the operation wasn't possible. For example, you * might have submitted an AssociateAdminAccount request for an account ID that was already set * as the Firewall Manager administrator. Or you might have tried to access a Region that's disabled by * default, and that you need to enable for the Firewall Manager administrator account and for Organizations * before you can access it. * @throws InvalidInputException * The parameters of the request were invalid. * @throws LimitExceededException * The operation exceeds a resource limit, for example, the maximum number of policy objects * that you can create for an Amazon Web Services account. For more information, see Firewall Manager Limits * in the WAF Developer Guide. * @throws InternalErrorException * The operation failed because of a system problem, even though the request was valid. Retry your request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws FmsException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample FmsClient.PutAppsList * @see AWS API * Documentation */ default PutAppsListResponse putAppsList(PutAppsListRequest putAppsListRequest) throws ResourceNotFoundException, InvalidOperationException, InvalidInputException, LimitExceededException, InternalErrorException, AwsServiceException, SdkClientException, FmsException { throw new UnsupportedOperationException(); } /** *

* Creates an Firewall Manager applications list. *

*
*

* This is a convenience which creates an instance of the {@link PutAppsListRequest.Builder} avoiding the need to * create one manually via {@link PutAppsListRequest#builder()} *

* * @param putAppsListRequest * A {@link Consumer} that will call methods on {@link PutAppsListRequest.Builder} to create a request. * @return Result of the PutAppsList operation returned by the service. * @throws ResourceNotFoundException * The specified resource was not found. * @throws InvalidOperationException * The operation failed because there was nothing to do or the operation wasn't possible. For example, you * might have submitted an AssociateAdminAccount request for an account ID that was already set * as the Firewall Manager administrator. Or you might have tried to access a Region that's disabled by * default, and that you need to enable for the Firewall Manager administrator account and for Organizations * before you can access it. * @throws InvalidInputException * The parameters of the request were invalid. * @throws LimitExceededException * The operation exceeds a resource limit, for example, the maximum number of policy objects * that you can create for an Amazon Web Services account. For more information, see Firewall Manager Limits * in the WAF Developer Guide. * @throws InternalErrorException * The operation failed because of a system problem, even though the request was valid. Retry your request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws FmsException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample FmsClient.PutAppsList * @see AWS API * Documentation */ default PutAppsListResponse putAppsList(Consumer putAppsListRequest) throws ResourceNotFoundException, InvalidOperationException, InvalidInputException, LimitExceededException, InternalErrorException, AwsServiceException, SdkClientException, FmsException { return putAppsList(PutAppsListRequest.builder().applyMutation(putAppsListRequest).build()); } /** *

* Designates the IAM role and Amazon Simple Notification Service (SNS) topic that Firewall Manager uses to record * SNS logs. *

*

* To perform this action outside of the console, you must configure the SNS topic to allow the Firewall Manager * role AWSServiceRoleForFMS to publish SNS logs. For more information, see Firewall Manager * required permissions for API actions in the Firewall Manager Developer Guide. *

* * @param putNotificationChannelRequest * @return Result of the PutNotificationChannel operation returned by the service. * @throws ResourceNotFoundException * The specified resource was not found. * @throws InvalidOperationException * The operation failed because there was nothing to do or the operation wasn't possible. For example, you * might have submitted an AssociateAdminAccount request for an account ID that was already set * as the Firewall Manager administrator. Or you might have tried to access a Region that's disabled by * default, and that you need to enable for the Firewall Manager administrator account and for Organizations * before you can access it. * @throws InternalErrorException * The operation failed because of a system problem, even though the request was valid. Retry your request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws FmsException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample FmsClient.PutNotificationChannel * @see AWS * API Documentation */ default PutNotificationChannelResponse putNotificationChannel(PutNotificationChannelRequest putNotificationChannelRequest) throws ResourceNotFoundException, InvalidOperationException, InternalErrorException, AwsServiceException, SdkClientException, FmsException { throw new UnsupportedOperationException(); } /** *

* Designates the IAM role and Amazon Simple Notification Service (SNS) topic that Firewall Manager uses to record * SNS logs. *

*

* To perform this action outside of the console, you must configure the SNS topic to allow the Firewall Manager * role AWSServiceRoleForFMS to publish SNS logs. For more information, see Firewall Manager * required permissions for API actions in the Firewall Manager Developer Guide. *

*
*

* This is a convenience which creates an instance of the {@link PutNotificationChannelRequest.Builder} avoiding the * need to create one manually via {@link PutNotificationChannelRequest#builder()} *

* * @param putNotificationChannelRequest * A {@link Consumer} that will call methods on {@link PutNotificationChannelRequest.Builder} to create a * request. * @return Result of the PutNotificationChannel operation returned by the service. * @throws ResourceNotFoundException * The specified resource was not found. * @throws InvalidOperationException * The operation failed because there was nothing to do or the operation wasn't possible. For example, you * might have submitted an AssociateAdminAccount request for an account ID that was already set * as the Firewall Manager administrator. Or you might have tried to access a Region that's disabled by * default, and that you need to enable for the Firewall Manager administrator account and for Organizations * before you can access it. * @throws InternalErrorException * The operation failed because of a system problem, even though the request was valid. Retry your request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws FmsException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample FmsClient.PutNotificationChannel * @see AWS * API Documentation */ default PutNotificationChannelResponse putNotificationChannel( Consumer putNotificationChannelRequest) throws ResourceNotFoundException, InvalidOperationException, InternalErrorException, AwsServiceException, SdkClientException, FmsException { return putNotificationChannel(PutNotificationChannelRequest.builder().applyMutation(putNotificationChannelRequest) .build()); } /** *

* Creates an Firewall Manager policy. *

*

* Firewall Manager provides the following types of policies: *

*
    *
  • *

    * An WAF policy (type WAFV2), which defines rule groups to run first in the corresponding WAF web ACL and rule * groups to run last in the web ACL. *

    *
  • *
  • *

    * An WAF Classic policy (type WAF), which defines a rule group. *

    *
  • *
  • *

    * A Shield Advanced policy, which applies Shield Advanced protection to specified accounts and resources. *

    *
  • *
  • *

    * A security group policy, which manages VPC security groups across your Amazon Web Services organization. *

    *
  • *
  • *

    * An Network Firewall policy, which provides firewall rules to filter network traffic in specified Amazon VPCs. *

    *
  • *
  • *

    * A DNS Firewall policy, which provides Route 53 Resolver DNS Firewall rules to filter DNS queries for specified * VPCs. *

    *
  • *
*

* Each policy is specific to one of the types. If you want to enforce more than one policy type across accounts, * 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. *

* * @param putPolicyRequest * @return Result of the PutPolicy operation returned by the service. * @throws ResourceNotFoundException * The specified resource was not found. * @throws InvalidOperationException * The operation failed because there was nothing to do or the operation wasn't possible. For example, you * might have submitted an AssociateAdminAccount request for an account ID that was already set * as the Firewall Manager administrator. Or you might have tried to access a Region that's disabled by * default, and that you need to enable for the Firewall Manager administrator account and for Organizations * before you can access it. * @throws InvalidInputException * The parameters of the request were invalid. * @throws LimitExceededException * The operation exceeds a resource limit, for example, the maximum number of policy objects * that you can create for an Amazon Web Services account. For more information, see Firewall Manager Limits * in the WAF Developer Guide. * @throws InternalErrorException * The operation failed because of a system problem, even though the request was valid. Retry your request. * @throws InvalidTypeException * The value of the Type parameter is invalid. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws FmsException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample FmsClient.PutPolicy * @see AWS API * Documentation */ default PutPolicyResponse putPolicy(PutPolicyRequest putPolicyRequest) throws ResourceNotFoundException, InvalidOperationException, InvalidInputException, LimitExceededException, InternalErrorException, InvalidTypeException, AwsServiceException, SdkClientException, FmsException { throw new UnsupportedOperationException(); } /** *

* Creates an Firewall Manager policy. *

*

* Firewall Manager provides the following types of policies: *

*
    *
  • *

    * An WAF policy (type WAFV2), which defines rule groups to run first in the corresponding WAF web ACL and rule * groups to run last in the web ACL. *

    *
  • *
  • *

    * An WAF Classic policy (type WAF), which defines a rule group. *

    *
  • *
  • *

    * A Shield Advanced policy, which applies Shield Advanced protection to specified accounts and resources. *

    *
  • *
  • *

    * A security group policy, which manages VPC security groups across your Amazon Web Services organization. *

    *
  • *
  • *

    * An Network Firewall policy, which provides firewall rules to filter network traffic in specified Amazon VPCs. *

    *
  • *
  • *

    * A DNS Firewall policy, which provides Route 53 Resolver DNS Firewall rules to filter DNS queries for specified * VPCs. *

    *
  • *
*

* Each policy is specific to one of the types. If you want to enforce more than one policy type across accounts, * 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. *

*
*

* This is a convenience which creates an instance of the {@link PutPolicyRequest.Builder} avoiding the need to * create one manually via {@link PutPolicyRequest#builder()} *

* * @param putPolicyRequest * A {@link Consumer} that will call methods on {@link PutPolicyRequest.Builder} to create a request. * @return Result of the PutPolicy operation returned by the service. * @throws ResourceNotFoundException * The specified resource was not found. * @throws InvalidOperationException * The operation failed because there was nothing to do or the operation wasn't possible. For example, you * might have submitted an AssociateAdminAccount request for an account ID that was already set * as the Firewall Manager administrator. Or you might have tried to access a Region that's disabled by * default, and that you need to enable for the Firewall Manager administrator account and for Organizations * before you can access it. * @throws InvalidInputException * The parameters of the request were invalid. * @throws LimitExceededException * The operation exceeds a resource limit, for example, the maximum number of policy objects * that you can create for an Amazon Web Services account. For more information, see Firewall Manager Limits * in the WAF Developer Guide. * @throws InternalErrorException * The operation failed because of a system problem, even though the request was valid. Retry your request. * @throws InvalidTypeException * The value of the Type parameter is invalid. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws FmsException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample FmsClient.PutPolicy * @see AWS API * Documentation */ default PutPolicyResponse putPolicy(Consumer putPolicyRequest) throws ResourceNotFoundException, InvalidOperationException, InvalidInputException, LimitExceededException, InternalErrorException, InvalidTypeException, AwsServiceException, SdkClientException, FmsException { return putPolicy(PutPolicyRequest.builder().applyMutation(putPolicyRequest).build()); } /** *

* Creates an Firewall Manager protocols list. *

* * @param putProtocolsListRequest * @return Result of the PutProtocolsList operation returned by the service. * @throws ResourceNotFoundException * The specified resource was not found. * @throws InvalidOperationException * The operation failed because there was nothing to do or the operation wasn't possible. For example, you * might have submitted an AssociateAdminAccount request for an account ID that was already set * as the Firewall Manager administrator. Or you might have tried to access a Region that's disabled by * default, and that you need to enable for the Firewall Manager administrator account and for Organizations * before you can access it. * @throws InvalidInputException * The parameters of the request were invalid. * @throws LimitExceededException * The operation exceeds a resource limit, for example, the maximum number of policy objects * that you can create for an Amazon Web Services account. For more information, see Firewall Manager Limits * in the WAF Developer Guide. * @throws InternalErrorException * The operation failed because of a system problem, even though the request was valid. Retry your request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws FmsException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample FmsClient.PutProtocolsList * @see AWS API * Documentation */ default PutProtocolsListResponse putProtocolsList(PutProtocolsListRequest putProtocolsListRequest) throws ResourceNotFoundException, InvalidOperationException, InvalidInputException, LimitExceededException, InternalErrorException, AwsServiceException, SdkClientException, FmsException { throw new UnsupportedOperationException(); } /** *

* Creates an Firewall Manager protocols list. *

*
*

* This is a convenience which creates an instance of the {@link PutProtocolsListRequest.Builder} avoiding the need * to create one manually via {@link PutProtocolsListRequest#builder()} *

* * @param putProtocolsListRequest * A {@link Consumer} that will call methods on {@link PutProtocolsListRequest.Builder} to create a request. * @return Result of the PutProtocolsList operation returned by the service. * @throws ResourceNotFoundException * The specified resource was not found. * @throws InvalidOperationException * The operation failed because there was nothing to do or the operation wasn't possible. For example, you * might have submitted an AssociateAdminAccount request for an account ID that was already set * as the Firewall Manager administrator. Or you might have tried to access a Region that's disabled by * default, and that you need to enable for the Firewall Manager administrator account and for Organizations * before you can access it. * @throws InvalidInputException * The parameters of the request were invalid. * @throws LimitExceededException * The operation exceeds a resource limit, for example, the maximum number of policy objects * that you can create for an Amazon Web Services account. For more information, see Firewall Manager Limits * in the WAF Developer Guide. * @throws InternalErrorException * The operation failed because of a system problem, even though the request was valid. Retry your request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws FmsException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample FmsClient.PutProtocolsList * @see AWS API * Documentation */ default PutProtocolsListResponse putProtocolsList(Consumer putProtocolsListRequest) throws ResourceNotFoundException, InvalidOperationException, InvalidInputException, LimitExceededException, InternalErrorException, AwsServiceException, SdkClientException, FmsException { return putProtocolsList(PutProtocolsListRequest.builder().applyMutation(putProtocolsListRequest).build()); } /** *

* Adds one or more tags to an Amazon Web Services resource. *

* * @param tagResourceRequest * @return Result of the TagResource operation returned by the service. * @throws ResourceNotFoundException * The specified resource was not found. * @throws InvalidOperationException * The operation failed because there was nothing to do or the operation wasn't possible. For example, you * might have submitted an AssociateAdminAccount request for an account ID that was already set * as the Firewall Manager administrator. Or you might have tried to access a Region that's disabled by * default, and that you need to enable for the Firewall Manager administrator account and for Organizations * before you can access it. * @throws InternalErrorException * The operation failed because of a system problem, even though the request was valid. Retry your request. * @throws InvalidInputException * The parameters of the request were invalid. * @throws LimitExceededException * The operation exceeds a resource limit, for example, the maximum number of policy objects * that you can create for an Amazon Web Services account. For more information, see Firewall Manager Limits * in the WAF Developer Guide. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws FmsException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample FmsClient.TagResource * @see AWS API * Documentation */ default TagResourceResponse tagResource(TagResourceRequest tagResourceRequest) throws ResourceNotFoundException, InvalidOperationException, InternalErrorException, InvalidInputException, LimitExceededException, AwsServiceException, SdkClientException, FmsException { throw new UnsupportedOperationException(); } /** *

* Adds one or more tags to an Amazon Web Services resource. *

*
*

* This is a convenience which creates an instance of the {@link TagResourceRequest.Builder} avoiding the need to * create one manually via {@link TagResourceRequest#builder()} *

* * @param tagResourceRequest * A {@link Consumer} that will call methods on {@link TagResourceRequest.Builder} to create a request. * @return Result of the TagResource operation returned by the service. * @throws ResourceNotFoundException * The specified resource was not found. * @throws InvalidOperationException * The operation failed because there was nothing to do or the operation wasn't possible. For example, you * might have submitted an AssociateAdminAccount request for an account ID that was already set * as the Firewall Manager administrator. Or you might have tried to access a Region that's disabled by * default, and that you need to enable for the Firewall Manager administrator account and for Organizations * before you can access it. * @throws InternalErrorException * The operation failed because of a system problem, even though the request was valid. Retry your request. * @throws InvalidInputException * The parameters of the request were invalid. * @throws LimitExceededException * The operation exceeds a resource limit, for example, the maximum number of policy objects * that you can create for an Amazon Web Services account. For more information, see Firewall Manager Limits * in the WAF Developer Guide. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws FmsException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample FmsClient.TagResource * @see AWS API * Documentation */ default TagResourceResponse tagResource(Consumer tagResourceRequest) throws ResourceNotFoundException, InvalidOperationException, InternalErrorException, InvalidInputException, LimitExceededException, AwsServiceException, SdkClientException, FmsException { return tagResource(TagResourceRequest.builder().applyMutation(tagResourceRequest).build()); } /** *

* Removes one or more tags from an Amazon Web Services resource. *

* * @param untagResourceRequest * @return Result of the UntagResource operation returned by the service. * @throws ResourceNotFoundException * The specified resource was not found. * @throws InvalidOperationException * The operation failed because there was nothing to do or the operation wasn't possible. For example, you * might have submitted an AssociateAdminAccount request for an account ID that was already set * as the Firewall Manager administrator. Or you might have tried to access a Region that's disabled by * default, and that you need to enable for the Firewall Manager administrator account and for Organizations * before you can access it. * @throws InternalErrorException * The operation failed because of a system problem, even though the request was valid. Retry your request. * @throws InvalidInputException * The parameters of the request were invalid. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws FmsException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample FmsClient.UntagResource * @see AWS API * Documentation */ default UntagResourceResponse untagResource(UntagResourceRequest untagResourceRequest) throws ResourceNotFoundException, InvalidOperationException, InternalErrorException, InvalidInputException, AwsServiceException, SdkClientException, FmsException { throw new UnsupportedOperationException(); } /** *

* Removes one or more tags from an Amazon Web Services resource. *

*
*

* This is a convenience which creates an instance of the {@link UntagResourceRequest.Builder} avoiding the need to * create one manually via {@link UntagResourceRequest#builder()} *

* * @param untagResourceRequest * A {@link Consumer} that will call methods on {@link UntagResourceRequest.Builder} to create a request. * @return Result of the UntagResource operation returned by the service. * @throws ResourceNotFoundException * The specified resource was not found. * @throws InvalidOperationException * The operation failed because there was nothing to do or the operation wasn't possible. For example, you * might have submitted an AssociateAdminAccount request for an account ID that was already set * as the Firewall Manager administrator. Or you might have tried to access a Region that's disabled by * default, and that you need to enable for the Firewall Manager administrator account and for Organizations * before you can access it. * @throws InternalErrorException * The operation failed because of a system problem, even though the request was valid. Retry your request. * @throws InvalidInputException * The parameters of the request were invalid. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws FmsException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample FmsClient.UntagResource * @see AWS API * Documentation */ default UntagResourceResponse untagResource(Consumer untagResourceRequest) throws ResourceNotFoundException, InvalidOperationException, InternalErrorException, InvalidInputException, AwsServiceException, SdkClientException, FmsException { return untagResource(UntagResourceRequest.builder().applyMutation(untagResourceRequest).build()); } static ServiceMetadata serviceMetadata() { return ServiceMetadata.of(SERVICE_METADATA_ID); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy