@Generated(value="software.amazon.awssdk:codegen") public interface FmsAsyncClient extends SdkClient
builder() method.
This is the AWS Firewall Manager API Reference. This guide is for developers who need detailed information about the AWS Firewall Manager API actions, data types, and errors. For detailed information about AWS Firewall Manager features, see the AWS Firewall Manager Developer Guide.
| Modifier and Type | Field and Description |
|---|---|
static String |
SERVICE_NAME |
| Modifier and Type | Method and Description |
|---|---|
default CompletableFuture<AssociateAdminAccountResponse> |
associateAdminAccount(AssociateAdminAccountRequest associateAdminAccountRequest)
Sets the AWS Firewall Manager administrator account.
|
default CompletableFuture<AssociateAdminAccountResponse> |
associateAdminAccount(Consumer<AssociateAdminAccountRequest.Builder> associateAdminAccountRequest)
Sets the AWS Firewall Manager administrator account.
|
static FmsAsyncClientBuilder |
builder()
Create a builder that can be used to configure and create a
FmsAsyncClient. |
static FmsAsyncClient |
create()
Create a
FmsAsyncClient with the region loaded from the
DefaultAwsRegionProviderChain and credentials loaded from the
DefaultCredentialsProvider. |
default CompletableFuture<DeleteNotificationChannelResponse> |
deleteNotificationChannel(Consumer<DeleteNotificationChannelRequest.Builder> deleteNotificationChannelRequest)
Deletes an AWS Firewall Manager association with the IAM role and the Amazon Simple Notification Service (SNS)
topic that is used to record AWS Firewall Manager SNS logs.
|
default CompletableFuture<DeleteNotificationChannelResponse> |
deleteNotificationChannel(DeleteNotificationChannelRequest deleteNotificationChannelRequest)
Deletes an AWS Firewall Manager association with the IAM role and the Amazon Simple Notification Service (SNS)
topic that is used to record AWS Firewall Manager SNS logs.
|
default CompletableFuture<DeletePolicyResponse> |
deletePolicy(Consumer<DeletePolicyRequest.Builder> deletePolicyRequest)
Permanently deletes an AWS Firewall Manager policy.
|
default CompletableFuture<DeletePolicyResponse> |
deletePolicy(DeletePolicyRequest deletePolicyRequest)
Permanently deletes an AWS Firewall Manager policy.
|
default CompletableFuture<DisassociateAdminAccountResponse> |
disassociateAdminAccount(Consumer<DisassociateAdminAccountRequest.Builder> disassociateAdminAccountRequest)
Disassociates the account that has been set as the AWS Firewall Manager administrator account.
|
default CompletableFuture<DisassociateAdminAccountResponse> |
disassociateAdminAccount(DisassociateAdminAccountRequest disassociateAdminAccountRequest)
Disassociates the account that has been set as the AWS Firewall Manager administrator account.
|
default CompletableFuture<GetAdminAccountResponse> |
getAdminAccount(Consumer<GetAdminAccountRequest.Builder> getAdminAccountRequest)
Returns the AWS Organizations master account that is associated with AWS Firewall Manager as the AWS Firewall
Manager administrator.
|
default CompletableFuture<GetAdminAccountResponse> |
getAdminAccount(GetAdminAccountRequest getAdminAccountRequest)
Returns the AWS Organizations master account that is associated with AWS Firewall Manager as the AWS Firewall
Manager administrator.
|
default CompletableFuture<GetComplianceDetailResponse> |
getComplianceDetail(Consumer<GetComplianceDetailRequest.Builder> getComplianceDetailRequest)
Returns detailed compliance information about the specified member account.
|
default CompletableFuture<GetComplianceDetailResponse> |
getComplianceDetail(GetComplianceDetailRequest getComplianceDetailRequest)
Returns detailed compliance information about the specified member account.
|
default CompletableFuture<GetNotificationChannelResponse> |
getNotificationChannel(Consumer<GetNotificationChannelRequest.Builder> getNotificationChannelRequest)
Returns information about the Amazon Simple Notification Service (SNS) topic that is used to record AWS Firewall
Manager SNS logs.
|
default CompletableFuture<GetNotificationChannelResponse> |
getNotificationChannel(GetNotificationChannelRequest getNotificationChannelRequest)
Returns information about the Amazon Simple Notification Service (SNS) topic that is used to record AWS Firewall
Manager SNS logs.
|
default CompletableFuture<GetPolicyResponse> |
getPolicy(Consumer<GetPolicyRequest.Builder> getPolicyRequest)
Returns information about the specified AWS Firewall Manager policy.
|
default CompletableFuture<GetPolicyResponse> |
getPolicy(GetPolicyRequest getPolicyRequest)
Returns information about the specified AWS Firewall Manager policy.
|
default CompletableFuture<GetProtectionStatusResponse> |
getProtectionStatus(Consumer<GetProtectionStatusRequest.Builder> getProtectionStatusRequest)
If you created a Shield Advanced policy, returns policy-level attack summary information in the event of a
potential DDoS attack.
|
default CompletableFuture<GetProtectionStatusResponse> |
getProtectionStatus(GetProtectionStatusRequest getProtectionStatusRequest)
If you created a Shield Advanced policy, returns policy-level attack summary information in the event of a
potential DDoS attack.
|
default CompletableFuture<ListComplianceStatusResponse> |
listComplianceStatus(Consumer<ListComplianceStatusRequest.Builder> listComplianceStatusRequest)
Returns an array of
PolicyComplianceStatus objects in the response. |
default CompletableFuture<ListComplianceStatusResponse> |
listComplianceStatus(ListComplianceStatusRequest listComplianceStatusRequest)
Returns an array of
PolicyComplianceStatus objects in the response. |
default ListComplianceStatusPublisher |
listComplianceStatusPaginator(Consumer<ListComplianceStatusRequest.Builder> listComplianceStatusRequest)
Returns an array of
PolicyComplianceStatus objects in the response. |
default ListComplianceStatusPublisher |
listComplianceStatusPaginator(ListComplianceStatusRequest listComplianceStatusRequest)
Returns an array of
PolicyComplianceStatus objects in the response. |
default CompletableFuture<ListMemberAccountsResponse> |
listMemberAccounts(Consumer<ListMemberAccountsRequest.Builder> listMemberAccountsRequest)
Returns a
MemberAccounts object that lists the member accounts in the administrator's AWS
organization. |
default CompletableFuture<ListMemberAccountsResponse> |
listMemberAccounts(ListMemberAccountsRequest listMemberAccountsRequest)
Returns a
MemberAccounts object that lists the member accounts in the administrator's AWS
organization. |
default ListMemberAccountsPublisher |
listMemberAccountsPaginator(Consumer<ListMemberAccountsRequest.Builder> listMemberAccountsRequest)
Returns a
MemberAccounts object that lists the member accounts in the administrator's AWS
organization. |
default ListMemberAccountsPublisher |
listMemberAccountsPaginator(ListMemberAccountsRequest listMemberAccountsRequest)
Returns a
MemberAccounts object that lists the member accounts in the administrator's AWS
organization. |
default CompletableFuture<ListPoliciesResponse> |
listPolicies(Consumer<ListPoliciesRequest.Builder> listPoliciesRequest)
Returns an array of
PolicySummary objects in the response. |
default CompletableFuture<ListPoliciesResponse> |
listPolicies(ListPoliciesRequest listPoliciesRequest)
Returns an array of
PolicySummary objects in the response. |
default ListPoliciesPublisher |
listPoliciesPaginator(Consumer<ListPoliciesRequest.Builder> listPoliciesRequest)
Returns an array of
PolicySummary objects in the response. |
default ListPoliciesPublisher |
listPoliciesPaginator(ListPoliciesRequest listPoliciesRequest)
Returns an array of
PolicySummary objects in the response. |
default CompletableFuture<PutNotificationChannelResponse> |
putNotificationChannel(Consumer<PutNotificationChannelRequest.Builder> putNotificationChannelRequest)
Designates the IAM role and Amazon Simple Notification Service (SNS) topic that AWS Firewall Manager uses to
record SNS logs.
|
default CompletableFuture<PutNotificationChannelResponse> |
putNotificationChannel(PutNotificationChannelRequest putNotificationChannelRequest)
Designates the IAM role and Amazon Simple Notification Service (SNS) topic that AWS Firewall Manager uses to
record SNS logs.
|
default CompletableFuture<PutPolicyResponse> |
putPolicy(Consumer<PutPolicyRequest.Builder> putPolicyRequest)
Creates an AWS Firewall Manager policy.
|
default CompletableFuture<PutPolicyResponse> |
putPolicy(PutPolicyRequest putPolicyRequest)
Creates an AWS Firewall Manager policy.
|
serviceNameclosestatic final String SERVICE_NAME
static FmsAsyncClient create()
FmsAsyncClient with the region loaded from the
DefaultAwsRegionProviderChain and credentials loaded from the
DefaultCredentialsProvider.static FmsAsyncClientBuilder builder()
FmsAsyncClient.default CompletableFuture<AssociateAdminAccountResponse> associateAdminAccount(AssociateAdminAccountRequest associateAdminAccountRequest)
Sets the AWS Firewall Manager administrator account. AWS Firewall Manager must be associated with the master account your AWS organization or associated with a member account that has the appropriate permissions. If the account ID that you submit is not an AWS Organizations master account, AWS Firewall Manager will set the appropriate permissions for the given member account.
The account that you associate with AWS Firewall Manager is called the AWS Firewall Manager administrator account.
associateAdminAccountRequest - AssociateAdminAccount request, but the account ID that you submitted
was already set as the AWS Firewall Manager administrator.default CompletableFuture<AssociateAdminAccountResponse> associateAdminAccount(Consumer<AssociateAdminAccountRequest.Builder> associateAdminAccountRequest)
Sets the AWS Firewall Manager administrator account. AWS Firewall Manager must be associated with the master account your AWS organization or associated with a member account that has the appropriate permissions. If the account ID that you submit is not an AWS Organizations master account, AWS Firewall Manager will set the appropriate permissions for the given member account.
The account that you associate with AWS Firewall Manager is called the AWS Firewall Manager administrator account.
This is a convenience which creates an instance of the AssociateAdminAccountRequest.Builder avoiding the
need to create one manually via AssociateAdminAccountRequest.builder()
associateAdminAccountRequest - A Consumer that will call methods on AssociateAdminAccountRequest.Builder to create a
request.AssociateAdminAccount request, but the account ID that you submitted
was already set as the AWS Firewall Manager administrator.default CompletableFuture<DeleteNotificationChannelResponse> deleteNotificationChannel(DeleteNotificationChannelRequest deleteNotificationChannelRequest)
Deletes an AWS Firewall Manager association with the IAM role and the Amazon Simple Notification Service (SNS) topic that is used to record AWS Firewall Manager SNS logs.
deleteNotificationChannelRequest - AssociateAdminAccount request, but the account ID that you submitted
was already set as the AWS Firewall Manager administrator.default CompletableFuture<DeleteNotificationChannelResponse> deleteNotificationChannel(Consumer<DeleteNotificationChannelRequest.Builder> deleteNotificationChannelRequest)
Deletes an AWS Firewall Manager association with the IAM role and the Amazon Simple Notification Service (SNS) topic that is used to record AWS Firewall Manager SNS logs.
This is a convenience which creates an instance of the DeleteNotificationChannelRequest.Builder avoiding
the need to create one manually via DeleteNotificationChannelRequest.builder()
deleteNotificationChannelRequest - A Consumer that will call methods on DeleteNotificationChannelRequest.Builder to create a
request.AssociateAdminAccount request, but the account ID that you submitted
was already set as the AWS Firewall Manager administrator.default CompletableFuture<DeletePolicyResponse> deletePolicy(DeletePolicyRequest deletePolicyRequest)
Permanently deletes an AWS Firewall Manager policy.
deletePolicyRequest - AssociateAdminAccount request, but the account ID that you submitted
was already set as the AWS Firewall Manager administrator.default CompletableFuture<DeletePolicyResponse> deletePolicy(Consumer<DeletePolicyRequest.Builder> deletePolicyRequest)
Permanently deletes an AWS Firewall Manager policy.
This is a convenience which creates an instance of the DeletePolicyRequest.Builder avoiding the need to
create one manually via DeletePolicyRequest.builder()
deletePolicyRequest - A Consumer that will call methods on DeletePolicyRequest.Builder to create a request.AssociateAdminAccount request, but the account ID that you submitted
was already set as the AWS Firewall Manager administrator.default CompletableFuture<DisassociateAdminAccountResponse> disassociateAdminAccount(DisassociateAdminAccountRequest disassociateAdminAccountRequest)
Disassociates the account that has been set as the AWS Firewall Manager administrator account. To set a different
account as the administrator account, you must submit an AssociateAdminAccount request .
disassociateAdminAccountRequest - AssociateAdminAccount request, but the account ID that you submitted
was already set as the AWS Firewall Manager administrator.default CompletableFuture<DisassociateAdminAccountResponse> disassociateAdminAccount(Consumer<DisassociateAdminAccountRequest.Builder> disassociateAdminAccountRequest)
Disassociates the account that has been set as the AWS Firewall Manager administrator account. To set a different
account as the administrator account, you must submit an AssociateAdminAccount request .
This is a convenience which creates an instance of the DisassociateAdminAccountRequest.Builder avoiding
the need to create one manually via DisassociateAdminAccountRequest.builder()
disassociateAdminAccountRequest - A Consumer that will call methods on DisassociateAdminAccountRequest.Builder to create a
request.AssociateAdminAccount request, but the account ID that you submitted
was already set as the AWS Firewall Manager administrator.default CompletableFuture<GetAdminAccountResponse> getAdminAccount(GetAdminAccountRequest getAdminAccountRequest)
Returns the AWS Organizations master account that is associated with AWS Firewall Manager as the AWS Firewall Manager administrator.
getAdminAccountRequest - AssociateAdminAccount request, but the account ID that you submitted
was already set as the AWS Firewall Manager administrator.default CompletableFuture<GetAdminAccountResponse> getAdminAccount(Consumer<GetAdminAccountRequest.Builder> getAdminAccountRequest)
Returns the AWS Organizations master account that is associated with AWS Firewall Manager as the AWS Firewall Manager administrator.
This is a convenience which creates an instance of the GetAdminAccountRequest.Builder avoiding the need
to create one manually via GetAdminAccountRequest.builder()
getAdminAccountRequest - A Consumer that will call methods on GetAdminAccountRequest.Builder to create a request.AssociateAdminAccount request, but the account ID that you submitted
was already set as the AWS Firewall Manager administrator.default CompletableFuture<GetComplianceDetailResponse> getComplianceDetail(GetComplianceDetailRequest getComplianceDetailRequest)
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 non-compliant if the specified policy has not been applied to them.
getComplianceDetailRequest - default CompletableFuture<GetComplianceDetailResponse> getComplianceDetail(Consumer<GetComplianceDetailRequest.Builder> getComplianceDetailRequest)
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 non-compliant if the specified policy has not been applied to them.
This is a convenience which creates an instance of the GetComplianceDetailRequest.Builder avoiding the
need to create one manually via GetComplianceDetailRequest.builder()
getComplianceDetailRequest - A Consumer that will call methods on GetComplianceDetailRequest.Builder to create a
request.default CompletableFuture<GetNotificationChannelResponse> getNotificationChannel(GetNotificationChannelRequest getNotificationChannelRequest)
Returns information about the Amazon Simple Notification Service (SNS) topic that is used to record AWS Firewall Manager SNS logs.
getNotificationChannelRequest - AssociateAdminAccount request, but the account ID that you submitted
was already set as the AWS Firewall Manager administrator.default CompletableFuture<GetNotificationChannelResponse> getNotificationChannel(Consumer<GetNotificationChannelRequest.Builder> getNotificationChannelRequest)
Returns information about the Amazon Simple Notification Service (SNS) topic that is used to record AWS Firewall Manager SNS logs.
This is a convenience which creates an instance of the GetNotificationChannelRequest.Builder avoiding the
need to create one manually via GetNotificationChannelRequest.builder()
getNotificationChannelRequest - A Consumer that will call methods on GetNotificationChannelRequest.Builder to create a
request.AssociateAdminAccount request, but the account ID that you submitted
was already set as the AWS Firewall Manager administrator.default CompletableFuture<GetPolicyResponse> getPolicy(GetPolicyRequest getPolicyRequest)
Returns information about the specified AWS Firewall Manager policy.
getPolicyRequest - AssociateAdminAccount request, but the account ID that you submitted
was already set as the AWS Firewall Manager administrator.Type parameter is invalid.default CompletableFuture<GetPolicyResponse> getPolicy(Consumer<GetPolicyRequest.Builder> getPolicyRequest)
Returns information about the specified AWS Firewall Manager policy.
This is a convenience which creates an instance of the GetPolicyRequest.Builder avoiding the need to
create one manually via GetPolicyRequest.builder()
getPolicyRequest - A Consumer that will call methods on GetPolicyRequest.Builder to create a request.AssociateAdminAccount request, but the account ID that you submitted
was already set as the AWS Firewall Manager administrator.Type parameter is invalid.default CompletableFuture<GetProtectionStatusResponse> getProtectionStatus(GetProtectionStatusRequest getProtectionStatusRequest)
If you created a Shield Advanced policy, returns policy-level attack summary information in the event of a potential DDoS attack.
getProtectionStatusRequest - default CompletableFuture<GetProtectionStatusResponse> getProtectionStatus(Consumer<GetProtectionStatusRequest.Builder> getProtectionStatusRequest)
If you created a Shield Advanced policy, returns policy-level attack summary information in the event of a potential DDoS attack.
This is a convenience which creates an instance of the GetProtectionStatusRequest.Builder avoiding the
need to create one manually via GetProtectionStatusRequest.builder()
getProtectionStatusRequest - A Consumer that will call methods on GetProtectionStatusRequest.Builder to create a
request.default CompletableFuture<ListComplianceStatusResponse> listComplianceStatus(ListComplianceStatusRequest listComplianceStatusRequest)
Returns an array of PolicyComplianceStatus objects in the response. Use
PolicyComplianceStatus to get a summary of which member accounts are protected by the specified
policy.
listComplianceStatusRequest - default CompletableFuture<ListComplianceStatusResponse> listComplianceStatus(Consumer<ListComplianceStatusRequest.Builder> listComplianceStatusRequest)
Returns an array of PolicyComplianceStatus objects in the response. Use
PolicyComplianceStatus to get a summary of which member accounts are protected by the specified
policy.
This is a convenience which creates an instance of the ListComplianceStatusRequest.Builder avoiding the
need to create one manually via ListComplianceStatusRequest.builder()
listComplianceStatusRequest - A Consumer that will call methods on ListComplianceStatusRequest.Builder to create a
request.default ListComplianceStatusPublisher listComplianceStatusPaginator(ListComplianceStatusRequest listComplianceStatusRequest)
Returns an array of PolicyComplianceStatus objects in the response. Use
PolicyComplianceStatus to get a summary of which member accounts are protected by the specified
policy.
This is a variant of
listComplianceStatus(software.amazon.awssdk.services.fms.model.ListComplianceStatusRequest) operation.
The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will
internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe
method will result in a new Subscription i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.fms.paginators.ListComplianceStatusPublisher publisher = client.listComplianceStatusPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.fms.paginators.ListComplianceStatusPublisher publisher = client.listComplianceStatusPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.fms.model.ListComplianceStatusResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.fms.model.ListComplianceStatusResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
Note: If you prefer to have control on service calls, use the
listComplianceStatus(software.amazon.awssdk.services.fms.model.ListComplianceStatusRequest)
operation.
listComplianceStatusRequest - default ListComplianceStatusPublisher listComplianceStatusPaginator(Consumer<ListComplianceStatusRequest.Builder> listComplianceStatusRequest)
Returns an array of PolicyComplianceStatus objects in the response. Use
PolicyComplianceStatus to get a summary of which member accounts are protected by the specified
policy.
This is a variant of
listComplianceStatus(software.amazon.awssdk.services.fms.model.ListComplianceStatusRequest) operation.
The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will
internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe
method will result in a new Subscription i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.fms.paginators.ListComplianceStatusPublisher publisher = client.listComplianceStatusPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.fms.paginators.ListComplianceStatusPublisher publisher = client.listComplianceStatusPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.fms.model.ListComplianceStatusResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.fms.model.ListComplianceStatusResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
Note: If you prefer to have control on service calls, use the
listComplianceStatus(software.amazon.awssdk.services.fms.model.ListComplianceStatusRequest)
operation.
This is a convenience which creates an instance of the ListComplianceStatusRequest.Builder avoiding the
need to create one manually via ListComplianceStatusRequest.builder()
listComplianceStatusRequest - A Consumer that will call methods on ListComplianceStatusRequest.Builder to create a
request.default CompletableFuture<ListMemberAccountsResponse> listMemberAccounts(ListMemberAccountsRequest listMemberAccountsRequest)
Returns a MemberAccounts object that lists the member accounts in the administrator's AWS
organization.
The ListMemberAccounts must be submitted by the account that is set as the AWS Firewall Manager
administrator.
listMemberAccountsRequest - default CompletableFuture<ListMemberAccountsResponse> listMemberAccounts(Consumer<ListMemberAccountsRequest.Builder> listMemberAccountsRequest)
Returns a MemberAccounts object that lists the member accounts in the administrator's AWS
organization.
The ListMemberAccounts must be submitted by the account that is set as the AWS Firewall Manager
administrator.
This is a convenience which creates an instance of the ListMemberAccountsRequest.Builder avoiding the
need to create one manually via ListMemberAccountsRequest.builder()
listMemberAccountsRequest - A Consumer that will call methods on ListMemberAccountsRequest.Builder to create a
request.default ListMemberAccountsPublisher listMemberAccountsPaginator(ListMemberAccountsRequest listMemberAccountsRequest)
Returns a MemberAccounts object that lists the member accounts in the administrator's AWS
organization.
The ListMemberAccounts must be submitted by the account that is set as the AWS Firewall Manager
administrator.
This is a variant of
listMemberAccounts(software.amazon.awssdk.services.fms.model.ListMemberAccountsRequest) operation. The
return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will
internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe
method will result in a new Subscription i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.fms.paginators.ListMemberAccountsPublisher publisher = client.listMemberAccountsPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.fms.paginators.ListMemberAccountsPublisher publisher = client.listMemberAccountsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.fms.model.ListMemberAccountsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.fms.model.ListMemberAccountsResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
Note: If you prefer to have control on service calls, use the
listMemberAccounts(software.amazon.awssdk.services.fms.model.ListMemberAccountsRequest) operation.
listMemberAccountsRequest - default ListMemberAccountsPublisher listMemberAccountsPaginator(Consumer<ListMemberAccountsRequest.Builder> listMemberAccountsRequest)
Returns a MemberAccounts object that lists the member accounts in the administrator's AWS
organization.
The ListMemberAccounts must be submitted by the account that is set as the AWS Firewall Manager
administrator.
This is a variant of
listMemberAccounts(software.amazon.awssdk.services.fms.model.ListMemberAccountsRequest) operation. The
return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will
internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe
method will result in a new Subscription i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.fms.paginators.ListMemberAccountsPublisher publisher = client.listMemberAccountsPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.fms.paginators.ListMemberAccountsPublisher publisher = client.listMemberAccountsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.fms.model.ListMemberAccountsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.fms.model.ListMemberAccountsResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
Note: If you prefer to have control on service calls, use the
listMemberAccounts(software.amazon.awssdk.services.fms.model.ListMemberAccountsRequest) operation.
This is a convenience which creates an instance of the ListMemberAccountsRequest.Builder avoiding the
need to create one manually via ListMemberAccountsRequest.builder()
listMemberAccountsRequest - A Consumer that will call methods on ListMemberAccountsRequest.Builder to create a
request.default CompletableFuture<ListPoliciesResponse> listPolicies(ListPoliciesRequest listPoliciesRequest)
Returns an array of PolicySummary objects in the response.
listPoliciesRequest - AssociateAdminAccount request, but the account ID that you submitted
was already set as the AWS Firewall Manager administrator.policy objects that you can create for an AWS account. For more information, see Firewall Manager Limits
in the AWS WAF Developer Guide.default CompletableFuture<ListPoliciesResponse> listPolicies(Consumer<ListPoliciesRequest.Builder> listPoliciesRequest)
Returns an array of PolicySummary objects in the response.
This is a convenience which creates an instance of the ListPoliciesRequest.Builder avoiding the need to
create one manually via ListPoliciesRequest.builder()
listPoliciesRequest - A Consumer that will call methods on ListPoliciesRequest.Builder to create a request.AssociateAdminAccount request, but the account ID that you submitted
was already set as the AWS Firewall Manager administrator.policy objects that you can create for an AWS account. For more information, see Firewall Manager Limits
in the AWS WAF Developer Guide.default ListPoliciesPublisher listPoliciesPaginator(ListPoliciesRequest listPoliciesRequest)
Returns an array of PolicySummary objects in the response.
This is a variant of listPolicies(software.amazon.awssdk.services.fms.model.ListPoliciesRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages.
SDK will internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe
method will result in a new Subscription i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.fms.paginators.ListPoliciesPublisher publisher = client.listPoliciesPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.fms.paginators.ListPoliciesPublisher publisher = client.listPoliciesPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.fms.model.ListPoliciesResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.fms.model.ListPoliciesResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
Note: If you prefer to have control on service calls, use the
listPolicies(software.amazon.awssdk.services.fms.model.ListPoliciesRequest) operation.
listPoliciesRequest - AssociateAdminAccount request, but the account ID that you submitted
was already set as the AWS Firewall Manager administrator.policy objects that you can create for an AWS account. For more information, see Firewall Manager Limits
in the AWS WAF Developer Guide.default ListPoliciesPublisher listPoliciesPaginator(Consumer<ListPoliciesRequest.Builder> listPoliciesRequest)
Returns an array of PolicySummary objects in the response.
This is a variant of listPolicies(software.amazon.awssdk.services.fms.model.ListPoliciesRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages.
SDK will internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe
method will result in a new Subscription i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.fms.paginators.ListPoliciesPublisher publisher = client.listPoliciesPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.fms.paginators.ListPoliciesPublisher publisher = client.listPoliciesPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.fms.model.ListPoliciesResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.fms.model.ListPoliciesResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
Note: If you prefer to have control on service calls, use the
listPolicies(software.amazon.awssdk.services.fms.model.ListPoliciesRequest) operation.
This is a convenience which creates an instance of the ListPoliciesRequest.Builder avoiding the need to
create one manually via ListPoliciesRequest.builder()
listPoliciesRequest - A Consumer that will call methods on ListPoliciesRequest.Builder to create a request.AssociateAdminAccount request, but the account ID that you submitted
was already set as the AWS Firewall Manager administrator.policy objects that you can create for an AWS account. For more information, see Firewall Manager Limits
in the AWS WAF Developer Guide.default CompletableFuture<PutNotificationChannelResponse> putNotificationChannel(PutNotificationChannelRequest putNotificationChannelRequest)
Designates the IAM role and Amazon Simple Notification Service (SNS) topic that AWS Firewall Manager uses to record SNS logs.
putNotificationChannelRequest - AssociateAdminAccount request, but the account ID that you submitted
was already set as the AWS Firewall Manager administrator.default CompletableFuture<PutNotificationChannelResponse> putNotificationChannel(Consumer<PutNotificationChannelRequest.Builder> putNotificationChannelRequest)
Designates the IAM role and Amazon Simple Notification Service (SNS) topic that AWS Firewall Manager uses to record SNS logs.
This is a convenience which creates an instance of the PutNotificationChannelRequest.Builder avoiding the
need to create one manually via PutNotificationChannelRequest.builder()
putNotificationChannelRequest - A Consumer that will call methods on PutNotificationChannelRequest.Builder to create a
request.AssociateAdminAccount request, but the account ID that you submitted
was already set as the AWS Firewall Manager administrator.default CompletableFuture<PutPolicyResponse> putPolicy(PutPolicyRequest putPolicyRequest)
Creates an AWS Firewall Manager policy.
Firewall Manager provides two types of policies: A Shield Advanced policy, which applies Shield Advanced protection to specified accounts and resources, or a WAF policy, which contains a rule group and defines which resources are to be protected by that rule group. A policy is specific to either WAF or Shield Advanced. If you want to enforce both WAF rules and Shield Advanced protection across accounts, you can create multiple policies. You can create one or more policies for WAF rules, and one or more policies for Shield Advanced.
You must be subscribed to Shield Advanced to create a Shield Advanced policy. For more information on subscribing to Shield Advanced, see CreateSubscription.
putPolicyRequest - AssociateAdminAccount request, but the account ID that you submitted
was already set as the AWS Firewall Manager administrator.policy objects that you can create for an AWS account. For more information, see Firewall Manager Limits
in the AWS WAF Developer Guide.Type parameter is invalid.default CompletableFuture<PutPolicyResponse> putPolicy(Consumer<PutPolicyRequest.Builder> putPolicyRequest)
Creates an AWS Firewall Manager policy.
Firewall Manager provides two types of policies: A Shield Advanced policy, which applies Shield Advanced protection to specified accounts and resources, or a WAF policy, which contains a rule group and defines which resources are to be protected by that rule group. A policy is specific to either WAF or Shield Advanced. If you want to enforce both WAF rules and Shield Advanced protection across accounts, you can create multiple policies. You can create one or more policies for WAF rules, and one or more policies for Shield Advanced.
You must be subscribed to Shield Advanced to create a Shield Advanced policy. For more information on subscribing to Shield Advanced, see CreateSubscription.
This is a convenience which creates an instance of the PutPolicyRequest.Builder avoiding the need to
create one manually via PutPolicyRequest.builder()
putPolicyRequest - A Consumer that will call methods on PutPolicyRequest.Builder to create a request.AssociateAdminAccount request, but the account ID that you submitted
was already set as the AWS Firewall Manager administrator.policy objects that you can create for an AWS account. For more information, see Firewall Manager Limits
in the AWS WAF Developer Guide.Type parameter is invalid.Copyright © 2019. All rights reserved.