Class: Aws::ECRPublic::Client
- Inherits:
-
Seahorse::Client::Base
- Object
- Seahorse::Client::Base
- Aws::ECRPublic::Client
- Includes:
- ClientStubs
- Defined in:
- gems/aws-sdk-ecrpublic/lib/aws-sdk-ecrpublic/client.rb
Overview
An API client for ECRPublic. To construct a client, you need to configure a :region and :credentials.
client = Aws::ECRPublic::Client.new(
region: region_name,
credentials: credentials,
# ...
)
For details on configuring region and credentials see the developer guide.
See #initialize for a full list of supported configuration options.
Instance Attribute Summary
Attributes inherited from Seahorse::Client::Base
API Operations collapse
-
#associate_repositories(params = {}) ⇒ Types::AssociateRepositoriesResponse
Associates a repository with another repository of a different type in the same public registry, so that the Amazon ECR Public Gallery shows them side by side.
-
#batch_check_layer_availability(params = {}) ⇒ Types::BatchCheckLayerAvailabilityResponse
Checks the availability of one or more image layers that are within a repository in a public registry.
-
#batch_delete_image(params = {}) ⇒ Types::BatchDeleteImageResponse
Deletes a list of specified images that are within a repository in a public registry.
-
#complete_layer_upload(params = {}) ⇒ Types::CompleteLayerUploadResponse
Informs Amazon ECR that the image layer upload is complete for a specified public registry, repository name, and upload ID.
-
#create_premium_repository(params = {}) ⇒ Types::CreatePremiumRepositoryResponse
Creates a premium repository in a public registry for paid content that's sold through Amazon Web Services Marketplace.
-
#create_repository(params = {}) ⇒ Types::CreateRepositoryResponse
Creates a repository in a public registry.
-
#delete_premium_repository(params = {}) ⇒ Types::DeletePremiumRepositoryResponse
Deletes a premium repository in a public registry.
-
#delete_premium_repository_policy(params = {}) ⇒ Types::DeletePremiumRepositoryPolicyResponse
Deletes the repository policy that's associated with the specified premium repository.
-
#delete_repository(params = {}) ⇒ Types::DeleteRepositoryResponse
Deletes a repository in a public registry.
-
#delete_repository_policy(params = {}) ⇒ Types::DeleteRepositoryPolicyResponse
Deletes the repository policy that's associated with the specified repository.
-
#describe_entitled_image_tags(params = {}) ⇒ Types::DescribeEntitledImageTagsResponse
Returns the image tag details for a premium repository that you're entitled to through an Amazon Web Services Marketplace purchase.
-
#describe_entitled_images(params = {}) ⇒ Types::DescribeEntitledImagesResponse
Returns metadata about the images in a premium repository that you're entitled to through an Amazon Web Services Marketplace purchase.
-
#describe_entitled_repositories(params = {}) ⇒ Types::DescribeEntitledRepositoriesResponse
Returns the premium repositories that you're entitled to through your active Amazon Web Services Marketplace purchases.
-
#describe_image_scan_findings(params = {}) ⇒ Types::DescribeImageScanFindingsResponse
Returns the scan status and vulnerability findings for an image in a premium repository.
-
#describe_image_tags(params = {}) ⇒ Types::DescribeImageTagsResponse
Returns the image tag details for a repository in a public registry.
-
#describe_images(params = {}) ⇒ Types::DescribeImagesResponse
Returns metadata that's related to the images in a repository in a public registry.
-
#describe_premium_repositories(params = {}) ⇒ Types::DescribePremiumRepositoriesResponse
Describes the premium repositories in a public registry, including their Amazon Web Services Marketplace products, associated repositories, and state.
-
#describe_registries(params = {}) ⇒ Types::DescribeRegistriesResponse
Returns details for a public registry.
-
#describe_repositories(params = {}) ⇒ Types::DescribeRepositoriesResponse
Describes repositories that are in a public registry.
-
#disassociate_repositories(params = {}) ⇒ Types::DisassociateRepositoriesResponse
Removes the association between two repositories in a public registry.
-
#get_authorization_token(params = {}) ⇒ Types::GetAuthorizationTokenResponse
Retrieves an authorization token.
-
#get_download_url_for_publisher_report(params = {}) ⇒ Types::GetDownloadUrlForPublisherReportResponse
Returns a URL that you can use to download a publisher report as a compressed CSV file.
-
#get_premium_repository_catalog_data(params = {}) ⇒ Types::GetPremiumRepositoryCatalogDataResponse
Retrieves the catalog data that's associated with a premium repository.
-
#get_premium_repository_policy(params = {}) ⇒ Types::GetPremiumRepositoryPolicyResponse
Retrieves the repository policy for the specified premium repository.
-
#get_registry_catalog_data(params = {}) ⇒ Types::GetRegistryCatalogDataResponse
Retrieves catalog metadata for a public registry.
-
#get_repository_catalog_data(params = {}) ⇒ Types::GetRepositoryCatalogDataResponse
Retrieve catalog metadata for a repository in a public registry.
-
#get_repository_policy(params = {}) ⇒ Types::GetRepositoryPolicyResponse
Retrieves the repository policy for the specified repository.
-
#initiate_layer_upload(params = {}) ⇒ Types::InitiateLayerUploadResponse
Notifies Amazon ECR that you intend to upload an image layer.
-
#list_publisher_reports(params = {}) ⇒ Types::ListPublisherReportsResponse
Lists the publisher reports for your public registry that were created in the last 365 days.
-
#list_tags_for_resource(params = {}) ⇒ Types::ListTagsForResourceResponse
List the tags for an Amazon ECR Public resource.
-
#put_image(params = {}) ⇒ Types::PutImageResponse
Creates or updates the image manifest and tags that are associated with an image.
-
#put_premium_repository_catalog_data(params = {}) ⇒ Types::PutPremiumRepositoryCatalogDataResponse
Updates the catalog data for a premium repository.
-
#put_premium_repository_products(params = {}) ⇒ Types::PutPremiumRepositoryProductsResponse
Replaces the list of Amazon Web Services Marketplace products for a premium repository.
-
#put_registry_catalog_data(params = {}) ⇒ Types::PutRegistryCatalogDataResponse
Create or update the catalog data for a public registry.
-
#put_repository_catalog_data(params = {}) ⇒ Types::PutRepositoryCatalogDataResponse
Creates or updates the catalog data for a repository in a public registry.
-
#set_image_status(params = {}) ⇒ Types::SetImageStatusResponse
Sets the status of an image in a premium repository to
ACTIVEorDEPRECATED. -
#set_premium_repository_policy(params = {}) ⇒ Types::SetPremiumRepositoryPolicyResponse
Applies a repository policy to the specified premium repository to control access permissions.
-
#set_repository_policy(params = {}) ⇒ Types::SetRepositoryPolicyResponse
Applies a repository policy to the specified public repository to control access permissions.
-
#set_repository_state(params = {}) ⇒ Types::SetRepositoryStateResponse
Sets the state of a premium repository.
-
#tag_resource(params = {}) ⇒ Struct
Associates the specified tags to a resource with the specified
resourceArn. -
#untag_resource(params = {}) ⇒ Struct
Deletes specified tags from a resource.
-
#upload_layer_part(params = {}) ⇒ Types::UploadLayerPartResponse
Uploads an image layer part to Amazon ECR.
Instance Method Summary collapse
-
#initialize(options) ⇒ Client
constructor
A new instance of Client.
-
#wait_until(waiter_name, params = {}, options = {}) {|w.waiter| ... } ⇒ Boolean
Polls an API operation until a resource enters a desired state.
Methods included from ClientStubs
#api_requests, #stub_data, #stub_responses
Methods inherited from Seahorse::Client::Base
add_plugin, api, clear_plugins, define, new, #operation_names, plugins, remove_plugin, set_api, set_plugins
Methods included from Seahorse::Client::HandlerBuilder
#handle, #handle_request, #handle_response
Constructor Details
#initialize(options) ⇒ Client
Returns a new instance of Client.
486 487 488 |
# File 'gems/aws-sdk-ecrpublic/lib/aws-sdk-ecrpublic/client.rb', line 486 def initialize(*args) super end |
Instance Method Details
#associate_repositories(params = {}) ⇒ Types::AssociateRepositoriesResponse
Associates a repository with another repository of a different type in
the same public registry, so that the Amazon ECR Public Gallery shows
them side by side. One repository must be FREE and the other must be
PREMIUM. Both repositories must already exist, and each repository
can have at most one associated repository.
579 580 581 582 |
# File 'gems/aws-sdk-ecrpublic/lib/aws-sdk-ecrpublic/client.rb', line 579 def associate_repositories(params = {}, = {}) req = build_request(:associate_repositories, params) req.send_request() end |
#batch_check_layer_availability(params = {}) ⇒ Types::BatchCheckLayerAvailabilityResponse
Checks the availability of one or more image layers that are within a repository in a public registry. When an image is pushed to a repository, each image layer is checked to verify if it has been uploaded before. If it has been uploaded, then the image layer is skipped.
docker CLI to pull, tag, and push images.
646 647 648 649 |
# File 'gems/aws-sdk-ecrpublic/lib/aws-sdk-ecrpublic/client.rb', line 646 def batch_check_layer_availability(params = {}, = {}) req = build_request(:batch_check_layer_availability, params) req.send_request() end |
#batch_delete_image(params = {}) ⇒ Types::BatchDeleteImageResponse
Deletes a list of specified images that are within a repository in a
public registry. Images are specified with either an imageTag or
imageDigest.
You can remove a tag from an image by specifying the image's tag in your request. When you remove the last tag from an image, the image is deleted from your repository.
You can completely delete an image (and all of its tags) by specifying the digest of the image in your request.
717 718 719 720 |
# File 'gems/aws-sdk-ecrpublic/lib/aws-sdk-ecrpublic/client.rb', line 717 def batch_delete_image(params = {}, = {}) req = build_request(:batch_delete_image, params) req.send_request() end |
#complete_layer_upload(params = {}) ⇒ Types::CompleteLayerUploadResponse
Informs Amazon ECR that the image layer upload is complete for a
specified public registry, repository name, and upload ID. You can
optionally provide a sha256 digest of the image layer for data
validation purposes.
When an image is pushed, the CompleteLayerUpload API is called once for each new image layer to verify that the upload is complete.
docker CLI to pull, tag, and push images.
790 791 792 793 |
# File 'gems/aws-sdk-ecrpublic/lib/aws-sdk-ecrpublic/client.rb', line 790 def complete_layer_upload(params = {}, = {}) req = build_request(:complete_layer_upload, params) req.send_request() end |
#create_premium_repository(params = {}) ⇒ Types::CreatePremiumRepositoryResponse
Creates a premium repository in a public registry for paid content
that's sold through Amazon Web Services Marketplace. Your registry
must be verified and have an approved custom registry alias;
otherwise, the request fails with ValidationException. The
repository starts in the DRAFT state, and you make it available with
SetRepositoryState.
945 946 947 948 |
# File 'gems/aws-sdk-ecrpublic/lib/aws-sdk-ecrpublic/client.rb', line 945 def create_premium_repository(params = {}, = {}) req = build_request(:create_premium_repository, params) req.send_request() end |
#create_repository(params = {}) ⇒ Types::CreateRepositoryResponse
Creates a repository in a public registry. For more information, see Public repositories in the Amazon Elastic Container Registry Public User Guide.
1032 1033 1034 1035 |
# File 'gems/aws-sdk-ecrpublic/lib/aws-sdk-ecrpublic/client.rb', line 1032 def create_repository(params = {}, = {}) req = build_request(:create_repository, params) req.send_request() end |
#delete_premium_repository(params = {}) ⇒ Types::DeletePremiumRepositoryResponse
Deletes a premium repository in a public registry. The repository must
be empty before you can delete it. While the repository is in the
DRAFT state, you can remove images with BatchDeleteImage; after it
leaves the DRAFT state, deprecate images with SetImageStatus.
1101 1102 1103 1104 |
# File 'gems/aws-sdk-ecrpublic/lib/aws-sdk-ecrpublic/client.rb', line 1101 def delete_premium_repository(params = {}, = {}) req = build_request(:delete_premium_repository, params) req.send_request() end |
#delete_premium_repository_policy(params = {}) ⇒ Types::DeletePremiumRepositoryPolicyResponse
Deletes the repository policy that's associated with the specified premium repository.
1160 1161 1162 1163 |
# File 'gems/aws-sdk-ecrpublic/lib/aws-sdk-ecrpublic/client.rb', line 1160 def delete_premium_repository_policy(params = {}, = {}) req = build_request(:delete_premium_repository_policy, params) req.send_request() end |
#delete_repository(params = {}) ⇒ Types::DeleteRepositoryResponse
Deletes a repository in a public registry. If the repository contains
images, you must either manually delete all images in the repository
or use the force option. This option deletes all images on your
behalf before deleting the repository.
1210 1211 1212 1213 |
# File 'gems/aws-sdk-ecrpublic/lib/aws-sdk-ecrpublic/client.rb', line 1210 def delete_repository(params = {}, = {}) req = build_request(:delete_repository, params) req.send_request() end |
#delete_repository_policy(params = {}) ⇒ Types::DeleteRepositoryPolicyResponse
Deletes the repository policy that's associated with the specified repository.
1250 1251 1252 1253 |
# File 'gems/aws-sdk-ecrpublic/lib/aws-sdk-ecrpublic/client.rb', line 1250 def delete_repository_policy(params = {}, = {}) req = build_request(:delete_repository_policy, params) req.send_request() end |
#describe_entitled_image_tags(params = {}) ⇒ Types::DescribeEntitledImageTagsResponse
Returns the image tag details for a premium repository that you're entitled to through an Amazon Web Services Marketplace purchase.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1359 1360 1361 1362 |
# File 'gems/aws-sdk-ecrpublic/lib/aws-sdk-ecrpublic/client.rb', line 1359 def (params = {}, = {}) req = build_request(:describe_entitled_image_tags, params) req.send_request() end |
#describe_entitled_images(params = {}) ⇒ Types::DescribeEntitledImagesResponse
Returns metadata about the images in a premium repository that you're entitled to through an Amazon Web Services Marketplace purchase.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1480 1481 1482 1483 |
# File 'gems/aws-sdk-ecrpublic/lib/aws-sdk-ecrpublic/client.rb', line 1480 def describe_entitled_images(params = {}, = {}) req = build_request(:describe_entitled_images, params) req.send_request() end |
#describe_entitled_repositories(params = {}) ⇒ Types::DescribeEntitledRepositoriesResponse
Returns the premium repositories that you're entitled to through your
active Amazon Web Services Marketplace purchases. Amazon ECR looks up
your purchases by calling the Amazon Web Services Marketplace
SearchAgreements operation on your behalf, so you need permission
for the aws-marketplace:SearchAgreements action in addition to
ecr-public:DescribeEntitledRepositories.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1567 1568 1569 1570 |
# File 'gems/aws-sdk-ecrpublic/lib/aws-sdk-ecrpublic/client.rb', line 1567 def describe_entitled_repositories(params = {}, = {}) req = build_request(:describe_entitled_repositories, params) req.send_request() end |
#describe_image_scan_findings(params = {}) ⇒ Types::DescribeImageScanFindingsResponse
Returns the scan status and vulnerability findings for an image in a premium repository. Images in premium repositories are scanned automatically when they're pushed, and are rescanned as new vulnerabilities are published. Image scanning isn't currently supported for free repositories.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
The following waiters are defined for this operation (see #wait_until for detailed usage):
- image_scan_complete
1796 1797 1798 1799 |
# File 'gems/aws-sdk-ecrpublic/lib/aws-sdk-ecrpublic/client.rb', line 1796 def describe_image_scan_findings(params = {}, = {}) req = build_request(:describe_image_scan_findings, params) req.send_request() end |
#describe_image_tags(params = {}) ⇒ Types::DescribeImageTagsResponse
Returns the image tag details for a repository in a public registry.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1874 1875 1876 1877 |
# File 'gems/aws-sdk-ecrpublic/lib/aws-sdk-ecrpublic/client.rb', line 1874 def (params = {}, = {}) req = build_request(:describe_image_tags, params) req.send_request() end |
#describe_images(params = {}) ⇒ Types::DescribeImagesResponse
Returns metadata that's related to the images in a repository in a public registry.
docker images command shows the uncompressed image size. Therefore,
it might return a larger image size than the image sizes that are
returned by DescribeImages.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1973 1974 1975 1976 |
# File 'gems/aws-sdk-ecrpublic/lib/aws-sdk-ecrpublic/client.rb', line 1973 def describe_images(params = {}, = {}) req = build_request(:describe_images, params) req.send_request() end |
#describe_premium_repositories(params = {}) ⇒ Types::DescribePremiumRepositoriesResponse
Describes the premium repositories in a public registry, including
their Amazon Web Services Marketplace products, associated
repositories, and state. Repositories in the DRAFT, AVAILABLE, and
HIDDEN states are returned.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
2088 2089 2090 2091 |
# File 'gems/aws-sdk-ecrpublic/lib/aws-sdk-ecrpublic/client.rb', line 2088 def describe_premium_repositories(params = {}, = {}) req = build_request(:describe_premium_repositories, params) req.send_request() end |
#describe_registries(params = {}) ⇒ Types::DescribeRegistriesResponse
Returns details for a public registry.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
2153 2154 2155 2156 |
# File 'gems/aws-sdk-ecrpublic/lib/aws-sdk-ecrpublic/client.rb', line 2153 def describe_registries(params = {}, = {}) req = build_request(:describe_registries, params) req.send_request() end |
#describe_repositories(params = {}) ⇒ Types::DescribeRepositoriesResponse
Describes repositories that are in a public registry.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
2229 2230 2231 2232 |
# File 'gems/aws-sdk-ecrpublic/lib/aws-sdk-ecrpublic/client.rb', line 2229 def describe_repositories(params = {}, = {}) req = build_request(:describe_repositories, params) req.send_request() end |
#disassociate_repositories(params = {}) ⇒ Types::DisassociateRepositoriesResponse
Removes the association between two repositories in a public registry.
One repository must be FREE and the other must be PREMIUM.
2317 2318 2319 2320 |
# File 'gems/aws-sdk-ecrpublic/lib/aws-sdk-ecrpublic/client.rb', line 2317 def disassociate_repositories(params = {}, = {}) req = build_request(:disassociate_repositories, params) req.send_request() end |
#get_authorization_token(params = {}) ⇒ Types::GetAuthorizationTokenResponse
Retrieves an authorization token. An authorization token represents
your IAM authentication credentials. You can use it to access any
Amazon ECR registry that your IAM principal has access to. The
authorization token is valid for 12 hours. This API requires the
ecr-public:GetAuthorizationToken and sts:GetServiceBearerToken
permissions.
2342 2343 2344 2345 |
# File 'gems/aws-sdk-ecrpublic/lib/aws-sdk-ecrpublic/client.rb', line 2342 def (params = {}, = {}) req = build_request(:get_authorization_token, params) req.send_request() end |
#get_download_url_for_publisher_report(params = {}) ⇒ Types::GetDownloadUrlForPublisherReportResponse
Returns a URL that you can use to download a publisher report as a
compressed CSV file. You can download only reports for your own
account. Use ListPublisherReports to get the report IDs.
2389 2390 2391 2392 |
# File 'gems/aws-sdk-ecrpublic/lib/aws-sdk-ecrpublic/client.rb', line 2389 def get_download_url_for_publisher_report(params = {}, = {}) req = build_request(:get_download_url_for_publisher_report, params) req.send_request() end |
#get_premium_repository_catalog_data(params = {}) ⇒ Types::GetPremiumRepositoryCatalogDataResponse
Retrieves the catalog data that's associated with a premium repository.
2473 2474 2475 2476 |
# File 'gems/aws-sdk-ecrpublic/lib/aws-sdk-ecrpublic/client.rb', line 2473 def get_premium_repository_catalog_data(params = {}, = {}) req = build_request(:get_premium_repository_catalog_data, params) req.send_request() end |
#get_premium_repository_policy(params = {}) ⇒ Types::GetPremiumRepositoryPolicyResponse
Retrieves the repository policy for the specified premium repository.
2529 2530 2531 2532 |
# File 'gems/aws-sdk-ecrpublic/lib/aws-sdk-ecrpublic/client.rb', line 2529 def get_premium_repository_policy(params = {}, = {}) req = build_request(:get_premium_repository_policy, params) req.send_request() end |
#get_registry_catalog_data(params = {}) ⇒ Types::GetRegistryCatalogDataResponse
Retrieves catalog metadata for a public registry.
2550 2551 2552 2553 |
# File 'gems/aws-sdk-ecrpublic/lib/aws-sdk-ecrpublic/client.rb', line 2550 def get_registry_catalog_data(params = {}, = {}) req = build_request(:get_registry_catalog_data, params) req.send_request() end |
#get_repository_catalog_data(params = {}) ⇒ Types::GetRepositoryCatalogDataResponse
Retrieve catalog metadata for a repository in a public registry. This metadata is displayed publicly in the Amazon ECR Public Gallery.
2599 2600 2601 2602 |
# File 'gems/aws-sdk-ecrpublic/lib/aws-sdk-ecrpublic/client.rb', line 2599 def get_repository_catalog_data(params = {}, = {}) req = build_request(:get_repository_catalog_data, params) req.send_request() end |
#get_repository_policy(params = {}) ⇒ Types::GetRepositoryPolicyResponse
Retrieves the repository policy for the specified repository.
2637 2638 2639 2640 |
# File 'gems/aws-sdk-ecrpublic/lib/aws-sdk-ecrpublic/client.rb', line 2637 def get_repository_policy(params = {}, = {}) req = build_request(:get_repository_policy, params) req.send_request() end |
#initiate_layer_upload(params = {}) ⇒ Types::InitiateLayerUploadResponse
Notifies Amazon ECR that you intend to upload an image layer.
When an image is pushed, the InitiateLayerUpload API is called once for each image layer that hasn't already been uploaded. Whether an image layer uploads is determined by the BatchCheckLayerAvailability API action.
docker CLI to pull, tag, and push images.
2693 2694 2695 2696 |
# File 'gems/aws-sdk-ecrpublic/lib/aws-sdk-ecrpublic/client.rb', line 2693 def initiate_layer_upload(params = {}, = {}) req = build_request(:initiate_layer_upload, params) req.send_request() end |
#list_publisher_reports(params = {}) ⇒ Types::ListPublisherReportsResponse
Lists the publisher reports for your public registry that were created in the last 365 days. Each report is a compressed CSV file. Reports include images in your premium repositories and in free repositories that are associated with a premium repository.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
2803 2804 2805 2806 |
# File 'gems/aws-sdk-ecrpublic/lib/aws-sdk-ecrpublic/client.rb', line 2803 def list_publisher_reports(params = {}, = {}) req = build_request(:list_publisher_reports, params) req.send_request() end |
#list_tags_for_resource(params = {}) ⇒ Types::ListTagsForResourceResponse
List the tags for an Amazon ECR Public resource.
2835 2836 2837 2838 |
# File 'gems/aws-sdk-ecrpublic/lib/aws-sdk-ecrpublic/client.rb', line 2835 def (params = {}, = {}) req = build_request(:list_tags_for_resource, params) req.send_request() end |
#put_image(params = {}) ⇒ Types::PutImageResponse
Creates or updates the image manifest and tags that are associated with an image.
When an image is pushed and all new image layers have been uploaded, the PutImage API is called once to create or update the image manifest and the tags that are associated with the image.
docker CLI to pull, tag, and push images.
2915 2916 2917 2918 |
# File 'gems/aws-sdk-ecrpublic/lib/aws-sdk-ecrpublic/client.rb', line 2915 def put_image(params = {}, = {}) req = build_request(:put_image, params) req.send_request() end |
#put_premium_repository_catalog_data(params = {}) ⇒ Types::PutPremiumRepositoryCatalogDataResponse
Updates the catalog data for a premium repository. Fields that you
include replace the stored values, and fields that you leave out
aren't changed. A premium repository is listed in the Amazon ECR
Public Gallery when it's AVAILABLE and at least one of its Amazon
Web Services Marketplace products is public.
3032 3033 3034 3035 |
# File 'gems/aws-sdk-ecrpublic/lib/aws-sdk-ecrpublic/client.rb', line 3032 def put_premium_repository_catalog_data(params = {}, = {}) req = build_request(:put_premium_repository_catalog_data, params) req.send_request() end |
#put_premium_repository_products(params = {}) ⇒ Types::PutPremiumRepositoryProductsResponse
Replaces the list of Amazon Web Services Marketplace products for a premium repository. You must specify the full list of products, from one to five. To add a product, include it with the existing products.
You can remove a product only while the repository is in the DRAFT
state. After the repository leaves the DRAFT state, you can only add
products. A request that leaves out an existing product fails with
InvalidParameterException.
3113 3114 3115 3116 |
# File 'gems/aws-sdk-ecrpublic/lib/aws-sdk-ecrpublic/client.rb', line 3113 def put_premium_repository_products(params = {}, = {}) req = build_request(:put_premium_repository_products, params) req.send_request() end |
#put_registry_catalog_data(params = {}) ⇒ Types::PutRegistryCatalogDataResponse
Create or update the catalog data for a public registry.
3159 3160 3161 3162 |
# File 'gems/aws-sdk-ecrpublic/lib/aws-sdk-ecrpublic/client.rb', line 3159 def put_registry_catalog_data(params = {}, = {}) req = build_request(:put_registry_catalog_data, params) req.send_request() end |
#put_repository_catalog_data(params = {}) ⇒ Types::PutRepositoryCatalogDataResponse
Creates or updates the catalog data for a repository in a public registry.
3221 3222 3223 3224 |
# File 'gems/aws-sdk-ecrpublic/lib/aws-sdk-ecrpublic/client.rb', line 3221 def put_repository_catalog_data(params = {}, = {}) req = build_request(:put_repository_catalog_data, params) req.send_request() end |
#set_image_status(params = {}) ⇒ Types::SetImageStatusResponse
Sets the status of an image in a premium repository to ACTIVE or
DEPRECATED. When you deprecate an image, Amazon ECR deletes it after
the deprecation period ends. You can't use this operation while the
repository is in the DRAFT state.
3338 3339 3340 3341 |
# File 'gems/aws-sdk-ecrpublic/lib/aws-sdk-ecrpublic/client.rb', line 3338 def set_image_status(params = {}, = {}) req = build_request(:set_image_status, params) req.send_request() end |
#set_premium_repository_policy(params = {}) ⇒ Types::SetPremiumRepositoryPolicyResponse
Applies a repository policy to the specified premium repository to control access permissions. For more information, see Amazon ECR repository policies in the Amazon Elastic Container Registry Public User Guide.
3419 3420 3421 3422 |
# File 'gems/aws-sdk-ecrpublic/lib/aws-sdk-ecrpublic/client.rb', line 3419 def set_premium_repository_policy(params = {}, = {}) req = build_request(:set_premium_repository_policy, params) req.send_request() end |
#set_repository_policy(params = {}) ⇒ Types::SetRepositoryPolicyResponse
Applies a repository policy to the specified public repository to control access permissions. For more information, see Amazon ECR repository policies in the Amazon Elastic Container Registry Public User Guide.
3481 3482 3483 3484 |
# File 'gems/aws-sdk-ecrpublic/lib/aws-sdk-ecrpublic/client.rb', line 3481 def set_repository_policy(params = {}, = {}) req = build_request(:set_repository_policy, params) req.send_request() end |
#set_repository_state(params = {}) ⇒ Types::SetRepositoryStateResponse
Sets the state of a premium repository. Use the state to control
whether the repository is shown in the Amazon ECR Public Gallery. A
premium repository is listed in the Amazon ECR Public Gallery when
it's AVAILABLE and at least one of its Amazon Web Services
Marketplace products is public.
3568 3569 3570 3571 |
# File 'gems/aws-sdk-ecrpublic/lib/aws-sdk-ecrpublic/client.rb', line 3568 def set_repository_state(params = {}, = {}) req = build_request(:set_repository_state, params) req.send_request() end |
#tag_resource(params = {}) ⇒ Struct
Associates the specified tags to a resource with the specified
resourceArn. If existing tags on a resource aren't specified in the
request parameters, they aren't changed. When a resource is deleted,
the tags associated with that resource are also deleted.
3605 3606 3607 3608 |
# File 'gems/aws-sdk-ecrpublic/lib/aws-sdk-ecrpublic/client.rb', line 3605 def tag_resource(params = {}, = {}) req = build_request(:tag_resource, params) req.send_request() end |
#untag_resource(params = {}) ⇒ Struct
Deletes specified tags from a resource.
3632 3633 3634 3635 |
# File 'gems/aws-sdk-ecrpublic/lib/aws-sdk-ecrpublic/client.rb', line 3632 def untag_resource(params = {}, = {}) req = build_request(:untag_resource, params) req.send_request() end |
#upload_layer_part(params = {}) ⇒ Types::UploadLayerPartResponse
Uploads an image layer part to Amazon ECR.
When an image is pushed, each new image layer is uploaded in parts. The maximum size of each image layer part can be 20971520 bytes (about 20MB). The UploadLayerPart API is called once for each new image layer part.
docker CLI to pull, tag, and push images.
3713 3714 3715 3716 |
# File 'gems/aws-sdk-ecrpublic/lib/aws-sdk-ecrpublic/client.rb', line 3713 def upload_layer_part(params = {}, = {}) req = build_request(:upload_layer_part, params) req.send_request() end |
#wait_until(waiter_name, params = {}, options = {}) {|w.waiter| ... } ⇒ Boolean
Polls an API operation until a resource enters a desired state.
Basic Usage
A waiter will call an API operation until:
- It is successful
- It enters a terminal state
- It makes the maximum number of attempts
In between attempts, the waiter will sleep.
# polls in a loop, sleeping between attempts
client.wait_until(waiter_name, params)
Configuration
You can configure the maximum number of polling attempts, and the delay (in seconds) between each polling attempt. You can pass configuration as the final arguments hash.
# poll for ~25 seconds
client.wait_until(waiter_name, params, {
max_attempts: 5,
delay: 5,
})
Callbacks
You can be notified before each polling attempt and before each
delay. If you throw :success or :failure from these callbacks,
it will terminate the waiter.
started_at = Time.now
client.wait_until(waiter_name, params, {
# disable max attempts
max_attempts: nil,
# poll for 1 hour, instead of a number of attempts
before_wait: -> (attempts, response) do
throw :failure if Time.now - started_at > 3600
end
})
Handling Errors
When a waiter is unsuccessful, it will raise an error. All of the failure errors extend from Waiters::Errors::WaiterFailed.
begin
client.wait_until(...)
rescue Aws::Waiters::Errors::WaiterFailed
# resource did not enter the desired state in time
end
Valid Waiters
The following table lists the valid waiter names, the operations they call,
and the default :delay and :max_attempts values.
| waiter_name | params | :delay | :max_attempts |
|---|---|---|---|
| image_scan_complete | #describe_image_scan_findings | 10 | 30 |
3828 3829 3830 3831 3832 |
# File 'gems/aws-sdk-ecrpublic/lib/aws-sdk-ecrpublic/client.rb', line 3828 def wait_until(waiter_name, params = {}, = {}) w = waiter(waiter_name, ) yield(w.waiter) if block_given? # deprecated w.wait(params) end |