ImageCacheProps
Properties for defining a ImageCache.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-eci-imagecache
Initializer
import { ImageCacheProps } from '@alicloud/ros-cdk-eci'
const imageCacheProps: ImageCacheProps = { ... }
Properties
| Name | Type | Description |
|---|---|---|
image |
@alicloud/ros-cdk-core.IResolvable | string | @alicloud/ros-cdk-core.IResolvable[] |
Property image: The image list to be cached. |
imageCacheName |
string | @alicloud/ros-cdk-core.IResolvable |
Property imageCacheName: Image cache name. |
securityGroupId |
string | @alicloud/ros-cdk-core.IResolvable |
Property securityGroupId: Security group ID. |
vSwitchId |
string | @alicloud/ros-cdk-core.IResolvable |
Property vSwitchId: VSwitch ID. |
acrRegistryInfo |
@alicloud/ros-cdk-core.IResolvable | @alicloud/ros-cdk-core.IResolvable | AcrRegistryInfoProperty[] |
Property acrRegistryInfo: Enterprise Edition access credential configuration information. |
autoMatchImageCache |
boolean | @alicloud/ros-cdk-core.IResolvable |
Property autoMatchImageCache: Specifies whether to enable reuse of image cache layers. |
eipInstanceId |
string | @alicloud/ros-cdk-core.IResolvable |
Property eipInstanceId: If you want to pull the public network image, you need to configure the public network ip or configure the switch NAT gateway. |
imageCacheSize |
number | @alicloud/ros-cdk-core.IResolvable |
Property imageCacheSize: The size of the image cache. |
imageRegistryCredential |
@alicloud/ros-cdk-core.IResolvable | string | @alicloud/ros-cdk-core.IResolvable[] |
Property imageRegistryCredential: Private image password. |
resourceGroupId |
string | @alicloud/ros-cdk-core.IResolvable |
Property resourceGroupId: Resource group id. |
retentionDays |
number | @alicloud/ros-cdk-core.IResolvable |
Property retentionDays: The retention period of the image cache. |
zoneId |
string | @alicloud/ros-cdk-core.IResolvable |
Property zoneId: The zone ID of the image cache. |
imageRequired
public readonly image: IResolvable | string | IResolvable[];
- Type: @alicloud/ros-cdk-core.IResolvable | string | @alicloud/ros-cdk-core.IResolvable[]
Property image: The image list to be cached.
imageCacheNameRequired
public readonly imageCacheName: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property imageCacheName: Image cache name.
securityGroupIdRequired
public readonly securityGroupId: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property securityGroupId: Security group ID.
vSwitchIdRequired
public readonly vSwitchId: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property vSwitchId: VSwitch ID.
acrRegistryInfoOptional
public readonly acrRegistryInfo: IResolvable | IResolvable | AcrRegistryInfoProperty[];
- Type: @alicloud/ros-cdk-core.IResolvable | @alicloud/ros-cdk-core.IResolvable | AcrRegistryInfoProperty[]
Property acrRegistryInfo: Enterprise Edition access credential configuration information.
autoMatchImageCacheOptional
public readonly autoMatchImageCache: boolean | IResolvable;
- Type: boolean | @alicloud/ros-cdk-core.IResolvable
Property autoMatchImageCache: Specifies whether to enable reuse of image cache layers.
If you enable this feature, and the image cache that you want to createand an existing image cache contain duplicate image layers, the system reuses the duplicate image layers to create the new image cache. This accelerates the creation of the image cache. Valid values: true: enables reuse of image cache layers. false: disables reuse of image cache layers. Default value: false.
eipInstanceIdOptional
public readonly eipInstanceId: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property eipInstanceId: If you want to pull the public network image, you need to configure the public network ip or configure the switch NAT gateway.
imageCacheSizeOptional
public readonly imageCacheSize: number | IResolvable;
- Type: number | @alicloud/ros-cdk-core.IResolvable
Property imageCacheSize: The size of the image cache.
Unit: GiB. Default value: 20.
imageRegistryCredentialOptional
public readonly imageRegistryCredential: IResolvable | string | IResolvable[];
- Type: @alicloud/ros-cdk-core.IResolvable | string | @alicloud/ros-cdk-core.IResolvable[]
Property imageRegistryCredential: Private image password.
Alibaba Cloud ACR image can be left blank.
resourceGroupIdOptional
public readonly resourceGroupId: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property resourceGroupId: Resource group id.
retentionDaysOptional
public readonly retentionDays: number | IResolvable;
- Type: number | @alicloud/ros-cdk-core.IResolvable
Property retentionDays: The retention period of the image cache.
Unit: days. When the retention period ends, the image cache expires and is deleted. By default, image caches never expire. Note: The image caches that fail to be created are only retained for one day.
zoneIdOptional
public readonly zoneId: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property zoneId: The zone ID of the image cache.