Learn R Programming

paws.compute (version 0.7.0)

ecr: Amazon EC2 Container Registry

Description

Amazon Elastic Container Registry

Amazon Elastic Container Registry (Amazon ECR) is a managed container image registry service. Customers can use the familiar Docker CLI, or their preferred client, to push, pull, and manage images. Amazon ECR provides a secure, scalable, and reliable registry for your Docker or Open Container Initiative (OCI) images. Amazon ECR supports private repositories with resource-based permissions using IAM so that specific users or Amazon EC2 instances can access repositories and images.

Amazon ECR has service endpoints in each supported Region. For more information, see Amazon ECR endpoints in the Amazon Web Services General Reference.

Usage

ecr(config = list(), credentials = list(), endpoint = NULL, region = NULL)

Value

A client for the service. You can call the service's operations using syntax like svc$operation(...), where svc is the name you've assigned to the client. The available operations are listed in the Operations section.

Arguments

config

Optional configuration of credentials, endpoint, and/or region.

  • credentials:

    • creds:

      • access_key_id: AWS access key ID

      • secret_access_key: AWS secret access key

      • session_token: AWS temporary session token

    • profile: The name of a profile to use. If not given, then the default profile is used.

    • anonymous: Set anonymous credentials.

  • endpoint: The complete URL to use for the constructed client.

  • region: The AWS Region used in instantiating the client.

  • close_connection: Immediately close all HTTP connections.

  • timeout: The time in seconds till a timeout exception is thrown when attempting to make a connection. The default is 60 seconds.

  • s3_force_path_style: Set this to true to force the request to use path-style addressing, i.e. http://s3.amazonaws.com/BUCKET/KEY.

  • sts_regional_endpoint: Set sts regional endpoint resolver to regional or legacy https://docs.aws.amazon.com/sdkref/latest/guide/feature-sts-regionalized-endpoints.html

credentials

Optional credentials shorthand for the config parameter

  • creds:

    • access_key_id: AWS access key ID

    • secret_access_key: AWS secret access key

    • session_token: AWS temporary session token

  • profile: The name of a profile to use. If not given, then the default profile is used.

  • anonymous: Set anonymous credentials.

endpoint

Optional shorthand for complete URL to use for the constructed client.

region

Optional shorthand for AWS Region used in instantiating the client.

Service syntax

svc <- ecr(
  config = list(
    credentials = list(
      creds = list(
        access_key_id = "string",
        secret_access_key = "string",
        session_token = "string"
      ),
      profile = "string",
      anonymous = "logical"
    ),
    endpoint = "string",
    region = "string",
    close_connection = "logical",
    timeout = "numeric",
    s3_force_path_style = "logical",
    sts_regional_endpoint = "string"
  ),
  credentials = list(
    creds = list(
      access_key_id = "string",
      secret_access_key = "string",
      session_token = "string"
    ),
    profile = "string",
    anonymous = "logical"
  ),
  endpoint = "string",
  region = "string"
)

Operations

batch_check_layer_availabilityChecks the availability of one or more image layers in a repository
batch_delete_imageDeletes a list of specified images within a repository
batch_get_imageGets detailed information for an image
batch_get_repository_scanning_configurationGets the scanning configuration for one or more repositories
complete_layer_uploadInforms Amazon ECR that the image layer upload has completed for a specified registry, repository name, and upload ID
create_pull_through_cache_ruleCreates a pull through cache rule
create_repositoryCreates a repository
create_repository_creation_templateCreates a repository creation template
delete_lifecycle_policyDeletes the lifecycle policy associated with the specified repository
delete_pull_through_cache_ruleDeletes a pull through cache rule
delete_registry_policyDeletes the registry permissions policy
delete_repositoryDeletes a repository
delete_repository_creation_templateDeletes a repository creation template
delete_repository_policyDeletes the repository policy associated with the specified repository
describe_image_replication_statusReturns the replication status for a specified image
describe_imagesReturns metadata about the images in a repository
describe_image_scan_findingsReturns the scan findings for the specified image
describe_pull_through_cache_rulesReturns the pull through cache rules for a registry
describe_registryDescribes the settings for a registry
describe_repositoriesDescribes image repositories in a registry
describe_repository_creation_templatesReturns details about the repository creation templates in a registry
get_account_settingRetrieves the basic scan type version name
get_authorization_tokenRetrieves an authorization token
get_download_url_for_layerRetrieves the pre-signed Amazon S3 download URL corresponding to an image layer
get_lifecycle_policyRetrieves the lifecycle policy for the specified repository
get_lifecycle_policy_previewRetrieves the results of the lifecycle policy preview request for the specified repository
get_registry_policyRetrieves the permissions policy for a registry
get_registry_scanning_configurationRetrieves the scanning configuration for a registry
get_repository_policyRetrieves the repository policy for the specified repository
initiate_layer_uploadNotifies Amazon ECR that you intend to upload an image layer
list_imagesLists all the image IDs for the specified repository
list_tags_for_resourceList the tags for an Amazon ECR resource
put_account_settingAllows you to change the basic scan type version by setting the name parameter to either CLAIR to AWS_NATIVE
put_imageCreates or updates the image manifest and tags associated with an image
put_image_scanning_configurationThe PutImageScanningConfiguration API is being deprecated, in favor of specifying the image scanning configuration at the registry level
put_image_tag_mutabilityUpdates the image tag mutability settings for the specified repository
put_lifecycle_policyCreates or updates the lifecycle policy for the specified repository
put_registry_policyCreates or updates the permissions policy for your registry
put_registry_scanning_configurationCreates or updates the scanning configuration for your private registry
put_replication_configurationCreates or updates the replication configuration for a registry
set_repository_policyApplies a repository policy to the specified repository to control access permissions
start_image_scanStarts an image vulnerability scan
start_lifecycle_policy_previewStarts a preview of a lifecycle policy for the specified repository
tag_resourceAdds specified tags to a resource with the specified ARN
untag_resourceDeletes specified tags from a resource
update_pull_through_cache_ruleUpdates an existing pull through cache rule
update_repository_creation_templateUpdates an existing repository creation template
upload_layer_partUploads an image layer part to Amazon ECR
validate_pull_through_cache_ruleValidates an existing pull through cache rule for an upstream registry that requires authentication

Examples

Run this code
if (FALSE) {
svc <- ecr()
# This example deletes images with the tags precise and trusty in a
# repository called ubuntu in the default registry for an account.
svc$batch_delete_image(
  imageIds = list(
    list(
      imageTag = "precise"
    )
  ),
  repositoryName = "ubuntu"
)
}

Run the code above in your browser using DataLab