Interface NetworkSecurityManagerAsyncClient

All Superinterfaces:
AutoCloseable, AwsClient, SdkAutoCloseable, SdkClient

@Generated("software.amazon.awssdk:codegen") @SdkPublicApi @ThreadSafe public interface NetworkSecurityManagerAsyncClient extends AwsClient
Service client for accessing AWS Network Security Manager Customer API asynchronously. This can be created using the static builder() method.The asynchronous client performs non-blocking I/O when configured with any SdkAsyncHttpClient supported in the SDK. However, full non-blocking is not guaranteed as the async client may perform blocking calls in some cases such as credentials retrieval and endpoint discovery as part of the async API call.

AWS Network Security Manager helps you centrally configure and deploy network security protections across your organization. Supported protections include AWS WAF and AWS Shield Advanced. This centralized approach reduces the overhead of managing protections individually across accounts and ensures consistent security at scale.

You define reusable rules and templates, then combine them into policies. Next, you select the accounts and resources to protect with scopes and roll the protections out with deployments. For example, you can define a set of AWS WAF rules and group them into a policy. Then deploy that policy across all accounts in your organization with a single deployment.

This API reference describes the operations and data types for AWS Network Security Manager.

For conceptual information, tutorials, and guidance on writing rule configurations, see the AWS Network Security Manager Developer Guide. For the default quotas that apply to your account, see Quotas. For the service endpoints available in each Region, see AWS Network Security Manager endpoints and quotas in the AWS General Reference.

  • Field Details

  • Method Details

    • createDeployment

      default CompletableFuture<CreateDeploymentResponse> createDeployment(CreateDeploymentRequest createDeploymentRequest)

      Creates a deployment. A deployment applies one or more policies to the accounts and resources selected by a scope. Use isPublished to create the deployment in published (ACTIVE) or draft ( DRAFT) state. The response includes coverage information and any warnings about the deployment.

      Parameters:
      createDeploymentRequest -
      Returns:
      A Java Future containing the result of the CreateDeployment operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request failed validation. For details, see the reason and fieldList members of the response.
      • ServiceQuotaExceededException The request would exceed a service quota.
      • ConflictException The request conflicts with the current state of the resource. For example, the resource was modified concurrently, or it is in a state that does not allow the requested operation.
      • ServiceUnavailableException The service is temporarily unavailable. This is a retryable error.
      • TagPolicyViolationException The request violates a tag policy that is in effect for the account or organization.
      • InternalServerException The request processing failed because of an internal error in the service. This is a retryable error.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • ThrottlingException The request was denied because of request throttling. Reduce your request rate and try again.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • NetworkSecurityManagerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • createDeployment

      default CompletableFuture<CreateDeploymentResponse> createDeployment(Consumer<CreateDeploymentRequest.Builder> createDeploymentRequest)

      Creates a deployment. A deployment applies one or more policies to the accounts and resources selected by a scope. Use isPublished to create the deployment in published (ACTIVE) or draft ( DRAFT) state. The response includes coverage information and any warnings about the deployment.


      This is a convenience which creates an instance of the CreateDeploymentRequest.Builder avoiding the need to create one manually via CreateDeploymentRequest.builder()

      Parameters:
      createDeploymentRequest - A Consumer that will call methods on CreateDeploymentRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the CreateDeployment operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request failed validation. For details, see the reason and fieldList members of the response.
      • ServiceQuotaExceededException The request would exceed a service quota.
      • ConflictException The request conflicts with the current state of the resource. For example, the resource was modified concurrently, or it is in a state that does not allow the requested operation.
      • ServiceUnavailableException The service is temporarily unavailable. This is a retryable error.
      • TagPolicyViolationException The request violates a tag policy that is in effect for the account or organization.
      • InternalServerException The request processing failed because of an internal error in the service. This is a retryable error.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • ThrottlingException The request was denied because of request throttling. Reduce your request rate and try again.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • NetworkSecurityManagerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • createDeploymentSnapshot

      default CompletableFuture<CreateDeploymentSnapshotResponse> createDeploymentSnapshot(CreateDeploymentSnapshotRequest createDeploymentSnapshotRequest)

      Creates a snapshot of the current published version of the specified deployment.

      Parameters:
      createDeploymentSnapshotRequest -
      Returns:
      A Java Future containing the result of the CreateDeploymentSnapshot operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request failed validation. For details, see the reason and fieldList members of the response.
      • ServiceQuotaExceededException The request would exceed a service quota.
      • ConflictException The request conflicts with the current state of the resource. For example, the resource was modified concurrently, or it is in a state that does not allow the requested operation.
      • InternalServerException The request processing failed because of an internal error in the service. This is a retryable error.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • ResourceNotFoundException The specified resource was not found. Verify that the resource identifier is correct and that the resource exists, then try your request again.
      • ThrottlingException The request was denied because of request throttling. Reduce your request rate and try again.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • NetworkSecurityManagerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • createDeploymentSnapshot

      default CompletableFuture<CreateDeploymentSnapshotResponse> createDeploymentSnapshot(Consumer<CreateDeploymentSnapshotRequest.Builder> createDeploymentSnapshotRequest)

      Creates a snapshot of the current published version of the specified deployment.


      This is a convenience which creates an instance of the CreateDeploymentSnapshotRequest.Builder avoiding the need to create one manually via CreateDeploymentSnapshotRequest.builder()

      Parameters:
      createDeploymentSnapshotRequest - A Consumer that will call methods on CreateDeploymentSnapshotRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the CreateDeploymentSnapshot operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request failed validation. For details, see the reason and fieldList members of the response.
      • ServiceQuotaExceededException The request would exceed a service quota.
      • ConflictException The request conflicts with the current state of the resource. For example, the resource was modified concurrently, or it is in a state that does not allow the requested operation.
      • InternalServerException The request processing failed because of an internal error in the service. This is a retryable error.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • ResourceNotFoundException The specified resource was not found. Verify that the resource identifier is correct and that the resource exists, then try your request again.
      • ThrottlingException The request was denied because of request throttling. Reduce your request rate and try again.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • NetworkSecurityManagerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • createPolicy

      default CompletableFuture<CreatePolicyResponse> createPolicy(CreatePolicyRequest createPolicyRequest)

      Creates a policy. A policy combines templates and rules with enforcement settings for a firewall type, such as AWS WAF or AWS Shield Advanced. Use isPublished to create the policy in published ( ACTIVE) or draft (DRAFT) state.

      Parameters:
      createPolicyRequest -
      Returns:
      A Java Future containing the result of the CreatePolicy operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request failed validation. For details, see the reason and fieldList members of the response.
      • ServiceQuotaExceededException The request would exceed a service quota.
      • ConflictException The request conflicts with the current state of the resource. For example, the resource was modified concurrently, or it is in a state that does not allow the requested operation.
      • ServiceUnavailableException The service is temporarily unavailable. This is a retryable error.
      • TagPolicyViolationException The request violates a tag policy that is in effect for the account or organization.
      • InternalServerException The request processing failed because of an internal error in the service. This is a retryable error.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • ThrottlingException The request was denied because of request throttling. Reduce your request rate and try again.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • NetworkSecurityManagerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • createPolicy

      default CompletableFuture<CreatePolicyResponse> createPolicy(Consumer<CreatePolicyRequest.Builder> createPolicyRequest)

      Creates a policy. A policy combines templates and rules with enforcement settings for a firewall type, such as AWS WAF or AWS Shield Advanced. Use isPublished to create the policy in published ( ACTIVE) or draft (DRAFT) state.


      This is a convenience which creates an instance of the CreatePolicyRequest.Builder avoiding the need to create one manually via CreatePolicyRequest.builder()

      Parameters:
      createPolicyRequest - A Consumer that will call methods on CreatePolicyRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the CreatePolicy operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request failed validation. For details, see the reason and fieldList members of the response.
      • ServiceQuotaExceededException The request would exceed a service quota.
      • ConflictException The request conflicts with the current state of the resource. For example, the resource was modified concurrently, or it is in a state that does not allow the requested operation.
      • ServiceUnavailableException The service is temporarily unavailable. This is a retryable error.
      • TagPolicyViolationException The request violates a tag policy that is in effect for the account or organization.
      • InternalServerException The request processing failed because of an internal error in the service. This is a retryable error.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • ThrottlingException The request was denied because of request throttling. Reduce your request rate and try again.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • NetworkSecurityManagerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • createPolicySnapshot

      default CompletableFuture<CreatePolicySnapshotResponse> createPolicySnapshot(CreatePolicySnapshotRequest createPolicySnapshotRequest)

      Creates a snapshot of the current published version of the specified policy.

      Parameters:
      createPolicySnapshotRequest -
      Returns:
      A Java Future containing the result of the CreatePolicySnapshot operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request failed validation. For details, see the reason and fieldList members of the response.
      • ServiceQuotaExceededException The request would exceed a service quota.
      • ConflictException The request conflicts with the current state of the resource. For example, the resource was modified concurrently, or it is in a state that does not allow the requested operation.
      • InternalServerException The request processing failed because of an internal error in the service. This is a retryable error.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • ResourceNotFoundException The specified resource was not found. Verify that the resource identifier is correct and that the resource exists, then try your request again.
      • ThrottlingException The request was denied because of request throttling. Reduce your request rate and try again.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • NetworkSecurityManagerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • createPolicySnapshot

      default CompletableFuture<CreatePolicySnapshotResponse> createPolicySnapshot(Consumer<CreatePolicySnapshotRequest.Builder> createPolicySnapshotRequest)

      Creates a snapshot of the current published version of the specified policy.


      This is a convenience which creates an instance of the CreatePolicySnapshotRequest.Builder avoiding the need to create one manually via CreatePolicySnapshotRequest.builder()

      Parameters:
      createPolicySnapshotRequest - A Consumer that will call methods on CreatePolicySnapshotRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the CreatePolicySnapshot operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request failed validation. For details, see the reason and fieldList members of the response.
      • ServiceQuotaExceededException The request would exceed a service quota.
      • ConflictException The request conflicts with the current state of the resource. For example, the resource was modified concurrently, or it is in a state that does not allow the requested operation.
      • InternalServerException The request processing failed because of an internal error in the service. This is a retryable error.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • ResourceNotFoundException The specified resource was not found. Verify that the resource identifier is correct and that the resource exists, then try your request again.
      • ThrottlingException The request was denied because of request throttling. Reduce your request rate and try again.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • NetworkSecurityManagerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • createRule

      default CompletableFuture<CreateRuleResponse> createRule(CreateRuleRequest createRuleRequest)

      Creates a rule. A rule defines a network security configuration to enforce, such as an AWS WAF rule group or configuration data. Use isPublished to create the rule in published (ACTIVE) or draft ( DRAFT) state.

      Parameters:
      createRuleRequest -
      Returns:
      A Java Future containing the result of the CreateRule operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request failed validation. For details, see the reason and fieldList members of the response.
      • ServiceQuotaExceededException The request would exceed a service quota.
      • ConflictException The request conflicts with the current state of the resource. For example, the resource was modified concurrently, or it is in a state that does not allow the requested operation.
      • ServiceUnavailableException The service is temporarily unavailable. This is a retryable error.
      • TagPolicyViolationException The request violates a tag policy that is in effect for the account or organization.
      • InternalServerException The request processing failed because of an internal error in the service. This is a retryable error.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • ThrottlingException The request was denied because of request throttling. Reduce your request rate and try again.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • NetworkSecurityManagerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • createRule

      default CompletableFuture<CreateRuleResponse> createRule(Consumer<CreateRuleRequest.Builder> createRuleRequest)

      Creates a rule. A rule defines a network security configuration to enforce, such as an AWS WAF rule group or configuration data. Use isPublished to create the rule in published (ACTIVE) or draft ( DRAFT) state.


      This is a convenience which creates an instance of the CreateRuleRequest.Builder avoiding the need to create one manually via CreateRuleRequest.builder()

      Parameters:
      createRuleRequest - A Consumer that will call methods on CreateRuleRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the CreateRule operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request failed validation. For details, see the reason and fieldList members of the response.
      • ServiceQuotaExceededException The request would exceed a service quota.
      • ConflictException The request conflicts with the current state of the resource. For example, the resource was modified concurrently, or it is in a state that does not allow the requested operation.
      • ServiceUnavailableException The service is temporarily unavailable. This is a retryable error.
      • TagPolicyViolationException The request violates a tag policy that is in effect for the account or organization.
      • InternalServerException The request processing failed because of an internal error in the service. This is a retryable error.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • ThrottlingException The request was denied because of request throttling. Reduce your request rate and try again.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • NetworkSecurityManagerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • createRuleSnapshot

      default CompletableFuture<CreateRuleSnapshotResponse> createRuleSnapshot(CreateRuleSnapshotRequest createRuleSnapshotRequest)

      Creates a snapshot of the current published version of the specified rule. A snapshot is an immutable, versioned copy that other resources can reference.

      Parameters:
      createRuleSnapshotRequest -
      Returns:
      A Java Future containing the result of the CreateRuleSnapshot operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request failed validation. For details, see the reason and fieldList members of the response.
      • ServiceQuotaExceededException The request would exceed a service quota.
      • ConflictException The request conflicts with the current state of the resource. For example, the resource was modified concurrently, or it is in a state that does not allow the requested operation.
      • InternalServerException The request processing failed because of an internal error in the service. This is a retryable error.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • ResourceNotFoundException The specified resource was not found. Verify that the resource identifier is correct and that the resource exists, then try your request again.
      • ThrottlingException The request was denied because of request throttling. Reduce your request rate and try again.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • NetworkSecurityManagerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • createRuleSnapshot

      default CompletableFuture<CreateRuleSnapshotResponse> createRuleSnapshot(Consumer<CreateRuleSnapshotRequest.Builder> createRuleSnapshotRequest)

      Creates a snapshot of the current published version of the specified rule. A snapshot is an immutable, versioned copy that other resources can reference.


      This is a convenience which creates an instance of the CreateRuleSnapshotRequest.Builder avoiding the need to create one manually via CreateRuleSnapshotRequest.builder()

      Parameters:
      createRuleSnapshotRequest - A Consumer that will call methods on CreateRuleSnapshotRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the CreateRuleSnapshot operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request failed validation. For details, see the reason and fieldList members of the response.
      • ServiceQuotaExceededException The request would exceed a service quota.
      • ConflictException The request conflicts with the current state of the resource. For example, the resource was modified concurrently, or it is in a state that does not allow the requested operation.
      • InternalServerException The request processing failed because of an internal error in the service. This is a retryable error.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • ResourceNotFoundException The specified resource was not found. Verify that the resource identifier is correct and that the resource exists, then try your request again.
      • ThrottlingException The request was denied because of request throttling. Reduce your request rate and try again.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • NetworkSecurityManagerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • createScope

      default CompletableFuture<CreateScopeResponse> createScope(CreateScopeRequest createScopeRequest)

      Creates a scope. A scope selects the accounts and resources that a deployment applies to. Use isPublished to create the scope in published (ACTIVE) or draft (DRAFT) state.

      Parameters:
      createScopeRequest -
      Returns:
      A Java Future containing the result of the CreateScope operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request failed validation. For details, see the reason and fieldList members of the response.
      • ServiceQuotaExceededException The request would exceed a service quota.
      • ConflictException The request conflicts with the current state of the resource. For example, the resource was modified concurrently, or it is in a state that does not allow the requested operation.
      • ServiceUnavailableException The service is temporarily unavailable. This is a retryable error.
      • TagPolicyViolationException The request violates a tag policy that is in effect for the account or organization.
      • InternalServerException The request processing failed because of an internal error in the service. This is a retryable error.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • ThrottlingException The request was denied because of request throttling. Reduce your request rate and try again.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • NetworkSecurityManagerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • createScope

      default CompletableFuture<CreateScopeResponse> createScope(Consumer<CreateScopeRequest.Builder> createScopeRequest)

      Creates a scope. A scope selects the accounts and resources that a deployment applies to. Use isPublished to create the scope in published (ACTIVE) or draft (DRAFT) state.


      This is a convenience which creates an instance of the CreateScopeRequest.Builder avoiding the need to create one manually via CreateScopeRequest.builder()

      Parameters:
      createScopeRequest - A Consumer that will call methods on CreateScopeRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the CreateScope operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request failed validation. For details, see the reason and fieldList members of the response.
      • ServiceQuotaExceededException The request would exceed a service quota.
      • ConflictException The request conflicts with the current state of the resource. For example, the resource was modified concurrently, or it is in a state that does not allow the requested operation.
      • ServiceUnavailableException The service is temporarily unavailable. This is a retryable error.
      • TagPolicyViolationException The request violates a tag policy that is in effect for the account or organization.
      • InternalServerException The request processing failed because of an internal error in the service. This is a retryable error.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • ThrottlingException The request was denied because of request throttling. Reduce your request rate and try again.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • NetworkSecurityManagerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • createScopeSnapshot

      default CompletableFuture<CreateScopeSnapshotResponse> createScopeSnapshot(CreateScopeSnapshotRequest createScopeSnapshotRequest)

      Creates a snapshot of the current published version of the specified scope.

      Parameters:
      createScopeSnapshotRequest -
      Returns:
      A Java Future containing the result of the CreateScopeSnapshot operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request failed validation. For details, see the reason and fieldList members of the response.
      • ServiceQuotaExceededException The request would exceed a service quota.
      • ConflictException The request conflicts with the current state of the resource. For example, the resource was modified concurrently, or it is in a state that does not allow the requested operation.
      • InternalServerException The request processing failed because of an internal error in the service. This is a retryable error.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • ResourceNotFoundException The specified resource was not found. Verify that the resource identifier is correct and that the resource exists, then try your request again.
      • ThrottlingException The request was denied because of request throttling. Reduce your request rate and try again.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • NetworkSecurityManagerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • createScopeSnapshot

      default CompletableFuture<CreateScopeSnapshotResponse> createScopeSnapshot(Consumer<CreateScopeSnapshotRequest.Builder> createScopeSnapshotRequest)

      Creates a snapshot of the current published version of the specified scope.


      This is a convenience which creates an instance of the CreateScopeSnapshotRequest.Builder avoiding the need to create one manually via CreateScopeSnapshotRequest.builder()

      Parameters:
      createScopeSnapshotRequest - A Consumer that will call methods on CreateScopeSnapshotRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the CreateScopeSnapshot operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request failed validation. For details, see the reason and fieldList members of the response.
      • ServiceQuotaExceededException The request would exceed a service quota.
      • ConflictException The request conflicts with the current state of the resource. For example, the resource was modified concurrently, or it is in a state that does not allow the requested operation.
      • InternalServerException The request processing failed because of an internal error in the service. This is a retryable error.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • ResourceNotFoundException The specified resource was not found. Verify that the resource identifier is correct and that the resource exists, then try your request again.
      • ThrottlingException The request was denied because of request throttling. Reduce your request rate and try again.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • NetworkSecurityManagerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • createTemplate

      default CompletableFuture<CreateTemplateResponse> createTemplate(CreateTemplateRequest createTemplateRequest)

      Creates a template. A template groups one or more rules to simplify reuse across policies. You can also associate rules with a policy directly, without a template. Use isPublished to create the template in published (ACTIVE) or draft (DRAFT) state.

      Parameters:
      createTemplateRequest -
      Returns:
      A Java Future containing the result of the CreateTemplate operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request failed validation. For details, see the reason and fieldList members of the response.
      • ServiceQuotaExceededException The request would exceed a service quota.
      • ConflictException The request conflicts with the current state of the resource. For example, the resource was modified concurrently, or it is in a state that does not allow the requested operation.
      • ServiceUnavailableException The service is temporarily unavailable. This is a retryable error.
      • TagPolicyViolationException The request violates a tag policy that is in effect for the account or organization.
      • InternalServerException The request processing failed because of an internal error in the service. This is a retryable error.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • ThrottlingException The request was denied because of request throttling. Reduce your request rate and try again.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • NetworkSecurityManagerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • createTemplate

      default CompletableFuture<CreateTemplateResponse> createTemplate(Consumer<CreateTemplateRequest.Builder> createTemplateRequest)

      Creates a template. A template groups one or more rules to simplify reuse across policies. You can also associate rules with a policy directly, without a template. Use isPublished to create the template in published (ACTIVE) or draft (DRAFT) state.


      This is a convenience which creates an instance of the CreateTemplateRequest.Builder avoiding the need to create one manually via CreateTemplateRequest.builder()

      Parameters:
      createTemplateRequest - A Consumer that will call methods on CreateTemplateRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the CreateTemplate operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request failed validation. For details, see the reason and fieldList members of the response.
      • ServiceQuotaExceededException The request would exceed a service quota.
      • ConflictException The request conflicts with the current state of the resource. For example, the resource was modified concurrently, or it is in a state that does not allow the requested operation.
      • ServiceUnavailableException The service is temporarily unavailable. This is a retryable error.
      • TagPolicyViolationException The request violates a tag policy that is in effect for the account or organization.
      • InternalServerException The request processing failed because of an internal error in the service. This is a retryable error.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • ThrottlingException The request was denied because of request throttling. Reduce your request rate and try again.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • NetworkSecurityManagerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • createTemplateSnapshot

      default CompletableFuture<CreateTemplateSnapshotResponse> createTemplateSnapshot(CreateTemplateSnapshotRequest createTemplateSnapshotRequest)

      Creates a snapshot of the current published version of the specified template.

      Parameters:
      createTemplateSnapshotRequest -
      Returns:
      A Java Future containing the result of the CreateTemplateSnapshot operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request failed validation. For details, see the reason and fieldList members of the response.
      • ServiceQuotaExceededException The request would exceed a service quota.
      • ConflictException The request conflicts with the current state of the resource. For example, the resource was modified concurrently, or it is in a state that does not allow the requested operation.
      • InternalServerException The request processing failed because of an internal error in the service. This is a retryable error.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • ResourceNotFoundException The specified resource was not found. Verify that the resource identifier is correct and that the resource exists, then try your request again.
      • ThrottlingException The request was denied because of request throttling. Reduce your request rate and try again.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • NetworkSecurityManagerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • createTemplateSnapshot

      default CompletableFuture<CreateTemplateSnapshotResponse> createTemplateSnapshot(Consumer<CreateTemplateSnapshotRequest.Builder> createTemplateSnapshotRequest)

      Creates a snapshot of the current published version of the specified template.


      This is a convenience which creates an instance of the CreateTemplateSnapshotRequest.Builder avoiding the need to create one manually via CreateTemplateSnapshotRequest.builder()

      Parameters:
      createTemplateSnapshotRequest - A Consumer that will call methods on CreateTemplateSnapshotRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the CreateTemplateSnapshot operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request failed validation. For details, see the reason and fieldList members of the response.
      • ServiceQuotaExceededException The request would exceed a service quota.
      • ConflictException The request conflicts with the current state of the resource. For example, the resource was modified concurrently, or it is in a state that does not allow the requested operation.
      • InternalServerException The request processing failed because of an internal error in the service. This is a retryable error.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • ResourceNotFoundException The specified resource was not found. Verify that the resource identifier is correct and that the resource exists, then try your request again.
      • ThrottlingException The request was denied because of request throttling. Reduce your request rate and try again.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • NetworkSecurityManagerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • deleteAdminAccount

      default CompletableFuture<DeleteAdminAccountResponse> deleteAdminAccount(DeleteAdminAccountRequest deleteAdminAccountRequest)

      Removes the specified AWS Network Security Manager administrator account.

      Parameters:
      deleteAdminAccountRequest -
      Returns:
      A Java Future containing the result of the DeleteAdminAccount operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request failed validation. For details, see the reason and fieldList members of the response.
      • InternalServerException The request processing failed because of an internal error in the service. This is a retryable error.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • ThrottlingException The request was denied because of request throttling. Reduce your request rate and try again.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • NetworkSecurityManagerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • deleteAdminAccount

      default CompletableFuture<DeleteAdminAccountResponse> deleteAdminAccount(Consumer<DeleteAdminAccountRequest.Builder> deleteAdminAccountRequest)

      Removes the specified AWS Network Security Manager administrator account.


      This is a convenience which creates an instance of the DeleteAdminAccountRequest.Builder avoiding the need to create one manually via DeleteAdminAccountRequest.builder()

      Parameters:
      deleteAdminAccountRequest - A Consumer that will call methods on DeleteAdminAccountRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the DeleteAdminAccount operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request failed validation. For details, see the reason and fieldList members of the response.
      • InternalServerException The request processing failed because of an internal error in the service. This is a retryable error.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • ThrottlingException The request was denied because of request throttling. Reduce your request rate and try again.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • NetworkSecurityManagerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • deleteDeployment

      default CompletableFuture<DeleteDeploymentResponse> deleteDeployment(DeleteDeploymentRequest deleteDeploymentRequest)

      Deletes the specified deployment.

      Parameters:
      deleteDeploymentRequest -
      Returns:
      A Java Future containing the result of the DeleteDeployment operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request failed validation. For details, see the reason and fieldList members of the response.
      • ConflictException The request conflicts with the current state of the resource. For example, the resource was modified concurrently, or it is in a state that does not allow the requested operation.
      • InternalServerException The request processing failed because of an internal error in the service. This is a retryable error.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • ThrottlingException The request was denied because of request throttling. Reduce your request rate and try again.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • NetworkSecurityManagerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • deleteDeployment

      default CompletableFuture<DeleteDeploymentResponse> deleteDeployment(Consumer<DeleteDeploymentRequest.Builder> deleteDeploymentRequest)

      Deletes the specified deployment.


      This is a convenience which creates an instance of the DeleteDeploymentRequest.Builder avoiding the need to create one manually via DeleteDeploymentRequest.builder()

      Parameters:
      deleteDeploymentRequest - A Consumer that will call methods on DeleteDeploymentRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the DeleteDeployment operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request failed validation. For details, see the reason and fieldList members of the response.
      • ConflictException The request conflicts with the current state of the resource. For example, the resource was modified concurrently, or it is in a state that does not allow the requested operation.
      • InternalServerException The request processing failed because of an internal error in the service. This is a retryable error.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • ThrottlingException The request was denied because of request throttling. Reduce your request rate and try again.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • NetworkSecurityManagerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • deletePolicy

      default CompletableFuture<DeletePolicyResponse> deletePolicy(DeletePolicyRequest deletePolicyRequest)

      Deletes the specified policy.

      Parameters:
      deletePolicyRequest -
      Returns:
      A Java Future containing the result of the DeletePolicy operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request failed validation. For details, see the reason and fieldList members of the response.
      • ConflictException The request conflicts with the current state of the resource. For example, the resource was modified concurrently, or it is in a state that does not allow the requested operation.
      • InternalServerException The request processing failed because of an internal error in the service. This is a retryable error.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • ThrottlingException The request was denied because of request throttling. Reduce your request rate and try again.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • NetworkSecurityManagerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • deletePolicy

      default CompletableFuture<DeletePolicyResponse> deletePolicy(Consumer<DeletePolicyRequest.Builder> deletePolicyRequest)

      Deletes the specified policy.


      This is a convenience which creates an instance of the DeletePolicyRequest.Builder avoiding the need to create one manually via DeletePolicyRequest.builder()

      Parameters:
      deletePolicyRequest - A Consumer that will call methods on DeletePolicyRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the DeletePolicy operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request failed validation. For details, see the reason and fieldList members of the response.
      • ConflictException The request conflicts with the current state of the resource. For example, the resource was modified concurrently, or it is in a state that does not allow the requested operation.
      • InternalServerException The request processing failed because of an internal error in the service. This is a retryable error.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • ThrottlingException The request was denied because of request throttling. Reduce your request rate and try again.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • NetworkSecurityManagerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • deleteRule

      default CompletableFuture<DeleteRuleResponse> deleteRule(DeleteRuleRequest deleteRuleRequest)

      Deletes the specified rule.

      Parameters:
      deleteRuleRequest -
      Returns:
      A Java Future containing the result of the DeleteRule operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request failed validation. For details, see the reason and fieldList members of the response.
      • ConflictException The request conflicts with the current state of the resource. For example, the resource was modified concurrently, or it is in a state that does not allow the requested operation.
      • InternalServerException The request processing failed because of an internal error in the service. This is a retryable error.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • ThrottlingException The request was denied because of request throttling. Reduce your request rate and try again.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • NetworkSecurityManagerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • deleteRule

      default CompletableFuture<DeleteRuleResponse> deleteRule(Consumer<DeleteRuleRequest.Builder> deleteRuleRequest)

      Deletes the specified rule.


      This is a convenience which creates an instance of the DeleteRuleRequest.Builder avoiding the need to create one manually via DeleteRuleRequest.builder()

      Parameters:
      deleteRuleRequest - A Consumer that will call methods on DeleteRuleRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the DeleteRule operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request failed validation. For details, see the reason and fieldList members of the response.
      • ConflictException The request conflicts with the current state of the resource. For example, the resource was modified concurrently, or it is in a state that does not allow the requested operation.
      • InternalServerException The request processing failed because of an internal error in the service. This is a retryable error.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • ThrottlingException The request was denied because of request throttling. Reduce your request rate and try again.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • NetworkSecurityManagerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • deleteScope

      default CompletableFuture<DeleteScopeResponse> deleteScope(DeleteScopeRequest deleteScopeRequest)

      Deletes the specified scope.

      Parameters:
      deleteScopeRequest -
      Returns:
      A Java Future containing the result of the DeleteScope operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request failed validation. For details, see the reason and fieldList members of the response.
      • ConflictException The request conflicts with the current state of the resource. For example, the resource was modified concurrently, or it is in a state that does not allow the requested operation.
      • InternalServerException The request processing failed because of an internal error in the service. This is a retryable error.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • ThrottlingException The request was denied because of request throttling. Reduce your request rate and try again.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • NetworkSecurityManagerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • deleteScope

      default CompletableFuture<DeleteScopeResponse> deleteScope(Consumer<DeleteScopeRequest.Builder> deleteScopeRequest)

      Deletes the specified scope.


      This is a convenience which creates an instance of the DeleteScopeRequest.Builder avoiding the need to create one manually via DeleteScopeRequest.builder()

      Parameters:
      deleteScopeRequest - A Consumer that will call methods on DeleteScopeRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the DeleteScope operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request failed validation. For details, see the reason and fieldList members of the response.
      • ConflictException The request conflicts with the current state of the resource. For example, the resource was modified concurrently, or it is in a state that does not allow the requested operation.
      • InternalServerException The request processing failed because of an internal error in the service. This is a retryable error.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • ThrottlingException The request was denied because of request throttling. Reduce your request rate and try again.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • NetworkSecurityManagerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • deleteTemplate

      default CompletableFuture<DeleteTemplateResponse> deleteTemplate(DeleteTemplateRequest deleteTemplateRequest)

      Deletes the specified template.

      Parameters:
      deleteTemplateRequest -
      Returns:
      A Java Future containing the result of the DeleteTemplate operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request failed validation. For details, see the reason and fieldList members of the response.
      • ConflictException The request conflicts with the current state of the resource. For example, the resource was modified concurrently, or it is in a state that does not allow the requested operation.
      • InternalServerException The request processing failed because of an internal error in the service. This is a retryable error.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • ThrottlingException The request was denied because of request throttling. Reduce your request rate and try again.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • NetworkSecurityManagerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • deleteTemplate

      default CompletableFuture<DeleteTemplateResponse> deleteTemplate(Consumer<DeleteTemplateRequest.Builder> deleteTemplateRequest)

      Deletes the specified template.


      This is a convenience which creates an instance of the DeleteTemplateRequest.Builder avoiding the need to create one manually via DeleteTemplateRequest.builder()

      Parameters:
      deleteTemplateRequest - A Consumer that will call methods on DeleteTemplateRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the DeleteTemplate operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request failed validation. For details, see the reason and fieldList members of the response.
      • ConflictException The request conflicts with the current state of the resource. For example, the resource was modified concurrently, or it is in a state that does not allow the requested operation.
      • InternalServerException The request processing failed because of an internal error in the service. This is a retryable error.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • ThrottlingException The request was denied because of request throttling. Reduce your request rate and try again.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • NetworkSecurityManagerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • generateRuleConfiguration

      default CompletableFuture<GenerateRuleConfigurationResponse> generateRuleConfiguration(GenerateRuleConfigurationRequest generateRuleConfigurationRequest)

      Generates a rule configuration from a natural-language description. Provide a prompt along with the rule's firewall type and rule type. The service returns a configuration that you can use when you create or update a rule. If you also provide an existing configuration, the service edits that configuration instead of generating a new one.

      Parameters:
      generateRuleConfigurationRequest -
      Returns:
      A Java Future containing the result of the GenerateRuleConfiguration operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request failed validation. For details, see the reason and fieldList members of the response.
      • InternalServerException The request processing failed because of an internal error in the service. This is a retryable error.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • ThrottlingException The request was denied because of request throttling. Reduce your request rate and try again.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • NetworkSecurityManagerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • generateRuleConfiguration

      default CompletableFuture<GenerateRuleConfigurationResponse> generateRuleConfiguration(Consumer<GenerateRuleConfigurationRequest.Builder> generateRuleConfigurationRequest)

      Generates a rule configuration from a natural-language description. Provide a prompt along with the rule's firewall type and rule type. The service returns a configuration that you can use when you create or update a rule. If you also provide an existing configuration, the service edits that configuration instead of generating a new one.


      This is a convenience which creates an instance of the GenerateRuleConfigurationRequest.Builder avoiding the need to create one manually via GenerateRuleConfigurationRequest.builder()

      Parameters:
      generateRuleConfigurationRequest - A Consumer that will call methods on GenerateRuleConfigurationRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the GenerateRuleConfiguration operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request failed validation. For details, see the reason and fieldList members of the response.
      • InternalServerException The request processing failed because of an internal error in the service. This is a retryable error.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • ThrottlingException The request was denied because of request throttling. Reduce your request rate and try again.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • NetworkSecurityManagerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getAdminAccount

      default CompletableFuture<GetAdminAccountResponse> getAdminAccount(GetAdminAccountRequest getAdminAccountRequest)

      Retrieves the details of the specified AWS Network Security Manager administrator account.

      Parameters:
      getAdminAccountRequest -
      Returns:
      A Java Future containing the result of the GetAdminAccount operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request failed validation. For details, see the reason and fieldList members of the response.
      • InternalServerException The request processing failed because of an internal error in the service. This is a retryable error.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • ResourceNotFoundException The specified resource was not found. Verify that the resource identifier is correct and that the resource exists, then try your request again.
      • ThrottlingException The request was denied because of request throttling. Reduce your request rate and try again.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • NetworkSecurityManagerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getAdminAccount

      default CompletableFuture<GetAdminAccountResponse> getAdminAccount(Consumer<GetAdminAccountRequest.Builder> getAdminAccountRequest)

      Retrieves the details of the specified AWS Network Security Manager administrator account.


      This is a convenience which creates an instance of the GetAdminAccountRequest.Builder avoiding the need to create one manually via GetAdminAccountRequest.builder()

      Parameters:
      getAdminAccountRequest - A Consumer that will call methods on GetAdminAccountRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the GetAdminAccount operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request failed validation. For details, see the reason and fieldList members of the response.
      • InternalServerException The request processing failed because of an internal error in the service. This is a retryable error.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • ResourceNotFoundException The specified resource was not found. Verify that the resource identifier is correct and that the resource exists, then try your request again.
      • ThrottlingException The request was denied because of request throttling. Reduce your request rate and try again.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • NetworkSecurityManagerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getDeployment

      default CompletableFuture<GetDeploymentResponse> getDeployment(GetDeploymentRequest getDeploymentRequest)

      Retrieves the details of the specified deployment, including coverage information and any warnings.

      Parameters:
      getDeploymentRequest -
      Returns:
      A Java Future containing the result of the GetDeployment operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request failed validation. For details, see the reason and fieldList members of the response.
      • InternalServerException The request processing failed because of an internal error in the service. This is a retryable error.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • ResourceNotFoundException The specified resource was not found. Verify that the resource identifier is correct and that the resource exists, then try your request again.
      • ThrottlingException The request was denied because of request throttling. Reduce your request rate and try again.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • NetworkSecurityManagerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getDeployment

      default CompletableFuture<GetDeploymentResponse> getDeployment(Consumer<GetDeploymentRequest.Builder> getDeploymentRequest)

      Retrieves the details of the specified deployment, including coverage information and any warnings.


      This is a convenience which creates an instance of the GetDeploymentRequest.Builder avoiding the need to create one manually via GetDeploymentRequest.builder()

      Parameters:
      getDeploymentRequest - A Consumer that will call methods on GetDeploymentRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the GetDeployment operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request failed validation. For details, see the reason and fieldList members of the response.
      • InternalServerException The request processing failed because of an internal error in the service. This is a retryable error.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • ResourceNotFoundException The specified resource was not found. Verify that the resource identifier is correct and that the resource exists, then try your request again.
      • ThrottlingException The request was denied because of request throttling. Reduce your request rate and try again.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • NetworkSecurityManagerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getPolicy

      default CompletableFuture<GetPolicyResponse> getPolicy(GetPolicyRequest getPolicyRequest)

      Retrieves the details of the specified policy.

      Parameters:
      getPolicyRequest -
      Returns:
      A Java Future containing the result of the GetPolicy operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request failed validation. For details, see the reason and fieldList members of the response.
      • InternalServerException The request processing failed because of an internal error in the service. This is a retryable error.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • ResourceNotFoundException The specified resource was not found. Verify that the resource identifier is correct and that the resource exists, then try your request again.
      • ThrottlingException The request was denied because of request throttling. Reduce your request rate and try again.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • NetworkSecurityManagerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getPolicy

      default CompletableFuture<GetPolicyResponse> getPolicy(Consumer<GetPolicyRequest.Builder> getPolicyRequest)

      Retrieves the details of the specified policy.


      This is a convenience which creates an instance of the GetPolicyRequest.Builder avoiding the need to create one manually via GetPolicyRequest.builder()

      Parameters:
      getPolicyRequest - A Consumer that will call methods on GetPolicyRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the GetPolicy operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request failed validation. For details, see the reason and fieldList members of the response.
      • InternalServerException The request processing failed because of an internal error in the service. This is a retryable error.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • ResourceNotFoundException The specified resource was not found. Verify that the resource identifier is correct and that the resource exists, then try your request again.
      • ThrottlingException The request was denied because of request throttling. Reduce your request rate and try again.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • NetworkSecurityManagerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getRule

      default CompletableFuture<GetRuleResponse> getRule(GetRuleRequest getRuleRequest)

      Retrieves the details of the specified rule.

      Parameters:
      getRuleRequest -
      Returns:
      A Java Future containing the result of the GetRule operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request failed validation. For details, see the reason and fieldList members of the response.
      • InternalServerException The request processing failed because of an internal error in the service. This is a retryable error.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • ResourceNotFoundException The specified resource was not found. Verify that the resource identifier is correct and that the resource exists, then try your request again.
      • ThrottlingException The request was denied because of request throttling. Reduce your request rate and try again.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • NetworkSecurityManagerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getRule

      Retrieves the details of the specified rule.


      This is a convenience which creates an instance of the GetRuleRequest.Builder avoiding the need to create one manually via GetRuleRequest.builder()

      Parameters:
      getRuleRequest - A Consumer that will call methods on GetRuleRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the GetRule operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request failed validation. For details, see the reason and fieldList members of the response.
      • InternalServerException The request processing failed because of an internal error in the service. This is a retryable error.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • ResourceNotFoundException The specified resource was not found. Verify that the resource identifier is correct and that the resource exists, then try your request again.
      • ThrottlingException The request was denied because of request throttling. Reduce your request rate and try again.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • NetworkSecurityManagerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getScope

      default CompletableFuture<GetScopeResponse> getScope(GetScopeRequest getScopeRequest)

      Retrieves the details of the specified scope.

      Parameters:
      getScopeRequest -
      Returns:
      A Java Future containing the result of the GetScope operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request failed validation. For details, see the reason and fieldList members of the response.
      • InternalServerException The request processing failed because of an internal error in the service. This is a retryable error.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • ResourceNotFoundException The specified resource was not found. Verify that the resource identifier is correct and that the resource exists, then try your request again.
      • ThrottlingException The request was denied because of request throttling. Reduce your request rate and try again.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • NetworkSecurityManagerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getScope

      Retrieves the details of the specified scope.


      This is a convenience which creates an instance of the GetScopeRequest.Builder avoiding the need to create one manually via GetScopeRequest.builder()

      Parameters:
      getScopeRequest - A Consumer that will call methods on GetScopeRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the GetScope operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request failed validation. For details, see the reason and fieldList members of the response.
      • InternalServerException The request processing failed because of an internal error in the service. This is a retryable error.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • ResourceNotFoundException The specified resource was not found. Verify that the resource identifier is correct and that the resource exists, then try your request again.
      • ThrottlingException The request was denied because of request throttling. Reduce your request rate and try again.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • NetworkSecurityManagerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getTemplate

      default CompletableFuture<GetTemplateResponse> getTemplate(GetTemplateRequest getTemplateRequest)

      Retrieves the details of the specified template.

      Parameters:
      getTemplateRequest -
      Returns:
      A Java Future containing the result of the GetTemplate operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request failed validation. For details, see the reason and fieldList members of the response.
      • InternalServerException The request processing failed because of an internal error in the service. This is a retryable error.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • ResourceNotFoundException The specified resource was not found. Verify that the resource identifier is correct and that the resource exists, then try your request again.
      • ThrottlingException The request was denied because of request throttling. Reduce your request rate and try again.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • NetworkSecurityManagerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getTemplate

      default CompletableFuture<GetTemplateResponse> getTemplate(Consumer<GetTemplateRequest.Builder> getTemplateRequest)

      Retrieves the details of the specified template.


      This is a convenience which creates an instance of the GetTemplateRequest.Builder avoiding the need to create one manually via GetTemplateRequest.builder()

      Parameters:
      getTemplateRequest - A Consumer that will call methods on GetTemplateRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the GetTemplate operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request failed validation. For details, see the reason and fieldList members of the response.
      • InternalServerException The request processing failed because of an internal error in the service. This is a retryable error.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • ResourceNotFoundException The specified resource was not found. Verify that the resource identifier is correct and that the resource exists, then try your request again.
      • ThrottlingException The request was denied because of request throttling. Reduce your request rate and try again.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • NetworkSecurityManagerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listAdminAccounts

      default CompletableFuture<ListAdminAccountsResponse> listAdminAccounts(ListAdminAccountsRequest listAdminAccountsRequest)

      Lists the AWS Network Security Manager administrator accounts in the organization.

      Parameters:
      listAdminAccountsRequest -
      Returns:
      A Java Future containing the result of the ListAdminAccounts operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request failed validation. For details, see the reason and fieldList members of the response.
      • InternalServerException The request processing failed because of an internal error in the service. This is a retryable error.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • ThrottlingException The request was denied because of request throttling. Reduce your request rate and try again.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • NetworkSecurityManagerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listAdminAccounts

      default CompletableFuture<ListAdminAccountsResponse> listAdminAccounts(Consumer<ListAdminAccountsRequest.Builder> listAdminAccountsRequest)

      Lists the AWS Network Security Manager administrator accounts in the organization.


      This is a convenience which creates an instance of the ListAdminAccountsRequest.Builder avoiding the need to create one manually via ListAdminAccountsRequest.builder()

      Parameters:
      listAdminAccountsRequest - A Consumer that will call methods on ListAdminAccountsRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the ListAdminAccounts operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request failed validation. For details, see the reason and fieldList members of the response.
      • InternalServerException The request processing failed because of an internal error in the service. This is a retryable error.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • ThrottlingException The request was denied because of request throttling. Reduce your request rate and try again.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • NetworkSecurityManagerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listAdminAccountsPaginator

      default ListAdminAccountsPublisher listAdminAccountsPaginator(ListAdminAccountsRequest listAdminAccountsRequest)

      This is a variant of listAdminAccounts(software.amazon.awssdk.services.networksecuritymanager.model.ListAdminAccountsRequest) 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.networksecuritymanager.paginators.ListAdminAccountsPublisher publisher = client.listAdminAccountsPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.networksecuritymanager.paginators.ListAdminAccountsPublisher publisher = client.listAdminAccountsPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.networksecuritymanager.model.ListAdminAccountsResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.networksecuritymanager.model.ListAdminAccountsResponse response) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      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 listAdminAccounts(software.amazon.awssdk.services.networksecuritymanager.model.ListAdminAccountsRequest) operation.

      Parameters:
      listAdminAccountsRequest -
      Returns:
      A custom publisher that can be subscribed to request a stream of response pages.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request failed validation. For details, see the reason and fieldList members of the response.
      • InternalServerException The request processing failed because of an internal error in the service. This is a retryable error.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • ThrottlingException The request was denied because of request throttling. Reduce your request rate and try again.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • NetworkSecurityManagerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listAdminAccountsPaginator

      default ListAdminAccountsPublisher listAdminAccountsPaginator(Consumer<ListAdminAccountsRequest.Builder> listAdminAccountsRequest)

      This is a variant of listAdminAccounts(software.amazon.awssdk.services.networksecuritymanager.model.ListAdminAccountsRequest) 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.networksecuritymanager.paginators.ListAdminAccountsPublisher publisher = client.listAdminAccountsPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.networksecuritymanager.paginators.ListAdminAccountsPublisher publisher = client.listAdminAccountsPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.networksecuritymanager.model.ListAdminAccountsResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.networksecuritymanager.model.ListAdminAccountsResponse response) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      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 listAdminAccounts(software.amazon.awssdk.services.networksecuritymanager.model.ListAdminAccountsRequest) operation.


      This is a convenience which creates an instance of the ListAdminAccountsRequest.Builder avoiding the need to create one manually via ListAdminAccountsRequest.builder()

      Parameters:
      listAdminAccountsRequest - A Consumer that will call methods on ListAdminAccountsRequest.Builder to create a request.
      Returns:
      A custom publisher that can be subscribed to request a stream of response pages.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request failed validation. For details, see the reason and fieldList members of the response.
      • InternalServerException The request processing failed because of an internal error in the service. This is a retryable error.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • ThrottlingException The request was denied because of request throttling. Reduce your request rate and try again.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • NetworkSecurityManagerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listAggregateResourceSynchronizationStatuses

      default CompletableFuture<ListAggregateResourceSynchronizationStatusesResponse> listAggregateResourceSynchronizationStatuses(ListAggregateResourceSynchronizationStatusesRequest listAggregateResourceSynchronizationStatusesRequest)

      Lists the aggregated synchronization statuses of resources across the deployments in your administrator account. You can filter the results by synchronization status and page through them.

      Parameters:
      listAggregateResourceSynchronizationStatusesRequest -
      Returns:
      A Java Future containing the result of the ListAggregateResourceSynchronizationStatuses operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request failed validation. For details, see the reason and fieldList members of the response.
      • InternalServerException The request processing failed because of an internal error in the service. This is a retryable error.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • ThrottlingException The request was denied because of request throttling. Reduce your request rate and try again.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • NetworkSecurityManagerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listAggregateResourceSynchronizationStatuses

      default CompletableFuture<ListAggregateResourceSynchronizationStatusesResponse> listAggregateResourceSynchronizationStatuses(Consumer<ListAggregateResourceSynchronizationStatusesRequest.Builder> listAggregateResourceSynchronizationStatusesRequest)

      Lists the aggregated synchronization statuses of resources across the deployments in your administrator account. You can filter the results by synchronization status and page through them.


      This is a convenience which creates an instance of the ListAggregateResourceSynchronizationStatusesRequest.Builder avoiding the need to create one manually via ListAggregateResourceSynchronizationStatusesRequest.builder()

      Parameters:
      listAggregateResourceSynchronizationStatusesRequest - A Consumer that will call methods on ListAggregateResourceSynchronizationStatusesRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the ListAggregateResourceSynchronizationStatuses operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request failed validation. For details, see the reason and fieldList members of the response.
      • InternalServerException The request processing failed because of an internal error in the service. This is a retryable error.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • ThrottlingException The request was denied because of request throttling. Reduce your request rate and try again.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • NetworkSecurityManagerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listAggregateResourceSynchronizationStatusesPaginator

      default ListAggregateResourceSynchronizationStatusesPublisher listAggregateResourceSynchronizationStatusesPaginator(ListAggregateResourceSynchronizationStatusesRequest listAggregateResourceSynchronizationStatusesRequest)

      This is a variant of listAggregateResourceSynchronizationStatuses(software.amazon.awssdk.services.networksecuritymanager.model.ListAggregateResourceSynchronizationStatusesRequest) 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.networksecuritymanager.paginators.ListAggregateResourceSynchronizationStatusesPublisher publisher = client.listAggregateResourceSynchronizationStatusesPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.networksecuritymanager.paginators.ListAggregateResourceSynchronizationStatusesPublisher publisher = client.listAggregateResourceSynchronizationStatusesPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.networksecuritymanager.model.ListAggregateResourceSynchronizationStatusesResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.networksecuritymanager.model.ListAggregateResourceSynchronizationStatusesResponse response) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      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 listAggregateResourceSynchronizationStatuses(software.amazon.awssdk.services.networksecuritymanager.model.ListAggregateResourceSynchronizationStatusesRequest) operation.

      Parameters:
      listAggregateResourceSynchronizationStatusesRequest -
      Returns:
      A custom publisher that can be subscribed to request a stream of response pages.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request failed validation. For details, see the reason and fieldList members of the response.
      • InternalServerException The request processing failed because of an internal error in the service. This is a retryable error.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • ThrottlingException The request was denied because of request throttling. Reduce your request rate and try again.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • NetworkSecurityManagerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listAggregateResourceSynchronizationStatusesPaginator

      default ListAggregateResourceSynchronizationStatusesPublisher listAggregateResourceSynchronizationStatusesPaginator(Consumer<ListAggregateResourceSynchronizationStatusesRequest.Builder> listAggregateResourceSynchronizationStatusesRequest)

      This is a variant of listAggregateResourceSynchronizationStatuses(software.amazon.awssdk.services.networksecuritymanager.model.ListAggregateResourceSynchronizationStatusesRequest) 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.networksecuritymanager.paginators.ListAggregateResourceSynchronizationStatusesPublisher publisher = client.listAggregateResourceSynchronizationStatusesPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.networksecuritymanager.paginators.ListAggregateResourceSynchronizationStatusesPublisher publisher = client.listAggregateResourceSynchronizationStatusesPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.networksecuritymanager.model.ListAggregateResourceSynchronizationStatusesResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.networksecuritymanager.model.ListAggregateResourceSynchronizationStatusesResponse response) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      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 listAggregateResourceSynchronizationStatuses(software.amazon.awssdk.services.networksecuritymanager.model.ListAggregateResourceSynchronizationStatusesRequest) operation.


      This is a convenience which creates an instance of the ListAggregateResourceSynchronizationStatusesRequest.Builder avoiding the need to create one manually via ListAggregateResourceSynchronizationStatusesRequest.builder()

      Parameters:
      listAggregateResourceSynchronizationStatusesRequest - A Consumer that will call methods on ListAggregateResourceSynchronizationStatusesRequest.Builder to create a request.
      Returns:
      A custom publisher that can be subscribed to request a stream of response pages.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request failed validation. For details, see the reason and fieldList members of the response.
      • InternalServerException The request processing failed because of an internal error in the service. This is a retryable error.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • ThrottlingException The request was denied because of request throttling. Reduce your request rate and try again.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • NetworkSecurityManagerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listDeploymentSnapshots

      default CompletableFuture<ListDeploymentSnapshotsResponse> listDeploymentSnapshots(ListDeploymentSnapshotsRequest listDeploymentSnapshotsRequest)

      Lists the snapshots of the specified deployment.

      Parameters:
      listDeploymentSnapshotsRequest -
      Returns:
      A Java Future containing the result of the ListDeploymentSnapshots operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request failed validation. For details, see the reason and fieldList members of the response.
      • InternalServerException The request processing failed because of an internal error in the service. This is a retryable error.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • ResourceNotFoundException The specified resource was not found. Verify that the resource identifier is correct and that the resource exists, then try your request again.
      • ThrottlingException The request was denied because of request throttling. Reduce your request rate and try again.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • NetworkSecurityManagerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listDeploymentSnapshots

      default CompletableFuture<ListDeploymentSnapshotsResponse> listDeploymentSnapshots(Consumer<ListDeploymentSnapshotsRequest.Builder> listDeploymentSnapshotsRequest)

      Lists the snapshots of the specified deployment.


      This is a convenience which creates an instance of the ListDeploymentSnapshotsRequest.Builder avoiding the need to create one manually via ListDeploymentSnapshotsRequest.builder()

      Parameters:
      listDeploymentSnapshotsRequest - A Consumer that will call methods on ListDeploymentSnapshotsRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the ListDeploymentSnapshots operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request failed validation. For details, see the reason and fieldList members of the response.
      • InternalServerException The request processing failed because of an internal error in the service. This is a retryable error.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • ResourceNotFoundException The specified resource was not found. Verify that the resource identifier is correct and that the resource exists, then try your request again.
      • ThrottlingException The request was denied because of request throttling. Reduce your request rate and try again.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • NetworkSecurityManagerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listDeploymentSnapshotsPaginator

      default ListDeploymentSnapshotsPublisher listDeploymentSnapshotsPaginator(ListDeploymentSnapshotsRequest listDeploymentSnapshotsRequest)

      This is a variant of listDeploymentSnapshots(software.amazon.awssdk.services.networksecuritymanager.model.ListDeploymentSnapshotsRequest) 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.networksecuritymanager.paginators.ListDeploymentSnapshotsPublisher publisher = client.listDeploymentSnapshotsPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.networksecuritymanager.paginators.ListDeploymentSnapshotsPublisher publisher = client.listDeploymentSnapshotsPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.networksecuritymanager.model.ListDeploymentSnapshotsResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.networksecuritymanager.model.ListDeploymentSnapshotsResponse response) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      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 listDeploymentSnapshots(software.amazon.awssdk.services.networksecuritymanager.model.ListDeploymentSnapshotsRequest) operation.

      Parameters:
      listDeploymentSnapshotsRequest -
      Returns:
      A custom publisher that can be subscribed to request a stream of response pages.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request failed validation. For details, see the reason and fieldList members of the response.
      • InternalServerException The request processing failed because of an internal error in the service. This is a retryable error.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • ResourceNotFoundException The specified resource was not found. Verify that the resource identifier is correct and that the resource exists, then try your request again.
      • ThrottlingException The request was denied because of request throttling. Reduce your request rate and try again.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • NetworkSecurityManagerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listDeploymentSnapshotsPaginator

      default ListDeploymentSnapshotsPublisher listDeploymentSnapshotsPaginator(Consumer<ListDeploymentSnapshotsRequest.Builder> listDeploymentSnapshotsRequest)

      This is a variant of listDeploymentSnapshots(software.amazon.awssdk.services.networksecuritymanager.model.ListDeploymentSnapshotsRequest) 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.networksecuritymanager.paginators.ListDeploymentSnapshotsPublisher publisher = client.listDeploymentSnapshotsPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.networksecuritymanager.paginators.ListDeploymentSnapshotsPublisher publisher = client.listDeploymentSnapshotsPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.networksecuritymanager.model.ListDeploymentSnapshotsResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.networksecuritymanager.model.ListDeploymentSnapshotsResponse response) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      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 listDeploymentSnapshots(software.amazon.awssdk.services.networksecuritymanager.model.ListDeploymentSnapshotsRequest) operation.


      This is a convenience which creates an instance of the ListDeploymentSnapshotsRequest.Builder avoiding the need to create one manually via ListDeploymentSnapshotsRequest.builder()

      Parameters:
      listDeploymentSnapshotsRequest - A Consumer that will call methods on ListDeploymentSnapshotsRequest.Builder to create a request.
      Returns:
      A custom publisher that can be subscribed to request a stream of response pages.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request failed validation. For details, see the reason and fieldList members of the response.
      • InternalServerException The request processing failed because of an internal error in the service. This is a retryable error.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • ResourceNotFoundException The specified resource was not found. Verify that the resource identifier is correct and that the resource exists, then try your request again.
      • ThrottlingException The request was denied because of request throttling. Reduce your request rate and try again.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • NetworkSecurityManagerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listDeployments

      default CompletableFuture<ListDeploymentsResponse> listDeployments(ListDeploymentsRequest listDeploymentsRequest)

      Lists the deployments in the account. You can filter the results by status and page through them using maxResults and nextToken.

      Parameters:
      listDeploymentsRequest -
      Returns:
      A Java Future containing the result of the ListDeployments operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request failed validation. For details, see the reason and fieldList members of the response.
      • InternalServerException The request processing failed because of an internal error in the service. This is a retryable error.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • ThrottlingException The request was denied because of request throttling. Reduce your request rate and try again.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • NetworkSecurityManagerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listDeployments

      default CompletableFuture<ListDeploymentsResponse> listDeployments(Consumer<ListDeploymentsRequest.Builder> listDeploymentsRequest)

      Lists the deployments in the account. You can filter the results by status and page through them using maxResults and nextToken.


      This is a convenience which creates an instance of the ListDeploymentsRequest.Builder avoiding the need to create one manually via ListDeploymentsRequest.builder()

      Parameters:
      listDeploymentsRequest - A Consumer that will call methods on ListDeploymentsRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the ListDeployments operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request failed validation. For details, see the reason and fieldList members of the response.
      • InternalServerException The request processing failed because of an internal error in the service. This is a retryable error.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • ThrottlingException The request was denied because of request throttling. Reduce your request rate and try again.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • NetworkSecurityManagerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listDeploymentsPaginator

      default ListDeploymentsPublisher listDeploymentsPaginator(ListDeploymentsRequest listDeploymentsRequest)

      This is a variant of listDeployments(software.amazon.awssdk.services.networksecuritymanager.model.ListDeploymentsRequest) 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.networksecuritymanager.paginators.ListDeploymentsPublisher publisher = client.listDeploymentsPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.networksecuritymanager.paginators.ListDeploymentsPublisher publisher = client.listDeploymentsPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.networksecuritymanager.model.ListDeploymentsResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.networksecuritymanager.model.ListDeploymentsResponse response) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      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 listDeployments(software.amazon.awssdk.services.networksecuritymanager.model.ListDeploymentsRequest) operation.

      Parameters:
      listDeploymentsRequest -
      Returns:
      A custom publisher that can be subscribed to request a stream of response pages.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request failed validation. For details, see the reason and fieldList members of the response.
      • InternalServerException The request processing failed because of an internal error in the service. This is a retryable error.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • ThrottlingException The request was denied because of request throttling. Reduce your request rate and try again.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • NetworkSecurityManagerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listDeploymentsPaginator

      default ListDeploymentsPublisher listDeploymentsPaginator(Consumer<ListDeploymentsRequest.Builder> listDeploymentsRequest)

      This is a variant of listDeployments(software.amazon.awssdk.services.networksecuritymanager.model.ListDeploymentsRequest) 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.networksecuritymanager.paginators.ListDeploymentsPublisher publisher = client.listDeploymentsPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.networksecuritymanager.paginators.ListDeploymentsPublisher publisher = client.listDeploymentsPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.networksecuritymanager.model.ListDeploymentsResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.networksecuritymanager.model.ListDeploymentsResponse response) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      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 listDeployments(software.amazon.awssdk.services.networksecuritymanager.model.ListDeploymentsRequest) operation.


      This is a convenience which creates an instance of the ListDeploymentsRequest.Builder avoiding the need to create one manually via ListDeploymentsRequest.builder()

      Parameters:
      listDeploymentsRequest - A Consumer that will call methods on ListDeploymentsRequest.Builder to create a request.
      Returns:
      A custom publisher that can be subscribed to request a stream of response pages.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request failed validation. For details, see the reason and fieldList members of the response.
      • InternalServerException The request processing failed because of an internal error in the service. This is a retryable error.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • ThrottlingException The request was denied because of request throttling. Reduce your request rate and try again.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • NetworkSecurityManagerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listPolicies

      default CompletableFuture<ListPoliciesResponse> listPolicies(ListPoliciesRequest listPoliciesRequest)

      Lists the policies in the account. You can filter the results by status and page through them using maxResults and nextToken.

      Parameters:
      listPoliciesRequest -
      Returns:
      A Java Future containing the result of the ListPolicies operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request failed validation. For details, see the reason and fieldList members of the response.
      • InternalServerException The request processing failed because of an internal error in the service. This is a retryable error.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • ThrottlingException The request was denied because of request throttling. Reduce your request rate and try again.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • NetworkSecurityManagerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listPolicies

      default CompletableFuture<ListPoliciesResponse> listPolicies(Consumer<ListPoliciesRequest.Builder> listPoliciesRequest)

      Lists the policies in the account. You can filter the results by status and page through them using maxResults and nextToken.


      This is a convenience which creates an instance of the ListPoliciesRequest.Builder avoiding the need to create one manually via ListPoliciesRequest.builder()

      Parameters:
      listPoliciesRequest - A Consumer that will call methods on ListPoliciesRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the ListPolicies operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request failed validation. For details, see the reason and fieldList members of the response.
      • InternalServerException The request processing failed because of an internal error in the service. This is a retryable error.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • ThrottlingException The request was denied because of request throttling. Reduce your request rate and try again.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • NetworkSecurityManagerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listPoliciesPaginator

      default ListPoliciesPublisher listPoliciesPaginator(ListPoliciesRequest listPoliciesRequest)

      This is a variant of listPolicies(software.amazon.awssdk.services.networksecuritymanager.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.networksecuritymanager.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.networksecuritymanager.paginators.ListPoliciesPublisher publisher = client.listPoliciesPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.networksecuritymanager.model.ListPoliciesResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.networksecuritymanager.model.ListPoliciesResponse response) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      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 listPolicies(software.amazon.awssdk.services.networksecuritymanager.model.ListPoliciesRequest) operation.

      Parameters:
      listPoliciesRequest -
      Returns:
      A custom publisher that can be subscribed to request a stream of response pages.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request failed validation. For details, see the reason and fieldList members of the response.
      • InternalServerException The request processing failed because of an internal error in the service. This is a retryable error.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • ThrottlingException The request was denied because of request throttling. Reduce your request rate and try again.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • NetworkSecurityManagerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listPoliciesPaginator

      default ListPoliciesPublisher listPoliciesPaginator(Consumer<ListPoliciesRequest.Builder> listPoliciesRequest)

      This is a variant of listPolicies(software.amazon.awssdk.services.networksecuritymanager.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.networksecuritymanager.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.networksecuritymanager.paginators.ListPoliciesPublisher publisher = client.listPoliciesPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.networksecuritymanager.model.ListPoliciesResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.networksecuritymanager.model.ListPoliciesResponse response) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      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 listPolicies(software.amazon.awssdk.services.networksecuritymanager.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()

      Parameters:
      listPoliciesRequest - A Consumer that will call methods on ListPoliciesRequest.Builder to create a request.
      Returns:
      A custom publisher that can be subscribed to request a stream of response pages.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request failed validation. For details, see the reason and fieldList members of the response.
      • InternalServerException The request processing failed because of an internal error in the service. This is a retryable error.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • ThrottlingException The request was denied because of request throttling. Reduce your request rate and try again.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • NetworkSecurityManagerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listPolicySnapshots

      default CompletableFuture<ListPolicySnapshotsResponse> listPolicySnapshots(ListPolicySnapshotsRequest listPolicySnapshotsRequest)

      Lists the snapshots of the specified policy.

      Parameters:
      listPolicySnapshotsRequest -
      Returns:
      A Java Future containing the result of the ListPolicySnapshots operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request failed validation. For details, see the reason and fieldList members of the response.
      • InternalServerException The request processing failed because of an internal error in the service. This is a retryable error.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • ResourceNotFoundException The specified resource was not found. Verify that the resource identifier is correct and that the resource exists, then try your request again.
      • ThrottlingException The request was denied because of request throttling. Reduce your request rate and try again.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • NetworkSecurityManagerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listPolicySnapshots

      default CompletableFuture<ListPolicySnapshotsResponse> listPolicySnapshots(Consumer<ListPolicySnapshotsRequest.Builder> listPolicySnapshotsRequest)

      Lists the snapshots of the specified policy.


      This is a convenience which creates an instance of the ListPolicySnapshotsRequest.Builder avoiding the need to create one manually via ListPolicySnapshotsRequest.builder()

      Parameters:
      listPolicySnapshotsRequest - A Consumer that will call methods on ListPolicySnapshotsRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the ListPolicySnapshots operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request failed validation. For details, see the reason and fieldList members of the response.
      • InternalServerException The request processing failed because of an internal error in the service. This is a retryable error.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • ResourceNotFoundException The specified resource was not found. Verify that the resource identifier is correct and that the resource exists, then try your request again.
      • ThrottlingException The request was denied because of request throttling. Reduce your request rate and try again.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • NetworkSecurityManagerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listPolicySnapshotsPaginator

      default ListPolicySnapshotsPublisher listPolicySnapshotsPaginator(ListPolicySnapshotsRequest listPolicySnapshotsRequest)

      This is a variant of listPolicySnapshots(software.amazon.awssdk.services.networksecuritymanager.model.ListPolicySnapshotsRequest) 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.networksecuritymanager.paginators.ListPolicySnapshotsPublisher publisher = client.listPolicySnapshotsPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.networksecuritymanager.paginators.ListPolicySnapshotsPublisher publisher = client.listPolicySnapshotsPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.networksecuritymanager.model.ListPolicySnapshotsResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.networksecuritymanager.model.ListPolicySnapshotsResponse response) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      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 listPolicySnapshots(software.amazon.awssdk.services.networksecuritymanager.model.ListPolicySnapshotsRequest) operation.

      Parameters:
      listPolicySnapshotsRequest -
      Returns:
      A custom publisher that can be subscribed to request a stream of response pages.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request failed validation. For details, see the reason and fieldList members of the response.
      • InternalServerException The request processing failed because of an internal error in the service. This is a retryable error.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • ResourceNotFoundException The specified resource was not found. Verify that the resource identifier is correct and that the resource exists, then try your request again.
      • ThrottlingException The request was denied because of request throttling. Reduce your request rate and try again.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • NetworkSecurityManagerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listPolicySnapshotsPaginator

      default ListPolicySnapshotsPublisher listPolicySnapshotsPaginator(Consumer<ListPolicySnapshotsRequest.Builder> listPolicySnapshotsRequest)

      This is a variant of listPolicySnapshots(software.amazon.awssdk.services.networksecuritymanager.model.ListPolicySnapshotsRequest) 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.networksecuritymanager.paginators.ListPolicySnapshotsPublisher publisher = client.listPolicySnapshotsPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.networksecuritymanager.paginators.ListPolicySnapshotsPublisher publisher = client.listPolicySnapshotsPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.networksecuritymanager.model.ListPolicySnapshotsResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.networksecuritymanager.model.ListPolicySnapshotsResponse response) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      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 listPolicySnapshots(software.amazon.awssdk.services.networksecuritymanager.model.ListPolicySnapshotsRequest) operation.


      This is a convenience which creates an instance of the ListPolicySnapshotsRequest.Builder avoiding the need to create one manually via ListPolicySnapshotsRequest.builder()

      Parameters:
      listPolicySnapshotsRequest - A Consumer that will call methods on ListPolicySnapshotsRequest.Builder to create a request.
      Returns:
      A custom publisher that can be subscribed to request a stream of response pages.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request failed validation. For details, see the reason and fieldList members of the response.
      • InternalServerException The request processing failed because of an internal error in the service. This is a retryable error.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • ResourceNotFoundException The specified resource was not found. Verify that the resource identifier is correct and that the resource exists, then try your request again.
      • ThrottlingException The request was denied because of request throttling. Reduce your request rate and try again.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • NetworkSecurityManagerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listResourceAssociations

      default CompletableFuture<ListResourceAssociationsResponse> listResourceAssociations(ListResourceAssociationsRequest listResourceAssociationsRequest)

      Lists the resources associated with the specified resource.

      Parameters:
      listResourceAssociationsRequest -
      Returns:
      A Java Future containing the result of the ListResourceAssociations operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request failed validation. For details, see the reason and fieldList members of the response.
      • InternalServerException The request processing failed because of an internal error in the service. This is a retryable error.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • ThrottlingException The request was denied because of request throttling. Reduce your request rate and try again.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • NetworkSecurityManagerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listResourceAssociations

      default CompletableFuture<ListResourceAssociationsResponse> listResourceAssociations(Consumer<ListResourceAssociationsRequest.Builder> listResourceAssociationsRequest)

      Lists the resources associated with the specified resource.


      This is a convenience which creates an instance of the ListResourceAssociationsRequest.Builder avoiding the need to create one manually via ListResourceAssociationsRequest.builder()

      Parameters:
      listResourceAssociationsRequest - A Consumer that will call methods on ListResourceAssociationsRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the ListResourceAssociations operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request failed validation. For details, see the reason and fieldList members of the response.
      • InternalServerException The request processing failed because of an internal error in the service. This is a retryable error.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • ThrottlingException The request was denied because of request throttling. Reduce your request rate and try again.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • NetworkSecurityManagerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listResourceAssociationsPaginator

      default ListResourceAssociationsPublisher listResourceAssociationsPaginator(ListResourceAssociationsRequest listResourceAssociationsRequest)

      This is a variant of listResourceAssociations(software.amazon.awssdk.services.networksecuritymanager.model.ListResourceAssociationsRequest) 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.networksecuritymanager.paginators.ListResourceAssociationsPublisher publisher = client.listResourceAssociationsPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.networksecuritymanager.paginators.ListResourceAssociationsPublisher publisher = client.listResourceAssociationsPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.networksecuritymanager.model.ListResourceAssociationsResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.networksecuritymanager.model.ListResourceAssociationsResponse response) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      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 listResourceAssociations(software.amazon.awssdk.services.networksecuritymanager.model.ListResourceAssociationsRequest) operation.

      Parameters:
      listResourceAssociationsRequest -
      Returns:
      A custom publisher that can be subscribed to request a stream of response pages.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request failed validation. For details, see the reason and fieldList members of the response.
      • InternalServerException The request processing failed because of an internal error in the service. This is a retryable error.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • ThrottlingException The request was denied because of request throttling. Reduce your request rate and try again.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • NetworkSecurityManagerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listResourceAssociationsPaginator

      default ListResourceAssociationsPublisher listResourceAssociationsPaginator(Consumer<ListResourceAssociationsRequest.Builder> listResourceAssociationsRequest)

      This is a variant of listResourceAssociations(software.amazon.awssdk.services.networksecuritymanager.model.ListResourceAssociationsRequest) 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.networksecuritymanager.paginators.ListResourceAssociationsPublisher publisher = client.listResourceAssociationsPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.networksecuritymanager.paginators.ListResourceAssociationsPublisher publisher = client.listResourceAssociationsPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.networksecuritymanager.model.ListResourceAssociationsResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.networksecuritymanager.model.ListResourceAssociationsResponse response) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      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 listResourceAssociations(software.amazon.awssdk.services.networksecuritymanager.model.ListResourceAssociationsRequest) operation.


      This is a convenience which creates an instance of the ListResourceAssociationsRequest.Builder avoiding the need to create one manually via ListResourceAssociationsRequest.builder()

      Parameters:
      listResourceAssociationsRequest - A Consumer that will call methods on ListResourceAssociationsRequest.Builder to create a request.
      Returns:
      A custom publisher that can be subscribed to request a stream of response pages.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request failed validation. For details, see the reason and fieldList members of the response.
      • InternalServerException The request processing failed because of an internal error in the service. This is a retryable error.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • ThrottlingException The request was denied because of request throttling. Reduce your request rate and try again.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • NetworkSecurityManagerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listResourceSynchronizationStatuses

      default CompletableFuture<ListResourceSynchronizationStatusesResponse> listResourceSynchronizationStatuses(ListResourceSynchronizationStatusesRequest listResourceSynchronizationStatusesRequest)

      Lists the synchronization statuses of the resources covered by the specified deployment. You can filter the results by synchronization status and page through them.

      Parameters:
      listResourceSynchronizationStatusesRequest -
      Returns:
      A Java Future containing the result of the ListResourceSynchronizationStatuses operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request failed validation. For details, see the reason and fieldList members of the response.
      • InternalServerException The request processing failed because of an internal error in the service. This is a retryable error.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • ResourceNotFoundException The specified resource was not found. Verify that the resource identifier is correct and that the resource exists, then try your request again.
      • ThrottlingException The request was denied because of request throttling. Reduce your request rate and try again.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • NetworkSecurityManagerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listResourceSynchronizationStatuses

      default CompletableFuture<ListResourceSynchronizationStatusesResponse> listResourceSynchronizationStatuses(Consumer<ListResourceSynchronizationStatusesRequest.Builder> listResourceSynchronizationStatusesRequest)

      Lists the synchronization statuses of the resources covered by the specified deployment. You can filter the results by synchronization status and page through them.


      This is a convenience which creates an instance of the ListResourceSynchronizationStatusesRequest.Builder avoiding the need to create one manually via ListResourceSynchronizationStatusesRequest.builder()

      Parameters:
      listResourceSynchronizationStatusesRequest - A Consumer that will call methods on ListResourceSynchronizationStatusesRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the ListResourceSynchronizationStatuses operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request failed validation. For details, see the reason and fieldList members of the response.
      • InternalServerException The request processing failed because of an internal error in the service. This is a retryable error.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • ResourceNotFoundException The specified resource was not found. Verify that the resource identifier is correct and that the resource exists, then try your request again.
      • ThrottlingException The request was denied because of request throttling. Reduce your request rate and try again.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • NetworkSecurityManagerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listResourceSynchronizationStatusesPaginator

      default ListResourceSynchronizationStatusesPublisher listResourceSynchronizationStatusesPaginator(ListResourceSynchronizationStatusesRequest listResourceSynchronizationStatusesRequest)

      This is a variant of listResourceSynchronizationStatuses(software.amazon.awssdk.services.networksecuritymanager.model.ListResourceSynchronizationStatusesRequest) 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.networksecuritymanager.paginators.ListResourceSynchronizationStatusesPublisher publisher = client.listResourceSynchronizationStatusesPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.networksecuritymanager.paginators.ListResourceSynchronizationStatusesPublisher publisher = client.listResourceSynchronizationStatusesPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.networksecuritymanager.model.ListResourceSynchronizationStatusesResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.networksecuritymanager.model.ListResourceSynchronizationStatusesResponse response) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      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 listResourceSynchronizationStatuses(software.amazon.awssdk.services.networksecuritymanager.model.ListResourceSynchronizationStatusesRequest) operation.

      Parameters:
      listResourceSynchronizationStatusesRequest -
      Returns:
      A custom publisher that can be subscribed to request a stream of response pages.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request failed validation. For details, see the reason and fieldList members of the response.
      • InternalServerException The request processing failed because of an internal error in the service. This is a retryable error.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • ResourceNotFoundException The specified resource was not found. Verify that the resource identifier is correct and that the resource exists, then try your request again.
      • ThrottlingException The request was denied because of request throttling. Reduce your request rate and try again.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • NetworkSecurityManagerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listResourceSynchronizationStatusesPaginator

      default ListResourceSynchronizationStatusesPublisher listResourceSynchronizationStatusesPaginator(Consumer<ListResourceSynchronizationStatusesRequest.Builder> listResourceSynchronizationStatusesRequest)

      This is a variant of listResourceSynchronizationStatuses(software.amazon.awssdk.services.networksecuritymanager.model.ListResourceSynchronizationStatusesRequest) 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.networksecuritymanager.paginators.ListResourceSynchronizationStatusesPublisher publisher = client.listResourceSynchronizationStatusesPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.networksecuritymanager.paginators.ListResourceSynchronizationStatusesPublisher publisher = client.listResourceSynchronizationStatusesPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.networksecuritymanager.model.ListResourceSynchronizationStatusesResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.networksecuritymanager.model.ListResourceSynchronizationStatusesResponse response) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      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 listResourceSynchronizationStatuses(software.amazon.awssdk.services.networksecuritymanager.model.ListResourceSynchronizationStatusesRequest) operation.


      This is a convenience which creates an instance of the ListResourceSynchronizationStatusesRequest.Builder avoiding the need to create one manually via ListResourceSynchronizationStatusesRequest.builder()

      Parameters:
      listResourceSynchronizationStatusesRequest - A Consumer that will call methods on ListResourceSynchronizationStatusesRequest.Builder to create a request.
      Returns:
      A custom publisher that can be subscribed to request a stream of response pages.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request failed validation. For details, see the reason and fieldList members of the response.
      • InternalServerException The request processing failed because of an internal error in the service. This is a retryable error.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • ResourceNotFoundException The specified resource was not found. Verify that the resource identifier is correct and that the resource exists, then try your request again.
      • ThrottlingException The request was denied because of request throttling. Reduce your request rate and try again.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • NetworkSecurityManagerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listRuleSnapshots

      default CompletableFuture<ListRuleSnapshotsResponse> listRuleSnapshots(ListRuleSnapshotsRequest listRuleSnapshotsRequest)

      Lists the snapshots of the specified rule.

      Parameters:
      listRuleSnapshotsRequest -
      Returns:
      A Java Future containing the result of the ListRuleSnapshots operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request failed validation. For details, see the reason and fieldList members of the response.
      • InternalServerException The request processing failed because of an internal error in the service. This is a retryable error.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • ResourceNotFoundException The specified resource was not found. Verify that the resource identifier is correct and that the resource exists, then try your request again.
      • ThrottlingException The request was denied because of request throttling. Reduce your request rate and try again.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • NetworkSecurityManagerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listRuleSnapshots

      default CompletableFuture<ListRuleSnapshotsResponse> listRuleSnapshots(Consumer<ListRuleSnapshotsRequest.Builder> listRuleSnapshotsRequest)

      Lists the snapshots of the specified rule.


      This is a convenience which creates an instance of the ListRuleSnapshotsRequest.Builder avoiding the need to create one manually via ListRuleSnapshotsRequest.builder()

      Parameters:
      listRuleSnapshotsRequest - A Consumer that will call methods on ListRuleSnapshotsRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the ListRuleSnapshots operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request failed validation. For details, see the reason and fieldList members of the response.
      • InternalServerException The request processing failed because of an internal error in the service. This is a retryable error.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • ResourceNotFoundException The specified resource was not found. Verify that the resource identifier is correct and that the resource exists, then try your request again.
      • ThrottlingException The request was denied because of request throttling. Reduce your request rate and try again.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • NetworkSecurityManagerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listRuleSnapshotsPaginator

      default ListRuleSnapshotsPublisher listRuleSnapshotsPaginator(ListRuleSnapshotsRequest listRuleSnapshotsRequest)

      This is a variant of listRuleSnapshots(software.amazon.awssdk.services.networksecuritymanager.model.ListRuleSnapshotsRequest) 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.networksecuritymanager.paginators.ListRuleSnapshotsPublisher publisher = client.listRuleSnapshotsPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.networksecuritymanager.paginators.ListRuleSnapshotsPublisher publisher = client.listRuleSnapshotsPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.networksecuritymanager.model.ListRuleSnapshotsResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.networksecuritymanager.model.ListRuleSnapshotsResponse response) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      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 listRuleSnapshots(software.amazon.awssdk.services.networksecuritymanager.model.ListRuleSnapshotsRequest) operation.

      Parameters:
      listRuleSnapshotsRequest -
      Returns:
      A custom publisher that can be subscribed to request a stream of response pages.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request failed validation. For details, see the reason and fieldList members of the response.
      • InternalServerException The request processing failed because of an internal error in the service. This is a retryable error.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • ResourceNotFoundException The specified resource was not found. Verify that the resource identifier is correct and that the resource exists, then try your request again.
      • ThrottlingException The request was denied because of request throttling. Reduce your request rate and try again.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • NetworkSecurityManagerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listRuleSnapshotsPaginator

      default ListRuleSnapshotsPublisher listRuleSnapshotsPaginator(Consumer<ListRuleSnapshotsRequest.Builder> listRuleSnapshotsRequest)

      This is a variant of listRuleSnapshots(software.amazon.awssdk.services.networksecuritymanager.model.ListRuleSnapshotsRequest) 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.networksecuritymanager.paginators.ListRuleSnapshotsPublisher publisher = client.listRuleSnapshotsPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.networksecuritymanager.paginators.ListRuleSnapshotsPublisher publisher = client.listRuleSnapshotsPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.networksecuritymanager.model.ListRuleSnapshotsResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.networksecuritymanager.model.ListRuleSnapshotsResponse response) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      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 listRuleSnapshots(software.amazon.awssdk.services.networksecuritymanager.model.ListRuleSnapshotsRequest) operation.


      This is a convenience which creates an instance of the ListRuleSnapshotsRequest.Builder avoiding the need to create one manually via ListRuleSnapshotsRequest.builder()

      Parameters:
      listRuleSnapshotsRequest - A Consumer that will call methods on ListRuleSnapshotsRequest.Builder to create a request.
      Returns:
      A custom publisher that can be subscribed to request a stream of response pages.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request failed validation. For details, see the reason and fieldList members of the response.
      • InternalServerException The request processing failed because of an internal error in the service. This is a retryable error.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • ResourceNotFoundException The specified resource was not found. Verify that the resource identifier is correct and that the resource exists, then try your request again.
      • ThrottlingException The request was denied because of request throttling. Reduce your request rate and try again.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • NetworkSecurityManagerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listRules

      default CompletableFuture<ListRulesResponse> listRules(ListRulesRequest listRulesRequest)

      Lists the rules in the account. You can filter the results by status and page through them using maxResults and nextToken.

      Parameters:
      listRulesRequest -
      Returns:
      A Java Future containing the result of the ListRules operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request failed validation. For details, see the reason and fieldList members of the response.
      • InternalServerException The request processing failed because of an internal error in the service. This is a retryable error.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • ThrottlingException The request was denied because of request throttling. Reduce your request rate and try again.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • NetworkSecurityManagerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listRules

      default CompletableFuture<ListRulesResponse> listRules(Consumer<ListRulesRequest.Builder> listRulesRequest)

      Lists the rules in the account. You can filter the results by status and page through them using maxResults and nextToken.


      This is a convenience which creates an instance of the ListRulesRequest.Builder avoiding the need to create one manually via ListRulesRequest.builder()

      Parameters:
      listRulesRequest - A Consumer that will call methods on ListRulesRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the ListRules operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request failed validation. For details, see the reason and fieldList members of the response.
      • InternalServerException The request processing failed because of an internal error in the service. This is a retryable error.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • ThrottlingException The request was denied because of request throttling. Reduce your request rate and try again.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • NetworkSecurityManagerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listRulesPaginator

      default ListRulesPublisher listRulesPaginator(ListRulesRequest listRulesRequest)

      This is a variant of listRules(software.amazon.awssdk.services.networksecuritymanager.model.ListRulesRequest) 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.networksecuritymanager.paginators.ListRulesPublisher publisher = client.listRulesPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.networksecuritymanager.paginators.ListRulesPublisher publisher = client.listRulesPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.networksecuritymanager.model.ListRulesResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.networksecuritymanager.model.ListRulesResponse response) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      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 listRules(software.amazon.awssdk.services.networksecuritymanager.model.ListRulesRequest) operation.

      Parameters:
      listRulesRequest -
      Returns:
      A custom publisher that can be subscribed to request a stream of response pages.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request failed validation. For details, see the reason and fieldList members of the response.
      • InternalServerException The request processing failed because of an internal error in the service. This is a retryable error.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • ThrottlingException The request was denied because of request throttling. Reduce your request rate and try again.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • NetworkSecurityManagerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listRulesPaginator

      default ListRulesPublisher listRulesPaginator(Consumer<ListRulesRequest.Builder> listRulesRequest)

      This is a variant of listRules(software.amazon.awssdk.services.networksecuritymanager.model.ListRulesRequest) 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.networksecuritymanager.paginators.ListRulesPublisher publisher = client.listRulesPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.networksecuritymanager.paginators.ListRulesPublisher publisher = client.listRulesPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.networksecuritymanager.model.ListRulesResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.networksecuritymanager.model.ListRulesResponse response) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      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 listRules(software.amazon.awssdk.services.networksecuritymanager.model.ListRulesRequest) operation.


      This is a convenience which creates an instance of the ListRulesRequest.Builder avoiding the need to create one manually via ListRulesRequest.builder()

      Parameters:
      listRulesRequest - A Consumer that will call methods on ListRulesRequest.Builder to create a request.
      Returns:
      A custom publisher that can be subscribed to request a stream of response pages.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request failed validation. For details, see the reason and fieldList members of the response.
      • InternalServerException The request processing failed because of an internal error in the service. This is a retryable error.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • ThrottlingException The request was denied because of request throttling. Reduce your request rate and try again.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • NetworkSecurityManagerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listScopeSnapshots

      default CompletableFuture<ListScopeSnapshotsResponse> listScopeSnapshots(ListScopeSnapshotsRequest listScopeSnapshotsRequest)

      Lists the snapshots of the specified scope.

      Parameters:
      listScopeSnapshotsRequest -
      Returns:
      A Java Future containing the result of the ListScopeSnapshots operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request failed validation. For details, see the reason and fieldList members of the response.
      • InternalServerException The request processing failed because of an internal error in the service. This is a retryable error.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • ResourceNotFoundException The specified resource was not found. Verify that the resource identifier is correct and that the resource exists, then try your request again.
      • ThrottlingException The request was denied because of request throttling. Reduce your request rate and try again.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • NetworkSecurityManagerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listScopeSnapshots

      default CompletableFuture<ListScopeSnapshotsResponse> listScopeSnapshots(Consumer<ListScopeSnapshotsRequest.Builder> listScopeSnapshotsRequest)

      Lists the snapshots of the specified scope.


      This is a convenience which creates an instance of the ListScopeSnapshotsRequest.Builder avoiding the need to create one manually via ListScopeSnapshotsRequest.builder()

      Parameters:
      listScopeSnapshotsRequest - A Consumer that will call methods on ListScopeSnapshotsRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the ListScopeSnapshots operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request failed validation. For details, see the reason and fieldList members of the response.
      • InternalServerException The request processing failed because of an internal error in the service. This is a retryable error.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • ResourceNotFoundException The specified resource was not found. Verify that the resource identifier is correct and that the resource exists, then try your request again.
      • ThrottlingException The request was denied because of request throttling. Reduce your request rate and try again.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • NetworkSecurityManagerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listScopeSnapshotsPaginator

      default ListScopeSnapshotsPublisher listScopeSnapshotsPaginator(ListScopeSnapshotsRequest listScopeSnapshotsRequest)

      This is a variant of listScopeSnapshots(software.amazon.awssdk.services.networksecuritymanager.model.ListScopeSnapshotsRequest) 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.networksecuritymanager.paginators.ListScopeSnapshotsPublisher publisher = client.listScopeSnapshotsPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.networksecuritymanager.paginators.ListScopeSnapshotsPublisher publisher = client.listScopeSnapshotsPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.networksecuritymanager.model.ListScopeSnapshotsResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.networksecuritymanager.model.ListScopeSnapshotsResponse response) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      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 listScopeSnapshots(software.amazon.awssdk.services.networksecuritymanager.model.ListScopeSnapshotsRequest) operation.

      Parameters:
      listScopeSnapshotsRequest -
      Returns:
      A custom publisher that can be subscribed to request a stream of response pages.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request failed validation. For details, see the reason and fieldList members of the response.
      • InternalServerException The request processing failed because of an internal error in the service. This is a retryable error.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • ResourceNotFoundException The specified resource was not found. Verify that the resource identifier is correct and that the resource exists, then try your request again.
      • ThrottlingException The request was denied because of request throttling. Reduce your request rate and try again.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • NetworkSecurityManagerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listScopeSnapshotsPaginator

      default ListScopeSnapshotsPublisher listScopeSnapshotsPaginator(Consumer<ListScopeSnapshotsRequest.Builder> listScopeSnapshotsRequest)

      This is a variant of listScopeSnapshots(software.amazon.awssdk.services.networksecuritymanager.model.ListScopeSnapshotsRequest) 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.networksecuritymanager.paginators.ListScopeSnapshotsPublisher publisher = client.listScopeSnapshotsPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.networksecuritymanager.paginators.ListScopeSnapshotsPublisher publisher = client.listScopeSnapshotsPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.networksecuritymanager.model.ListScopeSnapshotsResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.networksecuritymanager.model.ListScopeSnapshotsResponse response) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      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 listScopeSnapshots(software.amazon.awssdk.services.networksecuritymanager.model.ListScopeSnapshotsRequest) operation.


      This is a convenience which creates an instance of the ListScopeSnapshotsRequest.Builder avoiding the need to create one manually via ListScopeSnapshotsRequest.builder()

      Parameters:
      listScopeSnapshotsRequest - A Consumer that will call methods on ListScopeSnapshotsRequest.Builder to create a request.
      Returns:
      A custom publisher that can be subscribed to request a stream of response pages.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request failed validation. For details, see the reason and fieldList members of the response.
      • InternalServerException The request processing failed because of an internal error in the service. This is a retryable error.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • ResourceNotFoundException The specified resource was not found. Verify that the resource identifier is correct and that the resource exists, then try your request again.
      • ThrottlingException The request was denied because of request throttling. Reduce your request rate and try again.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • NetworkSecurityManagerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listScopes

      default CompletableFuture<ListScopesResponse> listScopes(ListScopesRequest listScopesRequest)

      Lists the scopes in the account. You can filter the results by status and page through them using maxResults and nextToken.

      Parameters:
      listScopesRequest -
      Returns:
      A Java Future containing the result of the ListScopes operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request failed validation. For details, see the reason and fieldList members of the response.
      • InternalServerException The request processing failed because of an internal error in the service. This is a retryable error.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • ThrottlingException The request was denied because of request throttling. Reduce your request rate and try again.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • NetworkSecurityManagerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listScopes

      default CompletableFuture<ListScopesResponse> listScopes(Consumer<ListScopesRequest.Builder> listScopesRequest)

      Lists the scopes in the account. You can filter the results by status and page through them using maxResults and nextToken.


      This is a convenience which creates an instance of the ListScopesRequest.Builder avoiding the need to create one manually via ListScopesRequest.builder()

      Parameters:
      listScopesRequest - A Consumer that will call methods on ListScopesRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the ListScopes operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request failed validation. For details, see the reason and fieldList members of the response.
      • InternalServerException The request processing failed because of an internal error in the service. This is a retryable error.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • ThrottlingException The request was denied because of request throttling. Reduce your request rate and try again.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • NetworkSecurityManagerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listScopesPaginator

      default ListScopesPublisher listScopesPaginator(ListScopesRequest listScopesRequest)

      This is a variant of listScopes(software.amazon.awssdk.services.networksecuritymanager.model.ListScopesRequest) 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.networksecuritymanager.paginators.ListScopesPublisher publisher = client.listScopesPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.networksecuritymanager.paginators.ListScopesPublisher publisher = client.listScopesPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.networksecuritymanager.model.ListScopesResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.networksecuritymanager.model.ListScopesResponse response) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      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 listScopes(software.amazon.awssdk.services.networksecuritymanager.model.ListScopesRequest) operation.

      Parameters:
      listScopesRequest -
      Returns:
      A custom publisher that can be subscribed to request a stream of response pages.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request failed validation. For details, see the reason and fieldList members of the response.
      • InternalServerException The request processing failed because of an internal error in the service. This is a retryable error.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • ThrottlingException The request was denied because of request throttling. Reduce your request rate and try again.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • NetworkSecurityManagerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listScopesPaginator

      default ListScopesPublisher listScopesPaginator(Consumer<ListScopesRequest.Builder> listScopesRequest)

      This is a variant of listScopes(software.amazon.awssdk.services.networksecuritymanager.model.ListScopesRequest) 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.networksecuritymanager.paginators.ListScopesPublisher publisher = client.listScopesPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.networksecuritymanager.paginators.ListScopesPublisher publisher = client.listScopesPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.networksecuritymanager.model.ListScopesResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.networksecuritymanager.model.ListScopesResponse response) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      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 listScopes(software.amazon.awssdk.services.networksecuritymanager.model.ListScopesRequest) operation.


      This is a convenience which creates an instance of the ListScopesRequest.Builder avoiding the need to create one manually via ListScopesRequest.builder()

      Parameters:
      listScopesRequest - A Consumer that will call methods on ListScopesRequest.Builder to create a request.
      Returns:
      A custom publisher that can be subscribed to request a stream of response pages.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request failed validation. For details, see the reason and fieldList members of the response.
      • InternalServerException The request processing failed because of an internal error in the service. This is a retryable error.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • ThrottlingException The request was denied because of request throttling. Reduce your request rate and try again.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • NetworkSecurityManagerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listTagsForResource

      default CompletableFuture<ListTagsForResourceResponse> listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest)

      Lists the tags associated with the specified resource.

      Parameters:
      listTagsForResourceRequest -
      Returns:
      A Java Future containing the result of the ListTagsForResource operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request failed validation. For details, see the reason and fieldList members of the response.
      • InternalServerException The request processing failed because of an internal error in the service. This is a retryable error.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • ResourceNotFoundException The specified resource was not found. Verify that the resource identifier is correct and that the resource exists, then try your request again.
      • ThrottlingException The request was denied because of request throttling. Reduce your request rate and try again.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • NetworkSecurityManagerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listTagsForResource

      default CompletableFuture<ListTagsForResourceResponse> listTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest)

      Lists the tags associated with the specified resource.


      This is a convenience which creates an instance of the ListTagsForResourceRequest.Builder avoiding the need to create one manually via ListTagsForResourceRequest.builder()

      Parameters:
      listTagsForResourceRequest - A Consumer that will call methods on ListTagsForResourceRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the ListTagsForResource operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request failed validation. For details, see the reason and fieldList members of the response.
      • InternalServerException The request processing failed because of an internal error in the service. This is a retryable error.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • ResourceNotFoundException The specified resource was not found. Verify that the resource identifier is correct and that the resource exists, then try your request again.
      • ThrottlingException The request was denied because of request throttling. Reduce your request rate and try again.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • NetworkSecurityManagerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listTemplateSnapshots

      default CompletableFuture<ListTemplateSnapshotsResponse> listTemplateSnapshots(ListTemplateSnapshotsRequest listTemplateSnapshotsRequest)

      Lists the snapshots of the specified template.

      Parameters:
      listTemplateSnapshotsRequest -
      Returns:
      A Java Future containing the result of the ListTemplateSnapshots operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request failed validation. For details, see the reason and fieldList members of the response.
      • InternalServerException The request processing failed because of an internal error in the service. This is a retryable error.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • ResourceNotFoundException The specified resource was not found. Verify that the resource identifier is correct and that the resource exists, then try your request again.
      • ThrottlingException The request was denied because of request throttling. Reduce your request rate and try again.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • NetworkSecurityManagerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listTemplateSnapshots

      default CompletableFuture<ListTemplateSnapshotsResponse> listTemplateSnapshots(Consumer<ListTemplateSnapshotsRequest.Builder> listTemplateSnapshotsRequest)

      Lists the snapshots of the specified template.


      This is a convenience which creates an instance of the ListTemplateSnapshotsRequest.Builder avoiding the need to create one manually via ListTemplateSnapshotsRequest.builder()

      Parameters:
      listTemplateSnapshotsRequest - A Consumer that will call methods on ListTemplateSnapshotsRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the ListTemplateSnapshots operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request failed validation. For details, see the reason and fieldList members of the response.
      • InternalServerException The request processing failed because of an internal error in the service. This is a retryable error.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • ResourceNotFoundException The specified resource was not found. Verify that the resource identifier is correct and that the resource exists, then try your request again.
      • ThrottlingException The request was denied because of request throttling. Reduce your request rate and try again.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • NetworkSecurityManagerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listTemplateSnapshotsPaginator

      default ListTemplateSnapshotsPublisher listTemplateSnapshotsPaginator(ListTemplateSnapshotsRequest listTemplateSnapshotsRequest)

      This is a variant of listTemplateSnapshots(software.amazon.awssdk.services.networksecuritymanager.model.ListTemplateSnapshotsRequest) 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.networksecuritymanager.paginators.ListTemplateSnapshotsPublisher publisher = client.listTemplateSnapshotsPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.networksecuritymanager.paginators.ListTemplateSnapshotsPublisher publisher = client.listTemplateSnapshotsPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.networksecuritymanager.model.ListTemplateSnapshotsResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.networksecuritymanager.model.ListTemplateSnapshotsResponse response) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      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 listTemplateSnapshots(software.amazon.awssdk.services.networksecuritymanager.model.ListTemplateSnapshotsRequest) operation.

      Parameters:
      listTemplateSnapshotsRequest -
      Returns:
      A custom publisher that can be subscribed to request a stream of response pages.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request failed validation. For details, see the reason and fieldList members of the response.
      • InternalServerException The request processing failed because of an internal error in the service. This is a retryable error.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • ResourceNotFoundException The specified resource was not found. Verify that the resource identifier is correct and that the resource exists, then try your request again.
      • ThrottlingException The request was denied because of request throttling. Reduce your request rate and try again.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • NetworkSecurityManagerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listTemplateSnapshotsPaginator

      default ListTemplateSnapshotsPublisher listTemplateSnapshotsPaginator(Consumer<ListTemplateSnapshotsRequest.Builder> listTemplateSnapshotsRequest)

      This is a variant of listTemplateSnapshots(software.amazon.awssdk.services.networksecuritymanager.model.ListTemplateSnapshotsRequest) 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.networksecuritymanager.paginators.ListTemplateSnapshotsPublisher publisher = client.listTemplateSnapshotsPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.networksecuritymanager.paginators.ListTemplateSnapshotsPublisher publisher = client.listTemplateSnapshotsPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.networksecuritymanager.model.ListTemplateSnapshotsResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.networksecuritymanager.model.ListTemplateSnapshotsResponse response) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      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 listTemplateSnapshots(software.amazon.awssdk.services.networksecuritymanager.model.ListTemplateSnapshotsRequest) operation.


      This is a convenience which creates an instance of the ListTemplateSnapshotsRequest.Builder avoiding the need to create one manually via ListTemplateSnapshotsRequest.builder()

      Parameters:
      listTemplateSnapshotsRequest - A Consumer that will call methods on ListTemplateSnapshotsRequest.Builder to create a request.
      Returns:
      A custom publisher that can be subscribed to request a stream of response pages.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request failed validation. For details, see the reason and fieldList members of the response.
      • InternalServerException The request processing failed because of an internal error in the service. This is a retryable error.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • ResourceNotFoundException The specified resource was not found. Verify that the resource identifier is correct and that the resource exists, then try your request again.
      • ThrottlingException The request was denied because of request throttling. Reduce your request rate and try again.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • NetworkSecurityManagerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listTemplates

      default CompletableFuture<ListTemplatesResponse> listTemplates(ListTemplatesRequest listTemplatesRequest)

      Lists the templates in the account. You can filter the results by status and page through them using maxResults and nextToken.

      Parameters:
      listTemplatesRequest -
      Returns:
      A Java Future containing the result of the ListTemplates operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request failed validation. For details, see the reason and fieldList members of the response.
      • InternalServerException The request processing failed because of an internal error in the service. This is a retryable error.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • ThrottlingException The request was denied because of request throttling. Reduce your request rate and try again.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • NetworkSecurityManagerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listTemplates

      default CompletableFuture<ListTemplatesResponse> listTemplates(Consumer<ListTemplatesRequest.Builder> listTemplatesRequest)

      Lists the templates in the account. You can filter the results by status and page through them using maxResults and nextToken.


      This is a convenience which creates an instance of the ListTemplatesRequest.Builder avoiding the need to create one manually via ListTemplatesRequest.builder()

      Parameters:
      listTemplatesRequest - A Consumer that will call methods on ListTemplatesRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the ListTemplates operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request failed validation. For details, see the reason and fieldList members of the response.
      • InternalServerException The request processing failed because of an internal error in the service. This is a retryable error.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • ThrottlingException The request was denied because of request throttling. Reduce your request rate and try again.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • NetworkSecurityManagerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listTemplatesPaginator

      default ListTemplatesPublisher listTemplatesPaginator(ListTemplatesRequest listTemplatesRequest)

      This is a variant of listTemplates(software.amazon.awssdk.services.networksecuritymanager.model.ListTemplatesRequest) 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.networksecuritymanager.paginators.ListTemplatesPublisher publisher = client.listTemplatesPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.networksecuritymanager.paginators.ListTemplatesPublisher publisher = client.listTemplatesPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.networksecuritymanager.model.ListTemplatesResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.networksecuritymanager.model.ListTemplatesResponse response) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      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 listTemplates(software.amazon.awssdk.services.networksecuritymanager.model.ListTemplatesRequest) operation.

      Parameters:
      listTemplatesRequest -
      Returns:
      A custom publisher that can be subscribed to request a stream of response pages.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request failed validation. For details, see the reason and fieldList members of the response.
      • InternalServerException The request processing failed because of an internal error in the service. This is a retryable error.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • ThrottlingException The request was denied because of request throttling. Reduce your request rate and try again.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • NetworkSecurityManagerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listTemplatesPaginator

      default ListTemplatesPublisher listTemplatesPaginator(Consumer<ListTemplatesRequest.Builder> listTemplatesRequest)

      This is a variant of listTemplates(software.amazon.awssdk.services.networksecuritymanager.model.ListTemplatesRequest) 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.networksecuritymanager.paginators.ListTemplatesPublisher publisher = client.listTemplatesPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.networksecuritymanager.paginators.ListTemplatesPublisher publisher = client.listTemplatesPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.networksecuritymanager.model.ListTemplatesResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.networksecuritymanager.model.ListTemplatesResponse response) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      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 listTemplates(software.amazon.awssdk.services.networksecuritymanager.model.ListTemplatesRequest) operation.


      This is a convenience which creates an instance of the ListTemplatesRequest.Builder avoiding the need to create one manually via ListTemplatesRequest.builder()

      Parameters:
      listTemplatesRequest - A Consumer that will call methods on ListTemplatesRequest.Builder to create a request.
      Returns:
      A custom publisher that can be subscribed to request a stream of response pages.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request failed validation. For details, see the reason and fieldList members of the response.
      • InternalServerException The request processing failed because of an internal error in the service. This is a retryable error.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • ThrottlingException The request was denied because of request throttling. Reduce your request rate and try again.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • NetworkSecurityManagerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • putAdminAccount

      default CompletableFuture<PutAdminAccountResponse> putAdminAccount(PutAdminAccountRequest putAdminAccountRequest)

      Sets the AWS account that serves as an AWS Network Security Manager administrator account, and optionally configures the scope of resources that the administrator can manage.

      You can't set an administrator account again immediately after you remove it, or while the service creates its service-linked role. Retry the request after a few minutes.

      Parameters:
      putAdminAccountRequest -
      Returns:
      A Java Future containing the result of the PutAdminAccount operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request failed validation. For details, see the reason and fieldList members of the response.
      • ServiceQuotaExceededException The request would exceed a service quota.
      • ConflictException The request conflicts with the current state of the resource. For example, the resource was modified concurrently, or it is in a state that does not allow the requested operation.
      • ServiceUnavailableException The service is temporarily unavailable. This is a retryable error.
      • InternalServerException The request processing failed because of an internal error in the service. This is a retryable error.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • ThrottlingException The request was denied because of request throttling. Reduce your request rate and try again.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • NetworkSecurityManagerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • putAdminAccount

      default CompletableFuture<PutAdminAccountResponse> putAdminAccount(Consumer<PutAdminAccountRequest.Builder> putAdminAccountRequest)

      Sets the AWS account that serves as an AWS Network Security Manager administrator account, and optionally configures the scope of resources that the administrator can manage.

      You can't set an administrator account again immediately after you remove it, or while the service creates its service-linked role. Retry the request after a few minutes.


      This is a convenience which creates an instance of the PutAdminAccountRequest.Builder avoiding the need to create one manually via PutAdminAccountRequest.builder()

      Parameters:
      putAdminAccountRequest - A Consumer that will call methods on PutAdminAccountRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the PutAdminAccount operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request failed validation. For details, see the reason and fieldList members of the response.
      • ServiceQuotaExceededException The request would exceed a service quota.
      • ConflictException The request conflicts with the current state of the resource. For example, the resource was modified concurrently, or it is in a state that does not allow the requested operation.
      • ServiceUnavailableException The service is temporarily unavailable. This is a retryable error.
      • InternalServerException The request processing failed because of an internal error in the service. This is a retryable error.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • ThrottlingException The request was denied because of request throttling. Reduce your request rate and try again.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • NetworkSecurityManagerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • tagResource

      default CompletableFuture<TagResourceResponse> tagResource(TagResourceRequest tagResourceRequest)

      Adds or overwrites the specified tags on the given resource.

      Parameters:
      tagResourceRequest -
      Returns:
      A Java Future containing the result of the TagResource operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request failed validation. For details, see the reason and fieldList members of the response.
      • TagPolicyViolationException The request violates a tag policy that is in effect for the account or organization.
      • InternalServerException The request processing failed because of an internal error in the service. This is a retryable error.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • ResourceNotFoundException The specified resource was not found. Verify that the resource identifier is correct and that the resource exists, then try your request again.
      • ThrottlingException The request was denied because of request throttling. Reduce your request rate and try again.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • NetworkSecurityManagerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • tagResource

      default CompletableFuture<TagResourceResponse> tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest)

      Adds or overwrites the specified tags on the given resource.


      This is a convenience which creates an instance of the TagResourceRequest.Builder avoiding the need to create one manually via TagResourceRequest.builder()

      Parameters:
      tagResourceRequest - A Consumer that will call methods on TagResourceRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the TagResource operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request failed validation. For details, see the reason and fieldList members of the response.
      • TagPolicyViolationException The request violates a tag policy that is in effect for the account or organization.
      • InternalServerException The request processing failed because of an internal error in the service. This is a retryable error.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • ResourceNotFoundException The specified resource was not found. Verify that the resource identifier is correct and that the resource exists, then try your request again.
      • ThrottlingException The request was denied because of request throttling. Reduce your request rate and try again.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • NetworkSecurityManagerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • untagResource

      default CompletableFuture<UntagResourceResponse> untagResource(UntagResourceRequest untagResourceRequest)

      Removes the specified tags from the given resource.

      Parameters:
      untagResourceRequest -
      Returns:
      A Java Future containing the result of the UntagResource operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request failed validation. For details, see the reason and fieldList members of the response.
      • TagPolicyViolationException The request violates a tag policy that is in effect for the account or organization.
      • InternalServerException The request processing failed because of an internal error in the service. This is a retryable error.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • ResourceNotFoundException The specified resource was not found. Verify that the resource identifier is correct and that the resource exists, then try your request again.
      • ThrottlingException The request was denied because of request throttling. Reduce your request rate and try again.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • NetworkSecurityManagerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • untagResource

      default CompletableFuture<UntagResourceResponse> untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest)

      Removes the specified tags from the given resource.


      This is a convenience which creates an instance of the UntagResourceRequest.Builder avoiding the need to create one manually via UntagResourceRequest.builder()

      Parameters:
      untagResourceRequest - A Consumer that will call methods on UntagResourceRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the UntagResource operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request failed validation. For details, see the reason and fieldList members of the response.
      • TagPolicyViolationException The request violates a tag policy that is in effect for the account or organization.
      • InternalServerException The request processing failed because of an internal error in the service. This is a retryable error.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • ResourceNotFoundException The specified resource was not found. Verify that the resource identifier is correct and that the resource exists, then try your request again.
      • ThrottlingException The request was denied because of request throttling. Reduce your request rate and try again.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • NetworkSecurityManagerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • updateDeployment

      default CompletableFuture<UpdateDeploymentResponse> updateDeployment(UpdateDeploymentRequest updateDeploymentRequest)

      Updates the specified deployment. To prevent conflicting concurrent updates, provide the current updateToken. Use isPublished to publish the update or keep the deployment as a draft.

      Parameters:
      updateDeploymentRequest -
      Returns:
      A Java Future containing the result of the UpdateDeployment operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request failed validation. For details, see the reason and fieldList members of the response.
      • ServiceQuotaExceededException The request would exceed a service quota.
      • ConflictException The request conflicts with the current state of the resource. For example, the resource was modified concurrently, or it is in a state that does not allow the requested operation.
      • InternalServerException The request processing failed because of an internal error in the service. This is a retryable error.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • ResourceNotFoundException The specified resource was not found. Verify that the resource identifier is correct and that the resource exists, then try your request again.
      • ThrottlingException The request was denied because of request throttling. Reduce your request rate and try again.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • NetworkSecurityManagerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • updateDeployment

      default CompletableFuture<UpdateDeploymentResponse> updateDeployment(Consumer<UpdateDeploymentRequest.Builder> updateDeploymentRequest)

      Updates the specified deployment. To prevent conflicting concurrent updates, provide the current updateToken. Use isPublished to publish the update or keep the deployment as a draft.


      This is a convenience which creates an instance of the UpdateDeploymentRequest.Builder avoiding the need to create one manually via UpdateDeploymentRequest.builder()

      Parameters:
      updateDeploymentRequest - A Consumer that will call methods on UpdateDeploymentRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the UpdateDeployment operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request failed validation. For details, see the reason and fieldList members of the response.
      • ServiceQuotaExceededException The request would exceed a service quota.
      • ConflictException The request conflicts with the current state of the resource. For example, the resource was modified concurrently, or it is in a state that does not allow the requested operation.
      • InternalServerException The request processing failed because of an internal error in the service. This is a retryable error.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • ResourceNotFoundException The specified resource was not found. Verify that the resource identifier is correct and that the resource exists, then try your request again.
      • ThrottlingException The request was denied because of request throttling. Reduce your request rate and try again.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • NetworkSecurityManagerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • updatePolicy

      default CompletableFuture<UpdatePolicyResponse> updatePolicy(UpdatePolicyRequest updatePolicyRequest)

      Updates the specified policy. To prevent conflicting concurrent updates, provide the current updateToken. Use isPublished to publish the update or keep the policy as a draft.

      Parameters:
      updatePolicyRequest -
      Returns:
      A Java Future containing the result of the UpdatePolicy operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request failed validation. For details, see the reason and fieldList members of the response.
      • ServiceQuotaExceededException The request would exceed a service quota.
      • ConflictException The request conflicts with the current state of the resource. For example, the resource was modified concurrently, or it is in a state that does not allow the requested operation.
      • InternalServerException The request processing failed because of an internal error in the service. This is a retryable error.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • ResourceNotFoundException The specified resource was not found. Verify that the resource identifier is correct and that the resource exists, then try your request again.
      • ThrottlingException The request was denied because of request throttling. Reduce your request rate and try again.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • NetworkSecurityManagerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • updatePolicy

      default CompletableFuture<UpdatePolicyResponse> updatePolicy(Consumer<UpdatePolicyRequest.Builder> updatePolicyRequest)

      Updates the specified policy. To prevent conflicting concurrent updates, provide the current updateToken. Use isPublished to publish the update or keep the policy as a draft.


      This is a convenience which creates an instance of the UpdatePolicyRequest.Builder avoiding the need to create one manually via UpdatePolicyRequest.builder()

      Parameters:
      updatePolicyRequest - A Consumer that will call methods on UpdatePolicyRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the UpdatePolicy operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request failed validation. For details, see the reason and fieldList members of the response.
      • ServiceQuotaExceededException The request would exceed a service quota.
      • ConflictException The request conflicts with the current state of the resource. For example, the resource was modified concurrently, or it is in a state that does not allow the requested operation.
      • InternalServerException The request processing failed because of an internal error in the service. This is a retryable error.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • ResourceNotFoundException The specified resource was not found. Verify that the resource identifier is correct and that the resource exists, then try your request again.
      • ThrottlingException The request was denied because of request throttling. Reduce your request rate and try again.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • NetworkSecurityManagerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • updateRule

      default CompletableFuture<UpdateRuleResponse> updateRule(UpdateRuleRequest updateRuleRequest)

      Updates the specified rule. To prevent conflicting concurrent updates, provide the current updateToken. Use isPublished to publish the update or keep the rule as a draft.

      Parameters:
      updateRuleRequest -
      Returns:
      A Java Future containing the result of the UpdateRule operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request failed validation. For details, see the reason and fieldList members of the response.
      • ServiceQuotaExceededException The request would exceed a service quota.
      • ConflictException The request conflicts with the current state of the resource. For example, the resource was modified concurrently, or it is in a state that does not allow the requested operation.
      • InternalServerException The request processing failed because of an internal error in the service. This is a retryable error.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • ResourceNotFoundException The specified resource was not found. Verify that the resource identifier is correct and that the resource exists, then try your request again.
      • ThrottlingException The request was denied because of request throttling. Reduce your request rate and try again.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • NetworkSecurityManagerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • updateRule

      default CompletableFuture<UpdateRuleResponse> updateRule(Consumer<UpdateRuleRequest.Builder> updateRuleRequest)

      Updates the specified rule. To prevent conflicting concurrent updates, provide the current updateToken. Use isPublished to publish the update or keep the rule as a draft.


      This is a convenience which creates an instance of the UpdateRuleRequest.Builder avoiding the need to create one manually via UpdateRuleRequest.builder()

      Parameters:
      updateRuleRequest - A Consumer that will call methods on UpdateRuleRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the UpdateRule operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request failed validation. For details, see the reason and fieldList members of the response.
      • ServiceQuotaExceededException The request would exceed a service quota.
      • ConflictException The request conflicts with the current state of the resource. For example, the resource was modified concurrently, or it is in a state that does not allow the requested operation.
      • InternalServerException The request processing failed because of an internal error in the service. This is a retryable error.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • ResourceNotFoundException The specified resource was not found. Verify that the resource identifier is correct and that the resource exists, then try your request again.
      • ThrottlingException The request was denied because of request throttling. Reduce your request rate and try again.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • NetworkSecurityManagerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • updateScope

      default CompletableFuture<UpdateScopeResponse> updateScope(UpdateScopeRequest updateScopeRequest)

      Updates the specified scope. To prevent conflicting concurrent updates, provide the current updateToken. Use isPublished to publish the update or keep the scope as a draft.

      Parameters:
      updateScopeRequest -
      Returns:
      A Java Future containing the result of the UpdateScope operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request failed validation. For details, see the reason and fieldList members of the response.
      • ServiceQuotaExceededException The request would exceed a service quota.
      • ConflictException The request conflicts with the current state of the resource. For example, the resource was modified concurrently, or it is in a state that does not allow the requested operation.
      • InternalServerException The request processing failed because of an internal error in the service. This is a retryable error.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • ResourceNotFoundException The specified resource was not found. Verify that the resource identifier is correct and that the resource exists, then try your request again.
      • ThrottlingException The request was denied because of request throttling. Reduce your request rate and try again.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • NetworkSecurityManagerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • updateScope

      default CompletableFuture<UpdateScopeResponse> updateScope(Consumer<UpdateScopeRequest.Builder> updateScopeRequest)

      Updates the specified scope. To prevent conflicting concurrent updates, provide the current updateToken. Use isPublished to publish the update or keep the scope as a draft.


      This is a convenience which creates an instance of the UpdateScopeRequest.Builder avoiding the need to create one manually via UpdateScopeRequest.builder()

      Parameters:
      updateScopeRequest - A Consumer that will call methods on UpdateScopeRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the UpdateScope operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request failed validation. For details, see the reason and fieldList members of the response.
      • ServiceQuotaExceededException The request would exceed a service quota.
      • ConflictException The request conflicts with the current state of the resource. For example, the resource was modified concurrently, or it is in a state that does not allow the requested operation.
      • InternalServerException The request processing failed because of an internal error in the service. This is a retryable error.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • ResourceNotFoundException The specified resource was not found. Verify that the resource identifier is correct and that the resource exists, then try your request again.
      • ThrottlingException The request was denied because of request throttling. Reduce your request rate and try again.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • NetworkSecurityManagerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • updateTemplate

      default CompletableFuture<UpdateTemplateResponse> updateTemplate(UpdateTemplateRequest updateTemplateRequest)

      Updates the specified template. To prevent conflicting concurrent updates, provide the current updateToken. Use isPublished to publish the update or keep the template as a draft.

      Parameters:
      updateTemplateRequest -
      Returns:
      A Java Future containing the result of the UpdateTemplate operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request failed validation. For details, see the reason and fieldList members of the response.
      • ServiceQuotaExceededException The request would exceed a service quota.
      • ConflictException The request conflicts with the current state of the resource. For example, the resource was modified concurrently, or it is in a state that does not allow the requested operation.
      • InternalServerException The request processing failed because of an internal error in the service. This is a retryable error.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • ResourceNotFoundException The specified resource was not found. Verify that the resource identifier is correct and that the resource exists, then try your request again.
      • ThrottlingException The request was denied because of request throttling. Reduce your request rate and try again.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • NetworkSecurityManagerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • updateTemplate

      default CompletableFuture<UpdateTemplateResponse> updateTemplate(Consumer<UpdateTemplateRequest.Builder> updateTemplateRequest)

      Updates the specified template. To prevent conflicting concurrent updates, provide the current updateToken. Use isPublished to publish the update or keep the template as a draft.


      This is a convenience which creates an instance of the UpdateTemplateRequest.Builder avoiding the need to create one manually via UpdateTemplateRequest.builder()

      Parameters:
      updateTemplateRequest - A Consumer that will call methods on UpdateTemplateRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the UpdateTemplate operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request failed validation. For details, see the reason and fieldList members of the response.
      • ServiceQuotaExceededException The request would exceed a service quota.
      • ConflictException The request conflicts with the current state of the resource. For example, the resource was modified concurrently, or it is in a state that does not allow the requested operation.
      • InternalServerException The request processing failed because of an internal error in the service. This is a retryable error.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • ResourceNotFoundException The specified resource was not found. Verify that the resource identifier is correct and that the resource exists, then try your request again.
      • ThrottlingException The request was denied because of request throttling. Reduce your request rate and try again.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • NetworkSecurityManagerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • serviceClientConfiguration

      default NetworkSecurityManagerServiceClientConfiguration serviceClientConfiguration()
      Description copied from interface: SdkClient
      The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfiguration
      Specified by:
      serviceClientConfiguration in interface AwsClient
      Specified by:
      serviceClientConfiguration in interface SdkClient
      Returns:
      SdkServiceClientConfiguration
    • create

      Create a NetworkSecurityManagerAsyncClient with the region loaded from the DefaultAwsRegionProviderChain and credentials loaded from the DefaultCredentialsProvider.
    • builder

      Create a builder that can be used to configure and create a NetworkSecurityManagerAsyncClient.