eci

package
v2.14.0 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetImageCachesArgs added in v2.12.0

type GetImageCachesArgs struct {
	// A list ids of ECI Image Cache.
	Ids []string `pulumi:"ids"`
	// Find the mirror cache containing it according to the image name.
	Image *string `pulumi:"image"`
	// The name of ECI Image Cache.
	ImageCacheName *string `pulumi:"imageCacheName"`
	// A regex string to filter results by the image cache name.
	NameRegex  *string `pulumi:"nameRegex"`
	OutputFile *string `pulumi:"outputFile"`
	// The id of snapshot.
	SnapshotId *string `pulumi:"snapshotId"`
	// The status of ECI Image Cache.
	Status *string `pulumi:"status"`
}

A collection of arguments for invoking getImageCaches.

type GetImageCachesCach added in v2.12.0

type GetImageCachesCach struct {
	// The id of container group.
	ContainerGroupId string `pulumi:"containerGroupId"`
	// Image cache pulls image event information.
	Events []GetImageCachesCachEvent `pulumi:"events"`
	// The time of expired.
	ExpireDateTime string `pulumi:"expireDateTime"`
	// The ID of the ECI Image Cache.
	Id string `pulumi:"id"`
	// The id of the ECI Image Cache.
	ImageCacheId string `pulumi:"imageCacheId"`
	// The name of ECI Image Cache.
	ImageCacheName string `pulumi:"imageCacheName"`
	// The list of cached images.
	Images []string `pulumi:"images"`
	// The progress of ECI Image Cache.
	Progress string `pulumi:"progress"`
	// The id of snapshot.
	SnapshotId string `pulumi:"snapshotId"`
	// The status of ECI Image Cache.
	Status string `pulumi:"status"`
}

type GetImageCachesCachArgs added in v2.12.0

type GetImageCachesCachArgs struct {
	// The id of container group.
	ContainerGroupId pulumi.StringInput `pulumi:"containerGroupId"`
	// Image cache pulls image event information.
	Events GetImageCachesCachEventArrayInput `pulumi:"events"`
	// The time of expired.
	ExpireDateTime pulumi.StringInput `pulumi:"expireDateTime"`
	// The ID of the ECI Image Cache.
	Id pulumi.StringInput `pulumi:"id"`
	// The id of the ECI Image Cache.
	ImageCacheId pulumi.StringInput `pulumi:"imageCacheId"`
	// The name of ECI Image Cache.
	ImageCacheName pulumi.StringInput `pulumi:"imageCacheName"`
	// The list of cached images.
	Images pulumi.StringArrayInput `pulumi:"images"`
	// The progress of ECI Image Cache.
	Progress pulumi.StringInput `pulumi:"progress"`
	// The id of snapshot.
	SnapshotId pulumi.StringInput `pulumi:"snapshotId"`
	// The status of ECI Image Cache.
	Status pulumi.StringInput `pulumi:"status"`
}

func (GetImageCachesCachArgs) ElementType added in v2.12.0

func (GetImageCachesCachArgs) ElementType() reflect.Type

func (GetImageCachesCachArgs) ToGetImageCachesCachOutput added in v2.12.0

func (i GetImageCachesCachArgs) ToGetImageCachesCachOutput() GetImageCachesCachOutput

func (GetImageCachesCachArgs) ToGetImageCachesCachOutputWithContext added in v2.12.0

func (i GetImageCachesCachArgs) ToGetImageCachesCachOutputWithContext(ctx context.Context) GetImageCachesCachOutput

type GetImageCachesCachArray added in v2.12.0

type GetImageCachesCachArray []GetImageCachesCachInput

func (GetImageCachesCachArray) ElementType added in v2.12.0

func (GetImageCachesCachArray) ElementType() reflect.Type

func (GetImageCachesCachArray) ToGetImageCachesCachArrayOutput added in v2.12.0

func (i GetImageCachesCachArray) ToGetImageCachesCachArrayOutput() GetImageCachesCachArrayOutput

func (GetImageCachesCachArray) ToGetImageCachesCachArrayOutputWithContext added in v2.12.0

func (i GetImageCachesCachArray) ToGetImageCachesCachArrayOutputWithContext(ctx context.Context) GetImageCachesCachArrayOutput

type GetImageCachesCachArrayInput added in v2.12.0

type GetImageCachesCachArrayInput interface {
	pulumi.Input

	ToGetImageCachesCachArrayOutput() GetImageCachesCachArrayOutput
	ToGetImageCachesCachArrayOutputWithContext(context.Context) GetImageCachesCachArrayOutput
}

GetImageCachesCachArrayInput is an input type that accepts GetImageCachesCachArray and GetImageCachesCachArrayOutput values. You can construct a concrete instance of `GetImageCachesCachArrayInput` via:

GetImageCachesCachArray{ GetImageCachesCachArgs{...} }

type GetImageCachesCachArrayOutput added in v2.12.0

type GetImageCachesCachArrayOutput struct{ *pulumi.OutputState }

func (GetImageCachesCachArrayOutput) ElementType added in v2.12.0

func (GetImageCachesCachArrayOutput) Index added in v2.12.0

func (GetImageCachesCachArrayOutput) ToGetImageCachesCachArrayOutput added in v2.12.0

func (o GetImageCachesCachArrayOutput) ToGetImageCachesCachArrayOutput() GetImageCachesCachArrayOutput

func (GetImageCachesCachArrayOutput) ToGetImageCachesCachArrayOutputWithContext added in v2.12.0

func (o GetImageCachesCachArrayOutput) ToGetImageCachesCachArrayOutputWithContext(ctx context.Context) GetImageCachesCachArrayOutput

type GetImageCachesCachEvent added in v2.12.0

type GetImageCachesCachEvent struct {
	// Number of events.
	Count int `pulumi:"count"`
	// Start time.
	FirstTimestamp string `pulumi:"firstTimestamp"`
	// End time.
	LastTimestamp string `pulumi:"lastTimestamp"`
	Message       string `pulumi:"message"`
	// The name of event.
	Name string `pulumi:"name"`
	// The type of event.
	Type string `pulumi:"type"`
}

type GetImageCachesCachEventArgs added in v2.12.0

type GetImageCachesCachEventArgs struct {
	// Number of events.
	Count pulumi.IntInput `pulumi:"count"`
	// Start time.
	FirstTimestamp pulumi.StringInput `pulumi:"firstTimestamp"`
	// End time.
	LastTimestamp pulumi.StringInput `pulumi:"lastTimestamp"`
	Message       pulumi.StringInput `pulumi:"message"`
	// The name of event.
	Name pulumi.StringInput `pulumi:"name"`
	// The type of event.
	Type pulumi.StringInput `pulumi:"type"`
}

func (GetImageCachesCachEventArgs) ElementType added in v2.12.0

func (GetImageCachesCachEventArgs) ToGetImageCachesCachEventOutput added in v2.12.0

func (i GetImageCachesCachEventArgs) ToGetImageCachesCachEventOutput() GetImageCachesCachEventOutput

func (GetImageCachesCachEventArgs) ToGetImageCachesCachEventOutputWithContext added in v2.12.0

func (i GetImageCachesCachEventArgs) ToGetImageCachesCachEventOutputWithContext(ctx context.Context) GetImageCachesCachEventOutput

type GetImageCachesCachEventArray added in v2.12.0

type GetImageCachesCachEventArray []GetImageCachesCachEventInput

func (GetImageCachesCachEventArray) ElementType added in v2.12.0

func (GetImageCachesCachEventArray) ToGetImageCachesCachEventArrayOutput added in v2.12.0

func (i GetImageCachesCachEventArray) ToGetImageCachesCachEventArrayOutput() GetImageCachesCachEventArrayOutput

func (GetImageCachesCachEventArray) ToGetImageCachesCachEventArrayOutputWithContext added in v2.12.0

func (i GetImageCachesCachEventArray) ToGetImageCachesCachEventArrayOutputWithContext(ctx context.Context) GetImageCachesCachEventArrayOutput

type GetImageCachesCachEventArrayInput added in v2.12.0

type GetImageCachesCachEventArrayInput interface {
	pulumi.Input

	ToGetImageCachesCachEventArrayOutput() GetImageCachesCachEventArrayOutput
	ToGetImageCachesCachEventArrayOutputWithContext(context.Context) GetImageCachesCachEventArrayOutput
}

GetImageCachesCachEventArrayInput is an input type that accepts GetImageCachesCachEventArray and GetImageCachesCachEventArrayOutput values. You can construct a concrete instance of `GetImageCachesCachEventArrayInput` via:

GetImageCachesCachEventArray{ GetImageCachesCachEventArgs{...} }

type GetImageCachesCachEventArrayOutput added in v2.12.0

type GetImageCachesCachEventArrayOutput struct{ *pulumi.OutputState }

func (GetImageCachesCachEventArrayOutput) ElementType added in v2.12.0

func (GetImageCachesCachEventArrayOutput) Index added in v2.12.0

func (GetImageCachesCachEventArrayOutput) ToGetImageCachesCachEventArrayOutput added in v2.12.0

func (o GetImageCachesCachEventArrayOutput) ToGetImageCachesCachEventArrayOutput() GetImageCachesCachEventArrayOutput

func (GetImageCachesCachEventArrayOutput) ToGetImageCachesCachEventArrayOutputWithContext added in v2.12.0

func (o GetImageCachesCachEventArrayOutput) ToGetImageCachesCachEventArrayOutputWithContext(ctx context.Context) GetImageCachesCachEventArrayOutput

type GetImageCachesCachEventInput added in v2.12.0

type GetImageCachesCachEventInput interface {
	pulumi.Input

	ToGetImageCachesCachEventOutput() GetImageCachesCachEventOutput
	ToGetImageCachesCachEventOutputWithContext(context.Context) GetImageCachesCachEventOutput
}

GetImageCachesCachEventInput is an input type that accepts GetImageCachesCachEventArgs and GetImageCachesCachEventOutput values. You can construct a concrete instance of `GetImageCachesCachEventInput` via:

GetImageCachesCachEventArgs{...}

type GetImageCachesCachEventOutput added in v2.12.0

type GetImageCachesCachEventOutput struct{ *pulumi.OutputState }

func (GetImageCachesCachEventOutput) Count added in v2.12.0

Number of events.

func (GetImageCachesCachEventOutput) ElementType added in v2.12.0

func (GetImageCachesCachEventOutput) FirstTimestamp added in v2.12.0

Start time.

func (GetImageCachesCachEventOutput) LastTimestamp added in v2.12.0

End time.

func (GetImageCachesCachEventOutput) Message added in v2.12.0

func (GetImageCachesCachEventOutput) Name added in v2.12.0

The name of event.

func (GetImageCachesCachEventOutput) ToGetImageCachesCachEventOutput added in v2.12.0

func (o GetImageCachesCachEventOutput) ToGetImageCachesCachEventOutput() GetImageCachesCachEventOutput

func (GetImageCachesCachEventOutput) ToGetImageCachesCachEventOutputWithContext added in v2.12.0

func (o GetImageCachesCachEventOutput) ToGetImageCachesCachEventOutputWithContext(ctx context.Context) GetImageCachesCachEventOutput

func (GetImageCachesCachEventOutput) Type added in v2.12.0

The type of event.

type GetImageCachesCachInput added in v2.12.0

type GetImageCachesCachInput interface {
	pulumi.Input

	ToGetImageCachesCachOutput() GetImageCachesCachOutput
	ToGetImageCachesCachOutputWithContext(context.Context) GetImageCachesCachOutput
}

GetImageCachesCachInput is an input type that accepts GetImageCachesCachArgs and GetImageCachesCachOutput values. You can construct a concrete instance of `GetImageCachesCachInput` via:

GetImageCachesCachArgs{...}

type GetImageCachesCachOutput added in v2.12.0

type GetImageCachesCachOutput struct{ *pulumi.OutputState }

func (GetImageCachesCachOutput) ContainerGroupId added in v2.12.0

func (o GetImageCachesCachOutput) ContainerGroupId() pulumi.StringOutput

The id of container group.

func (GetImageCachesCachOutput) ElementType added in v2.12.0

func (GetImageCachesCachOutput) ElementType() reflect.Type

func (GetImageCachesCachOutput) Events added in v2.12.0

Image cache pulls image event information.

func (GetImageCachesCachOutput) ExpireDateTime added in v2.12.0

func (o GetImageCachesCachOutput) ExpireDateTime() pulumi.StringOutput

The time of expired.

func (GetImageCachesCachOutput) Id added in v2.12.0

The ID of the ECI Image Cache.

func (GetImageCachesCachOutput) ImageCacheId added in v2.12.0

func (o GetImageCachesCachOutput) ImageCacheId() pulumi.StringOutput

The id of the ECI Image Cache.

func (GetImageCachesCachOutput) ImageCacheName added in v2.12.0

func (o GetImageCachesCachOutput) ImageCacheName() pulumi.StringOutput

The name of ECI Image Cache.

func (GetImageCachesCachOutput) Images added in v2.12.0

The list of cached images.

func (GetImageCachesCachOutput) Progress added in v2.12.0

The progress of ECI Image Cache.

func (GetImageCachesCachOutput) SnapshotId added in v2.12.0

The id of snapshot.

func (GetImageCachesCachOutput) Status added in v2.12.0

The status of ECI Image Cache.

func (GetImageCachesCachOutput) ToGetImageCachesCachOutput added in v2.12.0

func (o GetImageCachesCachOutput) ToGetImageCachesCachOutput() GetImageCachesCachOutput

func (GetImageCachesCachOutput) ToGetImageCachesCachOutputWithContext added in v2.12.0

func (o GetImageCachesCachOutput) ToGetImageCachesCachOutputWithContext(ctx context.Context) GetImageCachesCachOutput

type GetImageCachesResult added in v2.12.0

type GetImageCachesResult struct {
	// A list of caches. Each element contains the following attributes:
	Caches []GetImageCachesCach `pulumi:"caches"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// A list ids of ECI Image Cache.
	Ids   []string `pulumi:"ids"`
	Image *string  `pulumi:"image"`
	// The name of the ECI Image Cache.
	ImageCacheName *string `pulumi:"imageCacheName"`
	NameRegex      *string `pulumi:"nameRegex"`
	// A list of ECI Image Cache names.
	Names      []string `pulumi:"names"`
	OutputFile *string  `pulumi:"outputFile"`
	// The id of snapshot.
	SnapshotId *string `pulumi:"snapshotId"`
	// The status of ECI Image Cache.
	Status *string `pulumi:"status"`
}

A collection of values returned by getImageCaches.

func GetImageCaches added in v2.12.0

func GetImageCaches(ctx *pulumi.Context, args *GetImageCachesArgs, opts ...pulumi.InvokeOption) (*GetImageCachesResult, error)

Provides a collection of ECI Image Cache to the specified filters.

> **NOTE:** Available in 1.90.0+.

type ImageCache added in v2.12.0

type ImageCache struct {
	pulumi.CustomResourceState

	// The ID of the container group job that is used to create the image cache.
	// * `status` -The status of the image cache.
	ContainerGroupId pulumi.StringOutput `pulumi:"containerGroupId"`
	// The instance ID of the Elastic IP Address (EIP). If you want to pull images from the Internet, you must specify an EIP to make sure that the container group can access the Internet. You can also configure the network address translation (NAT) gateway. We recommend that you configure the NAT gateway for the Internet access. Refer to [Public Network Access Method](https://help.aliyun.com/document_detail/99146.html)
	EipInstanceId pulumi.StringPtrOutput `pulumi:"eipInstanceId"`
	// The name of the image cache.
	ImageCacheName pulumi.StringOutput `pulumi:"imageCacheName"`
	// The size of the image cache. Default to `20`. Unit: GiB.
	ImageCacheSize pulumi.IntPtrOutput `pulumi:"imageCacheSize"`
	// The Image Registry parameters about the image to be cached.
	ImageRegistryCredentials ImageCacheImageRegistryCredentialArrayOutput `pulumi:"imageRegistryCredentials"`
	// The images to be cached. The image name must be versioned.
	Images pulumi.StringArrayOutput `pulumi:"images"`
	// The ID of the resource group.
	ResourceGroupId pulumi.StringPtrOutput `pulumi:"resourceGroupId"`
	// The retention days of the image cache. Once the image cache expires, it will be cleared. By default, the image cache never expires. Note: The image cache that fails to be created is retained for only one day.
	RetentionDays pulumi.IntPtrOutput `pulumi:"retentionDays"`
	// The ID of the security group. You do not need to specify the same security group as the container group.
	SecurityGroupId pulumi.StringOutput `pulumi:"securityGroupId"`
	Status          pulumi.StringOutput `pulumi:"status"`
	// The ID of the VSwitch. You do not need to specify the same VSwitch as the container group.
	VswitchId pulumi.StringOutput `pulumi:"vswitchId"`
	// The zone id to cache image.
	ZoneId pulumi.StringPtrOutput `pulumi:"zoneId"`
}

An ECI Image Cache can help user to solve the time-consuming problem of image pull. For information about Alicloud ECI Image Cache and how to use it, see [What is Resource Alicloud ECI Image Cache](https://www.alibabacloud.com/help/doc-detail/146891.htm).

> **NOTE:** Available in v1.89.0+.

> **NOTE:** Each image cache corresponds to a snapshot, and the user does not delete the snapshot directly, otherwise the cache will fail.

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v2/go/alicloud/eci"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := eci.NewImageCache(ctx, "example", &eci.ImageCacheArgs{
			EipInstanceId:  pulumi.String("eip-uf60c7cqb2pcrkgxhxxxx"),
			ImageCacheName: pulumi.String("tf-test"),
			Images: pulumi.StringArray{
				pulumi.String("registry.cn-beijing.aliyuncs.com/sceneplatform/sae-image-xxxx:latest"),
			},
			SecurityGroupId: pulumi.String("sg-2zeef68b66fxxxx"),
			VswitchId:       pulumi.String("vsw-2zef9k7ng82xxxx"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

func GetImageCache added in v2.12.0

func GetImageCache(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *ImageCacheState, opts ...pulumi.ResourceOption) (*ImageCache, error)

GetImageCache gets an existing ImageCache 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 NewImageCache added in v2.12.0

func NewImageCache(ctx *pulumi.Context,
	name string, args *ImageCacheArgs, opts ...pulumi.ResourceOption) (*ImageCache, error)

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

type ImageCacheArgs added in v2.12.0

type ImageCacheArgs struct {
	// The instance ID of the Elastic IP Address (EIP). If you want to pull images from the Internet, you must specify an EIP to make sure that the container group can access the Internet. You can also configure the network address translation (NAT) gateway. We recommend that you configure the NAT gateway for the Internet access. Refer to [Public Network Access Method](https://help.aliyun.com/document_detail/99146.html)
	EipInstanceId pulumi.StringPtrInput
	// The name of the image cache.
	ImageCacheName pulumi.StringInput
	// The size of the image cache. Default to `20`. Unit: GiB.
	ImageCacheSize pulumi.IntPtrInput
	// The Image Registry parameters about the image to be cached.
	ImageRegistryCredentials ImageCacheImageRegistryCredentialArrayInput
	// The images to be cached. The image name must be versioned.
	Images pulumi.StringArrayInput
	// The ID of the resource group.
	ResourceGroupId pulumi.StringPtrInput
	// The retention days of the image cache. Once the image cache expires, it will be cleared. By default, the image cache never expires. Note: The image cache that fails to be created is retained for only one day.
	RetentionDays pulumi.IntPtrInput
	// The ID of the security group. You do not need to specify the same security group as the container group.
	SecurityGroupId pulumi.StringInput
	// The ID of the VSwitch. You do not need to specify the same VSwitch as the container group.
	VswitchId pulumi.StringInput
	// The zone id to cache image.
	ZoneId pulumi.StringPtrInput
}

The set of arguments for constructing a ImageCache resource.

func (ImageCacheArgs) ElementType added in v2.12.0

func (ImageCacheArgs) ElementType() reflect.Type

type ImageCacheImageRegistryCredential added in v2.12.0

type ImageCacheImageRegistryCredential struct {
	// The password of the Image Registry.
	Password *string `pulumi:"password"`
	// The address of Image Registry without `http://` or `https://`.
	Server *string `pulumi:"server"`
	// The user name of Image Registry.
	UserName *string `pulumi:"userName"`
}

type ImageCacheImageRegistryCredentialArgs added in v2.12.0

type ImageCacheImageRegistryCredentialArgs struct {
	// The password of the Image Registry.
	Password pulumi.StringPtrInput `pulumi:"password"`
	// The address of Image Registry without `http://` or `https://`.
	Server pulumi.StringPtrInput `pulumi:"server"`
	// The user name of Image Registry.
	UserName pulumi.StringPtrInput `pulumi:"userName"`
}

func (ImageCacheImageRegistryCredentialArgs) ElementType added in v2.12.0

func (ImageCacheImageRegistryCredentialArgs) ToImageCacheImageRegistryCredentialOutput added in v2.12.0

func (i ImageCacheImageRegistryCredentialArgs) ToImageCacheImageRegistryCredentialOutput() ImageCacheImageRegistryCredentialOutput

func (ImageCacheImageRegistryCredentialArgs) ToImageCacheImageRegistryCredentialOutputWithContext added in v2.12.0

func (i ImageCacheImageRegistryCredentialArgs) ToImageCacheImageRegistryCredentialOutputWithContext(ctx context.Context) ImageCacheImageRegistryCredentialOutput

type ImageCacheImageRegistryCredentialArray added in v2.12.0

type ImageCacheImageRegistryCredentialArray []ImageCacheImageRegistryCredentialInput

func (ImageCacheImageRegistryCredentialArray) ElementType added in v2.12.0

func (ImageCacheImageRegistryCredentialArray) ToImageCacheImageRegistryCredentialArrayOutput added in v2.12.0

func (i ImageCacheImageRegistryCredentialArray) ToImageCacheImageRegistryCredentialArrayOutput() ImageCacheImageRegistryCredentialArrayOutput

func (ImageCacheImageRegistryCredentialArray) ToImageCacheImageRegistryCredentialArrayOutputWithContext added in v2.12.0

func (i ImageCacheImageRegistryCredentialArray) ToImageCacheImageRegistryCredentialArrayOutputWithContext(ctx context.Context) ImageCacheImageRegistryCredentialArrayOutput

type ImageCacheImageRegistryCredentialArrayInput added in v2.12.0

type ImageCacheImageRegistryCredentialArrayInput interface {
	pulumi.Input

	ToImageCacheImageRegistryCredentialArrayOutput() ImageCacheImageRegistryCredentialArrayOutput
	ToImageCacheImageRegistryCredentialArrayOutputWithContext(context.Context) ImageCacheImageRegistryCredentialArrayOutput
}

ImageCacheImageRegistryCredentialArrayInput is an input type that accepts ImageCacheImageRegistryCredentialArray and ImageCacheImageRegistryCredentialArrayOutput values. You can construct a concrete instance of `ImageCacheImageRegistryCredentialArrayInput` via:

ImageCacheImageRegistryCredentialArray{ ImageCacheImageRegistryCredentialArgs{...} }

type ImageCacheImageRegistryCredentialArrayOutput added in v2.12.0

type ImageCacheImageRegistryCredentialArrayOutput struct{ *pulumi.OutputState }

func (ImageCacheImageRegistryCredentialArrayOutput) ElementType added in v2.12.0

func (ImageCacheImageRegistryCredentialArrayOutput) Index added in v2.12.0

func (ImageCacheImageRegistryCredentialArrayOutput) ToImageCacheImageRegistryCredentialArrayOutput added in v2.12.0

func (o ImageCacheImageRegistryCredentialArrayOutput) ToImageCacheImageRegistryCredentialArrayOutput() ImageCacheImageRegistryCredentialArrayOutput

func (ImageCacheImageRegistryCredentialArrayOutput) ToImageCacheImageRegistryCredentialArrayOutputWithContext added in v2.12.0

func (o ImageCacheImageRegistryCredentialArrayOutput) ToImageCacheImageRegistryCredentialArrayOutputWithContext(ctx context.Context) ImageCacheImageRegistryCredentialArrayOutput

type ImageCacheImageRegistryCredentialInput added in v2.12.0

type ImageCacheImageRegistryCredentialInput interface {
	pulumi.Input

	ToImageCacheImageRegistryCredentialOutput() ImageCacheImageRegistryCredentialOutput
	ToImageCacheImageRegistryCredentialOutputWithContext(context.Context) ImageCacheImageRegistryCredentialOutput
}

ImageCacheImageRegistryCredentialInput is an input type that accepts ImageCacheImageRegistryCredentialArgs and ImageCacheImageRegistryCredentialOutput values. You can construct a concrete instance of `ImageCacheImageRegistryCredentialInput` via:

ImageCacheImageRegistryCredentialArgs{...}

type ImageCacheImageRegistryCredentialOutput added in v2.12.0

type ImageCacheImageRegistryCredentialOutput struct{ *pulumi.OutputState }

func (ImageCacheImageRegistryCredentialOutput) ElementType added in v2.12.0

func (ImageCacheImageRegistryCredentialOutput) Password added in v2.12.0

The password of the Image Registry.

func (ImageCacheImageRegistryCredentialOutput) Server added in v2.12.0

The address of Image Registry without `http://` or `https://`.

func (ImageCacheImageRegistryCredentialOutput) ToImageCacheImageRegistryCredentialOutput added in v2.12.0

func (o ImageCacheImageRegistryCredentialOutput) ToImageCacheImageRegistryCredentialOutput() ImageCacheImageRegistryCredentialOutput

func (ImageCacheImageRegistryCredentialOutput) ToImageCacheImageRegistryCredentialOutputWithContext added in v2.12.0

func (o ImageCacheImageRegistryCredentialOutput) ToImageCacheImageRegistryCredentialOutputWithContext(ctx context.Context) ImageCacheImageRegistryCredentialOutput

func (ImageCacheImageRegistryCredentialOutput) UserName added in v2.12.0

The user name of Image Registry.

type ImageCacheState added in v2.12.0

type ImageCacheState struct {
	// The ID of the container group job that is used to create the image cache.
	// * `status` -The status of the image cache.
	ContainerGroupId pulumi.StringPtrInput
	// The instance ID of the Elastic IP Address (EIP). If you want to pull images from the Internet, you must specify an EIP to make sure that the container group can access the Internet. You can also configure the network address translation (NAT) gateway. We recommend that you configure the NAT gateway for the Internet access. Refer to [Public Network Access Method](https://help.aliyun.com/document_detail/99146.html)
	EipInstanceId pulumi.StringPtrInput
	// The name of the image cache.
	ImageCacheName pulumi.StringPtrInput
	// The size of the image cache. Default to `20`. Unit: GiB.
	ImageCacheSize pulumi.IntPtrInput
	// The Image Registry parameters about the image to be cached.
	ImageRegistryCredentials ImageCacheImageRegistryCredentialArrayInput
	// The images to be cached. The image name must be versioned.
	Images pulumi.StringArrayInput
	// The ID of the resource group.
	ResourceGroupId pulumi.StringPtrInput
	// The retention days of the image cache. Once the image cache expires, it will be cleared. By default, the image cache never expires. Note: The image cache that fails to be created is retained for only one day.
	RetentionDays pulumi.IntPtrInput
	// The ID of the security group. You do not need to specify the same security group as the container group.
	SecurityGroupId pulumi.StringPtrInput
	Status          pulumi.StringPtrInput
	// The ID of the VSwitch. You do not need to specify the same VSwitch as the container group.
	VswitchId pulumi.StringPtrInput
	// The zone id to cache image.
	ZoneId pulumi.StringPtrInput
}

func (ImageCacheState) ElementType added in v2.12.0

func (ImageCacheState) ElementType() reflect.Type

type OpenApiImageCache

type OpenApiImageCache struct {
	pulumi.CustomResourceState

	ContainerGroupId         pulumi.StringOutput                                 `pulumi:"containerGroupId"`
	EipInstanceId            pulumi.StringPtrOutput                              `pulumi:"eipInstanceId"`
	ImageCacheName           pulumi.StringOutput                                 `pulumi:"imageCacheName"`
	ImageCacheSize           pulumi.IntPtrOutput                                 `pulumi:"imageCacheSize"`
	ImageRegistryCredentials OpenApiImageCacheImageRegistryCredentialArrayOutput `pulumi:"imageRegistryCredentials"`
	Images                   pulumi.StringArrayOutput                            `pulumi:"images"`
	ResourceGroupId          pulumi.StringPtrOutput                              `pulumi:"resourceGroupId"`
	RetentionDays            pulumi.IntPtrOutput                                 `pulumi:"retentionDays"`
	SecurityGroupId          pulumi.StringOutput                                 `pulumi:"securityGroupId"`
	Status                   pulumi.StringOutput                                 `pulumi:"status"`
	VswitchId                pulumi.StringOutput                                 `pulumi:"vswitchId"`
	ZoneId                   pulumi.StringPtrOutput                              `pulumi:"zoneId"`
}

func GetOpenApiImageCache

func GetOpenApiImageCache(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *OpenApiImageCacheState, opts ...pulumi.ResourceOption) (*OpenApiImageCache, error)

GetOpenApiImageCache gets an existing OpenApiImageCache 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 NewOpenApiImageCache

func NewOpenApiImageCache(ctx *pulumi.Context,
	name string, args *OpenApiImageCacheArgs, opts ...pulumi.ResourceOption) (*OpenApiImageCache, error)

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

type OpenApiImageCacheArgs

type OpenApiImageCacheArgs struct {
	EipInstanceId            pulumi.StringPtrInput
	ImageCacheName           pulumi.StringInput
	ImageCacheSize           pulumi.IntPtrInput
	ImageRegistryCredentials OpenApiImageCacheImageRegistryCredentialArrayInput
	Images                   pulumi.StringArrayInput
	ResourceGroupId          pulumi.StringPtrInput
	RetentionDays            pulumi.IntPtrInput
	SecurityGroupId          pulumi.StringInput
	VswitchId                pulumi.StringInput
	ZoneId                   pulumi.StringPtrInput
}

The set of arguments for constructing a OpenApiImageCache resource.

func (OpenApiImageCacheArgs) ElementType

func (OpenApiImageCacheArgs) ElementType() reflect.Type

type OpenApiImageCacheImageRegistryCredential

type OpenApiImageCacheImageRegistryCredential struct {
	Password *string `pulumi:"password"`
	Server   *string `pulumi:"server"`
	UserName *string `pulumi:"userName"`
}

type OpenApiImageCacheImageRegistryCredentialArgs

type OpenApiImageCacheImageRegistryCredentialArgs struct {
	Password pulumi.StringPtrInput `pulumi:"password"`
	Server   pulumi.StringPtrInput `pulumi:"server"`
	UserName pulumi.StringPtrInput `pulumi:"userName"`
}

func (OpenApiImageCacheImageRegistryCredentialArgs) ElementType

func (OpenApiImageCacheImageRegistryCredentialArgs) ToOpenApiImageCacheImageRegistryCredentialOutput

func (i OpenApiImageCacheImageRegistryCredentialArgs) ToOpenApiImageCacheImageRegistryCredentialOutput() OpenApiImageCacheImageRegistryCredentialOutput

func (OpenApiImageCacheImageRegistryCredentialArgs) ToOpenApiImageCacheImageRegistryCredentialOutputWithContext

func (i OpenApiImageCacheImageRegistryCredentialArgs) ToOpenApiImageCacheImageRegistryCredentialOutputWithContext(ctx context.Context) OpenApiImageCacheImageRegistryCredentialOutput

type OpenApiImageCacheImageRegistryCredentialArray

type OpenApiImageCacheImageRegistryCredentialArray []OpenApiImageCacheImageRegistryCredentialInput

func (OpenApiImageCacheImageRegistryCredentialArray) ElementType

func (OpenApiImageCacheImageRegistryCredentialArray) ToOpenApiImageCacheImageRegistryCredentialArrayOutput

func (i OpenApiImageCacheImageRegistryCredentialArray) ToOpenApiImageCacheImageRegistryCredentialArrayOutput() OpenApiImageCacheImageRegistryCredentialArrayOutput

func (OpenApiImageCacheImageRegistryCredentialArray) ToOpenApiImageCacheImageRegistryCredentialArrayOutputWithContext

func (i OpenApiImageCacheImageRegistryCredentialArray) ToOpenApiImageCacheImageRegistryCredentialArrayOutputWithContext(ctx context.Context) OpenApiImageCacheImageRegistryCredentialArrayOutput

type OpenApiImageCacheImageRegistryCredentialArrayInput

type OpenApiImageCacheImageRegistryCredentialArrayInput interface {
	pulumi.Input

	ToOpenApiImageCacheImageRegistryCredentialArrayOutput() OpenApiImageCacheImageRegistryCredentialArrayOutput
	ToOpenApiImageCacheImageRegistryCredentialArrayOutputWithContext(context.Context) OpenApiImageCacheImageRegistryCredentialArrayOutput
}

OpenApiImageCacheImageRegistryCredentialArrayInput is an input type that accepts OpenApiImageCacheImageRegistryCredentialArray and OpenApiImageCacheImageRegistryCredentialArrayOutput values. You can construct a concrete instance of `OpenApiImageCacheImageRegistryCredentialArrayInput` via:

OpenApiImageCacheImageRegistryCredentialArray{ OpenApiImageCacheImageRegistryCredentialArgs{...} }

type OpenApiImageCacheImageRegistryCredentialArrayOutput

type OpenApiImageCacheImageRegistryCredentialArrayOutput struct{ *pulumi.OutputState }

func (OpenApiImageCacheImageRegistryCredentialArrayOutput) ElementType

func (OpenApiImageCacheImageRegistryCredentialArrayOutput) Index

func (OpenApiImageCacheImageRegistryCredentialArrayOutput) ToOpenApiImageCacheImageRegistryCredentialArrayOutput

func (o OpenApiImageCacheImageRegistryCredentialArrayOutput) ToOpenApiImageCacheImageRegistryCredentialArrayOutput() OpenApiImageCacheImageRegistryCredentialArrayOutput

func (OpenApiImageCacheImageRegistryCredentialArrayOutput) ToOpenApiImageCacheImageRegistryCredentialArrayOutputWithContext

func (o OpenApiImageCacheImageRegistryCredentialArrayOutput) ToOpenApiImageCacheImageRegistryCredentialArrayOutputWithContext(ctx context.Context) OpenApiImageCacheImageRegistryCredentialArrayOutput

type OpenApiImageCacheImageRegistryCredentialInput

type OpenApiImageCacheImageRegistryCredentialInput interface {
	pulumi.Input

	ToOpenApiImageCacheImageRegistryCredentialOutput() OpenApiImageCacheImageRegistryCredentialOutput
	ToOpenApiImageCacheImageRegistryCredentialOutputWithContext(context.Context) OpenApiImageCacheImageRegistryCredentialOutput
}

OpenApiImageCacheImageRegistryCredentialInput is an input type that accepts OpenApiImageCacheImageRegistryCredentialArgs and OpenApiImageCacheImageRegistryCredentialOutput values. You can construct a concrete instance of `OpenApiImageCacheImageRegistryCredentialInput` via:

OpenApiImageCacheImageRegistryCredentialArgs{...}

type OpenApiImageCacheImageRegistryCredentialOutput

type OpenApiImageCacheImageRegistryCredentialOutput struct{ *pulumi.OutputState }

func (OpenApiImageCacheImageRegistryCredentialOutput) ElementType

func (OpenApiImageCacheImageRegistryCredentialOutput) Password

func (OpenApiImageCacheImageRegistryCredentialOutput) Server

func (OpenApiImageCacheImageRegistryCredentialOutput) ToOpenApiImageCacheImageRegistryCredentialOutput

func (o OpenApiImageCacheImageRegistryCredentialOutput) ToOpenApiImageCacheImageRegistryCredentialOutput() OpenApiImageCacheImageRegistryCredentialOutput

func (OpenApiImageCacheImageRegistryCredentialOutput) ToOpenApiImageCacheImageRegistryCredentialOutputWithContext

func (o OpenApiImageCacheImageRegistryCredentialOutput) ToOpenApiImageCacheImageRegistryCredentialOutputWithContext(ctx context.Context) OpenApiImageCacheImageRegistryCredentialOutput

func (OpenApiImageCacheImageRegistryCredentialOutput) UserName

type OpenApiImageCacheState

type OpenApiImageCacheState struct {
	ContainerGroupId         pulumi.StringPtrInput
	EipInstanceId            pulumi.StringPtrInput
	ImageCacheName           pulumi.StringPtrInput
	ImageCacheSize           pulumi.IntPtrInput
	ImageRegistryCredentials OpenApiImageCacheImageRegistryCredentialArrayInput
	Images                   pulumi.StringArrayInput
	ResourceGroupId          pulumi.StringPtrInput
	RetentionDays            pulumi.IntPtrInput
	SecurityGroupId          pulumi.StringPtrInput
	Status                   pulumi.StringPtrInput
	VswitchId                pulumi.StringPtrInput
	ZoneId                   pulumi.StringPtrInput
}

func (OpenApiImageCacheState) ElementType

func (OpenApiImageCacheState) ElementType() reflect.Type

Jump to

Keyboard shortcuts

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