-
Notifications
You must be signed in to change notification settings - Fork 151
/
getParametersByPath.go
109 lines (88 loc) · 4.09 KB
/
getParametersByPath.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
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package ssm
import (
"context"
"reflect"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func GetParametersByPath(ctx *pulumi.Context, args *GetParametersByPathArgs, opts ...pulumi.InvokeOption) (*GetParametersByPathResult, error) {
var rv GetParametersByPathResult
err := ctx.Invoke("aws:ssm/getParametersByPath:getParametersByPath", args, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
// A collection of arguments for invoking getParametersByPath.
type GetParametersByPathArgs struct {
// The prefix path of the parameter.
Path string `pulumi:"path"`
// Whether to return decrypted `SecureString` value. Defaults to `true`.
WithDecryption *bool `pulumi:"withDecryption"`
}
// A collection of values returned by getParametersByPath.
type GetParametersByPathResult struct {
Arns []string `pulumi:"arns"`
// The provider-assigned unique ID for this managed resource.
Id string `pulumi:"id"`
Names []string `pulumi:"names"`
Path string `pulumi:"path"`
Types []string `pulumi:"types"`
Values []string `pulumi:"values"`
WithDecryption *bool `pulumi:"withDecryption"`
}
func GetParametersByPathOutput(ctx *pulumi.Context, args GetParametersByPathOutputArgs, opts ...pulumi.InvokeOption) GetParametersByPathResultOutput {
return pulumi.ToOutputWithContext(context.Background(), args).
ApplyT(func(v interface{}) (GetParametersByPathResult, error) {
args := v.(GetParametersByPathArgs)
r, err := GetParametersByPath(ctx, &args, opts...)
return *r, err
}).(GetParametersByPathResultOutput)
}
// A collection of arguments for invoking getParametersByPath.
type GetParametersByPathOutputArgs struct {
// The prefix path of the parameter.
Path pulumi.StringInput `pulumi:"path"`
// Whether to return decrypted `SecureString` value. Defaults to `true`.
WithDecryption pulumi.BoolPtrInput `pulumi:"withDecryption"`
}
func (GetParametersByPathOutputArgs) ElementType() reflect.Type {
return reflect.TypeOf((*GetParametersByPathArgs)(nil)).Elem()
}
// A collection of values returned by getParametersByPath.
type GetParametersByPathResultOutput struct{ *pulumi.OutputState }
func (GetParametersByPathResultOutput) ElementType() reflect.Type {
return reflect.TypeOf((*GetParametersByPathResult)(nil)).Elem()
}
func (o GetParametersByPathResultOutput) ToGetParametersByPathResultOutput() GetParametersByPathResultOutput {
return o
}
func (o GetParametersByPathResultOutput) ToGetParametersByPathResultOutputWithContext(ctx context.Context) GetParametersByPathResultOutput {
return o
}
func (o GetParametersByPathResultOutput) Arns() pulumi.StringArrayOutput {
return o.ApplyT(func(v GetParametersByPathResult) []string { return v.Arns }).(pulumi.StringArrayOutput)
}
// The provider-assigned unique ID for this managed resource.
func (o GetParametersByPathResultOutput) Id() pulumi.StringOutput {
return o.ApplyT(func(v GetParametersByPathResult) string { return v.Id }).(pulumi.StringOutput)
}
func (o GetParametersByPathResultOutput) Names() pulumi.StringArrayOutput {
return o.ApplyT(func(v GetParametersByPathResult) []string { return v.Names }).(pulumi.StringArrayOutput)
}
func (o GetParametersByPathResultOutput) Path() pulumi.StringOutput {
return o.ApplyT(func(v GetParametersByPathResult) string { return v.Path }).(pulumi.StringOutput)
}
func (o GetParametersByPathResultOutput) Types() pulumi.StringArrayOutput {
return o.ApplyT(func(v GetParametersByPathResult) []string { return v.Types }).(pulumi.StringArrayOutput)
}
func (o GetParametersByPathResultOutput) Values() pulumi.StringArrayOutput {
return o.ApplyT(func(v GetParametersByPathResult) []string { return v.Values }).(pulumi.StringArrayOutput)
}
func (o GetParametersByPathResultOutput) WithDecryption() pulumi.BoolPtrOutput {
return o.ApplyT(func(v GetParametersByPathResult) *bool { return v.WithDecryption }).(pulumi.BoolPtrOutput)
}
func init() {
pulumi.RegisterOutputType(GetParametersByPathResultOutput{})
}