software.amazon.awssdk.services.codeartifact.CodeartifactAsyncClient Maven / Gradle / Ivy
Show all versions of codeartifact Show documentation
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
* CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
* and limitations under the License.
*/
package software.amazon.awssdk.services.codeartifact;
import java.nio.file.Path;
import java.util.concurrent.CompletableFuture;
import java.util.function.Consumer;
import software.amazon.awssdk.annotations.Generated;
import software.amazon.awssdk.annotations.SdkPublicApi;
import software.amazon.awssdk.annotations.ThreadSafe;
import software.amazon.awssdk.core.SdkClient;
import software.amazon.awssdk.core.async.AsyncResponseTransformer;
import software.amazon.awssdk.services.codeartifact.model.AssociateExternalConnectionRequest;
import software.amazon.awssdk.services.codeartifact.model.AssociateExternalConnectionResponse;
import software.amazon.awssdk.services.codeartifact.model.CopyPackageVersionsRequest;
import software.amazon.awssdk.services.codeartifact.model.CopyPackageVersionsResponse;
import software.amazon.awssdk.services.codeartifact.model.CreateDomainRequest;
import software.amazon.awssdk.services.codeartifact.model.CreateDomainResponse;
import software.amazon.awssdk.services.codeartifact.model.CreateRepositoryRequest;
import software.amazon.awssdk.services.codeartifact.model.CreateRepositoryResponse;
import software.amazon.awssdk.services.codeartifact.model.DeleteDomainPermissionsPolicyRequest;
import software.amazon.awssdk.services.codeartifact.model.DeleteDomainPermissionsPolicyResponse;
import software.amazon.awssdk.services.codeartifact.model.DeleteDomainRequest;
import software.amazon.awssdk.services.codeartifact.model.DeleteDomainResponse;
import software.amazon.awssdk.services.codeartifact.model.DeletePackageVersionsRequest;
import software.amazon.awssdk.services.codeartifact.model.DeletePackageVersionsResponse;
import software.amazon.awssdk.services.codeartifact.model.DeleteRepositoryPermissionsPolicyRequest;
import software.amazon.awssdk.services.codeartifact.model.DeleteRepositoryPermissionsPolicyResponse;
import software.amazon.awssdk.services.codeartifact.model.DeleteRepositoryRequest;
import software.amazon.awssdk.services.codeartifact.model.DeleteRepositoryResponse;
import software.amazon.awssdk.services.codeartifact.model.DescribeDomainRequest;
import software.amazon.awssdk.services.codeartifact.model.DescribeDomainResponse;
import software.amazon.awssdk.services.codeartifact.model.DescribePackageVersionRequest;
import software.amazon.awssdk.services.codeartifact.model.DescribePackageVersionResponse;
import software.amazon.awssdk.services.codeartifact.model.DescribeRepositoryRequest;
import software.amazon.awssdk.services.codeartifact.model.DescribeRepositoryResponse;
import software.amazon.awssdk.services.codeartifact.model.DisassociateExternalConnectionRequest;
import software.amazon.awssdk.services.codeartifact.model.DisassociateExternalConnectionResponse;
import software.amazon.awssdk.services.codeartifact.model.DisposePackageVersionsRequest;
import software.amazon.awssdk.services.codeartifact.model.DisposePackageVersionsResponse;
import software.amazon.awssdk.services.codeartifact.model.GetAuthorizationTokenRequest;
import software.amazon.awssdk.services.codeartifact.model.GetAuthorizationTokenResponse;
import software.amazon.awssdk.services.codeartifact.model.GetDomainPermissionsPolicyRequest;
import software.amazon.awssdk.services.codeartifact.model.GetDomainPermissionsPolicyResponse;
import software.amazon.awssdk.services.codeartifact.model.GetPackageVersionAssetRequest;
import software.amazon.awssdk.services.codeartifact.model.GetPackageVersionAssetResponse;
import software.amazon.awssdk.services.codeartifact.model.GetPackageVersionReadmeRequest;
import software.amazon.awssdk.services.codeartifact.model.GetPackageVersionReadmeResponse;
import software.amazon.awssdk.services.codeartifact.model.GetRepositoryEndpointRequest;
import software.amazon.awssdk.services.codeartifact.model.GetRepositoryEndpointResponse;
import software.amazon.awssdk.services.codeartifact.model.GetRepositoryPermissionsPolicyRequest;
import software.amazon.awssdk.services.codeartifact.model.GetRepositoryPermissionsPolicyResponse;
import software.amazon.awssdk.services.codeartifact.model.ListDomainsRequest;
import software.amazon.awssdk.services.codeartifact.model.ListDomainsResponse;
import software.amazon.awssdk.services.codeartifact.model.ListPackageVersionAssetsRequest;
import software.amazon.awssdk.services.codeartifact.model.ListPackageVersionAssetsResponse;
import software.amazon.awssdk.services.codeartifact.model.ListPackageVersionDependenciesRequest;
import software.amazon.awssdk.services.codeartifact.model.ListPackageVersionDependenciesResponse;
import software.amazon.awssdk.services.codeartifact.model.ListPackageVersionsRequest;
import software.amazon.awssdk.services.codeartifact.model.ListPackageVersionsResponse;
import software.amazon.awssdk.services.codeartifact.model.ListPackagesRequest;
import software.amazon.awssdk.services.codeartifact.model.ListPackagesResponse;
import software.amazon.awssdk.services.codeartifact.model.ListRepositoriesInDomainRequest;
import software.amazon.awssdk.services.codeartifact.model.ListRepositoriesInDomainResponse;
import software.amazon.awssdk.services.codeartifact.model.ListRepositoriesRequest;
import software.amazon.awssdk.services.codeartifact.model.ListRepositoriesResponse;
import software.amazon.awssdk.services.codeartifact.model.ListTagsForResourceRequest;
import software.amazon.awssdk.services.codeartifact.model.ListTagsForResourceResponse;
import software.amazon.awssdk.services.codeartifact.model.PutDomainPermissionsPolicyRequest;
import software.amazon.awssdk.services.codeartifact.model.PutDomainPermissionsPolicyResponse;
import software.amazon.awssdk.services.codeartifact.model.PutRepositoryPermissionsPolicyRequest;
import software.amazon.awssdk.services.codeartifact.model.PutRepositoryPermissionsPolicyResponse;
import software.amazon.awssdk.services.codeartifact.model.TagResourceRequest;
import software.amazon.awssdk.services.codeartifact.model.TagResourceResponse;
import software.amazon.awssdk.services.codeartifact.model.UntagResourceRequest;
import software.amazon.awssdk.services.codeartifact.model.UntagResourceResponse;
import software.amazon.awssdk.services.codeartifact.model.UpdatePackageVersionsStatusRequest;
import software.amazon.awssdk.services.codeartifact.model.UpdatePackageVersionsStatusResponse;
import software.amazon.awssdk.services.codeartifact.model.UpdateRepositoryRequest;
import software.amazon.awssdk.services.codeartifact.model.UpdateRepositoryResponse;
import software.amazon.awssdk.services.codeartifact.paginators.ListDomainsPublisher;
import software.amazon.awssdk.services.codeartifact.paginators.ListPackageVersionAssetsPublisher;
import software.amazon.awssdk.services.codeartifact.paginators.ListPackageVersionsPublisher;
import software.amazon.awssdk.services.codeartifact.paginators.ListPackagesPublisher;
import software.amazon.awssdk.services.codeartifact.paginators.ListRepositoriesInDomainPublisher;
import software.amazon.awssdk.services.codeartifact.paginators.ListRepositoriesPublisher;
/**
* Service client for accessing CodeArtifact asynchronously. This can be created using the static {@link #builder()}
* method.
*
*
* AWS CodeArtifact is a fully managed artifact repository compatible with language-native package managers and build
* tools such as npm, Apache Maven, and pip. You can use CodeArtifact to share packages with development teams and pull
* packages. Packages can be pulled from both public and CodeArtifact repositories. You can also create an upstream
* relationship between a CodeArtifact repository and another repository, which effectively merges their contents from
* the point of view of a package manager client.
*
*
* AWS CodeArtifact Components
*
*
* Use the information in this guide to help you work with the following CodeArtifact components:
*
*
* -
*
* Repository: A CodeArtifact repository contains a set of package
* versions, each of which maps to a set of assets, or files. Repositories are polyglot, so a single repository can
* contain packages of any supported type. Each repository exposes endpoints for fetching and publishing packages using
* tools like the npm
CLI, the Maven CLI ( mvn
), and pip
* .
*
*
* -
*
* Domain: Repositories are aggregated into a higher-level entity known as a domain. All package assets
* and metadata are stored in the domain, but are consumed through repositories. A given package asset, such as a Maven
* JAR file, is stored once per domain, no matter how many repositories it's present in. All of the assets and metadata
* in a domain are encrypted with the same customer master key (CMK) stored in AWS Key Management Service (AWS KMS).
*
*
* Each repository is a member of a single domain and can't be moved to a different domain.
*
*
* The domain allows organizational policy to be applied across multiple repositories, such as which accounts can access
* repositories in the domain, and which public repositories can be used as sources of packages.
*
*
* Although an organization can have multiple domains, we recommend a single production domain that contains all
* published artifacts so that teams can find and share packages across their organization.
*
*
* -
*
* Package: A package is a bundle of software and the metadata required to resolve dependencies and
* install the software. CodeArtifact supports npm, PyPI, and Maven package formats.
*
*
* In CodeArtifact, a package consists of:
*
*
* -
*
* A name (for example, webpack
is the name of a popular npm package)
*
*
* -
*
* An optional namespace (for example, @types
in @types/node
)
*
*
* -
*
* A set of versions (for example, 1.0.0
, 1.0.1
, 1.0.2
, etc.)
*
*
* -
*
* Package-level metadata (for example, npm tags)
*
*
*
*
* -
*
* Package version: A version of a package, such as @types/node 12.6.9
. The version number format
* and semantics vary for different package formats. For example, npm package versions must conform to the Semantic Versioning specification. In CodeArtifact, a package version consists of the
* version identifier, metadata at the package version level, and a set of assets.
*
*
* -
*
* Upstream repository: One repository is upstream of another when the package versions in it can be
* accessed from the repository endpoint of the downstream repository, effectively merging the contents of the two
* repositories from the point of view of a client. CodeArtifact allows creating an upstream relationship between two
* repositories.
*
*
* -
*
* Asset: An individual file stored in CodeArtifact associated with a package version, such as an npm
* .tgz
file or Maven POM and JAR files.
*
*
*
*
* CodeArtifact supports these operations:
*
*
* -
*
* AssociateExternalConnection
: Adds an existing external connection to a repository.
*
*
* -
*
* CopyPackageVersions
: Copies package versions from one repository to another repository in the same
* domain.
*
*
* -
*
* CreateDomain
: Creates a domain
*
*
* -
*
* CreateRepository
: Creates a CodeArtifact repository in a domain.
*
*
* -
*
* DeleteDomain
: Deletes a domain. You cannot delete a domain that contains repositories.
*
*
* -
*
* DeleteDomainPermissionsPolicy
: Deletes the resource policy that is set on a domain.
*
*
* -
*
* DeletePackageVersions
: Deletes versions of a package. After a package has been deleted, it can be
* republished, but its assets and metadata cannot be restored because they have been permanently removed from storage.
*
*
* -
*
* DeleteRepository
: Deletes a repository.
*
*
* -
*
* DeleteRepositoryPermissionsPolicy
: Deletes the resource policy that is set on a repository.
*
*
* -
*
* DescribeDomain
: Returns a DomainDescription
object that contains information about the
* requested domain.
*
*
* -
*
* DescribePackageVersion
: Returns a PackageVersionDescription object that contains details about a package version.
*
*
* -
*
* DescribeRepository
: Returns a RepositoryDescription
object that contains detailed
* information about the requested repository.
*
*
* -
*
* DisposePackageVersions
: Disposes versions of a package. A package version with the status
* Disposed
cannot be restored because they have been permanently removed from storage.
*
*
* -
*
* DisassociateExternalConnection
: Removes an existing external connection from a repository.
*
*
* -
*
* GetAuthorizationToken
: Generates a temporary authorization token for accessing repositories in the
* domain. The token expires the authorization period has passed. The default authorization period is 12 hours and can
* be customized to any length with a maximum of 12 hours.
*
*
* -
*
* GetDomainPermissionsPolicy
: Returns the policy of a resource that is attached to the specified domain.
*
*
* -
*
* GetPackageVersionAsset
: Returns the contents of an asset that is in a package version.
*
*
* -
*
* GetPackageVersionReadme
: Gets the readme file or descriptive text for a package version.
*
*
* -
*
* GetRepositoryEndpoint
: Returns the endpoint of a repository for a specific package format. A repository
* has one endpoint for each package format:
*
*
* -
*
* npm
*
*
* -
*
* pypi
*
*
* -
*
* maven
*
*
*
*
* -
*
* GetRepositoryPermissionsPolicy
: Returns the resource policy that is set on a repository.
*
*
* -
*
* ListDomains
: Returns a list of DomainSummary
objects. Each returned
* DomainSummary
object contains information about a domain.
*
*
* -
*
* ListPackages
: Lists the packages in a repository.
*
*
* -
*
* ListPackageVersionAssets
: Lists the assets for a given package version.
*
*
* -
*
* ListPackageVersionDependencies
: Returns a list of the direct dependencies for a package version.
*
*
* -
*
* ListPackageVersions
: Returns a list of package versions for a specified package in a repository.
*
*
* -
*
* ListRepositories
: Returns a list of repositories owned by the AWS account that called this method.
*
*
* -
*
* ListRepositoriesInDomain
: Returns a list of the repositories in a domain.
*
*
* -
*
* PutDomainPermissionsPolicy
: Attaches a resource policy to a domain.
*
*
* -
*
* PutRepositoryPermissionsPolicy
: Sets the resource policy on a repository that specifies permissions to
* access it.
*
*
* -
*
* UpdatePackageVersionsStatus
: Updates the status of one or more versions of a package.
*
*
* -
*
* UpdateRepository
: Updates the properties of a repository.
*
*
*
*/
@Generated("software.amazon.awssdk:codegen")
@SdkPublicApi
@ThreadSafe
public interface CodeartifactAsyncClient extends SdkClient {
String SERVICE_NAME = "codeartifact";
/**
* Value for looking up the service's metadata from the
* {@link software.amazon.awssdk.regions.ServiceMetadataProvider}.
*/
String SERVICE_METADATA_ID = "codeartifact";
/**
* Create a {@link CodeartifactAsyncClient} with the region loaded from the
* {@link software.amazon.awssdk.regions.providers.DefaultAwsRegionProviderChain} and credentials loaded from the
* {@link software.amazon.awssdk.auth.credentials.DefaultCredentialsProvider}.
*/
static CodeartifactAsyncClient create() {
return builder().build();
}
/**
* Create a builder that can be used to configure and create a {@link CodeartifactAsyncClient}.
*/
static CodeartifactAsyncClientBuilder builder() {
return new DefaultCodeartifactAsyncClientBuilder();
}
/**
*
* Adds an existing external connection to a repository. One external connection is allowed per repository.
*
*
*
* A repository can have one or more upstream repositories, or an external connection.
*
*
*
* @param associateExternalConnectionRequest
* @return A Java Future containing the result of the AssociateExternalConnection operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException The operation did not succeed because of an unauthorized access attempt.
* - ConflictException The operation did not succeed because prerequisites are not met.
* - InternalServerException The operation did not succeed because of an error that occurred inside AWS
* CodeArtifact.
* - ResourceNotFoundException The operation did not succeed because the resource requested is not found
* in the service.
* - ServiceQuotaExceededException The operation did not succeed because it would have exceeded a service
* limit for your account.
* - ThrottlingException The operation did not succeed because too many requests are sent to the service.
* - ValidationException The operation did not succeed because a parameter in the request was sent with an
* invalid value.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CodeartifactException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CodeartifactAsyncClient.AssociateExternalConnection
* @see AWS API Documentation
*/
default CompletableFuture associateExternalConnection(
AssociateExternalConnectionRequest associateExternalConnectionRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Adds an existing external connection to a repository. One external connection is allowed per repository.
*
*
*
* A repository can have one or more upstream repositories, or an external connection.
*
*
*
* This is a convenience which creates an instance of the {@link AssociateExternalConnectionRequest.Builder}
* avoiding the need to create one manually via {@link AssociateExternalConnectionRequest#builder()}
*
*
* @param associateExternalConnectionRequest
* A {@link Consumer} that will call methods on {@link AssociateExternalConnectionRequest.Builder} to create
* a request.
* @return A Java Future containing the result of the AssociateExternalConnection operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException The operation did not succeed because of an unauthorized access attempt.
* - ConflictException The operation did not succeed because prerequisites are not met.
* - InternalServerException The operation did not succeed because of an error that occurred inside AWS
* CodeArtifact.
* - ResourceNotFoundException The operation did not succeed because the resource requested is not found
* in the service.
* - ServiceQuotaExceededException The operation did not succeed because it would have exceeded a service
* limit for your account.
* - ThrottlingException The operation did not succeed because too many requests are sent to the service.
* - ValidationException The operation did not succeed because a parameter in the request was sent with an
* invalid value.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CodeartifactException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CodeartifactAsyncClient.AssociateExternalConnection
* @see AWS API Documentation
*/
default CompletableFuture associateExternalConnection(
Consumer associateExternalConnectionRequest) {
return associateExternalConnection(AssociateExternalConnectionRequest.builder()
.applyMutation(associateExternalConnectionRequest).build());
}
/**
*
* Copies package versions from one repository to another repository in the same domain.
*
*
*
* You must specify versions
or versionRevisions
. You cannot specify both.
*
*
*
* @param copyPackageVersionsRequest
* @return A Java Future containing the result of the CopyPackageVersions operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException The operation did not succeed because of an unauthorized access attempt.
* - ConflictException The operation did not succeed because prerequisites are not met.
* - InternalServerException The operation did not succeed because of an error that occurred inside AWS
* CodeArtifact.
* - ResourceNotFoundException The operation did not succeed because the resource requested is not found
* in the service.
* - ServiceQuotaExceededException The operation did not succeed because it would have exceeded a service
* limit for your account.
* - ThrottlingException The operation did not succeed because too many requests are sent to the service.
* - ValidationException The operation did not succeed because a parameter in the request was sent with an
* invalid value.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CodeartifactException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CodeartifactAsyncClient.CopyPackageVersions
* @see AWS API Documentation
*/
default CompletableFuture copyPackageVersions(
CopyPackageVersionsRequest copyPackageVersionsRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Copies package versions from one repository to another repository in the same domain.
*
*
*
* You must specify versions
or versionRevisions
. You cannot specify both.
*
*
*
* This is a convenience which creates an instance of the {@link CopyPackageVersionsRequest.Builder} avoiding the
* need to create one manually via {@link CopyPackageVersionsRequest#builder()}
*
*
* @param copyPackageVersionsRequest
* A {@link Consumer} that will call methods on {@link CopyPackageVersionsRequest.Builder} to create a
* request.
* @return A Java Future containing the result of the CopyPackageVersions operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException The operation did not succeed because of an unauthorized access attempt.
* - ConflictException The operation did not succeed because prerequisites are not met.
* - InternalServerException The operation did not succeed because of an error that occurred inside AWS
* CodeArtifact.
* - ResourceNotFoundException The operation did not succeed because the resource requested is not found
* in the service.
* - ServiceQuotaExceededException The operation did not succeed because it would have exceeded a service
* limit for your account.
* - ThrottlingException The operation did not succeed because too many requests are sent to the service.
* - ValidationException The operation did not succeed because a parameter in the request was sent with an
* invalid value.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CodeartifactException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CodeartifactAsyncClient.CopyPackageVersions
* @see AWS API Documentation
*/
default CompletableFuture copyPackageVersions(
Consumer copyPackageVersionsRequest) {
return copyPackageVersions(CopyPackageVersionsRequest.builder().applyMutation(copyPackageVersionsRequest).build());
}
/**
*
* Creates a domain. CodeArtifact domains make it easier to manage multiple repositories across an
* organization. You can use a domain to apply permissions across many repositories owned by different AWS accounts.
* An asset is stored only once in a domain, even if it's in multiple repositories.
*
*
* Although you can have multiple domains, we recommend a single production domain that contains all published
* artifacts so that your development teams can find and share packages. You can use a second pre-production domain
* to test changes to the production domain configuration.
*
*
* @param createDomainRequest
* @return A Java Future containing the result of the CreateDomain operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException The operation did not succeed because of an unauthorized access attempt.
* - ConflictException The operation did not succeed because prerequisites are not met.
* - InternalServerException The operation did not succeed because of an error that occurred inside AWS
* CodeArtifact.
* - ResourceNotFoundException The operation did not succeed because the resource requested is not found
* in the service.
* - ServiceQuotaExceededException The operation did not succeed because it would have exceeded a service
* limit for your account.
* - ThrottlingException The operation did not succeed because too many requests are sent to the service.
* - ValidationException The operation did not succeed because a parameter in the request was sent with an
* invalid value.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CodeartifactException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CodeartifactAsyncClient.CreateDomain
* @see AWS API
* Documentation
*/
default CompletableFuture createDomain(CreateDomainRequest createDomainRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Creates a domain. CodeArtifact domains make it easier to manage multiple repositories across an
* organization. You can use a domain to apply permissions across many repositories owned by different AWS accounts.
* An asset is stored only once in a domain, even if it's in multiple repositories.
*
*
* Although you can have multiple domains, we recommend a single production domain that contains all published
* artifacts so that your development teams can find and share packages. You can use a second pre-production domain
* to test changes to the production domain configuration.
*
*
*
* This is a convenience which creates an instance of the {@link CreateDomainRequest.Builder} avoiding the need to
* create one manually via {@link CreateDomainRequest#builder()}
*
*
* @param createDomainRequest
* A {@link Consumer} that will call methods on {@link CreateDomainRequest.Builder} to create a request.
* @return A Java Future containing the result of the CreateDomain operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException The operation did not succeed because of an unauthorized access attempt.
* - ConflictException The operation did not succeed because prerequisites are not met.
* - InternalServerException The operation did not succeed because of an error that occurred inside AWS
* CodeArtifact.
* - ResourceNotFoundException The operation did not succeed because the resource requested is not found
* in the service.
* - ServiceQuotaExceededException The operation did not succeed because it would have exceeded a service
* limit for your account.
* - ThrottlingException The operation did not succeed because too many requests are sent to the service.
* - ValidationException The operation did not succeed because a parameter in the request was sent with an
* invalid value.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CodeartifactException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CodeartifactAsyncClient.CreateDomain
* @see AWS API
* Documentation
*/
default CompletableFuture createDomain(Consumer createDomainRequest) {
return createDomain(CreateDomainRequest.builder().applyMutation(createDomainRequest).build());
}
/**
*
* Creates a repository.
*
*
* @param createRepositoryRequest
* @return A Java Future containing the result of the CreateRepository operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException The operation did not succeed because of an unauthorized access attempt.
* - ConflictException The operation did not succeed because prerequisites are not met.
* - InternalServerException The operation did not succeed because of an error that occurred inside AWS
* CodeArtifact.
* - ResourceNotFoundException The operation did not succeed because the resource requested is not found
* in the service.
* - ServiceQuotaExceededException The operation did not succeed because it would have exceeded a service
* limit for your account.
* - ThrottlingException The operation did not succeed because too many requests are sent to the service.
* - ValidationException The operation did not succeed because a parameter in the request was sent with an
* invalid value.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CodeartifactException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CodeartifactAsyncClient.CreateRepository
* @see AWS
* API Documentation
*/
default CompletableFuture createRepository(CreateRepositoryRequest createRepositoryRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Creates a repository.
*
*
*
* This is a convenience which creates an instance of the {@link CreateRepositoryRequest.Builder} avoiding the need
* to create one manually via {@link CreateRepositoryRequest#builder()}
*
*
* @param createRepositoryRequest
* A {@link Consumer} that will call methods on {@link CreateRepositoryRequest.Builder} to create a request.
* @return A Java Future containing the result of the CreateRepository operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException The operation did not succeed because of an unauthorized access attempt.
* - ConflictException The operation did not succeed because prerequisites are not met.
* - InternalServerException The operation did not succeed because of an error that occurred inside AWS
* CodeArtifact.
* - ResourceNotFoundException The operation did not succeed because the resource requested is not found
* in the service.
* - ServiceQuotaExceededException The operation did not succeed because it would have exceeded a service
* limit for your account.
* - ThrottlingException The operation did not succeed because too many requests are sent to the service.
* - ValidationException The operation did not succeed because a parameter in the request was sent with an
* invalid value.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CodeartifactException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CodeartifactAsyncClient.CreateRepository
* @see AWS
* API Documentation
*/
default CompletableFuture createRepository(
Consumer createRepositoryRequest) {
return createRepository(CreateRepositoryRequest.builder().applyMutation(createRepositoryRequest).build());
}
/**
*
* Deletes a domain. You cannot delete a domain that contains repositories. If you want to delete a domain with
* repositories, first delete its repositories.
*
*
* @param deleteDomainRequest
* @return A Java Future containing the result of the DeleteDomain operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException The operation did not succeed because of an unauthorized access attempt.
* - ConflictException The operation did not succeed because prerequisites are not met.
* - InternalServerException The operation did not succeed because of an error that occurred inside AWS
* CodeArtifact.
* - ThrottlingException The operation did not succeed because too many requests are sent to the service.
* - ValidationException The operation did not succeed because a parameter in the request was sent with an
* invalid value.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CodeartifactException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CodeartifactAsyncClient.DeleteDomain
* @see AWS API
* Documentation
*/
default CompletableFuture deleteDomain(DeleteDomainRequest deleteDomainRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Deletes a domain. You cannot delete a domain that contains repositories. If you want to delete a domain with
* repositories, first delete its repositories.
*
*
*
* This is a convenience which creates an instance of the {@link DeleteDomainRequest.Builder} avoiding the need to
* create one manually via {@link DeleteDomainRequest#builder()}
*
*
* @param deleteDomainRequest
* A {@link Consumer} that will call methods on {@link DeleteDomainRequest.Builder} to create a request.
* @return A Java Future containing the result of the DeleteDomain operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException The operation did not succeed because of an unauthorized access attempt.
* - ConflictException The operation did not succeed because prerequisites are not met.
* - InternalServerException The operation did not succeed because of an error that occurred inside AWS
* CodeArtifact.
* - ThrottlingException The operation did not succeed because too many requests are sent to the service.
* - ValidationException The operation did not succeed because a parameter in the request was sent with an
* invalid value.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CodeartifactException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CodeartifactAsyncClient.DeleteDomain
* @see AWS API
* Documentation
*/
default CompletableFuture deleteDomain(Consumer deleteDomainRequest) {
return deleteDomain(DeleteDomainRequest.builder().applyMutation(deleteDomainRequest).build());
}
/**
*
* Deletes the resource policy set on a domain.
*
*
* @param deleteDomainPermissionsPolicyRequest
* @return A Java Future containing the result of the DeleteDomainPermissionsPolicy operation returned by the
* service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException The operation did not succeed because of an unauthorized access attempt.
* - ConflictException The operation did not succeed because prerequisites are not met.
* - InternalServerException The operation did not succeed because of an error that occurred inside AWS
* CodeArtifact.
* - ResourceNotFoundException The operation did not succeed because the resource requested is not found
* in the service.
* - ThrottlingException The operation did not succeed because too many requests are sent to the service.
* - ValidationException The operation did not succeed because a parameter in the request was sent with an
* invalid value.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CodeartifactException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CodeartifactAsyncClient.DeleteDomainPermissionsPolicy
* @see AWS API Documentation
*/
default CompletableFuture deleteDomainPermissionsPolicy(
DeleteDomainPermissionsPolicyRequest deleteDomainPermissionsPolicyRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Deletes the resource policy set on a domain.
*
*
*
* This is a convenience which creates an instance of the {@link DeleteDomainPermissionsPolicyRequest.Builder}
* avoiding the need to create one manually via {@link DeleteDomainPermissionsPolicyRequest#builder()}
*
*
* @param deleteDomainPermissionsPolicyRequest
* A {@link Consumer} that will call methods on {@link DeleteDomainPermissionsPolicyRequest.Builder} to
* create a request.
* @return A Java Future containing the result of the DeleteDomainPermissionsPolicy operation returned by the
* service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException The operation did not succeed because of an unauthorized access attempt.
* - ConflictException The operation did not succeed because prerequisites are not met.
* - InternalServerException The operation did not succeed because of an error that occurred inside AWS
* CodeArtifact.
* - ResourceNotFoundException The operation did not succeed because the resource requested is not found
* in the service.
* - ThrottlingException The operation did not succeed because too many requests are sent to the service.
* - ValidationException The operation did not succeed because a parameter in the request was sent with an
* invalid value.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CodeartifactException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CodeartifactAsyncClient.DeleteDomainPermissionsPolicy
* @see AWS API Documentation
*/
default CompletableFuture deleteDomainPermissionsPolicy(
Consumer deleteDomainPermissionsPolicyRequest) {
return deleteDomainPermissionsPolicy(DeleteDomainPermissionsPolicyRequest.builder()
.applyMutation(deleteDomainPermissionsPolicyRequest).build());
}
/**
*
* Deletes one or more versions of a package. A deleted package version cannot be restored in your repository. If
* you want to remove a package version from your repository and be able to restore it later, set its status to
* Archived
. Archived packages cannot be downloaded from a repository and don't show up with list
* package APIs (for example, ListackageVersions), but you can restore them using UpdatePackageVersionsStatus.
*
*
* @param deletePackageVersionsRequest
* @return A Java Future containing the result of the DeletePackageVersions operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException The operation did not succeed because of an unauthorized access attempt.
* - ConflictException The operation did not succeed because prerequisites are not met.
* - InternalServerException The operation did not succeed because of an error that occurred inside AWS
* CodeArtifact.
* - ResourceNotFoundException The operation did not succeed because the resource requested is not found
* in the service.
* - ThrottlingException The operation did not succeed because too many requests are sent to the service.
* - ValidationException The operation did not succeed because a parameter in the request was sent with an
* invalid value.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CodeartifactException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CodeartifactAsyncClient.DeletePackageVersions
* @see AWS API Documentation
*/
default CompletableFuture deletePackageVersions(
DeletePackageVersionsRequest deletePackageVersionsRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Deletes one or more versions of a package. A deleted package version cannot be restored in your repository. If
* you want to remove a package version from your repository and be able to restore it later, set its status to
* Archived
. Archived packages cannot be downloaded from a repository and don't show up with list
* package APIs (for example, ListackageVersions), but you can restore them using UpdatePackageVersionsStatus.
*
*
*
* This is a convenience which creates an instance of the {@link DeletePackageVersionsRequest.Builder} avoiding the
* need to create one manually via {@link DeletePackageVersionsRequest#builder()}
*
*
* @param deletePackageVersionsRequest
* A {@link Consumer} that will call methods on {@link DeletePackageVersionsRequest.Builder} to create a
* request.
* @return A Java Future containing the result of the DeletePackageVersions operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException The operation did not succeed because of an unauthorized access attempt.
* - ConflictException The operation did not succeed because prerequisites are not met.
* - InternalServerException The operation did not succeed because of an error that occurred inside AWS
* CodeArtifact.
* - ResourceNotFoundException The operation did not succeed because the resource requested is not found
* in the service.
* - ThrottlingException The operation did not succeed because too many requests are sent to the service.
* - ValidationException The operation did not succeed because a parameter in the request was sent with an
* invalid value.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CodeartifactException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CodeartifactAsyncClient.DeletePackageVersions
* @see AWS API Documentation
*/
default CompletableFuture deletePackageVersions(
Consumer deletePackageVersionsRequest) {
return deletePackageVersions(DeletePackageVersionsRequest.builder().applyMutation(deletePackageVersionsRequest).build());
}
/**
*
* Deletes a repository.
*
*
* @param deleteRepositoryRequest
* @return A Java Future containing the result of the DeleteRepository operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException The operation did not succeed because of an unauthorized access attempt.
* - ConflictException The operation did not succeed because prerequisites are not met.
* - InternalServerException The operation did not succeed because of an error that occurred inside AWS
* CodeArtifact.
* - ResourceNotFoundException The operation did not succeed because the resource requested is not found
* in the service.
* - ThrottlingException The operation did not succeed because too many requests are sent to the service.
* - ValidationException The operation did not succeed because a parameter in the request was sent with an
* invalid value.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CodeartifactException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CodeartifactAsyncClient.DeleteRepository
* @see AWS
* API Documentation
*/
default CompletableFuture deleteRepository(DeleteRepositoryRequest deleteRepositoryRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Deletes a repository.
*
*
*
* This is a convenience which creates an instance of the {@link DeleteRepositoryRequest.Builder} avoiding the need
* to create one manually via {@link DeleteRepositoryRequest#builder()}
*
*
* @param deleteRepositoryRequest
* A {@link Consumer} that will call methods on {@link DeleteRepositoryRequest.Builder} to create a request.
* @return A Java Future containing the result of the DeleteRepository operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException The operation did not succeed because of an unauthorized access attempt.
* - ConflictException The operation did not succeed because prerequisites are not met.
* - InternalServerException The operation did not succeed because of an error that occurred inside AWS
* CodeArtifact.
* - ResourceNotFoundException The operation did not succeed because the resource requested is not found
* in the service.
* - ThrottlingException The operation did not succeed because too many requests are sent to the service.
* - ValidationException The operation did not succeed because a parameter in the request was sent with an
* invalid value.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CodeartifactException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CodeartifactAsyncClient.DeleteRepository
* @see AWS
* API Documentation
*/
default CompletableFuture deleteRepository(
Consumer deleteRepositoryRequest) {
return deleteRepository(DeleteRepositoryRequest.builder().applyMutation(deleteRepositoryRequest).build());
}
/**
*
* Deletes the resource policy that is set on a repository. After a resource policy is deleted, the permissions
* allowed and denied by the deleted policy are removed. The effect of deleting a resource policy might not be
* immediate.
*
*
*
* Use DeleteRepositoryPermissionsPolicy
with caution. After a policy is deleted, AWS users, roles, and
* accounts lose permissions to perform the repository actions granted by the deleted policy.
*
*
*
* @param deleteRepositoryPermissionsPolicyRequest
* @return A Java Future containing the result of the DeleteRepositoryPermissionsPolicy operation returned by the
* service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException The operation did not succeed because of an unauthorized access attempt.
* - ConflictException The operation did not succeed because prerequisites are not met.
* - InternalServerException The operation did not succeed because of an error that occurred inside AWS
* CodeArtifact.
* - ResourceNotFoundException The operation did not succeed because the resource requested is not found
* in the service.
* - ThrottlingException The operation did not succeed because too many requests are sent to the service.
* - ValidationException The operation did not succeed because a parameter in the request was sent with an
* invalid value.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CodeartifactException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CodeartifactAsyncClient.DeleteRepositoryPermissionsPolicy
* @see AWS API Documentation
*/
default CompletableFuture deleteRepositoryPermissionsPolicy(
DeleteRepositoryPermissionsPolicyRequest deleteRepositoryPermissionsPolicyRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Deletes the resource policy that is set on a repository. After a resource policy is deleted, the permissions
* allowed and denied by the deleted policy are removed. The effect of deleting a resource policy might not be
* immediate.
*
*
*
* Use DeleteRepositoryPermissionsPolicy
with caution. After a policy is deleted, AWS users, roles, and
* accounts lose permissions to perform the repository actions granted by the deleted policy.
*
*
*
* This is a convenience which creates an instance of the {@link DeleteRepositoryPermissionsPolicyRequest.Builder}
* avoiding the need to create one manually via {@link DeleteRepositoryPermissionsPolicyRequest#builder()}
*
*
* @param deleteRepositoryPermissionsPolicyRequest
* A {@link Consumer} that will call methods on {@link DeleteRepositoryPermissionsPolicyRequest.Builder} to
* create a request.
* @return A Java Future containing the result of the DeleteRepositoryPermissionsPolicy operation returned by the
* service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException The operation did not succeed because of an unauthorized access attempt.
* - ConflictException The operation did not succeed because prerequisites are not met.
* - InternalServerException The operation did not succeed because of an error that occurred inside AWS
* CodeArtifact.
* - ResourceNotFoundException The operation did not succeed because the resource requested is not found
* in the service.
* - ThrottlingException The operation did not succeed because too many requests are sent to the service.
* - ValidationException The operation did not succeed because a parameter in the request was sent with an
* invalid value.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CodeartifactException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CodeartifactAsyncClient.DeleteRepositoryPermissionsPolicy
* @see AWS API Documentation
*/
default CompletableFuture deleteRepositoryPermissionsPolicy(
Consumer deleteRepositoryPermissionsPolicyRequest) {
return deleteRepositoryPermissionsPolicy(DeleteRepositoryPermissionsPolicyRequest.builder()
.applyMutation(deleteRepositoryPermissionsPolicyRequest).build());
}
/**
*
* Returns a
* DomainDescription object that contains information about the requested domain.
*
*
* @param describeDomainRequest
* @return A Java Future containing the result of the DescribeDomain operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException The operation did not succeed because of an unauthorized access attempt.
* - InternalServerException The operation did not succeed because of an error that occurred inside AWS
* CodeArtifact.
* - ResourceNotFoundException The operation did not succeed because the resource requested is not found
* in the service.
* - ThrottlingException The operation did not succeed because too many requests are sent to the service.
* - ValidationException The operation did not succeed because a parameter in the request was sent with an
* invalid value.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CodeartifactException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CodeartifactAsyncClient.DescribeDomain
* @see AWS
* API Documentation
*/
default CompletableFuture describeDomain(DescribeDomainRequest describeDomainRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Returns a
* DomainDescription object that contains information about the requested domain.
*
*
*
* This is a convenience which creates an instance of the {@link DescribeDomainRequest.Builder} avoiding the need to
* create one manually via {@link DescribeDomainRequest#builder()}
*
*
* @param describeDomainRequest
* A {@link Consumer} that will call methods on {@link DescribeDomainRequest.Builder} to create a request.
* @return A Java Future containing the result of the DescribeDomain operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException The operation did not succeed because of an unauthorized access attempt.
* - InternalServerException The operation did not succeed because of an error that occurred inside AWS
* CodeArtifact.
* - ResourceNotFoundException The operation did not succeed because the resource requested is not found
* in the service.
* - ThrottlingException The operation did not succeed because too many requests are sent to the service.
* - ValidationException The operation did not succeed because a parameter in the request was sent with an
* invalid value.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CodeartifactException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CodeartifactAsyncClient.DescribeDomain
* @see AWS
* API Documentation
*/
default CompletableFuture describeDomain(Consumer describeDomainRequest) {
return describeDomain(DescribeDomainRequest.builder().applyMutation(describeDomainRequest).build());
}
/**
*
* Returns a PackageVersionDescription object that contains information about the requested package version.
*
*
* @param describePackageVersionRequest
* @return A Java Future containing the result of the DescribePackageVersion operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException The operation did not succeed because of an unauthorized access attempt.
* - ConflictException The operation did not succeed because prerequisites are not met.
* - InternalServerException The operation did not succeed because of an error that occurred inside AWS
* CodeArtifact.
* - ResourceNotFoundException The operation did not succeed because the resource requested is not found
* in the service.
* - ThrottlingException The operation did not succeed because too many requests are sent to the service.
* - ValidationException The operation did not succeed because a parameter in the request was sent with an
* invalid value.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CodeartifactException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CodeartifactAsyncClient.DescribePackageVersion
* @see AWS API Documentation
*/
default CompletableFuture describePackageVersion(
DescribePackageVersionRequest describePackageVersionRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Returns a PackageVersionDescription object that contains information about the requested package version.
*
*
*
* This is a convenience which creates an instance of the {@link DescribePackageVersionRequest.Builder} avoiding the
* need to create one manually via {@link DescribePackageVersionRequest#builder()}
*
*
* @param describePackageVersionRequest
* A {@link Consumer} that will call methods on {@link DescribePackageVersionRequest.Builder} to create a
* request.
* @return A Java Future containing the result of the DescribePackageVersion operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException The operation did not succeed because of an unauthorized access attempt.
* - ConflictException The operation did not succeed because prerequisites are not met.
* - InternalServerException The operation did not succeed because of an error that occurred inside AWS
* CodeArtifact.
* - ResourceNotFoundException The operation did not succeed because the resource requested is not found
* in the service.
* - ThrottlingException The operation did not succeed because too many requests are sent to the service.
* - ValidationException The operation did not succeed because a parameter in the request was sent with an
* invalid value.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CodeartifactException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CodeartifactAsyncClient.DescribePackageVersion
* @see AWS API Documentation
*/
default CompletableFuture describePackageVersion(
Consumer describePackageVersionRequest) {
return describePackageVersion(DescribePackageVersionRequest.builder().applyMutation(describePackageVersionRequest)
.build());
}
/**
*
* Returns a RepositoryDescription
object that contains detailed information about the requested
* repository.
*
*
* @param describeRepositoryRequest
* @return A Java Future containing the result of the DescribeRepository operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException The operation did not succeed because of an unauthorized access attempt.
* - InternalServerException The operation did not succeed because of an error that occurred inside AWS
* CodeArtifact.
* - ResourceNotFoundException The operation did not succeed because the resource requested is not found
* in the service.
* - ThrottlingException The operation did not succeed because too many requests are sent to the service.
* - ValidationException The operation did not succeed because a parameter in the request was sent with an
* invalid value.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CodeartifactException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CodeartifactAsyncClient.DescribeRepository
* @see AWS API Documentation
*/
default CompletableFuture describeRepository(DescribeRepositoryRequest describeRepositoryRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Returns a RepositoryDescription
object that contains detailed information about the requested
* repository.
*
*
*
* This is a convenience which creates an instance of the {@link DescribeRepositoryRequest.Builder} avoiding the
* need to create one manually via {@link DescribeRepositoryRequest#builder()}
*
*
* @param describeRepositoryRequest
* A {@link Consumer} that will call methods on {@link DescribeRepositoryRequest.Builder} to create a
* request.
* @return A Java Future containing the result of the DescribeRepository operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException The operation did not succeed because of an unauthorized access attempt.
* - InternalServerException The operation did not succeed because of an error that occurred inside AWS
* CodeArtifact.
* - ResourceNotFoundException The operation did not succeed because the resource requested is not found
* in the service.
* - ThrottlingException The operation did not succeed because too many requests are sent to the service.
* - ValidationException The operation did not succeed because a parameter in the request was sent with an
* invalid value.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CodeartifactException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CodeartifactAsyncClient.DescribeRepository
* @see AWS API Documentation
*/
default CompletableFuture describeRepository(
Consumer describeRepositoryRequest) {
return describeRepository(DescribeRepositoryRequest.builder().applyMutation(describeRepositoryRequest).build());
}
/**
*
* Removes an existing external connection from a repository.
*
*
* @param disassociateExternalConnectionRequest
* @return A Java Future containing the result of the DisassociateExternalConnection operation returned by the
* service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException The operation did not succeed because of an unauthorized access attempt.
* - ConflictException The operation did not succeed because prerequisites are not met.
* - InternalServerException The operation did not succeed because of an error that occurred inside AWS
* CodeArtifact.
* - ResourceNotFoundException The operation did not succeed because the resource requested is not found
* in the service.
* - ServiceQuotaExceededException The operation did not succeed because it would have exceeded a service
* limit for your account.
* - ThrottlingException The operation did not succeed because too many requests are sent to the service.
* - ValidationException The operation did not succeed because a parameter in the request was sent with an
* invalid value.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CodeartifactException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CodeartifactAsyncClient.DisassociateExternalConnection
* @see AWS API Documentation
*/
default CompletableFuture disassociateExternalConnection(
DisassociateExternalConnectionRequest disassociateExternalConnectionRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Removes an existing external connection from a repository.
*
*
*
* This is a convenience which creates an instance of the {@link DisassociateExternalConnectionRequest.Builder}
* avoiding the need to create one manually via {@link DisassociateExternalConnectionRequest#builder()}
*
*
* @param disassociateExternalConnectionRequest
* A {@link Consumer} that will call methods on {@link DisassociateExternalConnectionRequest.Builder} to
* create a request.
* @return A Java Future containing the result of the DisassociateExternalConnection operation returned by the
* service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException The operation did not succeed because of an unauthorized access attempt.
* - ConflictException The operation did not succeed because prerequisites are not met.
* - InternalServerException The operation did not succeed because of an error that occurred inside AWS
* CodeArtifact.
* - ResourceNotFoundException The operation did not succeed because the resource requested is not found
* in the service.
* - ServiceQuotaExceededException The operation did not succeed because it would have exceeded a service
* limit for your account.
* - ThrottlingException The operation did not succeed because too many requests are sent to the service.
* - ValidationException The operation did not succeed because a parameter in the request was sent with an
* invalid value.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CodeartifactException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CodeartifactAsyncClient.DisassociateExternalConnection
* @see AWS API Documentation
*/
default CompletableFuture disassociateExternalConnection(
Consumer disassociateExternalConnectionRequest) {
return disassociateExternalConnection(DisassociateExternalConnectionRequest.builder()
.applyMutation(disassociateExternalConnectionRequest).build());
}
/**
*
* Deletes the assets in package versions and sets the package versions' status to Disposed
. A disposed
* package version cannot be restored in your repository because its assets are deleted.
*
*
* To view all disposed package versions in a repository, use ListPackageVersions and set the status parameter to Disposed
.
*
*
* To view information about a disposed package version, use DescribePackageVersion.
*
*
* @param disposePackageVersionsRequest
* @return A Java Future containing the result of the DisposePackageVersions operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException The operation did not succeed because of an unauthorized access attempt.
* - ConflictException The operation did not succeed because prerequisites are not met.
* - InternalServerException The operation did not succeed because of an error that occurred inside AWS
* CodeArtifact.
* - ResourceNotFoundException The operation did not succeed because the resource requested is not found
* in the service.
* - ThrottlingException The operation did not succeed because too many requests are sent to the service.
* - ValidationException The operation did not succeed because a parameter in the request was sent with an
* invalid value.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CodeartifactException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CodeartifactAsyncClient.DisposePackageVersions
* @see AWS API Documentation
*/
default CompletableFuture disposePackageVersions(
DisposePackageVersionsRequest disposePackageVersionsRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Deletes the assets in package versions and sets the package versions' status to Disposed
. A disposed
* package version cannot be restored in your repository because its assets are deleted.
*
*
* To view all disposed package versions in a repository, use ListPackageVersions and set the status parameter to Disposed
.
*
*
* To view information about a disposed package version, use DescribePackageVersion.
*
*
*
* This is a convenience which creates an instance of the {@link DisposePackageVersionsRequest.Builder} avoiding the
* need to create one manually via {@link DisposePackageVersionsRequest#builder()}
*
*
* @param disposePackageVersionsRequest
* A {@link Consumer} that will call methods on {@link DisposePackageVersionsRequest.Builder} to create a
* request.
* @return A Java Future containing the result of the DisposePackageVersions operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException The operation did not succeed because of an unauthorized access attempt.
* - ConflictException The operation did not succeed because prerequisites are not met.
* - InternalServerException The operation did not succeed because of an error that occurred inside AWS
* CodeArtifact.
* - ResourceNotFoundException The operation did not succeed because the resource requested is not found
* in the service.
* - ThrottlingException The operation did not succeed because too many requests are sent to the service.
* - ValidationException The operation did not succeed because a parameter in the request was sent with an
* invalid value.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CodeartifactException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CodeartifactAsyncClient.DisposePackageVersions
* @see AWS API Documentation
*/
default CompletableFuture disposePackageVersions(
Consumer disposePackageVersionsRequest) {
return disposePackageVersions(DisposePackageVersionsRequest.builder().applyMutation(disposePackageVersionsRequest)
.build());
}
/**
*
* Generates a temporary authorization token for accessing repositories in the domain. This API requires the
* codeartifact:GetAuthorizationToken
and sts:GetServiceBearerToken
permissions. For more
* information about authorization tokens, see AWS CodeArtifact
* authentication and tokens.
*
*
*
* CodeArtifact authorization tokens are valid for a period of 12 hours when created with the login
* command. You can call login
periodically to refresh the token. When you create an authorization
* token with the GetAuthorizationToken
API, you can set a custom authorization period, up to a maximum
* of 12 hours, with the durationSeconds
parameter.
*
*
* The authorization period begins after login
or GetAuthorizationToken
is called. If
* login
or GetAuthorizationToken
is called while assuming a role, the token lifetime is
* independent of the maximum session duration of the role. For example, if you call sts assume-role
* and specify a session duration of 15 minutes, then generate a CodeArtifact authorization token, the token will be
* valid for the full authorization period even though this is longer than the 15-minute session duration.
*
*
* See Using IAM Roles for more
* information on controlling session duration.
*
*
*
* @param getAuthorizationTokenRequest
* @return A Java Future containing the result of the GetAuthorizationToken operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException The operation did not succeed because of an unauthorized access attempt.
* - InternalServerException The operation did not succeed because of an error that occurred inside AWS
* CodeArtifact.
* - ResourceNotFoundException The operation did not succeed because the resource requested is not found
* in the service.
* - ThrottlingException The operation did not succeed because too many requests are sent to the service.
* - ValidationException The operation did not succeed because a parameter in the request was sent with an
* invalid value.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CodeartifactException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CodeartifactAsyncClient.GetAuthorizationToken
* @see AWS API Documentation
*/
default CompletableFuture getAuthorizationToken(
GetAuthorizationTokenRequest getAuthorizationTokenRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Generates a temporary authorization token for accessing repositories in the domain. This API requires the
* codeartifact:GetAuthorizationToken
and sts:GetServiceBearerToken
permissions. For more
* information about authorization tokens, see AWS CodeArtifact
* authentication and tokens.
*
*
*
* CodeArtifact authorization tokens are valid for a period of 12 hours when created with the login
* command. You can call login
periodically to refresh the token. When you create an authorization
* token with the GetAuthorizationToken
API, you can set a custom authorization period, up to a maximum
* of 12 hours, with the durationSeconds
parameter.
*
*
* The authorization period begins after login
or GetAuthorizationToken
is called. If
* login
or GetAuthorizationToken
is called while assuming a role, the token lifetime is
* independent of the maximum session duration of the role. For example, if you call sts assume-role
* and specify a session duration of 15 minutes, then generate a CodeArtifact authorization token, the token will be
* valid for the full authorization period even though this is longer than the 15-minute session duration.
*
*
* See Using IAM Roles for more
* information on controlling session duration.
*
*
*
* This is a convenience which creates an instance of the {@link GetAuthorizationTokenRequest.Builder} avoiding the
* need to create one manually via {@link GetAuthorizationTokenRequest#builder()}
*
*
* @param getAuthorizationTokenRequest
* A {@link Consumer} that will call methods on {@link GetAuthorizationTokenRequest.Builder} to create a
* request.
* @return A Java Future containing the result of the GetAuthorizationToken operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException The operation did not succeed because of an unauthorized access attempt.
* - InternalServerException The operation did not succeed because of an error that occurred inside AWS
* CodeArtifact.
* - ResourceNotFoundException The operation did not succeed because the resource requested is not found
* in the service.
* - ThrottlingException The operation did not succeed because too many requests are sent to the service.
* - ValidationException The operation did not succeed because a parameter in the request was sent with an
* invalid value.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CodeartifactException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CodeartifactAsyncClient.GetAuthorizationToken
* @see AWS API Documentation
*/
default CompletableFuture getAuthorizationToken(
Consumer getAuthorizationTokenRequest) {
return getAuthorizationToken(GetAuthorizationTokenRequest.builder().applyMutation(getAuthorizationTokenRequest).build());
}
/**
*
* Returns the resource policy attached to the specified domain.
*
*
*
* The policy is a resource-based policy, not an identity-based policy. For more information, see Identity-based
* policies and resource-based policies in the AWS Identity and Access Management User Guide.
*
*
*
* @param getDomainPermissionsPolicyRequest
* @return A Java Future containing the result of the GetDomainPermissionsPolicy operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException The operation did not succeed because of an unauthorized access attempt.
* - InternalServerException The operation did not succeed because of an error that occurred inside AWS
* CodeArtifact.
* - ResourceNotFoundException The operation did not succeed because the resource requested is not found
* in the service.
* - ThrottlingException The operation did not succeed because too many requests are sent to the service.
* - ValidationException The operation did not succeed because a parameter in the request was sent with an
* invalid value.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CodeartifactException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CodeartifactAsyncClient.GetDomainPermissionsPolicy
* @see AWS API Documentation
*/
default CompletableFuture getDomainPermissionsPolicy(
GetDomainPermissionsPolicyRequest getDomainPermissionsPolicyRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Returns the resource policy attached to the specified domain.
*
*
*
* The policy is a resource-based policy, not an identity-based policy. For more information, see Identity-based
* policies and resource-based policies in the AWS Identity and Access Management User Guide.
*
*
*
* This is a convenience which creates an instance of the {@link GetDomainPermissionsPolicyRequest.Builder} avoiding
* the need to create one manually via {@link GetDomainPermissionsPolicyRequest#builder()}
*
*
* @param getDomainPermissionsPolicyRequest
* A {@link Consumer} that will call methods on {@link GetDomainPermissionsPolicyRequest.Builder} to create a
* request.
* @return A Java Future containing the result of the GetDomainPermissionsPolicy operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException The operation did not succeed because of an unauthorized access attempt.
* - InternalServerException The operation did not succeed because of an error that occurred inside AWS
* CodeArtifact.
* - ResourceNotFoundException The operation did not succeed because the resource requested is not found
* in the service.
* - ThrottlingException The operation did not succeed because too many requests are sent to the service.
* - ValidationException The operation did not succeed because a parameter in the request was sent with an
* invalid value.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CodeartifactException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CodeartifactAsyncClient.GetDomainPermissionsPolicy
* @see AWS API Documentation
*/
default CompletableFuture getDomainPermissionsPolicy(
Consumer getDomainPermissionsPolicyRequest) {
return getDomainPermissionsPolicy(GetDomainPermissionsPolicyRequest.builder()
.applyMutation(getDomainPermissionsPolicyRequest).build());
}
/**
*
* Returns an asset (or file) that is in a package. For example, for a Maven package version, use
* GetPackageVersionAsset
to download a JAR
file, a POM
file, or any other
* assets in the package version.
*
*
* @param getPackageVersionAssetRequest
* @param asyncResponseTransformer
* The response transformer for processing the streaming response in a non-blocking manner. See
* {@link AsyncResponseTransformer} for details on how this callback should be implemented and for links to
* precanned implementations for common scenarios like downloading to a file. The service documentation for
* the response content is as follows '
*
* The binary file, or asset, that is downloaded.
*
* '.
* @return A future to the transformed result of the AsyncResponseTransformer.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException The operation did not succeed because of an unauthorized access attempt.
* - InternalServerException The operation did not succeed because of an error that occurred inside AWS
* CodeArtifact.
* - ResourceNotFoundException The operation did not succeed because the resource requested is not found
* in the service.
* - ThrottlingException The operation did not succeed because too many requests are sent to the service.
* - ValidationException The operation did not succeed because a parameter in the request was sent with an
* invalid value.
* - ConflictException The operation did not succeed because prerequisites are not met.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CodeartifactException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CodeartifactAsyncClient.GetPackageVersionAsset
* @see AWS API Documentation
*/
default CompletableFuture getPackageVersionAsset(
GetPackageVersionAssetRequest getPackageVersionAssetRequest,
AsyncResponseTransformer asyncResponseTransformer) {
throw new UnsupportedOperationException();
}
/**
*
* Returns an asset (or file) that is in a package. For example, for a Maven package version, use
* GetPackageVersionAsset
to download a JAR
file, a POM
file, or any other
* assets in the package version.
*
*
*
* This is a convenience which creates an instance of the {@link GetPackageVersionAssetRequest.Builder} avoiding the
* need to create one manually via {@link GetPackageVersionAssetRequest#builder()}
*
*
* @param getPackageVersionAssetRequest
* A {@link Consumer} that will call methods on {@link GetPackageVersionAssetRequest.Builder} to create a
* request.
* @param asyncResponseTransformer
* The response transformer for processing the streaming response in a non-blocking manner. See
* {@link AsyncResponseTransformer} for details on how this callback should be implemented and for links to
* precanned implementations for common scenarios like downloading to a file. The service documentation for
* the response content is as follows '
*
* The binary file, or asset, that is downloaded.
*
* '.
* @return A future to the transformed result of the AsyncResponseTransformer.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException The operation did not succeed because of an unauthorized access attempt.
* - InternalServerException The operation did not succeed because of an error that occurred inside AWS
* CodeArtifact.
* - ResourceNotFoundException The operation did not succeed because the resource requested is not found
* in the service.
* - ThrottlingException The operation did not succeed because too many requests are sent to the service.
* - ValidationException The operation did not succeed because a parameter in the request was sent with an
* invalid value.
* - ConflictException The operation did not succeed because prerequisites are not met.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CodeartifactException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CodeartifactAsyncClient.GetPackageVersionAsset
* @see AWS API Documentation
*/
default CompletableFuture getPackageVersionAsset(
Consumer getPackageVersionAssetRequest,
AsyncResponseTransformer asyncResponseTransformer) {
return getPackageVersionAsset(GetPackageVersionAssetRequest.builder().applyMutation(getPackageVersionAssetRequest)
.build(), asyncResponseTransformer);
}
/**
*
* Returns an asset (or file) that is in a package. For example, for a Maven package version, use
* GetPackageVersionAsset
to download a JAR
file, a POM
file, or any other
* assets in the package version.
*
*
* @param getPackageVersionAssetRequest
* @param destinationPath
* {@link Path} to file that response contents will be written to. The file must not exist or this method
* will throw an exception. If the file is not writable by the current user then an exception will be thrown.
* The service documentation for the response content is as follows '
*
* The binary file, or asset, that is downloaded.
*
* '.
* @return A future to the transformed result of the AsyncResponseTransformer.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException The operation did not succeed because of an unauthorized access attempt.
* - InternalServerException The operation did not succeed because of an error that occurred inside AWS
* CodeArtifact.
* - ResourceNotFoundException The operation did not succeed because the resource requested is not found
* in the service.
* - ThrottlingException The operation did not succeed because too many requests are sent to the service.
* - ValidationException The operation did not succeed because a parameter in the request was sent with an
* invalid value.
* - ConflictException The operation did not succeed because prerequisites are not met.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CodeartifactException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CodeartifactAsyncClient.GetPackageVersionAsset
* @see AWS API Documentation
*/
default CompletableFuture getPackageVersionAsset(
GetPackageVersionAssetRequest getPackageVersionAssetRequest, Path destinationPath) {
return getPackageVersionAsset(getPackageVersionAssetRequest, AsyncResponseTransformer.toFile(destinationPath));
}
/**
*
* Returns an asset (or file) that is in a package. For example, for a Maven package version, use
* GetPackageVersionAsset
to download a JAR
file, a POM
file, or any other
* assets in the package version.
*
*
*
* This is a convenience which creates an instance of the {@link GetPackageVersionAssetRequest.Builder} avoiding the
* need to create one manually via {@link GetPackageVersionAssetRequest#builder()}
*
*
* @param getPackageVersionAssetRequest
* A {@link Consumer} that will call methods on {@link GetPackageVersionAssetRequest.Builder} to create a
* request.
* @param destinationPath
* {@link Path} to file that response contents will be written to. The file must not exist or this method
* will throw an exception. If the file is not writable by the current user then an exception will be thrown.
* The service documentation for the response content is as follows '
*
* The binary file, or asset, that is downloaded.
*
* '.
* @return A future to the transformed result of the AsyncResponseTransformer.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException The operation did not succeed because of an unauthorized access attempt.
* - InternalServerException The operation did not succeed because of an error that occurred inside AWS
* CodeArtifact.
* - ResourceNotFoundException The operation did not succeed because the resource requested is not found
* in the service.
* - ThrottlingException The operation did not succeed because too many requests are sent to the service.
* - ValidationException The operation did not succeed because a parameter in the request was sent with an
* invalid value.
* - ConflictException The operation did not succeed because prerequisites are not met.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CodeartifactException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CodeartifactAsyncClient.GetPackageVersionAsset
* @see AWS API Documentation
*/
default CompletableFuture getPackageVersionAsset(
Consumer getPackageVersionAssetRequest, Path destinationPath) {
return getPackageVersionAsset(GetPackageVersionAssetRequest.builder().applyMutation(getPackageVersionAssetRequest)
.build(), destinationPath);
}
/**
*
* Gets the readme file or descriptive text for a package version. For packages that do not contain a readme file,
* CodeArtifact extracts a description from a metadata file. For example, from the <description>
* element in the pom.xml
file of a Maven package.
*
*
* The returned text might contain formatting. For example, it might contain formatting for Markdown or
* reStructuredText.
*
*
* @param getPackageVersionReadmeRequest
* @return A Java Future containing the result of the GetPackageVersionReadme operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException The operation did not succeed because of an unauthorized access attempt.
* - InternalServerException The operation did not succeed because of an error that occurred inside AWS
* CodeArtifact.
* - ResourceNotFoundException The operation did not succeed because the resource requested is not found
* in the service.
* - ThrottlingException The operation did not succeed because too many requests are sent to the service.
* - ValidationException The operation did not succeed because a parameter in the request was sent with an
* invalid value.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CodeartifactException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CodeartifactAsyncClient.GetPackageVersionReadme
* @see AWS API Documentation
*/
default CompletableFuture getPackageVersionReadme(
GetPackageVersionReadmeRequest getPackageVersionReadmeRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Gets the readme file or descriptive text for a package version. For packages that do not contain a readme file,
* CodeArtifact extracts a description from a metadata file. For example, from the <description>
* element in the pom.xml
file of a Maven package.
*
*
* The returned text might contain formatting. For example, it might contain formatting for Markdown or
* reStructuredText.
*
*
*
* This is a convenience which creates an instance of the {@link GetPackageVersionReadmeRequest.Builder} avoiding
* the need to create one manually via {@link GetPackageVersionReadmeRequest#builder()}
*
*
* @param getPackageVersionReadmeRequest
* A {@link Consumer} that will call methods on {@link GetPackageVersionReadmeRequest.Builder} to create a
* request.
* @return A Java Future containing the result of the GetPackageVersionReadme operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException The operation did not succeed because of an unauthorized access attempt.
* - InternalServerException The operation did not succeed because of an error that occurred inside AWS
* CodeArtifact.
* - ResourceNotFoundException The operation did not succeed because the resource requested is not found
* in the service.
* - ThrottlingException The operation did not succeed because too many requests are sent to the service.
* - ValidationException The operation did not succeed because a parameter in the request was sent with an
* invalid value.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CodeartifactException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CodeartifactAsyncClient.GetPackageVersionReadme
* @see AWS API Documentation
*/
default CompletableFuture getPackageVersionReadme(
Consumer getPackageVersionReadmeRequest) {
return getPackageVersionReadme(GetPackageVersionReadmeRequest.builder().applyMutation(getPackageVersionReadmeRequest)
.build());
}
/**
*
* Returns the endpoint of a repository for a specific package format. A repository has one endpoint for each
* package format:
*
*
* -
*
* npm
*
*
* -
*
* pypi
*
*
* -
*
* maven
*
*
*
*
* @param getRepositoryEndpointRequest
* @return A Java Future containing the result of the GetRepositoryEndpoint operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException The operation did not succeed because of an unauthorized access attempt.
* - InternalServerException The operation did not succeed because of an error that occurred inside AWS
* CodeArtifact.
* - ResourceNotFoundException The operation did not succeed because the resource requested is not found
* in the service.
* - ThrottlingException The operation did not succeed because too many requests are sent to the service.
* - ValidationException The operation did not succeed because a parameter in the request was sent with an
* invalid value.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CodeartifactException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CodeartifactAsyncClient.GetRepositoryEndpoint
* @see AWS API Documentation
*/
default CompletableFuture getRepositoryEndpoint(
GetRepositoryEndpointRequest getRepositoryEndpointRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Returns the endpoint of a repository for a specific package format. A repository has one endpoint for each
* package format:
*
*
* -
*
* npm
*
*
* -
*
* pypi
*
*
* -
*
* maven
*
*
*
*
*
* This is a convenience which creates an instance of the {@link GetRepositoryEndpointRequest.Builder} avoiding the
* need to create one manually via {@link GetRepositoryEndpointRequest#builder()}
*
*
* @param getRepositoryEndpointRequest
* A {@link Consumer} that will call methods on {@link GetRepositoryEndpointRequest.Builder} to create a
* request.
* @return A Java Future containing the result of the GetRepositoryEndpoint operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException The operation did not succeed because of an unauthorized access attempt.
* - InternalServerException The operation did not succeed because of an error that occurred inside AWS
* CodeArtifact.
* - ResourceNotFoundException The operation did not succeed because the resource requested is not found
* in the service.
* - ThrottlingException The operation did not succeed because too many requests are sent to the service.
* - ValidationException The operation did not succeed because a parameter in the request was sent with an
* invalid value.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CodeartifactException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CodeartifactAsyncClient.GetRepositoryEndpoint
* @see AWS API Documentation
*/
default CompletableFuture getRepositoryEndpoint(
Consumer getRepositoryEndpointRequest) {
return getRepositoryEndpoint(GetRepositoryEndpointRequest.builder().applyMutation(getRepositoryEndpointRequest).build());
}
/**
*
* Returns the resource policy that is set on a repository.
*
*
* @param getRepositoryPermissionsPolicyRequest
* @return A Java Future containing the result of the GetRepositoryPermissionsPolicy operation returned by the
* service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException The operation did not succeed because of an unauthorized access attempt.
* - InternalServerException The operation did not succeed because of an error that occurred inside AWS
* CodeArtifact.
* - ResourceNotFoundException The operation did not succeed because the resource requested is not found
* in the service.
* - ThrottlingException The operation did not succeed because too many requests are sent to the service.
* - ValidationException The operation did not succeed because a parameter in the request was sent with an
* invalid value.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CodeartifactException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CodeartifactAsyncClient.GetRepositoryPermissionsPolicy
* @see AWS API Documentation
*/
default CompletableFuture getRepositoryPermissionsPolicy(
GetRepositoryPermissionsPolicyRequest getRepositoryPermissionsPolicyRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Returns the resource policy that is set on a repository.
*
*
*
* This is a convenience which creates an instance of the {@link GetRepositoryPermissionsPolicyRequest.Builder}
* avoiding the need to create one manually via {@link GetRepositoryPermissionsPolicyRequest#builder()}
*
*
* @param getRepositoryPermissionsPolicyRequest
* A {@link Consumer} that will call methods on {@link GetRepositoryPermissionsPolicyRequest.Builder} to
* create a request.
* @return A Java Future containing the result of the GetRepositoryPermissionsPolicy operation returned by the
* service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException The operation did not succeed because of an unauthorized access attempt.
* - InternalServerException The operation did not succeed because of an error that occurred inside AWS
* CodeArtifact.
* - ResourceNotFoundException The operation did not succeed because the resource requested is not found
* in the service.
* - ThrottlingException The operation did not succeed because too many requests are sent to the service.
* - ValidationException The operation did not succeed because a parameter in the request was sent with an
* invalid value.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CodeartifactException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CodeartifactAsyncClient.GetRepositoryPermissionsPolicy
* @see AWS API Documentation
*/
default CompletableFuture getRepositoryPermissionsPolicy(
Consumer getRepositoryPermissionsPolicyRequest) {
return getRepositoryPermissionsPolicy(GetRepositoryPermissionsPolicyRequest.builder()
.applyMutation(getRepositoryPermissionsPolicyRequest).build());
}
/**
*
* Returns a list of DomainSummary objects for all domains owned by the AWS account that makes this call. Each returned
* DomainSummary
object contains information about a domain.
*
*
* @param listDomainsRequest
* @return A Java Future containing the result of the ListDomains operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException The operation did not succeed because of an unauthorized access attempt.
* - InternalServerException The operation did not succeed because of an error that occurred inside AWS
* CodeArtifact.
* - ThrottlingException The operation did not succeed because too many requests are sent to the service.
* - ValidationException The operation did not succeed because a parameter in the request was sent with an
* invalid value.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CodeartifactException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CodeartifactAsyncClient.ListDomains
* @see AWS API
* Documentation
*/
default CompletableFuture listDomains(ListDomainsRequest listDomainsRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Returns a list of DomainSummary objects for all domains owned by the AWS account that makes this call. Each returned
* DomainSummary
object contains information about a domain.
*
*
*
* This is a convenience which creates an instance of the {@link ListDomainsRequest.Builder} avoiding the need to
* create one manually via {@link ListDomainsRequest#builder()}
*
*
* @param listDomainsRequest
* A {@link Consumer} that will call methods on {@link ListDomainsRequest.Builder} to create a request.
* @return A Java Future containing the result of the ListDomains operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException The operation did not succeed because of an unauthorized access attempt.
* - InternalServerException The operation did not succeed because of an error that occurred inside AWS
* CodeArtifact.
* - ThrottlingException The operation did not succeed because too many requests are sent to the service.
* - ValidationException The operation did not succeed because a parameter in the request was sent with an
* invalid value.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CodeartifactException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CodeartifactAsyncClient.ListDomains
* @see AWS API
* Documentation
*/
default CompletableFuture listDomains(Consumer listDomainsRequest) {
return listDomains(ListDomainsRequest.builder().applyMutation(listDomainsRequest).build());
}
/**
*
* Returns a list of DomainSummary objects for all domains owned by the AWS account that makes this call. Each returned
* DomainSummary
object contains information about a domain.
*
*
*
* This is a variant of {@link #listDomains(software.amazon.awssdk.services.codeartifact.model.ListDomainsRequest)}
* 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
* {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe
* method will result in a new {@link org.reactivestreams.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
*
*
* {@code
* software.amazon.awssdk.services.codeartifact.paginators.ListDomainsPublisher publisher = client.listDomainsPaginator(request);
* CompletableFuture future = publisher.subscribe(res -> { // Do something with the response });
* future.get();
* }
*
*
* 2) Using a custom subscriber
*
*
* {@code
* software.amazon.awssdk.services.codeartifact.paginators.ListDomainsPublisher publisher = client.listDomainsPaginator(request);
* publisher.subscribe(new Subscriber() {
*
* public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
*
*
* public void onNext(software.amazon.awssdk.services.codeartifact.model.ListDomainsResponse 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
* {@link #listDomains(software.amazon.awssdk.services.codeartifact.model.ListDomainsRequest)} operation.
*
*
* @param listDomainsRequest
* @return A custom publisher that can be subscribed to request a stream of response pages.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException The operation did not succeed because of an unauthorized access attempt.
* - InternalServerException The operation did not succeed because of an error that occurred inside AWS
* CodeArtifact.
* - ThrottlingException The operation did not succeed because too many requests are sent to the service.
* - ValidationException The operation did not succeed because a parameter in the request was sent with an
* invalid value.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CodeartifactException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CodeartifactAsyncClient.ListDomains
* @see AWS API
* Documentation
*/
default ListDomainsPublisher listDomainsPaginator(ListDomainsRequest listDomainsRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Returns a list of DomainSummary objects for all domains owned by the AWS account that makes this call. Each returned
* DomainSummary
object contains information about a domain.
*
*
*
* This is a variant of {@link #listDomains(software.amazon.awssdk.services.codeartifact.model.ListDomainsRequest)}
* 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
* {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe
* method will result in a new {@link org.reactivestreams.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
*
*
* {@code
* software.amazon.awssdk.services.codeartifact.paginators.ListDomainsPublisher publisher = client.listDomainsPaginator(request);
* CompletableFuture future = publisher.subscribe(res -> { // Do something with the response });
* future.get();
* }
*
*
* 2) Using a custom subscriber
*
*
* {@code
* software.amazon.awssdk.services.codeartifact.paginators.ListDomainsPublisher publisher = client.listDomainsPaginator(request);
* publisher.subscribe(new Subscriber() {
*
* public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
*
*
* public void onNext(software.amazon.awssdk.services.codeartifact.model.ListDomainsResponse 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
* {@link #listDomains(software.amazon.awssdk.services.codeartifact.model.ListDomainsRequest)} operation.
*
*
* This is a convenience which creates an instance of the {@link ListDomainsRequest.Builder} avoiding the need to
* create one manually via {@link ListDomainsRequest#builder()}
*
*
* @param listDomainsRequest
* A {@link Consumer} that will call methods on {@link ListDomainsRequest.Builder} to create a request.
* @return A custom publisher that can be subscribed to request a stream of response pages.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException The operation did not succeed because of an unauthorized access attempt.
* - InternalServerException The operation did not succeed because of an error that occurred inside AWS
* CodeArtifact.
* - ThrottlingException The operation did not succeed because too many requests are sent to the service.
* - ValidationException The operation did not succeed because a parameter in the request was sent with an
* invalid value.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CodeartifactException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CodeartifactAsyncClient.ListDomains
* @see AWS API
* Documentation
*/
default ListDomainsPublisher listDomainsPaginator(Consumer listDomainsRequest) {
return listDomainsPaginator(ListDomainsRequest.builder().applyMutation(listDomainsRequest).build());
}
/**
*
* Returns a list of AssetSummary
* objects for assets in a package version.
*
*
* @param listPackageVersionAssetsRequest
* @return A Java Future containing the result of the ListPackageVersionAssets operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException The operation did not succeed because of an unauthorized access attempt.
* - InternalServerException The operation did not succeed because of an error that occurred inside AWS
* CodeArtifact.
* - ResourceNotFoundException The operation did not succeed because the resource requested is not found
* in the service.
* - ThrottlingException The operation did not succeed because too many requests are sent to the service.
* - ValidationException The operation did not succeed because a parameter in the request was sent with an
* invalid value.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CodeartifactException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CodeartifactAsyncClient.ListPackageVersionAssets
* @see AWS API Documentation
*/
default CompletableFuture listPackageVersionAssets(
ListPackageVersionAssetsRequest listPackageVersionAssetsRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Returns a list of AssetSummary
* objects for assets in a package version.
*
*
*
* This is a convenience which creates an instance of the {@link ListPackageVersionAssetsRequest.Builder} avoiding
* the need to create one manually via {@link ListPackageVersionAssetsRequest#builder()}
*
*
* @param listPackageVersionAssetsRequest
* A {@link Consumer} that will call methods on {@link ListPackageVersionAssetsRequest.Builder} to create a
* request.
* @return A Java Future containing the result of the ListPackageVersionAssets operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException The operation did not succeed because of an unauthorized access attempt.
* - InternalServerException The operation did not succeed because of an error that occurred inside AWS
* CodeArtifact.
* - ResourceNotFoundException The operation did not succeed because the resource requested is not found
* in the service.
* - ThrottlingException The operation did not succeed because too many requests are sent to the service.
* - ValidationException The operation did not succeed because a parameter in the request was sent with an
* invalid value.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CodeartifactException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CodeartifactAsyncClient.ListPackageVersionAssets
* @see AWS API Documentation
*/
default CompletableFuture listPackageVersionAssets(
Consumer listPackageVersionAssetsRequest) {
return listPackageVersionAssets(ListPackageVersionAssetsRequest.builder().applyMutation(listPackageVersionAssetsRequest)
.build());
}
/**
*
* Returns a list of AssetSummary
* objects for assets in a package version.
*
*
*
* This is a variant of
* {@link #listPackageVersionAssets(software.amazon.awssdk.services.codeartifact.model.ListPackageVersionAssetsRequest)}
* 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
* {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe
* method will result in a new {@link org.reactivestreams.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
*
*
* {@code
* software.amazon.awssdk.services.codeartifact.paginators.ListPackageVersionAssetsPublisher publisher = client.listPackageVersionAssetsPaginator(request);
* CompletableFuture future = publisher.subscribe(res -> { // Do something with the response });
* future.get();
* }
*
*
* 2) Using a custom subscriber
*
*
* {@code
* software.amazon.awssdk.services.codeartifact.paginators.ListPackageVersionAssetsPublisher publisher = client.listPackageVersionAssetsPaginator(request);
* publisher.subscribe(new Subscriber() {
*
* public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
*
*
* public void onNext(software.amazon.awssdk.services.codeartifact.model.ListPackageVersionAssetsResponse 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
* {@link #listPackageVersionAssets(software.amazon.awssdk.services.codeartifact.model.ListPackageVersionAssetsRequest)}
* operation.
*
*
* @param listPackageVersionAssetsRequest
* @return A custom publisher that can be subscribed to request a stream of response pages.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException The operation did not succeed because of an unauthorized access attempt.
* - InternalServerException The operation did not succeed because of an error that occurred inside AWS
* CodeArtifact.
* - ResourceNotFoundException The operation did not succeed because the resource requested is not found
* in the service.
* - ThrottlingException The operation did not succeed because too many requests are sent to the service.
* - ValidationException The operation did not succeed because a parameter in the request was sent with an
* invalid value.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CodeartifactException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CodeartifactAsyncClient.ListPackageVersionAssets
* @see AWS API Documentation
*/
default ListPackageVersionAssetsPublisher listPackageVersionAssetsPaginator(
ListPackageVersionAssetsRequest listPackageVersionAssetsRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Returns a list of AssetSummary
* objects for assets in a package version.
*
*
*
* This is a variant of
* {@link #listPackageVersionAssets(software.amazon.awssdk.services.codeartifact.model.ListPackageVersionAssetsRequest)}
* 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
* {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe
* method will result in a new {@link org.reactivestreams.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
*
*
* {@code
* software.amazon.awssdk.services.codeartifact.paginators.ListPackageVersionAssetsPublisher publisher = client.listPackageVersionAssetsPaginator(request);
* CompletableFuture future = publisher.subscribe(res -> { // Do something with the response });
* future.get();
* }
*
*
* 2) Using a custom subscriber
*
*
* {@code
* software.amazon.awssdk.services.codeartifact.paginators.ListPackageVersionAssetsPublisher publisher = client.listPackageVersionAssetsPaginator(request);
* publisher.subscribe(new Subscriber() {
*
* public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
*
*
* public void onNext(software.amazon.awssdk.services.codeartifact.model.ListPackageVersionAssetsResponse 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
* {@link #listPackageVersionAssets(software.amazon.awssdk.services.codeartifact.model.ListPackageVersionAssetsRequest)}
* operation.
*
*
* This is a convenience which creates an instance of the {@link ListPackageVersionAssetsRequest.Builder} avoiding
* the need to create one manually via {@link ListPackageVersionAssetsRequest#builder()}
*
*
* @param listPackageVersionAssetsRequest
* A {@link Consumer} that will call methods on {@link ListPackageVersionAssetsRequest.Builder} to create a
* request.
* @return A custom publisher that can be subscribed to request a stream of response pages.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException The operation did not succeed because of an unauthorized access attempt.
* - InternalServerException The operation did not succeed because of an error that occurred inside AWS
* CodeArtifact.
* - ResourceNotFoundException The operation did not succeed because the resource requested is not found
* in the service.
* - ThrottlingException The operation did not succeed because too many requests are sent to the service.
* - ValidationException The operation did not succeed because a parameter in the request was sent with an
* invalid value.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CodeartifactException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CodeartifactAsyncClient.ListPackageVersionAssets
* @see AWS API Documentation
*/
default ListPackageVersionAssetsPublisher listPackageVersionAssetsPaginator(
Consumer listPackageVersionAssetsRequest) {
return listPackageVersionAssetsPaginator(ListPackageVersionAssetsRequest.builder()
.applyMutation(listPackageVersionAssetsRequest).build());
}
/**
*
* Returns the direct dependencies for a package version. The dependencies are returned as PackageDependency objects. CodeArtifact extracts the dependencies for a package version from the metadata
* file for the package format (for example, the package.json
file for npm packages and the
* pom.xml
file for Maven). Any package version dependencies that are not listed in the configuration
* file are not returned.
*
*
* @param listPackageVersionDependenciesRequest
* @return A Java Future containing the result of the ListPackageVersionDependencies operation returned by the
* service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException The operation did not succeed because of an unauthorized access attempt.
* - InternalServerException The operation did not succeed because of an error that occurred inside AWS
* CodeArtifact.
* - ResourceNotFoundException The operation did not succeed because the resource requested is not found
* in the service.
* - ThrottlingException The operation did not succeed because too many requests are sent to the service.
* - ValidationException The operation did not succeed because a parameter in the request was sent with an
* invalid value.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CodeartifactException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CodeartifactAsyncClient.ListPackageVersionDependencies
* @see AWS API Documentation
*/
default CompletableFuture listPackageVersionDependencies(
ListPackageVersionDependenciesRequest listPackageVersionDependenciesRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Returns the direct dependencies for a package version. The dependencies are returned as PackageDependency objects. CodeArtifact extracts the dependencies for a package version from the metadata
* file for the package format (for example, the package.json
file for npm packages and the
* pom.xml
file for Maven). Any package version dependencies that are not listed in the configuration
* file are not returned.
*
*
*
* This is a convenience which creates an instance of the {@link ListPackageVersionDependenciesRequest.Builder}
* avoiding the need to create one manually via {@link ListPackageVersionDependenciesRequest#builder()}
*
*
* @param listPackageVersionDependenciesRequest
* A {@link Consumer} that will call methods on {@link ListPackageVersionDependenciesRequest.Builder} to
* create a request.
* @return A Java Future containing the result of the ListPackageVersionDependencies operation returned by the
* service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException The operation did not succeed because of an unauthorized access attempt.
* - InternalServerException The operation did not succeed because of an error that occurred inside AWS
* CodeArtifact.
* - ResourceNotFoundException The operation did not succeed because the resource requested is not found
* in the service.
* - ThrottlingException The operation did not succeed because too many requests are sent to the service.
* - ValidationException The operation did not succeed because a parameter in the request was sent with an
* invalid value.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CodeartifactException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CodeartifactAsyncClient.ListPackageVersionDependencies
* @see AWS API Documentation
*/
default CompletableFuture listPackageVersionDependencies(
Consumer listPackageVersionDependenciesRequest) {
return listPackageVersionDependencies(ListPackageVersionDependenciesRequest.builder()
.applyMutation(listPackageVersionDependenciesRequest).build());
}
/**
*
* Returns a list of PackageVersionSummary objects for package versions in a repository that match the request parameters.
*
*
* @param listPackageVersionsRequest
* @return A Java Future containing the result of the ListPackageVersions operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException The operation did not succeed because of an unauthorized access attempt.
* - InternalServerException The operation did not succeed because of an error that occurred inside AWS
* CodeArtifact.
* - ResourceNotFoundException The operation did not succeed because the resource requested is not found
* in the service.
* - ThrottlingException The operation did not succeed because too many requests are sent to the service.
* - ValidationException The operation did not succeed because a parameter in the request was sent with an
* invalid value.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CodeartifactException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CodeartifactAsyncClient.ListPackageVersions
* @see AWS API Documentation
*/
default CompletableFuture listPackageVersions(
ListPackageVersionsRequest listPackageVersionsRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Returns a list of PackageVersionSummary objects for package versions in a repository that match the request parameters.
*
*
*
* This is a convenience which creates an instance of the {@link ListPackageVersionsRequest.Builder} avoiding the
* need to create one manually via {@link ListPackageVersionsRequest#builder()}
*
*
* @param listPackageVersionsRequest
* A {@link Consumer} that will call methods on {@link ListPackageVersionsRequest.Builder} to create a
* request.
* @return A Java Future containing the result of the ListPackageVersions operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException The operation did not succeed because of an unauthorized access attempt.
* - InternalServerException The operation did not succeed because of an error that occurred inside AWS
* CodeArtifact.
* - ResourceNotFoundException The operation did not succeed because the resource requested is not found
* in the service.
* - ThrottlingException The operation did not succeed because too many requests are sent to the service.
* - ValidationException The operation did not succeed because a parameter in the request was sent with an
* invalid value.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CodeartifactException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CodeartifactAsyncClient.ListPackageVersions
* @see AWS API Documentation
*/
default CompletableFuture listPackageVersions(
Consumer listPackageVersionsRequest) {
return listPackageVersions(ListPackageVersionsRequest.builder().applyMutation(listPackageVersionsRequest).build());
}
/**
*
* Returns a list of PackageVersionSummary objects for package versions in a repository that match the request parameters.
*
*
*
* This is a variant of
* {@link #listPackageVersions(software.amazon.awssdk.services.codeartifact.model.ListPackageVersionsRequest)}
* 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
* {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe
* method will result in a new {@link org.reactivestreams.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
*
*
* {@code
* software.amazon.awssdk.services.codeartifact.paginators.ListPackageVersionsPublisher publisher = client.listPackageVersionsPaginator(request);
* CompletableFuture future = publisher.subscribe(res -> { // Do something with the response });
* future.get();
* }
*
*
* 2) Using a custom subscriber
*
*
* {@code
* software.amazon.awssdk.services.codeartifact.paginators.ListPackageVersionsPublisher publisher = client.listPackageVersionsPaginator(request);
* publisher.subscribe(new Subscriber() {
*
* public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
*
*
* public void onNext(software.amazon.awssdk.services.codeartifact.model.ListPackageVersionsResponse 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
* {@link #listPackageVersions(software.amazon.awssdk.services.codeartifact.model.ListPackageVersionsRequest)}
* operation.
*
*
* @param listPackageVersionsRequest
* @return A custom publisher that can be subscribed to request a stream of response pages.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException The operation did not succeed because of an unauthorized access attempt.
* - InternalServerException The operation did not succeed because of an error that occurred inside AWS
* CodeArtifact.
* - ResourceNotFoundException The operation did not succeed because the resource requested is not found
* in the service.
* - ThrottlingException The operation did not succeed because too many requests are sent to the service.
* - ValidationException The operation did not succeed because a parameter in the request was sent with an
* invalid value.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CodeartifactException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CodeartifactAsyncClient.ListPackageVersions
* @see AWS API Documentation
*/
default ListPackageVersionsPublisher listPackageVersionsPaginator(ListPackageVersionsRequest listPackageVersionsRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Returns a list of PackageVersionSummary objects for package versions in a repository that match the request parameters.
*
*
*
* This is a variant of
* {@link #listPackageVersions(software.amazon.awssdk.services.codeartifact.model.ListPackageVersionsRequest)}
* 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
* {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe
* method will result in a new {@link org.reactivestreams.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
*
*
* {@code
* software.amazon.awssdk.services.codeartifact.paginators.ListPackageVersionsPublisher publisher = client.listPackageVersionsPaginator(request);
* CompletableFuture future = publisher.subscribe(res -> { // Do something with the response });
* future.get();
* }
*
*
* 2) Using a custom subscriber
*
*
* {@code
* software.amazon.awssdk.services.codeartifact.paginators.ListPackageVersionsPublisher publisher = client.listPackageVersionsPaginator(request);
* publisher.subscribe(new Subscriber() {
*
* public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
*
*
* public void onNext(software.amazon.awssdk.services.codeartifact.model.ListPackageVersionsResponse 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
* {@link #listPackageVersions(software.amazon.awssdk.services.codeartifact.model.ListPackageVersionsRequest)}
* operation.
*
*
* This is a convenience which creates an instance of the {@link ListPackageVersionsRequest.Builder} avoiding the
* need to create one manually via {@link ListPackageVersionsRequest#builder()}
*
*
* @param listPackageVersionsRequest
* A {@link Consumer} that will call methods on {@link ListPackageVersionsRequest.Builder} to create a
* request.
* @return A custom publisher that can be subscribed to request a stream of response pages.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException The operation did not succeed because of an unauthorized access attempt.
* - InternalServerException The operation did not succeed because of an error that occurred inside AWS
* CodeArtifact.
* - ResourceNotFoundException The operation did not succeed because the resource requested is not found
* in the service.
* - ThrottlingException The operation did not succeed because too many requests are sent to the service.
* - ValidationException The operation did not succeed because a parameter in the request was sent with an
* invalid value.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CodeartifactException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CodeartifactAsyncClient.ListPackageVersions
* @see AWS API Documentation
*/
default ListPackageVersionsPublisher listPackageVersionsPaginator(
Consumer listPackageVersionsRequest) {
return listPackageVersionsPaginator(ListPackageVersionsRequest.builder().applyMutation(listPackageVersionsRequest)
.build());
}
/**
*
* Returns a list of PackageSummary
* objects for packages in a repository that match the request parameters.
*
*
* @param listPackagesRequest
* @return A Java Future containing the result of the ListPackages operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException The operation did not succeed because of an unauthorized access attempt.
* - InternalServerException The operation did not succeed because of an error that occurred inside AWS
* CodeArtifact.
* - ResourceNotFoundException The operation did not succeed because the resource requested is not found
* in the service.
* - ThrottlingException The operation did not succeed because too many requests are sent to the service.
* - ValidationException The operation did not succeed because a parameter in the request was sent with an
* invalid value.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CodeartifactException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CodeartifactAsyncClient.ListPackages
* @see AWS API
* Documentation
*/
default CompletableFuture listPackages(ListPackagesRequest listPackagesRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Returns a list of PackageSummary
* objects for packages in a repository that match the request parameters.
*
*
*
* This is a convenience which creates an instance of the {@link ListPackagesRequest.Builder} avoiding the need to
* create one manually via {@link ListPackagesRequest#builder()}
*
*
* @param listPackagesRequest
* A {@link Consumer} that will call methods on {@link ListPackagesRequest.Builder} to create a request.
* @return A Java Future containing the result of the ListPackages operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException The operation did not succeed because of an unauthorized access attempt.
* - InternalServerException The operation did not succeed because of an error that occurred inside AWS
* CodeArtifact.
* - ResourceNotFoundException The operation did not succeed because the resource requested is not found
* in the service.
* - ThrottlingException The operation did not succeed because too many requests are sent to the service.
* - ValidationException The operation did not succeed because a parameter in the request was sent with an
* invalid value.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CodeartifactException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CodeartifactAsyncClient.ListPackages
* @see AWS API
* Documentation
*/
default CompletableFuture listPackages(Consumer listPackagesRequest) {
return listPackages(ListPackagesRequest.builder().applyMutation(listPackagesRequest).build());
}
/**
*
* Returns a list of PackageSummary
* objects for packages in a repository that match the request parameters.
*
*
*
* This is a variant of
* {@link #listPackages(software.amazon.awssdk.services.codeartifact.model.ListPackagesRequest)} 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
* {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe
* method will result in a new {@link org.reactivestreams.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
*
*
* {@code
* software.amazon.awssdk.services.codeartifact.paginators.ListPackagesPublisher publisher = client.listPackagesPaginator(request);
* CompletableFuture future = publisher.subscribe(res -> { // Do something with the response });
* future.get();
* }
*
*
* 2) Using a custom subscriber
*
*
* {@code
* software.amazon.awssdk.services.codeartifact.paginators.ListPackagesPublisher publisher = client.listPackagesPaginator(request);
* publisher.subscribe(new Subscriber() {
*
* public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
*
*
* public void onNext(software.amazon.awssdk.services.codeartifact.model.ListPackagesResponse 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
* {@link #listPackages(software.amazon.awssdk.services.codeartifact.model.ListPackagesRequest)} operation.
*
*
* @param listPackagesRequest
* @return A custom publisher that can be subscribed to request a stream of response pages.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException The operation did not succeed because of an unauthorized access attempt.
* - InternalServerException The operation did not succeed because of an error that occurred inside AWS
* CodeArtifact.
* - ResourceNotFoundException The operation did not succeed because the resource requested is not found
* in the service.
* - ThrottlingException The operation did not succeed because too many requests are sent to the service.
* - ValidationException The operation did not succeed because a parameter in the request was sent with an
* invalid value.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CodeartifactException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CodeartifactAsyncClient.ListPackages
* @see AWS API
* Documentation
*/
default ListPackagesPublisher listPackagesPaginator(ListPackagesRequest listPackagesRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Returns a list of PackageSummary
* objects for packages in a repository that match the request parameters.
*
*
*
* This is a variant of
* {@link #listPackages(software.amazon.awssdk.services.codeartifact.model.ListPackagesRequest)} 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
* {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe
* method will result in a new {@link org.reactivestreams.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
*
*
* {@code
* software.amazon.awssdk.services.codeartifact.paginators.ListPackagesPublisher publisher = client.listPackagesPaginator(request);
* CompletableFuture future = publisher.subscribe(res -> { // Do something with the response });
* future.get();
* }
*
*
* 2) Using a custom subscriber
*
*
* {@code
* software.amazon.awssdk.services.codeartifact.paginators.ListPackagesPublisher publisher = client.listPackagesPaginator(request);
* publisher.subscribe(new Subscriber() {
*
* public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
*
*
* public void onNext(software.amazon.awssdk.services.codeartifact.model.ListPackagesResponse 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
* {@link #listPackages(software.amazon.awssdk.services.codeartifact.model.ListPackagesRequest)} operation.
*
*
* This is a convenience which creates an instance of the {@link ListPackagesRequest.Builder} avoiding the need to
* create one manually via {@link ListPackagesRequest#builder()}
*
*
* @param listPackagesRequest
* A {@link Consumer} that will call methods on {@link ListPackagesRequest.Builder} to create a request.
* @return A custom publisher that can be subscribed to request a stream of response pages.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException The operation did not succeed because of an unauthorized access attempt.
* - InternalServerException The operation did not succeed because of an error that occurred inside AWS
* CodeArtifact.
* - ResourceNotFoundException The operation did not succeed because the resource requested is not found
* in the service.
* - ThrottlingException The operation did not succeed because too many requests are sent to the service.
* - ValidationException The operation did not succeed because a parameter in the request was sent with an
* invalid value.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CodeartifactException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CodeartifactAsyncClient.ListPackages
* @see AWS API
* Documentation
*/
default ListPackagesPublisher listPackagesPaginator(Consumer listPackagesRequest) {
return listPackagesPaginator(ListPackagesRequest.builder().applyMutation(listPackagesRequest).build());
}
/**
*
* Returns a list of RepositorySummary objects. Each RepositorySummary
contains information about a repository in
* the specified AWS account and that matches the input parameters.
*
*
* @param listRepositoriesRequest
* @return A Java Future containing the result of the ListRepositories operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException The operation did not succeed because of an unauthorized access attempt.
* - InternalServerException The operation did not succeed because of an error that occurred inside AWS
* CodeArtifact.
* - ThrottlingException The operation did not succeed because too many requests are sent to the service.
* - ValidationException The operation did not succeed because a parameter in the request was sent with an
* invalid value.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CodeartifactException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CodeartifactAsyncClient.ListRepositories
* @see AWS
* API Documentation
*/
default CompletableFuture listRepositories(ListRepositoriesRequest listRepositoriesRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Returns a list of RepositorySummary objects. Each RepositorySummary
contains information about a repository in
* the specified AWS account and that matches the input parameters.
*
*
*
* This is a convenience which creates an instance of the {@link ListRepositoriesRequest.Builder} avoiding the need
* to create one manually via {@link ListRepositoriesRequest#builder()}
*
*
* @param listRepositoriesRequest
* A {@link Consumer} that will call methods on {@link ListRepositoriesRequest.Builder} to create a request.
* @return A Java Future containing the result of the ListRepositories operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException The operation did not succeed because of an unauthorized access attempt.
* - InternalServerException The operation did not succeed because of an error that occurred inside AWS
* CodeArtifact.
* - ThrottlingException The operation did not succeed because too many requests are sent to the service.
* - ValidationException The operation did not succeed because a parameter in the request was sent with an
* invalid value.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CodeartifactException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CodeartifactAsyncClient.ListRepositories
* @see AWS
* API Documentation
*/
default CompletableFuture listRepositories(
Consumer listRepositoriesRequest) {
return listRepositories(ListRepositoriesRequest.builder().applyMutation(listRepositoriesRequest).build());
}
/**
*
* Returns a list of RepositorySummary objects. Each RepositorySummary
contains information about a repository in
* the specified domain and that matches the input parameters.
*
*
* @param listRepositoriesInDomainRequest
* @return A Java Future containing the result of the ListRepositoriesInDomain operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException The operation did not succeed because of an unauthorized access attempt.
* - InternalServerException The operation did not succeed because of an error that occurred inside AWS
* CodeArtifact.
* - ResourceNotFoundException The operation did not succeed because the resource requested is not found
* in the service.
* - ThrottlingException The operation did not succeed because too many requests are sent to the service.
* - ValidationException The operation did not succeed because a parameter in the request was sent with an
* invalid value.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CodeartifactException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CodeartifactAsyncClient.ListRepositoriesInDomain
* @see AWS API Documentation
*/
default CompletableFuture listRepositoriesInDomain(
ListRepositoriesInDomainRequest listRepositoriesInDomainRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Returns a list of RepositorySummary objects. Each RepositorySummary
contains information about a repository in
* the specified domain and that matches the input parameters.
*
*
*
* This is a convenience which creates an instance of the {@link ListRepositoriesInDomainRequest.Builder} avoiding
* the need to create one manually via {@link ListRepositoriesInDomainRequest#builder()}
*
*
* @param listRepositoriesInDomainRequest
* A {@link Consumer} that will call methods on {@link ListRepositoriesInDomainRequest.Builder} to create a
* request.
* @return A Java Future containing the result of the ListRepositoriesInDomain operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException The operation did not succeed because of an unauthorized access attempt.
* - InternalServerException The operation did not succeed because of an error that occurred inside AWS
* CodeArtifact.
* - ResourceNotFoundException The operation did not succeed because the resource requested is not found
* in the service.
* - ThrottlingException The operation did not succeed because too many requests are sent to the service.
* - ValidationException The operation did not succeed because a parameter in the request was sent with an
* invalid value.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CodeartifactException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CodeartifactAsyncClient.ListRepositoriesInDomain
* @see AWS API Documentation
*/
default CompletableFuture listRepositoriesInDomain(
Consumer listRepositoriesInDomainRequest) {
return listRepositoriesInDomain(ListRepositoriesInDomainRequest.builder().applyMutation(listRepositoriesInDomainRequest)
.build());
}
/**
*
* Returns a list of RepositorySummary objects. Each RepositorySummary
contains information about a repository in
* the specified domain and that matches the input parameters.
*
*
*
* This is a variant of
* {@link #listRepositoriesInDomain(software.amazon.awssdk.services.codeartifact.model.ListRepositoriesInDomainRequest)}
* 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
* {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe
* method will result in a new {@link org.reactivestreams.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
*
*
* {@code
* software.amazon.awssdk.services.codeartifact.paginators.ListRepositoriesInDomainPublisher publisher = client.listRepositoriesInDomainPaginator(request);
* CompletableFuture future = publisher.subscribe(res -> { // Do something with the response });
* future.get();
* }
*
*
* 2) Using a custom subscriber
*
*
* {@code
* software.amazon.awssdk.services.codeartifact.paginators.ListRepositoriesInDomainPublisher publisher = client.listRepositoriesInDomainPaginator(request);
* publisher.subscribe(new Subscriber() {
*
* public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
*
*
* public void onNext(software.amazon.awssdk.services.codeartifact.model.ListRepositoriesInDomainResponse 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
* {@link #listRepositoriesInDomain(software.amazon.awssdk.services.codeartifact.model.ListRepositoriesInDomainRequest)}
* operation.
*
*
* @param listRepositoriesInDomainRequest
* @return A custom publisher that can be subscribed to request a stream of response pages.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException The operation did not succeed because of an unauthorized access attempt.
* - InternalServerException The operation did not succeed because of an error that occurred inside AWS
* CodeArtifact.
* - ResourceNotFoundException The operation did not succeed because the resource requested is not found
* in the service.
* - ThrottlingException The operation did not succeed because too many requests are sent to the service.
* - ValidationException The operation did not succeed because a parameter in the request was sent with an
* invalid value.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CodeartifactException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CodeartifactAsyncClient.ListRepositoriesInDomain
* @see AWS API Documentation
*/
default ListRepositoriesInDomainPublisher listRepositoriesInDomainPaginator(
ListRepositoriesInDomainRequest listRepositoriesInDomainRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Returns a list of RepositorySummary objects. Each RepositorySummary
contains information about a repository in
* the specified domain and that matches the input parameters.
*
*
*
* This is a variant of
* {@link #listRepositoriesInDomain(software.amazon.awssdk.services.codeartifact.model.ListRepositoriesInDomainRequest)}
* 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
* {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe
* method will result in a new {@link org.reactivestreams.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
*
*
* {@code
* software.amazon.awssdk.services.codeartifact.paginators.ListRepositoriesInDomainPublisher publisher = client.listRepositoriesInDomainPaginator(request);
* CompletableFuture future = publisher.subscribe(res -> { // Do something with the response });
* future.get();
* }
*
*
* 2) Using a custom subscriber
*
*
* {@code
* software.amazon.awssdk.services.codeartifact.paginators.ListRepositoriesInDomainPublisher publisher = client.listRepositoriesInDomainPaginator(request);
* publisher.subscribe(new Subscriber() {
*
* public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
*
*
* public void onNext(software.amazon.awssdk.services.codeartifact.model.ListRepositoriesInDomainResponse 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
* {@link #listRepositoriesInDomain(software.amazon.awssdk.services.codeartifact.model.ListRepositoriesInDomainRequest)}
* operation.
*
*
* This is a convenience which creates an instance of the {@link ListRepositoriesInDomainRequest.Builder} avoiding
* the need to create one manually via {@link ListRepositoriesInDomainRequest#builder()}
*
*
* @param listRepositoriesInDomainRequest
* A {@link Consumer} that will call methods on {@link ListRepositoriesInDomainRequest.Builder} to create a
* request.
* @return A custom publisher that can be subscribed to request a stream of response pages.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException The operation did not succeed because of an unauthorized access attempt.
* - InternalServerException The operation did not succeed because of an error that occurred inside AWS
* CodeArtifact.
* - ResourceNotFoundException The operation did not succeed because the resource requested is not found
* in the service.
* - ThrottlingException The operation did not succeed because too many requests are sent to the service.
* - ValidationException The operation did not succeed because a parameter in the request was sent with an
* invalid value.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CodeartifactException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CodeartifactAsyncClient.ListRepositoriesInDomain
* @see AWS API Documentation
*/
default ListRepositoriesInDomainPublisher listRepositoriesInDomainPaginator(
Consumer listRepositoriesInDomainRequest) {
return listRepositoriesInDomainPaginator(ListRepositoriesInDomainRequest.builder()
.applyMutation(listRepositoriesInDomainRequest).build());
}
/**
*
* Returns a list of RepositorySummary objects. Each RepositorySummary
contains information about a repository in
* the specified AWS account and that matches the input parameters.
*
*
*
* This is a variant of
* {@link #listRepositories(software.amazon.awssdk.services.codeartifact.model.ListRepositoriesRequest)} 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
* {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe
* method will result in a new {@link org.reactivestreams.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
*
*
* {@code
* software.amazon.awssdk.services.codeartifact.paginators.ListRepositoriesPublisher publisher = client.listRepositoriesPaginator(request);
* CompletableFuture future = publisher.subscribe(res -> { // Do something with the response });
* future.get();
* }
*
*
* 2) Using a custom subscriber
*
*
* {@code
* software.amazon.awssdk.services.codeartifact.paginators.ListRepositoriesPublisher publisher = client.listRepositoriesPaginator(request);
* publisher.subscribe(new Subscriber() {
*
* public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
*
*
* public void onNext(software.amazon.awssdk.services.codeartifact.model.ListRepositoriesResponse 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
* {@link #listRepositories(software.amazon.awssdk.services.codeartifact.model.ListRepositoriesRequest)}
* operation.
*
*
* @param listRepositoriesRequest
* @return A custom publisher that can be subscribed to request a stream of response pages.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException The operation did not succeed because of an unauthorized access attempt.
* - InternalServerException The operation did not succeed because of an error that occurred inside AWS
* CodeArtifact.
* - ThrottlingException The operation did not succeed because too many requests are sent to the service.
* - ValidationException The operation did not succeed because a parameter in the request was sent with an
* invalid value.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CodeartifactException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CodeartifactAsyncClient.ListRepositories
* @see AWS
* API Documentation
*/
default ListRepositoriesPublisher listRepositoriesPaginator(ListRepositoriesRequest listRepositoriesRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Returns a list of RepositorySummary objects. Each RepositorySummary
contains information about a repository in
* the specified AWS account and that matches the input parameters.
*
*
*
* This is a variant of
* {@link #listRepositories(software.amazon.awssdk.services.codeartifact.model.ListRepositoriesRequest)} 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
* {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe
* method will result in a new {@link org.reactivestreams.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
*
*
* {@code
* software.amazon.awssdk.services.codeartifact.paginators.ListRepositoriesPublisher publisher = client.listRepositoriesPaginator(request);
* CompletableFuture future = publisher.subscribe(res -> { // Do something with the response });
* future.get();
* }
*
*
* 2) Using a custom subscriber
*
*
* {@code
* software.amazon.awssdk.services.codeartifact.paginators.ListRepositoriesPublisher publisher = client.listRepositoriesPaginator(request);
* publisher.subscribe(new Subscriber() {
*
* public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
*
*
* public void onNext(software.amazon.awssdk.services.codeartifact.model.ListRepositoriesResponse 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
* {@link #listRepositories(software.amazon.awssdk.services.codeartifact.model.ListRepositoriesRequest)}
* operation.
*
*
* This is a convenience which creates an instance of the {@link ListRepositoriesRequest.Builder} avoiding the need
* to create one manually via {@link ListRepositoriesRequest#builder()}
*
*
* @param listRepositoriesRequest
* A {@link Consumer} that will call methods on {@link ListRepositoriesRequest.Builder} to create a request.
* @return A custom publisher that can be subscribed to request a stream of response pages.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException The operation did not succeed because of an unauthorized access attempt.
* - InternalServerException The operation did not succeed because of an error that occurred inside AWS
* CodeArtifact.
* - ThrottlingException The operation did not succeed because too many requests are sent to the service.
* - ValidationException The operation did not succeed because a parameter in the request was sent with an
* invalid value.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CodeartifactException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CodeartifactAsyncClient.ListRepositories
* @see AWS
* API Documentation
*/
default ListRepositoriesPublisher listRepositoriesPaginator(Consumer listRepositoriesRequest) {
return listRepositoriesPaginator(ListRepositoriesRequest.builder().applyMutation(listRepositoriesRequest).build());
}
/**
*
* Gets information about AWS tags for a specified Amazon Resource Name (ARN) in AWS CodeArtifact.
*
*
* @param listTagsForResourceRequest
* @return A Java Future containing the result of the ListTagsForResource operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException The operation did not succeed because of an unauthorized access attempt.
* - ResourceNotFoundException The operation did not succeed because the resource requested is not found
* in the service.
* - ThrottlingException The operation did not succeed because too many requests are sent to the service.
* - ValidationException The operation did not succeed because a parameter in the request was sent with an
* invalid value.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CodeartifactException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CodeartifactAsyncClient.ListTagsForResource
* @see AWS API Documentation
*/
default CompletableFuture listTagsForResource(
ListTagsForResourceRequest listTagsForResourceRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Gets information about AWS tags for a specified Amazon Resource Name (ARN) in AWS CodeArtifact.
*
*
*
* This is a convenience which creates an instance of the {@link ListTagsForResourceRequest.Builder} avoiding the
* need to create one manually via {@link ListTagsForResourceRequest#builder()}
*
*
* @param listTagsForResourceRequest
* A {@link Consumer} that will call methods on {@link ListTagsForResourceRequest.Builder} to create a
* request.
* @return A Java Future containing the result of the ListTagsForResource operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException The operation did not succeed because of an unauthorized access attempt.
* - ResourceNotFoundException The operation did not succeed because the resource requested is not found
* in the service.
* - ThrottlingException The operation did not succeed because too many requests are sent to the service.
* - ValidationException The operation did not succeed because a parameter in the request was sent with an
* invalid value.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CodeartifactException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CodeartifactAsyncClient.ListTagsForResource
* @see AWS API Documentation
*/
default CompletableFuture listTagsForResource(
Consumer listTagsForResourceRequest) {
return listTagsForResource(ListTagsForResourceRequest.builder().applyMutation(listTagsForResourceRequest).build());
}
/**
*
* Sets a resource policy on a domain that specifies permissions to access it.
*
*
* When you call PutDomainPermissionsPolicy
, the resource policy on the domain is ignored when
* evaluting permissions. This ensures that the owner of a domain cannot lock themselves out of the domain, which
* would prevent them from being able to update the resource policy.
*
*
* @param putDomainPermissionsPolicyRequest
* @return A Java Future containing the result of the PutDomainPermissionsPolicy operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException The operation did not succeed because of an unauthorized access attempt.
* - ConflictException The operation did not succeed because prerequisites are not met.
* - InternalServerException The operation did not succeed because of an error that occurred inside AWS
* CodeArtifact.
* - ResourceNotFoundException The operation did not succeed because the resource requested is not found
* in the service.
* - ServiceQuotaExceededException The operation did not succeed because it would have exceeded a service
* limit for your account.
* - ThrottlingException The operation did not succeed because too many requests are sent to the service.
* - ValidationException The operation did not succeed because a parameter in the request was sent with an
* invalid value.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CodeartifactException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CodeartifactAsyncClient.PutDomainPermissionsPolicy
* @see AWS API Documentation
*/
default CompletableFuture putDomainPermissionsPolicy(
PutDomainPermissionsPolicyRequest putDomainPermissionsPolicyRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Sets a resource policy on a domain that specifies permissions to access it.
*
*
* When you call PutDomainPermissionsPolicy
, the resource policy on the domain is ignored when
* evaluting permissions. This ensures that the owner of a domain cannot lock themselves out of the domain, which
* would prevent them from being able to update the resource policy.
*
*
*
* This is a convenience which creates an instance of the {@link PutDomainPermissionsPolicyRequest.Builder} avoiding
* the need to create one manually via {@link PutDomainPermissionsPolicyRequest#builder()}
*
*
* @param putDomainPermissionsPolicyRequest
* A {@link Consumer} that will call methods on {@link PutDomainPermissionsPolicyRequest.Builder} to create a
* request.
* @return A Java Future containing the result of the PutDomainPermissionsPolicy operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException The operation did not succeed because of an unauthorized access attempt.
* - ConflictException The operation did not succeed because prerequisites are not met.
* - InternalServerException The operation did not succeed because of an error that occurred inside AWS
* CodeArtifact.
* - ResourceNotFoundException The operation did not succeed because the resource requested is not found
* in the service.
* - ServiceQuotaExceededException The operation did not succeed because it would have exceeded a service
* limit for your account.
* - ThrottlingException The operation did not succeed because too many requests are sent to the service.
* - ValidationException The operation did not succeed because a parameter in the request was sent with an
* invalid value.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CodeartifactException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CodeartifactAsyncClient.PutDomainPermissionsPolicy
* @see AWS API Documentation
*/
default CompletableFuture putDomainPermissionsPolicy(
Consumer putDomainPermissionsPolicyRequest) {
return putDomainPermissionsPolicy(PutDomainPermissionsPolicyRequest.builder()
.applyMutation(putDomainPermissionsPolicyRequest).build());
}
/**
*
* Sets the resource policy on a repository that specifies permissions to access it.
*
*
* When you call PutRepositoryPermissionsPolicy
, the resource policy on the repository is ignored when
* evaluting permissions. This ensures that the owner of a repository cannot lock themselves out of the repository,
* which would prevent them from being able to update the resource policy.
*
*
* @param putRepositoryPermissionsPolicyRequest
* @return A Java Future containing the result of the PutRepositoryPermissionsPolicy operation returned by the
* service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException The operation did not succeed because of an unauthorized access attempt.
* - ConflictException The operation did not succeed because prerequisites are not met.
* - InternalServerException The operation did not succeed because of an error that occurred inside AWS
* CodeArtifact.
* - ResourceNotFoundException The operation did not succeed because the resource requested is not found
* in the service.
* - ServiceQuotaExceededException The operation did not succeed because it would have exceeded a service
* limit for your account.
* - ThrottlingException The operation did not succeed because too many requests are sent to the service.
* - ValidationException The operation did not succeed because a parameter in the request was sent with an
* invalid value.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CodeartifactException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CodeartifactAsyncClient.PutRepositoryPermissionsPolicy
* @see AWS API Documentation
*/
default CompletableFuture putRepositoryPermissionsPolicy(
PutRepositoryPermissionsPolicyRequest putRepositoryPermissionsPolicyRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Sets the resource policy on a repository that specifies permissions to access it.
*
*
* When you call PutRepositoryPermissionsPolicy
, the resource policy on the repository is ignored when
* evaluting permissions. This ensures that the owner of a repository cannot lock themselves out of the repository,
* which would prevent them from being able to update the resource policy.
*
*
*
* This is a convenience which creates an instance of the {@link PutRepositoryPermissionsPolicyRequest.Builder}
* avoiding the need to create one manually via {@link PutRepositoryPermissionsPolicyRequest#builder()}
*
*
* @param putRepositoryPermissionsPolicyRequest
* A {@link Consumer} that will call methods on {@link PutRepositoryPermissionsPolicyRequest.Builder} to
* create a request.
* @return A Java Future containing the result of the PutRepositoryPermissionsPolicy operation returned by the
* service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException The operation did not succeed because of an unauthorized access attempt.
* - ConflictException The operation did not succeed because prerequisites are not met.
* - InternalServerException The operation did not succeed because of an error that occurred inside AWS
* CodeArtifact.
* - ResourceNotFoundException The operation did not succeed because the resource requested is not found
* in the service.
* - ServiceQuotaExceededException The operation did not succeed because it would have exceeded a service
* limit for your account.
* - ThrottlingException The operation did not succeed because too many requests are sent to the service.
* - ValidationException The operation did not succeed because a parameter in the request was sent with an
* invalid value.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CodeartifactException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CodeartifactAsyncClient.PutRepositoryPermissionsPolicy
* @see AWS API Documentation
*/
default CompletableFuture putRepositoryPermissionsPolicy(
Consumer putRepositoryPermissionsPolicyRequest) {
return putRepositoryPermissionsPolicy(PutRepositoryPermissionsPolicyRequest.builder()
.applyMutation(putRepositoryPermissionsPolicyRequest).build());
}
/**
*
* Adds or updates tags for a resource in AWS CodeArtifact.
*
*
* @param tagResourceRequest
* @return A Java Future containing the result of the TagResource operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException The operation did not succeed because of an unauthorized access attempt.
* - ResourceNotFoundException The operation did not succeed because the resource requested is not found
* in the service.
* - ServiceQuotaExceededException The operation did not succeed because it would have exceeded a service
* limit for your account.
* - ThrottlingException The operation did not succeed because too many requests are sent to the service.
* - ValidationException The operation did not succeed because a parameter in the request was sent with an
* invalid value.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CodeartifactException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CodeartifactAsyncClient.TagResource
* @see AWS API
* Documentation
*/
default CompletableFuture tagResource(TagResourceRequest tagResourceRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Adds or updates tags for a resource in AWS CodeArtifact.
*
*
*
* This is a convenience which creates an instance of the {@link TagResourceRequest.Builder} avoiding the need to
* create one manually via {@link TagResourceRequest#builder()}
*
*
* @param tagResourceRequest
* A {@link Consumer} that will call methods on {@link TagResourceRequest.Builder} to create a request.
* @return A Java Future containing the result of the TagResource operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException The operation did not succeed because of an unauthorized access attempt.
* - ResourceNotFoundException The operation did not succeed because the resource requested is not found
* in the service.
* - ServiceQuotaExceededException The operation did not succeed because it would have exceeded a service
* limit for your account.
* - ThrottlingException The operation did not succeed because too many requests are sent to the service.
* - ValidationException The operation did not succeed because a parameter in the request was sent with an
* invalid value.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CodeartifactException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CodeartifactAsyncClient.TagResource
* @see AWS API
* Documentation
*/
default CompletableFuture tagResource(Consumer tagResourceRequest) {
return tagResource(TagResourceRequest.builder().applyMutation(tagResourceRequest).build());
}
/**
*
* Removes tags from a resource in AWS CodeArtifact.
*
*
* @param untagResourceRequest
* @return A Java Future containing the result of the UntagResource operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException The operation did not succeed because of an unauthorized access attempt.
* - ResourceNotFoundException The operation did not succeed because the resource requested is not found
* in the service.
* - ThrottlingException The operation did not succeed because too many requests are sent to the service.
* - ValidationException The operation did not succeed because a parameter in the request was sent with an
* invalid value.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CodeartifactException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CodeartifactAsyncClient.UntagResource
* @see AWS
* API Documentation
*/
default CompletableFuture untagResource(UntagResourceRequest untagResourceRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Removes tags from a resource in AWS CodeArtifact.
*
*
*
* This is a convenience which creates an instance of the {@link UntagResourceRequest.Builder} avoiding the need to
* create one manually via {@link UntagResourceRequest#builder()}
*
*
* @param untagResourceRequest
* A {@link Consumer} that will call methods on {@link UntagResourceRequest.Builder} to create a request.
* @return A Java Future containing the result of the UntagResource operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException The operation did not succeed because of an unauthorized access attempt.
* - ResourceNotFoundException The operation did not succeed because the resource requested is not found
* in the service.
* - ThrottlingException The operation did not succeed because too many requests are sent to the service.
* - ValidationException The operation did not succeed because a parameter in the request was sent with an
* invalid value.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CodeartifactException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CodeartifactAsyncClient.UntagResource
* @see AWS
* API Documentation
*/
default CompletableFuture untagResource(Consumer untagResourceRequest) {
return untagResource(UntagResourceRequest.builder().applyMutation(untagResourceRequest).build());
}
/**
*
* Updates the status of one or more versions of a package.
*
*
* @param updatePackageVersionsStatusRequest
* @return A Java Future containing the result of the UpdatePackageVersionsStatus operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException The operation did not succeed because of an unauthorized access attempt.
* - ConflictException The operation did not succeed because prerequisites are not met.
* - InternalServerException The operation did not succeed because of an error that occurred inside AWS
* CodeArtifact.
* - ResourceNotFoundException The operation did not succeed because the resource requested is not found
* in the service.
* - ThrottlingException The operation did not succeed because too many requests are sent to the service.
* - ValidationException The operation did not succeed because a parameter in the request was sent with an
* invalid value.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CodeartifactException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CodeartifactAsyncClient.UpdatePackageVersionsStatus
* @see AWS API Documentation
*/
default CompletableFuture updatePackageVersionsStatus(
UpdatePackageVersionsStatusRequest updatePackageVersionsStatusRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Updates the status of one or more versions of a package.
*
*
*
* This is a convenience which creates an instance of the {@link UpdatePackageVersionsStatusRequest.Builder}
* avoiding the need to create one manually via {@link UpdatePackageVersionsStatusRequest#builder()}
*
*
* @param updatePackageVersionsStatusRequest
* A {@link Consumer} that will call methods on {@link UpdatePackageVersionsStatusRequest.Builder} to create
* a request.
* @return A Java Future containing the result of the UpdatePackageVersionsStatus operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException The operation did not succeed because of an unauthorized access attempt.
* - ConflictException The operation did not succeed because prerequisites are not met.
* - InternalServerException The operation did not succeed because of an error that occurred inside AWS
* CodeArtifact.
* - ResourceNotFoundException The operation did not succeed because the resource requested is not found
* in the service.
* - ThrottlingException The operation did not succeed because too many requests are sent to the service.
* - ValidationException The operation did not succeed because a parameter in the request was sent with an
* invalid value.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CodeartifactException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CodeartifactAsyncClient.UpdatePackageVersionsStatus
* @see AWS API Documentation
*/
default CompletableFuture updatePackageVersionsStatus(
Consumer updatePackageVersionsStatusRequest) {
return updatePackageVersionsStatus(UpdatePackageVersionsStatusRequest.builder()
.applyMutation(updatePackageVersionsStatusRequest).build());
}
/**
*
* Update the properties of a repository.
*
*
* @param updateRepositoryRequest
* @return A Java Future containing the result of the UpdateRepository operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException The operation did not succeed because of an unauthorized access attempt.
* - ConflictException The operation did not succeed because prerequisites are not met.
* - InternalServerException The operation did not succeed because of an error that occurred inside AWS
* CodeArtifact.
* - ResourceNotFoundException The operation did not succeed because the resource requested is not found
* in the service.
* - ServiceQuotaExceededException The operation did not succeed because it would have exceeded a service
* limit for your account.
* - ThrottlingException The operation did not succeed because too many requests are sent to the service.
* - ValidationException The operation did not succeed because a parameter in the request was sent with an
* invalid value.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CodeartifactException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CodeartifactAsyncClient.UpdateRepository
* @see AWS
* API Documentation
*/
default CompletableFuture updateRepository(UpdateRepositoryRequest updateRepositoryRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Update the properties of a repository.
*
*
*
* This is a convenience which creates an instance of the {@link UpdateRepositoryRequest.Builder} avoiding the need
* to create one manually via {@link UpdateRepositoryRequest#builder()}
*
*
* @param updateRepositoryRequest
* A {@link Consumer} that will call methods on {@link UpdateRepositoryRequest.Builder} to create a request.
* @return A Java Future containing the result of the UpdateRepository operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException The operation did not succeed because of an unauthorized access attempt.
* - ConflictException The operation did not succeed because prerequisites are not met.
* - InternalServerException The operation did not succeed because of an error that occurred inside AWS
* CodeArtifact.
* - ResourceNotFoundException The operation did not succeed because the resource requested is not found
* in the service.
* - ServiceQuotaExceededException The operation did not succeed because it would have exceeded a service
* limit for your account.
* - ThrottlingException The operation did not succeed because too many requests are sent to the service.
* - ValidationException The operation did not succeed because a parameter in the request was sent with an
* invalid value.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CodeartifactException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CodeartifactAsyncClient.UpdateRepository
* @see AWS
* API Documentation
*/
default CompletableFuture updateRepository(
Consumer updateRepositoryRequest) {
return updateRepository(UpdateRepositoryRequest.builder().applyMutation(updateRepositoryRequest).build());
}
}