Skip to content

ResourcePackageProps

Properties for defining a ResourcePackage.

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

Initializer

import ros_cdk_bss
ros_cdk_bss.ResourcePackageProps(
  duration: typing.Union[typing.Union[int, float], IResolvable],
  package_type: typing.Union[str, IResolvable],
  product_code: typing.Union[str, IResolvable],
  specification: typing.Union[str, IResolvable],
  auto_renew: typing.Union[bool, IResolvable] = None,
  auto_renew_period: typing.Union[typing.Union[int, float], IResolvable] = None,
  auto_renew_period_unit: typing.Union[str, IResolvable] = None,
  effective_date: typing.Union[str, IResolvable] = None,
  pricing_cycle: typing.Union[str, IResolvable] = None
)

Properties

Name Type Description
duration typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable] Property duration: The validity of the specified resource package.
package_type typing.Union[str, ros_cdk_core.IResolvable] Property packageType: The type of the specified resource package.
product_code typing.Union[str, ros_cdk_core.IResolvable] Property productCode: The code of the specified product.
specification typing.Union[str, ros_cdk_core.IResolvable] Property specification: The size of the specified resource package.
auto_renew typing.Union[bool, ros_cdk_core.IResolvable] Property autoRenew: Whether to automatically renew the resource package.
auto_renew_period typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable] Property autoRenewPeriod: Duration of resource packs renewals.
auto_renew_period_unit typing.Union[str, ros_cdk_core.IResolvable] Property autoRenewPeriodUnit: Unit of resource pack renewals.
effective_date typing.Union[str, ros_cdk_core.IResolvable] Property effectiveDate: The effective date of the specified resource package.
pricing_cycle typing.Union[str, ros_cdk_core.IResolvable] Property pricingCycle: The validity of the specified resource package.

durationRequired

duration: typing.Union[typing.Union[int, float], IResolvable]
  • Type: typing.Union[typing.Union[int, float], 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.


package_typeRequired

package_type: typing.Union[str, IResolvable]
  • Type: typing.Union[str, 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.


product_codeRequired

product_code: typing.Union[str, IResolvable]
  • Type: typing.Union[str, 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

specification: typing.Union[str, IResolvable]
  • Type: typing.Union[str, 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.


auto_renewOptional

auto_renew: typing.Union[bool, IResolvable]
  • Type: typing.Union[bool, ros_cdk_core.IResolvable]

Property autoRenew: Whether to automatically renew the resource package.

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


auto_renew_periodOptional

auto_renew_period: typing.Union[typing.Union[int, float], IResolvable]
  • Type: typing.Union[typing.Union[int, float], 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.

auto_renew_period_unitOptional

auto_renew_period_unit: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property autoRenewPeriodUnit: Unit of resource pack renewals.

Valid values: Month, Year. Default is Month.


effective_dateOptional

effective_date: typing.Union[str, IResolvable]
  • Type: typing.Union[str, 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


pricing_cycleOptional

pricing_cycle: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property pricingCycle: The validity of the specified resource package.

Default value: Month. Valid values: Month, Year