@Generated(value="software.amazon.awssdk:codegen") @ThreadSafe public interface ImagebuilderAsyncClient extends SdkClient
builder()
method.
EC2 Image Builder is a fully managed Amazon Web Services service that makes it easier to automate the creation, management, and deployment of customized, secure, and up-to-date "golden" server images that are pre-installed and pre-configured with software and settings to meet specific IT standards.
| Modifier and Type | Field and Description |
|---|---|
static String |
SERVICE_METADATA_ID
Value for looking up the service's metadata from the
ServiceMetadataProvider. |
static String |
SERVICE_NAME |
serviceNameclosestatic final String SERVICE_NAME
static final String SERVICE_METADATA_ID
ServiceMetadataProvider.static ImagebuilderAsyncClient create()
ImagebuilderAsyncClient with the region loaded from the
DefaultAwsRegionProviderChain and credentials loaded from the
DefaultCredentialsProvider.static ImagebuilderAsyncClientBuilder builder()
ImagebuilderAsyncClient.default CompletableFuture<CancelImageCreationResponse> cancelImageCreation(CancelImageCreationRequest cancelImageCreationRequest)
CancelImageCreation cancels the creation of Image. This operation can only be used on images in a non-terminal state.
cancelImageCreationRequest - default CompletableFuture<CancelImageCreationResponse> cancelImageCreation(Consumer<CancelImageCreationRequest.Builder> cancelImageCreationRequest)
CancelImageCreation cancels the creation of Image. This operation can only be used on images in a non-terminal state.
This is a convenience which creates an instance of the CancelImageCreationRequest.Builder avoiding the
need to create one manually via CancelImageCreationRequest.builder()
cancelImageCreationRequest - A Consumer that will call methods on CancelImageCreationRequest.Builder to create a
request.default CompletableFuture<CreateComponentResponse> createComponent(CreateComponentRequest createComponentRequest)
Creates a new component that can be used to build, validate, test, and assess your image. The component is based on a YAML document that you specify using exactly one of the following methods:
Inline, using the data property in the request body.
A URL that points to a YAML document file stored in Amazon S3, using the uri property in the request
body.
createComponentRequest - default CompletableFuture<CreateComponentResponse> createComponent(Consumer<CreateComponentRequest.Builder> createComponentRequest)
Creates a new component that can be used to build, validate, test, and assess your image. The component is based on a YAML document that you specify using exactly one of the following methods:
Inline, using the data property in the request body.
A URL that points to a YAML document file stored in Amazon S3, using the uri property in the request
body.
This is a convenience which creates an instance of the CreateComponentRequest.Builder avoiding the need
to create one manually via CreateComponentRequest.builder()
createComponentRequest - A Consumer that will call methods on CreateComponentRequest.Builder to create a request.default CompletableFuture<CreateContainerRecipeResponse> createContainerRecipe(CreateContainerRecipeRequest createContainerRecipeRequest)
Creates a new container recipe. Container recipes define how images are configured, tested, and assessed.
createContainerRecipeRequest - default CompletableFuture<CreateContainerRecipeResponse> createContainerRecipe(Consumer<CreateContainerRecipeRequest.Builder> createContainerRecipeRequest)
Creates a new container recipe. Container recipes define how images are configured, tested, and assessed.
This is a convenience which creates an instance of the CreateContainerRecipeRequest.Builder avoiding the
need to create one manually via CreateContainerRecipeRequest.builder()
createContainerRecipeRequest - A Consumer that will call methods on CreateContainerRecipeRequest.Builder to create a
request.default CompletableFuture<CreateDistributionConfigurationResponse> createDistributionConfiguration(CreateDistributionConfigurationRequest createDistributionConfigurationRequest)
Creates a new distribution configuration. Distribution configurations define and configure the outputs of your pipeline.
createDistributionConfigurationRequest - default CompletableFuture<CreateDistributionConfigurationResponse> createDistributionConfiguration(Consumer<CreateDistributionConfigurationRequest.Builder> createDistributionConfigurationRequest)
Creates a new distribution configuration. Distribution configurations define and configure the outputs of your pipeline.
This is a convenience which creates an instance of the CreateDistributionConfigurationRequest.Builder
avoiding the need to create one manually via CreateDistributionConfigurationRequest.builder()
createDistributionConfigurationRequest - A Consumer that will call methods on CreateDistributionConfigurationRequest.Builder to
create a request.default CompletableFuture<CreateImageResponse> createImage(CreateImageRequest createImageRequest)
Creates a new image. This request will create a new image along with all of the configured output resources defined in the distribution configuration. You must specify exactly one recipe for your image, using either a ContainerRecipeArn or an ImageRecipeArn.
createImageRequest - default CompletableFuture<CreateImageResponse> createImage(Consumer<CreateImageRequest.Builder> createImageRequest)
Creates a new image. This request will create a new image along with all of the configured output resources defined in the distribution configuration. You must specify exactly one recipe for your image, using either a ContainerRecipeArn or an ImageRecipeArn.
This is a convenience which creates an instance of the CreateImageRequest.Builder avoiding the need to
create one manually via CreateImageRequest.builder()
createImageRequest - A Consumer that will call methods on CreateImageRequest.Builder to create a request.default CompletableFuture<CreateImagePipelineResponse> createImagePipeline(CreateImagePipelineRequest createImagePipelineRequest)
Creates a new image pipeline. Image pipelines enable you to automate the creation and distribution of images.
createImagePipelineRequest - default CompletableFuture<CreateImagePipelineResponse> createImagePipeline(Consumer<CreateImagePipelineRequest.Builder> createImagePipelineRequest)
Creates a new image pipeline. Image pipelines enable you to automate the creation and distribution of images.
This is a convenience which creates an instance of the CreateImagePipelineRequest.Builder avoiding the
need to create one manually via CreateImagePipelineRequest.builder()
createImagePipelineRequest - A Consumer that will call methods on CreateImagePipelineRequest.Builder to create a
request.default CompletableFuture<CreateImageRecipeResponse> createImageRecipe(CreateImageRecipeRequest createImageRecipeRequest)
Creates a new image recipe. Image recipes define how images are configured, tested, and assessed.
createImageRecipeRequest - default CompletableFuture<CreateImageRecipeResponse> createImageRecipe(Consumer<CreateImageRecipeRequest.Builder> createImageRecipeRequest)
Creates a new image recipe. Image recipes define how images are configured, tested, and assessed.
This is a convenience which creates an instance of the CreateImageRecipeRequest.Builder avoiding the need
to create one manually via CreateImageRecipeRequest.builder()
createImageRecipeRequest - A Consumer that will call methods on CreateImageRecipeRequest.Builder to create a request.default CompletableFuture<CreateInfrastructureConfigurationResponse> createInfrastructureConfiguration(CreateInfrastructureConfigurationRequest createInfrastructureConfigurationRequest)
Creates a new infrastructure configuration. An infrastructure configuration defines the environment in which your image will be built and tested.
createInfrastructureConfigurationRequest - default CompletableFuture<CreateInfrastructureConfigurationResponse> createInfrastructureConfiguration(Consumer<CreateInfrastructureConfigurationRequest.Builder> createInfrastructureConfigurationRequest)
Creates a new infrastructure configuration. An infrastructure configuration defines the environment in which your image will be built and tested.
This is a convenience which creates an instance of the CreateInfrastructureConfigurationRequest.Builder
avoiding the need to create one manually via CreateInfrastructureConfigurationRequest.builder()
createInfrastructureConfigurationRequest - A Consumer that will call methods on CreateInfrastructureConfigurationRequest.Builder to
create a request.default CompletableFuture<DeleteComponentResponse> deleteComponent(DeleteComponentRequest deleteComponentRequest)
Deletes a component build version.
deleteComponentRequest - default CompletableFuture<DeleteComponentResponse> deleteComponent(Consumer<DeleteComponentRequest.Builder> deleteComponentRequest)
Deletes a component build version.
This is a convenience which creates an instance of the DeleteComponentRequest.Builder avoiding the need
to create one manually via DeleteComponentRequest.builder()
deleteComponentRequest - A Consumer that will call methods on DeleteComponentRequest.Builder to create a request.default CompletableFuture<DeleteContainerRecipeResponse> deleteContainerRecipe(DeleteContainerRecipeRequest deleteContainerRecipeRequest)
Deletes a container recipe.
deleteContainerRecipeRequest - default CompletableFuture<DeleteContainerRecipeResponse> deleteContainerRecipe(Consumer<DeleteContainerRecipeRequest.Builder> deleteContainerRecipeRequest)
Deletes a container recipe.
This is a convenience which creates an instance of the DeleteContainerRecipeRequest.Builder avoiding the
need to create one manually via DeleteContainerRecipeRequest.builder()
deleteContainerRecipeRequest - A Consumer that will call methods on DeleteContainerRecipeRequest.Builder to create a
request.default CompletableFuture<DeleteDistributionConfigurationResponse> deleteDistributionConfiguration(DeleteDistributionConfigurationRequest deleteDistributionConfigurationRequest)
Deletes a distribution configuration.
deleteDistributionConfigurationRequest - default CompletableFuture<DeleteDistributionConfigurationResponse> deleteDistributionConfiguration(Consumer<DeleteDistributionConfigurationRequest.Builder> deleteDistributionConfigurationRequest)
Deletes a distribution configuration.
This is a convenience which creates an instance of the DeleteDistributionConfigurationRequest.Builder
avoiding the need to create one manually via DeleteDistributionConfigurationRequest.builder()
deleteDistributionConfigurationRequest - A Consumer that will call methods on DeleteDistributionConfigurationRequest.Builder to
create a request.default CompletableFuture<DeleteImageResponse> deleteImage(DeleteImageRequest deleteImageRequest)
Deletes an Image Builder image resource. This does not delete any EC2 AMIs or ECR container images that are created during the image build process. You must clean those up separately, using the appropriate Amazon EC2 or Amazon ECR console actions, or API or CLI commands.
To deregister an EC2 Linux AMI, see Deregister your Linux AMI in the Amazon EC2 User Guide .
To deregister an EC2 Windows AMI, see Deregister your Windows AMI in the Amazon EC2 Windows Guide .
To delete a container image from Amazon ECR, see Deleting an image in the Amazon ECR User Guide.
deleteImageRequest - default CompletableFuture<DeleteImageResponse> deleteImage(Consumer<DeleteImageRequest.Builder> deleteImageRequest)
Deletes an Image Builder image resource. This does not delete any EC2 AMIs or ECR container images that are created during the image build process. You must clean those up separately, using the appropriate Amazon EC2 or Amazon ECR console actions, or API or CLI commands.
To deregister an EC2 Linux AMI, see Deregister your Linux AMI in the Amazon EC2 User Guide .
To deregister an EC2 Windows AMI, see Deregister your Windows AMI in the Amazon EC2 Windows Guide .
To delete a container image from Amazon ECR, see Deleting an image in the Amazon ECR User Guide.
This is a convenience which creates an instance of the DeleteImageRequest.Builder avoiding the need to
create one manually via DeleteImageRequest.builder()
deleteImageRequest - A Consumer that will call methods on DeleteImageRequest.Builder to create a request.default CompletableFuture<DeleteImagePipelineResponse> deleteImagePipeline(DeleteImagePipelineRequest deleteImagePipelineRequest)
Deletes an image pipeline.
deleteImagePipelineRequest - default CompletableFuture<DeleteImagePipelineResponse> deleteImagePipeline(Consumer<DeleteImagePipelineRequest.Builder> deleteImagePipelineRequest)
Deletes an image pipeline.
This is a convenience which creates an instance of the DeleteImagePipelineRequest.Builder avoiding the
need to create one manually via DeleteImagePipelineRequest.builder()
deleteImagePipelineRequest - A Consumer that will call methods on DeleteImagePipelineRequest.Builder to create a
request.default CompletableFuture<DeleteImageRecipeResponse> deleteImageRecipe(DeleteImageRecipeRequest deleteImageRecipeRequest)
Deletes an image recipe.
deleteImageRecipeRequest - default CompletableFuture<DeleteImageRecipeResponse> deleteImageRecipe(Consumer<DeleteImageRecipeRequest.Builder> deleteImageRecipeRequest)
Deletes an image recipe.
This is a convenience which creates an instance of the DeleteImageRecipeRequest.Builder avoiding the need
to create one manually via DeleteImageRecipeRequest.builder()
deleteImageRecipeRequest - A Consumer that will call methods on DeleteImageRecipeRequest.Builder to create a request.default CompletableFuture<DeleteInfrastructureConfigurationResponse> deleteInfrastructureConfiguration(DeleteInfrastructureConfigurationRequest deleteInfrastructureConfigurationRequest)
Deletes an infrastructure configuration.
deleteInfrastructureConfigurationRequest - default CompletableFuture<DeleteInfrastructureConfigurationResponse> deleteInfrastructureConfiguration(Consumer<DeleteInfrastructureConfigurationRequest.Builder> deleteInfrastructureConfigurationRequest)
Deletes an infrastructure configuration.
This is a convenience which creates an instance of the DeleteInfrastructureConfigurationRequest.Builder
avoiding the need to create one manually via DeleteInfrastructureConfigurationRequest.builder()
deleteInfrastructureConfigurationRequest - A Consumer that will call methods on DeleteInfrastructureConfigurationRequest.Builder to
create a request.default CompletableFuture<GetComponentResponse> getComponent(GetComponentRequest getComponentRequest)
Gets a component object.
getComponentRequest - default CompletableFuture<GetComponentResponse> getComponent(Consumer<GetComponentRequest.Builder> getComponentRequest)
Gets a component object.
This is a convenience which creates an instance of the GetComponentRequest.Builder avoiding the need to
create one manually via GetComponentRequest.builder()
getComponentRequest - A Consumer that will call methods on GetComponentRequest.Builder to create a request.default CompletableFuture<GetComponentPolicyResponse> getComponentPolicy(GetComponentPolicyRequest getComponentPolicyRequest)
Gets a component policy.
getComponentPolicyRequest - default CompletableFuture<GetComponentPolicyResponse> getComponentPolicy(Consumer<GetComponentPolicyRequest.Builder> getComponentPolicyRequest)
Gets a component policy.
This is a convenience which creates an instance of the GetComponentPolicyRequest.Builder avoiding the
need to create one manually via GetComponentPolicyRequest.builder()
getComponentPolicyRequest - A Consumer that will call methods on GetComponentPolicyRequest.Builder to create a
request.default CompletableFuture<GetContainerRecipeResponse> getContainerRecipe(GetContainerRecipeRequest getContainerRecipeRequest)
Retrieves a container recipe.
getContainerRecipeRequest - default CompletableFuture<GetContainerRecipeResponse> getContainerRecipe(Consumer<GetContainerRecipeRequest.Builder> getContainerRecipeRequest)
Retrieves a container recipe.
This is a convenience which creates an instance of the GetContainerRecipeRequest.Builder avoiding the
need to create one manually via GetContainerRecipeRequest.builder()
getContainerRecipeRequest - A Consumer that will call methods on GetContainerRecipeRequest.Builder to create a
request.default CompletableFuture<GetContainerRecipePolicyResponse> getContainerRecipePolicy(GetContainerRecipePolicyRequest getContainerRecipePolicyRequest)
Retrieves the policy for a container recipe.
getContainerRecipePolicyRequest - default CompletableFuture<GetContainerRecipePolicyResponse> getContainerRecipePolicy(Consumer<GetContainerRecipePolicyRequest.Builder> getContainerRecipePolicyRequest)
Retrieves the policy for a container recipe.
This is a convenience which creates an instance of the GetContainerRecipePolicyRequest.Builder avoiding
the need to create one manually via GetContainerRecipePolicyRequest.builder()
getContainerRecipePolicyRequest - A Consumer that will call methods on GetContainerRecipePolicyRequest.Builder to create a
request.default CompletableFuture<GetDistributionConfigurationResponse> getDistributionConfiguration(GetDistributionConfigurationRequest getDistributionConfigurationRequest)
Gets a distribution configuration.
getDistributionConfigurationRequest - default CompletableFuture<GetDistributionConfigurationResponse> getDistributionConfiguration(Consumer<GetDistributionConfigurationRequest.Builder> getDistributionConfigurationRequest)
Gets a distribution configuration.
This is a convenience which creates an instance of the GetDistributionConfigurationRequest.Builder
avoiding the need to create one manually via GetDistributionConfigurationRequest.builder()
getDistributionConfigurationRequest - A Consumer that will call methods on GetDistributionConfigurationRequest.Builder to create
a request.default CompletableFuture<GetImageResponse> getImage(GetImageRequest getImageRequest)
Gets an image.
getImageRequest - default CompletableFuture<GetImageResponse> getImage(Consumer<GetImageRequest.Builder> getImageRequest)
Gets an image.
This is a convenience which creates an instance of the GetImageRequest.Builder avoiding the need to
create one manually via GetImageRequest.builder()
getImageRequest - A Consumer that will call methods on GetImageRequest.Builder to create a request.default CompletableFuture<GetImagePipelineResponse> getImagePipeline(GetImagePipelineRequest getImagePipelineRequest)
Gets an image pipeline.
getImagePipelineRequest - default CompletableFuture<GetImagePipelineResponse> getImagePipeline(Consumer<GetImagePipelineRequest.Builder> getImagePipelineRequest)
Gets an image pipeline.
This is a convenience which creates an instance of the GetImagePipelineRequest.Builder avoiding the need
to create one manually via GetImagePipelineRequest.builder()
getImagePipelineRequest - A Consumer that will call methods on GetImagePipelineRequest.Builder to create a request.default CompletableFuture<GetImagePolicyResponse> getImagePolicy(GetImagePolicyRequest getImagePolicyRequest)
Gets an image policy.
getImagePolicyRequest - default CompletableFuture<GetImagePolicyResponse> getImagePolicy(Consumer<GetImagePolicyRequest.Builder> getImagePolicyRequest)
Gets an image policy.
This is a convenience which creates an instance of the GetImagePolicyRequest.Builder avoiding the need to
create one manually via GetImagePolicyRequest.builder()
getImagePolicyRequest - A Consumer that will call methods on GetImagePolicyRequest.Builder to create a request.default CompletableFuture<GetImageRecipeResponse> getImageRecipe(GetImageRecipeRequest getImageRecipeRequest)
Gets an image recipe.
getImageRecipeRequest - default CompletableFuture<GetImageRecipeResponse> getImageRecipe(Consumer<GetImageRecipeRequest.Builder> getImageRecipeRequest)
Gets an image recipe.
This is a convenience which creates an instance of the GetImageRecipeRequest.Builder avoiding the need to
create one manually via GetImageRecipeRequest.builder()
getImageRecipeRequest - A Consumer that will call methods on GetImageRecipeRequest.Builder to create a request.default CompletableFuture<GetImageRecipePolicyResponse> getImageRecipePolicy(GetImageRecipePolicyRequest getImageRecipePolicyRequest)
Gets an image recipe policy.
getImageRecipePolicyRequest - default CompletableFuture<GetImageRecipePolicyResponse> getImageRecipePolicy(Consumer<GetImageRecipePolicyRequest.Builder> getImageRecipePolicyRequest)
Gets an image recipe policy.
This is a convenience which creates an instance of the GetImageRecipePolicyRequest.Builder avoiding the
need to create one manually via GetImageRecipePolicyRequest.builder()
getImageRecipePolicyRequest - A Consumer that will call methods on GetImageRecipePolicyRequest.Builder to create a
request.default CompletableFuture<GetInfrastructureConfigurationResponse> getInfrastructureConfiguration(GetInfrastructureConfigurationRequest getInfrastructureConfigurationRequest)
Gets an infrastructure configuration.
getInfrastructureConfigurationRequest - GetInfrastructureConfiguration request object.default CompletableFuture<GetInfrastructureConfigurationResponse> getInfrastructureConfiguration(Consumer<GetInfrastructureConfigurationRequest.Builder> getInfrastructureConfigurationRequest)
Gets an infrastructure configuration.
This is a convenience which creates an instance of the GetInfrastructureConfigurationRequest.Builder
avoiding the need to create one manually via GetInfrastructureConfigurationRequest.builder()
getInfrastructureConfigurationRequest - A Consumer that will call methods on GetInfrastructureConfigurationRequest.Builder to
create a request. GetInfrastructureConfiguration request object.default CompletableFuture<ImportComponentResponse> importComponent(ImportComponentRequest importComponentRequest)
Imports a component and transforms its data into a component document.
importComponentRequest - default CompletableFuture<ImportComponentResponse> importComponent(Consumer<ImportComponentRequest.Builder> importComponentRequest)
Imports a component and transforms its data into a component document.
This is a convenience which creates an instance of the ImportComponentRequest.Builder avoiding the need
to create one manually via ImportComponentRequest.builder()
importComponentRequest - A Consumer that will call methods on ImportComponentRequest.Builder to create a request.default CompletableFuture<ImportVmImageResponse> importVmImage(ImportVmImageRequest importVmImageRequest)
When you export your virtual machine (VM) from its virtualization environment, that process creates a set of one or more disk container files that act as snapshots of your VM’s environment, settings, and data. The Amazon EC2 API ImportImage action uses those files to import your VM and create an AMI. To import using the CLI command, see import-image
You can reference the task ID from the VM import to pull in the AMI that the import created as the base image for your Image Builder recipe.
importVmImageRequest - default CompletableFuture<ImportVmImageResponse> importVmImage(Consumer<ImportVmImageRequest.Builder> importVmImageRequest)
When you export your virtual machine (VM) from its virtualization environment, that process creates a set of one or more disk container files that act as snapshots of your VM’s environment, settings, and data. The Amazon EC2 API ImportImage action uses those files to import your VM and create an AMI. To import using the CLI command, see import-image
You can reference the task ID from the VM import to pull in the AMI that the import created as the base image for your Image Builder recipe.
This is a convenience which creates an instance of the ImportVmImageRequest.Builder avoiding the need to
create one manually via ImportVmImageRequest.builder()
importVmImageRequest - A Consumer that will call methods on ImportVmImageRequest.Builder to create a request.default CompletableFuture<ListComponentBuildVersionsResponse> listComponentBuildVersions(ListComponentBuildVersionsRequest listComponentBuildVersionsRequest)
Returns the list of component build versions for the specified semantic version.
The semantic version has four nodes: <major>.<minor>.<patch>/<build>. You can assign values for the first three, and can filter on all of them.
Filtering: With semantic versioning, you have the flexibility to use wildcards (x) to specify the most recent versions or nodes when selecting the base image or components for your recipe. When you use a wildcard in any node, all nodes to the right of the first wildcard must also be wildcards.
listComponentBuildVersionsRequest - default CompletableFuture<ListComponentBuildVersionsResponse> listComponentBuildVersions(Consumer<ListComponentBuildVersionsRequest.Builder> listComponentBuildVersionsRequest)
Returns the list of component build versions for the specified semantic version.
The semantic version has four nodes: <major>.<minor>.<patch>/<build>. You can assign values for the first three, and can filter on all of them.
Filtering: With semantic versioning, you have the flexibility to use wildcards (x) to specify the most recent versions or nodes when selecting the base image or components for your recipe. When you use a wildcard in any node, all nodes to the right of the first wildcard must also be wildcards.
This is a convenience which creates an instance of the ListComponentBuildVersionsRequest.Builder avoiding
the need to create one manually via ListComponentBuildVersionsRequest.builder()
listComponentBuildVersionsRequest - A Consumer that will call methods on ListComponentBuildVersionsRequest.Builder to create a
request.default ListComponentBuildVersionsPublisher listComponentBuildVersionsPaginator(ListComponentBuildVersionsRequest listComponentBuildVersionsRequest)
Returns the list of component build versions for the specified semantic version.
The semantic version has four nodes: <major>.<minor>.<patch>/<build>. You can assign values for the first three, and can filter on all of them.
Filtering: With semantic versioning, you have the flexibility to use wildcards (x) to specify the most recent versions or nodes when selecting the base image or components for your recipe. When you use a wildcard in any node, all nodes to the right of the first wildcard must also be wildcards.
This is a variant of
listComponentBuildVersions(software.amazon.awssdk.services.imagebuilder.model.ListComponentBuildVersionsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages.
SDK will internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe
method will result in a new Subscription i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.imagebuilder.paginators.ListComponentBuildVersionsPublisher publisher = client.listComponentBuildVersionsPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.imagebuilder.paginators.ListComponentBuildVersionsPublisher publisher = client.listComponentBuildVersionsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.imagebuilder.model.ListComponentBuildVersionsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.imagebuilder.model.ListComponentBuildVersionsResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listComponentBuildVersions(software.amazon.awssdk.services.imagebuilder.model.ListComponentBuildVersionsRequest)
operation.
listComponentBuildVersionsRequest - default ListComponentBuildVersionsPublisher listComponentBuildVersionsPaginator(Consumer<ListComponentBuildVersionsRequest.Builder> listComponentBuildVersionsRequest)
Returns the list of component build versions for the specified semantic version.
The semantic version has four nodes: <major>.<minor>.<patch>/<build>. You can assign values for the first three, and can filter on all of them.
Filtering: With semantic versioning, you have the flexibility to use wildcards (x) to specify the most recent versions or nodes when selecting the base image or components for your recipe. When you use a wildcard in any node, all nodes to the right of the first wildcard must also be wildcards.
This is a variant of
listComponentBuildVersions(software.amazon.awssdk.services.imagebuilder.model.ListComponentBuildVersionsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages.
SDK will internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe
method will result in a new Subscription i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.imagebuilder.paginators.ListComponentBuildVersionsPublisher publisher = client.listComponentBuildVersionsPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.imagebuilder.paginators.ListComponentBuildVersionsPublisher publisher = client.listComponentBuildVersionsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.imagebuilder.model.ListComponentBuildVersionsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.imagebuilder.model.ListComponentBuildVersionsResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listComponentBuildVersions(software.amazon.awssdk.services.imagebuilder.model.ListComponentBuildVersionsRequest)
operation.
This is a convenience which creates an instance of the ListComponentBuildVersionsRequest.Builder avoiding
the need to create one manually via ListComponentBuildVersionsRequest.builder()
listComponentBuildVersionsRequest - A Consumer that will call methods on ListComponentBuildVersionsRequest.Builder to create a
request.default CompletableFuture<ListComponentsResponse> listComponents(ListComponentsRequest listComponentsRequest)
Returns the list of component build versions for the specified semantic version.
The semantic version has four nodes: <major>.<minor>.<patch>/<build>. You can assign values for the first three, and can filter on all of them.
Filtering: With semantic versioning, you have the flexibility to use wildcards (x) to specify the most recent versions or nodes when selecting the base image or components for your recipe. When you use a wildcard in any node, all nodes to the right of the first wildcard must also be wildcards.
listComponentsRequest - default CompletableFuture<ListComponentsResponse> listComponents(Consumer<ListComponentsRequest.Builder> listComponentsRequest)
Returns the list of component build versions for the specified semantic version.
The semantic version has four nodes: <major>.<minor>.<patch>/<build>. You can assign values for the first three, and can filter on all of them.
Filtering: With semantic versioning, you have the flexibility to use wildcards (x) to specify the most recent versions or nodes when selecting the base image or components for your recipe. When you use a wildcard in any node, all nodes to the right of the first wildcard must also be wildcards.
This is a convenience which creates an instance of the ListComponentsRequest.Builder avoiding the need to
create one manually via ListComponentsRequest.builder()
listComponentsRequest - A Consumer that will call methods on ListComponentsRequest.Builder to create a request.default ListComponentsPublisher listComponentsPaginator(ListComponentsRequest listComponentsRequest)
Returns the list of component build versions for the specified semantic version.
The semantic version has four nodes: <major>.<minor>.<patch>/<build>. You can assign values for the first three, and can filter on all of them.
Filtering: With semantic versioning, you have the flexibility to use wildcards (x) to specify the most recent versions or nodes when selecting the base image or components for your recipe. When you use a wildcard in any node, all nodes to the right of the first wildcard must also be wildcards.
This is a variant of
listComponents(software.amazon.awssdk.services.imagebuilder.model.ListComponentsRequest) operation. The
return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will
internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe
method will result in a new Subscription i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.imagebuilder.paginators.ListComponentsPublisher publisher = client.listComponentsPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.imagebuilder.paginators.ListComponentsPublisher publisher = client.listComponentsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.imagebuilder.model.ListComponentsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.imagebuilder.model.ListComponentsResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listComponents(software.amazon.awssdk.services.imagebuilder.model.ListComponentsRequest) operation.
listComponentsRequest - default ListComponentsPublisher listComponentsPaginator(Consumer<ListComponentsRequest.Builder> listComponentsRequest)
Returns the list of component build versions for the specified semantic version.
The semantic version has four nodes: <major>.<minor>.<patch>/<build>. You can assign values for the first three, and can filter on all of them.
Filtering: With semantic versioning, you have the flexibility to use wildcards (x) to specify the most recent versions or nodes when selecting the base image or components for your recipe. When you use a wildcard in any node, all nodes to the right of the first wildcard must also be wildcards.
This is a variant of
listComponents(software.amazon.awssdk.services.imagebuilder.model.ListComponentsRequest) operation. The
return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will
internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe
method will result in a new Subscription i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.imagebuilder.paginators.ListComponentsPublisher publisher = client.listComponentsPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.imagebuilder.paginators.ListComponentsPublisher publisher = client.listComponentsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.imagebuilder.model.ListComponentsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.imagebuilder.model.ListComponentsResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listComponents(software.amazon.awssdk.services.imagebuilder.model.ListComponentsRequest) operation.
This is a convenience which creates an instance of the ListComponentsRequest.Builder avoiding the need to
create one manually via ListComponentsRequest.builder()
listComponentsRequest - A Consumer that will call methods on ListComponentsRequest.Builder to create a request.default CompletableFuture<ListContainerRecipesResponse> listContainerRecipes(ListContainerRecipesRequest listContainerRecipesRequest)
Returns a list of container recipes.
listContainerRecipesRequest - default CompletableFuture<ListContainerRecipesResponse> listContainerRecipes(Consumer<ListContainerRecipesRequest.Builder> listContainerRecipesRequest)
Returns a list of container recipes.
This is a convenience which creates an instance of the ListContainerRecipesRequest.Builder avoiding the
need to create one manually via ListContainerRecipesRequest.builder()
listContainerRecipesRequest - A Consumer that will call methods on ListContainerRecipesRequest.Builder to create a
request.default ListContainerRecipesPublisher listContainerRecipesPaginator(ListContainerRecipesRequest listContainerRecipesRequest)
Returns a list of container recipes.
This is a variant of
listContainerRecipes(software.amazon.awssdk.services.imagebuilder.model.ListContainerRecipesRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages.
SDK will internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe
method will result in a new Subscription i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.imagebuilder.paginators.ListContainerRecipesPublisher publisher = client.listContainerRecipesPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.imagebuilder.paginators.ListContainerRecipesPublisher publisher = client.listContainerRecipesPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.imagebuilder.model.ListContainerRecipesResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.imagebuilder.model.ListContainerRecipesResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listContainerRecipes(software.amazon.awssdk.services.imagebuilder.model.ListContainerRecipesRequest)
operation.
listContainerRecipesRequest - default ListContainerRecipesPublisher listContainerRecipesPaginator(Consumer<ListContainerRecipesRequest.Builder> listContainerRecipesRequest)
Returns a list of container recipes.
This is a variant of
listContainerRecipes(software.amazon.awssdk.services.imagebuilder.model.ListContainerRecipesRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages.
SDK will internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe
method will result in a new Subscription i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.imagebuilder.paginators.ListContainerRecipesPublisher publisher = client.listContainerRecipesPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.imagebuilder.paginators.ListContainerRecipesPublisher publisher = client.listContainerRecipesPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.imagebuilder.model.ListContainerRecipesResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.imagebuilder.model.ListContainerRecipesResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listContainerRecipes(software.amazon.awssdk.services.imagebuilder.model.ListContainerRecipesRequest)
operation.
This is a convenience which creates an instance of the ListContainerRecipesRequest.Builder avoiding the
need to create one manually via ListContainerRecipesRequest.builder()
listContainerRecipesRequest - A Consumer that will call methods on ListContainerRecipesRequest.Builder to create a
request.default CompletableFuture<ListDistributionConfigurationsResponse> listDistributionConfigurations(ListDistributionConfigurationsRequest listDistributionConfigurationsRequest)
Returns a list of distribution configurations.
listDistributionConfigurationsRequest - default CompletableFuture<ListDistributionConfigurationsResponse> listDistributionConfigurations(Consumer<ListDistributionConfigurationsRequest.Builder> listDistributionConfigurationsRequest)
Returns a list of distribution configurations.
This is a convenience which creates an instance of the ListDistributionConfigurationsRequest.Builder
avoiding the need to create one manually via ListDistributionConfigurationsRequest.builder()
listDistributionConfigurationsRequest - A Consumer that will call methods on ListDistributionConfigurationsRequest.Builder to
create a request.default ListDistributionConfigurationsPublisher listDistributionConfigurationsPaginator(ListDistributionConfigurationsRequest listDistributionConfigurationsRequest)
Returns a list of distribution configurations.
This is a variant of
listDistributionConfigurations(software.amazon.awssdk.services.imagebuilder.model.ListDistributionConfigurationsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages.
SDK will internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe
method will result in a new Subscription i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.imagebuilder.paginators.ListDistributionConfigurationsPublisher publisher = client.listDistributionConfigurationsPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.imagebuilder.paginators.ListDistributionConfigurationsPublisher publisher = client.listDistributionConfigurationsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.imagebuilder.model.ListDistributionConfigurationsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.imagebuilder.model.ListDistributionConfigurationsResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listDistributionConfigurations(software.amazon.awssdk.services.imagebuilder.model.ListDistributionConfigurationsRequest)
operation.
listDistributionConfigurationsRequest - default ListDistributionConfigurationsPublisher listDistributionConfigurationsPaginator(Consumer<ListDistributionConfigurationsRequest.Builder> listDistributionConfigurationsRequest)
Returns a list of distribution configurations.
This is a variant of
listDistributionConfigurations(software.amazon.awssdk.services.imagebuilder.model.ListDistributionConfigurationsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages.
SDK will internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe
method will result in a new Subscription i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.imagebuilder.paginators.ListDistributionConfigurationsPublisher publisher = client.listDistributionConfigurationsPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.imagebuilder.paginators.ListDistributionConfigurationsPublisher publisher = client.listDistributionConfigurationsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.imagebuilder.model.ListDistributionConfigurationsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.imagebuilder.model.ListDistributionConfigurationsResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listDistributionConfigurations(software.amazon.awssdk.services.imagebuilder.model.ListDistributionConfigurationsRequest)
operation.
This is a convenience which creates an instance of the ListDistributionConfigurationsRequest.Builder
avoiding the need to create one manually via ListDistributionConfigurationsRequest.builder()
listDistributionConfigurationsRequest - A Consumer that will call methods on ListDistributionConfigurationsRequest.Builder to
create a request.default CompletableFuture<ListImageBuildVersionsResponse> listImageBuildVersions(ListImageBuildVersionsRequest listImageBuildVersionsRequest)
Returns a list of image build versions.
listImageBuildVersionsRequest - default CompletableFuture<ListImageBuildVersionsResponse> listImageBuildVersions(Consumer<ListImageBuildVersionsRequest.Builder> listImageBuildVersionsRequest)
Returns a list of image build versions.
This is a convenience which creates an instance of the ListImageBuildVersionsRequest.Builder avoiding the
need to create one manually via ListImageBuildVersionsRequest.builder()
listImageBuildVersionsRequest - A Consumer that will call methods on ListImageBuildVersionsRequest.Builder to create a
request.default ListImageBuildVersionsPublisher listImageBuildVersionsPaginator(ListImageBuildVersionsRequest listImageBuildVersionsRequest)
Returns a list of image build versions.
This is a variant of
listImageBuildVersions(software.amazon.awssdk.services.imagebuilder.model.ListImageBuildVersionsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages.
SDK will internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe
method will result in a new Subscription i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.imagebuilder.paginators.ListImageBuildVersionsPublisher publisher = client.listImageBuildVersionsPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.imagebuilder.paginators.ListImageBuildVersionsPublisher publisher = client.listImageBuildVersionsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.imagebuilder.model.ListImageBuildVersionsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.imagebuilder.model.ListImageBuildVersionsResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listImageBuildVersions(software.amazon.awssdk.services.imagebuilder.model.ListImageBuildVersionsRequest)
operation.
listImageBuildVersionsRequest - default ListImageBuildVersionsPublisher listImageBuildVersionsPaginator(Consumer<ListImageBuildVersionsRequest.Builder> listImageBuildVersionsRequest)
Returns a list of image build versions.
This is a variant of
listImageBuildVersions(software.amazon.awssdk.services.imagebuilder.model.ListImageBuildVersionsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages.
SDK will internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe
method will result in a new Subscription i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.imagebuilder.paginators.ListImageBuildVersionsPublisher publisher = client.listImageBuildVersionsPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.imagebuilder.paginators.ListImageBuildVersionsPublisher publisher = client.listImageBuildVersionsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.imagebuilder.model.ListImageBuildVersionsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.imagebuilder.model.ListImageBuildVersionsResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listImageBuildVersions(software.amazon.awssdk.services.imagebuilder.model.ListImageBuildVersionsRequest)
operation.
This is a convenience which creates an instance of the ListImageBuildVersionsRequest.Builder avoiding the
need to create one manually via ListImageBuildVersionsRequest.builder()
listImageBuildVersionsRequest - A Consumer that will call methods on ListImageBuildVersionsRequest.Builder to create a
request.default CompletableFuture<ListImagePackagesResponse> listImagePackages(ListImagePackagesRequest listImagePackagesRequest)
List the Packages that are associated with an Image Build Version, as determined by Amazon Web Services Systems Manager Inventory at build time.
listImagePackagesRequest - default CompletableFuture<ListImagePackagesResponse> listImagePackages(Consumer<ListImagePackagesRequest.Builder> listImagePackagesRequest)
List the Packages that are associated with an Image Build Version, as determined by Amazon Web Services Systems Manager Inventory at build time.
This is a convenience which creates an instance of the ListImagePackagesRequest.Builder avoiding the need
to create one manually via ListImagePackagesRequest.builder()
listImagePackagesRequest - A Consumer that will call methods on ListImagePackagesRequest.Builder to create a request.default ListImagePackagesPublisher listImagePackagesPaginator(ListImagePackagesRequest listImagePackagesRequest)
List the Packages that are associated with an Image Build Version, as determined by Amazon Web Services Systems Manager Inventory at build time.
This is a variant of
listImagePackages(software.amazon.awssdk.services.imagebuilder.model.ListImagePackagesRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages.
SDK will internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe
method will result in a new Subscription i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.imagebuilder.paginators.ListImagePackagesPublisher publisher = client.listImagePackagesPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.imagebuilder.paginators.ListImagePackagesPublisher publisher = client.listImagePackagesPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.imagebuilder.model.ListImagePackagesResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.imagebuilder.model.ListImagePackagesResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listImagePackages(software.amazon.awssdk.services.imagebuilder.model.ListImagePackagesRequest)
operation.
listImagePackagesRequest - default ListImagePackagesPublisher listImagePackagesPaginator(Consumer<ListImagePackagesRequest.Builder> listImagePackagesRequest)
List the Packages that are associated with an Image Build Version, as determined by Amazon Web Services Systems Manager Inventory at build time.
This is a variant of
listImagePackages(software.amazon.awssdk.services.imagebuilder.model.ListImagePackagesRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages.
SDK will internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe
method will result in a new Subscription i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.imagebuilder.paginators.ListImagePackagesPublisher publisher = client.listImagePackagesPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.imagebuilder.paginators.ListImagePackagesPublisher publisher = client.listImagePackagesPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.imagebuilder.model.ListImagePackagesResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.imagebuilder.model.ListImagePackagesResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listImagePackages(software.amazon.awssdk.services.imagebuilder.model.ListImagePackagesRequest)
operation.
This is a convenience which creates an instance of the ListImagePackagesRequest.Builder avoiding the need
to create one manually via ListImagePackagesRequest.builder()
listImagePackagesRequest - A Consumer that will call methods on ListImagePackagesRequest.Builder to create a request.default CompletableFuture<ListImagePipelineImagesResponse> listImagePipelineImages(ListImagePipelineImagesRequest listImagePipelineImagesRequest)
Returns a list of images created by the specified pipeline.
listImagePipelineImagesRequest - default CompletableFuture<ListImagePipelineImagesResponse> listImagePipelineImages(Consumer<ListImagePipelineImagesRequest.Builder> listImagePipelineImagesRequest)
Returns a list of images created by the specified pipeline.
This is a convenience which creates an instance of the ListImagePipelineImagesRequest.Builder avoiding
the need to create one manually via ListImagePipelineImagesRequest.builder()
listImagePipelineImagesRequest - A Consumer that will call methods on ListImagePipelineImagesRequest.Builder to create a
request.default ListImagePipelineImagesPublisher listImagePipelineImagesPaginator(ListImagePipelineImagesRequest listImagePipelineImagesRequest)
Returns a list of images created by the specified pipeline.
This is a variant of
listImagePipelineImages(software.amazon.awssdk.services.imagebuilder.model.ListImagePipelineImagesRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages.
SDK will internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe
method will result in a new Subscription i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.imagebuilder.paginators.ListImagePipelineImagesPublisher publisher = client.listImagePipelineImagesPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.imagebuilder.paginators.ListImagePipelineImagesPublisher publisher = client.listImagePipelineImagesPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.imagebuilder.model.ListImagePipelineImagesResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.imagebuilder.model.ListImagePipelineImagesResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listImagePipelineImages(software.amazon.awssdk.services.imagebuilder.model.ListImagePipelineImagesRequest)
operation.
listImagePipelineImagesRequest - default ListImagePipelineImagesPublisher listImagePipelineImagesPaginator(Consumer<ListImagePipelineImagesRequest.Builder> listImagePipelineImagesRequest)
Returns a list of images created by the specified pipeline.
This is a variant of
listImagePipelineImages(software.amazon.awssdk.services.imagebuilder.model.ListImagePipelineImagesRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages.
SDK will internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe
method will result in a new Subscription i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.imagebuilder.paginators.ListImagePipelineImagesPublisher publisher = client.listImagePipelineImagesPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.imagebuilder.paginators.ListImagePipelineImagesPublisher publisher = client.listImagePipelineImagesPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.imagebuilder.model.ListImagePipelineImagesResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.imagebuilder.model.ListImagePipelineImagesResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listImagePipelineImages(software.amazon.awssdk.services.imagebuilder.model.ListImagePipelineImagesRequest)
operation.
This is a convenience which creates an instance of the ListImagePipelineImagesRequest.Builder avoiding
the need to create one manually via ListImagePipelineImagesRequest.builder()
listImagePipelineImagesRequest - A Consumer that will call methods on ListImagePipelineImagesRequest.Builder to create a
request.default CompletableFuture<ListImagePipelinesResponse> listImagePipelines(ListImagePipelinesRequest listImagePipelinesRequest)
Returns a list of image pipelines.
listImagePipelinesRequest - default CompletableFuture<ListImagePipelinesResponse> listImagePipelines(Consumer<ListImagePipelinesRequest.Builder> listImagePipelinesRequest)
Returns a list of image pipelines.
This is a convenience which creates an instance of the ListImagePipelinesRequest.Builder avoiding the
need to create one manually via ListImagePipelinesRequest.builder()
listImagePipelinesRequest - A Consumer that will call methods on ListImagePipelinesRequest.Builder to create a
request.default ListImagePipelinesPublisher listImagePipelinesPaginator(ListImagePipelinesRequest listImagePipelinesRequest)
Returns a list of image pipelines.
This is a variant of
listImagePipelines(software.amazon.awssdk.services.imagebuilder.model.ListImagePipelinesRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages.
SDK will internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe
method will result in a new Subscription i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.imagebuilder.paginators.ListImagePipelinesPublisher publisher = client.listImagePipelinesPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.imagebuilder.paginators.ListImagePipelinesPublisher publisher = client.listImagePipelinesPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.imagebuilder.model.ListImagePipelinesResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.imagebuilder.model.ListImagePipelinesResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listImagePipelines(software.amazon.awssdk.services.imagebuilder.model.ListImagePipelinesRequest)
operation.
listImagePipelinesRequest - default ListImagePipelinesPublisher listImagePipelinesPaginator(Consumer<ListImagePipelinesRequest.Builder> listImagePipelinesRequest)
Returns a list of image pipelines.
This is a variant of
listImagePipelines(software.amazon.awssdk.services.imagebuilder.model.ListImagePipelinesRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages.
SDK will internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe
method will result in a new Subscription i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.imagebuilder.paginators.ListImagePipelinesPublisher publisher = client.listImagePipelinesPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.imagebuilder.paginators.ListImagePipelinesPublisher publisher = client.listImagePipelinesPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.imagebuilder.model.ListImagePipelinesResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.imagebuilder.model.ListImagePipelinesResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listImagePipelines(software.amazon.awssdk.services.imagebuilder.model.ListImagePipelinesRequest)
operation.
This is a convenience which creates an instance of the ListImagePipelinesRequest.Builder avoiding the
need to create one manually via ListImagePipelinesRequest.builder()
listImagePipelinesRequest - A Consumer that will call methods on ListImagePipelinesRequest.Builder to create a
request.default CompletableFuture<ListImageRecipesResponse> listImageRecipes(ListImageRecipesRequest listImageRecipesRequest)
Returns a list of image recipes.
listImageRecipesRequest - default CompletableFuture<ListImageRecipesResponse> listImageRecipes(Consumer<ListImageRecipesRequest.Builder> listImageRecipesRequest)
Returns a list of image recipes.
This is a convenience which creates an instance of the ListImageRecipesRequest.Builder avoiding the need
to create one manually via ListImageRecipesRequest.builder()
listImageRecipesRequest - A Consumer that will call methods on ListImageRecipesRequest.Builder to create a request.default ListImageRecipesPublisher listImageRecipesPaginator(ListImageRecipesRequest listImageRecipesRequest)
Returns a list of image recipes.
This is a variant of
listImageRecipes(software.amazon.awssdk.services.imagebuilder.model.ListImageRecipesRequest) operation.
The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will
internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe
method will result in a new Subscription i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.imagebuilder.paginators.ListImageRecipesPublisher publisher = client.listImageRecipesPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.imagebuilder.paginators.ListImageRecipesPublisher publisher = client.listImageRecipesPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.imagebuilder.model.ListImageRecipesResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.imagebuilder.model.ListImageRecipesResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listImageRecipes(software.amazon.awssdk.services.imagebuilder.model.ListImageRecipesRequest)
operation.
listImageRecipesRequest - default ListImageRecipesPublisher listImageRecipesPaginator(Consumer<ListImageRecipesRequest.Builder> listImageRecipesRequest)
Returns a list of image recipes.
This is a variant of
listImageRecipes(software.amazon.awssdk.services.imagebuilder.model.ListImageRecipesRequest) operation.
The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will
internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe
method will result in a new Subscription i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.imagebuilder.paginators.ListImageRecipesPublisher publisher = client.listImageRecipesPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.imagebuilder.paginators.ListImageRecipesPublisher publisher = client.listImageRecipesPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.imagebuilder.model.ListImageRecipesResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.imagebuilder.model.ListImageRecipesResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listImageRecipes(software.amazon.awssdk.services.imagebuilder.model.ListImageRecipesRequest)
operation.
This is a convenience which creates an instance of the ListImageRecipesRequest.Builder avoiding the need
to create one manually via ListImageRecipesRequest.builder()
listImageRecipesRequest - A Consumer that will call methods on ListImageRecipesRequest.Builder to create a request.default CompletableFuture<ListImagesResponse> listImages(ListImagesRequest listImagesRequest)
Returns the list of images that you have access to.
listImagesRequest - default CompletableFuture<ListImagesResponse> listImages(Consumer<ListImagesRequest.Builder> listImagesRequest)
Returns the list of images that you have access to.
This is a convenience which creates an instance of the ListImagesRequest.Builder avoiding the need to
create one manually via ListImagesRequest.builder()
listImagesRequest - A Consumer that will call methods on ListImagesRequest.Builder to create a request.default ListImagesPublisher listImagesPaginator(ListImagesRequest listImagesRequest)
Returns the list of images that you have access to.
This is a variant of listImages(software.amazon.awssdk.services.imagebuilder.model.ListImagesRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages.
SDK will internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe
method will result in a new Subscription i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.imagebuilder.paginators.ListImagesPublisher publisher = client.listImagesPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.imagebuilder.paginators.ListImagesPublisher publisher = client.listImagesPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.imagebuilder.model.ListImagesResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.imagebuilder.model.ListImagesResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listImages(software.amazon.awssdk.services.imagebuilder.model.ListImagesRequest) operation.
listImagesRequest - default ListImagesPublisher listImagesPaginator(Consumer<ListImagesRequest.Builder> listImagesRequest)
Returns the list of images that you have access to.
This is a variant of listImages(software.amazon.awssdk.services.imagebuilder.model.ListImagesRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages.
SDK will internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe
method will result in a new Subscription i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.imagebuilder.paginators.ListImagesPublisher publisher = client.listImagesPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.imagebuilder.paginators.ListImagesPublisher publisher = client.listImagesPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.imagebuilder.model.ListImagesResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.imagebuilder.model.ListImagesResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listImages(software.amazon.awssdk.services.imagebuilder.model.ListImagesRequest) operation.
This is a convenience which creates an instance of the ListImagesRequest.Builder avoiding the need to
create one manually via ListImagesRequest.builder()
listImagesRequest - A Consumer that will call methods on ListImagesRequest.Builder to create a request.default CompletableFuture<ListInfrastructureConfigurationsResponse> listInfrastructureConfigurations(ListInfrastructureConfigurationsRequest listInfrastructureConfigurationsRequest)
Returns a list of infrastructure configurations.
listInfrastructureConfigurationsRequest - default CompletableFuture<ListInfrastructureConfigurationsResponse> listInfrastructureConfigurations(Consumer<ListInfrastructureConfigurationsRequest.Builder> listInfrastructureConfigurationsRequest)
Returns a list of infrastructure configurations.
This is a convenience which creates an instance of the ListInfrastructureConfigurationsRequest.Builder
avoiding the need to create one manually via ListInfrastructureConfigurationsRequest.builder()
listInfrastructureConfigurationsRequest - A Consumer that will call methods on ListInfrastructureConfigurationsRequest.Builder to
create a request.default ListInfrastructureConfigurationsPublisher listInfrastructureConfigurationsPaginator(ListInfrastructureConfigurationsRequest listInfrastructureConfigurationsRequest)
Returns a list of infrastructure configurations.
This is a variant of
listInfrastructureConfigurations(software.amazon.awssdk.services.imagebuilder.model.ListInfrastructureConfigurationsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages.
SDK will internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe
method will result in a new Subscription i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.imagebuilder.paginators.ListInfrastructureConfigurationsPublisher publisher = client.listInfrastructureConfigurationsPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.imagebuilder.paginators.ListInfrastructureConfigurationsPublisher publisher = client.listInfrastructureConfigurationsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.imagebuilder.model.ListInfrastructureConfigurationsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.imagebuilder.model.ListInfrastructureConfigurationsResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listInfrastructureConfigurations(software.amazon.awssdk.services.imagebuilder.model.ListInfrastructureConfigurationsRequest)
operation.
listInfrastructureConfigurationsRequest - default ListInfrastructureConfigurationsPublisher listInfrastructureConfigurationsPaginator(Consumer<ListInfrastructureConfigurationsRequest.Builder> listInfrastructureConfigurationsRequest)
Returns a list of infrastructure configurations.
This is a variant of
listInfrastructureConfigurations(software.amazon.awssdk.services.imagebuilder.model.ListInfrastructureConfigurationsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages.
SDK will internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe
method will result in a new Subscription i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.imagebuilder.paginators.ListInfrastructureConfigurationsPublisher publisher = client.listInfrastructureConfigurationsPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.imagebuilder.paginators.ListInfrastructureConfigurationsPublisher publisher = client.listInfrastructureConfigurationsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.imagebuilder.model.ListInfrastructureConfigurationsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.imagebuilder.model.ListInfrastructureConfigurationsResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listInfrastructureConfigurations(software.amazon.awssdk.services.imagebuilder.model.ListInfrastructureConfigurationsRequest)
operation.
This is a convenience which creates an instance of the ListInfrastructureConfigurationsRequest.Builder
avoiding the need to create one manually via ListInfrastructureConfigurationsRequest.builder()
listInfrastructureConfigurationsRequest - A Consumer that will call methods on ListInfrastructureConfigurationsRequest.Builder to
create a request.default CompletableFuture<ListTagsForResourceResponse> listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest)
Returns the list of tags for the specified resource.
listTagsForResourceRequest - default CompletableFuture<ListTagsForResourceResponse> listTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest)
Returns the list of tags for the specified resource.
This is a convenience which creates an instance of the ListTagsForResourceRequest.Builder avoiding the
need to create one manually via ListTagsForResourceRequest.builder()
listTagsForResourceRequest - A Consumer that will call methods on ListTagsForResourceRequest.Builder to create a
request.default CompletableFuture<PutComponentPolicyResponse> putComponentPolicy(PutComponentPolicyRequest putComponentPolicyRequest)
Applies a policy to a component. We recommend that you call the RAM API CreateResourceShare
to share resources. If you call the Image Builder API PutComponentPolicy, you must also call the RAM
API
PromoteResourceShareCreatedFromPolicy in order for the resource to be visible to all principals with whom the
resource is shared.
putComponentPolicyRequest - default CompletableFuture<PutComponentPolicyResponse> putComponentPolicy(Consumer<PutComponentPolicyRequest.Builder> putComponentPolicyRequest)
Applies a policy to a component. We recommend that you call the RAM API CreateResourceShare
to share resources. If you call the Image Builder API PutComponentPolicy, you must also call the RAM
API
PromoteResourceShareCreatedFromPolicy in order for the resource to be visible to all principals with whom the
resource is shared.
This is a convenience which creates an instance of the PutComponentPolicyRequest.Builder avoiding the
need to create one manually via PutComponentPolicyRequest.builder()
putComponentPolicyRequest - A Consumer that will call methods on PutComponentPolicyRequest.Builder to create a
request.default CompletableFuture<PutContainerRecipePolicyResponse> putContainerRecipePolicy(PutContainerRecipePolicyRequest putContainerRecipePolicyRequest)
Applies a policy to a container image. We recommend that you call the RAM API CreateResourceShare
(https://docs.aws.amazon.com//ram/latest/APIReference/API_CreateResourceShare.html) to share resources. If you
call the Image Builder API PutContainerImagePolicy, you must also call the RAM API
PromoteResourceShareCreatedFromPolicy
(https://docs.aws.amazon.com//ram/latest/APIReference/API_PromoteResourceShareCreatedFromPolicy.html) in order
for the resource to be visible to all principals with whom the resource is shared.
putContainerRecipePolicyRequest - default CompletableFuture<PutContainerRecipePolicyResponse> putContainerRecipePolicy(Consumer<PutContainerRecipePolicyRequest.Builder> putContainerRecipePolicyRequest)
Applies a policy to a container image. We recommend that you call the RAM API CreateResourceShare
(https://docs.aws.amazon.com//ram/latest/APIReference/API_CreateResourceShare.html) to share resources. If you
call the Image Builder API PutContainerImagePolicy, you must also call the RAM API
PromoteResourceShareCreatedFromPolicy
(https://docs.aws.amazon.com//ram/latest/APIReference/API_PromoteResourceShareCreatedFromPolicy.html) in order
for the resource to be visible to all principals with whom the resource is shared.
This is a convenience which creates an instance of the PutContainerRecipePolicyRequest.Builder avoiding
the need to create one manually via PutContainerRecipePolicyRequest.builder()
putContainerRecipePolicyRequest - A Consumer that will call methods on PutContainerRecipePolicyRequest.Builder to create a
request.default CompletableFuture<PutImagePolicyResponse> putImagePolicy(PutImagePolicyRequest putImagePolicyRequest)
Applies a policy to an image. We recommend that you call the RAM API CreateResourceShare
to share resources. If you call the Image Builder API PutImagePolicy, you must also call the RAM API
PromoteResourceShareCreatedFromPolicy in order for the resource to be visible to all principals with whom the
resource is shared.
putImagePolicyRequest - default CompletableFuture<PutImagePolicyResponse> putImagePolicy(Consumer<PutImagePolicyRequest.Builder> putImagePolicyRequest)
Applies a policy to an image. We recommend that you call the RAM API CreateResourceShare
to share resources. If you call the Image Builder API PutImagePolicy, you must also call the RAM API
PromoteResourceShareCreatedFromPolicy in order for the resource to be visible to all principals with whom the
resource is shared.
This is a convenience which creates an instance of the PutImagePolicyRequest.Builder avoiding the need to
create one manually via PutImagePolicyRequest.builder()
putImagePolicyRequest - A Consumer that will call methods on PutImagePolicyRequest.Builder to create a request.default CompletableFuture<PutImageRecipePolicyResponse> putImageRecipePolicy(PutImageRecipePolicyRequest putImageRecipePolicyRequest)
Applies a policy to an image recipe. We recommend that you call the RAM API CreateResourceShare
to share resources. If you call the Image Builder API PutImageRecipePolicy, you must also call the
RAM API PromoteResourceShareCreatedFromPolicy in order for the resource to be visible to all principals with whom
the resource is shared.
putImageRecipePolicyRequest - default CompletableFuture<PutImageRecipePolicyResponse> putImageRecipePolicy(Consumer<PutImageRecipePolicyRequest.Builder> putImageRecipePolicyRequest)
Applies a policy to an image recipe. We recommend that you call the RAM API CreateResourceShare
to share resources. If you call the Image Builder API PutImageRecipePolicy, you must also call the
RAM API PromoteResourceShareCreatedFromPolicy in order for the resource to be visible to all principals with whom
the resource is shared.
This is a convenience which creates an instance of the PutImageRecipePolicyRequest.Builder avoiding the
need to create one manually via PutImageRecipePolicyRequest.builder()
putImageRecipePolicyRequest - A Consumer that will call methods on PutImageRecipePolicyRequest.Builder to create a
request.default CompletableFuture<StartImagePipelineExecutionResponse> startImagePipelineExecution(StartImagePipelineExecutionRequest startImagePipelineExecutionRequest)
Manually triggers a pipeline to create an image.
startImagePipelineExecutionRequest - default CompletableFuture<StartImagePipelineExecutionResponse> startImagePipelineExecution(Consumer<StartImagePipelineExecutionRequest.Builder> startImagePipelineExecutionRequest)
Manually triggers a pipeline to create an image.
This is a convenience which creates an instance of the StartImagePipelineExecutionRequest.Builder
avoiding the need to create one manually via StartImagePipelineExecutionRequest.builder()
startImagePipelineExecutionRequest - A Consumer that will call methods on StartImagePipelineExecutionRequest.Builder to create
a request.default CompletableFuture<TagResourceResponse> tagResource(TagResourceRequest tagResourceRequest)
Adds a tag to a resource.
tagResourceRequest - default CompletableFuture<TagResourceResponse> tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest)
Adds a tag to a resource.
This is a convenience which creates an instance of the TagResourceRequest.Builder avoiding the need to
create one manually via TagResourceRequest.builder()
tagResourceRequest - A Consumer that will call methods on TagResourceRequest.Builder to create a request.default CompletableFuture<UntagResourceResponse> untagResource(UntagResourceRequest untagResourceRequest)
Removes a tag from a resource.
untagResourceRequest - default CompletableFuture<UntagResourceResponse> untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest)
Removes a tag from a resource.
This is a convenience which creates an instance of the UntagResourceRequest.Builder avoiding the need to
create one manually via UntagResourceRequest.builder()
untagResourceRequest - A Consumer that will call methods on UntagResourceRequest.Builder to create a request.default CompletableFuture<UpdateDistributionConfigurationResponse> updateDistributionConfiguration(UpdateDistributionConfigurationRequest updateDistributionConfigurationRequest)
Updates a new distribution configuration. Distribution configurations define and configure the outputs of your pipeline.
updateDistributionConfigurationRequest - default CompletableFuture<UpdateDistributionConfigurationResponse> updateDistributionConfiguration(Consumer<UpdateDistributionConfigurationRequest.Builder> updateDistributionConfigurationRequest)
Updates a new distribution configuration. Distribution configurations define and configure the outputs of your pipeline.
This is a convenience which creates an instance of the UpdateDistributionConfigurationRequest.Builder
avoiding the need to create one manually via UpdateDistributionConfigurationRequest.builder()
updateDistributionConfigurationRequest - A Consumer that will call methods on UpdateDistributionConfigurationRequest.Builder to
create a request.default CompletableFuture<UpdateImagePipelineResponse> updateImagePipeline(UpdateImagePipelineRequest updateImagePipelineRequest)
Updates an image pipeline. Image pipelines enable you to automate the creation and distribution of images.
UpdateImagePipeline does not support selective updates for the pipeline. You must specify all of the required properties in the update request, not just the properties that have changed.
updateImagePipelineRequest - default CompletableFuture<UpdateImagePipelineResponse> updateImagePipeline(Consumer<UpdateImagePipelineRequest.Builder> updateImagePipelineRequest)
Updates an image pipeline. Image pipelines enable you to automate the creation and distribution of images.
UpdateImagePipeline does not support selective updates for the pipeline. You must specify all of the required properties in the update request, not just the properties that have changed.
This is a convenience which creates an instance of the UpdateImagePipelineRequest.Builder avoiding the
need to create one manually via UpdateImagePipelineRequest.builder()
updateImagePipelineRequest - A Consumer that will call methods on UpdateImagePipelineRequest.Builder to create a
request.default CompletableFuture<UpdateInfrastructureConfigurationResponse> updateInfrastructureConfiguration(UpdateInfrastructureConfigurationRequest updateInfrastructureConfigurationRequest)
Updates a new infrastructure configuration. An infrastructure configuration defines the environment in which your image will be built and tested.
updateInfrastructureConfigurationRequest - default CompletableFuture<UpdateInfrastructureConfigurationResponse> updateInfrastructureConfiguration(Consumer<UpdateInfrastructureConfigurationRequest.Builder> updateInfrastructureConfigurationRequest)
Updates a new infrastructure configuration. An infrastructure configuration defines the environment in which your image will be built and tested.
This is a convenience which creates an instance of the UpdateInfrastructureConfigurationRequest.Builder
avoiding the need to create one manually via UpdateInfrastructureConfigurationRequest.builder()
updateInfrastructureConfigurationRequest - A Consumer that will call methods on UpdateInfrastructureConfigurationRequest.Builder to
create a request.Copyright © 2023. All rights reserved.