Module ecr

ecr

This provider is a derived work of the Terraform Provider distributed under MPL 2.0. If you encounter a bug or missing feature, first check the pulumi/pulumi-aws repo; however, if that doesn’t turn up anything, please consult the source terraform-providers/terraform-provider-aws repo.
class pulumi_aws.ecr.AwaitableGetCredentialsResult(authorization_token=None, expires_at=None, proxy_endpoint=None, registry_id=None, id=None)
class pulumi_aws.ecr.AwaitableGetImageResult(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)
class pulumi_aws.ecr.AwaitableGetRepositoryResult(arn=None, name=None, registry_id=None, repository_url=None, tags=None, id=None)
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, __props__=None, __name__=None, __opts__=None)

Manages an ECR repository lifecycle policy.

NOTE: Only one ecr.LifecyclePolicy 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 this provider code, the resource will be flagged for recreation every deployment.

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.
  • 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.

registry_id = None

The registry ID where the repository was created.

repository = None

Name of the repository to apply the policy.

static get(resource_name, id, opts=None, policy=None, registry_id=None, repository=None)

Get an existing LifecyclePolicy resource’s state with the given name, id, and optional extra properties used to qualify the lookup. :param str resource_name: The unique name of the resulting resource. :param str id: The unique provider ID of the resource to lookup. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[str] policy: The policy document. This is a JSON formatted string. See more details about Policy Parameters in the official AWS docs. :param pulumi.Input[str] registry_id: The registry ID where the repository was created. :param pulumi.Input[str] repository: 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, image_tag_mutability=None, name=None, tags=None, __props__=None, __name__=None, __opts__=None)

Provides an Elastic Container Registry Repository.

Parameters:
  • resource_name (str) – The name of the resource.
  • opts (pulumi.ResourceOptions) – Options for the resource.
  • image_tag_mutability (pulumi.Input[str]) – The tag mutability setting for the repository. Must be one of: MUTABLE or IMMUTABLE. Defaults to MUTABLE.
  • 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.

image_tag_mutability = None

The tag mutability setting for the repository. Must be one of: MUTABLE or IMMUTABLE. Defaults to MUTABLE.

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.

static get(resource_name, id, opts=None, arn=None, image_tag_mutability=None, name=None, registry_id=None, repository_url=None, tags=None)

Get an existing Repository resource’s state with the given name, id, and optional extra properties used to qualify the lookup. :param str resource_name: The unique name of the resulting resource. :param str id: The unique provider ID of the resource to lookup. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[str] arn: Full ARN of the repository. :param pulumi.Input[str] image_tag_mutability: The tag mutability setting for the repository. Must be one of: MUTABLE or IMMUTABLE. Defaults to MUTABLE. :param pulumi.Input[str] name: Name of the repository. :param pulumi.Input[str] registry_id: The registry ID where the repository was created. :param pulumi.Input[str] repository_url: The URL of the repository (in the form aws_account_id.dkr.ecr.region.amazonaws.com/repositoryName :param pulumi.Input[dict] tags: 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, __props__=None, __name__=None, __opts__=None)

Provides an Elastic Container Registry Repository Policy.

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

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.
  • repository (pulumi.Input[str]) – Name of the repository to apply the policy.
policy = None

The policy document. This is a JSON formatted string.

registry_id = None

The registry ID where the repository was created.

repository = None

Name of the repository to apply the policy.

static get(resource_name, id, opts=None, policy=None, registry_id=None, repository=None)

Get an existing RepositoryPolicy resource’s state with the given name, id, and optional extra properties used to qualify the lookup. :param str resource_name: The unique name of the resulting resource. :param str id: The unique provider ID of the resource to lookup. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[str] policy: The policy document. This is a JSON formatted string. :param pulumi.Input[str] registry_id: The registry ID where the repository was created. :param pulumi.Input[str] repository: 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.