alicloud.esa.RatePlanInstance
Explore with Pulumi AI
Import
ESA Rate Plan Instance can be imported using the id, e.g.
$ pulumi import alicloud:esa/ratePlanInstance:RatePlanInstance example <id>
Create RatePlanInstance Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new RatePlanInstance(name: string, args?: RatePlanInstanceArgs, opts?: CustomResourceOptions);
@overload
def RatePlanInstance(resource_name: str,
args: Optional[RatePlanInstanceArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def RatePlanInstance(resource_name: str,
opts: Optional[ResourceOptions] = None,
auto_pay: Optional[bool] = None,
auto_renew: Optional[bool] = None,
coverage: Optional[str] = None,
payment_type: Optional[str] = None,
period: Optional[int] = None,
plan_name: Optional[str] = None,
type: Optional[str] = None)
func NewRatePlanInstance(ctx *Context, name string, args *RatePlanInstanceArgs, opts ...ResourceOption) (*RatePlanInstance, error)
public RatePlanInstance(string name, RatePlanInstanceArgs? args = null, CustomResourceOptions? opts = null)
public RatePlanInstance(String name, RatePlanInstanceArgs args)
public RatePlanInstance(String name, RatePlanInstanceArgs args, CustomResourceOptions options)
type: alicloud:esa:RatePlanInstance
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args RatePlanInstanceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args RatePlanInstanceArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args RatePlanInstanceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args RatePlanInstanceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args RatePlanInstanceArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var ratePlanInstanceResource = new AliCloud.Esa.RatePlanInstance("ratePlanInstanceResource", new()
{
AutoPay = false,
AutoRenew = false,
Coverage = "string",
PaymentType = "string",
Period = 0,
PlanName = "string",
Type = "string",
});
example, err := esa.NewRatePlanInstance(ctx, "ratePlanInstanceResource", &esa.RatePlanInstanceArgs{
AutoPay: pulumi.Bool(false),
AutoRenew: pulumi.Bool(false),
Coverage: pulumi.String("string"),
PaymentType: pulumi.String("string"),
Period: pulumi.Int(0),
PlanName: pulumi.String("string"),
Type: pulumi.String("string"),
})
var ratePlanInstanceResource = new RatePlanInstance("ratePlanInstanceResource", RatePlanInstanceArgs.builder()
.autoPay(false)
.autoRenew(false)
.coverage("string")
.paymentType("string")
.period(0)
.planName("string")
.type("string")
.build());
rate_plan_instance_resource = alicloud.esa.RatePlanInstance("ratePlanInstanceResource",
auto_pay=False,
auto_renew=False,
coverage="string",
payment_type="string",
period=0,
plan_name="string",
type="string")
const ratePlanInstanceResource = new alicloud.esa.RatePlanInstance("ratePlanInstanceResource", {
autoPay: false,
autoRenew: false,
coverage: "string",
paymentType: "string",
period: 0,
planName: "string",
type: "string",
});
type: alicloud:esa:RatePlanInstance
properties:
autoPay: false
autoRenew: false
coverage: string
paymentType: string
period: 0
planName: string
type: string
RatePlanInstance Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The RatePlanInstance resource accepts the following input properties:
- Auto
Pay bool - Whether to pay automatically.
- Auto
Renew bool Auto Renew:
true: Automatic renewal.
false: Do not renew automatically.
- Coverage string
Acceleration area:
domestic: Mainland China only.
global: global.
overseas: Global (excluding Mainland China).
- Payment
Type string - The payment type of the resource, Valid vales: Subscription.
- Period int
- Purchase cycle (in months).
- Plan
Name string - The plan name, which is obtained from the DescribeRatePlanPrice interface.
- Type string
Site access type:
NS:NS access.
CNAME:CNAME access.
- Auto
Pay bool - Whether to pay automatically.
- Auto
Renew bool Auto Renew:
true: Automatic renewal.
false: Do not renew automatically.
- Coverage string
Acceleration area:
domestic: Mainland China only.
global: global.
overseas: Global (excluding Mainland China).
- Payment
Type string - The payment type of the resource, Valid vales: Subscription.
- Period int
- Purchase cycle (in months).
- Plan
Name string - The plan name, which is obtained from the DescribeRatePlanPrice interface.
- Type string
Site access type:
NS:NS access.
CNAME:CNAME access.
- auto
Pay Boolean - Whether to pay automatically.
- auto
Renew Boolean Auto Renew:
true: Automatic renewal.
false: Do not renew automatically.
- coverage String
Acceleration area:
domestic: Mainland China only.
global: global.
overseas: Global (excluding Mainland China).
- payment
Type String - The payment type of the resource, Valid vales: Subscription.
- period Integer
- Purchase cycle (in months).
- plan
Name String - The plan name, which is obtained from the DescribeRatePlanPrice interface.
- type String
Site access type:
NS:NS access.
CNAME:CNAME access.
- auto
Pay boolean - Whether to pay automatically.
- auto
Renew boolean Auto Renew:
true: Automatic renewal.
false: Do not renew automatically.
- coverage string
Acceleration area:
domestic: Mainland China only.
global: global.
overseas: Global (excluding Mainland China).
- payment
Type string - The payment type of the resource, Valid vales: Subscription.
- period number
- Purchase cycle (in months).
- plan
Name string - The plan name, which is obtained from the DescribeRatePlanPrice interface.
- type string
Site access type:
NS:NS access.
CNAME:CNAME access.
- auto_
pay bool - Whether to pay automatically.
- auto_
renew bool Auto Renew:
true: Automatic renewal.
false: Do not renew automatically.
- coverage str
Acceleration area:
domestic: Mainland China only.
global: global.
overseas: Global (excluding Mainland China).
- payment_
type str - The payment type of the resource, Valid vales: Subscription.
- period int
- Purchase cycle (in months).
- plan_
name str - The plan name, which is obtained from the DescribeRatePlanPrice interface.
- type str
Site access type:
NS:NS access.
CNAME:CNAME access.
- auto
Pay Boolean - Whether to pay automatically.
- auto
Renew Boolean Auto Renew:
true: Automatic renewal.
false: Do not renew automatically.
- coverage String
Acceleration area:
domestic: Mainland China only.
global: global.
overseas: Global (excluding Mainland China).
- payment
Type String - The payment type of the resource, Valid vales: Subscription.
- period Number
- Purchase cycle (in months).
- plan
Name String - The plan name, which is obtained from the DescribeRatePlanPrice interface.
- type String
Site access type:
NS:NS access.
CNAME:CNAME access.
Outputs
All input properties are implicitly available as output properties. Additionally, the RatePlanInstance resource produces the following output properties:
- Create
Time string - The new purchase time of the package instance.
- Id string
- The provider-assigned unique ID for this managed resource.
- Instance
Status string - Renewing: renewing
- Status string
- The status of the resource
- Create
Time string - The new purchase time of the package instance.
- Id string
- The provider-assigned unique ID for this managed resource.
- Instance
Status string - Renewing: renewing
- Status string
- The status of the resource
- create
Time String - The new purchase time of the package instance.
- id String
- The provider-assigned unique ID for this managed resource.
- instance
Status String - Renewing: renewing
- status String
- The status of the resource
- create
Time string - The new purchase time of the package instance.
- id string
- The provider-assigned unique ID for this managed resource.
- instance
Status string - Renewing: renewing
- status string
- The status of the resource
- create_
time str - The new purchase time of the package instance.
- id str
- The provider-assigned unique ID for this managed resource.
- instance_
status str - Renewing: renewing
- status str
- The status of the resource
- create
Time String - The new purchase time of the package instance.
- id String
- The provider-assigned unique ID for this managed resource.
- instance
Status String - Renewing: renewing
- status String
- The status of the resource
Look up Existing RatePlanInstance Resource
Get an existing RatePlanInstance resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: RatePlanInstanceState, opts?: CustomResourceOptions): RatePlanInstance
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
auto_pay: Optional[bool] = None,
auto_renew: Optional[bool] = None,
coverage: Optional[str] = None,
create_time: Optional[str] = None,
instance_status: Optional[str] = None,
payment_type: Optional[str] = None,
period: Optional[int] = None,
plan_name: Optional[str] = None,
status: Optional[str] = None,
type: Optional[str] = None) -> RatePlanInstance
func GetRatePlanInstance(ctx *Context, name string, id IDInput, state *RatePlanInstanceState, opts ...ResourceOption) (*RatePlanInstance, error)
public static RatePlanInstance Get(string name, Input<string> id, RatePlanInstanceState? state, CustomResourceOptions? opts = null)
public static RatePlanInstance get(String name, Output<String> id, RatePlanInstanceState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Auto
Pay bool - Whether to pay automatically.
- Auto
Renew bool Auto Renew:
true: Automatic renewal.
false: Do not renew automatically.
- Coverage string
Acceleration area:
domestic: Mainland China only.
global: global.
overseas: Global (excluding Mainland China).
- Create
Time string - The new purchase time of the package instance.
- Instance
Status string - Renewing: renewing
- Payment
Type string - The payment type of the resource, Valid vales: Subscription.
- Period int
- Purchase cycle (in months).
- Plan
Name string - The plan name, which is obtained from the DescribeRatePlanPrice interface.
- Status string
- The status of the resource
- Type string
Site access type:
NS:NS access.
CNAME:CNAME access.
- Auto
Pay bool - Whether to pay automatically.
- Auto
Renew bool Auto Renew:
true: Automatic renewal.
false: Do not renew automatically.
- Coverage string
Acceleration area:
domestic: Mainland China only.
global: global.
overseas: Global (excluding Mainland China).
- Create
Time string - The new purchase time of the package instance.
- Instance
Status string - Renewing: renewing
- Payment
Type string - The payment type of the resource, Valid vales: Subscription.
- Period int
- Purchase cycle (in months).
- Plan
Name string - The plan name, which is obtained from the DescribeRatePlanPrice interface.
- Status string
- The status of the resource
- Type string
Site access type:
NS:NS access.
CNAME:CNAME access.
- auto
Pay Boolean - Whether to pay automatically.
- auto
Renew Boolean Auto Renew:
true: Automatic renewal.
false: Do not renew automatically.
- coverage String
Acceleration area:
domestic: Mainland China only.
global: global.
overseas: Global (excluding Mainland China).
- create
Time String - The new purchase time of the package instance.
- instance
Status String - Renewing: renewing
- payment
Type String - The payment type of the resource, Valid vales: Subscription.
- period Integer
- Purchase cycle (in months).
- plan
Name String - The plan name, which is obtained from the DescribeRatePlanPrice interface.
- status String
- The status of the resource
- type String
Site access type:
NS:NS access.
CNAME:CNAME access.
- auto
Pay boolean - Whether to pay automatically.
- auto
Renew boolean Auto Renew:
true: Automatic renewal.
false: Do not renew automatically.
- coverage string
Acceleration area:
domestic: Mainland China only.
global: global.
overseas: Global (excluding Mainland China).
- create
Time string - The new purchase time of the package instance.
- instance
Status string - Renewing: renewing
- payment
Type string - The payment type of the resource, Valid vales: Subscription.
- period number
- Purchase cycle (in months).
- plan
Name string - The plan name, which is obtained from the DescribeRatePlanPrice interface.
- status string
- The status of the resource
- type string
Site access type:
NS:NS access.
CNAME:CNAME access.
- auto_
pay bool - Whether to pay automatically.
- auto_
renew bool Auto Renew:
true: Automatic renewal.
false: Do not renew automatically.
- coverage str
Acceleration area:
domestic: Mainland China only.
global: global.
overseas: Global (excluding Mainland China).
- create_
time str - The new purchase time of the package instance.
- instance_
status str - Renewing: renewing
- payment_
type str - The payment type of the resource, Valid vales: Subscription.
- period int
- Purchase cycle (in months).
- plan_
name str - The plan name, which is obtained from the DescribeRatePlanPrice interface.
- status str
- The status of the resource
- type str
Site access type:
NS:NS access.
CNAME:CNAME access.
- auto
Pay Boolean - Whether to pay automatically.
- auto
Renew Boolean Auto Renew:
true: Automatic renewal.
false: Do not renew automatically.
- coverage String
Acceleration area:
domestic: Mainland China only.
global: global.
overseas: Global (excluding Mainland China).
- create
Time String - The new purchase time of the package instance.
- instance
Status String - Renewing: renewing
- payment
Type String - The payment type of the resource, Valid vales: Subscription.
- period Number
- Purchase cycle (in months).
- plan
Name String - The plan name, which is obtained from the DescribeRatePlanPrice interface.
- status String
- The status of the resource
- type String
Site access type:
NS:NS access.
CNAME:CNAME access.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.