Interface InterconnectClient
- All Superinterfaces:
AutoCloseable,AwsClient,SdkAutoCloseable,SdkClient
builder() method.
Provides managed connections between your AWS network resources and select partner network resources.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringValue for looking up the service's metadata from theServiceMetadataProvider.static final String -
Method Summary
Modifier and TypeMethodDescriptiondefault AcceptConnectionProposalResponseacceptConnectionProposal(Consumer<AcceptConnectionProposalRequest.Builder> acceptConnectionProposalRequest) Accepts a connection proposal which was generated at a supported partner's portal.default AcceptConnectionProposalResponseacceptConnectionProposal(AcceptConnectionProposalRequest acceptConnectionProposalRequest) Accepts a connection proposal which was generated at a supported partner's portal.static InterconnectClientBuilderbuilder()Create a builder that can be used to configure and create aInterconnectClient.static InterconnectClientcreate()Create aInterconnectClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider.default CreateConnectionResponsecreateConnection(Consumer<CreateConnectionRequest.Builder> createConnectionRequest) Initiates the process to create a Connection across the specified Environment.default CreateConnectionResponsecreateConnection(CreateConnectionRequest createConnectionRequest) Initiates the process to create a Connection across the specified Environment.default DeleteConnectionResponsedeleteConnection(Consumer<DeleteConnectionRequest.Builder> deleteConnectionRequest) Deletes an existing Connection with the supplied identifier.default DeleteConnectionResponsedeleteConnection(DeleteConnectionRequest deleteConnectionRequest) Deletes an existing Connection with the supplied identifier.describeConnectionProposal(Consumer<DescribeConnectionProposalRequest.Builder> describeConnectionProposalRequest) Describes the details of a connection proposal generated at a partner's portal.describeConnectionProposal(DescribeConnectionProposalRequest describeConnectionProposalRequest) Describes the details of a connection proposal generated at a partner's portal.default GetConnectionResponsegetConnection(Consumer<GetConnectionRequest.Builder> getConnectionRequest) Describes the current state of a Connection resource as specified by the identifier.default GetConnectionResponsegetConnection(GetConnectionRequest getConnectionRequest) Describes the current state of a Connection resource as specified by the identifier.default GetEnvironmentResponsegetEnvironment(Consumer<GetEnvironmentRequest.Builder> getEnvironmentRequest) Describes a specific Environmentdefault GetEnvironmentResponsegetEnvironment(GetEnvironmentRequest getEnvironmentRequest) Describes a specific Environmentdefault ListAttachPointsResponselistAttachPoints(Consumer<ListAttachPointsRequest.Builder> listAttachPointsRequest) Lists all Attach Points the caller has access to that are valid for the specified Environment.default ListAttachPointsResponselistAttachPoints(ListAttachPointsRequest listAttachPointsRequest) Lists all Attach Points the caller has access to that are valid for the specified Environment.default ListAttachPointsIterablelistAttachPointsPaginator(Consumer<ListAttachPointsRequest.Builder> listAttachPointsRequest) This is a variant oflistAttachPoints(software.amazon.awssdk.services.interconnect.model.ListAttachPointsRequest)operation.default ListAttachPointsIterablelistAttachPointsPaginator(ListAttachPointsRequest listAttachPointsRequest) This is a variant oflistAttachPoints(software.amazon.awssdk.services.interconnect.model.ListAttachPointsRequest)operation.default ListConnectionsResponselistConnections(Consumer<ListConnectionsRequest.Builder> listConnectionsRequest) Lists all connection objects to which the caller has access.default ListConnectionsResponselistConnections(ListConnectionsRequest listConnectionsRequest) Lists all connection objects to which the caller has access.default ListConnectionsIterablelistConnectionsPaginator(Consumer<ListConnectionsRequest.Builder> listConnectionsRequest) This is a variant oflistConnections(software.amazon.awssdk.services.interconnect.model.ListConnectionsRequest)operation.default ListConnectionsIterablelistConnectionsPaginator(ListConnectionsRequest listConnectionsRequest) This is a variant oflistConnections(software.amazon.awssdk.services.interconnect.model.ListConnectionsRequest)operation.default ListEnvironmentsResponselistEnvironments(Consumer<ListEnvironmentsRequest.Builder> listEnvironmentsRequest) Lists all of the environments that can produce connections that will land in the called AWS region.default ListEnvironmentsResponselistEnvironments(ListEnvironmentsRequest listEnvironmentsRequest) Lists all of the environments that can produce connections that will land in the called AWS region.default ListEnvironmentsIterablelistEnvironmentsPaginator(Consumer<ListEnvironmentsRequest.Builder> listEnvironmentsRequest) This is a variant oflistEnvironments(software.amazon.awssdk.services.interconnect.model.ListEnvironmentsRequest)operation.default ListEnvironmentsIterablelistEnvironmentsPaginator(ListEnvironmentsRequest listEnvironmentsRequest) This is a variant oflistEnvironments(software.amazon.awssdk.services.interconnect.model.ListEnvironmentsRequest)operation.default ListTagsForResourceResponselistTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) List all current tags on the specified resource.default ListTagsForResourceResponselistTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) List all current tags on the specified resource.The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfigurationstatic ServiceMetadatadefault TagResourceResponsetagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) Add new tags to the specified resource.default TagResourceResponsetagResource(TagResourceRequest tagResourceRequest) Add new tags to the specified resource.default UntagResourceResponseuntagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) Removes tags from the specified resource.default UntagResourceResponseuntagResource(UntagResourceRequest untagResourceRequest) Removes tags from the specified resource.default UpdateConnectionResponseupdateConnection(Consumer<UpdateConnectionRequest.Builder> updateConnectionRequest) Modifies an existing connection.default UpdateConnectionResponseupdateConnection(UpdateConnectionRequest updateConnectionRequest) Modifies an existing connection.default InterconnectWaiterwaiter()Create an instance ofInterconnectWaiterusing this client.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
-
acceptConnectionProposal
default AcceptConnectionProposalResponse acceptConnectionProposal(AcceptConnectionProposalRequest acceptConnectionProposalRequest) throws ResourceNotFoundException, InterconnectClientException, ThrottlingException, AccessDeniedException, InterconnectValidationException, ServiceQuotaExceededException, InterconnectServerException, AwsServiceException, SdkClientException, InterconnectException Accepts a connection proposal which was generated at a supported partner's portal.
The proposal contains the Environment and bandwidth that were chosen on the partner's portal and cannot be modified.
Upon accepting the proposal a connection will be made between the AWS network as accessed via the selected Attach Point and the network previously selected network on the partner's portal.
- Parameters:
acceptConnectionProposalRequest-- Returns:
- Result of the AcceptConnectionProposal operation returned by the service.
- See Also:
-
acceptConnectionProposal
default AcceptConnectionProposalResponse acceptConnectionProposal(Consumer<AcceptConnectionProposalRequest.Builder> acceptConnectionProposalRequest) throws ResourceNotFoundException, InterconnectClientException, ThrottlingException, AccessDeniedException, InterconnectValidationException, ServiceQuotaExceededException, InterconnectServerException, AwsServiceException, SdkClientException, InterconnectException Accepts a connection proposal which was generated at a supported partner's portal.
The proposal contains the Environment and bandwidth that were chosen on the partner's portal and cannot be modified.
Upon accepting the proposal a connection will be made between the AWS network as accessed via the selected Attach Point and the network previously selected network on the partner's portal.
This is a convenience which creates an instance of the
AcceptConnectionProposalRequest.Builderavoiding the need to create one manually viaAcceptConnectionProposalRequest.builder()- Parameters:
acceptConnectionProposalRequest- AConsumerthat will call methods onAcceptConnectionProposalRequest.Builderto create a request.- Returns:
- Result of the AcceptConnectionProposal operation returned by the service.
- See Also:
-
createConnection
default CreateConnectionResponse createConnection(CreateConnectionRequest createConnectionRequest) throws ResourceNotFoundException, InterconnectClientException, ThrottlingException, AccessDeniedException, InterconnectValidationException, ServiceQuotaExceededException, InterconnectServerException, AwsServiceException, SdkClientException, InterconnectException Initiates the process to create a Connection across the specified Environment.
The Environment dictates the specified partner and location to which the other end of the connection should attach. You can see a list of the available Environments by calling ListEnvironments
The Attach Point specifies where within the AWS Network your connection will logically connect.
After a successful call to this method, the resulting Connection will return an Activation Key which will need to be brought to the specific partner's portal to confirm the Connection on both sides. (See Environmentinvalid input: '$'activationPageUrl for a direct link to the partner portal).
- Parameters:
createConnectionRequest-- Returns:
- Result of the CreateConnection operation returned by the service.
- See Also:
-
createConnection
default CreateConnectionResponse createConnection(Consumer<CreateConnectionRequest.Builder> createConnectionRequest) throws ResourceNotFoundException, InterconnectClientException, ThrottlingException, AccessDeniedException, InterconnectValidationException, ServiceQuotaExceededException, InterconnectServerException, AwsServiceException, SdkClientException, InterconnectException Initiates the process to create a Connection across the specified Environment.
The Environment dictates the specified partner and location to which the other end of the connection should attach. You can see a list of the available Environments by calling ListEnvironments
The Attach Point specifies where within the AWS Network your connection will logically connect.
After a successful call to this method, the resulting Connection will return an Activation Key which will need to be brought to the specific partner's portal to confirm the Connection on both sides. (See Environmentinvalid input: '$'activationPageUrl for a direct link to the partner portal).
This is a convenience which creates an instance of the
CreateConnectionRequest.Builderavoiding the need to create one manually viaCreateConnectionRequest.builder()- Parameters:
createConnectionRequest- AConsumerthat will call methods onCreateConnectionRequest.Builderto create a request.- Returns:
- Result of the CreateConnection operation returned by the service.
- See Also:
-
deleteConnection
default DeleteConnectionResponse deleteConnection(DeleteConnectionRequest deleteConnectionRequest) throws ResourceNotFoundException, InterconnectClientException, ThrottlingException, AccessDeniedException, InterconnectValidationException, ServiceQuotaExceededException, InterconnectServerException, AwsServiceException, SdkClientException, InterconnectException Deletes an existing Connection with the supplied identifier.
This operation will also inform the remote partner of your intention to delete your connection. Note, the partner may still require you to delete to fully clean up resources, but the network connectivity provided by the Connection will cease to exist.
- Parameters:
deleteConnectionRequest-- Returns:
- Result of the DeleteConnection operation returned by the service.
- See Also:
-
deleteConnection
default DeleteConnectionResponse deleteConnection(Consumer<DeleteConnectionRequest.Builder> deleteConnectionRequest) throws ResourceNotFoundException, InterconnectClientException, ThrottlingException, AccessDeniedException, InterconnectValidationException, ServiceQuotaExceededException, InterconnectServerException, AwsServiceException, SdkClientException, InterconnectException Deletes an existing Connection with the supplied identifier.
This operation will also inform the remote partner of your intention to delete your connection. Note, the partner may still require you to delete to fully clean up resources, but the network connectivity provided by the Connection will cease to exist.
This is a convenience which creates an instance of the
DeleteConnectionRequest.Builderavoiding the need to create one manually viaDeleteConnectionRequest.builder()- Parameters:
deleteConnectionRequest- AConsumerthat will call methods onDeleteConnectionRequest.Builderto create a request.- Returns:
- Result of the DeleteConnection operation returned by the service.
- See Also:
-
describeConnectionProposal
default DescribeConnectionProposalResponse describeConnectionProposal(DescribeConnectionProposalRequest describeConnectionProposalRequest) throws ResourceNotFoundException, InterconnectClientException, ThrottlingException, AccessDeniedException, InterconnectValidationException, ServiceQuotaExceededException, InterconnectServerException, AwsServiceException, SdkClientException, InterconnectException Describes the details of a connection proposal generated at a partner's portal.
- Parameters:
describeConnectionProposalRequest-- Returns:
- Result of the DescribeConnectionProposal operation returned by the service.
- See Also:
-
describeConnectionProposal
default DescribeConnectionProposalResponse describeConnectionProposal(Consumer<DescribeConnectionProposalRequest.Builder> describeConnectionProposalRequest) throws ResourceNotFoundException, InterconnectClientException, ThrottlingException, AccessDeniedException, InterconnectValidationException, ServiceQuotaExceededException, InterconnectServerException, AwsServiceException, SdkClientException, InterconnectException Describes the details of a connection proposal generated at a partner's portal.
This is a convenience which creates an instance of the
DescribeConnectionProposalRequest.Builderavoiding the need to create one manually viaDescribeConnectionProposalRequest.builder()- Parameters:
describeConnectionProposalRequest- AConsumerthat will call methods onDescribeConnectionProposalRequest.Builderto create a request.- Returns:
- Result of the DescribeConnectionProposal operation returned by the service.
- See Also:
-
getConnection
default GetConnectionResponse getConnection(GetConnectionRequest getConnectionRequest) throws ResourceNotFoundException, InterconnectClientException, ThrottlingException, AccessDeniedException, InterconnectValidationException, ServiceQuotaExceededException, InterconnectServerException, AwsServiceException, SdkClientException, InterconnectException Describes the current state of a Connection resource as specified by the identifier.
- Parameters:
getConnectionRequest-- Returns:
- Result of the GetConnection operation returned by the service.
- See Also:
-
getConnection
default GetConnectionResponse getConnection(Consumer<GetConnectionRequest.Builder> getConnectionRequest) throws ResourceNotFoundException, InterconnectClientException, ThrottlingException, AccessDeniedException, InterconnectValidationException, ServiceQuotaExceededException, InterconnectServerException, AwsServiceException, SdkClientException, InterconnectException Describes the current state of a Connection resource as specified by the identifier.
This is a convenience which creates an instance of the
GetConnectionRequest.Builderavoiding the need to create one manually viaGetConnectionRequest.builder()- Parameters:
getConnectionRequest- AConsumerthat will call methods onGetConnectionRequest.Builderto create a request.- Returns:
- Result of the GetConnection operation returned by the service.
- See Also:
-
getEnvironment
default GetEnvironmentResponse getEnvironment(GetEnvironmentRequest getEnvironmentRequest) throws ResourceNotFoundException, InterconnectClientException, ThrottlingException, AccessDeniedException, InterconnectValidationException, ServiceQuotaExceededException, InterconnectServerException, AwsServiceException, SdkClientException, InterconnectException Describes a specific Environment
- Parameters:
getEnvironmentRequest-- Returns:
- Result of the GetEnvironment operation returned by the service.
- See Also:
-
getEnvironment
default GetEnvironmentResponse getEnvironment(Consumer<GetEnvironmentRequest.Builder> getEnvironmentRequest) throws ResourceNotFoundException, InterconnectClientException, ThrottlingException, AccessDeniedException, InterconnectValidationException, ServiceQuotaExceededException, InterconnectServerException, AwsServiceException, SdkClientException, InterconnectException Describes a specific Environment
This is a convenience which creates an instance of the
GetEnvironmentRequest.Builderavoiding the need to create one manually viaGetEnvironmentRequest.builder()- Parameters:
getEnvironmentRequest- AConsumerthat will call methods onGetEnvironmentRequest.Builderto create a request.- Returns:
- Result of the GetEnvironment operation returned by the service.
- See Also:
-
listAttachPoints
default ListAttachPointsResponse listAttachPoints(ListAttachPointsRequest listAttachPointsRequest) throws ResourceNotFoundException, InterconnectClientException, ThrottlingException, AccessDeniedException, InterconnectValidationException, ServiceQuotaExceededException, InterconnectServerException, AwsServiceException, SdkClientException, InterconnectException Lists all Attach Points the caller has access to that are valid for the specified Environment.
- Parameters:
listAttachPointsRequest-- Returns:
- Result of the ListAttachPoints operation returned by the service.
- See Also:
-
listAttachPoints
default ListAttachPointsResponse listAttachPoints(Consumer<ListAttachPointsRequest.Builder> listAttachPointsRequest) throws ResourceNotFoundException, InterconnectClientException, ThrottlingException, AccessDeniedException, InterconnectValidationException, ServiceQuotaExceededException, InterconnectServerException, AwsServiceException, SdkClientException, InterconnectException Lists all Attach Points the caller has access to that are valid for the specified Environment.
This is a convenience which creates an instance of the
ListAttachPointsRequest.Builderavoiding the need to create one manually viaListAttachPointsRequest.builder()- Parameters:
listAttachPointsRequest- AConsumerthat will call methods onListAttachPointsRequest.Builderto create a request.- Returns:
- Result of the ListAttachPoints operation returned by the service.
- See Also:
-
listAttachPointsPaginator
default ListAttachPointsIterable listAttachPointsPaginator(ListAttachPointsRequest listAttachPointsRequest) throws ResourceNotFoundException, InterconnectClientException, ThrottlingException, AccessDeniedException, InterconnectValidationException, ServiceQuotaExceededException, InterconnectServerException, AwsServiceException, SdkClientException, InterconnectException This is a variant of
listAttachPoints(software.amazon.awssdk.services.interconnect.model.ListAttachPointsRequest)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.interconnect.paginators.ListAttachPointsIterable responses = client.listAttachPointsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.interconnect.paginators.ListAttachPointsIterable responses = client .listAttachPointsPaginator(request); for (software.amazon.awssdk.services.interconnect.model.ListAttachPointsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.interconnect.paginators.ListAttachPointsIterable responses = client.listAttachPointsPaginator(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
listAttachPoints(software.amazon.awssdk.services.interconnect.model.ListAttachPointsRequest)operation.- Parameters:
listAttachPointsRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listAttachPointsPaginator
default ListAttachPointsIterable listAttachPointsPaginator(Consumer<ListAttachPointsRequest.Builder> listAttachPointsRequest) throws ResourceNotFoundException, InterconnectClientException, ThrottlingException, AccessDeniedException, InterconnectValidationException, ServiceQuotaExceededException, InterconnectServerException, AwsServiceException, SdkClientException, InterconnectException This is a variant of
listAttachPoints(software.amazon.awssdk.services.interconnect.model.ListAttachPointsRequest)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.interconnect.paginators.ListAttachPointsIterable responses = client.listAttachPointsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.interconnect.paginators.ListAttachPointsIterable responses = client .listAttachPointsPaginator(request); for (software.amazon.awssdk.services.interconnect.model.ListAttachPointsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.interconnect.paginators.ListAttachPointsIterable responses = client.listAttachPointsPaginator(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
listAttachPoints(software.amazon.awssdk.services.interconnect.model.ListAttachPointsRequest)operation.
This is a convenience which creates an instance of the
ListAttachPointsRequest.Builderavoiding the need to create one manually viaListAttachPointsRequest.builder()- Parameters:
listAttachPointsRequest- AConsumerthat will call methods onListAttachPointsRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listConnections
default ListConnectionsResponse listConnections(ListConnectionsRequest listConnectionsRequest) throws ResourceNotFoundException, InterconnectClientException, ThrottlingException, AccessDeniedException, InterconnectValidationException, ServiceQuotaExceededException, InterconnectServerException, AwsServiceException, SdkClientException, InterconnectException Lists all connection objects to which the caller has access.
Allows for optional filtering by the following properties:
-
state -
environmentId -
provider -
attach point
Only Connection objects matching all filters will be returned.
- Parameters:
listConnectionsRequest-- Returns:
- Result of the ListConnections operation returned by the service.
- See Also:
-
-
listConnections
default ListConnectionsResponse listConnections(Consumer<ListConnectionsRequest.Builder> listConnectionsRequest) throws ResourceNotFoundException, InterconnectClientException, ThrottlingException, AccessDeniedException, InterconnectValidationException, ServiceQuotaExceededException, InterconnectServerException, AwsServiceException, SdkClientException, InterconnectException Lists all connection objects to which the caller has access.
Allows for optional filtering by the following properties:
-
state -
environmentId -
provider -
attach point
Only Connection objects matching all filters will be returned.
This is a convenience which creates an instance of the
ListConnectionsRequest.Builderavoiding the need to create one manually viaListConnectionsRequest.builder()- Parameters:
listConnectionsRequest- AConsumerthat will call methods onListConnectionsRequest.Builderto create a request.- Returns:
- Result of the ListConnections operation returned by the service.
- See Also:
-
-
listConnectionsPaginator
default ListConnectionsIterable listConnectionsPaginator(ListConnectionsRequest listConnectionsRequest) throws ResourceNotFoundException, InterconnectClientException, ThrottlingException, AccessDeniedException, InterconnectValidationException, ServiceQuotaExceededException, InterconnectServerException, AwsServiceException, SdkClientException, InterconnectException This is a variant of
listConnections(software.amazon.awssdk.services.interconnect.model.ListConnectionsRequest)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.interconnect.paginators.ListConnectionsIterable responses = client.listConnectionsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.interconnect.paginators.ListConnectionsIterable responses = client .listConnectionsPaginator(request); for (software.amazon.awssdk.services.interconnect.model.ListConnectionsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.interconnect.paginators.ListConnectionsIterable responses = client.listConnectionsPaginator(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
listConnections(software.amazon.awssdk.services.interconnect.model.ListConnectionsRequest)operation.- Parameters:
listConnectionsRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listConnectionsPaginator
default ListConnectionsIterable listConnectionsPaginator(Consumer<ListConnectionsRequest.Builder> listConnectionsRequest) throws ResourceNotFoundException, InterconnectClientException, ThrottlingException, AccessDeniedException, InterconnectValidationException, ServiceQuotaExceededException, InterconnectServerException, AwsServiceException, SdkClientException, InterconnectException This is a variant of
listConnections(software.amazon.awssdk.services.interconnect.model.ListConnectionsRequest)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.interconnect.paginators.ListConnectionsIterable responses = client.listConnectionsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.interconnect.paginators.ListConnectionsIterable responses = client .listConnectionsPaginator(request); for (software.amazon.awssdk.services.interconnect.model.ListConnectionsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.interconnect.paginators.ListConnectionsIterable responses = client.listConnectionsPaginator(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
listConnections(software.amazon.awssdk.services.interconnect.model.ListConnectionsRequest)operation.
This is a convenience which creates an instance of the
ListConnectionsRequest.Builderavoiding the need to create one manually viaListConnectionsRequest.builder()- Parameters:
listConnectionsRequest- AConsumerthat will call methods onListConnectionsRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listEnvironments
default ListEnvironmentsResponse listEnvironments(ListEnvironmentsRequest listEnvironmentsRequest) throws ResourceNotFoundException, InterconnectClientException, ThrottlingException, AccessDeniedException, InterconnectValidationException, ServiceQuotaExceededException, InterconnectServerException, AwsServiceException, SdkClientException, InterconnectException Lists all of the environments that can produce connections that will land in the called AWS region.
- Parameters:
listEnvironmentsRequest-- Returns:
- Result of the ListEnvironments operation returned by the service.
- See Also:
-
listEnvironments
default ListEnvironmentsResponse listEnvironments(Consumer<ListEnvironmentsRequest.Builder> listEnvironmentsRequest) throws ResourceNotFoundException, InterconnectClientException, ThrottlingException, AccessDeniedException, InterconnectValidationException, ServiceQuotaExceededException, InterconnectServerException, AwsServiceException, SdkClientException, InterconnectException Lists all of the environments that can produce connections that will land in the called AWS region.
This is a convenience which creates an instance of the
ListEnvironmentsRequest.Builderavoiding the need to create one manually viaListEnvironmentsRequest.builder()- Parameters:
listEnvironmentsRequest- AConsumerthat will call methods onListEnvironmentsRequest.Builderto create a request.- Returns:
- Result of the ListEnvironments operation returned by the service.
- See Also:
-
listEnvironmentsPaginator
default ListEnvironmentsIterable listEnvironmentsPaginator(ListEnvironmentsRequest listEnvironmentsRequest) throws ResourceNotFoundException, InterconnectClientException, ThrottlingException, AccessDeniedException, InterconnectValidationException, ServiceQuotaExceededException, InterconnectServerException, AwsServiceException, SdkClientException, InterconnectException This is a variant of
listEnvironments(software.amazon.awssdk.services.interconnect.model.ListEnvironmentsRequest)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.interconnect.paginators.ListEnvironmentsIterable responses = client.listEnvironmentsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.interconnect.paginators.ListEnvironmentsIterable responses = client .listEnvironmentsPaginator(request); for (software.amazon.awssdk.services.interconnect.model.ListEnvironmentsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.interconnect.paginators.ListEnvironmentsIterable responses = client.listEnvironmentsPaginator(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
listEnvironments(software.amazon.awssdk.services.interconnect.model.ListEnvironmentsRequest)operation.- Parameters:
listEnvironmentsRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listEnvironmentsPaginator
default ListEnvironmentsIterable listEnvironmentsPaginator(Consumer<ListEnvironmentsRequest.Builder> listEnvironmentsRequest) throws ResourceNotFoundException, InterconnectClientException, ThrottlingException, AccessDeniedException, InterconnectValidationException, ServiceQuotaExceededException, InterconnectServerException, AwsServiceException, SdkClientException, InterconnectException This is a variant of
listEnvironments(software.amazon.awssdk.services.interconnect.model.ListEnvironmentsRequest)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.interconnect.paginators.ListEnvironmentsIterable responses = client.listEnvironmentsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.interconnect.paginators.ListEnvironmentsIterable responses = client .listEnvironmentsPaginator(request); for (software.amazon.awssdk.services.interconnect.model.ListEnvironmentsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.interconnect.paginators.ListEnvironmentsIterable responses = client.listEnvironmentsPaginator(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
listEnvironments(software.amazon.awssdk.services.interconnect.model.ListEnvironmentsRequest)operation.
This is a convenience which creates an instance of the
ListEnvironmentsRequest.Builderavoiding the need to create one manually viaListEnvironmentsRequest.builder()- Parameters:
listEnvironmentsRequest- AConsumerthat will call methods onListEnvironmentsRequest.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 ResourceNotFoundException, InterconnectClientException, ThrottlingException, AccessDeniedException, InterconnectValidationException, ServiceQuotaExceededException, InterconnectServerException, AwsServiceException, SdkClientException, InterconnectException List all current tags on the specified resource. Currently this supports Connection resources.
- Parameters:
listTagsForResourceRequest-- Returns:
- Result of the ListTagsForResource operation returned by the service.
- See Also:
-
listTagsForResource
default ListTagsForResourceResponse listTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) throws ResourceNotFoundException, InterconnectClientException, ThrottlingException, AccessDeniedException, InterconnectValidationException, ServiceQuotaExceededException, InterconnectServerException, AwsServiceException, SdkClientException, InterconnectException List all current tags on the specified resource. Currently this supports Connection resources.
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:
-
tagResource
default TagResourceResponse tagResource(TagResourceRequest tagResourceRequest) throws ResourceNotFoundException, InterconnectClientException, ThrottlingException, AccessDeniedException, InterconnectValidationException, ServiceQuotaExceededException, InterconnectServerException, AwsServiceException, SdkClientException, InterconnectException Add new tags to the specified resource.
- Parameters:
tagResourceRequest-- Returns:
- Result of the TagResource operation returned by the service.
- See Also:
-
tagResource
default TagResourceResponse tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) throws ResourceNotFoundException, InterconnectClientException, ThrottlingException, AccessDeniedException, InterconnectValidationException, ServiceQuotaExceededException, InterconnectServerException, AwsServiceException, SdkClientException, InterconnectException Add new tags to the specified 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 ResourceNotFoundException, InterconnectClientException, ThrottlingException, AccessDeniedException, InterconnectValidationException, ServiceQuotaExceededException, InterconnectServerException, AwsServiceException, SdkClientException, InterconnectException Removes tags from the specified resource.
- Parameters:
untagResourceRequest-- Returns:
- Result of the UntagResource operation returned by the service.
- See Also:
-
untagResource
default UntagResourceResponse untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) throws ResourceNotFoundException, InterconnectClientException, ThrottlingException, AccessDeniedException, InterconnectValidationException, ServiceQuotaExceededException, InterconnectServerException, AwsServiceException, SdkClientException, InterconnectException Removes tags from the specified 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:
-
updateConnection
default UpdateConnectionResponse updateConnection(UpdateConnectionRequest updateConnectionRequest) throws ResourceNotFoundException, InterconnectClientException, ThrottlingException, AccessDeniedException, InterconnectValidationException, ServiceQuotaExceededException, InterconnectServerException, AwsServiceException, SdkClientException, InterconnectException Modifies an existing connection. Currently we support modifications to the connection's description and/or bandwidth.
- Parameters:
updateConnectionRequest-- Returns:
- Result of the UpdateConnection operation returned by the service.
- See Also:
-
updateConnection
default UpdateConnectionResponse updateConnection(Consumer<UpdateConnectionRequest.Builder> updateConnectionRequest) throws ResourceNotFoundException, InterconnectClientException, ThrottlingException, AccessDeniedException, InterconnectValidationException, ServiceQuotaExceededException, InterconnectServerException, AwsServiceException, SdkClientException, InterconnectException Modifies an existing connection. Currently we support modifications to the connection's description and/or bandwidth.
This is a convenience which creates an instance of the
UpdateConnectionRequest.Builderavoiding the need to create one manually viaUpdateConnectionRequest.builder()- Parameters:
updateConnectionRequest- AConsumerthat will call methods onUpdateConnectionRequest.Builderto create a request.- Returns:
- Result of the UpdateConnection operation returned by the service.
- See Also:
-
waiter
Create an instance ofInterconnectWaiterusing this client.Waiters created via this method are managed by the SDK and resources will be released when the service client is closed.
- Returns:
- an instance of
InterconnectWaiter
-
create
Create aInterconnectClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider. -
builder
Create a builder that can be used to configure and create aInterconnectClient. -
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
-