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::retry::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 Amazon Web Services account ID that’s associated with the public registry that contains the repository where images are 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 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 that’s 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. If there are no more results to return, this value is null. If you specify images with imageIds, you can’t use this option.

    • max_results(i32) / set_max_results(Option<i32>):

      The maximum number of repository results that’s 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. You can see the remaining results of the initial request by sending another DescribeImages request with the returned nextToken value. This value can be between 1 and 1000. If this parameter isn’t used, then DescribeImages returns up to 100 results and a nextToken value, if applicable. If you specify images with imageIds, you can’t use this option.

  • 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, you can use this value to retrieve the next page of results. If there are no more results to return, this value is null.

  • 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 Amazon Web Services account ID that’s associated with the public registry that contains the repository where images are 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 that contains the image tag details to describe.

    • next_token(impl Into<String>) / set_next_token(Option<String>):

      The nextToken value that’s 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. If there are no more results to return, this value is null. If you specify images with imageIds, you can’t use this option.

    • max_results(i32) / set_max_results(Option<i32>):

      The maximum number of repository results that’s 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. You can see the remaining results of the initial request by sending another DescribeImageTags request with the returned nextToken value. This value can be between 1 and 1000. If this parameter isn’t used, then DescribeImageTags returns up to 100 results and a nextToken value, if applicable. If you specify images with imageIds, you can’t use this option.

  • 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, you can use this value to retrieve the next page of results. If there are no more results to return, this value is null.

  • 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 that’s 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. If there are no more results to return, this value is null.

      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 that’s 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 isn’t 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 that contains the details for a public registry.

    • next_token(Option<String>):

      The nextToken value to include in a future DescribeRepositories request. If the results of a DescribeRepositories request exceed maxResults, you can use this value to retrieve the next page of results. If there are no more results, this value is null.

  • 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 Amazon Web Services account ID that’s 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 that’s 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. If there are no more results to return, this value is null. If you specify repositories with repositoryNames, you can’t use this option.

      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 that’s 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. You can see the remaining results of the initial request by sending another DescribeRepositories request with the returned nextToken value. This value can be between 1 and 1000. If this parameter isn’t used, then DescribeRepositories returns up to 100 results and a nextToken value, if applicable. If you specify repositories with repositoryNames, you can’t use this option.

  • 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. If there are no more results to return, this value is null.

  • 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 new client from an SDK Config.

Panics
  • This method will panic if the sdk_config is missing an async sleep implementation. If you experience this panic, set the sleep_impl on the Config passed into this function to fix it.
  • This method will panic if the sdk_config is missing an HTTP connector. If you experience this panic, set the http_connector on the Config passed into this function to fix it.

Creates a new client from the service Config.

Panics
  • This method will panic if the conf is missing an async sleep implementation. If you experience this panic, set the sleep_impl on the Config passed into this function to fix it.
  • This method will panic if the conf is missing an HTTP connector. If you experience this panic, set the http_connector on the Config passed into this function to fix it.

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.

Should always be Self
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