Skip to content

ImageCacheProps

Properties for defining a ImageCache.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-eci-imagecache

Initializer

import com.aliyun.ros.cdk.eci.ImageCacheProps;
ImageCacheProps.builder()
    .image(IResolvable)
    .image(java.util.List<java.lang.String)
    .image(IResolvable>)
    .imageCacheName(java.lang.String)
    .imageCacheName(IResolvable)
    .securityGroupId(java.lang.String)
    .securityGroupId(IResolvable)
    .vSwitchId(java.lang.String)
    .vSwitchId(IResolvable)
//  .acrRegistryInfo(IResolvable)
//  .acrRegistryInfo(java.util.List<IResolvable)
//  .acrRegistryInfo(AcrRegistryInfoProperty>)
//  .autoMatchImageCache(java.lang.Boolean)
//  .autoMatchImageCache(IResolvable)
//  .eipInstanceId(java.lang.String)
//  .eipInstanceId(IResolvable)
//  .imageCacheSize(java.lang.Number)
//  .imageCacheSize(IResolvable)
//  .imageRegistryCredential(IResolvable)
//  .imageRegistryCredential(java.util.List<java.lang.String)
//  .imageRegistryCredential(IResolvable>)
//  .resourceGroupId(java.lang.String)
//  .resourceGroupId(IResolvable)
//  .retentionDays(java.lang.Number)
//  .retentionDays(IResolvable)
//  .zoneId(java.lang.String)
//  .zoneId(IResolvable)
    .build();

Properties

Name Type Description
image com.aliyun.ros.cdk.core.IResolvable OR java.util.List Property image: The image list to be cached.
imageCacheName java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property imageCacheName: Image cache name.
securityGroupId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property securityGroupId: Security group ID.
vSwitchId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property vSwitchId: VSwitch ID.
acrRegistryInfo com.aliyun.ros.cdk.core.IResolvable OR java.util.ListAcrRegistryInfoProperty> Property acrRegistryInfo: Enterprise Edition access credential configuration information.
autoMatchImageCache java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable Property autoMatchImageCache: Specifies whether to enable reuse of image cache layers.
eipInstanceId java.lang.String OR com.aliyun.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 java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable Property imageCacheSize: The size of the image cache.
imageRegistryCredential com.aliyun.ros.cdk.core.IResolvable OR java.util.List Property imageRegistryCredential: Private image password.
resourceGroupId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property resourceGroupId: Resource group id.
retentionDays java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable Property retentionDays: The retention period of the image cache.
zoneId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property zoneId: The zone ID of the image cache.

imageRequired

public java.lang.Object getImage();
  • Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.List

Property image: The image list to be cached.


imageCacheNameRequired

public java.lang.Object getImageCacheName();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property imageCacheName: Image cache name.


securityGroupIdRequired

public java.lang.Object getSecurityGroupId();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property securityGroupId: Security group ID.


vSwitchIdRequired

public java.lang.Object getVSwitchId();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property vSwitchId: VSwitch ID.


acrRegistryInfoOptional

public java.lang.Object getAcrRegistryInfo();
  • Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.ListAcrRegistryInfoProperty>

Property acrRegistryInfo: Enterprise Edition access credential configuration information.


autoMatchImageCacheOptional

public java.lang.Object getAutoMatchImageCache();
  • Type: java.lang.Boolean OR com.aliyun.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 java.lang.Object getEipInstanceId();
  • Type: java.lang.String OR com.aliyun.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 java.lang.Object getImageCacheSize();
  • Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable

Property imageCacheSize: The size of the image cache.

Unit: GiB. Default value: 20.


imageRegistryCredentialOptional

public java.lang.Object getImageRegistryCredential();
  • Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.List

Property imageRegistryCredential: Private image password.

Alibaba Cloud ACR image can be left blank.


resourceGroupIdOptional

public java.lang.Object getResourceGroupId();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property resourceGroupId: Resource group id.


retentionDaysOptional

public java.lang.Object getRetentionDays();
  • Type: java.lang.Number OR com.aliyun.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 java.lang.Object getZoneId();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property zoneId: The zone ID of the image cache.