alicloud.gpdb.DbInstancePlan
Explore with Pulumi AI
Provides a GPDB DB Instance Plan resource.
For information about GPDB DB Instance Plan and how to use it, see What is DB Instance Plan.
NOTE: Available in v1.189.0+.
Create DbInstancePlan Resource
new DbInstancePlan(name: string, args: DbInstancePlanArgs, opts?: CustomResourceOptions);
@overload
def DbInstancePlan(resource_name: str,
opts: Optional[ResourceOptions] = None,
db_instance_id: Optional[str] = None,
db_instance_plan_name: Optional[str] = None,
plan_configs: Optional[Sequence[DbInstancePlanPlanConfigArgs]] = None,
plan_desc: Optional[str] = None,
plan_end_date: Optional[str] = None,
plan_schedule_type: Optional[str] = None,
plan_start_date: Optional[str] = None,
plan_type: Optional[str] = None,
status: Optional[str] = None)
@overload
def DbInstancePlan(resource_name: str,
args: DbInstancePlanArgs,
opts: Optional[ResourceOptions] = None)
func NewDbInstancePlan(ctx *Context, name string, args DbInstancePlanArgs, opts ...ResourceOption) (*DbInstancePlan, error)
public DbInstancePlan(string name, DbInstancePlanArgs args, CustomResourceOptions? opts = null)
public DbInstancePlan(String name, DbInstancePlanArgs args)
public DbInstancePlan(String name, DbInstancePlanArgs args, CustomResourceOptions options)
type: alicloud:gpdb:DbInstancePlan
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DbInstancePlanArgs
- 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 DbInstancePlanArgs
- 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 DbInstancePlanArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DbInstancePlanArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DbInstancePlanArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
DbInstancePlan Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The DbInstancePlan resource accepts the following input properties:
- Db
Instance stringId The ID of the Database instance.
- Db
Instance stringPlan Name The name of the Plan.
- Plan
Configs List<Pulumi.Ali Cloud. Gpdb. Inputs. Db Instance Plan Plan Config Args> The plan config. See the following
Block plan_config
.- Plan
Schedule stringType Plan scheduling type. Valid values:
Postpone
,Regular
.- Plan
Type string The type of the Plan. Valid values:
PauseResume
,Resize
.- Plan
Desc string The description of the Plan.
- Plan
End stringDate The end time of the Plan.
- Plan
Start stringDate The start time of the Plan.
- Status string
The Status of the Plan. Valid values:
active
,cancel
.
- Db
Instance stringId The ID of the Database instance.
- Db
Instance stringPlan Name The name of the Plan.
- Plan
Configs []DbInstance Plan Plan Config Args The plan config. See the following
Block plan_config
.- Plan
Schedule stringType Plan scheduling type. Valid values:
Postpone
,Regular
.- Plan
Type string The type of the Plan. Valid values:
PauseResume
,Resize
.- Plan
Desc string The description of the Plan.
- Plan
End stringDate The end time of the Plan.
- Plan
Start stringDate The start time of the Plan.
- Status string
The Status of the Plan. Valid values:
active
,cancel
.
- db
Instance StringId The ID of the Database instance.
- db
Instance StringPlan Name The name of the Plan.
- plan
Configs List<DbInstance Plan Plan Config Args> The plan config. See the following
Block plan_config
.- plan
Schedule StringType Plan scheduling type. Valid values:
Postpone
,Regular
.- plan
Type String The type of the Plan. Valid values:
PauseResume
,Resize
.- plan
Desc String The description of the Plan.
- plan
End StringDate The end time of the Plan.
- plan
Start StringDate The start time of the Plan.
- status String
The Status of the Plan. Valid values:
active
,cancel
.
- db
Instance stringId The ID of the Database instance.
- db
Instance stringPlan Name The name of the Plan.
- plan
Configs DbInstance Plan Plan Config Args[] The plan config. See the following
Block plan_config
.- plan
Schedule stringType Plan scheduling type. Valid values:
Postpone
,Regular
.- plan
Type string The type of the Plan. Valid values:
PauseResume
,Resize
.- plan
Desc string The description of the Plan.
- plan
End stringDate The end time of the Plan.
- plan
Start stringDate The start time of the Plan.
- status string
The Status of the Plan. Valid values:
active
,cancel
.
- db_
instance_ strid The ID of the Database instance.
- db_
instance_ strplan_ name The name of the Plan.
- plan_
configs Sequence[DbInstance Plan Plan Config Args] The plan config. See the following
Block plan_config
.- plan_
schedule_ strtype Plan scheduling type. Valid values:
Postpone
,Regular
.- plan_
type str The type of the Plan. Valid values:
PauseResume
,Resize
.- plan_
desc str The description of the Plan.
- plan_
end_ strdate The end time of the Plan.
- plan_
start_ strdate The start time of the Plan.
- status str
The Status of the Plan. Valid values:
active
,cancel
.
- db
Instance StringId The ID of the Database instance.
- db
Instance StringPlan Name The name of the Plan.
- plan
Configs List<Property Map> The plan config. See the following
Block plan_config
.- plan
Schedule StringType Plan scheduling type. Valid values:
Postpone
,Regular
.- plan
Type String The type of the Plan. Valid values:
PauseResume
,Resize
.- plan
Desc String The description of the Plan.
- plan
End StringDate The end time of the Plan.
- plan
Start StringDate The start time of the Plan.
- status String
The Status of the Plan. Valid values:
active
,cancel
.
Outputs
All input properties are implicitly available as output properties. Additionally, the DbInstancePlan resource produces the following output properties:
Look up Existing DbInstancePlan Resource
Get an existing DbInstancePlan 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?: DbInstancePlanState, opts?: CustomResourceOptions): DbInstancePlan
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
db_instance_id: Optional[str] = None,
db_instance_plan_name: Optional[str] = None,
plan_configs: Optional[Sequence[DbInstancePlanPlanConfigArgs]] = None,
plan_desc: Optional[str] = None,
plan_end_date: Optional[str] = None,
plan_id: Optional[str] = None,
plan_schedule_type: Optional[str] = None,
plan_start_date: Optional[str] = None,
plan_type: Optional[str] = None,
status: Optional[str] = None) -> DbInstancePlan
func GetDbInstancePlan(ctx *Context, name string, id IDInput, state *DbInstancePlanState, opts ...ResourceOption) (*DbInstancePlan, error)
public static DbInstancePlan Get(string name, Input<string> id, DbInstancePlanState? state, CustomResourceOptions? opts = null)
public static DbInstancePlan get(String name, Output<String> id, DbInstancePlanState 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.
- Db
Instance stringId The ID of the Database instance.
- Db
Instance stringPlan Name The name of the Plan.
- Plan
Configs List<Pulumi.Ali Cloud. Gpdb. Inputs. Db Instance Plan Plan Config Args> The plan config. See the following
Block plan_config
.- Plan
Desc string The description of the Plan.
- Plan
End stringDate The end time of the Plan.
- Plan
Id string The ID of DB Instance Plan.
- Plan
Schedule stringType Plan scheduling type. Valid values:
Postpone
,Regular
.- Plan
Start stringDate The start time of the Plan.
- Plan
Type string The type of the Plan. Valid values:
PauseResume
,Resize
.- Status string
The Status of the Plan. Valid values:
active
,cancel
.
- Db
Instance stringId The ID of the Database instance.
- Db
Instance stringPlan Name The name of the Plan.
- Plan
Configs []DbInstance Plan Plan Config Args The plan config. See the following
Block plan_config
.- Plan
Desc string The description of the Plan.
- Plan
End stringDate The end time of the Plan.
- Plan
Id string The ID of DB Instance Plan.
- Plan
Schedule stringType Plan scheduling type. Valid values:
Postpone
,Regular
.- Plan
Start stringDate The start time of the Plan.
- Plan
Type string The type of the Plan. Valid values:
PauseResume
,Resize
.- Status string
The Status of the Plan. Valid values:
active
,cancel
.
- db
Instance StringId The ID of the Database instance.
- db
Instance StringPlan Name The name of the Plan.
- plan
Configs List<DbInstance Plan Plan Config Args> The plan config. See the following
Block plan_config
.- plan
Desc String The description of the Plan.
- plan
End StringDate The end time of the Plan.
- plan
Id String The ID of DB Instance Plan.
- plan
Schedule StringType Plan scheduling type. Valid values:
Postpone
,Regular
.- plan
Start StringDate The start time of the Plan.
- plan
Type String The type of the Plan. Valid values:
PauseResume
,Resize
.- status String
The Status of the Plan. Valid values:
active
,cancel
.
- db
Instance stringId The ID of the Database instance.
- db
Instance stringPlan Name The name of the Plan.
- plan
Configs DbInstance Plan Plan Config Args[] The plan config. See the following
Block plan_config
.- plan
Desc string The description of the Plan.
- plan
End stringDate The end time of the Plan.
- plan
Id string The ID of DB Instance Plan.
- plan
Schedule stringType Plan scheduling type. Valid values:
Postpone
,Regular
.- plan
Start stringDate The start time of the Plan.
- plan
Type string The type of the Plan. Valid values:
PauseResume
,Resize
.- status string
The Status of the Plan. Valid values:
active
,cancel
.
- db_
instance_ strid The ID of the Database instance.
- db_
instance_ strplan_ name The name of the Plan.
- plan_
configs Sequence[DbInstance Plan Plan Config Args] The plan config. See the following
Block plan_config
.- plan_
desc str The description of the Plan.
- plan_
end_ strdate The end time of the Plan.
- plan_
id str The ID of DB Instance Plan.
- plan_
schedule_ strtype Plan scheduling type. Valid values:
Postpone
,Regular
.- plan_
start_ strdate The start time of the Plan.
- plan_
type str The type of the Plan. Valid values:
PauseResume
,Resize
.- status str
The Status of the Plan. Valid values:
active
,cancel
.
- db
Instance StringId The ID of the Database instance.
- db
Instance StringPlan Name The name of the Plan.
- plan
Configs List<Property Map> The plan config. See the following
Block plan_config
.- plan
Desc String The description of the Plan.
- plan
End StringDate The end time of the Plan.
- plan
Id String The ID of DB Instance Plan.
- plan
Schedule StringType Plan scheduling type. Valid values:
Postpone
,Regular
.- plan
Start StringDate The start time of the Plan.
- plan
Type String The type of the Plan. Valid values:
PauseResume
,Resize
.- status String
The Status of the Plan. Valid values:
active
,cancel
.
Supporting Types
DbInstancePlanPlanConfig
- Pause
Pulumi.
Ali Cloud. Gpdb. Inputs. Db Instance Plan Plan Config Pause Pause instance plan config. See the following
Block pause
.- Resume
Pulumi.
Ali Cloud. Gpdb. Inputs. Db Instance Plan Plan Config Resume Resume instance plan config. See the following
Block resume
.- Scale
In Pulumi.Ali Cloud. Gpdb. Inputs. Db Instance Plan Plan Config Scale In Scale In instance plan config. See the following
Block scale_in
.- Scale
Out Pulumi.Ali Cloud. Gpdb. Inputs. Db Instance Plan Plan Config Scale Out Scale out instance plan config. See the following
Block scale_out
.
- Pause
Db
Instance Plan Plan Config Pause Pause instance plan config. See the following
Block pause
.- Resume
Db
Instance Plan Plan Config Resume Resume instance plan config. See the following
Block resume
.- Scale
In DbInstance Plan Plan Config Scale In Scale In instance plan config. See the following
Block scale_in
.- Scale
Out DbInstance Plan Plan Config Scale Out Scale out instance plan config. See the following
Block scale_out
.
- pause
Db
Instance Plan Plan Config Pause Pause instance plan config. See the following
Block pause
.- resume
Db
Instance Plan Plan Config Resume Resume instance plan config. See the following
Block resume
.- scale
In DbInstance Plan Plan Config Scale In Scale In instance plan config. See the following
Block scale_in
.- scale
Out DbInstance Plan Plan Config Scale Out Scale out instance plan config. See the following
Block scale_out
.
- pause
Db
Instance Plan Plan Config Pause Pause instance plan config. See the following
Block pause
.- resume
Db
Instance Plan Plan Config Resume Resume instance plan config. See the following
Block resume
.- scale
In DbInstance Plan Plan Config Scale In Scale In instance plan config. See the following
Block scale_in
.- scale
Out DbInstance Plan Plan Config Scale Out Scale out instance plan config. See the following
Block scale_out
.
- pause
Db
Instance Plan Plan Config Pause Pause instance plan config. See the following
Block pause
.- resume
Db
Instance Plan Plan Config Resume Resume instance plan config. See the following
Block resume
.- scale_
in DbInstance Plan Plan Config Scale In Scale In instance plan config. See the following
Block scale_in
.- scale_
out DbInstance Plan Plan Config Scale Out Scale out instance plan config. See the following
Block scale_out
.
- pause Property Map
Pause instance plan config. See the following
Block pause
.- resume Property Map
Resume instance plan config. See the following
Block resume
.- scale
In Property Map Scale In instance plan config. See the following
Block scale_in
.- scale
Out Property Map Scale out instance plan config. See the following
Block scale_out
.
DbInstancePlanPlanConfigPause
- Execute
Time string The executed time of the Plan.
- Plan
Cron stringTime The Cron Time of the plan.
- Execute
Time string The executed time of the Plan.
- Plan
Cron stringTime The Cron Time of the plan.
- execute
Time String The executed time of the Plan.
- plan
Cron StringTime The Cron Time of the plan.
- execute
Time string The executed time of the Plan.
- plan
Cron stringTime The Cron Time of the plan.
- execute_
time str The executed time of the Plan.
- plan_
cron_ strtime The Cron Time of the plan.
- execute
Time String The executed time of the Plan.
- plan
Cron StringTime The Cron Time of the plan.
DbInstancePlanPlanConfigResume
- Execute
Time string The executed time of the Plan.
- Plan
Cron stringTime The Cron Time of the plan.
- Execute
Time string The executed time of the Plan.
- Plan
Cron stringTime The Cron Time of the plan.
- execute
Time String The executed time of the Plan.
- plan
Cron StringTime The Cron Time of the plan.
- execute
Time string The executed time of the Plan.
- plan
Cron stringTime The Cron Time of the plan.
- execute_
time str The executed time of the Plan.
- plan_
cron_ strtime The Cron Time of the plan.
- execute
Time String The executed time of the Plan.
- plan
Cron StringTime The Cron Time of the plan.
DbInstancePlanPlanConfigScaleIn
- Execute
Time string The executed time of the Plan.
- Plan
Cron stringTime The Cron Time of the plan.
- Segment
Node stringNum The segment Node Num of the Plan.
- Execute
Time string The executed time of the Plan.
- Plan
Cron stringTime The Cron Time of the plan.
- Segment
Node stringNum The segment Node Num of the Plan.
- execute
Time String The executed time of the Plan.
- plan
Cron StringTime The Cron Time of the plan.
- segment
Node StringNum The segment Node Num of the Plan.
- execute
Time string The executed time of the Plan.
- plan
Cron stringTime The Cron Time of the plan.
- segment
Node stringNum The segment Node Num of the Plan.
- execute_
time str The executed time of the Plan.
- plan_
cron_ strtime The Cron Time of the plan.
- segment_
node_ strnum The segment Node Num of the Plan.
- execute
Time String The executed time of the Plan.
- plan
Cron StringTime The Cron Time of the plan.
- segment
Node StringNum The segment Node Num of the Plan.
DbInstancePlanPlanConfigScaleOut
- Execute
Time string The executed time of the Plan.
- Plan
Cron stringTime The Cron Time of the plan.
- Segment
Node stringNum The segment Node Num of the Plan.
- Execute
Time string The executed time of the Plan.
- Plan
Cron stringTime The Cron Time of the plan.
- Segment
Node stringNum The segment Node Num of the Plan.
- execute
Time String The executed time of the Plan.
- plan
Cron StringTime The Cron Time of the plan.
- segment
Node StringNum The segment Node Num of the Plan.
- execute
Time string The executed time of the Plan.
- plan
Cron stringTime The Cron Time of the plan.
- segment
Node stringNum The segment Node Num of the Plan.
- execute_
time str The executed time of the Plan.
- plan_
cron_ strtime The Cron Time of the plan.
- segment_
node_ strnum The segment Node Num of the Plan.
- execute
Time String The executed time of the Plan.
- plan
Cron StringTime The Cron Time of the plan.
- segment
Node StringNum The segment Node Num of the Plan.
Import
GPDB DB Instance Plan can be imported using the id, e.g.
$ pulumi import alicloud:gpdb/dbInstancePlan:DbInstancePlan example <db_instance_id>:<plan_id>
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
alicloud
Terraform Provider.