Documentation ¶
Index ¶
- Constants
- type BuilderVersion
- type DockerBuild
- type Image
- type ImageArgs
- type ImageArray
- type ImageArrayInput
- type ImageArrayOutput
- type ImageInput
- type ImageMap
- type ImageMapInput
- type ImageMapOutput
- type ImageOutput
- type LifecyclePolicy
- type LifecyclePolicyArgs
- func (LifecyclePolicyArgs) ElementType() reflect.Type
- func (i LifecyclePolicyArgs) ToLifecyclePolicyOutput() LifecyclePolicyOutput
- func (i LifecyclePolicyArgs) ToLifecyclePolicyOutputWithContext(ctx context.Context) LifecyclePolicyOutput
- func (i LifecyclePolicyArgs) ToLifecyclePolicyPtrOutput() LifecyclePolicyPtrOutput
- func (i LifecyclePolicyArgs) ToLifecyclePolicyPtrOutputWithContext(ctx context.Context) LifecyclePolicyPtrOutput
- type LifecyclePolicyInput
- type LifecyclePolicyOutput
- func (LifecyclePolicyOutput) ElementType() reflect.Type
- func (o LifecyclePolicyOutput) Rules() LifecyclePolicyRuleArrayOutput
- func (o LifecyclePolicyOutput) Skip() pulumi.BoolPtrOutput
- func (o LifecyclePolicyOutput) ToLifecyclePolicyOutput() LifecyclePolicyOutput
- func (o LifecyclePolicyOutput) ToLifecyclePolicyOutputWithContext(ctx context.Context) LifecyclePolicyOutput
- func (o LifecyclePolicyOutput) ToLifecyclePolicyPtrOutput() LifecyclePolicyPtrOutput
- func (o LifecyclePolicyOutput) ToLifecyclePolicyPtrOutputWithContext(ctx context.Context) LifecyclePolicyPtrOutput
- type LifecyclePolicyPtrInput
- type LifecyclePolicyPtrOutput
- func (o LifecyclePolicyPtrOutput) Elem() LifecyclePolicyOutput
- func (LifecyclePolicyPtrOutput) ElementType() reflect.Type
- func (o LifecyclePolicyPtrOutput) Rules() LifecyclePolicyRuleArrayOutput
- func (o LifecyclePolicyPtrOutput) Skip() pulumi.BoolPtrOutput
- func (o LifecyclePolicyPtrOutput) ToLifecyclePolicyPtrOutput() LifecyclePolicyPtrOutput
- func (o LifecyclePolicyPtrOutput) ToLifecyclePolicyPtrOutputWithContext(ctx context.Context) LifecyclePolicyPtrOutput
- type LifecyclePolicyRule
- type LifecyclePolicyRuleArgs
- type LifecyclePolicyRuleArray
- type LifecyclePolicyRuleArrayInput
- type LifecyclePolicyRuleArrayOutput
- func (LifecyclePolicyRuleArrayOutput) ElementType() reflect.Type
- func (o LifecyclePolicyRuleArrayOutput) Index(i pulumi.IntInput) LifecyclePolicyRuleOutput
- func (o LifecyclePolicyRuleArrayOutput) ToLifecyclePolicyRuleArrayOutput() LifecyclePolicyRuleArrayOutput
- func (o LifecyclePolicyRuleArrayOutput) ToLifecyclePolicyRuleArrayOutputWithContext(ctx context.Context) LifecyclePolicyRuleArrayOutput
- type LifecyclePolicyRuleInput
- type LifecyclePolicyRuleOutput
- func (o LifecyclePolicyRuleOutput) Description() pulumi.StringPtrOutput
- func (LifecyclePolicyRuleOutput) ElementType() reflect.Type
- func (o LifecyclePolicyRuleOutput) MaximumAgeLimit() pulumi.Float64PtrOutput
- func (o LifecyclePolicyRuleOutput) MaximumNumberOfImages() pulumi.Float64PtrOutput
- func (o LifecyclePolicyRuleOutput) TagPrefixList() pulumi.StringArrayOutput
- func (o LifecyclePolicyRuleOutput) TagStatus() LifecycleTagStatusOutput
- func (o LifecyclePolicyRuleOutput) ToLifecyclePolicyRuleOutput() LifecyclePolicyRuleOutput
- func (o LifecyclePolicyRuleOutput) ToLifecyclePolicyRuleOutputWithContext(ctx context.Context) LifecyclePolicyRuleOutput
- type LifecycleTagStatus
- func (LifecycleTagStatus) ElementType() reflect.Type
- func (e LifecycleTagStatus) ToLifecycleTagStatusOutput() LifecycleTagStatusOutput
- func (e LifecycleTagStatus) ToLifecycleTagStatusOutputWithContext(ctx context.Context) LifecycleTagStatusOutput
- func (e LifecycleTagStatus) ToLifecycleTagStatusPtrOutput() LifecycleTagStatusPtrOutput
- func (e LifecycleTagStatus) ToLifecycleTagStatusPtrOutputWithContext(ctx context.Context) LifecycleTagStatusPtrOutput
- func (e LifecycleTagStatus) ToStringOutput() pulumi.StringOutput
- func (e LifecycleTagStatus) ToStringOutputWithContext(ctx context.Context) pulumi.StringOutput
- func (e LifecycleTagStatus) ToStringPtrOutput() pulumi.StringPtrOutput
- func (e LifecycleTagStatus) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput
- type LifecycleTagStatusInput
- type LifecycleTagStatusOutput
- func (LifecycleTagStatusOutput) ElementType() reflect.Type
- func (o LifecycleTagStatusOutput) ToLifecycleTagStatusOutput() LifecycleTagStatusOutput
- func (o LifecycleTagStatusOutput) ToLifecycleTagStatusOutputWithContext(ctx context.Context) LifecycleTagStatusOutput
- func (o LifecycleTagStatusOutput) ToLifecycleTagStatusPtrOutput() LifecycleTagStatusPtrOutput
- func (o LifecycleTagStatusOutput) ToLifecycleTagStatusPtrOutputWithContext(ctx context.Context) LifecycleTagStatusPtrOutput
- func (o LifecycleTagStatusOutput) ToStringOutput() pulumi.StringOutput
- func (o LifecycleTagStatusOutput) ToStringOutputWithContext(ctx context.Context) pulumi.StringOutput
- func (o LifecycleTagStatusOutput) ToStringPtrOutput() pulumi.StringPtrOutput
- func (o LifecycleTagStatusOutput) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput
- type LifecycleTagStatusPtrInput
- type LifecycleTagStatusPtrOutput
- func (o LifecycleTagStatusPtrOutput) Elem() LifecycleTagStatusOutput
- func (LifecycleTagStatusPtrOutput) ElementType() reflect.Type
- func (o LifecycleTagStatusPtrOutput) ToLifecycleTagStatusPtrOutput() LifecycleTagStatusPtrOutput
- func (o LifecycleTagStatusPtrOutput) ToLifecycleTagStatusPtrOutputWithContext(ctx context.Context) LifecycleTagStatusPtrOutput
- func (o LifecycleTagStatusPtrOutput) ToStringPtrOutput() pulumi.StringPtrOutput
- func (o LifecycleTagStatusPtrOutput) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput
- type Repository
- type RepositoryArgs
- type RepositoryArray
- type RepositoryArrayInput
- type RepositoryArrayOutput
- func (RepositoryArrayOutput) ElementType() reflect.Type
- func (o RepositoryArrayOutput) Index(i pulumi.IntInput) RepositoryOutput
- func (o RepositoryArrayOutput) ToRepositoryArrayOutput() RepositoryArrayOutput
- func (o RepositoryArrayOutput) ToRepositoryArrayOutputWithContext(ctx context.Context) RepositoryArrayOutput
- type RepositoryInput
- type RepositoryMap
- type RepositoryMapInput
- type RepositoryMapOutput
- func (RepositoryMapOutput) ElementType() reflect.Type
- func (o RepositoryMapOutput) MapIndex(k pulumi.StringInput) RepositoryOutput
- func (o RepositoryMapOutput) ToRepositoryMapOutput() RepositoryMapOutput
- func (o RepositoryMapOutput) ToRepositoryMapOutputWithContext(ctx context.Context) RepositoryMapOutput
- type RepositoryOutput
- func (RepositoryOutput) ElementType() reflect.Type
- func (o RepositoryOutput) LifecyclePolicy() ecr.LifecyclePolicyOutput
- func (o RepositoryOutput) Repository() ecr.RepositoryOutput
- func (o RepositoryOutput) ToRepositoryOutput() RepositoryOutput
- func (o RepositoryOutput) ToRepositoryOutputWithContext(ctx context.Context) RepositoryOutput
- func (o RepositoryOutput) Url() pulumi.StringOutput
Constants ¶
const ( // The first generation builder for Docker Daemon. BuilderVersionBuilderV1 = BuilderVersion("BuilderV1") // The builder based on moby/buildkit project BuilderVersionBuilderBuildKit = BuilderVersion("BuilderBuildKit") )
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"` // The version of the Docker builder. BuilderVersion *BuilderVersion `pulumi:"builderVersion"` // Images to consider as cache sources CacheFrom []string `pulumi:"cacheFrom"` // 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. Context *string `pulumi:"context"` // 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"` // Custom name for the underlying Docker image resource. If omitted, the image tag assigned by the provider will be used ImageName *string `pulumi:"imageName"` // Custom image tag for the resulting docker image. If omitted a random string will be used ImageTag *string `pulumi:"imageTag"` // The architecture of the platform you want to build this image for, e.g. `linux/arm64`. Platform *string `pulumi:"platform"` // 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) 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 // The version of the Docker builder. BuilderVersion *BuilderVersion // Images to consider as cache sources CacheFrom 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. Context pulumi.StringPtrInput // 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 // Custom name for the underlying Docker image resource. If omitted, the image tag assigned by the provider will be used ImageName pulumi.StringPtrInput // Custom image tag for the resulting docker image. If omitted a random string will be used ImageTag pulumi.StringPtrInput // The architecture of the platform you want to build this image for, e.g. `linux/arm64`. Platform pulumi.StringPtrInput // ID of the ECR registry in which to store the image. If not provided, this will be inferred from the repository URL) RegistryId 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 ¶
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 (o ImageArrayOutput) Index(i pulumi.IntInput) ImageOutput
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) 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 (o ImageMapOutput) MapIndex(k pulumi.StringInput) ImageOutput
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 ¶
func (o LifecyclePolicyOutput) Rules() LifecyclePolicyRuleArrayOutput
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 ¶
func (o LifecyclePolicyOutput) Skip() pulumi.BoolPtrOutput
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
func LifecyclePolicyPtr ¶
func LifecyclePolicyPtr(v *LifecyclePolicyArgs) LifecyclePolicyPtrInput
type LifecyclePolicyPtrOutput ¶
type LifecyclePolicyPtrOutput struct{ *pulumi.OutputState }
func (LifecyclePolicyPtrOutput) Elem ¶
func (o LifecyclePolicyPtrOutput) Elem() LifecyclePolicyOutput
func (LifecyclePolicyPtrOutput) ElementType ¶
func (LifecyclePolicyPtrOutput) ElementType() reflect.Type
func (LifecyclePolicyPtrOutput) Rules ¶
func (o LifecyclePolicyPtrOutput) Rules() LifecyclePolicyRuleArrayOutput
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 ¶
func (o LifecyclePolicyPtrOutput) Skip() pulumi.BoolPtrOutput
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) ElementType() reflect.Type
func (LifecyclePolicyRuleArrayOutput) Index ¶
func (o LifecyclePolicyRuleArrayOutput) Index(i pulumi.IntInput) LifecyclePolicyRuleOutput
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 ¶
func (o LifecyclePolicyRuleOutput) Description() pulumi.StringPtrOutput
Describes the purpose of a rule within a lifecycle policy.
func (LifecyclePolicyRuleOutput) ElementType ¶
func (LifecyclePolicyRuleOutput) ElementType() reflect.Type
func (LifecyclePolicyRuleOutput) MaximumAgeLimit ¶
func (o LifecyclePolicyRuleOutput) MaximumAgeLimit() pulumi.Float64PtrOutput
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 ¶
func (o LifecyclePolicyRuleOutput) TagPrefixList() pulumi.StringArrayOutput
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 ¶
func (o LifecyclePolicyRuleOutput) TagStatus() LifecycleTagStatusOutput
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 values of the LifecycleTagStatus enum A concrete instance of `LifecycleTagStatusInput` can be one of the following:
LifecycleTagStatusAny LifecycleTagStatusUntagged LifecycleTagStatusTagged
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 (o LifecycleTagStatusPtrOutput) Elem() LifecycleTagStatusOutput
func (LifecycleTagStatusPtrOutput) ElementType ¶
func (LifecycleTagStatusPtrOutput) ElementType() reflect.Type
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 // If `true`, will delete the repository even if it contains images. // Defaults to `false`. ForceDelete pulumi.BoolPtrInput // 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 (o RepositoryArrayOutput) Index(i pulumi.IntInput) RepositoryOutput
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 (o RepositoryMapOutput) MapIndex(k pulumi.StringInput) RepositoryOutput
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 ¶
func (o RepositoryOutput) Url() pulumi.StringOutput
The URL of the repository (in the form aws_account_id.dkr.ecr.region.amazonaws.com/repositoryName).