This repository has been archived by the owner on Oct 6, 2023. It is now read-only.
generated from pulumi/pulumi-tf-provider-boilerplate
/
getLoggingGroup.go
122 lines (98 loc) · 4.58 KB
/
getLoggingGroup.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
// *** 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 yandex
import (
"context"
"reflect"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func LookupLoggingGroup(ctx *pulumi.Context, args *LookupLoggingGroupArgs, opts ...pulumi.InvokeOption) (*LookupLoggingGroupResult, error) {
var rv LookupLoggingGroupResult
err := ctx.Invoke("yandex:index/getLoggingGroup:getLoggingGroup", args, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
// A collection of arguments for invoking getLoggingGroup.
type LookupLoggingGroupArgs struct {
FolderId *string `pulumi:"folderId"`
GroupId *string `pulumi:"groupId"`
Name *string `pulumi:"name"`
}
// A collection of values returned by getLoggingGroup.
type LookupLoggingGroupResult struct {
CloudId string `pulumi:"cloudId"`
CreatedAt string `pulumi:"createdAt"`
Description string `pulumi:"description"`
FolderId string `pulumi:"folderId"`
GroupId string `pulumi:"groupId"`
// The provider-assigned unique ID for this managed resource.
Id string `pulumi:"id"`
Labels map[string]string `pulumi:"labels"`
Name string `pulumi:"name"`
RetentionPeriod string `pulumi:"retentionPeriod"`
Status string `pulumi:"status"`
}
func LookupLoggingGroupOutput(ctx *pulumi.Context, args LookupLoggingGroupOutputArgs, opts ...pulumi.InvokeOption) LookupLoggingGroupResultOutput {
return pulumi.ToOutputWithContext(context.Background(), args).
ApplyT(func(v interface{}) (LookupLoggingGroupResult, error) {
args := v.(LookupLoggingGroupArgs)
r, err := LookupLoggingGroup(ctx, &args, opts...)
return *r, err
}).(LookupLoggingGroupResultOutput)
}
// A collection of arguments for invoking getLoggingGroup.
type LookupLoggingGroupOutputArgs struct {
FolderId pulumi.StringPtrInput `pulumi:"folderId"`
GroupId pulumi.StringPtrInput `pulumi:"groupId"`
Name pulumi.StringPtrInput `pulumi:"name"`
}
func (LookupLoggingGroupOutputArgs) ElementType() reflect.Type {
return reflect.TypeOf((*LookupLoggingGroupArgs)(nil)).Elem()
}
// A collection of values returned by getLoggingGroup.
type LookupLoggingGroupResultOutput struct{ *pulumi.OutputState }
func (LookupLoggingGroupResultOutput) ElementType() reflect.Type {
return reflect.TypeOf((*LookupLoggingGroupResult)(nil)).Elem()
}
func (o LookupLoggingGroupResultOutput) ToLookupLoggingGroupResultOutput() LookupLoggingGroupResultOutput {
return o
}
func (o LookupLoggingGroupResultOutput) ToLookupLoggingGroupResultOutputWithContext(ctx context.Context) LookupLoggingGroupResultOutput {
return o
}
func (o LookupLoggingGroupResultOutput) CloudId() pulumi.StringOutput {
return o.ApplyT(func(v LookupLoggingGroupResult) string { return v.CloudId }).(pulumi.StringOutput)
}
func (o LookupLoggingGroupResultOutput) CreatedAt() pulumi.StringOutput {
return o.ApplyT(func(v LookupLoggingGroupResult) string { return v.CreatedAt }).(pulumi.StringOutput)
}
func (o LookupLoggingGroupResultOutput) Description() pulumi.StringOutput {
return o.ApplyT(func(v LookupLoggingGroupResult) string { return v.Description }).(pulumi.StringOutput)
}
func (o LookupLoggingGroupResultOutput) FolderId() pulumi.StringOutput {
return o.ApplyT(func(v LookupLoggingGroupResult) string { return v.FolderId }).(pulumi.StringOutput)
}
func (o LookupLoggingGroupResultOutput) GroupId() pulumi.StringOutput {
return o.ApplyT(func(v LookupLoggingGroupResult) string { return v.GroupId }).(pulumi.StringOutput)
}
// The provider-assigned unique ID for this managed resource.
func (o LookupLoggingGroupResultOutput) Id() pulumi.StringOutput {
return o.ApplyT(func(v LookupLoggingGroupResult) string { return v.Id }).(pulumi.StringOutput)
}
func (o LookupLoggingGroupResultOutput) Labels() pulumi.StringMapOutput {
return o.ApplyT(func(v LookupLoggingGroupResult) map[string]string { return v.Labels }).(pulumi.StringMapOutput)
}
func (o LookupLoggingGroupResultOutput) Name() pulumi.StringOutput {
return o.ApplyT(func(v LookupLoggingGroupResult) string { return v.Name }).(pulumi.StringOutput)
}
func (o LookupLoggingGroupResultOutput) RetentionPeriod() pulumi.StringOutput {
return o.ApplyT(func(v LookupLoggingGroupResult) string { return v.RetentionPeriod }).(pulumi.StringOutput)
}
func (o LookupLoggingGroupResultOutput) Status() pulumi.StringOutput {
return o.ApplyT(func(v LookupLoggingGroupResult) string { return v.Status }).(pulumi.StringOutput)
}
func init() {
pulumi.RegisterOutputType(LookupLoggingGroupResultOutput{})
}