lib/aws-sdk-ecr/client.rb in aws-sdk-ecr-1.46.0 vs lib/aws-sdk-ecr/client.rb in aws-sdk-ecr-1.47.0
- old
+ new
@@ -651,10 +651,15 @@
#
#
#
# [1]: https://docs.aws.amazon.com/AmazonECR/latest/userguide/Repositories.html
#
+ # @option params [String] :registry_id
+ # The AWS account ID associated with the registry to create the
+ # repository. If you do not specify a registry, the default registry is
+ # assumed.
+ #
# @option params [required, String] :repository_name
# The name to use for the repository. 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 as
# `project-a/nginx-web-app`).
@@ -706,10 +711,11 @@
# }
#
# @example Request syntax with placeholder values
#
# resp = client.create_repository({
+ # registry_id: "RegistryId",
# repository_name: "RepositoryName", # required
# tags: [
# {
# key: "TagKey",
# value: "TagValue",
@@ -929,10 +935,60 @@
def delete_repository_policy(params = {}, options = {})
req = build_request(:delete_repository_policy, params)
req.send_request(options)
end
+ # Returns the replication status for a specified image.
+ #
+ # @option params [required, String] :repository_name
+ # The name of the repository that the image is in.
+ #
+ # @option params [required, Types::ImageIdentifier] :image_id
+ # An object with identifying information for an image in an Amazon ECR
+ # repository.
+ #
+ # @option params [String] :registry_id
+ # The Amazon Web Services account ID associated with the registry. If
+ # you do not specify a registry, the default registry is assumed.
+ #
+ # @return [Types::DescribeImageReplicationStatusResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
+ #
+ # * {Types::DescribeImageReplicationStatusResponse#repository_name #repository_name} => String
+ # * {Types::DescribeImageReplicationStatusResponse#image_id #image_id} => Types::ImageIdentifier
+ # * {Types::DescribeImageReplicationStatusResponse#replication_statuses #replication_statuses} => Array<Types::ImageReplicationStatus>
+ #
+ # @example Request syntax with placeholder values
+ #
+ # resp = client.describe_image_replication_status({
+ # repository_name: "RepositoryName", # required
+ # image_id: { # required
+ # image_digest: "ImageDigest",
+ # image_tag: "ImageTag",
+ # },
+ # registry_id: "RegistryId",
+ # })
+ #
+ # @example Response structure
+ #
+ # resp.repository_name #=> String
+ # resp.image_id.image_digest #=> String
+ # resp.image_id.image_tag #=> String
+ # resp.replication_statuses #=> Array
+ # resp.replication_statuses[0].region #=> String
+ # resp.replication_statuses[0].registry_id #=> String
+ # resp.replication_statuses[0].status #=> String, one of "IN_PROGRESS", "COMPLETE", "FAILED"
+ # resp.replication_statuses[0].failure_code #=> String
+ #
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/DescribeImageReplicationStatus AWS API Documentation
+ #
+ # @overload describe_image_replication_status(params = {})
+ # @param [Hash] params ({})
+ def describe_image_replication_status(params = {}, options = {})
+ req = build_request(:describe_image_replication_status, params)
+ req.send_request(options)
+ end
+
# Returns the scan findings for the specified image.
#
# @option params [String] :registry_id
# The Amazon Web Services account ID associated with the registry that
# contains the repository in which to describe the image scan findings
@@ -941,11 +997,12 @@
#
# @option params [required, String] :repository_name
# The repository for the image for which to describe the scan findings.
#
# @option params [required, Types::ImageIdentifier] :image_id
- # An object with identifying information for an Amazon ECR image.
+ # An object with identifying information for an image in an Amazon ECR
+ # repository.
#
# @option params [String] :next_token
# The `nextToken` value returned from a previous paginated
# `DescribeImageScanFindings` request where `maxResults` was used and
# the results exceeded the value of that parameter. Pagination continues
@@ -1135,10 +1192,13 @@
# resp.registry_id #=> String
# resp.replication_configuration.rules #=> Array
# resp.replication_configuration.rules[0].destinations #=> Array
# resp.replication_configuration.rules[0].destinations[0].region #=> String
# resp.replication_configuration.rules[0].destinations[0].registry_id #=> String
+ # resp.replication_configuration.rules[0].repository_filters #=> Array
+ # resp.replication_configuration.rules[0].repository_filters[0].filter #=> String
+ # resp.replication_configuration.rules[0].repository_filters[0].filter_type #=> String, one of "PREFIX_MATCH"
#
# @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/DescribeRegistry AWS API Documentation
#
# @overload describe_registry(params = {})
# @param [Hash] params ({})
@@ -2059,10 +2119,16 @@
# {
# region: "Region", # required
# registry_id: "RegistryId", # required
# },
# ],
+ # repository_filters: [
+ # {
+ # filter: "RepositoryFilterValue", # required
+ # filter_type: "PREFIX_MATCH", # required, accepts PREFIX_MATCH
+ # },
+ # ],
# },
# ],
# },
# })
#
@@ -2070,10 +2136,13 @@
#
# resp.replication_configuration.rules #=> Array
# resp.replication_configuration.rules[0].destinations #=> Array
# resp.replication_configuration.rules[0].destinations[0].region #=> String
# resp.replication_configuration.rules[0].destinations[0].registry_id #=> String
+ # resp.replication_configuration.rules[0].repository_filters #=> Array
+ # resp.replication_configuration.rules[0].repository_filters[0].filter #=> String
+ # resp.replication_configuration.rules[0].repository_filters[0].filter_type #=> String, one of "PREFIX_MATCH"
#
# @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/PutReplicationConfiguration AWS API Documentation
#
# @overload put_replication_configuration(params = {})
# @param [Hash] params ({})
@@ -2159,11 +2228,12 @@
#
# @option params [required, String] :repository_name
# The name of the repository that contains the images to scan.
#
# @option params [required, Types::ImageIdentifier] :image_id
- # An object with identifying information for an Amazon ECR image.
+ # An object with identifying information for an image in an Amazon ECR
+ # repository.
#
# @return [Types::StartImageScanResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
#
# * {Types::StartImageScanResponse#registry_id #registry_id} => String
# * {Types::StartImageScanResponse#repository_name #repository_name} => String
@@ -2392,10 +2462,10 @@
operation: config.api.operation(operation_name),
client: self,
params: params,
config: config)
context[:gem_name] = 'aws-sdk-ecr'
- context[:gem_version] = '1.46.0'
+ context[:gem_version] = '1.47.0'
Seahorse::Client::Request.new(handlers, context)
end
# Polls an API operation until a resource enters a desired state.
#