Skip to content

ResourcePackageProps

Properties for defining a ResourcePackage.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-bss-resourcepackage

Initializer

import { ResourcePackageProps } from '@alicloud/ros-cdk-bss'
const resourcePackageProps: ResourcePackageProps = { ... }

Properties

Name Type Description
duration number | @alicloud/ros-cdk-core.IResolvable Property duration: The validity of the specified resource package.
packageType string | @alicloud/ros-cdk-core.IResolvable Property packageType: The type of the specified resource package.
productCode string | @alicloud/ros-cdk-core.IResolvable Property productCode: The code of the specified product.
specification string | @alicloud/ros-cdk-core.IResolvable Property specification: The size of the specified resource package.
autoRenew boolean | @alicloud/ros-cdk-core.IResolvable Property autoRenew: Whether to automatically renew the resource package.
autoRenewPeriod number | @alicloud/ros-cdk-core.IResolvable Property autoRenewPeriod: Duration of resource packs renewals.
autoRenewPeriodUnit string | @alicloud/ros-cdk-core.IResolvable Property autoRenewPeriodUnit: Unit of resource pack renewals.
effectiveDate string | @alicloud/ros-cdk-core.IResolvable Property effectiveDate: The effective date of the specified resource package.
pricingCycle string | @alicloud/ros-cdk-core.IResolvable Property pricingCycle: The validity of the specified resource package.

durationRequired

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

Property duration: The validity of the specified resource package.

The value is the same as the Value of AvailableDuration returned by DescribeResourcePackageProduct.


packageTypeRequired

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

Property packageType: The type of the specified resource package.

The value is the same as the value of the Code value of the ResourcePackage object returned by DescribeResourcePackageProduct.


productCodeRequired

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

Property productCode: The code of the specified product.

The value is the same as the value of ProductType returned by QueryProductList.


specificationRequired

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

Property specification: The size of the specified resource package.

The value is the same as the Value of Specification returned by DescribeResourcePackageProduct.


autoRenewOptional

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

Property autoRenew: Whether to automatically renew the resource package.

The value is true or false. Default value: false.


autoRenewPeriodOptional

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

Property autoRenewPeriod: Duration of resource packs renewals.

Valid values: - When AutoRenewPeriodUnit is Year: 1, 2, 3. - When AutoRenewPeriodUnit is Month: 1, 2, 3, 6. Default is 1.


autoRenewPeriodUnitOptional

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

Property autoRenewPeriodUnit: Unit of resource pack renewals.

Valid values: Month, Year. Default is Month.


effectiveDateOptional

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

Property effectiveDate: The effective date of the specified resource package.

The resource package will take effect immediately if the effective date is unspecified. The date format follows the ISO8601 standard and uses UTC time. Format: yyyy-MM-ddTHH:mm:ssZ


pricingCycleOptional

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

Property pricingCycle: The validity of the specified resource package.

Default value: Month. Valid values: Month, Year