ecrpublic

package
v4.23.0 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repository

type Repository struct {
	pulumi.CustomResourceState

	// Full ARN of the repository.
	Arn pulumi.StringOutput `pulumi:"arn"`
	// Catalog data configuration for the repository. See below for schema.
	CatalogData  RepositoryCatalogDataPtrOutput `pulumi:"catalogData"`
	ForceDestroy pulumi.BoolPtrOutput           `pulumi:"forceDestroy"`
	// The registry ID where the repository was created.
	RegistryId pulumi.StringOutput `pulumi:"registryId"`
	// Name of the repository.
	RepositoryName pulumi.StringOutput `pulumi:"repositoryName"`
	// The URI of the repository.
	RepositoryUri pulumi.StringOutput `pulumi:"repositoryUri"`
}

Provides a Public Elastic Container Registry Repository.

> **NOTE:** This resource can only be used with `us-east-1` region.

## Example Usage

```go package main

import (

"encoding/base64"
"io/ioutil"

"github.com/pulumi/pulumi-aws/sdk/v4/go/aws/ecrpublic"
"github.com/pulumi/pulumi-aws/sdk/v4/go/aws/providers"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func filebase64OrPanic(path string) pulumi.StringPtrInput {
	if fileData, err := ioutil.ReadFile(path); err == nil {
		return pulumi.String(base64.StdEncoding.EncodeToString(fileData[:]))
	} else {
		panic(err.Error())
	}
}
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := providers.Newaws(ctx, "usEast1", &providers.awsArgs{
			Region: "us-east-1",
		})
		if err != nil {
			return err
		}
		_, err = ecrpublic.NewRepository(ctx, "foo", &ecrpublic.RepositoryArgs{
			RepositoryName: pulumi.String("bar"),
			CatalogData: &ecrpublic.RepositoryCatalogDataArgs{
				AboutText: pulumi.String("About Text"),
				Architectures: pulumi.StringArray{
					pulumi.String("ARM"),
				},
				Description:   pulumi.String("Description"),
				LogoImageBlob: filebase64OrPanic(image.Png),
				OperatingSystems: pulumi.StringArray{
					pulumi.String("Linux"),
				},
				UsageText: pulumi.String("Usage Text"),
			},
		}, pulumi.Provider(aws.Us_east_1))
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

ECR Public Repositories can be imported using the `repository_name`, e.g.

```sh

$ pulumi import aws:ecrpublic/repository:Repository example example

```

func GetRepository

func GetRepository(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *RepositoryState, opts ...pulumi.ResourceOption) (*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.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

func (*Repository) ToRepositoryPtrOutput

func (i *Repository) ToRepositoryPtrOutput() RepositoryPtrOutput

func (*Repository) ToRepositoryPtrOutputWithContext

func (i *Repository) ToRepositoryPtrOutputWithContext(ctx context.Context) RepositoryPtrOutput

type RepositoryArgs

type RepositoryArgs struct {
	// Catalog data configuration for the repository. See below for schema.
	CatalogData  RepositoryCatalogDataPtrInput
	ForceDestroy pulumi.BoolPtrInput
	// Name of the repository.
	RepositoryName pulumi.StringInput
}

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 RepositoryCatalogData

type RepositoryCatalogData struct {
	// A detailed description of the contents of the repository. It is publicly visible in the Amazon ECR Public Gallery. The text must be in markdown format.
	AboutText *string `pulumi:"aboutText"`
	// The system architecture that the images in the repository are compatible with. On the Amazon ECR Public Gallery, the following supported architectures will appear as badges on the repository and are used as search filters: `ARM`, `ARM 64`, `x86`, `x86-64`
	Architectures []string `pulumi:"architectures"`
	// A short description of the contents of the repository. This text appears in both the image details and also when searching for repositories on the Amazon ECR Public Gallery.
	Description *string `pulumi:"description"`
	// The base64-encoded repository logo payload. (Only visible for verified accounts) Note that drift detection is disabled for this attribute.
	LogoImageBlob *string `pulumi:"logoImageBlob"`
	// The operating systems that the images in the repository are compatible with. On the Amazon ECR Public Gallery, the following supported operating systems will appear as badges on the repository and are used as search filters: `Linux`, `Windows`
	OperatingSystems []string `pulumi:"operatingSystems"`
	// Detailed information on how to use the contents of the repository. It is publicly visible in the Amazon ECR Public Gallery. The usage text provides context, support information, and additional usage details for users of the repository. The text must be in markdown format.
	UsageText *string `pulumi:"usageText"`
}

type RepositoryCatalogDataArgs

type RepositoryCatalogDataArgs struct {
	// A detailed description of the contents of the repository. It is publicly visible in the Amazon ECR Public Gallery. The text must be in markdown format.
	AboutText pulumi.StringPtrInput `pulumi:"aboutText"`
	// The system architecture that the images in the repository are compatible with. On the Amazon ECR Public Gallery, the following supported architectures will appear as badges on the repository and are used as search filters: `ARM`, `ARM 64`, `x86`, `x86-64`
	Architectures pulumi.StringArrayInput `pulumi:"architectures"`
	// A short description of the contents of the repository. This text appears in both the image details and also when searching for repositories on the Amazon ECR Public Gallery.
	Description pulumi.StringPtrInput `pulumi:"description"`
	// The base64-encoded repository logo payload. (Only visible for verified accounts) Note that drift detection is disabled for this attribute.
	LogoImageBlob pulumi.StringPtrInput `pulumi:"logoImageBlob"`
	// The operating systems that the images in the repository are compatible with. On the Amazon ECR Public Gallery, the following supported operating systems will appear as badges on the repository and are used as search filters: `Linux`, `Windows`
	OperatingSystems pulumi.StringArrayInput `pulumi:"operatingSystems"`
	// Detailed information on how to use the contents of the repository. It is publicly visible in the Amazon ECR Public Gallery. The usage text provides context, support information, and additional usage details for users of the repository. The text must be in markdown format.
	UsageText pulumi.StringPtrInput `pulumi:"usageText"`
}

func (RepositoryCatalogDataArgs) ElementType

func (RepositoryCatalogDataArgs) ElementType() reflect.Type

func (RepositoryCatalogDataArgs) ToRepositoryCatalogDataOutput

func (i RepositoryCatalogDataArgs) ToRepositoryCatalogDataOutput() RepositoryCatalogDataOutput

func (RepositoryCatalogDataArgs) ToRepositoryCatalogDataOutputWithContext

func (i RepositoryCatalogDataArgs) ToRepositoryCatalogDataOutputWithContext(ctx context.Context) RepositoryCatalogDataOutput

func (RepositoryCatalogDataArgs) ToRepositoryCatalogDataPtrOutput

func (i RepositoryCatalogDataArgs) ToRepositoryCatalogDataPtrOutput() RepositoryCatalogDataPtrOutput

func (RepositoryCatalogDataArgs) ToRepositoryCatalogDataPtrOutputWithContext

func (i RepositoryCatalogDataArgs) ToRepositoryCatalogDataPtrOutputWithContext(ctx context.Context) RepositoryCatalogDataPtrOutput

type RepositoryCatalogDataInput

type RepositoryCatalogDataInput interface {
	pulumi.Input

	ToRepositoryCatalogDataOutput() RepositoryCatalogDataOutput
	ToRepositoryCatalogDataOutputWithContext(context.Context) RepositoryCatalogDataOutput
}

RepositoryCatalogDataInput is an input type that accepts RepositoryCatalogDataArgs and RepositoryCatalogDataOutput values. You can construct a concrete instance of `RepositoryCatalogDataInput` via:

RepositoryCatalogDataArgs{...}

type RepositoryCatalogDataOutput

type RepositoryCatalogDataOutput struct{ *pulumi.OutputState }

func (RepositoryCatalogDataOutput) AboutText

A detailed description of the contents of the repository. It is publicly visible in the Amazon ECR Public Gallery. The text must be in markdown format.

func (RepositoryCatalogDataOutput) Architectures

The system architecture that the images in the repository are compatible with. On the Amazon ECR Public Gallery, the following supported architectures will appear as badges on the repository and are used as search filters: `ARM`, `ARM 64`, `x86`, `x86-64`

func (RepositoryCatalogDataOutput) Description

A short description of the contents of the repository. This text appears in both the image details and also when searching for repositories on the Amazon ECR Public Gallery.

func (RepositoryCatalogDataOutput) ElementType

func (RepositoryCatalogDataOutput) LogoImageBlob

The base64-encoded repository logo payload. (Only visible for verified accounts) Note that drift detection is disabled for this attribute.

func (RepositoryCatalogDataOutput) OperatingSystems

The operating systems that the images in the repository are compatible with. On the Amazon ECR Public Gallery, the following supported operating systems will appear as badges on the repository and are used as search filters: `Linux`, `Windows`

func (RepositoryCatalogDataOutput) ToRepositoryCatalogDataOutput

func (o RepositoryCatalogDataOutput) ToRepositoryCatalogDataOutput() RepositoryCatalogDataOutput

func (RepositoryCatalogDataOutput) ToRepositoryCatalogDataOutputWithContext

func (o RepositoryCatalogDataOutput) ToRepositoryCatalogDataOutputWithContext(ctx context.Context) RepositoryCatalogDataOutput

func (RepositoryCatalogDataOutput) ToRepositoryCatalogDataPtrOutput

func (o RepositoryCatalogDataOutput) ToRepositoryCatalogDataPtrOutput() RepositoryCatalogDataPtrOutput

func (RepositoryCatalogDataOutput) ToRepositoryCatalogDataPtrOutputWithContext

func (o RepositoryCatalogDataOutput) ToRepositoryCatalogDataPtrOutputWithContext(ctx context.Context) RepositoryCatalogDataPtrOutput

func (RepositoryCatalogDataOutput) UsageText

Detailed information on how to use the contents of the repository. It is publicly visible in the Amazon ECR Public Gallery. The usage text provides context, support information, and additional usage details for users of the repository. The text must be in markdown format.

type RepositoryCatalogDataPtrInput

type RepositoryCatalogDataPtrInput interface {
	pulumi.Input

	ToRepositoryCatalogDataPtrOutput() RepositoryCatalogDataPtrOutput
	ToRepositoryCatalogDataPtrOutputWithContext(context.Context) RepositoryCatalogDataPtrOutput
}

RepositoryCatalogDataPtrInput is an input type that accepts RepositoryCatalogDataArgs, RepositoryCatalogDataPtr and RepositoryCatalogDataPtrOutput values. You can construct a concrete instance of `RepositoryCatalogDataPtrInput` via:

        RepositoryCatalogDataArgs{...}

or:

        nil

type RepositoryCatalogDataPtrOutput

type RepositoryCatalogDataPtrOutput struct{ *pulumi.OutputState }

func (RepositoryCatalogDataPtrOutput) AboutText

A detailed description of the contents of the repository. It is publicly visible in the Amazon ECR Public Gallery. The text must be in markdown format.

func (RepositoryCatalogDataPtrOutput) Architectures

The system architecture that the images in the repository are compatible with. On the Amazon ECR Public Gallery, the following supported architectures will appear as badges on the repository and are used as search filters: `ARM`, `ARM 64`, `x86`, `x86-64`

func (RepositoryCatalogDataPtrOutput) Description

A short description of the contents of the repository. This text appears in both the image details and also when searching for repositories on the Amazon ECR Public Gallery.

func (RepositoryCatalogDataPtrOutput) Elem

func (RepositoryCatalogDataPtrOutput) ElementType

func (RepositoryCatalogDataPtrOutput) LogoImageBlob

The base64-encoded repository logo payload. (Only visible for verified accounts) Note that drift detection is disabled for this attribute.

func (RepositoryCatalogDataPtrOutput) OperatingSystems

The operating systems that the images in the repository are compatible with. On the Amazon ECR Public Gallery, the following supported operating systems will appear as badges on the repository and are used as search filters: `Linux`, `Windows`

func (RepositoryCatalogDataPtrOutput) ToRepositoryCatalogDataPtrOutput

func (o RepositoryCatalogDataPtrOutput) ToRepositoryCatalogDataPtrOutput() RepositoryCatalogDataPtrOutput

func (RepositoryCatalogDataPtrOutput) ToRepositoryCatalogDataPtrOutputWithContext

func (o RepositoryCatalogDataPtrOutput) ToRepositoryCatalogDataPtrOutputWithContext(ctx context.Context) RepositoryCatalogDataPtrOutput

func (RepositoryCatalogDataPtrOutput) UsageText

Detailed information on how to use the contents of the repository. It is publicly visible in the Amazon ECR Public Gallery. The usage text provides context, support information, and additional usage details for users of the repository. The text must be in markdown format.

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

func (o RepositoryOutput) ToRepositoryOutput() RepositoryOutput

func (RepositoryOutput) ToRepositoryOutputWithContext

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

func (RepositoryOutput) ToRepositoryPtrOutput

func (o RepositoryOutput) ToRepositoryPtrOutput() RepositoryPtrOutput

func (RepositoryOutput) ToRepositoryPtrOutputWithContext

func (o RepositoryOutput) ToRepositoryPtrOutputWithContext(ctx context.Context) RepositoryPtrOutput

type RepositoryPtrInput

type RepositoryPtrInput interface {
	pulumi.Input

	ToRepositoryPtrOutput() RepositoryPtrOutput
	ToRepositoryPtrOutputWithContext(ctx context.Context) RepositoryPtrOutput
}

type RepositoryPtrOutput

type RepositoryPtrOutput struct{ *pulumi.OutputState }

func (RepositoryPtrOutput) Elem added in v4.15.0

func (RepositoryPtrOutput) ElementType

func (RepositoryPtrOutput) ElementType() reflect.Type

func (RepositoryPtrOutput) ToRepositoryPtrOutput

func (o RepositoryPtrOutput) ToRepositoryPtrOutput() RepositoryPtrOutput

func (RepositoryPtrOutput) ToRepositoryPtrOutputWithContext

func (o RepositoryPtrOutput) ToRepositoryPtrOutputWithContext(ctx context.Context) RepositoryPtrOutput

type RepositoryState

type RepositoryState struct {
	// Full ARN of the repository.
	Arn pulumi.StringPtrInput
	// Catalog data configuration for the repository. See below for schema.
	CatalogData  RepositoryCatalogDataPtrInput
	ForceDestroy pulumi.BoolPtrInput
	// The registry ID where the repository was created.
	RegistryId pulumi.StringPtrInput
	// Name of the repository.
	RepositoryName pulumi.StringPtrInput
	// The URI of the repository.
	RepositoryUri pulumi.StringPtrInput
}

func (RepositoryState) ElementType

func (RepositoryState) ElementType() reflect.Type

Jump to

Keyboard shortcuts

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