generated from pulumi/pulumi-tf-provider-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 1
/
getDbSystemComputePerformances.go
129 lines (111 loc) · 5.4 KB
/
getDbSystemComputePerformances.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT.
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
package database
import (
"context"
"reflect"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
// This data source provides the list of Db System Compute Performances in Oracle Cloud Infrastructure Database service.
//
// Gets a list of expected compute performance parameters for a virtual machine DB system based on system configuration.
//
// ## Example Usage
//
// ```go
// package main
//
// import (
//
// "github.com/pulumi/pulumi-oci/sdk/go/oci/Database"
// "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
//
// )
//
// func main() {
// pulumi.Run(func(ctx *pulumi.Context) error {
// _, err := Database.GetDbSystemComputePerformances(ctx, &database.GetDbSystemComputePerformancesArgs{
// DbSystemShape: pulumi.StringRef(_var.Db_system_compute_performance_db_system_shape),
// }, nil)
// if err != nil {
// return err
// }
// return nil
// })
// }
//
// ```
func GetDbSystemComputePerformances(ctx *pulumi.Context, args *GetDbSystemComputePerformancesArgs, opts ...pulumi.InvokeOption) (*GetDbSystemComputePerformancesResult, error) {
var rv GetDbSystemComputePerformancesResult
err := ctx.Invoke("oci:Database/getDbSystemComputePerformances:getDbSystemComputePerformances", args, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
// A collection of arguments for invoking getDbSystemComputePerformances.
type GetDbSystemComputePerformancesArgs struct {
// If provided, filters the results to the set of database versions which are supported for the given shape.
DbSystemShape *string `pulumi:"dbSystemShape"`
Filters []GetDbSystemComputePerformancesFilter `pulumi:"filters"`
}
// A collection of values returned by getDbSystemComputePerformances.
type GetDbSystemComputePerformancesResult struct {
// The list of db_system_compute_performances.
DbSystemComputePerformances []GetDbSystemComputePerformancesDbSystemComputePerformance `pulumi:"dbSystemComputePerformances"`
DbSystemShape *string `pulumi:"dbSystemShape"`
Filters []GetDbSystemComputePerformancesFilter `pulumi:"filters"`
// The provider-assigned unique ID for this managed resource.
Id string `pulumi:"id"`
}
func GetDbSystemComputePerformancesOutput(ctx *pulumi.Context, args GetDbSystemComputePerformancesOutputArgs, opts ...pulumi.InvokeOption) GetDbSystemComputePerformancesResultOutput {
return pulumi.ToOutputWithContext(context.Background(), args).
ApplyT(func(v interface{}) (GetDbSystemComputePerformancesResult, error) {
args := v.(GetDbSystemComputePerformancesArgs)
r, err := GetDbSystemComputePerformances(ctx, &args, opts...)
var s GetDbSystemComputePerformancesResult
if r != nil {
s = *r
}
return s, err
}).(GetDbSystemComputePerformancesResultOutput)
}
// A collection of arguments for invoking getDbSystemComputePerformances.
type GetDbSystemComputePerformancesOutputArgs struct {
// If provided, filters the results to the set of database versions which are supported for the given shape.
DbSystemShape pulumi.StringPtrInput `pulumi:"dbSystemShape"`
Filters GetDbSystemComputePerformancesFilterArrayInput `pulumi:"filters"`
}
func (GetDbSystemComputePerformancesOutputArgs) ElementType() reflect.Type {
return reflect.TypeOf((*GetDbSystemComputePerformancesArgs)(nil)).Elem()
}
// A collection of values returned by getDbSystemComputePerformances.
type GetDbSystemComputePerformancesResultOutput struct{ *pulumi.OutputState }
func (GetDbSystemComputePerformancesResultOutput) ElementType() reflect.Type {
return reflect.TypeOf((*GetDbSystemComputePerformancesResult)(nil)).Elem()
}
func (o GetDbSystemComputePerformancesResultOutput) ToGetDbSystemComputePerformancesResultOutput() GetDbSystemComputePerformancesResultOutput {
return o
}
func (o GetDbSystemComputePerformancesResultOutput) ToGetDbSystemComputePerformancesResultOutputWithContext(ctx context.Context) GetDbSystemComputePerformancesResultOutput {
return o
}
// The list of db_system_compute_performances.
func (o GetDbSystemComputePerformancesResultOutput) DbSystemComputePerformances() GetDbSystemComputePerformancesDbSystemComputePerformanceArrayOutput {
return o.ApplyT(func(v GetDbSystemComputePerformancesResult) []GetDbSystemComputePerformancesDbSystemComputePerformance {
return v.DbSystemComputePerformances
}).(GetDbSystemComputePerformancesDbSystemComputePerformanceArrayOutput)
}
func (o GetDbSystemComputePerformancesResultOutput) DbSystemShape() pulumi.StringPtrOutput {
return o.ApplyT(func(v GetDbSystemComputePerformancesResult) *string { return v.DbSystemShape }).(pulumi.StringPtrOutput)
}
func (o GetDbSystemComputePerformancesResultOutput) Filters() GetDbSystemComputePerformancesFilterArrayOutput {
return o.ApplyT(func(v GetDbSystemComputePerformancesResult) []GetDbSystemComputePerformancesFilter { return v.Filters }).(GetDbSystemComputePerformancesFilterArrayOutput)
}
// The provider-assigned unique ID for this managed resource.
func (o GetDbSystemComputePerformancesResultOutput) Id() pulumi.StringOutput {
return o.ApplyT(func(v GetDbSystemComputePerformancesResult) string { return v.Id }).(pulumi.StringOutput)
}
func init() {
pulumi.RegisterOutputType(GetDbSystemComputePerformancesResultOutput{})
}