Struct aws_sdk_ecrpublic::Client
source · [−]pub struct Client { /* private fields */ }
Expand description
Client for Amazon Elastic Container Registry Public
Client for invoking operations on Amazon Elastic Container Registry Public. Each operation on Amazon Elastic Container Registry Public is a method on this
this struct. .send()
MUST be invoked on the generated operations to dispatch the request to the service.
Examples
Constructing a client and invoking an operation
// create a shared configuration. This can be used & shared between multiple service clients.
let shared_config = aws_config::load_from_env().await;
let client = aws_sdk_ecrpublic::Client::new(&shared_config);
// invoke an operation
/* let rsp = client
.<operation_name>().
.<param>("some value")
.send().await; */
Constructing a client with custom configuration
use aws_config::RetryConfig;
let shared_config = aws_config::load_from_env().await;
let config = aws_sdk_ecrpublic::config::Builder::from(&shared_config)
.retry_config(RetryConfig::disabled())
.build();
let client = aws_sdk_ecrpublic::Client::from_conf(config);
Implementations
sourceimpl Client
impl Client
sourcepub fn with_config(
client: Client<DynConnector, DynMiddleware<DynConnector>>,
conf: Config
) -> Self
pub fn with_config(
client: Client<DynConnector, DynMiddleware<DynConnector>>,
conf: Config
) -> Self
Creates a client with the given service configuration.
sourceimpl Client
impl Client
sourcepub fn batch_check_layer_availability(&self) -> BatchCheckLayerAvailability
pub fn batch_check_layer_availability(&self) -> BatchCheckLayerAvailability
Constructs a fluent builder for the BatchCheckLayerAvailability
operation.
- The fluent builder is configurable:
registry_id(impl Into<String>)
/set_registry_id(Option<String>)
:The AWS account ID associated with the public registry that contains the image layers to check. If you do not specify a registry, the default public registry is assumed.
repository_name(impl Into<String>)
/set_repository_name(Option<String>)
:The name of the repository that is associated with the image layers to check.
layer_digests(Vec<String>)
/set_layer_digests(Option<Vec<String>>)
:The digests of the image layers to check.
- On success, responds with
BatchCheckLayerAvailabilityOutput
with field(s):layers(Option<Vec<Layer>>)
:A list of image layer objects corresponding to the image layer references in the request.
failures(Option<Vec<LayerFailure>>)
:Any failures associated with the call.
- On failure, responds with
SdkError<BatchCheckLayerAvailabilityError>
sourcepub fn batch_delete_image(&self) -> BatchDeleteImage
pub fn batch_delete_image(&self) -> BatchDeleteImage
Constructs a fluent builder for the BatchDeleteImage
operation.
- The fluent builder is configurable:
registry_id(impl Into<String>)
/set_registry_id(Option<String>)
:The AWS account ID associated with the registry that contains the image to delete. If you do not specify a registry, the default public registry is assumed.
repository_name(impl Into<String>)
/set_repository_name(Option<String>)
:The repository in a public registry that contains the image to delete.
image_ids(Vec<ImageIdentifier>)
/set_image_ids(Option<Vec<ImageIdentifier>>)
:A list of image ID references that correspond to images to delete. The format of the
imageIds
reference isimageTag=tag
orimageDigest=digest
.
- On success, responds with
BatchDeleteImageOutput
with field(s):image_ids(Option<Vec<ImageIdentifier>>)
:The image IDs of the deleted images.
failures(Option<Vec<ImageFailure>>)
:Any failures associated with the call.
- On failure, responds with
SdkError<BatchDeleteImageError>
sourcepub fn complete_layer_upload(&self) -> CompleteLayerUpload
pub fn complete_layer_upload(&self) -> CompleteLayerUpload
Constructs a fluent builder for the CompleteLayerUpload
operation.
- The fluent builder is configurable:
registry_id(impl Into<String>)
/set_registry_id(Option<String>)
:The AWS account ID associated with the registry to which to upload layers. If you do not specify a registry, the default public registry is assumed.
repository_name(impl Into<String>)
/set_repository_name(Option<String>)
:The name of the repository in a public registry to associate with the image layer.
upload_id(impl Into<String>)
/set_upload_id(Option<String>)
:The upload ID from a previous
InitiateLayerUpload
operation to associate with the image layer.layer_digests(Vec<String>)
/set_layer_digests(Option<Vec<String>>)
:The
sha256
digest of the image layer.
- On success, responds with
CompleteLayerUploadOutput
with field(s):registry_id(Option<String>)
:The public registry ID associated with the request.
repository_name(Option<String>)
:The repository name associated with the request.
upload_id(Option<String>)
:The upload ID associated with the layer.
layer_digest(Option<String>)
:The
sha256
digest of the image layer.
- On failure, responds with
SdkError<CompleteLayerUploadError>
sourcepub fn create_repository(&self) -> CreateRepository
pub fn create_repository(&self) -> CreateRepository
Constructs a fluent builder for the CreateRepository
operation.
- The fluent builder is configurable:
repository_name(impl Into<String>)
/set_repository_name(Option<String>)
:The name to use for the repository. This appears publicly in the Amazon ECR Public Gallery. The repository name may be specified on its own (such as
nginx-web-app
) or it can be prepended with a namespace to group the repository into a category (such asproject-a/nginx-web-app
).catalog_data(RepositoryCatalogDataInput)
/set_catalog_data(Option<RepositoryCatalogDataInput>)
:The details about the repository that are publicly visible in the Amazon ECR Public Gallery.
tags(Vec<Tag>)
/set_tags(Option<Vec<Tag>>)
:The metadata that you apply to the repository to help you categorize and organize them. Each tag consists of a key and an optional value, both of which you define. Tag keys can have a maximum character length of 128 characters, and tag values can have a maximum length of 256 characters.
- On success, responds with
CreateRepositoryOutput
with field(s):repository(Option<Repository>)
:The repository that was created.
catalog_data(Option<RepositoryCatalogData>)
:The catalog data for a repository. This data is publicly visible in the Amazon ECR Public Gallery.
- On failure, responds with
SdkError<CreateRepositoryError>
sourcepub fn delete_repository(&self) -> DeleteRepository
pub fn delete_repository(&self) -> DeleteRepository
Constructs a fluent builder for the DeleteRepository
operation.
- The fluent builder is configurable:
registry_id(impl Into<String>)
/set_registry_id(Option<String>)
:The AWS account ID associated with the public registry that contains the repository to delete. If you do not specify a registry, the default public registry is assumed.
repository_name(impl Into<String>)
/set_repository_name(Option<String>)
:The name of the repository to delete.
force(bool)
/set_force(bool)
:If a repository contains images, forces the deletion.
- On success, responds with
DeleteRepositoryOutput
with field(s):repository(Option<Repository>)
:The repository that was deleted.
- On failure, responds with
SdkError<DeleteRepositoryError>
sourcepub fn delete_repository_policy(&self) -> DeleteRepositoryPolicy
pub fn delete_repository_policy(&self) -> DeleteRepositoryPolicy
Constructs a fluent builder for the DeleteRepositoryPolicy
operation.
- The fluent builder is configurable:
registry_id(impl Into<String>)
/set_registry_id(Option<String>)
:The AWS account ID associated with the public registry that contains the repository policy to delete. If you do not specify a registry, the default public registry is assumed.
repository_name(impl Into<String>)
/set_repository_name(Option<String>)
:The name of the repository that is associated with the repository policy to delete.
- On success, responds with
DeleteRepositoryPolicyOutput
with field(s):registry_id(Option<String>)
:The registry ID associated with the request.
repository_name(Option<String>)
:The repository name associated with the request.
policy_text(Option<String>)
:The JSON repository policy that was deleted from the repository.
- On failure, responds with
SdkError<DeleteRepositoryPolicyError>
sourcepub fn describe_images(&self) -> DescribeImages
pub fn describe_images(&self) -> DescribeImages
Constructs a fluent builder for the DescribeImages
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
registry_id(impl Into<String>)
/set_registry_id(Option<String>)
:The AWS account ID associated with the public registry that contains the repository in which to describe images. If you do not specify a registry, the default public registry is assumed.
repository_name(impl Into<String>)
/set_repository_name(Option<String>)
:The repository that contains the images to describe.
image_ids(Vec<ImageIdentifier>)
/set_image_ids(Option<Vec<ImageIdentifier>>)
:The list of image IDs for the requested repository.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:The
nextToken
value returned from a previous paginatedDescribeImages
request wheremaxResults
was used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned thenextToken
value. This value isnull
when there are no more results to return. This option cannot be used when you specify images withimageIds
.max_results(i32)
/set_max_results(Option<i32>)
:The maximum number of repository results returned by
DescribeImages
in paginated output. When this parameter is used,DescribeImages
only returnsmaxResults
results in a single page along with anextToken
response element. The remaining results of the initial request can be seen by sending anotherDescribeImages
request with the returnednextToken
value. This value can be between 1 and 1000. If this parameter is not used, thenDescribeImages
returns up to 100 results and anextToken
value, if applicable. This option cannot be used when you specify images withimageIds
.
- On success, responds with
DescribeImagesOutput
with field(s):image_details(Option<Vec<ImageDetail>>)
:A list of
ImageDetail
objects that contain data about the image.next_token(Option<String>)
:The
nextToken
value to include in a futureDescribeImages
request. When the results of aDescribeImages
request exceedmaxResults
, this value can be used to retrieve the next page of results. This value isnull
when there are no more results to return.
- On failure, responds with
SdkError<DescribeImagesError>
Constructs a fluent builder for the DescribeImageTags
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
registry_id(impl Into<String>)
/set_registry_id(Option<String>)
:The AWS account ID associated with the public registry that contains the repository in which to describe images. If you do not specify a registry, the default public registry is assumed.
repository_name(impl Into<String>)
/set_repository_name(Option<String>)
:The name of the repository that contains the image tag details to describe.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:The
nextToken
value returned from a previous paginatedDescribeImageTags
request wheremaxResults
was used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned thenextToken
value. This value isnull
when there are no more results to return. This option cannot be used when you specify images withimageIds
.max_results(i32)
/set_max_results(Option<i32>)
:The maximum number of repository results returned by
DescribeImageTags
in paginated output. When this parameter is used,DescribeImageTags
only returnsmaxResults
results in a single page along with anextToken
response element. The remaining results of the initial request can be seen by sending anotherDescribeImageTags
request with the returnednextToken
value. This value can be between 1 and 1000. If this parameter is not used, thenDescribeImageTags
returns up to 100 results and anextToken
value, if applicable. This option cannot be used when you specify images withimageIds
.
- On success, responds with
DescribeImageTagsOutput
with field(s):image_tag_details(Option<Vec<ImageTagDetail>>)
:The image tag details for the images in the requested repository.
next_token(Option<String>)
:The
nextToken
value to include in a futureDescribeImageTags
request. When the results of aDescribeImageTags
request exceedmaxResults
, this value can be used to retrieve the next page of results. This value isnull
when there are no more results to return.
- On failure, responds with
SdkError<DescribeImageTagsError>
sourcepub fn describe_registries(&self) -> DescribeRegistries
pub fn describe_registries(&self) -> DescribeRegistries
Constructs a fluent builder for the DescribeRegistries
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
next_token(impl Into<String>)
/set_next_token(Option<String>)
:The
nextToken
value returned from a previous paginatedDescribeRegistries
request wheremaxResults
was used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned thenextToken
value. This value isnull
when there are no more results to return.This token should be treated as an opaque identifier that is only used to retrieve the next items in a list and not for other programmatic purposes.
max_results(i32)
/set_max_results(Option<i32>)
:The maximum number of repository results returned by
DescribeRegistries
in paginated output. When this parameter is used,DescribeRegistries
only returnsmaxResults
results in a single page along with anextToken
response element. The remaining results of the initial request can be seen by sending anotherDescribeRegistries
request with the returnednextToken
value. This value can be between 1 and 1000. If this parameter is not used, thenDescribeRegistries
returns up to 100 results and anextToken
value, if applicable.
- On success, responds with
DescribeRegistriesOutput
with field(s):registries(Option<Vec<Registry>>)
:An object containing the details for a public registry.
next_token(Option<String>)
:The
nextToken
value to include in a futureDescribeRepositories
request. When the results of aDescribeRepositories
request exceedmaxResults
, this value can be used to retrieve the next page of results. This value isnull
when there are no more results to return.
- On failure, responds with
SdkError<DescribeRegistriesError>
sourcepub fn describe_repositories(&self) -> DescribeRepositories
pub fn describe_repositories(&self) -> DescribeRepositories
Constructs a fluent builder for the DescribeRepositories
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
registry_id(impl Into<String>)
/set_registry_id(Option<String>)
:The AWS account ID associated with the registry that contains the repositories to be described. If you do not specify a registry, the default public registry is assumed.
repository_names(Vec<String>)
/set_repository_names(Option<Vec<String>>)
:A list of repositories to describe. If this parameter is omitted, then all repositories in a registry are described.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:The
nextToken
value returned from a previous paginatedDescribeRepositories
request wheremaxResults
was used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned thenextToken
value. This value isnull
when there are no more results to return. This option cannot be used when you specify repositories withrepositoryNames
.This token should be treated as an opaque identifier that is only used to retrieve the next items in a list and not for other programmatic purposes.
max_results(i32)
/set_max_results(Option<i32>)
:The maximum number of repository results returned by
DescribeRepositories
in paginated output. When this parameter is used,DescribeRepositories
only returnsmaxResults
results in a single page along with anextToken
response element. The remaining results of the initial request can be seen by sending anotherDescribeRepositories
request with the returnednextToken
value. This value can be between 1 and 1000. If this parameter is not used, thenDescribeRepositories
returns up to 100 results and anextToken
value, if applicable. This option cannot be used when you specify repositories withrepositoryNames
.
- On success, responds with
DescribeRepositoriesOutput
with field(s):repositories(Option<Vec<Repository>>)
:A list of repository objects corresponding to valid repositories.
next_token(Option<String>)
:The
nextToken
value to include in a futureDescribeRepositories
request. When the results of aDescribeRepositories
request exceedmaxResults
, this value can be used to retrieve the next page of results. This value isnull
when there are no more results to return.
- On failure, responds with
SdkError<DescribeRepositoriesError>
Constructs a fluent builder for the GetAuthorizationToken
operation.
- The fluent builder takes no input, just
send
it. - On success, responds with
GetAuthorizationTokenOutput
with field(s):authorization_data(Option<AuthorizationData>)
:An authorization token data object that corresponds to a public registry.
- On failure, responds with
SdkError<GetAuthorizationTokenError>
sourcepub fn get_registry_catalog_data(&self) -> GetRegistryCatalogData
pub fn get_registry_catalog_data(&self) -> GetRegistryCatalogData
Constructs a fluent builder for the GetRegistryCatalogData
operation.
- The fluent builder takes no input, just
send
it. - On success, responds with
GetRegistryCatalogDataOutput
with field(s):registry_catalog_data(Option<RegistryCatalogData>)
:The catalog metadata for the public registry.
- On failure, responds with
SdkError<GetRegistryCatalogDataError>
sourcepub fn get_repository_catalog_data(&self) -> GetRepositoryCatalogData
pub fn get_repository_catalog_data(&self) -> GetRepositoryCatalogData
Constructs a fluent builder for the GetRepositoryCatalogData
operation.
- The fluent builder is configurable:
registry_id(impl Into<String>)
/set_registry_id(Option<String>)
:The AWS account ID associated with the registry that contains the repositories to be described. If you do not specify a registry, the default public registry is assumed.
repository_name(impl Into<String>)
/set_repository_name(Option<String>)
:The name of the repository to retrieve the catalog metadata for.
- On success, responds with
GetRepositoryCatalogDataOutput
with field(s):catalog_data(Option<RepositoryCatalogData>)
:The catalog metadata for the repository.
- On failure, responds with
SdkError<GetRepositoryCatalogDataError>
sourcepub fn get_repository_policy(&self) -> GetRepositoryPolicy
pub fn get_repository_policy(&self) -> GetRepositoryPolicy
Constructs a fluent builder for the GetRepositoryPolicy
operation.
- The fluent builder is configurable:
registry_id(impl Into<String>)
/set_registry_id(Option<String>)
:The AWS account ID associated with the public registry that contains the repository. If you do not specify a registry, the default public registry is assumed.
repository_name(impl Into<String>)
/set_repository_name(Option<String>)
:The name of the repository with the policy to retrieve.
- On success, responds with
GetRepositoryPolicyOutput
with field(s):registry_id(Option<String>)
:The registry ID associated with the request.
repository_name(Option<String>)
:The repository name associated with the request.
policy_text(Option<String>)
:The repository policy text associated with the repository. The policy text will be in JSON format.
- On failure, responds with
SdkError<GetRepositoryPolicyError>
sourcepub fn initiate_layer_upload(&self) -> InitiateLayerUpload
pub fn initiate_layer_upload(&self) -> InitiateLayerUpload
Constructs a fluent builder for the InitiateLayerUpload
operation.
- The fluent builder is configurable:
registry_id(impl Into<String>)
/set_registry_id(Option<String>)
:The AWS account ID associated with the registry to which you intend to upload layers. If you do not specify a registry, the default public registry is assumed.
repository_name(impl Into<String>)
/set_repository_name(Option<String>)
:The name of the repository to which you intend to upload layers.
- On success, responds with
InitiateLayerUploadOutput
with field(s):upload_id(Option<String>)
:The upload ID for the layer upload. This parameter is passed to further
UploadLayerPart
andCompleteLayerUpload
operations.part_size(Option<i64>)
:The size, in bytes, that Amazon ECR expects future layer part uploads to be.
- On failure, responds with
SdkError<InitiateLayerUploadError>
Constructs a fluent builder for the ListTagsForResource
operation.
- The fluent builder is configurable:
resource_arn(impl Into<String>)
/set_resource_arn(Option<String>)
:The Amazon Resource Name (ARN) that identifies the resource for which to list the tags. Currently, the supported resource is an Amazon ECR Public repository.
- On success, responds with
ListTagsForResourceOutput
with field(s):tags(Option<Vec<Tag>>)
:The tags for the resource.
- On failure, responds with
SdkError<ListTagsForResourceError>
sourcepub fn put_image(&self) -> PutImage
pub fn put_image(&self) -> PutImage
Constructs a fluent builder for the PutImage
operation.
- The fluent builder is configurable:
registry_id(impl Into<String>)
/set_registry_id(Option<String>)
:The AWS account ID associated with the public registry that contains the repository in which to put the image. If you do not specify a registry, the default public registry is assumed.
repository_name(impl Into<String>)
/set_repository_name(Option<String>)
:The name of the repository in which to put the image.
image_manifest(impl Into<String>)
/set_image_manifest(Option<String>)
:The image manifest corresponding to the image to be uploaded.
image_manifest_media_type(impl Into<String>)
/set_image_manifest_media_type(Option<String>)
:The media type of the image manifest. If you push an image manifest that does not contain the
mediaType
field, you must specify theimageManifestMediaType
in the request.image_tag(impl Into<String>)
/set_image_tag(Option<String>)
:The tag to associate with the image. This parameter is required for images that use the Docker Image Manifest V2 Schema 2 or Open Container Initiative (OCI) formats.
image_digest(impl Into<String>)
/set_image_digest(Option<String>)
:The image digest of the image manifest corresponding to the image.
- On success, responds with
PutImageOutput
with field(s):image(Option<Image>)
:Details of the image uploaded.
- On failure, responds with
SdkError<PutImageError>
sourcepub fn put_registry_catalog_data(&self) -> PutRegistryCatalogData
pub fn put_registry_catalog_data(&self) -> PutRegistryCatalogData
Constructs a fluent builder for the PutRegistryCatalogData
operation.
- The fluent builder is configurable:
display_name(impl Into<String>)
/set_display_name(Option<String>)
:The display name for a public registry. The display name is shown as the repository author in the Amazon ECR Public Gallery.
The registry display name is only publicly visible in the Amazon ECR Public Gallery for verified accounts.
- On success, responds with
PutRegistryCatalogDataOutput
with field(s):registry_catalog_data(Option<RegistryCatalogData>)
:The catalog data for the public registry.
- On failure, responds with
SdkError<PutRegistryCatalogDataError>
sourcepub fn put_repository_catalog_data(&self) -> PutRepositoryCatalogData
pub fn put_repository_catalog_data(&self) -> PutRepositoryCatalogData
Constructs a fluent builder for the PutRepositoryCatalogData
operation.
- The fluent builder is configurable:
registry_id(impl Into<String>)
/set_registry_id(Option<String>)
:The AWS account ID associated with the public registry the repository is in. If you do not specify a registry, the default public registry is assumed.
repository_name(impl Into<String>)
/set_repository_name(Option<String>)
:The name of the repository to create or update the catalog data for.
catalog_data(RepositoryCatalogDataInput)
/set_catalog_data(Option<RepositoryCatalogDataInput>)
:An object containing the catalog data for a repository. This data is publicly visible in the Amazon ECR Public Gallery.
- On success, responds with
PutRepositoryCatalogDataOutput
with field(s):catalog_data(Option<RepositoryCatalogData>)
:The catalog data for the repository.
- On failure, responds with
SdkError<PutRepositoryCatalogDataError>
sourcepub fn set_repository_policy(&self) -> SetRepositoryPolicy
pub fn set_repository_policy(&self) -> SetRepositoryPolicy
Constructs a fluent builder for the SetRepositoryPolicy
operation.
- The fluent builder is configurable:
registry_id(impl Into<String>)
/set_registry_id(Option<String>)
:The AWS account ID associated with the registry that contains the repository. If you do not specify a registry, the default public registry is assumed.
repository_name(impl Into<String>)
/set_repository_name(Option<String>)
:The name of the repository to receive the policy.
policy_text(impl Into<String>)
/set_policy_text(Option<String>)
:The JSON repository policy text to apply to the repository. For more information, see Amazon ECR Repository Policies in the Amazon Elastic Container Registry User Guide.
force(bool)
/set_force(bool)
:If the policy you are attempting to set on a repository policy would prevent you from setting another policy in the future, you must force the
SetRepositoryPolicy
operation. This is intended to prevent accidental repository lock outs.
- On success, responds with
SetRepositoryPolicyOutput
with field(s):registry_id(Option<String>)
:The registry ID associated with the request.
repository_name(Option<String>)
:The repository name associated with the request.
policy_text(Option<String>)
:The JSON repository policy text applied to the repository.
- On failure, responds with
SdkError<SetRepositoryPolicyError>
sourcepub fn tag_resource(&self) -> TagResource
pub fn tag_resource(&self) -> TagResource
Constructs a fluent builder for the TagResource
operation.
- The fluent builder is configurable:
resource_arn(impl Into<String>)
/set_resource_arn(Option<String>)
:The Amazon Resource Name (ARN) of the resource to which to add tags. Currently, the supported resource is an Amazon ECR Public repository.
tags(Vec<Tag>)
/set_tags(Option<Vec<Tag>>)
:The tags to add to the resource. A tag is an array of key-value pairs. Tag keys can have a maximum character length of 128 characters, and tag values can have a maximum length of 256 characters.
- On success, responds with
TagResourceOutput
- On failure, responds with
SdkError<TagResourceError>
sourcepub fn untag_resource(&self) -> UntagResource
pub fn untag_resource(&self) -> UntagResource
Constructs a fluent builder for the UntagResource
operation.
- The fluent builder is configurable:
resource_arn(impl Into<String>)
/set_resource_arn(Option<String>)
:The Amazon Resource Name (ARN) of the resource from which to delete tags. Currently, the supported resource is an Amazon ECR Public repository.
tag_keys(Vec<String>)
/set_tag_keys(Option<Vec<String>>)
:The keys of the tags to be removed.
- On success, responds with
UntagResourceOutput
- On failure, responds with
SdkError<UntagResourceError>
sourcepub fn upload_layer_part(&self) -> UploadLayerPart
pub fn upload_layer_part(&self) -> UploadLayerPart
Constructs a fluent builder for the UploadLayerPart
operation.
- The fluent builder is configurable:
registry_id(impl Into<String>)
/set_registry_id(Option<String>)
:The AWS account ID associated with the registry to which you are uploading layer parts. If you do not specify a registry, the default public registry is assumed.
repository_name(impl Into<String>)
/set_repository_name(Option<String>)
:The name of the repository to which you are uploading layer parts.
upload_id(impl Into<String>)
/set_upload_id(Option<String>)
:The upload ID from a previous
InitiateLayerUpload
operation to associate with the layer part upload.part_first_byte(i64)
/set_part_first_byte(Option<i64>)
:The position of the first byte of the layer part witin the overall image layer.
part_last_byte(i64)
/set_part_last_byte(Option<i64>)
:The position of the last byte of the layer part within the overall image layer.
layer_part_blob(Blob)
/set_layer_part_blob(Option<Blob>)
:The base64-encoded layer part payload.
- On success, responds with
UploadLayerPartOutput
with field(s):registry_id(Option<String>)
:The registry ID associated with the request.
repository_name(Option<String>)
:The repository name associated with the request.
upload_id(Option<String>)
:The upload ID associated with the request.
last_byte_received(Option<i64>)
:The integer value of the last byte received in the request.
- On failure, responds with
SdkError<UploadLayerPartError>
sourceimpl Client
impl Client
sourcepub fn from_conf_conn<C, E>(conf: Config, conn: C) -> Self where
C: SmithyConnector<Error = E> + Send + 'static,
E: Into<ConnectorError>,
pub fn from_conf_conn<C, E>(conf: Config, conn: C) -> Self where
C: SmithyConnector<Error = E> + Send + 'static,
E: Into<ConnectorError>,
Creates a client with the given service config and connector override.
Trait Implementations
sourceimpl From<Client<DynConnector, DynMiddleware<DynConnector>, Standard>> for Client
impl From<Client<DynConnector, DynMiddleware<DynConnector>, Standard>> for Client
sourcefn from(client: Client<DynConnector, DynMiddleware<DynConnector>>) -> Self
fn from(client: Client<DynConnector, DynMiddleware<DynConnector>>) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl !UnwindSafe for Client
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more