Interface CloudExtensionsClient
- All Superinterfaces:
AutoCloseable,AwsClient,SdkAutoCloseable,SdkClient
builder() method.
AWS Cloud Extensions runs extensions on your hosts. An extension is a WebAssembly module that an AWS service publishes, and the Cloud Extensions Runtime runs it on a host and serves it to local clients. Use this API to find released extensions, add them to profiles as profile entries, and configure each entry's version policy, settings, approved capabilities, and authentication. A Cloud Extensions Runtime syncs one profile and runs that profile's entries.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringValue for looking up the service's metadata from theServiceMetadataProvider.static final String -
Method Summary
Modifier and TypeMethodDescriptionstatic CloudExtensionsClientBuilderbuilder()Create a builder that can be used to configure and create aCloudExtensionsClient.static CloudExtensionsClientcreate()Create aCloudExtensionsClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider.default CreateProfileResponsecreateProfile(Consumer<CreateProfileRequest.Builder> createProfileRequest) Creates a new profile.default CreateProfileResponsecreateProfile(CreateProfileRequest createProfileRequest) Creates a new profile.default CreateProfileEntryResponsecreateProfileEntry(Consumer<CreateProfileEntryRequest.Builder> createProfileEntryRequest) Creates a profile entry that binds an extension to a profile.default CreateProfileEntryResponsecreateProfileEntry(CreateProfileEntryRequest createProfileEntryRequest) Creates a profile entry that binds an extension to a profile.default DeleteProfileResponsedeleteProfile(Consumer<DeleteProfileRequest.Builder> deleteProfileRequest) Deletes a profile and its profile entries.default DeleteProfileResponsedeleteProfile(DeleteProfileRequest deleteProfileRequest) Deletes a profile and its profile entries.default DeleteProfileEntryResponsedeleteProfileEntry(Consumer<DeleteProfileEntryRequest.Builder> deleteProfileEntryRequest) Removes a profile entry, unbinding the extension from the profile.default DeleteProfileEntryResponsedeleteProfileEntry(DeleteProfileEntryRequest deleteProfileEntryRequest) Removes a profile entry, unbinding the extension from the profile.default GetExtensionResponsegetExtension(Consumer<GetExtensionRequest.Builder> getExtensionRequest) Retrieves a released extension by its id.default GetExtensionResponsegetExtension(GetExtensionRequest getExtensionRequest) Retrieves a released extension by its id.default GetProfileResponsegetProfile(Consumer<GetProfileRequest.Builder> getProfileRequest) Retrieves a profile by its identifier (id or name).default GetProfileResponsegetProfile(GetProfileRequest getProfileRequest) Retrieves a profile by its identifier (id or name).default GetProfileEntryResponsegetProfileEntry(Consumer<GetProfileEntryRequest.Builder> getProfileEntryRequest) Retrieves a profile entry by its profile identifier and entry identifier.default GetProfileEntryResponsegetProfileEntry(GetProfileEntryRequest getProfileEntryRequest) Retrieves a profile entry by its profile identifier and entry identifier.default ListExtensionsResponselistExtensions(Consumer<ListExtensionsRequest.Builder> listExtensionsRequest) Lists released extensions.default ListExtensionsResponselistExtensions(ListExtensionsRequest listExtensionsRequest) Lists released extensions.default ListExtensionsIterablelistExtensionsPaginator(Consumer<ListExtensionsRequest.Builder> listExtensionsRequest) This is a variant oflistExtensions(software.amazon.awssdk.services.cloudextensions.model.ListExtensionsRequest)operation.default ListExtensionsIterablelistExtensionsPaginator(ListExtensionsRequest listExtensionsRequest) This is a variant oflistExtensions(software.amazon.awssdk.services.cloudextensions.model.ListExtensionsRequest)operation.default ListExtensionVersionsResponselistExtensionVersions(Consumer<ListExtensionVersionsRequest.Builder> listExtensionVersionsRequest) Lists the released versions of an extension, newest first, optionally filtered by a version selector.default ListExtensionVersionsResponselistExtensionVersions(ListExtensionVersionsRequest listExtensionVersionsRequest) Lists the released versions of an extension, newest first, optionally filtered by a version selector.default ListExtensionVersionsIterablelistExtensionVersionsPaginator(Consumer<ListExtensionVersionsRequest.Builder> listExtensionVersionsRequest) This is a variant oflistExtensionVersions(software.amazon.awssdk.services.cloudextensions.model.ListExtensionVersionsRequest)operation.default ListExtensionVersionsIterablelistExtensionVersionsPaginator(ListExtensionVersionsRequest listExtensionVersionsRequest) This is a variant oflistExtensionVersions(software.amazon.awssdk.services.cloudextensions.model.ListExtensionVersionsRequest)operation.default ListProfileEntriesResponselistProfileEntries(Consumer<ListProfileEntriesRequest.Builder> listProfileEntriesRequest) Lists profile entries for a given profile.default ListProfileEntriesResponselistProfileEntries(ListProfileEntriesRequest listProfileEntriesRequest) Lists profile entries for a given profile.default ListProfileEntriesIterablelistProfileEntriesPaginator(Consumer<ListProfileEntriesRequest.Builder> listProfileEntriesRequest) This is a variant oflistProfileEntries(software.amazon.awssdk.services.cloudextensions.model.ListProfileEntriesRequest)operation.default ListProfileEntriesIterablelistProfileEntriesPaginator(ListProfileEntriesRequest listProfileEntriesRequest) This is a variant oflistProfileEntries(software.amazon.awssdk.services.cloudextensions.model.ListProfileEntriesRequest)operation.default ListProfilesResponselistProfiles(Consumer<ListProfilesRequest.Builder> listProfilesRequest) Lists profiles in the account, optionally filtered by name.default ListProfilesResponselistProfiles(ListProfilesRequest listProfilesRequest) Lists profiles in the account, optionally filtered by name.default ListProfilesIterablelistProfilesPaginator(Consumer<ListProfilesRequest.Builder> listProfilesRequest) This is a variant oflistProfiles(software.amazon.awssdk.services.cloudextensions.model.ListProfilesRequest)operation.default ListProfilesIterablelistProfilesPaginator(ListProfilesRequest listProfilesRequest) This is a variant oflistProfiles(software.amazon.awssdk.services.cloudextensions.model.ListProfilesRequest)operation.default ListTagsForResourceResponselistTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) Lists the tags on a profile or profile entry.default ListTagsForResourceResponselistTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) Lists the tags on a profile or profile entry.The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfigurationstatic ServiceMetadatadefault TagResourceResponsetagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) Adds tags to a profile or profile entry.default TagResourceResponsetagResource(TagResourceRequest tagResourceRequest) Adds tags to a profile or profile entry.default UntagResourceResponseuntagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) Removes tags from a profile or profile entry.default UntagResourceResponseuntagResource(UntagResourceRequest untagResourceRequest) Removes tags from a profile or profile entry.default UpdateProfileResponseupdateProfile(Consumer<UpdateProfileRequest.Builder> updateProfileRequest) Updates a profile's mutable properties.default UpdateProfileResponseupdateProfile(UpdateProfileRequest updateProfileRequest) Updates a profile's mutable properties.default UpdateProfileEntryResponseupdateProfileEntry(Consumer<UpdateProfileEntryRequest.Builder> updateProfileEntryRequest) Updates a profile entry's configuration.default UpdateProfileEntryResponseupdateProfileEntry(UpdateProfileEntryRequest updateProfileEntryRequest) Updates a profile entry's configuration.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
-
createProfile
default CreateProfileResponse createProfile(CreateProfileRequest createProfileRequest) throws ServiceQuotaExceededException, InternalServerException, ConflictException, AccessDeniedException, ValidationException, ThrottlingException, AwsServiceException, SdkClientException, CloudExtensionsException Creates a new profile. The profile name must be unique within the account.
- Parameters:
createProfileRequest- The properties for the new profile.- Returns:
- Result of the CreateProfile operation returned by the service.
- See Also:
-
createProfile
default CreateProfileResponse createProfile(Consumer<CreateProfileRequest.Builder> createProfileRequest) throws ServiceQuotaExceededException, InternalServerException, ConflictException, AccessDeniedException, ValidationException, ThrottlingException, AwsServiceException, SdkClientException, CloudExtensionsException Creates a new profile. The profile name must be unique within the account.
This is a convenience which creates an instance of the
CreateProfileRequest.Builderavoiding the need to create one manually viaCreateProfileRequest.builder()- Parameters:
createProfileRequest- AConsumerthat will call methods onCreateProfileRequest.Builderto create a request. The properties for the new profile.- Returns:
- Result of the CreateProfile operation returned by the service.
- See Also:
-
createProfileEntry
default CreateProfileEntryResponse createProfileEntry(CreateProfileEntryRequest createProfileEntryRequest) throws ServiceQuotaExceededException, InternalServerException, ConflictException, AccessDeniedException, ValidationException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, CloudExtensionsException Creates a profile entry that binds an extension to a profile. The extension must exist and the profile must not already have an entry for that extension.
- Parameters:
createProfileEntryRequest- The profile, extension, and configuration for the new entry.- Returns:
- Result of the CreateProfileEntry operation returned by the service.
- See Also:
-
createProfileEntry
default CreateProfileEntryResponse createProfileEntry(Consumer<CreateProfileEntryRequest.Builder> createProfileEntryRequest) throws ServiceQuotaExceededException, InternalServerException, ConflictException, AccessDeniedException, ValidationException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, CloudExtensionsException Creates a profile entry that binds an extension to a profile. The extension must exist and the profile must not already have an entry for that extension.
This is a convenience which creates an instance of the
CreateProfileEntryRequest.Builderavoiding the need to create one manually viaCreateProfileEntryRequest.builder()- Parameters:
createProfileEntryRequest- AConsumerthat will call methods onCreateProfileEntryRequest.Builderto create a request. The profile, extension, and configuration for the new entry.- Returns:
- Result of the CreateProfileEntry operation returned by the service.
- See Also:
-
deleteProfile
default DeleteProfileResponse deleteProfile(DeleteProfileRequest deleteProfileRequest) throws InternalServerException, ConflictException, AccessDeniedException, ValidationException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, CloudExtensionsException Deletes a profile and its profile entries.
- Parameters:
deleteProfileRequest- Identifies the profile to delete.- Returns:
- Result of the DeleteProfile operation returned by the service.
- See Also:
-
deleteProfile
default DeleteProfileResponse deleteProfile(Consumer<DeleteProfileRequest.Builder> deleteProfileRequest) throws InternalServerException, ConflictException, AccessDeniedException, ValidationException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, CloudExtensionsException Deletes a profile and its profile entries.
This is a convenience which creates an instance of the
DeleteProfileRequest.Builderavoiding the need to create one manually viaDeleteProfileRequest.builder()- Parameters:
deleteProfileRequest- AConsumerthat will call methods onDeleteProfileRequest.Builderto create a request. Identifies the profile to delete.- Returns:
- Result of the DeleteProfile operation returned by the service.
- See Also:
-
deleteProfileEntry
default DeleteProfileEntryResponse deleteProfileEntry(DeleteProfileEntryRequest deleteProfileEntryRequest) throws InternalServerException, ConflictException, AccessDeniedException, ValidationException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, CloudExtensionsException Removes a profile entry, unbinding the extension from the profile.
- Parameters:
deleteProfileEntryRequest- Identifies the profile entry to delete.- Returns:
- Result of the DeleteProfileEntry operation returned by the service.
- See Also:
-
deleteProfileEntry
default DeleteProfileEntryResponse deleteProfileEntry(Consumer<DeleteProfileEntryRequest.Builder> deleteProfileEntryRequest) throws InternalServerException, ConflictException, AccessDeniedException, ValidationException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, CloudExtensionsException Removes a profile entry, unbinding the extension from the profile.
This is a convenience which creates an instance of the
DeleteProfileEntryRequest.Builderavoiding the need to create one manually viaDeleteProfileEntryRequest.builder()- Parameters:
deleteProfileEntryRequest- AConsumerthat will call methods onDeleteProfileEntryRequest.Builderto create a request. Identifies the profile entry to delete.- Returns:
- Result of the DeleteProfileEntry operation returned by the service.
- See Also:
-
getExtension
default GetExtensionResponse getExtension(GetExtensionRequest getExtensionRequest) throws InternalServerException, AccessDeniedException, ValidationException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, CloudExtensionsException Retrieves a released extension by its id. By default returns the latest version; use the version parameter to retrieve a specific release.
- Parameters:
getExtensionRequest- Identifies the extension and optionally a specific version to retrieve.- Returns:
- Result of the GetExtension operation returned by the service.
- See Also:
-
getExtension
default GetExtensionResponse getExtension(Consumer<GetExtensionRequest.Builder> getExtensionRequest) throws InternalServerException, AccessDeniedException, ValidationException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, CloudExtensionsException Retrieves a released extension by its id. By default returns the latest version; use the version parameter to retrieve a specific release.
This is a convenience which creates an instance of the
GetExtensionRequest.Builderavoiding the need to create one manually viaGetExtensionRequest.builder()- Parameters:
getExtensionRequest- AConsumerthat will call methods onGetExtensionRequest.Builderto create a request. Identifies the extension and optionally a specific version to retrieve.- Returns:
- Result of the GetExtension operation returned by the service.
- See Also:
-
getProfile
default GetProfileResponse getProfile(GetProfileRequest getProfileRequest) throws InternalServerException, AccessDeniedException, ValidationException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, CloudExtensionsException Retrieves a profile by its identifier (id or name).
- Parameters:
getProfileRequest- Identifies the profile to retrieve.- Returns:
- Result of the GetProfile operation returned by the service.
- See Also:
-
getProfile
default GetProfileResponse getProfile(Consumer<GetProfileRequest.Builder> getProfileRequest) throws InternalServerException, AccessDeniedException, ValidationException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, CloudExtensionsException Retrieves a profile by its identifier (id or name).
This is a convenience which creates an instance of the
GetProfileRequest.Builderavoiding the need to create one manually viaGetProfileRequest.builder()- Parameters:
getProfileRequest- AConsumerthat will call methods onGetProfileRequest.Builderto create a request. Identifies the profile to retrieve.- Returns:
- Result of the GetProfile operation returned by the service.
- See Also:
-
getProfileEntry
default GetProfileEntryResponse getProfileEntry(GetProfileEntryRequest getProfileEntryRequest) throws InternalServerException, AccessDeniedException, ValidationException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, CloudExtensionsException Retrieves a profile entry by its profile identifier and entry identifier.
- Parameters:
getProfileEntryRequest- Identifies the profile entry to retrieve.- Returns:
- Result of the GetProfileEntry operation returned by the service.
- See Also:
-
getProfileEntry
default GetProfileEntryResponse getProfileEntry(Consumer<GetProfileEntryRequest.Builder> getProfileEntryRequest) throws InternalServerException, AccessDeniedException, ValidationException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, CloudExtensionsException Retrieves a profile entry by its profile identifier and entry identifier.
This is a convenience which creates an instance of the
GetProfileEntryRequest.Builderavoiding the need to create one manually viaGetProfileEntryRequest.builder()- Parameters:
getProfileEntryRequest- AConsumerthat will call methods onGetProfileEntryRequest.Builderto create a request. Identifies the profile entry to retrieve.- Returns:
- Result of the GetProfileEntry operation returned by the service.
- See Also:
-
listExtensionVersions
default ListExtensionVersionsResponse listExtensionVersions(ListExtensionVersionsRequest listExtensionVersionsRequest) throws InternalServerException, AccessDeniedException, ValidationException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, CloudExtensionsException Lists the released versions of an extension, newest first, optionally filtered by a version selector.
- Parameters:
listExtensionVersionsRequest- The extension whose versions to list, with an optional filter and pagination parameters.- Returns:
- Result of the ListExtensionVersions operation returned by the service.
- See Also:
-
listExtensionVersions
default ListExtensionVersionsResponse listExtensionVersions(Consumer<ListExtensionVersionsRequest.Builder> listExtensionVersionsRequest) throws InternalServerException, AccessDeniedException, ValidationException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, CloudExtensionsException Lists the released versions of an extension, newest first, optionally filtered by a version selector.
This is a convenience which creates an instance of the
ListExtensionVersionsRequest.Builderavoiding the need to create one manually viaListExtensionVersionsRequest.builder()- Parameters:
listExtensionVersionsRequest- AConsumerthat will call methods onListExtensionVersionsRequest.Builderto create a request. The extension whose versions to list, with an optional filter and pagination parameters.- Returns:
- Result of the ListExtensionVersions operation returned by the service.
- See Also:
-
listExtensionVersionsPaginator
default ListExtensionVersionsIterable listExtensionVersionsPaginator(ListExtensionVersionsRequest listExtensionVersionsRequest) throws InternalServerException, AccessDeniedException, ValidationException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, CloudExtensionsException This is a variant of
listExtensionVersions(software.amazon.awssdk.services.cloudextensions.model.ListExtensionVersionsRequest)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.cloudextensions.paginators.ListExtensionVersionsIterable responses = client.listExtensionVersionsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.cloudextensions.paginators.ListExtensionVersionsIterable responses = client .listExtensionVersionsPaginator(request); for (software.amazon.awssdk.services.cloudextensions.model.ListExtensionVersionsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.cloudextensions.paginators.ListExtensionVersionsIterable responses = client.listExtensionVersionsPaginator(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
listExtensionVersions(software.amazon.awssdk.services.cloudextensions.model.ListExtensionVersionsRequest)operation.- Parameters:
listExtensionVersionsRequest- The extension whose versions to list, with an optional filter and pagination parameters.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listExtensionVersionsPaginator
default ListExtensionVersionsIterable listExtensionVersionsPaginator(Consumer<ListExtensionVersionsRequest.Builder> listExtensionVersionsRequest) throws InternalServerException, AccessDeniedException, ValidationException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, CloudExtensionsException This is a variant of
listExtensionVersions(software.amazon.awssdk.services.cloudextensions.model.ListExtensionVersionsRequest)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.cloudextensions.paginators.ListExtensionVersionsIterable responses = client.listExtensionVersionsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.cloudextensions.paginators.ListExtensionVersionsIterable responses = client .listExtensionVersionsPaginator(request); for (software.amazon.awssdk.services.cloudextensions.model.ListExtensionVersionsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.cloudextensions.paginators.ListExtensionVersionsIterable responses = client.listExtensionVersionsPaginator(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
listExtensionVersions(software.amazon.awssdk.services.cloudextensions.model.ListExtensionVersionsRequest)operation.
This is a convenience which creates an instance of the
ListExtensionVersionsRequest.Builderavoiding the need to create one manually viaListExtensionVersionsRequest.builder()- Parameters:
listExtensionVersionsRequest- AConsumerthat will call methods onListExtensionVersionsRequest.Builderto create a request. The extension whose versions to list, with an optional filter and pagination parameters.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listExtensions
default ListExtensionsResponse listExtensions(ListExtensionsRequest listExtensionsRequest) throws InternalServerException, AccessDeniedException, ValidationException, ThrottlingException, AwsServiceException, SdkClientException, CloudExtensionsException Lists released extensions. Returns the latest version of each extension.
- Parameters:
listExtensionsRequest- Pagination parameters.- Returns:
- Result of the ListExtensions operation returned by the service.
- See Also:
-
listExtensions
default ListExtensionsResponse listExtensions(Consumer<ListExtensionsRequest.Builder> listExtensionsRequest) throws InternalServerException, AccessDeniedException, ValidationException, ThrottlingException, AwsServiceException, SdkClientException, CloudExtensionsException Lists released extensions. Returns the latest version of each extension.
This is a convenience which creates an instance of the
ListExtensionsRequest.Builderavoiding the need to create one manually viaListExtensionsRequest.builder()- Parameters:
listExtensionsRequest- AConsumerthat will call methods onListExtensionsRequest.Builderto create a request. Pagination parameters.- Returns:
- Result of the ListExtensions operation returned by the service.
- See Also:
-
listExtensionsPaginator
default ListExtensionsIterable listExtensionsPaginator(ListExtensionsRequest listExtensionsRequest) throws InternalServerException, AccessDeniedException, ValidationException, ThrottlingException, AwsServiceException, SdkClientException, CloudExtensionsException This is a variant of
listExtensions(software.amazon.awssdk.services.cloudextensions.model.ListExtensionsRequest)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.cloudextensions.paginators.ListExtensionsIterable responses = client.listExtensionsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.cloudextensions.paginators.ListExtensionsIterable responses = client .listExtensionsPaginator(request); for (software.amazon.awssdk.services.cloudextensions.model.ListExtensionsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.cloudextensions.paginators.ListExtensionsIterable responses = client.listExtensionsPaginator(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
listExtensions(software.amazon.awssdk.services.cloudextensions.model.ListExtensionsRequest)operation.- Parameters:
listExtensionsRequest- Pagination parameters.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listExtensionsPaginator
default ListExtensionsIterable listExtensionsPaginator(Consumer<ListExtensionsRequest.Builder> listExtensionsRequest) throws InternalServerException, AccessDeniedException, ValidationException, ThrottlingException, AwsServiceException, SdkClientException, CloudExtensionsException This is a variant of
listExtensions(software.amazon.awssdk.services.cloudextensions.model.ListExtensionsRequest)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.cloudextensions.paginators.ListExtensionsIterable responses = client.listExtensionsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.cloudextensions.paginators.ListExtensionsIterable responses = client .listExtensionsPaginator(request); for (software.amazon.awssdk.services.cloudextensions.model.ListExtensionsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.cloudextensions.paginators.ListExtensionsIterable responses = client.listExtensionsPaginator(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
listExtensions(software.amazon.awssdk.services.cloudextensions.model.ListExtensionsRequest)operation.
This is a convenience which creates an instance of the
ListExtensionsRequest.Builderavoiding the need to create one manually viaListExtensionsRequest.builder()- Parameters:
listExtensionsRequest- AConsumerthat will call methods onListExtensionsRequest.Builderto create a request. Pagination parameters.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listProfileEntries
default ListProfileEntriesResponse listProfileEntries(ListProfileEntriesRequest listProfileEntriesRequest) throws InternalServerException, AccessDeniedException, ValidationException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, CloudExtensionsException Lists profile entries for a given profile.
- Parameters:
listProfileEntriesRequest- The profile whose entries to list, with pagination parameters.- Returns:
- Result of the ListProfileEntries operation returned by the service.
- See Also:
-
listProfileEntries
default ListProfileEntriesResponse listProfileEntries(Consumer<ListProfileEntriesRequest.Builder> listProfileEntriesRequest) throws InternalServerException, AccessDeniedException, ValidationException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, CloudExtensionsException Lists profile entries for a given profile.
This is a convenience which creates an instance of the
ListProfileEntriesRequest.Builderavoiding the need to create one manually viaListProfileEntriesRequest.builder()- Parameters:
listProfileEntriesRequest- AConsumerthat will call methods onListProfileEntriesRequest.Builderto create a request. The profile whose entries to list, with pagination parameters.- Returns:
- Result of the ListProfileEntries operation returned by the service.
- See Also:
-
listProfileEntriesPaginator
default ListProfileEntriesIterable listProfileEntriesPaginator(ListProfileEntriesRequest listProfileEntriesRequest) throws InternalServerException, AccessDeniedException, ValidationException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, CloudExtensionsException This is a variant of
listProfileEntries(software.amazon.awssdk.services.cloudextensions.model.ListProfileEntriesRequest)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.cloudextensions.paginators.ListProfileEntriesIterable responses = client.listProfileEntriesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.cloudextensions.paginators.ListProfileEntriesIterable responses = client .listProfileEntriesPaginator(request); for (software.amazon.awssdk.services.cloudextensions.model.ListProfileEntriesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.cloudextensions.paginators.ListProfileEntriesIterable responses = client.listProfileEntriesPaginator(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
listProfileEntries(software.amazon.awssdk.services.cloudextensions.model.ListProfileEntriesRequest)operation.- Parameters:
listProfileEntriesRequest- The profile whose entries to list, with pagination parameters.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listProfileEntriesPaginator
default ListProfileEntriesIterable listProfileEntriesPaginator(Consumer<ListProfileEntriesRequest.Builder> listProfileEntriesRequest) throws InternalServerException, AccessDeniedException, ValidationException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, CloudExtensionsException This is a variant of
listProfileEntries(software.amazon.awssdk.services.cloudextensions.model.ListProfileEntriesRequest)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.cloudextensions.paginators.ListProfileEntriesIterable responses = client.listProfileEntriesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.cloudextensions.paginators.ListProfileEntriesIterable responses = client .listProfileEntriesPaginator(request); for (software.amazon.awssdk.services.cloudextensions.model.ListProfileEntriesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.cloudextensions.paginators.ListProfileEntriesIterable responses = client.listProfileEntriesPaginator(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
listProfileEntries(software.amazon.awssdk.services.cloudextensions.model.ListProfileEntriesRequest)operation.
This is a convenience which creates an instance of the
ListProfileEntriesRequest.Builderavoiding the need to create one manually viaListProfileEntriesRequest.builder()- Parameters:
listProfileEntriesRequest- AConsumerthat will call methods onListProfileEntriesRequest.Builderto create a request. The profile whose entries to list, with pagination parameters.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listProfiles
default ListProfilesResponse listProfiles(ListProfilesRequest listProfilesRequest) throws InternalServerException, AccessDeniedException, ValidationException, ThrottlingException, AwsServiceException, SdkClientException, CloudExtensionsException Lists profiles in the account, optionally filtered by name.
- Parameters:
listProfilesRequest- Optional filters and pagination parameters.- Returns:
- Result of the ListProfiles operation returned by the service.
- See Also:
-
listProfiles
default ListProfilesResponse listProfiles(Consumer<ListProfilesRequest.Builder> listProfilesRequest) throws InternalServerException, AccessDeniedException, ValidationException, ThrottlingException, AwsServiceException, SdkClientException, CloudExtensionsException Lists profiles in the account, optionally filtered by name.
This is a convenience which creates an instance of the
ListProfilesRequest.Builderavoiding the need to create one manually viaListProfilesRequest.builder()- Parameters:
listProfilesRequest- AConsumerthat will call methods onListProfilesRequest.Builderto create a request. Optional filters and pagination parameters.- Returns:
- Result of the ListProfiles operation returned by the service.
- See Also:
-
listProfilesPaginator
default ListProfilesIterable listProfilesPaginator(ListProfilesRequest listProfilesRequest) throws InternalServerException, AccessDeniedException, ValidationException, ThrottlingException, AwsServiceException, SdkClientException, CloudExtensionsException This is a variant of
listProfiles(software.amazon.awssdk.services.cloudextensions.model.ListProfilesRequest)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.cloudextensions.paginators.ListProfilesIterable responses = client.listProfilesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.cloudextensions.paginators.ListProfilesIterable responses = client .listProfilesPaginator(request); for (software.amazon.awssdk.services.cloudextensions.model.ListProfilesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.cloudextensions.paginators.ListProfilesIterable responses = client.listProfilesPaginator(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
listProfiles(software.amazon.awssdk.services.cloudextensions.model.ListProfilesRequest)operation.- Parameters:
listProfilesRequest- Optional filters and pagination parameters.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listProfilesPaginator
default ListProfilesIterable listProfilesPaginator(Consumer<ListProfilesRequest.Builder> listProfilesRequest) throws InternalServerException, AccessDeniedException, ValidationException, ThrottlingException, AwsServiceException, SdkClientException, CloudExtensionsException This is a variant of
listProfiles(software.amazon.awssdk.services.cloudextensions.model.ListProfilesRequest)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.cloudextensions.paginators.ListProfilesIterable responses = client.listProfilesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.cloudextensions.paginators.ListProfilesIterable responses = client .listProfilesPaginator(request); for (software.amazon.awssdk.services.cloudextensions.model.ListProfilesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.cloudextensions.paginators.ListProfilesIterable responses = client.listProfilesPaginator(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
listProfiles(software.amazon.awssdk.services.cloudextensions.model.ListProfilesRequest)operation.
This is a convenience which creates an instance of the
ListProfilesRequest.Builderavoiding the need to create one manually viaListProfilesRequest.builder()- Parameters:
listProfilesRequest- AConsumerthat will call methods onListProfilesRequest.Builderto create a request. Optional filters and pagination parameters.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listTagsForResource
default ListTagsForResourceResponse listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) throws InternalServerException, AccessDeniedException, ValidationException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, CloudExtensionsException Lists the tags on a profile or profile entry.
- Parameters:
listTagsForResourceRequest-- Returns:
- Result of the ListTagsForResource operation returned by the service.
- See Also:
-
listTagsForResource
default ListTagsForResourceResponse listTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) throws InternalServerException, AccessDeniedException, ValidationException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, CloudExtensionsException Lists the tags on a profile or profile entry.
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 InternalServerException, AccessDeniedException, ValidationException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, CloudExtensionsException Adds tags to a profile or profile entry. A tag whose key the resource already has replaces that tag's value.
- Parameters:
tagResourceRequest-- Returns:
- Result of the TagResource operation returned by the service.
- See Also:
-
tagResource
default TagResourceResponse tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) throws InternalServerException, AccessDeniedException, ValidationException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, CloudExtensionsException Adds tags to a profile or profile entry. A tag whose key the resource already has replaces that tag's value.
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 InternalServerException, AccessDeniedException, ValidationException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, CloudExtensionsException Removes tags from a profile or profile entry.
- Parameters:
untagResourceRequest-- Returns:
- Result of the UntagResource operation returned by the service.
- See Also:
-
untagResource
default UntagResourceResponse untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) throws InternalServerException, AccessDeniedException, ValidationException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, CloudExtensionsException Removes tags from a profile or profile entry.
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:
-
updateProfile
default UpdateProfileResponse updateProfile(UpdateProfileRequest updateProfileRequest) throws InternalServerException, ConflictException, AccessDeniedException, ValidationException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, CloudExtensionsException Updates a profile's mutable properties. Only provided fields are changed; omitted fields remain unchanged.
- Parameters:
updateProfileRequest- The identifier of the profile to update and the fields to change.- Returns:
- Result of the UpdateProfile operation returned by the service.
- See Also:
-
updateProfile
default UpdateProfileResponse updateProfile(Consumer<UpdateProfileRequest.Builder> updateProfileRequest) throws InternalServerException, ConflictException, AccessDeniedException, ValidationException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, CloudExtensionsException Updates a profile's mutable properties. Only provided fields are changed; omitted fields remain unchanged.
This is a convenience which creates an instance of the
UpdateProfileRequest.Builderavoiding the need to create one manually viaUpdateProfileRequest.builder()- Parameters:
updateProfileRequest- AConsumerthat will call methods onUpdateProfileRequest.Builderto create a request. The identifier of the profile to update and the fields to change.- Returns:
- Result of the UpdateProfile operation returned by the service.
- See Also:
-
updateProfileEntry
default UpdateProfileEntryResponse updateProfileEntry(UpdateProfileEntryRequest updateProfileEntryRequest) throws InternalServerException, ConflictException, AccessDeniedException, ValidationException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, CloudExtensionsException Updates a profile entry's configuration. Only provided fields are changed; omitted fields remain unchanged.
- Parameters:
updateProfileEntryRequest- The identifier of the profile entry to update and the fields to change.- Returns:
- Result of the UpdateProfileEntry operation returned by the service.
- See Also:
-
updateProfileEntry
default UpdateProfileEntryResponse updateProfileEntry(Consumer<UpdateProfileEntryRequest.Builder> updateProfileEntryRequest) throws InternalServerException, ConflictException, AccessDeniedException, ValidationException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, CloudExtensionsException Updates a profile entry's configuration. Only provided fields are changed; omitted fields remain unchanged.
This is a convenience which creates an instance of the
UpdateProfileEntryRequest.Builderavoiding the need to create one manually viaUpdateProfileEntryRequest.builder()- Parameters:
updateProfileEntryRequest- AConsumerthat will call methods onUpdateProfileEntryRequest.Builderto create a request. The identifier of the profile entry to update and the fields to change.- Returns:
- Result of the UpdateProfileEntry operation returned by the service.
- See Also:
-
create
Create aCloudExtensionsClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider. -
builder
Create a builder that can be used to configure and create aCloudExtensionsClient. -
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
-