Documentation
¶
Overview ¶
nolint: lll Package ecr exports types, functions, subpackages for provisioning ecr resources.
> This provider is a derived work of the [Terraform Provider](https://github.com/terraform-providers/terraform-provider-aws) > distributed under [MPL 2.0](https://www.mozilla.org/en-US/MPL/2.0/). If you encounter a bug or missing feature, > first check the [`pulumi/pulumi-aws` repo](https://github.com/pulumi/pulumi-aws/issues); however, if that doesn't turn up anything, > please consult the source [`terraform-providers/terraform-provider-aws` repo](https://github.com/terraform-providers/terraform-provider-aws/issues).
Index ¶
- type GetCredentialsArgs
- type GetCredentialsResult
- type GetImageArgs
- type GetImageResult
- type GetRepositoryArgs
- type GetRepositoryResult
- type LifecyclePolicy
- type LifecyclePolicyArgs
- type LifecyclePolicyState
- type Repository
- func (r *Repository) Arn() *pulumi.StringOutput
- func (r *Repository) ID() *pulumi.IDOutput
- func (r *Repository) ImageTagMutability() *pulumi.StringOutput
- func (r *Repository) Name() *pulumi.StringOutput
- func (r *Repository) RegistryId() *pulumi.StringOutput
- func (r *Repository) RepositoryUrl() *pulumi.StringOutput
- func (r *Repository) Tags() *pulumi.MapOutput
- func (r *Repository) URN() *pulumi.URNOutput
- type RepositoryArgs
- type RepositoryPolicy
- type RepositoryPolicyArgs
- type RepositoryPolicyState
- type RepositoryState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetCredentialsArgs ¶
type GetCredentialsArgs struct {
RegistryId interface{}
}
A collection of arguments for invoking getCredentials.
type GetCredentialsResult ¶
type GetCredentialsResult struct { AuthorizationToken interface{} ExpiresAt interface{} ProxyEndpoint interface{} RegistryId interface{} // id is the provider-assigned unique ID for this managed resource. Id interface{} }
A collection of values returned by getCredentials.
func LookupCredentials ¶
func LookupCredentials(ctx *pulumi.Context, args *GetCredentialsArgs) (*GetCredentialsResult, error)
type GetImageArgs ¶ added in v0.18.4
type GetImageArgs struct { // The sha256 digest of the image manifest. At least one of `imageDigest` or `imageTag` must be specified. ImageDigest interface{} // The tag associated with this image. At least one of `imageDigest` or `imageTag` must be specified. ImageTag interface{} // The ID of the Registry where the repository resides. RegistryId interface{} // The name of the ECR Repository. RepositoryName interface{} }
A collection of arguments for invoking getImage.
type GetImageResult ¶ added in v0.18.4
type GetImageResult struct { ImageDigest interface{} // The date and time, expressed as a unix timestamp, at which the current image was pushed to the repository. ImagePushedAt interface{} // The size, in bytes, of the image in the repository. ImageSizeInBytes interface{} ImageTag interface{} // The list of tags associated with this image. ImageTags interface{} RegistryId interface{} RepositoryName interface{} // id is the provider-assigned unique ID for this managed resource. Id interface{} }
A collection of values returned by getImage.
func LookupImage ¶ added in v0.18.4
func LookupImage(ctx *pulumi.Context, args *GetImageArgs) (*GetImageResult, error)
The ECR Image data source allows the details of an image with a particular tag or digest to be retrieved.
> This content is derived from https://github.com/terraform-providers/terraform-provider-aws/blob/master/website/docs/d/ecr_image.html.markdown.
type GetRepositoryArgs ¶
type GetRepositoryArgs struct { // The name of the ECR Repository. Name interface{} Tags interface{} }
A collection of arguments for invoking getRepository.
type GetRepositoryResult ¶
type GetRepositoryResult struct { // Full ARN of the repository. Arn interface{} Name interface{} // The registry ID where the repository was created. RegistryId interface{} // The URL of the repository (in the form `aws_account_id.dkr.ecr.region.amazonaws.com/repositoryName`). RepositoryUrl interface{} // A mapping of tags assigned to the resource. Tags interface{} // id is the provider-assigned unique ID for this managed resource. Id interface{} }
A collection of values returned by getRepository.
func LookupRepository ¶
func LookupRepository(ctx *pulumi.Context, args *GetRepositoryArgs) (*GetRepositoryResult, error)
The ECR Repository data source allows the ARN, Repository URI and Registry ID to be retrieved for an ECR repository.
> This content is derived from https://github.com/terraform-providers/terraform-provider-aws/blob/master/website/docs/d/ecr_repository.html.markdown.
type LifecyclePolicy ¶
type LifecyclePolicy struct {
// contains filtered or unexported fields
}
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.
> This content is derived from https://github.com/terraform-providers/terraform-provider-aws/blob/master/website/docs/r/ecr_lifecycle_policy.html.markdown.
func GetLifecyclePolicy ¶
func GetLifecyclePolicy(ctx *pulumi.Context, name string, id pulumi.ID, state *LifecyclePolicyState, opts ...pulumi.ResourceOpt) (*LifecyclePolicy, error)
GetLifecyclePolicy gets an existing LifecyclePolicy resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewLifecyclePolicy ¶
func NewLifecyclePolicy(ctx *pulumi.Context, name string, args *LifecyclePolicyArgs, opts ...pulumi.ResourceOpt) (*LifecyclePolicy, error)
NewLifecyclePolicy registers a new resource with the given unique name, arguments, and options.
func (*LifecyclePolicy) ID ¶
func (r *LifecyclePolicy) ID() *pulumi.IDOutput
ID is this resource's unique identifier assigned by its provider.
func (*LifecyclePolicy) Policy ¶
func (r *LifecyclePolicy) Policy() *pulumi.StringOutput
The policy document. This is a JSON formatted string. See more details about [Policy Parameters](http://docs.aws.amazon.com/AmazonECR/latest/userguide/LifecyclePolicies.html#lifecycle_policy_parameters) in the official AWS docs.
func (*LifecyclePolicy) RegistryId ¶
func (r *LifecyclePolicy) RegistryId() *pulumi.StringOutput
The registry ID where the repository was created.
func (*LifecyclePolicy) Repository ¶
func (r *LifecyclePolicy) Repository() *pulumi.StringOutput
Name of the repository to apply the policy.
func (*LifecyclePolicy) URN ¶
func (r *LifecyclePolicy) URN() *pulumi.URNOutput
URN is this resource's unique name assigned by Pulumi.
type LifecyclePolicyArgs ¶
type LifecyclePolicyArgs struct { // The policy document. This is a JSON formatted string. See more details about [Policy Parameters](http://docs.aws.amazon.com/AmazonECR/latest/userguide/LifecyclePolicies.html#lifecycle_policy_parameters) in the official AWS docs. Policy interface{} // Name of the repository to apply the policy. Repository interface{} }
The set of arguments for constructing a LifecyclePolicy resource.
type LifecyclePolicyState ¶
type LifecyclePolicyState struct { // The policy document. This is a JSON formatted string. See more details about [Policy Parameters](http://docs.aws.amazon.com/AmazonECR/latest/userguide/LifecyclePolicies.html#lifecycle_policy_parameters) in the official AWS docs. Policy interface{} // The registry ID where the repository was created. RegistryId interface{} // Name of the repository to apply the policy. Repository interface{} }
Input properties used for looking up and filtering LifecyclePolicy resources.
type Repository ¶
type Repository struct {
// contains filtered or unexported fields
}
Provides an Elastic Container Registry Repository.
> This content is derived from https://github.com/terraform-providers/terraform-provider-aws/blob/master/website/docs/r/ecr_repository.html.markdown.
func GetRepository ¶
func GetRepository(ctx *pulumi.Context, name string, id pulumi.ID, state *RepositoryState, opts ...pulumi.ResourceOpt) (*Repository, error)
GetRepository gets an existing Repository resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewRepository ¶
func NewRepository(ctx *pulumi.Context, name string, args *RepositoryArgs, opts ...pulumi.ResourceOpt) (*Repository, error)
NewRepository registers a new resource with the given unique name, arguments, and options.
func (*Repository) Arn ¶
func (r *Repository) Arn() *pulumi.StringOutput
Full ARN of the repository.
func (*Repository) ID ¶
func (r *Repository) ID() *pulumi.IDOutput
ID is this resource's unique identifier assigned by its provider.
func (*Repository) ImageTagMutability ¶ added in v0.18.27
func (r *Repository) ImageTagMutability() *pulumi.StringOutput
The tag mutability setting for the repository. Must be one of: `MUTABLE` or `IMMUTABLE`. Defaults to `MUTABLE`.
func (*Repository) RegistryId ¶
func (r *Repository) RegistryId() *pulumi.StringOutput
The registry ID where the repository was created.
func (*Repository) RepositoryUrl ¶
func (r *Repository) RepositoryUrl() *pulumi.StringOutput
The URL of the repository (in the form `aws_account_id.dkr.ecr.region.amazonaws.com/repositoryName`
func (*Repository) Tags ¶ added in v0.16.5
func (r *Repository) Tags() *pulumi.MapOutput
A mapping of tags to assign to the resource.
func (*Repository) URN ¶
func (r *Repository) URN() *pulumi.URNOutput
URN is this resource's unique name assigned by Pulumi.
type RepositoryArgs ¶
type RepositoryArgs struct { // The tag mutability setting for the repository. Must be one of: `MUTABLE` or `IMMUTABLE`. Defaults to `MUTABLE`. ImageTagMutability interface{} // Name of the repository. Name interface{} // A mapping of tags to assign to the resource. Tags interface{} }
The set of arguments for constructing a Repository resource.
type RepositoryPolicy ¶
type RepositoryPolicy struct {
// contains filtered or unexported fields
}
Provides an Elastic Container Registry Repository Policy.
Note that currently only one policy may be applied to a repository.
> This content is derived from https://github.com/terraform-providers/terraform-provider-aws/blob/master/website/docs/r/ecr_repository_policy.html.markdown.
func GetRepositoryPolicy ¶
func GetRepositoryPolicy(ctx *pulumi.Context, name string, id pulumi.ID, state *RepositoryPolicyState, opts ...pulumi.ResourceOpt) (*RepositoryPolicy, error)
GetRepositoryPolicy gets an existing RepositoryPolicy resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewRepositoryPolicy ¶
func NewRepositoryPolicy(ctx *pulumi.Context, name string, args *RepositoryPolicyArgs, opts ...pulumi.ResourceOpt) (*RepositoryPolicy, error)
NewRepositoryPolicy registers a new resource with the given unique name, arguments, and options.
func (*RepositoryPolicy) ID ¶
func (r *RepositoryPolicy) ID() *pulumi.IDOutput
ID is this resource's unique identifier assigned by its provider.
func (*RepositoryPolicy) Policy ¶
func (r *RepositoryPolicy) Policy() *pulumi.StringOutput
The policy document. This is a JSON formatted string.
func (*RepositoryPolicy) RegistryId ¶
func (r *RepositoryPolicy) RegistryId() *pulumi.StringOutput
The registry ID where the repository was created.
func (*RepositoryPolicy) Repository ¶
func (r *RepositoryPolicy) Repository() *pulumi.StringOutput
Name of the repository to apply the policy.
func (*RepositoryPolicy) URN ¶
func (r *RepositoryPolicy) URN() *pulumi.URNOutput
URN is this resource's unique name assigned by Pulumi.
type RepositoryPolicyArgs ¶
type RepositoryPolicyArgs struct { // The policy document. This is a JSON formatted string. Policy interface{} // Name of the repository to apply the policy. Repository interface{} }
The set of arguments for constructing a RepositoryPolicy resource.
type RepositoryPolicyState ¶
type RepositoryPolicyState struct { // The policy document. This is a JSON formatted string. Policy interface{} // The registry ID where the repository was created. RegistryId interface{} // Name of the repository to apply the policy. Repository interface{} }
Input properties used for looking up and filtering RepositoryPolicy resources.
type RepositoryState ¶
type RepositoryState struct { // Full ARN of the repository. Arn interface{} // The tag mutability setting for the repository. Must be one of: `MUTABLE` or `IMMUTABLE`. Defaults to `MUTABLE`. ImageTagMutability interface{} // Name of the repository. Name interface{} // The registry ID where the repository was created. RegistryId interface{} // The URL of the repository (in the form `aws_account_id.dkr.ecr.region.amazonaws.com/repositoryName` RepositoryUrl interface{} // A mapping of tags to assign to the resource. Tags interface{} }
Input properties used for looking up and filtering Repository resources.