ecr

class pulumi_aws.ecr.GetCredentialsResult(authorization_token=None, expires_at=None, proxy_endpoint=None, registry_id=None, id=None)

A collection of values returned by getCredentials.

id = None

id is the provider-assigned unique ID for this managed resource.

class pulumi_aws.ecr.GetImageResult(image_digest=None, image_pushed_at=None, image_size_in_bytes=None, image_tag=None, image_tags=None, registry_id=None, repository_name=None, id=None)

A collection of values returned by getImage.

image_pushed_at = None

The date and time, expressed as a unix timestamp, at which the current image was pushed to the repository.

image_size_in_bytes = None

The size, in bytes, of the image in the repository.

image_tags = None

The list of tags associated with this image.

id = None

id is the provider-assigned unique ID for this managed resource.

class pulumi_aws.ecr.GetRepositoryResult(arn=None, name=None, registry_id=None, repository_url=None, tags=None, id=None)

A collection of values returned by getRepository.

arn = None

Full ARN of the repository.

registry_id = None

The registry ID where the repository was created.

repository_url = None

The URL of the repository (in the form aws_account_id.dkr.ecr.region.amazonaws.com/repositoryName).

tags = None

A mapping of tags assigned to the resource.

id = None

id is the provider-assigned unique ID for this managed resource.

class pulumi_aws.ecr.LifecyclePolicy(resource_name, opts=None, policy=None, repository=None, __name__=None, __opts__=None)

Manages an ECR repository lifecycle policy.

NOTE: Only one aws_ecr_lifecycle_policy resource can be used with the same ECR repository. To apply multiple rules, they must be combined in the policy JSON.

NOTE: The AWS ECR API seems to reorder rules based on rulePriority. If you define multiple rules that are not sorted in ascending rulePriority order in the Terraform code, the resource will be flagged for recreation every terraform plan.

Parameters:
  • resource_name (str) – The name of the resource.
  • opts (pulumi.ResourceOptions) – Options for the resource.
  • policy (pulumi.Input[str]) – The policy document. This is a JSON formatted string. See more details about Policy Parameters in the official AWS docs. For more information about building IAM policy documents with Terraform, see the AWS IAM Policy Document Guide.
  • repository (pulumi.Input[str]) – Name of the repository to apply the policy.
policy = None

The policy document. This is a JSON formatted string. See more details about Policy Parameters in the official AWS docs. For more information about building IAM policy documents with Terraform, see the AWS IAM Policy Document Guide.

registry_id = None

The registry ID where the repository was created.

repository = None

Name of the repository to apply the policy.

translate_output_property(prop)

Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.

Parameters:prop (str) – A property name.
Returns:A potentially transformed property name.
Return type:str
translate_input_property(prop)

Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.

Parameters:prop (str) – A property name.
Returns:A potentially transformed property name.
Return type:str
class pulumi_aws.ecr.Repository(resource_name, opts=None, name=None, tags=None, __name__=None, __opts__=None)

Provides an EC2 Container Registry Repository.

NOTE on ECR Availability: The EC2 Container Registry is not yet rolled out in all regions - available regions are listed the AWS Docs.
Parameters:
  • resource_name (str) – The name of the resource.
  • opts (pulumi.ResourceOptions) – Options for the resource.
  • name (pulumi.Input[str]) – Name of the repository.
  • tags (pulumi.Input[dict]) – A mapping of tags to assign to the resource.
arn = None

Full ARN of the repository.

name = None

Name of the repository.

registry_id = None

The registry ID where the repository was created.

repository_url = None

The URL of the repository (in the form aws_account_id.dkr.ecr.region.amazonaws.com/repositoryName

tags = None

A mapping of tags to assign to the resource.

translate_output_property(prop)

Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.

Parameters:prop (str) – A property name.
Returns:A potentially transformed property name.
Return type:str
translate_input_property(prop)

Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.

Parameters:prop (str) – A property name.
Returns:A potentially transformed property name.
Return type:str
class pulumi_aws.ecr.RepositoryPolicy(resource_name, opts=None, policy=None, repository=None, __name__=None, __opts__=None)

Provides an ECR repository policy.

Note that currently only one policy may be applied to a repository.

NOTE on ECR Availability: The EC2 Container Registry is not yet rolled out in all regions - available regions are listed the AWS Docs.
Parameters:
  • resource_name (str) – The name of the resource.
  • opts (pulumi.ResourceOptions) – Options for the resource.
  • policy (pulumi.Input[str]) –

    The policy document. This is a JSON formatted string. For more information about building IAM policy documents with Terraform, see the AWS IAM Policy Document Guide

  • repository (pulumi.Input[str]) – Name of the repository to apply the policy.
policy = None

The policy document. This is a JSON formatted string. For more information about building IAM policy documents with Terraform, see the AWS IAM Policy Document Guide

registry_id = None

The registry ID where the repository was created.

repository = None

Name of the repository to apply the policy.

translate_output_property(prop)

Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.

Parameters:prop (str) – A property name.
Returns:A potentially transformed property name.
Return type:str
translate_input_property(prop)

Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.

Parameters:prop (str) – A property name.
Returns:A potentially transformed property name.
Return type:str
pulumi_aws.ecr.get_image(image_digest=None, image_tag=None, registry_id=None, repository_name=None, opts=None)

The ECR Image data source allows the details of an image with a particular tag or digest to be retrieved.

pulumi_aws.ecr.get_repository(name=None, tags=None, opts=None)

The ECR Repository data source allows the ARN, Repository URI and Registry ID to be retrieved for an ECR repository.