Skip to content

BasicAccelerator

This class encapsulates and extends the ROS resource type ALIYUN::GA::BasicAccelerator.

Initializers

import ros_cdk_ga
ros_cdk_ga.BasicAccelerator(
  scope: Construct,
  id: str,
  auto_pay: typing.Union[bool, IResolvable] = None,
  auto_renew: typing.Union[bool, IResolvable] = None,
  auto_renew_duration: typing.Union[typing.Union[int, float], IResolvable] = None,
  auto_use_coupon: typing.Union[str, IResolvable] = None,
  bandwidth_billing_type: typing.Union[str, IResolvable] = None,
  charge_type: typing.Union[str, IResolvable] = None,
  duration: typing.Union[typing.Union[int, float], IResolvable] = None,
  pricing_cycle: typing.Union[str, IResolvable] = None,
  promotion_option_no: typing.Union[str, IResolvable] = None,
  resource_group_id: typing.Union[str, IResolvable] = None,
  tags: typing.List[TagsProperty] = None,
  enable_resource_property_constraint: bool = None
)
Name Type Description
scope ros_cdk_core.Construct No description.
id str No description.
auto_pay typing.Union[bool, ros_cdk_core.IResolvable] Property autoPay: Specifies whether to enable automatic payment.
auto_renew typing.Union[bool, ros_cdk_core.IResolvable] Property autoRenew: Specifies whether to enable auto-renewal for the basic GA instance.
auto_renew_duration typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable] Property autoRenewDuration: The auto-renewal duration.
auto_use_coupon typing.Union[str, ros_cdk_core.IResolvable] Property autoUseCoupon: Specifies whether to automatically apply coupons to your bills.
bandwidth_billing_type typing.Union[str, ros_cdk_core.IResolvable] Property bandwidthBillingType: The bandwidth billing method.
charge_type typing.Union[str, ros_cdk_core.IResolvable] Property chargeType: The billing method.
duration typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable] Property duration: The subscription duration of the GA instance.
pricing_cycle typing.Union[str, ros_cdk_core.IResolvable] Property pricingCycle: The billing cycle.
promotion_option_no typing.Union[str, ros_cdk_core.IResolvable] Property promotionOptionNo: The code of the coupon.
resource_group_id typing.Union[str, ros_cdk_core.IResolvable] Property resourceGroupId: The ID of the resource group to which the basic GA instance belongs.
tags typing.List[TagsProperty] Property tags: The tags of the basic GA instance.
enable_resource_property_constraint bool No description.

scopeRequired

  • Type: ros_cdk_core.Construct

idRequired

  • Type: str

auto_payOptional

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

Property autoPay: Specifies whether to enable automatic payment.

Valid values: false: disables automatic payment. If you select this option, you must go to the Order Center to complete the payment after an order is generated. This is the default value. true: enables automatic payment. Payments are automatically completed.


auto_renewOptional

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

Property autoRenew: Specifies whether to enable auto-renewal for the basic GA instance.

Valid values: true: enables auto-renewal for the basic GA instance. false: disables auto-renewal for the basic GA instance. This is the default value.


auto_renew_durationOptional

  • Type: typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable]

Property autoRenewDuration: The auto-renewal duration.

Unit: months.Valid values: 1 to 12. Default value: 1.


auto_use_couponOptional

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

Property autoUseCoupon: Specifies whether to automatically apply coupons to your bills.

Valid values: true: automatically applies coupons to your bills. false: does not automatically apply coupons to your bills. This is the default value.


bandwidth_billing_typeOptional

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

Property bandwidthBillingType: The bandwidth billing method.

Valid values: BandwidthPackage: billed based on bandwidth plans. CDT: billed based on data transfer. The bills are managed by using Cloud Data Transfer (CDT). CDT95: billed based on the 95th percentile bandwidth. The bills are managed by using Cloud Data Transfer (CDT). This bandwidth billing method is not available by default. Contact your Alibaba Cloud account manager for more information.


charge_typeOptional

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

Property chargeType: The billing method.

Valid values: PREPAY (default)POSTPAY


durationOptional

  • Type: typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable]

Property duration: The subscription duration of the GA instance.

If you set PricingCycle to Month, the valid values for Duration are 1 to 9. If you set PricingCycle to Year, the valid values for Duration are 1 to 3.


pricing_cycleOptional

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

Property pricingCycle: The billing cycle.

Valid values: Month Year


promotion_option_noOptional

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

Property promotionOptionNo: The code of the coupon.


resource_group_idOptional

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

Property resourceGroupId: The ID of the resource group to which the basic GA instance belongs.


tagsOptional

Property tags: The tags of the basic GA instance.


enable_resource_property_constraintOptional

  • Type: bool

Methods

Name Description
to_string Returns a string representation of this construct.
synthesize Allows this construct to emit artifacts into the cloud assembly during synthesis.
add_condition No description.
add_count No description.
add_dependency No description.
add_resource_desc No description.
apply_removal_policy No description.
get_att No description.
set_metadata No description.

to_string

def to_string() -> str

Returns a string representation of this construct.

synthesize

def synthesize(
  session: ISynthesisSession
) -> None

Allows this construct to emit artifacts into the cloud assembly during synthesis.

This method is usually implemented by framework-level constructs such as Stack and Asset as they participate in synthesizing the cloud assembly.

sessionRequired

  • Type: ros_cdk_core.ISynthesisSession

The synthesis session.


add_condition

def add_condition(
  condition: RosCondition
) -> None

conditionRequired

  • Type: ros_cdk_core.RosCondition

add_count

def add_count(
  count: typing.Union[typing.Union[int, float], IResolvable]
) -> None

countRequired

  • Type: typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable]

add_dependency

def add_dependency(
  resource: Resource
) -> None

resourceRequired

  • Type: ros_cdk_core.Resource

add_resource_desc

def add_resource_desc(
  desc: str
) -> None

descRequired

  • Type: str

apply_removal_policy

def apply_removal_policy(
  policy: RemovalPolicy
) -> None

policyRequired

  • Type: ros_cdk_core.RemovalPolicy

get_att

def get_att(
  name: str
) -> IResolvable

nameRequired

  • Type: str

set_metadata

def set_metadata(
  key: str,
  value: typing.Any
) -> None

keyRequired

  • Type: str

valueRequired

  • Type: typing.Any

Static Functions

Name Description
is_construct Return whether the given object is a Construct.

is_construct

import ros_cdk_ga
ros_cdk_ga.BasicAccelerator.is_construct(
  x: typing.Any
)

Return whether the given object is a Construct.

xRequired

  • Type: typing.Any

Properties

Name Type Description
node ros_cdk_core.ConstructNode The construct tree node associated with this construct.
ref str No description.
stack ros_cdk_core.Stack The stack in which this resource is defined.
resource ros_cdk_core.RosResource No description.
attr_accelerator_id ros_cdk_core.IResolvable Attribute AcceleratorId: The ID of the accelerated IP address.

nodeRequired

node: ConstructNode
  • Type: ros_cdk_core.ConstructNode

The construct tree node associated with this construct.


refRequired

ref: str
  • Type: str

stackRequired

stack: Stack
  • Type: ros_cdk_core.Stack

The stack in which this resource is defined.


resourceOptional

resource: RosResource
  • Type: ros_cdk_core.RosResource

attr_accelerator_idRequired

attr_accelerator_id: IResolvable
  • Type: ros_cdk_core.IResolvable

Attribute AcceleratorId: The ID of the accelerated IP address.