ecr

package
v0.18.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 5, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

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{}
	// 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 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{}
	// 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.

type LifecyclePolicy

type LifecyclePolicy struct {
	// contains filtered or unexported fields
}

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

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. For more information about building IAM policy documents with Terraform, see the [AWS IAM Policy Document Guide](https://www.terraform.io/docs/providers/aws/guides/iam-policy-documents.html).

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. For more information about building IAM policy documents with Terraform, see the [AWS IAM Policy Document Guide](https://www.terraform.io/docs/providers/aws/guides/iam-policy-documents.html).
	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. For more information about building IAM policy documents with Terraform, see the [AWS IAM Policy Document Guide](https://www.terraform.io/docs/providers/aws/guides/iam-policy-documents.html).
	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 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](https://docs.aws.amazon.com/general/latest/gr/rande.html#ecr_region).

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) Name

func (r *Repository) Name() *pulumi.StringOutput

Name of the repository.

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 {
	// 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 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](https://docs.aws.amazon.com/general/latest/gr/rande.html#ecr_region).

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. For more information about building IAM policy documents with Terraform, see the [AWS IAM Policy Document Guide](https://www.terraform.io/docs/providers/aws/guides/iam-policy-documents.html)

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. For more information about building IAM policy documents with Terraform, see the [AWS IAM Policy Document Guide](https://www.terraform.io/docs/providers/aws/guides/iam-policy-documents.html)
	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. For more information about building IAM policy documents with Terraform, see the [AWS IAM Policy Document Guide](https://www.terraform.io/docs/providers/aws/guides/iam-policy-documents.html)
	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{}
	// 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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL