Interface NetworkSecurityManagerClient
- All Superinterfaces:
AutoCloseable,AwsClient,SdkAutoCloseable,SdkClient
builder() method.
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 Summary
FieldsModifier and TypeFieldDescriptionstatic final StringValue for looking up the service's metadata from theServiceMetadataProvider.static final String -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Create a builder that can be used to configure and create aNetworkSecurityManagerClient.static NetworkSecurityManagerClientcreate()Create aNetworkSecurityManagerClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider.default CreateDeploymentResponsecreateDeployment(Consumer<CreateDeploymentRequest.Builder> createDeploymentRequest) Creates a deployment.default CreateDeploymentResponsecreateDeployment(CreateDeploymentRequest createDeploymentRequest) Creates a deployment.default CreateDeploymentSnapshotResponsecreateDeploymentSnapshot(Consumer<CreateDeploymentSnapshotRequest.Builder> createDeploymentSnapshotRequest) Creates a snapshot of the current published version of the specified deployment.default CreateDeploymentSnapshotResponsecreateDeploymentSnapshot(CreateDeploymentSnapshotRequest createDeploymentSnapshotRequest) Creates a snapshot of the current published version of the specified deployment.default CreatePolicyResponsecreatePolicy(Consumer<CreatePolicyRequest.Builder> createPolicyRequest) Creates a policy.default CreatePolicyResponsecreatePolicy(CreatePolicyRequest createPolicyRequest) Creates a policy.default CreatePolicySnapshotResponsecreatePolicySnapshot(Consumer<CreatePolicySnapshotRequest.Builder> createPolicySnapshotRequest) Creates a snapshot of the current published version of the specified policy.default CreatePolicySnapshotResponsecreatePolicySnapshot(CreatePolicySnapshotRequest createPolicySnapshotRequest) Creates a snapshot of the current published version of the specified policy.default CreateRuleResponsecreateRule(Consumer<CreateRuleRequest.Builder> createRuleRequest) Creates a rule.default CreateRuleResponsecreateRule(CreateRuleRequest createRuleRequest) Creates a rule.default CreateRuleSnapshotResponsecreateRuleSnapshot(Consumer<CreateRuleSnapshotRequest.Builder> createRuleSnapshotRequest) Creates a snapshot of the current published version of the specified rule.default CreateRuleSnapshotResponsecreateRuleSnapshot(CreateRuleSnapshotRequest createRuleSnapshotRequest) Creates a snapshot of the current published version of the specified rule.default CreateScopeResponsecreateScope(Consumer<CreateScopeRequest.Builder> createScopeRequest) Creates a scope.default CreateScopeResponsecreateScope(CreateScopeRequest createScopeRequest) Creates a scope.default CreateScopeSnapshotResponsecreateScopeSnapshot(Consumer<CreateScopeSnapshotRequest.Builder> createScopeSnapshotRequest) Creates a snapshot of the current published version of the specified scope.default CreateScopeSnapshotResponsecreateScopeSnapshot(CreateScopeSnapshotRequest createScopeSnapshotRequest) Creates a snapshot of the current published version of the specified scope.default CreateTemplateResponsecreateTemplate(Consumer<CreateTemplateRequest.Builder> createTemplateRequest) Creates a template.default CreateTemplateResponsecreateTemplate(CreateTemplateRequest createTemplateRequest) Creates a template.default CreateTemplateSnapshotResponsecreateTemplateSnapshot(Consumer<CreateTemplateSnapshotRequest.Builder> createTemplateSnapshotRequest) Creates a snapshot of the current published version of the specified template.default CreateTemplateSnapshotResponsecreateTemplateSnapshot(CreateTemplateSnapshotRequest createTemplateSnapshotRequest) Creates a snapshot of the current published version of the specified template.default DeleteAdminAccountResponsedeleteAdminAccount(Consumer<DeleteAdminAccountRequest.Builder> deleteAdminAccountRequest) Removes the specified AWS Network Security Manager administrator account.default DeleteAdminAccountResponsedeleteAdminAccount(DeleteAdminAccountRequest deleteAdminAccountRequest) Removes the specified AWS Network Security Manager administrator account.default DeleteDeploymentResponsedeleteDeployment(Consumer<DeleteDeploymentRequest.Builder> deleteDeploymentRequest) Deletes the specified deployment.default DeleteDeploymentResponsedeleteDeployment(DeleteDeploymentRequest deleteDeploymentRequest) Deletes the specified deployment.default DeletePolicyResponsedeletePolicy(Consumer<DeletePolicyRequest.Builder> deletePolicyRequest) Deletes the specified policy.default DeletePolicyResponsedeletePolicy(DeletePolicyRequest deletePolicyRequest) Deletes the specified policy.default DeleteRuleResponsedeleteRule(Consumer<DeleteRuleRequest.Builder> deleteRuleRequest) Deletes the specified rule.default DeleteRuleResponsedeleteRule(DeleteRuleRequest deleteRuleRequest) Deletes the specified rule.default DeleteScopeResponsedeleteScope(Consumer<DeleteScopeRequest.Builder> deleteScopeRequest) Deletes the specified scope.default DeleteScopeResponsedeleteScope(DeleteScopeRequest deleteScopeRequest) Deletes the specified scope.default DeleteTemplateResponsedeleteTemplate(Consumer<DeleteTemplateRequest.Builder> deleteTemplateRequest) Deletes the specified template.default DeleteTemplateResponsedeleteTemplate(DeleteTemplateRequest deleteTemplateRequest) Deletes the specified template.generateRuleConfiguration(Consumer<GenerateRuleConfigurationRequest.Builder> generateRuleConfigurationRequest) Generates a rule configuration from a natural-language description.generateRuleConfiguration(GenerateRuleConfigurationRequest generateRuleConfigurationRequest) Generates a rule configuration from a natural-language description.default GetAdminAccountResponsegetAdminAccount(Consumer<GetAdminAccountRequest.Builder> getAdminAccountRequest) Retrieves the details of the specified AWS Network Security Manager administrator account.default GetAdminAccountResponsegetAdminAccount(GetAdminAccountRequest getAdminAccountRequest) Retrieves the details of the specified AWS Network Security Manager administrator account.default GetDeploymentResponsegetDeployment(Consumer<GetDeploymentRequest.Builder> getDeploymentRequest) Retrieves the details of the specified deployment, including coverage information and any warnings.default GetDeploymentResponsegetDeployment(GetDeploymentRequest getDeploymentRequest) Retrieves the details of the specified deployment, including coverage information and any warnings.default GetPolicyResponsegetPolicy(Consumer<GetPolicyRequest.Builder> getPolicyRequest) Retrieves the details of the specified policy.default GetPolicyResponsegetPolicy(GetPolicyRequest getPolicyRequest) Retrieves the details of the specified policy.default GetRuleResponsegetRule(Consumer<GetRuleRequest.Builder> getRuleRequest) Retrieves the details of the specified rule.default GetRuleResponsegetRule(GetRuleRequest getRuleRequest) Retrieves the details of the specified rule.default GetScopeResponsegetScope(Consumer<GetScopeRequest.Builder> getScopeRequest) Retrieves the details of the specified scope.default GetScopeResponsegetScope(GetScopeRequest getScopeRequest) Retrieves the details of the specified scope.default GetTemplateResponsegetTemplate(Consumer<GetTemplateRequest.Builder> getTemplateRequest) Retrieves the details of the specified template.default GetTemplateResponsegetTemplate(GetTemplateRequest getTemplateRequest) Retrieves the details of the specified template.default ListAdminAccountsResponselistAdminAccounts(Consumer<ListAdminAccountsRequest.Builder> listAdminAccountsRequest) Lists the AWS Network Security Manager administrator accounts in the organization.default ListAdminAccountsResponselistAdminAccounts(ListAdminAccountsRequest listAdminAccountsRequest) Lists the AWS Network Security Manager administrator accounts in the organization.default ListAdminAccountsIterablelistAdminAccountsPaginator(Consumer<ListAdminAccountsRequest.Builder> listAdminAccountsRequest) This is a variant oflistAdminAccounts(software.amazon.awssdk.services.networksecuritymanager.model.ListAdminAccountsRequest)operation.default ListAdminAccountsIterablelistAdminAccountsPaginator(ListAdminAccountsRequest listAdminAccountsRequest) This is a variant oflistAdminAccounts(software.amazon.awssdk.services.networksecuritymanager.model.ListAdminAccountsRequest)operation.listAggregateResourceSynchronizationStatuses(Consumer<ListAggregateResourceSynchronizationStatusesRequest.Builder> listAggregateResourceSynchronizationStatusesRequest) Lists the aggregated synchronization statuses of resources across the deployments in your administrator account.listAggregateResourceSynchronizationStatuses(ListAggregateResourceSynchronizationStatusesRequest listAggregateResourceSynchronizationStatusesRequest) Lists the aggregated synchronization statuses of resources across the deployments in your administrator account.listAggregateResourceSynchronizationStatusesPaginator(Consumer<ListAggregateResourceSynchronizationStatusesRequest.Builder> listAggregateResourceSynchronizationStatusesRequest) listAggregateResourceSynchronizationStatusesPaginator(ListAggregateResourceSynchronizationStatusesRequest listAggregateResourceSynchronizationStatusesRequest) default ListDeploymentsResponselistDeployments(Consumer<ListDeploymentsRequest.Builder> listDeploymentsRequest) Lists the deployments in the account.default ListDeploymentsResponselistDeployments(ListDeploymentsRequest listDeploymentsRequest) Lists the deployments in the account.default ListDeploymentSnapshotsResponselistDeploymentSnapshots(Consumer<ListDeploymentSnapshotsRequest.Builder> listDeploymentSnapshotsRequest) Lists the snapshots of the specified deployment.default ListDeploymentSnapshotsResponselistDeploymentSnapshots(ListDeploymentSnapshotsRequest listDeploymentSnapshotsRequest) Lists the snapshots of the specified deployment.default ListDeploymentSnapshotsIterablelistDeploymentSnapshotsPaginator(Consumer<ListDeploymentSnapshotsRequest.Builder> listDeploymentSnapshotsRequest) This is a variant oflistDeploymentSnapshots(software.amazon.awssdk.services.networksecuritymanager.model.ListDeploymentSnapshotsRequest)operation.default ListDeploymentSnapshotsIterablelistDeploymentSnapshotsPaginator(ListDeploymentSnapshotsRequest listDeploymentSnapshotsRequest) This is a variant oflistDeploymentSnapshots(software.amazon.awssdk.services.networksecuritymanager.model.ListDeploymentSnapshotsRequest)operation.default ListDeploymentsIterablelistDeploymentsPaginator(Consumer<ListDeploymentsRequest.Builder> listDeploymentsRequest) This is a variant oflistDeployments(software.amazon.awssdk.services.networksecuritymanager.model.ListDeploymentsRequest)operation.default ListDeploymentsIterablelistDeploymentsPaginator(ListDeploymentsRequest listDeploymentsRequest) This is a variant oflistDeployments(software.amazon.awssdk.services.networksecuritymanager.model.ListDeploymentsRequest)operation.default ListPoliciesResponselistPolicies(Consumer<ListPoliciesRequest.Builder> listPoliciesRequest) Lists the policies in the account.default ListPoliciesResponselistPolicies(ListPoliciesRequest listPoliciesRequest) Lists the policies in the account.default ListPoliciesIterablelistPoliciesPaginator(Consumer<ListPoliciesRequest.Builder> listPoliciesRequest) This is a variant oflistPolicies(software.amazon.awssdk.services.networksecuritymanager.model.ListPoliciesRequest)operation.default ListPoliciesIterablelistPoliciesPaginator(ListPoliciesRequest listPoliciesRequest) This is a variant oflistPolicies(software.amazon.awssdk.services.networksecuritymanager.model.ListPoliciesRequest)operation.default ListPolicySnapshotsResponselistPolicySnapshots(Consumer<ListPolicySnapshotsRequest.Builder> listPolicySnapshotsRequest) Lists the snapshots of the specified policy.default ListPolicySnapshotsResponselistPolicySnapshots(ListPolicySnapshotsRequest listPolicySnapshotsRequest) Lists the snapshots of the specified policy.default ListPolicySnapshotsIterablelistPolicySnapshotsPaginator(Consumer<ListPolicySnapshotsRequest.Builder> listPolicySnapshotsRequest) This is a variant oflistPolicySnapshots(software.amazon.awssdk.services.networksecuritymanager.model.ListPolicySnapshotsRequest)operation.default ListPolicySnapshotsIterablelistPolicySnapshotsPaginator(ListPolicySnapshotsRequest listPolicySnapshotsRequest) This is a variant oflistPolicySnapshots(software.amazon.awssdk.services.networksecuritymanager.model.ListPolicySnapshotsRequest)operation.default ListResourceAssociationsResponselistResourceAssociations(Consumer<ListResourceAssociationsRequest.Builder> listResourceAssociationsRequest) Lists the resources associated with the specified resource.default ListResourceAssociationsResponselistResourceAssociations(ListResourceAssociationsRequest listResourceAssociationsRequest) Lists the resources associated with the specified resource.default ListResourceAssociationsIterablelistResourceAssociationsPaginator(Consumer<ListResourceAssociationsRequest.Builder> listResourceAssociationsRequest) This is a variant oflistResourceAssociations(software.amazon.awssdk.services.networksecuritymanager.model.ListResourceAssociationsRequest)operation.default ListResourceAssociationsIterablelistResourceAssociationsPaginator(ListResourceAssociationsRequest listResourceAssociationsRequest) This is a variant oflistResourceAssociations(software.amazon.awssdk.services.networksecuritymanager.model.ListResourceAssociationsRequest)operation.listResourceSynchronizationStatuses(Consumer<ListResourceSynchronizationStatusesRequest.Builder> listResourceSynchronizationStatusesRequest) Lists the synchronization statuses of the resources covered by the specified deployment.listResourceSynchronizationStatuses(ListResourceSynchronizationStatusesRequest listResourceSynchronizationStatusesRequest) Lists the synchronization statuses of the resources covered by the specified deployment.listResourceSynchronizationStatusesPaginator(Consumer<ListResourceSynchronizationStatusesRequest.Builder> listResourceSynchronizationStatusesRequest) listResourceSynchronizationStatusesPaginator(ListResourceSynchronizationStatusesRequest listResourceSynchronizationStatusesRequest) default ListRulesResponselistRules(Consumer<ListRulesRequest.Builder> listRulesRequest) Lists the rules in the account.default ListRulesResponselistRules(ListRulesRequest listRulesRequest) Lists the rules in the account.default ListRuleSnapshotsResponselistRuleSnapshots(Consumer<ListRuleSnapshotsRequest.Builder> listRuleSnapshotsRequest) Lists the snapshots of the specified rule.default ListRuleSnapshotsResponselistRuleSnapshots(ListRuleSnapshotsRequest listRuleSnapshotsRequest) Lists the snapshots of the specified rule.default ListRuleSnapshotsIterablelistRuleSnapshotsPaginator(Consumer<ListRuleSnapshotsRequest.Builder> listRuleSnapshotsRequest) This is a variant oflistRuleSnapshots(software.amazon.awssdk.services.networksecuritymanager.model.ListRuleSnapshotsRequest)operation.default ListRuleSnapshotsIterablelistRuleSnapshotsPaginator(ListRuleSnapshotsRequest listRuleSnapshotsRequest) This is a variant oflistRuleSnapshots(software.amazon.awssdk.services.networksecuritymanager.model.ListRuleSnapshotsRequest)operation.default ListRulesIterablelistRulesPaginator(Consumer<ListRulesRequest.Builder> listRulesRequest) This is a variant oflistRules(software.amazon.awssdk.services.networksecuritymanager.model.ListRulesRequest)operation.default ListRulesIterablelistRulesPaginator(ListRulesRequest listRulesRequest) This is a variant oflistRules(software.amazon.awssdk.services.networksecuritymanager.model.ListRulesRequest)operation.default ListScopesResponselistScopes(Consumer<ListScopesRequest.Builder> listScopesRequest) Lists the scopes in the account.default ListScopesResponselistScopes(ListScopesRequest listScopesRequest) Lists the scopes in the account.default ListScopeSnapshotsResponselistScopeSnapshots(Consumer<ListScopeSnapshotsRequest.Builder> listScopeSnapshotsRequest) Lists the snapshots of the specified scope.default ListScopeSnapshotsResponselistScopeSnapshots(ListScopeSnapshotsRequest listScopeSnapshotsRequest) Lists the snapshots of the specified scope.default ListScopeSnapshotsIterablelistScopeSnapshotsPaginator(Consumer<ListScopeSnapshotsRequest.Builder> listScopeSnapshotsRequest) This is a variant oflistScopeSnapshots(software.amazon.awssdk.services.networksecuritymanager.model.ListScopeSnapshotsRequest)operation.default ListScopeSnapshotsIterablelistScopeSnapshotsPaginator(ListScopeSnapshotsRequest listScopeSnapshotsRequest) This is a variant oflistScopeSnapshots(software.amazon.awssdk.services.networksecuritymanager.model.ListScopeSnapshotsRequest)operation.default ListScopesIterablelistScopesPaginator(Consumer<ListScopesRequest.Builder> listScopesRequest) This is a variant oflistScopes(software.amazon.awssdk.services.networksecuritymanager.model.ListScopesRequest)operation.default ListScopesIterablelistScopesPaginator(ListScopesRequest listScopesRequest) This is a variant oflistScopes(software.amazon.awssdk.services.networksecuritymanager.model.ListScopesRequest)operation.default ListTagsForResourceResponselistTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) Lists the tags associated with the specified resource.default ListTagsForResourceResponselistTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) Lists the tags associated with the specified resource.default ListTemplatesResponselistTemplates(Consumer<ListTemplatesRequest.Builder> listTemplatesRequest) Lists the templates in the account.default ListTemplatesResponselistTemplates(ListTemplatesRequest listTemplatesRequest) Lists the templates in the account.default ListTemplateSnapshotsResponselistTemplateSnapshots(Consumer<ListTemplateSnapshotsRequest.Builder> listTemplateSnapshotsRequest) Lists the snapshots of the specified template.default ListTemplateSnapshotsResponselistTemplateSnapshots(ListTemplateSnapshotsRequest listTemplateSnapshotsRequest) Lists the snapshots of the specified template.default ListTemplateSnapshotsIterablelistTemplateSnapshotsPaginator(Consumer<ListTemplateSnapshotsRequest.Builder> listTemplateSnapshotsRequest) This is a variant oflistTemplateSnapshots(software.amazon.awssdk.services.networksecuritymanager.model.ListTemplateSnapshotsRequest)operation.default ListTemplateSnapshotsIterablelistTemplateSnapshotsPaginator(ListTemplateSnapshotsRequest listTemplateSnapshotsRequest) This is a variant oflistTemplateSnapshots(software.amazon.awssdk.services.networksecuritymanager.model.ListTemplateSnapshotsRequest)operation.default ListTemplatesIterablelistTemplatesPaginator(Consumer<ListTemplatesRequest.Builder> listTemplatesRequest) This is a variant oflistTemplates(software.amazon.awssdk.services.networksecuritymanager.model.ListTemplatesRequest)operation.default ListTemplatesIterablelistTemplatesPaginator(ListTemplatesRequest listTemplatesRequest) This is a variant oflistTemplates(software.amazon.awssdk.services.networksecuritymanager.model.ListTemplatesRequest)operation.default PutAdminAccountResponseputAdminAccount(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.default PutAdminAccountResponseputAdminAccount(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.The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfigurationstatic ServiceMetadatadefault TagResourceResponsetagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) Adds or overwrites the specified tags on the given resource.default TagResourceResponsetagResource(TagResourceRequest tagResourceRequest) Adds or overwrites the specified tags on the given resource.default UntagResourceResponseuntagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) Removes the specified tags from the given resource.default UntagResourceResponseuntagResource(UntagResourceRequest untagResourceRequest) Removes the specified tags from the given resource.default UpdateDeploymentResponseupdateDeployment(Consumer<UpdateDeploymentRequest.Builder> updateDeploymentRequest) Updates the specified deployment.default UpdateDeploymentResponseupdateDeployment(UpdateDeploymentRequest updateDeploymentRequest) Updates the specified deployment.default UpdatePolicyResponseupdatePolicy(Consumer<UpdatePolicyRequest.Builder> updatePolicyRequest) Updates the specified policy.default UpdatePolicyResponseupdatePolicy(UpdatePolicyRequest updatePolicyRequest) Updates the specified policy.default UpdateRuleResponseupdateRule(Consumer<UpdateRuleRequest.Builder> updateRuleRequest) Updates the specified rule.default UpdateRuleResponseupdateRule(UpdateRuleRequest updateRuleRequest) Updates the specified rule.default UpdateScopeResponseupdateScope(Consumer<UpdateScopeRequest.Builder> updateScopeRequest) Updates the specified scope.default UpdateScopeResponseupdateScope(UpdateScopeRequest updateScopeRequest) Updates the specified scope.default UpdateTemplateResponseupdateTemplate(Consumer<UpdateTemplateRequest.Builder> updateTemplateRequest) Updates the specified template.default UpdateTemplateResponseupdateTemplate(UpdateTemplateRequest updateTemplateRequest) Updates the specified template.Methods inherited from interface software.amazon.awssdk.utils.SdkAutoCloseable
closeMethods inherited from interface software.amazon.awssdk.core.SdkClient
serviceName
-
Field Details
-
SERVICE_NAME
- See Also:
-
SERVICE_METADATA_ID
Value for looking up the service's metadata from theServiceMetadataProvider.- See Also:
-
-
Method Details
-
createDeployment
default CreateDeploymentResponse createDeployment(CreateDeploymentRequest createDeploymentRequest) throws ValidationException, ServiceQuotaExceededException, ConflictException, ServiceUnavailableException, TagPolicyViolationException, InternalServerException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, NetworkSecurityManagerException Creates a deployment. A deployment applies one or more policies to the accounts and resources selected by a scope. Use
isPublishedto create the deployment in published (ACTIVE) or draft (DRAFT) state. The response includes coverage information and any warnings about the deployment.- Parameters:
createDeploymentRequest-- Returns:
- Result of the CreateDeployment operation returned by the service.
- See Also:
-
createDeployment
default CreateDeploymentResponse createDeployment(Consumer<CreateDeploymentRequest.Builder> createDeploymentRequest) throws ValidationException, ServiceQuotaExceededException, ConflictException, ServiceUnavailableException, TagPolicyViolationException, InternalServerException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, NetworkSecurityManagerException Creates a deployment. A deployment applies one or more policies to the accounts and resources selected by a scope. Use
isPublishedto 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.Builderavoiding the need to create one manually viaCreateDeploymentRequest.builder()- Parameters:
createDeploymentRequest- AConsumerthat will call methods onCreateDeploymentRequest.Builderto create a request.- Returns:
- Result of the CreateDeployment operation returned by the service.
- See Also:
-
createDeploymentSnapshot
default CreateDeploymentSnapshotResponse createDeploymentSnapshot(CreateDeploymentSnapshotRequest createDeploymentSnapshotRequest) throws ValidationException, ServiceQuotaExceededException, ConflictException, InternalServerException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, NetworkSecurityManagerException Creates a snapshot of the current published version of the specified deployment.
- Parameters:
createDeploymentSnapshotRequest-- Returns:
- Result of the CreateDeploymentSnapshot operation returned by the service.
- See Also:
-
createDeploymentSnapshot
default CreateDeploymentSnapshotResponse createDeploymentSnapshot(Consumer<CreateDeploymentSnapshotRequest.Builder> createDeploymentSnapshotRequest) throws ValidationException, ServiceQuotaExceededException, ConflictException, InternalServerException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, NetworkSecurityManagerException Creates a snapshot of the current published version of the specified deployment.
This is a convenience which creates an instance of the
CreateDeploymentSnapshotRequest.Builderavoiding the need to create one manually viaCreateDeploymentSnapshotRequest.builder()- Parameters:
createDeploymentSnapshotRequest- AConsumerthat will call methods onCreateDeploymentSnapshotRequest.Builderto create a request.- Returns:
- Result of the CreateDeploymentSnapshot operation returned by the service.
- See Also:
-
createPolicy
default CreatePolicyResponse createPolicy(CreatePolicyRequest createPolicyRequest) throws ValidationException, ServiceQuotaExceededException, ConflictException, ServiceUnavailableException, TagPolicyViolationException, InternalServerException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, NetworkSecurityManagerException 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
isPublishedto create the policy in published (ACTIVE) or draft (DRAFT) state.- Parameters:
createPolicyRequest-- Returns:
- Result of the CreatePolicy operation returned by the service.
- See Also:
-
createPolicy
default CreatePolicyResponse createPolicy(Consumer<CreatePolicyRequest.Builder> createPolicyRequest) throws ValidationException, ServiceQuotaExceededException, ConflictException, ServiceUnavailableException, TagPolicyViolationException, InternalServerException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, NetworkSecurityManagerException 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
isPublishedto create the policy in published (ACTIVE) or draft (DRAFT) state.
This is a convenience which creates an instance of the
CreatePolicyRequest.Builderavoiding the need to create one manually viaCreatePolicyRequest.builder()- Parameters:
createPolicyRequest- AConsumerthat will call methods onCreatePolicyRequest.Builderto create a request.- Returns:
- Result of the CreatePolicy operation returned by the service.
- See Also:
-
createPolicySnapshot
default CreatePolicySnapshotResponse createPolicySnapshot(CreatePolicySnapshotRequest createPolicySnapshotRequest) throws ValidationException, ServiceQuotaExceededException, ConflictException, InternalServerException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, NetworkSecurityManagerException Creates a snapshot of the current published version of the specified policy.
- Parameters:
createPolicySnapshotRequest-- Returns:
- Result of the CreatePolicySnapshot operation returned by the service.
- See Also:
-
createPolicySnapshot
default CreatePolicySnapshotResponse createPolicySnapshot(Consumer<CreatePolicySnapshotRequest.Builder> createPolicySnapshotRequest) throws ValidationException, ServiceQuotaExceededException, ConflictException, InternalServerException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, NetworkSecurityManagerException Creates a snapshot of the current published version of the specified policy.
This is a convenience which creates an instance of the
CreatePolicySnapshotRequest.Builderavoiding the need to create one manually viaCreatePolicySnapshotRequest.builder()- Parameters:
createPolicySnapshotRequest- AConsumerthat will call methods onCreatePolicySnapshotRequest.Builderto create a request.- Returns:
- Result of the CreatePolicySnapshot operation returned by the service.
- See Also:
-
createRule
default CreateRuleResponse createRule(CreateRuleRequest createRuleRequest) throws ValidationException, ServiceQuotaExceededException, ConflictException, ServiceUnavailableException, TagPolicyViolationException, InternalServerException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, NetworkSecurityManagerException Creates a rule. A rule defines a network security configuration to enforce, such as an AWS WAF rule group or configuration data. Use
isPublishedto create the rule in published (ACTIVE) or draft (DRAFT) state.- Parameters:
createRuleRequest-- Returns:
- Result of the CreateRule operation returned by the service.
- See Also:
-
createRule
default CreateRuleResponse createRule(Consumer<CreateRuleRequest.Builder> createRuleRequest) throws ValidationException, ServiceQuotaExceededException, ConflictException, ServiceUnavailableException, TagPolicyViolationException, InternalServerException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, NetworkSecurityManagerException Creates a rule. A rule defines a network security configuration to enforce, such as an AWS WAF rule group or configuration data. Use
isPublishedto create the rule in published (ACTIVE) or draft (DRAFT) state.
This is a convenience which creates an instance of the
CreateRuleRequest.Builderavoiding the need to create one manually viaCreateRuleRequest.builder()- Parameters:
createRuleRequest- AConsumerthat will call methods onCreateRuleRequest.Builderto create a request.- Returns:
- Result of the CreateRule operation returned by the service.
- See Also:
-
createRuleSnapshot
default CreateRuleSnapshotResponse createRuleSnapshot(CreateRuleSnapshotRequest createRuleSnapshotRequest) throws ValidationException, ServiceQuotaExceededException, ConflictException, InternalServerException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, NetworkSecurityManagerException 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:
- Result of the CreateRuleSnapshot operation returned by the service.
- See Also:
-
createRuleSnapshot
default CreateRuleSnapshotResponse createRuleSnapshot(Consumer<CreateRuleSnapshotRequest.Builder> createRuleSnapshotRequest) throws ValidationException, ServiceQuotaExceededException, ConflictException, InternalServerException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, NetworkSecurityManagerException 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.Builderavoiding the need to create one manually viaCreateRuleSnapshotRequest.builder()- Parameters:
createRuleSnapshotRequest- AConsumerthat will call methods onCreateRuleSnapshotRequest.Builderto create a request.- Returns:
- Result of the CreateRuleSnapshot operation returned by the service.
- See Also:
-
createScope
default CreateScopeResponse createScope(CreateScopeRequest createScopeRequest) throws ValidationException, ServiceQuotaExceededException, ConflictException, ServiceUnavailableException, TagPolicyViolationException, InternalServerException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, NetworkSecurityManagerException Creates a scope. A scope selects the accounts and resources that a deployment applies to. Use
isPublishedto create the scope in published (ACTIVE) or draft (DRAFT) state.- Parameters:
createScopeRequest-- Returns:
- Result of the CreateScope operation returned by the service.
- See Also:
-
createScope
default CreateScopeResponse createScope(Consumer<CreateScopeRequest.Builder> createScopeRequest) throws ValidationException, ServiceQuotaExceededException, ConflictException, ServiceUnavailableException, TagPolicyViolationException, InternalServerException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, NetworkSecurityManagerException Creates a scope. A scope selects the accounts and resources that a deployment applies to. Use
isPublishedto create the scope in published (ACTIVE) or draft (DRAFT) state.
This is a convenience which creates an instance of the
CreateScopeRequest.Builderavoiding the need to create one manually viaCreateScopeRequest.builder()- Parameters:
createScopeRequest- AConsumerthat will call methods onCreateScopeRequest.Builderto create a request.- Returns:
- Result of the CreateScope operation returned by the service.
- See Also:
-
createScopeSnapshot
default CreateScopeSnapshotResponse createScopeSnapshot(CreateScopeSnapshotRequest createScopeSnapshotRequest) throws ValidationException, ServiceQuotaExceededException, ConflictException, InternalServerException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, NetworkSecurityManagerException Creates a snapshot of the current published version of the specified scope.
- Parameters:
createScopeSnapshotRequest-- Returns:
- Result of the CreateScopeSnapshot operation returned by the service.
- See Also:
-
createScopeSnapshot
default CreateScopeSnapshotResponse createScopeSnapshot(Consumer<CreateScopeSnapshotRequest.Builder> createScopeSnapshotRequest) throws ValidationException, ServiceQuotaExceededException, ConflictException, InternalServerException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, NetworkSecurityManagerException Creates a snapshot of the current published version of the specified scope.
This is a convenience which creates an instance of the
CreateScopeSnapshotRequest.Builderavoiding the need to create one manually viaCreateScopeSnapshotRequest.builder()- Parameters:
createScopeSnapshotRequest- AConsumerthat will call methods onCreateScopeSnapshotRequest.Builderto create a request.- Returns:
- Result of the CreateScopeSnapshot operation returned by the service.
- See Also:
-
createTemplate
default CreateTemplateResponse createTemplate(CreateTemplateRequest createTemplateRequest) throws ValidationException, ServiceQuotaExceededException, ConflictException, ServiceUnavailableException, TagPolicyViolationException, InternalServerException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, NetworkSecurityManagerException 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
isPublishedto create the template in published (ACTIVE) or draft (DRAFT) state.- Parameters:
createTemplateRequest-- Returns:
- Result of the CreateTemplate operation returned by the service.
- See Also:
-
createTemplate
default CreateTemplateResponse createTemplate(Consumer<CreateTemplateRequest.Builder> createTemplateRequest) throws ValidationException, ServiceQuotaExceededException, ConflictException, ServiceUnavailableException, TagPolicyViolationException, InternalServerException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, NetworkSecurityManagerException 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
isPublishedto create the template in published (ACTIVE) or draft (DRAFT) state.
This is a convenience which creates an instance of the
CreateTemplateRequest.Builderavoiding the need to create one manually viaCreateTemplateRequest.builder()- Parameters:
createTemplateRequest- AConsumerthat will call methods onCreateTemplateRequest.Builderto create a request.- Returns:
- Result of the CreateTemplate operation returned by the service.
- See Also:
-
createTemplateSnapshot
default CreateTemplateSnapshotResponse createTemplateSnapshot(CreateTemplateSnapshotRequest createTemplateSnapshotRequest) throws ValidationException, ServiceQuotaExceededException, ConflictException, InternalServerException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, NetworkSecurityManagerException Creates a snapshot of the current published version of the specified template.
- Parameters:
createTemplateSnapshotRequest-- Returns:
- Result of the CreateTemplateSnapshot operation returned by the service.
- See Also:
-
createTemplateSnapshot
default CreateTemplateSnapshotResponse createTemplateSnapshot(Consumer<CreateTemplateSnapshotRequest.Builder> createTemplateSnapshotRequest) throws ValidationException, ServiceQuotaExceededException, ConflictException, InternalServerException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, NetworkSecurityManagerException Creates a snapshot of the current published version of the specified template.
This is a convenience which creates an instance of the
CreateTemplateSnapshotRequest.Builderavoiding the need to create one manually viaCreateTemplateSnapshotRequest.builder()- Parameters:
createTemplateSnapshotRequest- AConsumerthat will call methods onCreateTemplateSnapshotRequest.Builderto create a request.- Returns:
- Result of the CreateTemplateSnapshot operation returned by the service.
- See Also:
-
deleteAdminAccount
default DeleteAdminAccountResponse deleteAdminAccount(DeleteAdminAccountRequest deleteAdminAccountRequest) throws ValidationException, InternalServerException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, NetworkSecurityManagerException Removes the specified AWS Network Security Manager administrator account.
- Parameters:
deleteAdminAccountRequest-- Returns:
- Result of the DeleteAdminAccount operation returned by the service.
- See Also:
-
deleteAdminAccount
default DeleteAdminAccountResponse deleteAdminAccount(Consumer<DeleteAdminAccountRequest.Builder> deleteAdminAccountRequest) throws ValidationException, InternalServerException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, NetworkSecurityManagerException Removes the specified AWS Network Security Manager administrator account.
This is a convenience which creates an instance of the
DeleteAdminAccountRequest.Builderavoiding the need to create one manually viaDeleteAdminAccountRequest.builder()- Parameters:
deleteAdminAccountRequest- AConsumerthat will call methods onDeleteAdminAccountRequest.Builderto create a request.- Returns:
- Result of the DeleteAdminAccount operation returned by the service.
- See Also:
-
deleteDeployment
default DeleteDeploymentResponse deleteDeployment(DeleteDeploymentRequest deleteDeploymentRequest) throws ValidationException, ConflictException, InternalServerException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, NetworkSecurityManagerException Deletes the specified deployment.
- Parameters:
deleteDeploymentRequest-- Returns:
- Result of the DeleteDeployment operation returned by the service.
- See Also:
-
deleteDeployment
default DeleteDeploymentResponse deleteDeployment(Consumer<DeleteDeploymentRequest.Builder> deleteDeploymentRequest) throws ValidationException, ConflictException, InternalServerException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, NetworkSecurityManagerException Deletes the specified deployment.
This is a convenience which creates an instance of the
DeleteDeploymentRequest.Builderavoiding the need to create one manually viaDeleteDeploymentRequest.builder()- Parameters:
deleteDeploymentRequest- AConsumerthat will call methods onDeleteDeploymentRequest.Builderto create a request.- Returns:
- Result of the DeleteDeployment operation returned by the service.
- See Also:
-
deletePolicy
default DeletePolicyResponse deletePolicy(DeletePolicyRequest deletePolicyRequest) throws ValidationException, ConflictException, InternalServerException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, NetworkSecurityManagerException Deletes the specified policy.
- Parameters:
deletePolicyRequest-- Returns:
- Result of the DeletePolicy operation returned by the service.
- See Also:
-
deletePolicy
default DeletePolicyResponse deletePolicy(Consumer<DeletePolicyRequest.Builder> deletePolicyRequest) throws ValidationException, ConflictException, InternalServerException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, NetworkSecurityManagerException Deletes the specified policy.
This is a convenience which creates an instance of the
DeletePolicyRequest.Builderavoiding the need to create one manually viaDeletePolicyRequest.builder()- Parameters:
deletePolicyRequest- AConsumerthat will call methods onDeletePolicyRequest.Builderto create a request.- Returns:
- Result of the DeletePolicy operation returned by the service.
- See Also:
-
deleteRule
default DeleteRuleResponse deleteRule(DeleteRuleRequest deleteRuleRequest) throws ValidationException, ConflictException, InternalServerException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, NetworkSecurityManagerException Deletes the specified rule.
- Parameters:
deleteRuleRequest-- Returns:
- Result of the DeleteRule operation returned by the service.
- See Also:
-
deleteRule
default DeleteRuleResponse deleteRule(Consumer<DeleteRuleRequest.Builder> deleteRuleRequest) throws ValidationException, ConflictException, InternalServerException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, NetworkSecurityManagerException Deletes the specified rule.
This is a convenience which creates an instance of the
DeleteRuleRequest.Builderavoiding the need to create one manually viaDeleteRuleRequest.builder()- Parameters:
deleteRuleRequest- AConsumerthat will call methods onDeleteRuleRequest.Builderto create a request.- Returns:
- Result of the DeleteRule operation returned by the service.
- See Also:
-
deleteScope
default DeleteScopeResponse deleteScope(DeleteScopeRequest deleteScopeRequest) throws ValidationException, ConflictException, InternalServerException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, NetworkSecurityManagerException Deletes the specified scope.
- Parameters:
deleteScopeRequest-- Returns:
- Result of the DeleteScope operation returned by the service.
- See Also:
-
deleteScope
default DeleteScopeResponse deleteScope(Consumer<DeleteScopeRequest.Builder> deleteScopeRequest) throws ValidationException, ConflictException, InternalServerException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, NetworkSecurityManagerException Deletes the specified scope.
This is a convenience which creates an instance of the
DeleteScopeRequest.Builderavoiding the need to create one manually viaDeleteScopeRequest.builder()- Parameters:
deleteScopeRequest- AConsumerthat will call methods onDeleteScopeRequest.Builderto create a request.- Returns:
- Result of the DeleteScope operation returned by the service.
- See Also:
-
deleteTemplate
default DeleteTemplateResponse deleteTemplate(DeleteTemplateRequest deleteTemplateRequest) throws ValidationException, ConflictException, InternalServerException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, NetworkSecurityManagerException Deletes the specified template.
- Parameters:
deleteTemplateRequest-- Returns:
- Result of the DeleteTemplate operation returned by the service.
- See Also:
-
deleteTemplate
default DeleteTemplateResponse deleteTemplate(Consumer<DeleteTemplateRequest.Builder> deleteTemplateRequest) throws ValidationException, ConflictException, InternalServerException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, NetworkSecurityManagerException Deletes the specified template.
This is a convenience which creates an instance of the
DeleteTemplateRequest.Builderavoiding the need to create one manually viaDeleteTemplateRequest.builder()- Parameters:
deleteTemplateRequest- AConsumerthat will call methods onDeleteTemplateRequest.Builderto create a request.- Returns:
- Result of the DeleteTemplate operation returned by the service.
- See Also:
-
generateRuleConfiguration
default GenerateRuleConfigurationResponse generateRuleConfiguration(GenerateRuleConfigurationRequest generateRuleConfigurationRequest) throws ValidationException, InternalServerException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, NetworkSecurityManagerException 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:
- Result of the GenerateRuleConfiguration operation returned by the service.
- See Also:
-
generateRuleConfiguration
default GenerateRuleConfigurationResponse generateRuleConfiguration(Consumer<GenerateRuleConfigurationRequest.Builder> generateRuleConfigurationRequest) throws ValidationException, InternalServerException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, NetworkSecurityManagerException 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.Builderavoiding the need to create one manually viaGenerateRuleConfigurationRequest.builder()- Parameters:
generateRuleConfigurationRequest- AConsumerthat will call methods onGenerateRuleConfigurationRequest.Builderto create a request.- Returns:
- Result of the GenerateRuleConfiguration operation returned by the service.
- See Also:
-
getAdminAccount
default GetAdminAccountResponse getAdminAccount(GetAdminAccountRequest getAdminAccountRequest) throws ValidationException, InternalServerException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, NetworkSecurityManagerException Retrieves the details of the specified AWS Network Security Manager administrator account.
- Parameters:
getAdminAccountRequest-- Returns:
- Result of the GetAdminAccount operation returned by the service.
- See Also:
-
getAdminAccount
default GetAdminAccountResponse getAdminAccount(Consumer<GetAdminAccountRequest.Builder> getAdminAccountRequest) throws ValidationException, InternalServerException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, NetworkSecurityManagerException Retrieves the details of the specified AWS Network Security Manager administrator account.
This is a convenience which creates an instance of the
GetAdminAccountRequest.Builderavoiding the need to create one manually viaGetAdminAccountRequest.builder()- Parameters:
getAdminAccountRequest- AConsumerthat will call methods onGetAdminAccountRequest.Builderto create a request.- Returns:
- Result of the GetAdminAccount operation returned by the service.
- See Also:
-
getDeployment
default GetDeploymentResponse getDeployment(GetDeploymentRequest getDeploymentRequest) throws ValidationException, InternalServerException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, NetworkSecurityManagerException Retrieves the details of the specified deployment, including coverage information and any warnings.
- Parameters:
getDeploymentRequest-- Returns:
- Result of the GetDeployment operation returned by the service.
- See Also:
-
getDeployment
default GetDeploymentResponse getDeployment(Consumer<GetDeploymentRequest.Builder> getDeploymentRequest) throws ValidationException, InternalServerException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, NetworkSecurityManagerException Retrieves the details of the specified deployment, including coverage information and any warnings.
This is a convenience which creates an instance of the
GetDeploymentRequest.Builderavoiding the need to create one manually viaGetDeploymentRequest.builder()- Parameters:
getDeploymentRequest- AConsumerthat will call methods onGetDeploymentRequest.Builderto create a request.- Returns:
- Result of the GetDeployment operation returned by the service.
- See Also:
-
getPolicy
default GetPolicyResponse getPolicy(GetPolicyRequest getPolicyRequest) throws ValidationException, InternalServerException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, NetworkSecurityManagerException Retrieves the details of the specified policy.
- Parameters:
getPolicyRequest-- Returns:
- Result of the GetPolicy operation returned by the service.
- See Also:
-
getPolicy
default GetPolicyResponse getPolicy(Consumer<GetPolicyRequest.Builder> getPolicyRequest) throws ValidationException, InternalServerException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, NetworkSecurityManagerException Retrieves the details of the specified policy.
This is a convenience which creates an instance of the
GetPolicyRequest.Builderavoiding the need to create one manually viaGetPolicyRequest.builder()- Parameters:
getPolicyRequest- AConsumerthat will call methods onGetPolicyRequest.Builderto create a request.- Returns:
- Result of the GetPolicy operation returned by the service.
- See Also:
-
getRule
default GetRuleResponse getRule(GetRuleRequest getRuleRequest) throws ValidationException, InternalServerException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, NetworkSecurityManagerException Retrieves the details of the specified rule.
- Parameters:
getRuleRequest-- Returns:
- Result of the GetRule operation returned by the service.
- See Also:
-
getRule
default GetRuleResponse getRule(Consumer<GetRuleRequest.Builder> getRuleRequest) throws ValidationException, InternalServerException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, NetworkSecurityManagerException Retrieves the details of the specified rule.
This is a convenience which creates an instance of the
GetRuleRequest.Builderavoiding the need to create one manually viaGetRuleRequest.builder()- Parameters:
getRuleRequest- AConsumerthat will call methods onGetRuleRequest.Builderto create a request.- Returns:
- Result of the GetRule operation returned by the service.
- See Also:
-
getScope
default GetScopeResponse getScope(GetScopeRequest getScopeRequest) throws ValidationException, InternalServerException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, NetworkSecurityManagerException Retrieves the details of the specified scope.
- Parameters:
getScopeRequest-- Returns:
- Result of the GetScope operation returned by the service.
- See Also:
-
getScope
default GetScopeResponse getScope(Consumer<GetScopeRequest.Builder> getScopeRequest) throws ValidationException, InternalServerException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, NetworkSecurityManagerException Retrieves the details of the specified scope.
This is a convenience which creates an instance of the
GetScopeRequest.Builderavoiding the need to create one manually viaGetScopeRequest.builder()- Parameters:
getScopeRequest- AConsumerthat will call methods onGetScopeRequest.Builderto create a request.- Returns:
- Result of the GetScope operation returned by the service.
- See Also:
-
getTemplate
default GetTemplateResponse getTemplate(GetTemplateRequest getTemplateRequest) throws ValidationException, InternalServerException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, NetworkSecurityManagerException Retrieves the details of the specified template.
- Parameters:
getTemplateRequest-- Returns:
- Result of the GetTemplate operation returned by the service.
- See Also:
-
getTemplate
default GetTemplateResponse getTemplate(Consumer<GetTemplateRequest.Builder> getTemplateRequest) throws ValidationException, InternalServerException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, NetworkSecurityManagerException Retrieves the details of the specified template.
This is a convenience which creates an instance of the
GetTemplateRequest.Builderavoiding the need to create one manually viaGetTemplateRequest.builder()- Parameters:
getTemplateRequest- AConsumerthat will call methods onGetTemplateRequest.Builderto create a request.- Returns:
- Result of the GetTemplate operation returned by the service.
- See Also:
-
listAdminAccounts
default ListAdminAccountsResponse listAdminAccounts(ListAdminAccountsRequest listAdminAccountsRequest) throws ValidationException, InternalServerException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, NetworkSecurityManagerException Lists the AWS Network Security Manager administrator accounts in the organization.
- Parameters:
listAdminAccountsRequest-- Returns:
- Result of the ListAdminAccounts operation returned by the service.
- See Also:
-
listAdminAccounts
default ListAdminAccountsResponse listAdminAccounts(Consumer<ListAdminAccountsRequest.Builder> listAdminAccountsRequest) throws ValidationException, InternalServerException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, NetworkSecurityManagerException Lists the AWS Network Security Manager administrator accounts in the organization.
This is a convenience which creates an instance of the
ListAdminAccountsRequest.Builderavoiding the need to create one manually viaListAdminAccountsRequest.builder()- Parameters:
listAdminAccountsRequest- AConsumerthat will call methods onListAdminAccountsRequest.Builderto create a request.- Returns:
- Result of the ListAdminAccounts operation returned by the service.
- See Also:
-
listAdminAccountsPaginator
default ListAdminAccountsIterable listAdminAccountsPaginator(ListAdminAccountsRequest listAdminAccountsRequest) throws ValidationException, InternalServerException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, NetworkSecurityManagerException This is a variant of
listAdminAccounts(software.amazon.awssdk.services.networksecuritymanager.model.ListAdminAccountsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.networksecuritymanager.paginators.ListAdminAccountsIterable responses = client.listAdminAccountsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.networksecuritymanager.paginators.ListAdminAccountsIterable responses = client .listAdminAccountsPaginator(request); for (software.amazon.awssdk.services.networksecuritymanager.model.ListAdminAccountsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.networksecuritymanager.paginators.ListAdminAccountsIterable responses = client.listAdminAccountsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listAdminAccounts(software.amazon.awssdk.services.networksecuritymanager.model.ListAdminAccountsRequest)operation.- Parameters:
listAdminAccountsRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listAdminAccountsPaginator
default ListAdminAccountsIterable listAdminAccountsPaginator(Consumer<ListAdminAccountsRequest.Builder> listAdminAccountsRequest) throws ValidationException, InternalServerException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, NetworkSecurityManagerException This is a variant of
listAdminAccounts(software.amazon.awssdk.services.networksecuritymanager.model.ListAdminAccountsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.networksecuritymanager.paginators.ListAdminAccountsIterable responses = client.listAdminAccountsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.networksecuritymanager.paginators.ListAdminAccountsIterable responses = client .listAdminAccountsPaginator(request); for (software.amazon.awssdk.services.networksecuritymanager.model.ListAdminAccountsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.networksecuritymanager.paginators.ListAdminAccountsIterable responses = client.listAdminAccountsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listAdminAccounts(software.amazon.awssdk.services.networksecuritymanager.model.ListAdminAccountsRequest)operation.
This is a convenience which creates an instance of the
ListAdminAccountsRequest.Builderavoiding the need to create one manually viaListAdminAccountsRequest.builder()- Parameters:
listAdminAccountsRequest- AConsumerthat will call methods onListAdminAccountsRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listAggregateResourceSynchronizationStatuses
default ListAggregateResourceSynchronizationStatusesResponse listAggregateResourceSynchronizationStatuses(ListAggregateResourceSynchronizationStatusesRequest listAggregateResourceSynchronizationStatusesRequest) throws ValidationException, InternalServerException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, NetworkSecurityManagerException 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:
- Result of the ListAggregateResourceSynchronizationStatuses operation returned by the service.
- See Also:
-
listAggregateResourceSynchronizationStatuses
default ListAggregateResourceSynchronizationStatusesResponse listAggregateResourceSynchronizationStatuses(Consumer<ListAggregateResourceSynchronizationStatusesRequest.Builder> listAggregateResourceSynchronizationStatusesRequest) throws ValidationException, InternalServerException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, NetworkSecurityManagerException 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.Builderavoiding the need to create one manually viaListAggregateResourceSynchronizationStatusesRequest.builder()- Parameters:
listAggregateResourceSynchronizationStatusesRequest- AConsumerthat will call methods onListAggregateResourceSynchronizationStatusesRequest.Builderto create a request.- Returns:
- Result of the ListAggregateResourceSynchronizationStatuses operation returned by the service.
- See Also:
-
listAggregateResourceSynchronizationStatusesPaginator
default ListAggregateResourceSynchronizationStatusesIterable listAggregateResourceSynchronizationStatusesPaginator(ListAggregateResourceSynchronizationStatusesRequest listAggregateResourceSynchronizationStatusesRequest) throws ValidationException, InternalServerException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, NetworkSecurityManagerException This is a variant of
listAggregateResourceSynchronizationStatuses(software.amazon.awssdk.services.networksecuritymanager.model.ListAggregateResourceSynchronizationStatusesRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.networksecuritymanager.paginators.ListAggregateResourceSynchronizationStatusesIterable responses = client.listAggregateResourceSynchronizationStatusesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.networksecuritymanager.paginators.ListAggregateResourceSynchronizationStatusesIterable responses = client .listAggregateResourceSynchronizationStatusesPaginator(request); for (software.amazon.awssdk.services.networksecuritymanager.model.ListAggregateResourceSynchronizationStatusesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.networksecuritymanager.paginators.ListAggregateResourceSynchronizationStatusesIterable responses = client.listAggregateResourceSynchronizationStatusesPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listAggregateResourceSynchronizationStatuses(software.amazon.awssdk.services.networksecuritymanager.model.ListAggregateResourceSynchronizationStatusesRequest)operation.- Parameters:
listAggregateResourceSynchronizationStatusesRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listAggregateResourceSynchronizationStatusesPaginator
default ListAggregateResourceSynchronizationStatusesIterable listAggregateResourceSynchronizationStatusesPaginator(Consumer<ListAggregateResourceSynchronizationStatusesRequest.Builder> listAggregateResourceSynchronizationStatusesRequest) throws ValidationException, InternalServerException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, NetworkSecurityManagerException This is a variant of
listAggregateResourceSynchronizationStatuses(software.amazon.awssdk.services.networksecuritymanager.model.ListAggregateResourceSynchronizationStatusesRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.networksecuritymanager.paginators.ListAggregateResourceSynchronizationStatusesIterable responses = client.listAggregateResourceSynchronizationStatusesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.networksecuritymanager.paginators.ListAggregateResourceSynchronizationStatusesIterable responses = client .listAggregateResourceSynchronizationStatusesPaginator(request); for (software.amazon.awssdk.services.networksecuritymanager.model.ListAggregateResourceSynchronizationStatusesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.networksecuritymanager.paginators.ListAggregateResourceSynchronizationStatusesIterable responses = client.listAggregateResourceSynchronizationStatusesPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listAggregateResourceSynchronizationStatuses(software.amazon.awssdk.services.networksecuritymanager.model.ListAggregateResourceSynchronizationStatusesRequest)operation.
This is a convenience which creates an instance of the
ListAggregateResourceSynchronizationStatusesRequest.Builderavoiding the need to create one manually viaListAggregateResourceSynchronizationStatusesRequest.builder()- Parameters:
listAggregateResourceSynchronizationStatusesRequest- AConsumerthat will call methods onListAggregateResourceSynchronizationStatusesRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listDeploymentSnapshots
default ListDeploymentSnapshotsResponse listDeploymentSnapshots(ListDeploymentSnapshotsRequest listDeploymentSnapshotsRequest) throws ValidationException, InternalServerException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, NetworkSecurityManagerException Lists the snapshots of the specified deployment.
- Parameters:
listDeploymentSnapshotsRequest-- Returns:
- Result of the ListDeploymentSnapshots operation returned by the service.
- See Also:
-
listDeploymentSnapshots
default ListDeploymentSnapshotsResponse listDeploymentSnapshots(Consumer<ListDeploymentSnapshotsRequest.Builder> listDeploymentSnapshotsRequest) throws ValidationException, InternalServerException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, NetworkSecurityManagerException Lists the snapshots of the specified deployment.
This is a convenience which creates an instance of the
ListDeploymentSnapshotsRequest.Builderavoiding the need to create one manually viaListDeploymentSnapshotsRequest.builder()- Parameters:
listDeploymentSnapshotsRequest- AConsumerthat will call methods onListDeploymentSnapshotsRequest.Builderto create a request.- Returns:
- Result of the ListDeploymentSnapshots operation returned by the service.
- See Also:
-
listDeploymentSnapshotsPaginator
default ListDeploymentSnapshotsIterable listDeploymentSnapshotsPaginator(ListDeploymentSnapshotsRequest listDeploymentSnapshotsRequest) throws ValidationException, InternalServerException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, NetworkSecurityManagerException This is a variant of
listDeploymentSnapshots(software.amazon.awssdk.services.networksecuritymanager.model.ListDeploymentSnapshotsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.networksecuritymanager.paginators.ListDeploymentSnapshotsIterable responses = client.listDeploymentSnapshotsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.networksecuritymanager.paginators.ListDeploymentSnapshotsIterable responses = client .listDeploymentSnapshotsPaginator(request); for (software.amazon.awssdk.services.networksecuritymanager.model.ListDeploymentSnapshotsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.networksecuritymanager.paginators.ListDeploymentSnapshotsIterable responses = client.listDeploymentSnapshotsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listDeploymentSnapshots(software.amazon.awssdk.services.networksecuritymanager.model.ListDeploymentSnapshotsRequest)operation.- Parameters:
listDeploymentSnapshotsRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listDeploymentSnapshotsPaginator
default ListDeploymentSnapshotsIterable listDeploymentSnapshotsPaginator(Consumer<ListDeploymentSnapshotsRequest.Builder> listDeploymentSnapshotsRequest) throws ValidationException, InternalServerException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, NetworkSecurityManagerException This is a variant of
listDeploymentSnapshots(software.amazon.awssdk.services.networksecuritymanager.model.ListDeploymentSnapshotsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.networksecuritymanager.paginators.ListDeploymentSnapshotsIterable responses = client.listDeploymentSnapshotsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.networksecuritymanager.paginators.ListDeploymentSnapshotsIterable responses = client .listDeploymentSnapshotsPaginator(request); for (software.amazon.awssdk.services.networksecuritymanager.model.ListDeploymentSnapshotsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.networksecuritymanager.paginators.ListDeploymentSnapshotsIterable responses = client.listDeploymentSnapshotsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listDeploymentSnapshots(software.amazon.awssdk.services.networksecuritymanager.model.ListDeploymentSnapshotsRequest)operation.
This is a convenience which creates an instance of the
ListDeploymentSnapshotsRequest.Builderavoiding the need to create one manually viaListDeploymentSnapshotsRequest.builder()- Parameters:
listDeploymentSnapshotsRequest- AConsumerthat will call methods onListDeploymentSnapshotsRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listDeployments
default ListDeploymentsResponse listDeployments(ListDeploymentsRequest listDeploymentsRequest) throws ValidationException, InternalServerException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, NetworkSecurityManagerException Lists the deployments in the account. You can filter the results by status and page through them using
maxResultsandnextToken.- Parameters:
listDeploymentsRequest-- Returns:
- Result of the ListDeployments operation returned by the service.
- See Also:
-
listDeployments
default ListDeploymentsResponse listDeployments(Consumer<ListDeploymentsRequest.Builder> listDeploymentsRequest) throws ValidationException, InternalServerException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, NetworkSecurityManagerException Lists the deployments in the account. You can filter the results by status and page through them using
maxResultsandnextToken.
This is a convenience which creates an instance of the
ListDeploymentsRequest.Builderavoiding the need to create one manually viaListDeploymentsRequest.builder()- Parameters:
listDeploymentsRequest- AConsumerthat will call methods onListDeploymentsRequest.Builderto create a request.- Returns:
- Result of the ListDeployments operation returned by the service.
- See Also:
-
listDeploymentsPaginator
default ListDeploymentsIterable listDeploymentsPaginator(ListDeploymentsRequest listDeploymentsRequest) throws ValidationException, InternalServerException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, NetworkSecurityManagerException This is a variant of
listDeployments(software.amazon.awssdk.services.networksecuritymanager.model.ListDeploymentsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.networksecuritymanager.paginators.ListDeploymentsIterable responses = client.listDeploymentsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.networksecuritymanager.paginators.ListDeploymentsIterable responses = client .listDeploymentsPaginator(request); for (software.amazon.awssdk.services.networksecuritymanager.model.ListDeploymentsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.networksecuritymanager.paginators.ListDeploymentsIterable responses = client.listDeploymentsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listDeployments(software.amazon.awssdk.services.networksecuritymanager.model.ListDeploymentsRequest)operation.- Parameters:
listDeploymentsRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listDeploymentsPaginator
default ListDeploymentsIterable listDeploymentsPaginator(Consumer<ListDeploymentsRequest.Builder> listDeploymentsRequest) throws ValidationException, InternalServerException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, NetworkSecurityManagerException This is a variant of
listDeployments(software.amazon.awssdk.services.networksecuritymanager.model.ListDeploymentsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.networksecuritymanager.paginators.ListDeploymentsIterable responses = client.listDeploymentsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.networksecuritymanager.paginators.ListDeploymentsIterable responses = client .listDeploymentsPaginator(request); for (software.amazon.awssdk.services.networksecuritymanager.model.ListDeploymentsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.networksecuritymanager.paginators.ListDeploymentsIterable responses = client.listDeploymentsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listDeployments(software.amazon.awssdk.services.networksecuritymanager.model.ListDeploymentsRequest)operation.
This is a convenience which creates an instance of the
ListDeploymentsRequest.Builderavoiding the need to create one manually viaListDeploymentsRequest.builder()- Parameters:
listDeploymentsRequest- AConsumerthat will call methods onListDeploymentsRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listPolicies
default ListPoliciesResponse listPolicies(ListPoliciesRequest listPoliciesRequest) throws ValidationException, InternalServerException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, NetworkSecurityManagerException Lists the policies in the account. You can filter the results by status and page through them using
maxResultsandnextToken.- Parameters:
listPoliciesRequest-- Returns:
- Result of the ListPolicies operation returned by the service.
- See Also:
-
listPolicies
default ListPoliciesResponse listPolicies(Consumer<ListPoliciesRequest.Builder> listPoliciesRequest) throws ValidationException, InternalServerException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, NetworkSecurityManagerException Lists the policies in the account. You can filter the results by status and page through them using
maxResultsandnextToken.
This is a convenience which creates an instance of the
ListPoliciesRequest.Builderavoiding the need to create one manually viaListPoliciesRequest.builder()- Parameters:
listPoliciesRequest- AConsumerthat will call methods onListPoliciesRequest.Builderto create a request.- Returns:
- Result of the ListPolicies operation returned by the service.
- See Also:
-
listPoliciesPaginator
default ListPoliciesIterable listPoliciesPaginator(ListPoliciesRequest listPoliciesRequest) throws ValidationException, InternalServerException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, NetworkSecurityManagerException This is a variant of
listPolicies(software.amazon.awssdk.services.networksecuritymanager.model.ListPoliciesRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.networksecuritymanager.paginators.ListPoliciesIterable responses = client.listPoliciesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.networksecuritymanager.paginators.ListPoliciesIterable responses = client .listPoliciesPaginator(request); for (software.amazon.awssdk.services.networksecuritymanager.model.ListPoliciesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.networksecuritymanager.paginators.ListPoliciesIterable responses = client.listPoliciesPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listPolicies(software.amazon.awssdk.services.networksecuritymanager.model.ListPoliciesRequest)operation.- Parameters:
listPoliciesRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listPoliciesPaginator
default ListPoliciesIterable listPoliciesPaginator(Consumer<ListPoliciesRequest.Builder> listPoliciesRequest) throws ValidationException, InternalServerException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, NetworkSecurityManagerException This is a variant of
listPolicies(software.amazon.awssdk.services.networksecuritymanager.model.ListPoliciesRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.networksecuritymanager.paginators.ListPoliciesIterable responses = client.listPoliciesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.networksecuritymanager.paginators.ListPoliciesIterable responses = client .listPoliciesPaginator(request); for (software.amazon.awssdk.services.networksecuritymanager.model.ListPoliciesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.networksecuritymanager.paginators.ListPoliciesIterable responses = client.listPoliciesPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listPolicies(software.amazon.awssdk.services.networksecuritymanager.model.ListPoliciesRequest)operation.
This is a convenience which creates an instance of the
ListPoliciesRequest.Builderavoiding the need to create one manually viaListPoliciesRequest.builder()- Parameters:
listPoliciesRequest- AConsumerthat will call methods onListPoliciesRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listPolicySnapshots
default ListPolicySnapshotsResponse listPolicySnapshots(ListPolicySnapshotsRequest listPolicySnapshotsRequest) throws ValidationException, InternalServerException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, NetworkSecurityManagerException Lists the snapshots of the specified policy.
- Parameters:
listPolicySnapshotsRequest-- Returns:
- Result of the ListPolicySnapshots operation returned by the service.
- See Also:
-
listPolicySnapshots
default ListPolicySnapshotsResponse listPolicySnapshots(Consumer<ListPolicySnapshotsRequest.Builder> listPolicySnapshotsRequest) throws ValidationException, InternalServerException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, NetworkSecurityManagerException Lists the snapshots of the specified policy.
This is a convenience which creates an instance of the
ListPolicySnapshotsRequest.Builderavoiding the need to create one manually viaListPolicySnapshotsRequest.builder()- Parameters:
listPolicySnapshotsRequest- AConsumerthat will call methods onListPolicySnapshotsRequest.Builderto create a request.- Returns:
- Result of the ListPolicySnapshots operation returned by the service.
- See Also:
-
listPolicySnapshotsPaginator
default ListPolicySnapshotsIterable listPolicySnapshotsPaginator(ListPolicySnapshotsRequest listPolicySnapshotsRequest) throws ValidationException, InternalServerException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, NetworkSecurityManagerException This is a variant of
listPolicySnapshots(software.amazon.awssdk.services.networksecuritymanager.model.ListPolicySnapshotsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.networksecuritymanager.paginators.ListPolicySnapshotsIterable responses = client.listPolicySnapshotsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.networksecuritymanager.paginators.ListPolicySnapshotsIterable responses = client .listPolicySnapshotsPaginator(request); for (software.amazon.awssdk.services.networksecuritymanager.model.ListPolicySnapshotsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.networksecuritymanager.paginators.ListPolicySnapshotsIterable responses = client.listPolicySnapshotsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listPolicySnapshots(software.amazon.awssdk.services.networksecuritymanager.model.ListPolicySnapshotsRequest)operation.- Parameters:
listPolicySnapshotsRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listPolicySnapshotsPaginator
default ListPolicySnapshotsIterable listPolicySnapshotsPaginator(Consumer<ListPolicySnapshotsRequest.Builder> listPolicySnapshotsRequest) throws ValidationException, InternalServerException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, NetworkSecurityManagerException This is a variant of
listPolicySnapshots(software.amazon.awssdk.services.networksecuritymanager.model.ListPolicySnapshotsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.networksecuritymanager.paginators.ListPolicySnapshotsIterable responses = client.listPolicySnapshotsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.networksecuritymanager.paginators.ListPolicySnapshotsIterable responses = client .listPolicySnapshotsPaginator(request); for (software.amazon.awssdk.services.networksecuritymanager.model.ListPolicySnapshotsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.networksecuritymanager.paginators.ListPolicySnapshotsIterable responses = client.listPolicySnapshotsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listPolicySnapshots(software.amazon.awssdk.services.networksecuritymanager.model.ListPolicySnapshotsRequest)operation.
This is a convenience which creates an instance of the
ListPolicySnapshotsRequest.Builderavoiding the need to create one manually viaListPolicySnapshotsRequest.builder()- Parameters:
listPolicySnapshotsRequest- AConsumerthat will call methods onListPolicySnapshotsRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listResourceAssociations
default ListResourceAssociationsResponse listResourceAssociations(ListResourceAssociationsRequest listResourceAssociationsRequest) throws ValidationException, InternalServerException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, NetworkSecurityManagerException Lists the resources associated with the specified resource.
- Parameters:
listResourceAssociationsRequest-- Returns:
- Result of the ListResourceAssociations operation returned by the service.
- See Also:
-
listResourceAssociations
default ListResourceAssociationsResponse listResourceAssociations(Consumer<ListResourceAssociationsRequest.Builder> listResourceAssociationsRequest) throws ValidationException, InternalServerException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, NetworkSecurityManagerException Lists the resources associated with the specified resource.
This is a convenience which creates an instance of the
ListResourceAssociationsRequest.Builderavoiding the need to create one manually viaListResourceAssociationsRequest.builder()- Parameters:
listResourceAssociationsRequest- AConsumerthat will call methods onListResourceAssociationsRequest.Builderto create a request.- Returns:
- Result of the ListResourceAssociations operation returned by the service.
- See Also:
-
listResourceAssociationsPaginator
default ListResourceAssociationsIterable listResourceAssociationsPaginator(ListResourceAssociationsRequest listResourceAssociationsRequest) throws ValidationException, InternalServerException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, NetworkSecurityManagerException This is a variant of
listResourceAssociations(software.amazon.awssdk.services.networksecuritymanager.model.ListResourceAssociationsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.networksecuritymanager.paginators.ListResourceAssociationsIterable responses = client.listResourceAssociationsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.networksecuritymanager.paginators.ListResourceAssociationsIterable responses = client .listResourceAssociationsPaginator(request); for (software.amazon.awssdk.services.networksecuritymanager.model.ListResourceAssociationsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.networksecuritymanager.paginators.ListResourceAssociationsIterable responses = client.listResourceAssociationsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listResourceAssociations(software.amazon.awssdk.services.networksecuritymanager.model.ListResourceAssociationsRequest)operation.- Parameters:
listResourceAssociationsRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listResourceAssociationsPaginator
default ListResourceAssociationsIterable listResourceAssociationsPaginator(Consumer<ListResourceAssociationsRequest.Builder> listResourceAssociationsRequest) throws ValidationException, InternalServerException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, NetworkSecurityManagerException This is a variant of
listResourceAssociations(software.amazon.awssdk.services.networksecuritymanager.model.ListResourceAssociationsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.networksecuritymanager.paginators.ListResourceAssociationsIterable responses = client.listResourceAssociationsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.networksecuritymanager.paginators.ListResourceAssociationsIterable responses = client .listResourceAssociationsPaginator(request); for (software.amazon.awssdk.services.networksecuritymanager.model.ListResourceAssociationsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.networksecuritymanager.paginators.ListResourceAssociationsIterable responses = client.listResourceAssociationsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listResourceAssociations(software.amazon.awssdk.services.networksecuritymanager.model.ListResourceAssociationsRequest)operation.
This is a convenience which creates an instance of the
ListResourceAssociationsRequest.Builderavoiding the need to create one manually viaListResourceAssociationsRequest.builder()- Parameters:
listResourceAssociationsRequest- AConsumerthat will call methods onListResourceAssociationsRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listResourceSynchronizationStatuses
default ListResourceSynchronizationStatusesResponse listResourceSynchronizationStatuses(ListResourceSynchronizationStatusesRequest listResourceSynchronizationStatusesRequest) throws ValidationException, InternalServerException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, NetworkSecurityManagerException 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:
- Result of the ListResourceSynchronizationStatuses operation returned by the service.
- See Also:
-
listResourceSynchronizationStatuses
default ListResourceSynchronizationStatusesResponse listResourceSynchronizationStatuses(Consumer<ListResourceSynchronizationStatusesRequest.Builder> listResourceSynchronizationStatusesRequest) throws ValidationException, InternalServerException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, NetworkSecurityManagerException 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.Builderavoiding the need to create one manually viaListResourceSynchronizationStatusesRequest.builder()- Parameters:
listResourceSynchronizationStatusesRequest- AConsumerthat will call methods onListResourceSynchronizationStatusesRequest.Builderto create a request.- Returns:
- Result of the ListResourceSynchronizationStatuses operation returned by the service.
- See Also:
-
listResourceSynchronizationStatusesPaginator
default ListResourceSynchronizationStatusesIterable listResourceSynchronizationStatusesPaginator(ListResourceSynchronizationStatusesRequest listResourceSynchronizationStatusesRequest) throws ValidationException, InternalServerException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, NetworkSecurityManagerException This is a variant of
listResourceSynchronizationStatuses(software.amazon.awssdk.services.networksecuritymanager.model.ListResourceSynchronizationStatusesRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.networksecuritymanager.paginators.ListResourceSynchronizationStatusesIterable responses = client.listResourceSynchronizationStatusesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.networksecuritymanager.paginators.ListResourceSynchronizationStatusesIterable responses = client .listResourceSynchronizationStatusesPaginator(request); for (software.amazon.awssdk.services.networksecuritymanager.model.ListResourceSynchronizationStatusesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.networksecuritymanager.paginators.ListResourceSynchronizationStatusesIterable responses = client.listResourceSynchronizationStatusesPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listResourceSynchronizationStatuses(software.amazon.awssdk.services.networksecuritymanager.model.ListResourceSynchronizationStatusesRequest)operation.- Parameters:
listResourceSynchronizationStatusesRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listResourceSynchronizationStatusesPaginator
default ListResourceSynchronizationStatusesIterable listResourceSynchronizationStatusesPaginator(Consumer<ListResourceSynchronizationStatusesRequest.Builder> listResourceSynchronizationStatusesRequest) throws ValidationException, InternalServerException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, NetworkSecurityManagerException This is a variant of
listResourceSynchronizationStatuses(software.amazon.awssdk.services.networksecuritymanager.model.ListResourceSynchronizationStatusesRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.networksecuritymanager.paginators.ListResourceSynchronizationStatusesIterable responses = client.listResourceSynchronizationStatusesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.networksecuritymanager.paginators.ListResourceSynchronizationStatusesIterable responses = client .listResourceSynchronizationStatusesPaginator(request); for (software.amazon.awssdk.services.networksecuritymanager.model.ListResourceSynchronizationStatusesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.networksecuritymanager.paginators.ListResourceSynchronizationStatusesIterable responses = client.listResourceSynchronizationStatusesPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listResourceSynchronizationStatuses(software.amazon.awssdk.services.networksecuritymanager.model.ListResourceSynchronizationStatusesRequest)operation.
This is a convenience which creates an instance of the
ListResourceSynchronizationStatusesRequest.Builderavoiding the need to create one manually viaListResourceSynchronizationStatusesRequest.builder()- Parameters:
listResourceSynchronizationStatusesRequest- AConsumerthat will call methods onListResourceSynchronizationStatusesRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listRuleSnapshots
default ListRuleSnapshotsResponse listRuleSnapshots(ListRuleSnapshotsRequest listRuleSnapshotsRequest) throws ValidationException, InternalServerException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, NetworkSecurityManagerException Lists the snapshots of the specified rule.
- Parameters:
listRuleSnapshotsRequest-- Returns:
- Result of the ListRuleSnapshots operation returned by the service.
- See Also:
-
listRuleSnapshots
default ListRuleSnapshotsResponse listRuleSnapshots(Consumer<ListRuleSnapshotsRequest.Builder> listRuleSnapshotsRequest) throws ValidationException, InternalServerException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, NetworkSecurityManagerException Lists the snapshots of the specified rule.
This is a convenience which creates an instance of the
ListRuleSnapshotsRequest.Builderavoiding the need to create one manually viaListRuleSnapshotsRequest.builder()- Parameters:
listRuleSnapshotsRequest- AConsumerthat will call methods onListRuleSnapshotsRequest.Builderto create a request.- Returns:
- Result of the ListRuleSnapshots operation returned by the service.
- See Also:
-
listRuleSnapshotsPaginator
default ListRuleSnapshotsIterable listRuleSnapshotsPaginator(ListRuleSnapshotsRequest listRuleSnapshotsRequest) throws ValidationException, InternalServerException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, NetworkSecurityManagerException This is a variant of
listRuleSnapshots(software.amazon.awssdk.services.networksecuritymanager.model.ListRuleSnapshotsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.networksecuritymanager.paginators.ListRuleSnapshotsIterable responses = client.listRuleSnapshotsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.networksecuritymanager.paginators.ListRuleSnapshotsIterable responses = client .listRuleSnapshotsPaginator(request); for (software.amazon.awssdk.services.networksecuritymanager.model.ListRuleSnapshotsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.networksecuritymanager.paginators.ListRuleSnapshotsIterable responses = client.listRuleSnapshotsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listRuleSnapshots(software.amazon.awssdk.services.networksecuritymanager.model.ListRuleSnapshotsRequest)operation.- Parameters:
listRuleSnapshotsRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listRuleSnapshotsPaginator
default ListRuleSnapshotsIterable listRuleSnapshotsPaginator(Consumer<ListRuleSnapshotsRequest.Builder> listRuleSnapshotsRequest) throws ValidationException, InternalServerException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, NetworkSecurityManagerException This is a variant of
listRuleSnapshots(software.amazon.awssdk.services.networksecuritymanager.model.ListRuleSnapshotsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.networksecuritymanager.paginators.ListRuleSnapshotsIterable responses = client.listRuleSnapshotsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.networksecuritymanager.paginators.ListRuleSnapshotsIterable responses = client .listRuleSnapshotsPaginator(request); for (software.amazon.awssdk.services.networksecuritymanager.model.ListRuleSnapshotsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.networksecuritymanager.paginators.ListRuleSnapshotsIterable responses = client.listRuleSnapshotsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listRuleSnapshots(software.amazon.awssdk.services.networksecuritymanager.model.ListRuleSnapshotsRequest)operation.
This is a convenience which creates an instance of the
ListRuleSnapshotsRequest.Builderavoiding the need to create one manually viaListRuleSnapshotsRequest.builder()- Parameters:
listRuleSnapshotsRequest- AConsumerthat will call methods onListRuleSnapshotsRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listRules
default ListRulesResponse listRules(ListRulesRequest listRulesRequest) throws ValidationException, InternalServerException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, NetworkSecurityManagerException Lists the rules in the account. You can filter the results by status and page through them using
maxResultsandnextToken.- Parameters:
listRulesRequest-- Returns:
- Result of the ListRules operation returned by the service.
- See Also:
-
listRules
default ListRulesResponse listRules(Consumer<ListRulesRequest.Builder> listRulesRequest) throws ValidationException, InternalServerException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, NetworkSecurityManagerException Lists the rules in the account. You can filter the results by status and page through them using
maxResultsandnextToken.
This is a convenience which creates an instance of the
ListRulesRequest.Builderavoiding the need to create one manually viaListRulesRequest.builder()- Parameters:
listRulesRequest- AConsumerthat will call methods onListRulesRequest.Builderto create a request.- Returns:
- Result of the ListRules operation returned by the service.
- See Also:
-
listRulesPaginator
default ListRulesIterable listRulesPaginator(ListRulesRequest listRulesRequest) throws ValidationException, InternalServerException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, NetworkSecurityManagerException This is a variant of
listRules(software.amazon.awssdk.services.networksecuritymanager.model.ListRulesRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.networksecuritymanager.paginators.ListRulesIterable responses = client.listRulesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.networksecuritymanager.paginators.ListRulesIterable responses = client .listRulesPaginator(request); for (software.amazon.awssdk.services.networksecuritymanager.model.ListRulesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.networksecuritymanager.paginators.ListRulesIterable responses = client.listRulesPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listRules(software.amazon.awssdk.services.networksecuritymanager.model.ListRulesRequest)operation.- Parameters:
listRulesRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listRulesPaginator
default ListRulesIterable listRulesPaginator(Consumer<ListRulesRequest.Builder> listRulesRequest) throws ValidationException, InternalServerException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, NetworkSecurityManagerException This is a variant of
listRules(software.amazon.awssdk.services.networksecuritymanager.model.ListRulesRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.networksecuritymanager.paginators.ListRulesIterable responses = client.listRulesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.networksecuritymanager.paginators.ListRulesIterable responses = client .listRulesPaginator(request); for (software.amazon.awssdk.services.networksecuritymanager.model.ListRulesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.networksecuritymanager.paginators.ListRulesIterable responses = client.listRulesPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listRules(software.amazon.awssdk.services.networksecuritymanager.model.ListRulesRequest)operation.
This is a convenience which creates an instance of the
ListRulesRequest.Builderavoiding the need to create one manually viaListRulesRequest.builder()- Parameters:
listRulesRequest- AConsumerthat will call methods onListRulesRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listScopeSnapshots
default ListScopeSnapshotsResponse listScopeSnapshots(ListScopeSnapshotsRequest listScopeSnapshotsRequest) throws ValidationException, InternalServerException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, NetworkSecurityManagerException Lists the snapshots of the specified scope.
- Parameters:
listScopeSnapshotsRequest-- Returns:
- Result of the ListScopeSnapshots operation returned by the service.
- See Also:
-
listScopeSnapshots
default ListScopeSnapshotsResponse listScopeSnapshots(Consumer<ListScopeSnapshotsRequest.Builder> listScopeSnapshotsRequest) throws ValidationException, InternalServerException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, NetworkSecurityManagerException Lists the snapshots of the specified scope.
This is a convenience which creates an instance of the
ListScopeSnapshotsRequest.Builderavoiding the need to create one manually viaListScopeSnapshotsRequest.builder()- Parameters:
listScopeSnapshotsRequest- AConsumerthat will call methods onListScopeSnapshotsRequest.Builderto create a request.- Returns:
- Result of the ListScopeSnapshots operation returned by the service.
- See Also:
-
listScopeSnapshotsPaginator
default ListScopeSnapshotsIterable listScopeSnapshotsPaginator(ListScopeSnapshotsRequest listScopeSnapshotsRequest) throws ValidationException, InternalServerException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, NetworkSecurityManagerException This is a variant of
listScopeSnapshots(software.amazon.awssdk.services.networksecuritymanager.model.ListScopeSnapshotsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.networksecuritymanager.paginators.ListScopeSnapshotsIterable responses = client.listScopeSnapshotsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.networksecuritymanager.paginators.ListScopeSnapshotsIterable responses = client .listScopeSnapshotsPaginator(request); for (software.amazon.awssdk.services.networksecuritymanager.model.ListScopeSnapshotsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.networksecuritymanager.paginators.ListScopeSnapshotsIterable responses = client.listScopeSnapshotsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listScopeSnapshots(software.amazon.awssdk.services.networksecuritymanager.model.ListScopeSnapshotsRequest)operation.- Parameters:
listScopeSnapshotsRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listScopeSnapshotsPaginator
default ListScopeSnapshotsIterable listScopeSnapshotsPaginator(Consumer<ListScopeSnapshotsRequest.Builder> listScopeSnapshotsRequest) throws ValidationException, InternalServerException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, NetworkSecurityManagerException This is a variant of
listScopeSnapshots(software.amazon.awssdk.services.networksecuritymanager.model.ListScopeSnapshotsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.networksecuritymanager.paginators.ListScopeSnapshotsIterable responses = client.listScopeSnapshotsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.networksecuritymanager.paginators.ListScopeSnapshotsIterable responses = client .listScopeSnapshotsPaginator(request); for (software.amazon.awssdk.services.networksecuritymanager.model.ListScopeSnapshotsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.networksecuritymanager.paginators.ListScopeSnapshotsIterable responses = client.listScopeSnapshotsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listScopeSnapshots(software.amazon.awssdk.services.networksecuritymanager.model.ListScopeSnapshotsRequest)operation.
This is a convenience which creates an instance of the
ListScopeSnapshotsRequest.Builderavoiding the need to create one manually viaListScopeSnapshotsRequest.builder()- Parameters:
listScopeSnapshotsRequest- AConsumerthat will call methods onListScopeSnapshotsRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listScopes
default ListScopesResponse listScopes(ListScopesRequest listScopesRequest) throws ValidationException, InternalServerException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, NetworkSecurityManagerException Lists the scopes in the account. You can filter the results by status and page through them using
maxResultsandnextToken.- Parameters:
listScopesRequest-- Returns:
- Result of the ListScopes operation returned by the service.
- See Also:
-
listScopes
default ListScopesResponse listScopes(Consumer<ListScopesRequest.Builder> listScopesRequest) throws ValidationException, InternalServerException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, NetworkSecurityManagerException Lists the scopes in the account. You can filter the results by status and page through them using
maxResultsandnextToken.
This is a convenience which creates an instance of the
ListScopesRequest.Builderavoiding the need to create one manually viaListScopesRequest.builder()- Parameters:
listScopesRequest- AConsumerthat will call methods onListScopesRequest.Builderto create a request.- Returns:
- Result of the ListScopes operation returned by the service.
- See Also:
-
listScopesPaginator
default ListScopesIterable listScopesPaginator(ListScopesRequest listScopesRequest) throws ValidationException, InternalServerException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, NetworkSecurityManagerException This is a variant of
listScopes(software.amazon.awssdk.services.networksecuritymanager.model.ListScopesRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.networksecuritymanager.paginators.ListScopesIterable responses = client.listScopesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.networksecuritymanager.paginators.ListScopesIterable responses = client .listScopesPaginator(request); for (software.amazon.awssdk.services.networksecuritymanager.model.ListScopesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.networksecuritymanager.paginators.ListScopesIterable responses = client.listScopesPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listScopes(software.amazon.awssdk.services.networksecuritymanager.model.ListScopesRequest)operation.- Parameters:
listScopesRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listScopesPaginator
default ListScopesIterable listScopesPaginator(Consumer<ListScopesRequest.Builder> listScopesRequest) throws ValidationException, InternalServerException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, NetworkSecurityManagerException This is a variant of
listScopes(software.amazon.awssdk.services.networksecuritymanager.model.ListScopesRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.networksecuritymanager.paginators.ListScopesIterable responses = client.listScopesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.networksecuritymanager.paginators.ListScopesIterable responses = client .listScopesPaginator(request); for (software.amazon.awssdk.services.networksecuritymanager.model.ListScopesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.networksecuritymanager.paginators.ListScopesIterable responses = client.listScopesPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listScopes(software.amazon.awssdk.services.networksecuritymanager.model.ListScopesRequest)operation.
This is a convenience which creates an instance of the
ListScopesRequest.Builderavoiding the need to create one manually viaListScopesRequest.builder()- Parameters:
listScopesRequest- AConsumerthat will call methods onListScopesRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listTagsForResource
default ListTagsForResourceResponse listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) throws ValidationException, InternalServerException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, NetworkSecurityManagerException Lists the tags associated with the specified resource.
- Parameters:
listTagsForResourceRequest-- Returns:
- Result of the ListTagsForResource operation returned by the service.
- See Also:
-
listTagsForResource
default ListTagsForResourceResponse listTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) throws ValidationException, InternalServerException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, NetworkSecurityManagerException Lists the tags associated with the specified resource.
This is a convenience which creates an instance of the
ListTagsForResourceRequest.Builderavoiding the need to create one manually viaListTagsForResourceRequest.builder()- Parameters:
listTagsForResourceRequest- AConsumerthat will call methods onListTagsForResourceRequest.Builderto create a request.- Returns:
- Result of the ListTagsForResource operation returned by the service.
- See Also:
-
listTemplateSnapshots
default ListTemplateSnapshotsResponse listTemplateSnapshots(ListTemplateSnapshotsRequest listTemplateSnapshotsRequest) throws ValidationException, InternalServerException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, NetworkSecurityManagerException Lists the snapshots of the specified template.
- Parameters:
listTemplateSnapshotsRequest-- Returns:
- Result of the ListTemplateSnapshots operation returned by the service.
- See Also:
-
listTemplateSnapshots
default ListTemplateSnapshotsResponse listTemplateSnapshots(Consumer<ListTemplateSnapshotsRequest.Builder> listTemplateSnapshotsRequest) throws ValidationException, InternalServerException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, NetworkSecurityManagerException Lists the snapshots of the specified template.
This is a convenience which creates an instance of the
ListTemplateSnapshotsRequest.Builderavoiding the need to create one manually viaListTemplateSnapshotsRequest.builder()- Parameters:
listTemplateSnapshotsRequest- AConsumerthat will call methods onListTemplateSnapshotsRequest.Builderto create a request.- Returns:
- Result of the ListTemplateSnapshots operation returned by the service.
- See Also:
-
listTemplateSnapshotsPaginator
default ListTemplateSnapshotsIterable listTemplateSnapshotsPaginator(ListTemplateSnapshotsRequest listTemplateSnapshotsRequest) throws ValidationException, InternalServerException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, NetworkSecurityManagerException This is a variant of
listTemplateSnapshots(software.amazon.awssdk.services.networksecuritymanager.model.ListTemplateSnapshotsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.networksecuritymanager.paginators.ListTemplateSnapshotsIterable responses = client.listTemplateSnapshotsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.networksecuritymanager.paginators.ListTemplateSnapshotsIterable responses = client .listTemplateSnapshotsPaginator(request); for (software.amazon.awssdk.services.networksecuritymanager.model.ListTemplateSnapshotsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.networksecuritymanager.paginators.ListTemplateSnapshotsIterable responses = client.listTemplateSnapshotsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listTemplateSnapshots(software.amazon.awssdk.services.networksecuritymanager.model.ListTemplateSnapshotsRequest)operation.- Parameters:
listTemplateSnapshotsRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listTemplateSnapshotsPaginator
default ListTemplateSnapshotsIterable listTemplateSnapshotsPaginator(Consumer<ListTemplateSnapshotsRequest.Builder> listTemplateSnapshotsRequest) throws ValidationException, InternalServerException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, NetworkSecurityManagerException This is a variant of
listTemplateSnapshots(software.amazon.awssdk.services.networksecuritymanager.model.ListTemplateSnapshotsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.networksecuritymanager.paginators.ListTemplateSnapshotsIterable responses = client.listTemplateSnapshotsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.networksecuritymanager.paginators.ListTemplateSnapshotsIterable responses = client .listTemplateSnapshotsPaginator(request); for (software.amazon.awssdk.services.networksecuritymanager.model.ListTemplateSnapshotsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.networksecuritymanager.paginators.ListTemplateSnapshotsIterable responses = client.listTemplateSnapshotsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listTemplateSnapshots(software.amazon.awssdk.services.networksecuritymanager.model.ListTemplateSnapshotsRequest)operation.
This is a convenience which creates an instance of the
ListTemplateSnapshotsRequest.Builderavoiding the need to create one manually viaListTemplateSnapshotsRequest.builder()- Parameters:
listTemplateSnapshotsRequest- AConsumerthat will call methods onListTemplateSnapshotsRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listTemplates
default ListTemplatesResponse listTemplates(ListTemplatesRequest listTemplatesRequest) throws ValidationException, InternalServerException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, NetworkSecurityManagerException Lists the templates in the account. You can filter the results by status and page through them using
maxResultsandnextToken.- Parameters:
listTemplatesRequest-- Returns:
- Result of the ListTemplates operation returned by the service.
- See Also:
-
listTemplates
default ListTemplatesResponse listTemplates(Consumer<ListTemplatesRequest.Builder> listTemplatesRequest) throws ValidationException, InternalServerException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, NetworkSecurityManagerException Lists the templates in the account. You can filter the results by status and page through them using
maxResultsandnextToken.
This is a convenience which creates an instance of the
ListTemplatesRequest.Builderavoiding the need to create one manually viaListTemplatesRequest.builder()- Parameters:
listTemplatesRequest- AConsumerthat will call methods onListTemplatesRequest.Builderto create a request.- Returns:
- Result of the ListTemplates operation returned by the service.
- See Also:
-
listTemplatesPaginator
default ListTemplatesIterable listTemplatesPaginator(ListTemplatesRequest listTemplatesRequest) throws ValidationException, InternalServerException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, NetworkSecurityManagerException This is a variant of
listTemplates(software.amazon.awssdk.services.networksecuritymanager.model.ListTemplatesRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.networksecuritymanager.paginators.ListTemplatesIterable responses = client.listTemplatesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.networksecuritymanager.paginators.ListTemplatesIterable responses = client .listTemplatesPaginator(request); for (software.amazon.awssdk.services.networksecuritymanager.model.ListTemplatesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.networksecuritymanager.paginators.ListTemplatesIterable responses = client.listTemplatesPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listTemplates(software.amazon.awssdk.services.networksecuritymanager.model.ListTemplatesRequest)operation.- Parameters:
listTemplatesRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listTemplatesPaginator
default ListTemplatesIterable listTemplatesPaginator(Consumer<ListTemplatesRequest.Builder> listTemplatesRequest) throws ValidationException, InternalServerException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, NetworkSecurityManagerException This is a variant of
listTemplates(software.amazon.awssdk.services.networksecuritymanager.model.ListTemplatesRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.networksecuritymanager.paginators.ListTemplatesIterable responses = client.listTemplatesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.networksecuritymanager.paginators.ListTemplatesIterable responses = client .listTemplatesPaginator(request); for (software.amazon.awssdk.services.networksecuritymanager.model.ListTemplatesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.networksecuritymanager.paginators.ListTemplatesIterable responses = client.listTemplatesPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listTemplates(software.amazon.awssdk.services.networksecuritymanager.model.ListTemplatesRequest)operation.
This is a convenience which creates an instance of the
ListTemplatesRequest.Builderavoiding the need to create one manually viaListTemplatesRequest.builder()- Parameters:
listTemplatesRequest- AConsumerthat will call methods onListTemplatesRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
putAdminAccount
default PutAdminAccountResponse putAdminAccount(PutAdminAccountRequest putAdminAccountRequest) throws ValidationException, ServiceQuotaExceededException, ConflictException, ServiceUnavailableException, InternalServerException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, NetworkSecurityManagerException 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:
- Result of the PutAdminAccount operation returned by the service.
- See Also:
-
putAdminAccount
default PutAdminAccountResponse putAdminAccount(Consumer<PutAdminAccountRequest.Builder> putAdminAccountRequest) throws ValidationException, ServiceQuotaExceededException, ConflictException, ServiceUnavailableException, InternalServerException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, NetworkSecurityManagerException 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.Builderavoiding the need to create one manually viaPutAdminAccountRequest.builder()- Parameters:
putAdminAccountRequest- AConsumerthat will call methods onPutAdminAccountRequest.Builderto create a request.- Returns:
- Result of the PutAdminAccount operation returned by the service.
- See Also:
-
tagResource
default TagResourceResponse tagResource(TagResourceRequest tagResourceRequest) throws ValidationException, TagPolicyViolationException, InternalServerException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, NetworkSecurityManagerException Adds or overwrites the specified tags on the given resource.
- Parameters:
tagResourceRequest-- Returns:
- Result of the TagResource operation returned by the service.
- See Also:
-
tagResource
default TagResourceResponse tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) throws ValidationException, TagPolicyViolationException, InternalServerException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, NetworkSecurityManagerException Adds or overwrites the specified tags on the given resource.
This is a convenience which creates an instance of the
TagResourceRequest.Builderavoiding the need to create one manually viaTagResourceRequest.builder()- Parameters:
tagResourceRequest- AConsumerthat will call methods onTagResourceRequest.Builderto create a request.- Returns:
- Result of the TagResource operation returned by the service.
- See Also:
-
untagResource
default UntagResourceResponse untagResource(UntagResourceRequest untagResourceRequest) throws ValidationException, TagPolicyViolationException, InternalServerException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, NetworkSecurityManagerException Removes the specified tags from the given resource.
- Parameters:
untagResourceRequest-- Returns:
- Result of the UntagResource operation returned by the service.
- See Also:
-
untagResource
default UntagResourceResponse untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) throws ValidationException, TagPolicyViolationException, InternalServerException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, NetworkSecurityManagerException Removes the specified tags from the given resource.
This is a convenience which creates an instance of the
UntagResourceRequest.Builderavoiding the need to create one manually viaUntagResourceRequest.builder()- Parameters:
untagResourceRequest- AConsumerthat will call methods onUntagResourceRequest.Builderto create a request.- Returns:
- Result of the UntagResource operation returned by the service.
- See Also:
-
updateDeployment
default UpdateDeploymentResponse updateDeployment(UpdateDeploymentRequest updateDeploymentRequest) throws ValidationException, ServiceQuotaExceededException, ConflictException, InternalServerException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, NetworkSecurityManagerException Updates the specified deployment. To prevent conflicting concurrent updates, provide the current
updateToken. UseisPublishedto publish the update or keep the deployment as a draft.- Parameters:
updateDeploymentRequest-- Returns:
- Result of the UpdateDeployment operation returned by the service.
- See Also:
-
updateDeployment
default UpdateDeploymentResponse updateDeployment(Consumer<UpdateDeploymentRequest.Builder> updateDeploymentRequest) throws ValidationException, ServiceQuotaExceededException, ConflictException, InternalServerException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, NetworkSecurityManagerException Updates the specified deployment. To prevent conflicting concurrent updates, provide the current
updateToken. UseisPublishedto publish the update or keep the deployment as a draft.
This is a convenience which creates an instance of the
UpdateDeploymentRequest.Builderavoiding the need to create one manually viaUpdateDeploymentRequest.builder()- Parameters:
updateDeploymentRequest- AConsumerthat will call methods onUpdateDeploymentRequest.Builderto create a request.- Returns:
- Result of the UpdateDeployment operation returned by the service.
- See Also:
-
updatePolicy
default UpdatePolicyResponse updatePolicy(UpdatePolicyRequest updatePolicyRequest) throws ValidationException, ServiceQuotaExceededException, ConflictException, InternalServerException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, NetworkSecurityManagerException Updates the specified policy. To prevent conflicting concurrent updates, provide the current
updateToken. UseisPublishedto publish the update or keep the policy as a draft.- Parameters:
updatePolicyRequest-- Returns:
- Result of the UpdatePolicy operation returned by the service.
- See Also:
-
updatePolicy
default UpdatePolicyResponse updatePolicy(Consumer<UpdatePolicyRequest.Builder> updatePolicyRequest) throws ValidationException, ServiceQuotaExceededException, ConflictException, InternalServerException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, NetworkSecurityManagerException Updates the specified policy. To prevent conflicting concurrent updates, provide the current
updateToken. UseisPublishedto publish the update or keep the policy as a draft.
This is a convenience which creates an instance of the
UpdatePolicyRequest.Builderavoiding the need to create one manually viaUpdatePolicyRequest.builder()- Parameters:
updatePolicyRequest- AConsumerthat will call methods onUpdatePolicyRequest.Builderto create a request.- Returns:
- Result of the UpdatePolicy operation returned by the service.
- See Also:
-
updateRule
default UpdateRuleResponse updateRule(UpdateRuleRequest updateRuleRequest) throws ValidationException, ServiceQuotaExceededException, ConflictException, InternalServerException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, NetworkSecurityManagerException Updates the specified rule. To prevent conflicting concurrent updates, provide the current
updateToken. UseisPublishedto publish the update or keep the rule as a draft.- Parameters:
updateRuleRequest-- Returns:
- Result of the UpdateRule operation returned by the service.
- See Also:
-
updateRule
default UpdateRuleResponse updateRule(Consumer<UpdateRuleRequest.Builder> updateRuleRequest) throws ValidationException, ServiceQuotaExceededException, ConflictException, InternalServerException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, NetworkSecurityManagerException Updates the specified rule. To prevent conflicting concurrent updates, provide the current
updateToken. UseisPublishedto publish the update or keep the rule as a draft.
This is a convenience which creates an instance of the
UpdateRuleRequest.Builderavoiding the need to create one manually viaUpdateRuleRequest.builder()- Parameters:
updateRuleRequest- AConsumerthat will call methods onUpdateRuleRequest.Builderto create a request.- Returns:
- Result of the UpdateRule operation returned by the service.
- See Also:
-
updateScope
default UpdateScopeResponse updateScope(UpdateScopeRequest updateScopeRequest) throws ValidationException, ServiceQuotaExceededException, ConflictException, InternalServerException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, NetworkSecurityManagerException Updates the specified scope. To prevent conflicting concurrent updates, provide the current
updateToken. UseisPublishedto publish the update or keep the scope as a draft.- Parameters:
updateScopeRequest-- Returns:
- Result of the UpdateScope operation returned by the service.
- See Also:
-
updateScope
default UpdateScopeResponse updateScope(Consumer<UpdateScopeRequest.Builder> updateScopeRequest) throws ValidationException, ServiceQuotaExceededException, ConflictException, InternalServerException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, NetworkSecurityManagerException Updates the specified scope. To prevent conflicting concurrent updates, provide the current
updateToken. UseisPublishedto publish the update or keep the scope as a draft.
This is a convenience which creates an instance of the
UpdateScopeRequest.Builderavoiding the need to create one manually viaUpdateScopeRequest.builder()- Parameters:
updateScopeRequest- AConsumerthat will call methods onUpdateScopeRequest.Builderto create a request.- Returns:
- Result of the UpdateScope operation returned by the service.
- See Also:
-
updateTemplate
default UpdateTemplateResponse updateTemplate(UpdateTemplateRequest updateTemplateRequest) throws ValidationException, ServiceQuotaExceededException, ConflictException, InternalServerException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, NetworkSecurityManagerException Updates the specified template. To prevent conflicting concurrent updates, provide the current
updateToken. UseisPublishedto publish the update or keep the template as a draft.- Parameters:
updateTemplateRequest-- Returns:
- Result of the UpdateTemplate operation returned by the service.
- See Also:
-
updateTemplate
default UpdateTemplateResponse updateTemplate(Consumer<UpdateTemplateRequest.Builder> updateTemplateRequest) throws ValidationException, ServiceQuotaExceededException, ConflictException, InternalServerException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, NetworkSecurityManagerException Updates the specified template. To prevent conflicting concurrent updates, provide the current
updateToken. UseisPublishedto publish the update or keep the template as a draft.
This is a convenience which creates an instance of the
UpdateTemplateRequest.Builderavoiding the need to create one manually viaUpdateTemplateRequest.builder()- Parameters:
updateTemplateRequest- AConsumerthat will call methods onUpdateTemplateRequest.Builderto create a request.- Returns:
- Result of the UpdateTemplate operation returned by the service.
- See Also:
-
create
Create aNetworkSecurityManagerClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider. -
builder
Create a builder that can be used to configure and create aNetworkSecurityManagerClient. -
serviceMetadata
-
serviceClientConfiguration
Description copied from interface:SdkClientThe SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfiguration- Specified by:
serviceClientConfigurationin interfaceAwsClient- Specified by:
serviceClientConfigurationin interfaceSdkClient- Returns:
- SdkServiceClientConfiguration
-