Skip to content

InstanceProps

Properties for defining a Instance.

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

Initializer

import com.aliyun.ros.cdk.cr.InstanceProps;
InstanceProps.builder()
    .imageScanner(java.lang.String)
    .imageScanner(IResolvable)
    .instanceName(java.lang.String)
    .instanceName(IResolvable)
    .instanceType(java.lang.String)
    .instanceType(IResolvable)
    .period(java.lang.Number)
    .period(IResolvable)
//  .instanceStorageName(java.lang.String)
//  .instanceStorageName(IResolvable)
//  .renewalStatus(java.lang.String)
//  .renewalStatus(IResolvable)
//  .renewPeriod(java.lang.Number)
//  .renewPeriod(IResolvable)
//  .resourceGroupId(java.lang.String)
//  .resourceGroupId(IResolvable)
    .build();

Properties

Name Type Description
imageScanner java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property imageScanner: Security scan engine.
instanceName java.lang.String OR com.aliyun.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 java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property instanceType: The Value configuration of the Group 1 attribute of Container Mirror Service Enterprise Edition.
period java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable Property period: Prepaid cycle.
instanceStorageName java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property instanceStorageName: Custom OSS Bucket name.
renewalStatus java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property renewalStatus: Automatic renewal status, value: - AutoRenewal: automatic renewal.
renewPeriod java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable Property renewPeriod: Automatic renewal cycle, in months.
resourceGroupId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property resourceGroupId: The ID of the resource group.

imageScannerRequired

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

Property imageScanner: Security scan engine.


instanceNameRequired

public java.lang.Object getInstanceName();
  • Type: java.lang.String OR com.aliyun.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 java.lang.Object getInstanceType();
  • Type: java.lang.String OR com.aliyun.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.


periodRequired

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

Property period: Prepaid cycle.

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


instanceStorageNameOptional

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

Property instanceStorageName: Custom OSS Bucket name.


renewalStatusOptional

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

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

  • ManualRenewal: manual renewal. Default ManualRenewal.

renewPeriodOptional

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

Property renewPeriod: Automatic renewal cycle, in months.

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


resourceGroupIdOptional

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

Property resourceGroupId: The ID of the resource group.