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

Creates a client with the given service configuration.

Returns the client’s configuration.

Constructs a fluent builder for the BatchCheckLayerAvailability operation.

Constructs a fluent builder for the BatchDeleteImage operation.

Constructs a fluent builder for the CompleteLayerUpload operation.

Constructs a fluent builder for the CreateRepository operation.

Constructs a fluent builder for the DeleteRepository operation.

Constructs a fluent builder for the DeleteRepositoryPolicy operation.

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 paginated DescribeImages request where maxResults was used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned the nextToken value. This value is null when there are no more results to return. This option cannot be used when you specify images with imageIds.

    • 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 returns maxResults results in a single page along with a nextToken response element. The remaining results of the initial request can be seen by sending another DescribeImages request with the returned nextToken value. This value can be between 1 and 1000. If this parameter is not used, then DescribeImages returns up to 100 results and a nextToken value, if applicable. This option cannot be used when you specify images with imageIds.

  • 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 future DescribeImages request. When the results of a DescribeImages request exceed maxResults, this value can be used to retrieve the next page of results. This value is null 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 paginated DescribeImageTags request where maxResults was used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned the nextToken value. This value is null when there are no more results to return. This option cannot be used when you specify images with imageIds.

    • 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 returns maxResults results in a single page along with a nextToken response element. The remaining results of the initial request can be seen by sending another DescribeImageTags request with the returned nextToken value. This value can be between 1 and 1000. If this parameter is not used, then DescribeImageTags returns up to 100 results and a nextToken value, if applicable. This option cannot be used when you specify images with imageIds.

  • 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 future DescribeImageTags request. When the results of a DescribeImageTags request exceed maxResults, this value can be used to retrieve the next page of results. This value is null when there are no more results to return.

  • On failure, responds with SdkError<DescribeImageTagsError>

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 paginated DescribeRegistries request where maxResults was used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned the nextToken value. This value is null 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 returns maxResults results in a single page along with a nextToken response element. The remaining results of the initial request can be seen by sending another DescribeRegistries request with the returned nextToken value. This value can be between 1 and 1000. If this parameter is not used, then DescribeRegistries returns up to 100 results and a nextToken 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 future DescribeRepositories request. When the results of a DescribeRepositories request exceed maxResults, this value can be used to retrieve the next page of results. This value is null when there are no more results to return.

  • On failure, responds with SdkError<DescribeRegistriesError>

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 paginated DescribeRepositories request where maxResults was used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned the nextToken value. This value is null when there are no more results to return. This option cannot be used when you specify repositories with repositoryNames.

      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 returns maxResults results in a single page along with a nextToken response element. The remaining results of the initial request can be seen by sending another DescribeRepositories request with the returned nextToken value. This value can be between 1 and 1000. If this parameter is not used, then DescribeRepositories returns up to 100 results and a nextToken value, if applicable. This option cannot be used when you specify repositories with repositoryNames.

  • 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 future DescribeRepositories request. When the results of a DescribeRepositories request exceed maxResults, this value can be used to retrieve the next page of results. This value is null when there are no more results to return.

  • On failure, responds with SdkError<DescribeRepositoriesError>

Constructs a fluent builder for the GetAuthorizationToken operation.

Constructs a fluent builder for the GetRegistryCatalogData operation.

Constructs a fluent builder for the GetRepositoryCatalogData operation.

Constructs a fluent builder for the GetRepositoryPolicy operation.

Constructs a fluent builder for the InitiateLayerUpload operation.

Constructs a fluent builder for the ListTagsForResource operation.

Constructs a fluent builder for the PutImage operation.

Constructs a fluent builder for the PutRegistryCatalogData operation.

Constructs a fluent builder for the PutRepositoryCatalogData operation.

Constructs a fluent builder for the SetRepositoryPolicy operation.

Constructs a fluent builder for the TagResource operation.

Constructs a fluent builder for the UntagResource operation.

Constructs a fluent builder for the UploadLayerPart operation.

Creates a client with the given service config and connector override.

Creates a new client from a shared config.

Creates a new client from the service Config.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Converts to this type from the input type.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more