Skip to content

InstanceV2Props

Properties for defining a InstanceV2.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-cr-instancev2

Initializer

import { InstanceV2Props } from '@alicloud/ros-cdk-cr'
const instanceV2Props: InstanceV2Props = { ... }

Properties

Name Type Description
instanceName string | @alicloud/ros-cdk-core.IResolvable Property instanceName: Instance name.The value contains 3 to 30 lowercase letters, digits, and delimiters "-"(it can not be first or last).
instanceType string | @alicloud/ros-cdk-core.IResolvable Property instanceType: The Value configuration of the Group 1 attribute of Container Mirror Service Enterprise Edition.
paymentType string | @alicloud/ros-cdk-core.IResolvable Property paymentType: Payment type, value: - Subscription: Prepaid.
customOssBucket string | @alicloud/ros-cdk-core.IResolvable Property customOssBucket: Custom OSS Bucket name.
defaultOssBucket boolean | @alicloud/ros-cdk-core.IResolvable Property defaultOssBucket: Whether to use the default OSS Bucket.
imageScanner string | @alicloud/ros-cdk-core.IResolvable Property imageScanner: The security scan engine used by the Enterprise Edition of Container Image Service.
password string | @alicloud/ros-cdk-core.IResolvable Property password: Login password, 8-32 digits, must contain at least two letters, symbols, or numbers.
period number | @alicloud/ros-cdk-core.IResolvable Property period: Prepaid cycle.
renewalStatus string | @alicloud/ros-cdk-core.IResolvable Property renewalStatus: Automatic renewal status, value: - AutoRenewal: automatic renewal.
renewPeriod number | @alicloud/ros-cdk-core.IResolvable Property renewPeriod: Automatic renewal cycle, in months.
resourceGroupId string | @alicloud/ros-cdk-core.IResolvable Property resourceGroupId: The ID of the resource group.

instanceNameRequired

public readonly instanceName: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property instanceName: Instance name.The value contains 3 to 30 lowercase letters, digits, and delimiters "-"(it can not be first or last).


instanceTypeRequired

public readonly instanceType: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property instanceType: The Value configuration of the Group 1 attribute of Container Mirror Service Enterprise Edition.

Valid values: Basic: Basic instance. Standard: Standard instance. Advanced: Advanced Edition Instance.


paymentTypeRequired

public readonly paymentType: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property paymentType: Payment type, value: - Subscription: Prepaid.


customOssBucketOptional

public readonly customOssBucket: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property customOssBucket: Custom OSS Bucket name.


defaultOssBucketOptional

public readonly defaultOssBucket: boolean | IResolvable;
  • Type: boolean | @alicloud/ros-cdk-core.IResolvable

Property defaultOssBucket: Whether to use the default OSS Bucket.

Value: true: Use the default OSS Bucket. false: Use a custom OSS Bucket.


imageScannerOptional

public readonly imageScanner: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property imageScanner: The security scan engine used by the Enterprise Edition of Container Image Service.

Value: ACR: Uses the Trivy scan engine provided by default. SAS: uses the enhanced cloud security scan engine.


passwordOptional

public readonly password: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property password: Login password, 8-32 digits, must contain at least two letters, symbols, or numbers.


periodOptional

public readonly period: number | IResolvable;
  • Type: number | @alicloud/ros-cdk-core.IResolvable

Property period: Prepaid cycle.

The unit is Monthly, please enter an integer multiple of 12 for annual paid products.

must be set when creating a prepaid instance.


renewalStatusOptional

public readonly renewalStatus: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property renewalStatus: Automatic renewal status, value: - AutoRenewal: automatic renewal.

ManualRenewal: manual renewal. Default ManualRenewal.


renewPeriodOptional

public readonly renewPeriod: number | IResolvable;
  • Type: number | @alicloud/ros-cdk-core.IResolvable

Property renewPeriod: Automatic renewal cycle, in months.

When RenewalStatus is set to AutoRenewal, it must be set.


resourceGroupIdOptional

public readonly resourceGroupId: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property resourceGroupId: The ID of the resource group.