Struct aws_sdk_ecr::Client

source ·
pub struct Client { /* private fields */ }
Expand description

Client for Amazon EC2 Container Registry

Client for invoking operations on Amazon EC2 Container Registry. Each operation on Amazon EC2 Container Registry 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_ecr::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_ecr::config::Builder::from(&shared_config)
  .retry_config(RetryConfig::disabled())
  .build();
let client = aws_sdk_ecr::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 BatchGetImage operation.

Constructs a fluent builder for the BatchGetRepositoryScanningConfiguration operation.

Constructs a fluent builder for the CompleteLayerUpload operation.

Constructs a fluent builder for the CreatePullThroughCacheRule operation.

Constructs a fluent builder for the CreateRepository operation.

Constructs a fluent builder for the DeleteLifecyclePolicy operation.

Constructs a fluent builder for the DeletePullThroughCacheRule operation.

Constructs a fluent builder for the DeleteRegistryPolicy operation.

Constructs a fluent builder for the DeleteRepository operation.

Constructs a fluent builder for the DeleteRepositoryPolicy operation.

Constructs a fluent builder for the DescribeImageReplicationStatus operation.

Constructs a fluent builder for the DescribeImages operation. This operation supports pagination; See into_paginator().

Constructs a fluent builder for the DescribeImageScanFindings operation. This operation supports pagination; See into_paginator().

Constructs a fluent builder for the DescribePullThroughCacheRules 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 associated with the registry to return the pull through cache rules for. If you do not specify a registry, the default registry is assumed.

    • ecr_repository_prefixes(Vec<String>) / set_ecr_repository_prefixes(Option<Vec<String>>):

      The Amazon ECR repository prefixes associated with the pull through cache rules to return. If no repository prefix value is specified, all pull through cache rules are returned.

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

      The nextToken value returned from a previous paginated DescribePullThroughCacheRulesRequest 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.

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

      The maximum number of pull through cache rules returned by DescribePullThroughCacheRulesRequest in paginated output. When this parameter is used, DescribePullThroughCacheRulesRequest 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 DescribePullThroughCacheRulesRequest request with the returned nextToken value. This value can be between 1 and 1000. If this parameter is not used, then DescribePullThroughCacheRulesRequest returns up to 100 results and a nextToken value, if applicable.

  • On success, responds with DescribePullThroughCacheRulesOutput with field(s):
    • pull_through_cache_rules(Option<Vec<PullThroughCacheRule>>):

      The details of the pull through cache rules.

    • next_token(Option<String>):

      The nextToken value to include in a future DescribePullThroughCacheRulesRequest request. When the results of a DescribePullThroughCacheRulesRequest 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<DescribePullThroughCacheRulesError>

Constructs a fluent builder for the DescribeRegistry operation.

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 associated with the registry that contains the repositories to be described. If you do not specify a registry, the default 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 GetDownloadUrlForLayer operation.

Constructs a fluent builder for the GetLifecyclePolicy operation.

Constructs a fluent builder for the GetLifecyclePolicyPreview operation. This operation supports pagination; See into_paginator().

Constructs a fluent builder for the GetRegistryPolicy operation.

Constructs a fluent builder for the GetRegistryScanningConfiguration operation.

Constructs a fluent builder for the GetRepositoryPolicy operation.

Constructs a fluent builder for the InitiateLayerUpload operation.

Constructs a fluent builder for the ListImages 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 associated with the registry that contains the repository in which to list images. If you do not specify a registry, the default registry is assumed.

    • repository_name(impl Into<String>) / set_repository_name(Option<String>):

      The repository with image IDs to be listed.

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

      The nextToken value returned from a previous paginated ListImages 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 image results returned by ListImages in paginated output. When this parameter is used, ListImages 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 ListImages request with the returned nextToken value. This value can be between 1 and 1000. If this parameter is not used, then ListImages returns up to 100 results and a nextToken value, if applicable.

    • filter(ListImagesFilter) / set_filter(Option<ListImagesFilter>):

      The filter key and value with which to filter your ListImages results.

  • On success, responds with ListImagesOutput with field(s):
    • image_ids(Option<Vec<ImageIdentifier>>):

      The list of image IDs for the requested repository.

    • next_token(Option<String>):

      The nextToken value to include in a future ListImages request. When the results of a ListImages 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<ListImagesError>

Constructs a fluent builder for the ListTagsForResource operation.

Constructs a fluent builder for the PutImage operation.

Constructs a fluent builder for the PutImageScanningConfiguration operation.

Constructs a fluent builder for the PutImageTagMutability operation.

Constructs a fluent builder for the PutLifecyclePolicy operation.

Constructs a fluent builder for the PutRegistryPolicy operation.

Constructs a fluent builder for the PutRegistryScanningConfiguration operation.

Constructs a fluent builder for the PutReplicationConfiguration operation.

Constructs a fluent builder for the SetRepositoryPolicy operation.

Constructs a fluent builder for the StartImageScan operation.

Constructs a fluent builder for the StartLifecyclePolicyPreview 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