ecr

package
v0.0.0-...-aedec29 Latest Latest
Warning

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

Go to latest
Published: May 30, 2022 License: Apache-2.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

View Source
const (
	// Evaluate rule against all images
	LifecycleTagStatusAny = LifecycleTagStatus("any")
	// Only evaluate rule against untagged images
	LifecycleTagStatusUntagged = LifecycleTagStatus("untagged")
	// Only evaluated rule against images with specified prefixes
	LifecycleTagStatusTagged = LifecycleTagStatus("tagged")
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DockerBuild

type DockerBuild struct {
	// An optional map of named build-time argument variables to set during the Docker build.  This flag allows you to pass built-time variables that can be accessed like environment variables inside the `RUN` instruction.
	Args map[string]string `pulumi:"args"`
	// Images to consider as cache sources
	CacheFrom []string `pulumi:"cacheFrom"`
	// dockerfile may be used to override the default Dockerfile name and/or location.  By default, it is assumed to be a file named Dockerfile in the root of the build context.
	Dockerfile *string `pulumi:"dockerfile"`
	// Environment variables to set on the invocation of `docker build`, for example to support `DOCKER_BUILDKIT=1 docker build`.
	Env map[string]string `pulumi:"env"`
	// An optional catch-all list of arguments to provide extra CLI options to the docker build command.  For example `['--network', 'host']`.
	ExtraOptions []string `pulumi:"extraOptions"`
	// Path to a directory to use for the Docker build context, usually the directory in which the Dockerfile resides (although dockerfile may be used to choose a custom location independent of this choice). If not specified, the context defaults to the current working directory; if a relative path is used, it is relative to the current working directory that Pulumi is evaluating.
	Path *string `pulumi:"path"`
	// The target of the dockerfile to build
	Target *string `pulumi:"target"`
}

Arguments for building a docker image

type Image

type Image struct {
	pulumi.ResourceState

	// Unique identifier of the pushed image
	ImageUri pulumi.StringOutput `pulumi:"imageUri"`
}

Builds a docker image and pushes to the ECR repository

func NewImage

func NewImage(ctx *pulumi.Context,
	name string, args *ImageArgs, opts ...pulumi.ResourceOption) (*Image, error)

NewImage registers a new resource with the given unique name, arguments, and options.

func (*Image) ElementType

func (*Image) ElementType() reflect.Type

func (*Image) ToImageOutput

func (i *Image) ToImageOutput() ImageOutput

func (*Image) ToImageOutputWithContext

func (i *Image) ToImageOutputWithContext(ctx context.Context) ImageOutput

type ImageArgs

type ImageArgs struct {
	// An optional map of named build-time argument variables to set during the Docker build.  This flag allows you to pass built-time variables that can be accessed like environment variables inside the `RUN` instruction.
	Args pulumi.StringMapInput
	// Images to consider as cache sources
	CacheFrom pulumi.StringArrayInput
	// dockerfile may be used to override the default Dockerfile name and/or location.  By default, it is assumed to be a file named Dockerfile in the root of the build context.
	Dockerfile pulumi.StringPtrInput
	// Environment variables to set on the invocation of `docker build`, for example to support `DOCKER_BUILDKIT=1 docker build`.
	Env pulumi.StringMapInput
	// An optional catch-all list of arguments to provide extra CLI options to the docker build command.  For example `['--network', 'host']`.
	ExtraOptions pulumi.StringArrayInput
	// Path to a directory to use for the Docker build context, usually the directory in which the Dockerfile resides (although dockerfile may be used to choose a custom location independent of this choice). If not specified, the context defaults to the current working directory; if a relative path is used, it is relative to the current working directory that Pulumi is evaluating.
	Path pulumi.StringPtrInput
	// Url of the repository
	RepositoryUrl pulumi.StringInput
	// The target of the dockerfile to build
	Target pulumi.StringPtrInput
}

The set of arguments for constructing a Image resource.

func (ImageArgs) ElementType

func (ImageArgs) ElementType() reflect.Type

type ImageArray

type ImageArray []ImageInput

func (ImageArray) ElementType

func (ImageArray) ElementType() reflect.Type

func (ImageArray) ToImageArrayOutput

func (i ImageArray) ToImageArrayOutput() ImageArrayOutput

func (ImageArray) ToImageArrayOutputWithContext

func (i ImageArray) ToImageArrayOutputWithContext(ctx context.Context) ImageArrayOutput

type ImageArrayInput

type ImageArrayInput interface {
	pulumi.Input

	ToImageArrayOutput() ImageArrayOutput
	ToImageArrayOutputWithContext(context.Context) ImageArrayOutput
}

ImageArrayInput is an input type that accepts ImageArray and ImageArrayOutput values. You can construct a concrete instance of `ImageArrayInput` via:

ImageArray{ ImageArgs{...} }

type ImageArrayOutput

type ImageArrayOutput struct{ *pulumi.OutputState }

func (ImageArrayOutput) ElementType

func (ImageArrayOutput) ElementType() reflect.Type

func (ImageArrayOutput) Index

func (ImageArrayOutput) ToImageArrayOutput

func (o ImageArrayOutput) ToImageArrayOutput() ImageArrayOutput

func (ImageArrayOutput) ToImageArrayOutputWithContext

func (o ImageArrayOutput) ToImageArrayOutputWithContext(ctx context.Context) ImageArrayOutput

type ImageInput

type ImageInput interface {
	pulumi.Input

	ToImageOutput() ImageOutput
	ToImageOutputWithContext(ctx context.Context) ImageOutput
}

type ImageMap

type ImageMap map[string]ImageInput

func (ImageMap) ElementType

func (ImageMap) ElementType() reflect.Type

func (ImageMap) ToImageMapOutput

func (i ImageMap) ToImageMapOutput() ImageMapOutput

func (ImageMap) ToImageMapOutputWithContext

func (i ImageMap) ToImageMapOutputWithContext(ctx context.Context) ImageMapOutput

type ImageMapInput

type ImageMapInput interface {
	pulumi.Input

	ToImageMapOutput() ImageMapOutput
	ToImageMapOutputWithContext(context.Context) ImageMapOutput
}

ImageMapInput is an input type that accepts ImageMap and ImageMapOutput values. You can construct a concrete instance of `ImageMapInput` via:

ImageMap{ "key": ImageArgs{...} }

type ImageMapOutput

type ImageMapOutput struct{ *pulumi.OutputState }

func (ImageMapOutput) ElementType

func (ImageMapOutput) ElementType() reflect.Type

func (ImageMapOutput) MapIndex

func (ImageMapOutput) ToImageMapOutput

func (o ImageMapOutput) ToImageMapOutput() ImageMapOutput

func (ImageMapOutput) ToImageMapOutputWithContext

func (o ImageMapOutput) ToImageMapOutputWithContext(ctx context.Context) ImageMapOutput

type ImageOutput

type ImageOutput struct{ *pulumi.OutputState }

func (ImageOutput) ElementType

func (ImageOutput) ElementType() reflect.Type

func (ImageOutput) ImageUri

func (o ImageOutput) ImageUri() pulumi.StringOutput

Unique identifier of the pushed image

func (ImageOutput) ToImageOutput

func (o ImageOutput) ToImageOutput() ImageOutput

func (ImageOutput) ToImageOutputWithContext

func (o ImageOutput) ToImageOutputWithContext(ctx context.Context) ImageOutput

type LifecyclePolicy

type LifecyclePolicy struct {
	// Specifies the rules to determine how images should be retired from this repository. Rules are ordered from lowest priority to highest. If there is a rule with a `selection` value of `any`, then it will have the highest priority.
	Rules []LifecyclePolicyRule `pulumi:"rules"`
	// Skips creation of the policy if set to `true`.
	Skip *bool `pulumi:"skip"`
}

Simplified lifecycle policy model consisting of one or more rules that determine which images in a repository should be expired. See https://docs.aws.amazon.com/AmazonECR/latest/userguide/lifecycle_policy_examples.html for more details.

type LifecyclePolicyArgs

type LifecyclePolicyArgs struct {
	// Specifies the rules to determine how images should be retired from this repository. Rules are ordered from lowest priority to highest. If there is a rule with a `selection` value of `any`, then it will have the highest priority.
	Rules LifecyclePolicyRuleArrayInput `pulumi:"rules"`
	// Skips creation of the policy if set to `true`.
	Skip *bool `pulumi:"skip"`
}

Simplified lifecycle policy model consisting of one or more rules that determine which images in a repository should be expired. See https://docs.aws.amazon.com/AmazonECR/latest/userguide/lifecycle_policy_examples.html for more details.

func (LifecyclePolicyArgs) ElementType

func (LifecyclePolicyArgs) ElementType() reflect.Type

func (LifecyclePolicyArgs) ToLifecyclePolicyOutput

func (i LifecyclePolicyArgs) ToLifecyclePolicyOutput() LifecyclePolicyOutput

func (LifecyclePolicyArgs) ToLifecyclePolicyOutputWithContext

func (i LifecyclePolicyArgs) ToLifecyclePolicyOutputWithContext(ctx context.Context) LifecyclePolicyOutput

func (LifecyclePolicyArgs) ToLifecyclePolicyPtrOutput

func (i LifecyclePolicyArgs) ToLifecyclePolicyPtrOutput() LifecyclePolicyPtrOutput

func (LifecyclePolicyArgs) ToLifecyclePolicyPtrOutputWithContext

func (i LifecyclePolicyArgs) ToLifecyclePolicyPtrOutputWithContext(ctx context.Context) LifecyclePolicyPtrOutput

type LifecyclePolicyInput

type LifecyclePolicyInput interface {
	pulumi.Input

	ToLifecyclePolicyOutput() LifecyclePolicyOutput
	ToLifecyclePolicyOutputWithContext(context.Context) LifecyclePolicyOutput
}

LifecyclePolicyInput is an input type that accepts LifecyclePolicyArgs and LifecyclePolicyOutput values. You can construct a concrete instance of `LifecyclePolicyInput` via:

LifecyclePolicyArgs{...}

type LifecyclePolicyOutput

type LifecyclePolicyOutput struct{ *pulumi.OutputState }

Simplified lifecycle policy model consisting of one or more rules that determine which images in a repository should be expired. See https://docs.aws.amazon.com/AmazonECR/latest/userguide/lifecycle_policy_examples.html for more details.

func (LifecyclePolicyOutput) ElementType

func (LifecyclePolicyOutput) ElementType() reflect.Type

func (LifecyclePolicyOutput) Rules

Specifies the rules to determine how images should be retired from this repository. Rules are ordered from lowest priority to highest. If there is a rule with a `selection` value of `any`, then it will have the highest priority.

func (LifecyclePolicyOutput) Skip

Skips creation of the policy if set to `true`.

func (LifecyclePolicyOutput) ToLifecyclePolicyOutput

func (o LifecyclePolicyOutput) ToLifecyclePolicyOutput() LifecyclePolicyOutput

func (LifecyclePolicyOutput) ToLifecyclePolicyOutputWithContext

func (o LifecyclePolicyOutput) ToLifecyclePolicyOutputWithContext(ctx context.Context) LifecyclePolicyOutput

func (LifecyclePolicyOutput) ToLifecyclePolicyPtrOutput

func (o LifecyclePolicyOutput) ToLifecyclePolicyPtrOutput() LifecyclePolicyPtrOutput

func (LifecyclePolicyOutput) ToLifecyclePolicyPtrOutputWithContext

func (o LifecyclePolicyOutput) ToLifecyclePolicyPtrOutputWithContext(ctx context.Context) LifecyclePolicyPtrOutput

type LifecyclePolicyPtrInput

type LifecyclePolicyPtrInput interface {
	pulumi.Input

	ToLifecyclePolicyPtrOutput() LifecyclePolicyPtrOutput
	ToLifecyclePolicyPtrOutputWithContext(context.Context) LifecyclePolicyPtrOutput
}

LifecyclePolicyPtrInput is an input type that accepts LifecyclePolicyArgs, LifecyclePolicyPtr and LifecyclePolicyPtrOutput values. You can construct a concrete instance of `LifecyclePolicyPtrInput` via:

        LifecyclePolicyArgs{...}

or:

        nil

type LifecyclePolicyPtrOutput

type LifecyclePolicyPtrOutput struct{ *pulumi.OutputState }

func (LifecyclePolicyPtrOutput) Elem

func (LifecyclePolicyPtrOutput) ElementType

func (LifecyclePolicyPtrOutput) ElementType() reflect.Type

func (LifecyclePolicyPtrOutput) Rules

Specifies the rules to determine how images should be retired from this repository. Rules are ordered from lowest priority to highest. If there is a rule with a `selection` value of `any`, then it will have the highest priority.

func (LifecyclePolicyPtrOutput) Skip

Skips creation of the policy if set to `true`.

func (LifecyclePolicyPtrOutput) ToLifecyclePolicyPtrOutput

func (o LifecyclePolicyPtrOutput) ToLifecyclePolicyPtrOutput() LifecyclePolicyPtrOutput

func (LifecyclePolicyPtrOutput) ToLifecyclePolicyPtrOutputWithContext

func (o LifecyclePolicyPtrOutput) ToLifecyclePolicyPtrOutputWithContext(ctx context.Context) LifecyclePolicyPtrOutput

type LifecyclePolicyRule

type LifecyclePolicyRule struct {
	// Describes the purpose of a rule within a lifecycle policy.
	Description *string `pulumi:"description"`
	// The maximum age limit (in days) for your images. Either [maximumNumberOfImages] or [maximumAgeLimit] must be provided.
	MaximumAgeLimit *float64 `pulumi:"maximumAgeLimit"`
	// The maximum number of images that you want to retain in your repository. Either [maximumNumberOfImages] or [maximumAgeLimit] must be provided.
	MaximumNumberOfImages *float64 `pulumi:"maximumNumberOfImages"`
	// A list of image tag prefixes on which to take action with your lifecycle policy. Only used if you specified "tagStatus": "tagged". For example, if your images are tagged as prod, prod1, prod2, and so on, you would use the tag prefix prod to specify all of them. If you specify multiple tags, only the images with all specified tags are selected.
	TagPrefixList []string `pulumi:"tagPrefixList"`
	// Determines whether the lifecycle policy rule that you are adding specifies a tag for an image. Acceptable options are tagged, untagged, or any. If you specify any, then all images have the rule evaluated against them. If you specify tagged, then you must also specify a tagPrefixList value. If you specify untagged, then you must omit tagPrefixList.
	TagStatus LifecycleTagStatus `pulumi:"tagStatus"`
}

A lifecycle policy rule that determine which images in a repository should be expired.

type LifecyclePolicyRuleArgs

type LifecyclePolicyRuleArgs struct {
	// Describes the purpose of a rule within a lifecycle policy.
	Description pulumi.StringPtrInput `pulumi:"description"`
	// The maximum age limit (in days) for your images. Either [maximumNumberOfImages] or [maximumAgeLimit] must be provided.
	MaximumAgeLimit pulumi.Float64PtrInput `pulumi:"maximumAgeLimit"`
	// The maximum number of images that you want to retain in your repository. Either [maximumNumberOfImages] or [maximumAgeLimit] must be provided.
	MaximumNumberOfImages pulumi.Float64PtrInput `pulumi:"maximumNumberOfImages"`
	// A list of image tag prefixes on which to take action with your lifecycle policy. Only used if you specified "tagStatus": "tagged". For example, if your images are tagged as prod, prod1, prod2, and so on, you would use the tag prefix prod to specify all of them. If you specify multiple tags, only the images with all specified tags are selected.
	TagPrefixList pulumi.StringArrayInput `pulumi:"tagPrefixList"`
	// Determines whether the lifecycle policy rule that you are adding specifies a tag for an image. Acceptable options are tagged, untagged, or any. If you specify any, then all images have the rule evaluated against them. If you specify tagged, then you must also specify a tagPrefixList value. If you specify untagged, then you must omit tagPrefixList.
	TagStatus LifecycleTagStatusInput `pulumi:"tagStatus"`
}

A lifecycle policy rule that determine which images in a repository should be expired.

func (LifecyclePolicyRuleArgs) ElementType

func (LifecyclePolicyRuleArgs) ElementType() reflect.Type

func (LifecyclePolicyRuleArgs) ToLifecyclePolicyRuleOutput

func (i LifecyclePolicyRuleArgs) ToLifecyclePolicyRuleOutput() LifecyclePolicyRuleOutput

func (LifecyclePolicyRuleArgs) ToLifecyclePolicyRuleOutputWithContext

func (i LifecyclePolicyRuleArgs) ToLifecyclePolicyRuleOutputWithContext(ctx context.Context) LifecyclePolicyRuleOutput

type LifecyclePolicyRuleArray

type LifecyclePolicyRuleArray []LifecyclePolicyRuleInput

func (LifecyclePolicyRuleArray) ElementType

func (LifecyclePolicyRuleArray) ElementType() reflect.Type

func (LifecyclePolicyRuleArray) ToLifecyclePolicyRuleArrayOutput

func (i LifecyclePolicyRuleArray) ToLifecyclePolicyRuleArrayOutput() LifecyclePolicyRuleArrayOutput

func (LifecyclePolicyRuleArray) ToLifecyclePolicyRuleArrayOutputWithContext

func (i LifecyclePolicyRuleArray) ToLifecyclePolicyRuleArrayOutputWithContext(ctx context.Context) LifecyclePolicyRuleArrayOutput

type LifecyclePolicyRuleArrayInput

type LifecyclePolicyRuleArrayInput interface {
	pulumi.Input

	ToLifecyclePolicyRuleArrayOutput() LifecyclePolicyRuleArrayOutput
	ToLifecyclePolicyRuleArrayOutputWithContext(context.Context) LifecyclePolicyRuleArrayOutput
}

LifecyclePolicyRuleArrayInput is an input type that accepts LifecyclePolicyRuleArray and LifecyclePolicyRuleArrayOutput values. You can construct a concrete instance of `LifecyclePolicyRuleArrayInput` via:

LifecyclePolicyRuleArray{ LifecyclePolicyRuleArgs{...} }

type LifecyclePolicyRuleArrayOutput

type LifecyclePolicyRuleArrayOutput struct{ *pulumi.OutputState }

func (LifecyclePolicyRuleArrayOutput) ElementType

func (LifecyclePolicyRuleArrayOutput) Index

func (LifecyclePolicyRuleArrayOutput) ToLifecyclePolicyRuleArrayOutput

func (o LifecyclePolicyRuleArrayOutput) ToLifecyclePolicyRuleArrayOutput() LifecyclePolicyRuleArrayOutput

func (LifecyclePolicyRuleArrayOutput) ToLifecyclePolicyRuleArrayOutputWithContext

func (o LifecyclePolicyRuleArrayOutput) ToLifecyclePolicyRuleArrayOutputWithContext(ctx context.Context) LifecyclePolicyRuleArrayOutput

type LifecyclePolicyRuleInput

type LifecyclePolicyRuleInput interface {
	pulumi.Input

	ToLifecyclePolicyRuleOutput() LifecyclePolicyRuleOutput
	ToLifecyclePolicyRuleOutputWithContext(context.Context) LifecyclePolicyRuleOutput
}

LifecyclePolicyRuleInput is an input type that accepts LifecyclePolicyRuleArgs and LifecyclePolicyRuleOutput values. You can construct a concrete instance of `LifecyclePolicyRuleInput` via:

LifecyclePolicyRuleArgs{...}

type LifecyclePolicyRuleOutput

type LifecyclePolicyRuleOutput struct{ *pulumi.OutputState }

A lifecycle policy rule that determine which images in a repository should be expired.

func (LifecyclePolicyRuleOutput) Description

Describes the purpose of a rule within a lifecycle policy.

func (LifecyclePolicyRuleOutput) ElementType

func (LifecyclePolicyRuleOutput) ElementType() reflect.Type

func (LifecyclePolicyRuleOutput) MaximumAgeLimit

The maximum age limit (in days) for your images. Either [maximumNumberOfImages] or [maximumAgeLimit] must be provided.

func (LifecyclePolicyRuleOutput) MaximumNumberOfImages

func (o LifecyclePolicyRuleOutput) MaximumNumberOfImages() pulumi.Float64PtrOutput

The maximum number of images that you want to retain in your repository. Either [maximumNumberOfImages] or [maximumAgeLimit] must be provided.

func (LifecyclePolicyRuleOutput) TagPrefixList

A list of image tag prefixes on which to take action with your lifecycle policy. Only used if you specified "tagStatus": "tagged". For example, if your images are tagged as prod, prod1, prod2, and so on, you would use the tag prefix prod to specify all of them. If you specify multiple tags, only the images with all specified tags are selected.

func (LifecyclePolicyRuleOutput) TagStatus

Determines whether the lifecycle policy rule that you are adding specifies a tag for an image. Acceptable options are tagged, untagged, or any. If you specify any, then all images have the rule evaluated against them. If you specify tagged, then you must also specify a tagPrefixList value. If you specify untagged, then you must omit tagPrefixList.

func (LifecyclePolicyRuleOutput) ToLifecyclePolicyRuleOutput

func (o LifecyclePolicyRuleOutput) ToLifecyclePolicyRuleOutput() LifecyclePolicyRuleOutput

func (LifecyclePolicyRuleOutput) ToLifecyclePolicyRuleOutputWithContext

func (o LifecyclePolicyRuleOutput) ToLifecyclePolicyRuleOutputWithContext(ctx context.Context) LifecyclePolicyRuleOutput

type LifecycleTagStatus

type LifecycleTagStatus string

func (LifecycleTagStatus) ElementType

func (LifecycleTagStatus) ElementType() reflect.Type

func (LifecycleTagStatus) ToLifecycleTagStatusOutput

func (e LifecycleTagStatus) ToLifecycleTagStatusOutput() LifecycleTagStatusOutput

func (LifecycleTagStatus) ToLifecycleTagStatusOutputWithContext

func (e LifecycleTagStatus) ToLifecycleTagStatusOutputWithContext(ctx context.Context) LifecycleTagStatusOutput

func (LifecycleTagStatus) ToLifecycleTagStatusPtrOutput

func (e LifecycleTagStatus) ToLifecycleTagStatusPtrOutput() LifecycleTagStatusPtrOutput

func (LifecycleTagStatus) ToLifecycleTagStatusPtrOutputWithContext

func (e LifecycleTagStatus) ToLifecycleTagStatusPtrOutputWithContext(ctx context.Context) LifecycleTagStatusPtrOutput

func (LifecycleTagStatus) ToStringOutput

func (e LifecycleTagStatus) ToStringOutput() pulumi.StringOutput

func (LifecycleTagStatus) ToStringOutputWithContext

func (e LifecycleTagStatus) ToStringOutputWithContext(ctx context.Context) pulumi.StringOutput

func (LifecycleTagStatus) ToStringPtrOutput

func (e LifecycleTagStatus) ToStringPtrOutput() pulumi.StringPtrOutput

func (LifecycleTagStatus) ToStringPtrOutputWithContext

func (e LifecycleTagStatus) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput

type LifecycleTagStatusInput

type LifecycleTagStatusInput interface {
	pulumi.Input

	ToLifecycleTagStatusOutput() LifecycleTagStatusOutput
	ToLifecycleTagStatusOutputWithContext(context.Context) LifecycleTagStatusOutput
}

LifecycleTagStatusInput is an input type that accepts LifecycleTagStatusArgs and LifecycleTagStatusOutput values. You can construct a concrete instance of `LifecycleTagStatusInput` via:

LifecycleTagStatusArgs{...}

type LifecycleTagStatusOutput

type LifecycleTagStatusOutput struct{ *pulumi.OutputState }

func (LifecycleTagStatusOutput) ElementType

func (LifecycleTagStatusOutput) ElementType() reflect.Type

func (LifecycleTagStatusOutput) ToLifecycleTagStatusOutput

func (o LifecycleTagStatusOutput) ToLifecycleTagStatusOutput() LifecycleTagStatusOutput

func (LifecycleTagStatusOutput) ToLifecycleTagStatusOutputWithContext

func (o LifecycleTagStatusOutput) ToLifecycleTagStatusOutputWithContext(ctx context.Context) LifecycleTagStatusOutput

func (LifecycleTagStatusOutput) ToLifecycleTagStatusPtrOutput

func (o LifecycleTagStatusOutput) ToLifecycleTagStatusPtrOutput() LifecycleTagStatusPtrOutput

func (LifecycleTagStatusOutput) ToLifecycleTagStatusPtrOutputWithContext

func (o LifecycleTagStatusOutput) ToLifecycleTagStatusPtrOutputWithContext(ctx context.Context) LifecycleTagStatusPtrOutput

func (LifecycleTagStatusOutput) ToStringOutput

func (o LifecycleTagStatusOutput) ToStringOutput() pulumi.StringOutput

func (LifecycleTagStatusOutput) ToStringOutputWithContext

func (o LifecycleTagStatusOutput) ToStringOutputWithContext(ctx context.Context) pulumi.StringOutput

func (LifecycleTagStatusOutput) ToStringPtrOutput

func (o LifecycleTagStatusOutput) ToStringPtrOutput() pulumi.StringPtrOutput

func (LifecycleTagStatusOutput) ToStringPtrOutputWithContext

func (o LifecycleTagStatusOutput) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput

type LifecycleTagStatusPtrInput

type LifecycleTagStatusPtrInput interface {
	pulumi.Input

	ToLifecycleTagStatusPtrOutput() LifecycleTagStatusPtrOutput
	ToLifecycleTagStatusPtrOutputWithContext(context.Context) LifecycleTagStatusPtrOutput
}

func LifecycleTagStatusPtr

func LifecycleTagStatusPtr(v string) LifecycleTagStatusPtrInput

type LifecycleTagStatusPtrOutput

type LifecycleTagStatusPtrOutput struct{ *pulumi.OutputState }

func (LifecycleTagStatusPtrOutput) Elem

func (LifecycleTagStatusPtrOutput) ElementType

func (LifecycleTagStatusPtrOutput) ToLifecycleTagStatusPtrOutput

func (o LifecycleTagStatusPtrOutput) ToLifecycleTagStatusPtrOutput() LifecycleTagStatusPtrOutput

func (LifecycleTagStatusPtrOutput) ToLifecycleTagStatusPtrOutputWithContext

func (o LifecycleTagStatusPtrOutput) ToLifecycleTagStatusPtrOutputWithContext(ctx context.Context) LifecycleTagStatusPtrOutput

func (LifecycleTagStatusPtrOutput) ToStringPtrOutput

func (o LifecycleTagStatusPtrOutput) ToStringPtrOutput() pulumi.StringPtrOutput

func (LifecycleTagStatusPtrOutput) ToStringPtrOutputWithContext

func (o LifecycleTagStatusPtrOutput) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput

type Repository

type Repository struct {
	pulumi.ResourceState

	// Underlying repository lifecycle policy
	LifecyclePolicy ecr.LifecyclePolicyOutput `pulumi:"lifecyclePolicy"`
	// Underlying Repository resource
	Repository ecr.RepositoryOutput `pulumi:"repository"`
	// The URL of the repository (in the form aws_account_id.dkr.ecr.region.amazonaws.com/repositoryName).
	Url pulumi.StringOutput `pulumi:"url"`
}

A Repository represents an [aws.ecr.Repository] along with an associated LifecyclePolicy controlling how images are retained in the repo.

Docker images can be built and pushed to the repo using the [buildAndPushImage] method. This will call into the `@pulumi/docker/buildAndPushImage` function using this repo as the appropriate destination registry.

func NewRepository

func NewRepository(ctx *pulumi.Context,
	name string, args *RepositoryArgs, opts ...pulumi.ResourceOption) (*Repository, error)

NewRepository registers a new resource with the given unique name, arguments, and options.

func (*Repository) ElementType

func (*Repository) ElementType() reflect.Type

func (*Repository) ToRepositoryOutput

func (i *Repository) ToRepositoryOutput() RepositoryOutput

func (*Repository) ToRepositoryOutputWithContext

func (i *Repository) ToRepositoryOutputWithContext(ctx context.Context) RepositoryOutput

type RepositoryArgs

type RepositoryArgs struct {
	// Encryption configuration for the repository. See below for schema.
	EncryptionConfigurations ecr.RepositoryEncryptionConfigurationArrayInput
	// Configuration block that defines image scanning configuration for the repository. By default, image scanning must be manually triggered. See the [ECR User Guide](https://docs.aws.amazon.com/AmazonECR/latest/userguide/image-scanning.html) for more information about image scanning.
	ImageScanningConfiguration ecr.RepositoryImageScanningConfigurationPtrInput
	// The tag mutability setting for the repository. Must be one of: `MUTABLE` or `IMMUTABLE`. Defaults to `MUTABLE`.
	ImageTagMutability pulumi.StringPtrInput
	// A lifecycle policy consists of one or more rules that determine which images in a repository should be expired. If not provided, this will default to untagged images expiring after 1 day.
	LifecyclePolicy *LifecyclePolicyArgs
	// Name of the repository.
	Name pulumi.StringPtrInput
	// A map of tags to assign to the resource. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
	Tags pulumi.StringMapInput
}

The set of arguments for constructing a Repository resource.

func (RepositoryArgs) ElementType

func (RepositoryArgs) ElementType() reflect.Type

type RepositoryArray

type RepositoryArray []RepositoryInput

func (RepositoryArray) ElementType

func (RepositoryArray) ElementType() reflect.Type

func (RepositoryArray) ToRepositoryArrayOutput

func (i RepositoryArray) ToRepositoryArrayOutput() RepositoryArrayOutput

func (RepositoryArray) ToRepositoryArrayOutputWithContext

func (i RepositoryArray) ToRepositoryArrayOutputWithContext(ctx context.Context) RepositoryArrayOutput

type RepositoryArrayInput

type RepositoryArrayInput interface {
	pulumi.Input

	ToRepositoryArrayOutput() RepositoryArrayOutput
	ToRepositoryArrayOutputWithContext(context.Context) RepositoryArrayOutput
}

RepositoryArrayInput is an input type that accepts RepositoryArray and RepositoryArrayOutput values. You can construct a concrete instance of `RepositoryArrayInput` via:

RepositoryArray{ RepositoryArgs{...} }

type RepositoryArrayOutput

type RepositoryArrayOutput struct{ *pulumi.OutputState }

func (RepositoryArrayOutput) ElementType

func (RepositoryArrayOutput) ElementType() reflect.Type

func (RepositoryArrayOutput) Index

func (RepositoryArrayOutput) ToRepositoryArrayOutput

func (o RepositoryArrayOutput) ToRepositoryArrayOutput() RepositoryArrayOutput

func (RepositoryArrayOutput) ToRepositoryArrayOutputWithContext

func (o RepositoryArrayOutput) ToRepositoryArrayOutputWithContext(ctx context.Context) RepositoryArrayOutput

type RepositoryInput

type RepositoryInput interface {
	pulumi.Input

	ToRepositoryOutput() RepositoryOutput
	ToRepositoryOutputWithContext(ctx context.Context) RepositoryOutput
}

type RepositoryMap

type RepositoryMap map[string]RepositoryInput

func (RepositoryMap) ElementType

func (RepositoryMap) ElementType() reflect.Type

func (RepositoryMap) ToRepositoryMapOutput

func (i RepositoryMap) ToRepositoryMapOutput() RepositoryMapOutput

func (RepositoryMap) ToRepositoryMapOutputWithContext

func (i RepositoryMap) ToRepositoryMapOutputWithContext(ctx context.Context) RepositoryMapOutput

type RepositoryMapInput

type RepositoryMapInput interface {
	pulumi.Input

	ToRepositoryMapOutput() RepositoryMapOutput
	ToRepositoryMapOutputWithContext(context.Context) RepositoryMapOutput
}

RepositoryMapInput is an input type that accepts RepositoryMap and RepositoryMapOutput values. You can construct a concrete instance of `RepositoryMapInput` via:

RepositoryMap{ "key": RepositoryArgs{...} }

type RepositoryMapOutput

type RepositoryMapOutput struct{ *pulumi.OutputState }

func (RepositoryMapOutput) ElementType

func (RepositoryMapOutput) ElementType() reflect.Type

func (RepositoryMapOutput) MapIndex

func (RepositoryMapOutput) ToRepositoryMapOutput

func (o RepositoryMapOutput) ToRepositoryMapOutput() RepositoryMapOutput

func (RepositoryMapOutput) ToRepositoryMapOutputWithContext

func (o RepositoryMapOutput) ToRepositoryMapOutputWithContext(ctx context.Context) RepositoryMapOutput

type RepositoryOutput

type RepositoryOutput struct{ *pulumi.OutputState }

func (RepositoryOutput) ElementType

func (RepositoryOutput) ElementType() reflect.Type

func (RepositoryOutput) LifecyclePolicy

func (o RepositoryOutput) LifecyclePolicy() ecr.LifecyclePolicyOutput

Underlying repository lifecycle policy

func (RepositoryOutput) Repository

func (o RepositoryOutput) Repository() ecr.RepositoryOutput

Underlying Repository resource

func (RepositoryOutput) ToRepositoryOutput

func (o RepositoryOutput) ToRepositoryOutput() RepositoryOutput

func (RepositoryOutput) ToRepositoryOutputWithContext

func (o RepositoryOutput) ToRepositoryOutputWithContext(ctx context.Context) RepositoryOutput

func (RepositoryOutput) Url

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

Jump to

Keyboard shortcuts

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