get Db Instance Plans
This data source provides the Gpdb Db Instance Plans of the current Alibaba Cloud user.
NOTE: Available in v1.189.0+.
Example Usage
Basic Usage
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.gpdb.GpdbFunctions;
import com.pulumi.alicloud.gpdb.inputs.GetDbInstancePlansArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var ids = GpdbFunctions.getDbInstancePlans(GetDbInstancePlansArgs.builder()
.dbInstanceId("example_value")
.ids("example_value")
.build());
ctx.export("gpdbDbInstancePlanId1", ids.applyValue(getDbInstancePlansResult -> getDbInstancePlansResult.plans()[0].id()));
final var nameRegex = GpdbFunctions.getDbInstancePlans(GetDbInstancePlansArgs.builder()
.dbInstanceId("example_value")
.nameRegex("^my-DBInstancePlan")
.build());
ctx.export("gpdbDbInstancePlanId2", nameRegex.applyValue(getDbInstancePlansResult -> getDbInstancePlansResult.plans()[0].id()));
}
}
Return
A collection of values returned by getDbInstancePlans.
Parameters
A collection of arguments for invoking getDbInstancePlans.
Return
A collection of values returned by getDbInstancePlans.
See also
Parameters
The ID of the Database instance.
A list of DB Instance Plan IDs.
A regex string to filter results by DB Instance Plan name.
File name where to save data source results (after running pulumi preview
).
Plan scheduling type. Valid values: Postpone
, Regular
.
The type of the Plan. Valid values: PauseResume
, Resize
.
The Status of the Plan.
Return
A collection of values returned by getDbInstancePlans.
See also
Parameters
Builder for com.pulumi.alicloud.gpdb.kotlin.inputs.GetDbInstancePlansPlainArgs.