Interface CloudControlClient
- All Superinterfaces:
AutoCloseable
,AwsClient
,SdkAutoCloseable
,SdkClient
builder()
method.
For more information about Amazon Web Services Cloud Control API, see the Amazon Web Services Cloud Control API User Guide.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
Value for looking up the service's metadata from theServiceMetadataProvider
.static final String
-
Method Summary
Modifier and TypeMethodDescriptionstatic CloudControlClientBuilder
builder()
Create a builder that can be used to configure and create aCloudControlClient
.default CancelResourceRequestResponse
cancelResourceRequest
(Consumer<CancelResourceRequestRequest.Builder> cancelResourceRequestRequest) Cancels the specified resource operation request.default CancelResourceRequestResponse
cancelResourceRequest
(CancelResourceRequestRequest cancelResourceRequestRequest) Cancels the specified resource operation request.static CloudControlClient
create()
Create aCloudControlClient
with the region loaded from theDefaultAwsRegionProviderChain
and credentials loaded from theDefaultCredentialsProvider
.default CreateResourceResponse
createResource
(Consumer<CreateResourceRequest.Builder> createResourceRequest) Creates the specified resource.default CreateResourceResponse
createResource
(CreateResourceRequest createResourceRequest) Creates the specified resource.default DeleteResourceResponse
deleteResource
(Consumer<DeleteResourceRequest.Builder> deleteResourceRequest) Deletes the specified resource.default DeleteResourceResponse
deleteResource
(DeleteResourceRequest deleteResourceRequest) Deletes the specified resource.default GetResourceResponse
getResource
(Consumer<GetResourceRequest.Builder> getResourceRequest) Returns information about the current state of the specified resource.default GetResourceResponse
getResource
(GetResourceRequest getResourceRequest) Returns information about the current state of the specified resource.default GetResourceRequestStatusResponse
getResourceRequestStatus
(Consumer<GetResourceRequestStatusRequest.Builder> getResourceRequestStatusRequest) Returns the current status of a resource operation request.default GetResourceRequestStatusResponse
getResourceRequestStatus
(GetResourceRequestStatusRequest getResourceRequestStatusRequest) Returns the current status of a resource operation request.default ListResourceRequestsResponse
listResourceRequests
(Consumer<ListResourceRequestsRequest.Builder> listResourceRequestsRequest) Returns existing resource operation requests.default ListResourceRequestsResponse
listResourceRequests
(ListResourceRequestsRequest listResourceRequestsRequest) Returns existing resource operation requests.default ListResourceRequestsIterable
listResourceRequestsPaginator
(Consumer<ListResourceRequestsRequest.Builder> listResourceRequestsRequest) Returns existing resource operation requests.default ListResourceRequestsIterable
listResourceRequestsPaginator
(ListResourceRequestsRequest listResourceRequestsRequest) Returns existing resource operation requests.default ListResourcesResponse
listResources
(Consumer<ListResourcesRequest.Builder> listResourcesRequest) Returns information about the specified resources.default ListResourcesResponse
listResources
(ListResourcesRequest listResourcesRequest) Returns information about the specified resources.default ListResourcesIterable
listResourcesPaginator
(Consumer<ListResourcesRequest.Builder> listResourcesRequest) Returns information about the specified resources.default ListResourcesIterable
listResourcesPaginator
(ListResourcesRequest listResourcesRequest) Returns information about the specified resources.The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfigurationstatic ServiceMetadata
default UpdateResourceResponse
updateResource
(Consumer<UpdateResourceRequest.Builder> updateResourceRequest) Updates the specified property values in the resource.default UpdateResourceResponse
updateResource
(UpdateResourceRequest updateResourceRequest) Updates the specified property values in the resource.default CloudControlWaiter
waiter()
Create an instance ofCloudControlWaiter
using this client.Methods inherited from interface software.amazon.awssdk.utils.SdkAutoCloseable
close
Methods 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
-
cancelResourceRequest
default CancelResourceRequestResponse cancelResourceRequest(CancelResourceRequestRequest cancelResourceRequestRequest) throws ConcurrentModificationException, RequestTokenNotFoundException, AwsServiceException, SdkClientException, CloudControlException Cancels the specified resource operation request. For more information, see Canceling resource operation requests in the Amazon Web Services Cloud Control API User Guide.
Only resource operations requests with a status of
PENDING
orIN_PROGRESS
can be canceled.- Parameters:
cancelResourceRequestRequest
-- Returns:
- Result of the CancelResourceRequest operation returned by the service.
- See Also:
-
cancelResourceRequest
default CancelResourceRequestResponse cancelResourceRequest(Consumer<CancelResourceRequestRequest.Builder> cancelResourceRequestRequest) throws ConcurrentModificationException, RequestTokenNotFoundException, AwsServiceException, SdkClientException, CloudControlException Cancels the specified resource operation request. For more information, see Canceling resource operation requests in the Amazon Web Services Cloud Control API User Guide.
Only resource operations requests with a status of
PENDING
orIN_PROGRESS
can be canceled.
This is a convenience which creates an instance of the
CancelResourceRequestRequest.Builder
avoiding the need to create one manually viaCancelResourceRequestRequest.builder()
- Parameters:
cancelResourceRequestRequest
- AConsumer
that will call methods onCancelResourceRequestRequest.Builder
to create a request.- Returns:
- Result of the CancelResourceRequest operation returned by the service.
- See Also:
-
createResource
default CreateResourceResponse createResource(CreateResourceRequest createResourceRequest) throws AlreadyExistsException, HandlerInternalFailureException, GeneralServiceException, NotUpdatableException, TypeNotFoundException, ConcurrentOperationException, InvalidRequestException, PrivateTypeException, ResourceNotFoundException, NetworkFailureException, UnsupportedActionException, NotStabilizedException, ServiceInternalErrorException, HandlerFailureException, ServiceLimitExceededException, InvalidCredentialsException, ResourceConflictException, ClientTokenConflictException, ThrottlingException, AwsServiceException, SdkClientException, CloudControlException Creates the specified resource. For more information, see Creating a resource in the Amazon Web Services Cloud Control API User Guide.
After you have initiated a resource creation request, you can monitor the progress of your request by calling GetResourceRequestStatus using the
RequestToken
of theProgressEvent
type returned byCreateResource
.- Parameters:
createResourceRequest
-- Returns:
- Result of the CreateResource operation returned by the service.
- See Also:
-
createResource
default CreateResourceResponse createResource(Consumer<CreateResourceRequest.Builder> createResourceRequest) throws AlreadyExistsException, HandlerInternalFailureException, GeneralServiceException, NotUpdatableException, TypeNotFoundException, ConcurrentOperationException, InvalidRequestException, PrivateTypeException, ResourceNotFoundException, NetworkFailureException, UnsupportedActionException, NotStabilizedException, ServiceInternalErrorException, HandlerFailureException, ServiceLimitExceededException, InvalidCredentialsException, ResourceConflictException, ClientTokenConflictException, ThrottlingException, AwsServiceException, SdkClientException, CloudControlException Creates the specified resource. For more information, see Creating a resource in the Amazon Web Services Cloud Control API User Guide.
After you have initiated a resource creation request, you can monitor the progress of your request by calling GetResourceRequestStatus using the
RequestToken
of theProgressEvent
type returned byCreateResource
.
This is a convenience which creates an instance of the
CreateResourceRequest.Builder
avoiding the need to create one manually viaCreateResourceRequest.builder()
- Parameters:
createResourceRequest
- AConsumer
that will call methods onCreateResourceRequest.Builder
to create a request.- Returns:
- Result of the CreateResource operation returned by the service.
- See Also:
-
deleteResource
default DeleteResourceResponse deleteResource(DeleteResourceRequest deleteResourceRequest) throws AlreadyExistsException, HandlerInternalFailureException, GeneralServiceException, NotUpdatableException, TypeNotFoundException, ConcurrentOperationException, InvalidRequestException, PrivateTypeException, ResourceNotFoundException, NetworkFailureException, UnsupportedActionException, NotStabilizedException, ServiceInternalErrorException, HandlerFailureException, ServiceLimitExceededException, InvalidCredentialsException, ResourceConflictException, ClientTokenConflictException, ThrottlingException, AwsServiceException, SdkClientException, CloudControlException Deletes the specified resource. For details, see Deleting a resource in the Amazon Web Services Cloud Control API User Guide.
After you have initiated a resource deletion request, you can monitor the progress of your request by calling GetResourceRequestStatus using the
RequestToken
of theProgressEvent
returned byDeleteResource
.- Parameters:
deleteResourceRequest
-- Returns:
- Result of the DeleteResource operation returned by the service.
- See Also:
-
deleteResource
default DeleteResourceResponse deleteResource(Consumer<DeleteResourceRequest.Builder> deleteResourceRequest) throws AlreadyExistsException, HandlerInternalFailureException, GeneralServiceException, NotUpdatableException, TypeNotFoundException, ConcurrentOperationException, InvalidRequestException, PrivateTypeException, ResourceNotFoundException, NetworkFailureException, UnsupportedActionException, NotStabilizedException, ServiceInternalErrorException, HandlerFailureException, ServiceLimitExceededException, InvalidCredentialsException, ResourceConflictException, ClientTokenConflictException, ThrottlingException, AwsServiceException, SdkClientException, CloudControlException Deletes the specified resource. For details, see Deleting a resource in the Amazon Web Services Cloud Control API User Guide.
After you have initiated a resource deletion request, you can monitor the progress of your request by calling GetResourceRequestStatus using the
RequestToken
of theProgressEvent
returned byDeleteResource
.
This is a convenience which creates an instance of the
DeleteResourceRequest.Builder
avoiding the need to create one manually viaDeleteResourceRequest.builder()
- Parameters:
deleteResourceRequest
- AConsumer
that will call methods onDeleteResourceRequest.Builder
to create a request.- Returns:
- Result of the DeleteResource operation returned by the service.
- See Also:
-
getResource
default GetResourceResponse getResource(GetResourceRequest getResourceRequest) throws AlreadyExistsException, HandlerInternalFailureException, GeneralServiceException, NotUpdatableException, TypeNotFoundException, InvalidRequestException, PrivateTypeException, ResourceNotFoundException, NetworkFailureException, UnsupportedActionException, NotStabilizedException, ServiceInternalErrorException, HandlerFailureException, ServiceLimitExceededException, InvalidCredentialsException, ResourceConflictException, ThrottlingException, AwsServiceException, SdkClientException, CloudControlException Returns information about the current state of the specified resource. For details, see Reading a resource's current state.
You can use this action to return information about an existing resource in your account and Amazon Web Services Region, whether those resources were provisioned using Cloud Control API.
- Parameters:
getResourceRequest
-- Returns:
- Result of the GetResource operation returned by the service.
- See Also:
-
getResource
default GetResourceResponse getResource(Consumer<GetResourceRequest.Builder> getResourceRequest) throws AlreadyExistsException, HandlerInternalFailureException, GeneralServiceException, NotUpdatableException, TypeNotFoundException, InvalidRequestException, PrivateTypeException, ResourceNotFoundException, NetworkFailureException, UnsupportedActionException, NotStabilizedException, ServiceInternalErrorException, HandlerFailureException, ServiceLimitExceededException, InvalidCredentialsException, ResourceConflictException, ThrottlingException, AwsServiceException, SdkClientException, CloudControlException Returns information about the current state of the specified resource. For details, see Reading a resource's current state.
You can use this action to return information about an existing resource in your account and Amazon Web Services Region, whether those resources were provisioned using Cloud Control API.
This is a convenience which creates an instance of the
GetResourceRequest.Builder
avoiding the need to create one manually viaGetResourceRequest.builder()
- Parameters:
getResourceRequest
- AConsumer
that will call methods onGetResourceRequest.Builder
to create a request.- Returns:
- Result of the GetResource operation returned by the service.
- See Also:
-
getResourceRequestStatus
default GetResourceRequestStatusResponse getResourceRequestStatus(GetResourceRequestStatusRequest getResourceRequestStatusRequest) throws RequestTokenNotFoundException, AwsServiceException, SdkClientException, CloudControlException Returns the current status of a resource operation request. For more information, see Tracking the progress of resource operation requests in the Amazon Web Services Cloud Control API User Guide.
- Parameters:
getResourceRequestStatusRequest
-- Returns:
- Result of the GetResourceRequestStatus operation returned by the service.
- See Also:
-
getResourceRequestStatus
default GetResourceRequestStatusResponse getResourceRequestStatus(Consumer<GetResourceRequestStatusRequest.Builder> getResourceRequestStatusRequest) throws RequestTokenNotFoundException, AwsServiceException, SdkClientException, CloudControlException Returns the current status of a resource operation request. For more information, see Tracking the progress of resource operation requests in the Amazon Web Services Cloud Control API User Guide.
This is a convenience which creates an instance of the
GetResourceRequestStatusRequest.Builder
avoiding the need to create one manually viaGetResourceRequestStatusRequest.builder()
- Parameters:
getResourceRequestStatusRequest
- AConsumer
that will call methods onGetResourceRequestStatusRequest.Builder
to create a request.- Returns:
- Result of the GetResourceRequestStatus operation returned by the service.
- See Also:
-
listResourceRequests
default ListResourceRequestsResponse listResourceRequests(ListResourceRequestsRequest listResourceRequestsRequest) throws AwsServiceException, SdkClientException, CloudControlException Returns existing resource operation requests. This includes requests of all status types. For more information, see Listing active resource operation requests in the Amazon Web Services Cloud Control API User Guide.
Resource operation requests expire after 7 days.
- Parameters:
listResourceRequestsRequest
-- Returns:
- Result of the ListResourceRequests operation returned by the service.
- See Also:
-
listResourceRequests
default ListResourceRequestsResponse listResourceRequests(Consumer<ListResourceRequestsRequest.Builder> listResourceRequestsRequest) throws AwsServiceException, SdkClientException, CloudControlException Returns existing resource operation requests. This includes requests of all status types. For more information, see Listing active resource operation requests in the Amazon Web Services Cloud Control API User Guide.
Resource operation requests expire after 7 days.
This is a convenience which creates an instance of the
ListResourceRequestsRequest.Builder
avoiding the need to create one manually viaListResourceRequestsRequest.builder()
- Parameters:
listResourceRequestsRequest
- AConsumer
that will call methods onListResourceRequestsRequest.Builder
to create a request.- Returns:
- Result of the ListResourceRequests operation returned by the service.
- See Also:
-
listResourceRequestsPaginator
default ListResourceRequestsIterable listResourceRequestsPaginator(ListResourceRequestsRequest listResourceRequestsRequest) throws AwsServiceException, SdkClientException, CloudControlException Returns existing resource operation requests. This includes requests of all status types. For more information, see Listing active resource operation requests in the Amazon Web Services Cloud Control API User Guide.
Resource operation requests expire after 7 days.
This is a variant of
listResourceRequests(software.amazon.awssdk.services.cloudcontrol.model.ListResourceRequestsRequest)
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 Streamsoftware.amazon.awssdk.services.cloudcontrol.paginators.ListResourceRequestsIterable responses = client.listResourceRequestsPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.cloudcontrol.paginators.ListResourceRequestsIterable responses = client .listResourceRequestsPaginator(request); for (software.amazon.awssdk.services.cloudcontrol.model.ListResourceRequestsResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.cloudcontrol.paginators.ListResourceRequestsIterable responses = client.listResourceRequestsPaginator(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
listResourceRequests(software.amazon.awssdk.services.cloudcontrol.model.ListResourceRequestsRequest)
operation.- Parameters:
listResourceRequestsRequest
-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listResourceRequestsPaginator
default ListResourceRequestsIterable listResourceRequestsPaginator(Consumer<ListResourceRequestsRequest.Builder> listResourceRequestsRequest) throws AwsServiceException, SdkClientException, CloudControlException Returns existing resource operation requests. This includes requests of all status types. For more information, see Listing active resource operation requests in the Amazon Web Services Cloud Control API User Guide.
Resource operation requests expire after 7 days.
This is a variant of
listResourceRequests(software.amazon.awssdk.services.cloudcontrol.model.ListResourceRequestsRequest)
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 Streamsoftware.amazon.awssdk.services.cloudcontrol.paginators.ListResourceRequestsIterable responses = client.listResourceRequestsPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.cloudcontrol.paginators.ListResourceRequestsIterable responses = client .listResourceRequestsPaginator(request); for (software.amazon.awssdk.services.cloudcontrol.model.ListResourceRequestsResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.cloudcontrol.paginators.ListResourceRequestsIterable responses = client.listResourceRequestsPaginator(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
listResourceRequests(software.amazon.awssdk.services.cloudcontrol.model.ListResourceRequestsRequest)
operation.This is a convenience which creates an instance of the
ListResourceRequestsRequest.Builder
avoiding the need to create one manually viaListResourceRequestsRequest.builder()
- Parameters:
listResourceRequestsRequest
- AConsumer
that will call methods onListResourceRequestsRequest.Builder
to create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listResources
default ListResourcesResponse listResources(ListResourcesRequest listResourcesRequest) throws AlreadyExistsException, HandlerInternalFailureException, GeneralServiceException, NotUpdatableException, TypeNotFoundException, InvalidRequestException, PrivateTypeException, ResourceNotFoundException, NetworkFailureException, UnsupportedActionException, NotStabilizedException, ServiceInternalErrorException, HandlerFailureException, ServiceLimitExceededException, InvalidCredentialsException, ResourceConflictException, ThrottlingException, AwsServiceException, SdkClientException, CloudControlException Returns information about the specified resources. For more information, see Discovering resources in the Amazon Web Services Cloud Control API User Guide.
You can use this action to return information about existing resources in your account and Amazon Web Services Region, whether those resources were provisioned using Cloud Control API.
- Parameters:
listResourcesRequest
-- Returns:
- Result of the ListResources operation returned by the service.
- See Also:
-
listResources
default ListResourcesResponse listResources(Consumer<ListResourcesRequest.Builder> listResourcesRequest) throws AlreadyExistsException, HandlerInternalFailureException, GeneralServiceException, NotUpdatableException, TypeNotFoundException, InvalidRequestException, PrivateTypeException, ResourceNotFoundException, NetworkFailureException, UnsupportedActionException, NotStabilizedException, ServiceInternalErrorException, HandlerFailureException, ServiceLimitExceededException, InvalidCredentialsException, ResourceConflictException, ThrottlingException, AwsServiceException, SdkClientException, CloudControlException Returns information about the specified resources. For more information, see Discovering resources in the Amazon Web Services Cloud Control API User Guide.
You can use this action to return information about existing resources in your account and Amazon Web Services Region, whether those resources were provisioned using Cloud Control API.
This is a convenience which creates an instance of the
ListResourcesRequest.Builder
avoiding the need to create one manually viaListResourcesRequest.builder()
- Parameters:
listResourcesRequest
- AConsumer
that will call methods onListResourcesRequest.Builder
to create a request.- Returns:
- Result of the ListResources operation returned by the service.
- See Also:
-
listResourcesPaginator
default ListResourcesIterable listResourcesPaginator(ListResourcesRequest listResourcesRequest) throws AlreadyExistsException, HandlerInternalFailureException, GeneralServiceException, NotUpdatableException, TypeNotFoundException, InvalidRequestException, PrivateTypeException, ResourceNotFoundException, NetworkFailureException, UnsupportedActionException, NotStabilizedException, ServiceInternalErrorException, HandlerFailureException, ServiceLimitExceededException, InvalidCredentialsException, ResourceConflictException, ThrottlingException, AwsServiceException, SdkClientException, CloudControlException Returns information about the specified resources. For more information, see Discovering resources in the Amazon Web Services Cloud Control API User Guide.
You can use this action to return information about existing resources in your account and Amazon Web Services Region, whether those resources were provisioned using Cloud Control API.
This is a variant of
listResources(software.amazon.awssdk.services.cloudcontrol.model.ListResourcesRequest)
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 Streamsoftware.amazon.awssdk.services.cloudcontrol.paginators.ListResourcesIterable responses = client.listResourcesPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.cloudcontrol.paginators.ListResourcesIterable responses = client .listResourcesPaginator(request); for (software.amazon.awssdk.services.cloudcontrol.model.ListResourcesResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.cloudcontrol.paginators.ListResourcesIterable responses = client.listResourcesPaginator(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
listResources(software.amazon.awssdk.services.cloudcontrol.model.ListResourcesRequest)
operation.- Parameters:
listResourcesRequest
-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listResourcesPaginator
default ListResourcesIterable listResourcesPaginator(Consumer<ListResourcesRequest.Builder> listResourcesRequest) throws AlreadyExistsException, HandlerInternalFailureException, GeneralServiceException, NotUpdatableException, TypeNotFoundException, InvalidRequestException, PrivateTypeException, ResourceNotFoundException, NetworkFailureException, UnsupportedActionException, NotStabilizedException, ServiceInternalErrorException, HandlerFailureException, ServiceLimitExceededException, InvalidCredentialsException, ResourceConflictException, ThrottlingException, AwsServiceException, SdkClientException, CloudControlException Returns information about the specified resources. For more information, see Discovering resources in the Amazon Web Services Cloud Control API User Guide.
You can use this action to return information about existing resources in your account and Amazon Web Services Region, whether those resources were provisioned using Cloud Control API.
This is a variant of
listResources(software.amazon.awssdk.services.cloudcontrol.model.ListResourcesRequest)
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 Streamsoftware.amazon.awssdk.services.cloudcontrol.paginators.ListResourcesIterable responses = client.listResourcesPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.cloudcontrol.paginators.ListResourcesIterable responses = client .listResourcesPaginator(request); for (software.amazon.awssdk.services.cloudcontrol.model.ListResourcesResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.cloudcontrol.paginators.ListResourcesIterable responses = client.listResourcesPaginator(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
listResources(software.amazon.awssdk.services.cloudcontrol.model.ListResourcesRequest)
operation.This is a convenience which creates an instance of the
ListResourcesRequest.Builder
avoiding the need to create one manually viaListResourcesRequest.builder()
- Parameters:
listResourcesRequest
- AConsumer
that will call methods onListResourcesRequest.Builder
to create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
updateResource
default UpdateResourceResponse updateResource(UpdateResourceRequest updateResourceRequest) throws AlreadyExistsException, HandlerInternalFailureException, GeneralServiceException, NotUpdatableException, TypeNotFoundException, ConcurrentOperationException, InvalidRequestException, PrivateTypeException, ResourceNotFoundException, NetworkFailureException, UnsupportedActionException, NotStabilizedException, ServiceInternalErrorException, HandlerFailureException, ServiceLimitExceededException, InvalidCredentialsException, ResourceConflictException, ClientTokenConflictException, ThrottlingException, AwsServiceException, SdkClientException, CloudControlException Updates the specified property values in the resource.
You specify your resource property updates as a list of patch operations contained in a JSON patch document that adheres to the RFC 6902 - JavaScript Object Notation (JSON) Patch standard.
For details on how Cloud Control API performs resource update operations, see Updating a resource in the Amazon Web Services Cloud Control API User Guide.
After you have initiated a resource update request, you can monitor the progress of your request by calling GetResourceRequestStatus using the
RequestToken
of theProgressEvent
returned byUpdateResource
.For more information about the properties of a specific resource, refer to the related topic for the resource in the Resource and property types reference in the CloudFormation Users Guide.
- Parameters:
updateResourceRequest
-- Returns:
- Result of the UpdateResource operation returned by the service.
- See Also:
-
updateResource
default UpdateResourceResponse updateResource(Consumer<UpdateResourceRequest.Builder> updateResourceRequest) throws AlreadyExistsException, HandlerInternalFailureException, GeneralServiceException, NotUpdatableException, TypeNotFoundException, ConcurrentOperationException, InvalidRequestException, PrivateTypeException, ResourceNotFoundException, NetworkFailureException, UnsupportedActionException, NotStabilizedException, ServiceInternalErrorException, HandlerFailureException, ServiceLimitExceededException, InvalidCredentialsException, ResourceConflictException, ClientTokenConflictException, ThrottlingException, AwsServiceException, SdkClientException, CloudControlException Updates the specified property values in the resource.
You specify your resource property updates as a list of patch operations contained in a JSON patch document that adheres to the RFC 6902 - JavaScript Object Notation (JSON) Patch standard.
For details on how Cloud Control API performs resource update operations, see Updating a resource in the Amazon Web Services Cloud Control API User Guide.
After you have initiated a resource update request, you can monitor the progress of your request by calling GetResourceRequestStatus using the
RequestToken
of theProgressEvent
returned byUpdateResource
.For more information about the properties of a specific resource, refer to the related topic for the resource in the Resource and property types reference in the CloudFormation Users Guide.
This is a convenience which creates an instance of the
UpdateResourceRequest.Builder
avoiding the need to create one manually viaUpdateResourceRequest.builder()
- Parameters:
updateResourceRequest
- AConsumer
that will call methods onUpdateResourceRequest.Builder
to create a request.- Returns:
- Result of the UpdateResource operation returned by the service.
- See Also:
-
waiter
Create an instance ofCloudControlWaiter
using 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
CloudControlWaiter
-
create
Create aCloudControlClient
with the region loaded from theDefaultAwsRegionProviderChain
and credentials loaded from theDefaultCredentialsProvider
. -
builder
Create a builder that can be used to configure and create aCloudControlClient
. -
serviceMetadata
-
serviceClientConfiguration
Description copied from interface:SdkClient
The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfiguration- Specified by:
serviceClientConfiguration
in interfaceAwsClient
- Specified by:
serviceClientConfiguration
in interfaceSdkClient
- Returns:
- SdkServiceClientConfiguration
-