generated from pulumi/pulumi-tf-provider-boilerplate
/
getListAttachedUserPolicy.go
116 lines (95 loc) · 4.91 KB
/
getListAttachedUserPolicy.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
// 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 cam
import (
"context"
"reflect"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func GetListAttachedUserPolicy(ctx *pulumi.Context, args *GetListAttachedUserPolicyArgs, opts ...pulumi.InvokeOption) (*GetListAttachedUserPolicyResult, error) {
opts = pkgInvokeDefaultOpts(opts)
var rv GetListAttachedUserPolicyResult
err := ctx.Invoke("tencentcloud:Cam/getListAttachedUserPolicy:getListAttachedUserPolicy", args, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
// A collection of arguments for invoking getListAttachedUserPolicy.
type GetListAttachedUserPolicyArgs struct {
AttachType int `pulumi:"attachType"`
Keyword *string `pulumi:"keyword"`
ResultOutputFile *string `pulumi:"resultOutputFile"`
StrategyType *int `pulumi:"strategyType"`
TargetUin int `pulumi:"targetUin"`
}
// A collection of values returned by getListAttachedUserPolicy.
type GetListAttachedUserPolicyResult struct {
AttachType int `pulumi:"attachType"`
// The provider-assigned unique ID for this managed resource.
Id string `pulumi:"id"`
Keyword *string `pulumi:"keyword"`
PolicyLists []GetListAttachedUserPolicyPolicyList `pulumi:"policyLists"`
ResultOutputFile *string `pulumi:"resultOutputFile"`
StrategyType *int `pulumi:"strategyType"`
TargetUin int `pulumi:"targetUin"`
}
func GetListAttachedUserPolicyOutput(ctx *pulumi.Context, args GetListAttachedUserPolicyOutputArgs, opts ...pulumi.InvokeOption) GetListAttachedUserPolicyResultOutput {
return pulumi.ToOutputWithContext(context.Background(), args).
ApplyT(func(v interface{}) (GetListAttachedUserPolicyResult, error) {
args := v.(GetListAttachedUserPolicyArgs)
r, err := GetListAttachedUserPolicy(ctx, &args, opts...)
var s GetListAttachedUserPolicyResult
if r != nil {
s = *r
}
return s, err
}).(GetListAttachedUserPolicyResultOutput)
}
// A collection of arguments for invoking getListAttachedUserPolicy.
type GetListAttachedUserPolicyOutputArgs struct {
AttachType pulumi.IntInput `pulumi:"attachType"`
Keyword pulumi.StringPtrInput `pulumi:"keyword"`
ResultOutputFile pulumi.StringPtrInput `pulumi:"resultOutputFile"`
StrategyType pulumi.IntPtrInput `pulumi:"strategyType"`
TargetUin pulumi.IntInput `pulumi:"targetUin"`
}
func (GetListAttachedUserPolicyOutputArgs) ElementType() reflect.Type {
return reflect.TypeOf((*GetListAttachedUserPolicyArgs)(nil)).Elem()
}
// A collection of values returned by getListAttachedUserPolicy.
type GetListAttachedUserPolicyResultOutput struct{ *pulumi.OutputState }
func (GetListAttachedUserPolicyResultOutput) ElementType() reflect.Type {
return reflect.TypeOf((*GetListAttachedUserPolicyResult)(nil)).Elem()
}
func (o GetListAttachedUserPolicyResultOutput) ToGetListAttachedUserPolicyResultOutput() GetListAttachedUserPolicyResultOutput {
return o
}
func (o GetListAttachedUserPolicyResultOutput) ToGetListAttachedUserPolicyResultOutputWithContext(ctx context.Context) GetListAttachedUserPolicyResultOutput {
return o
}
func (o GetListAttachedUserPolicyResultOutput) AttachType() pulumi.IntOutput {
return o.ApplyT(func(v GetListAttachedUserPolicyResult) int { return v.AttachType }).(pulumi.IntOutput)
}
// The provider-assigned unique ID for this managed resource.
func (o GetListAttachedUserPolicyResultOutput) Id() pulumi.StringOutput {
return o.ApplyT(func(v GetListAttachedUserPolicyResult) string { return v.Id }).(pulumi.StringOutput)
}
func (o GetListAttachedUserPolicyResultOutput) Keyword() pulumi.StringPtrOutput {
return o.ApplyT(func(v GetListAttachedUserPolicyResult) *string { return v.Keyword }).(pulumi.StringPtrOutput)
}
func (o GetListAttachedUserPolicyResultOutput) PolicyLists() GetListAttachedUserPolicyPolicyListArrayOutput {
return o.ApplyT(func(v GetListAttachedUserPolicyResult) []GetListAttachedUserPolicyPolicyList { return v.PolicyLists }).(GetListAttachedUserPolicyPolicyListArrayOutput)
}
func (o GetListAttachedUserPolicyResultOutput) ResultOutputFile() pulumi.StringPtrOutput {
return o.ApplyT(func(v GetListAttachedUserPolicyResult) *string { return v.ResultOutputFile }).(pulumi.StringPtrOutput)
}
func (o GetListAttachedUserPolicyResultOutput) StrategyType() pulumi.IntPtrOutput {
return o.ApplyT(func(v GetListAttachedUserPolicyResult) *int { return v.StrategyType }).(pulumi.IntPtrOutput)
}
func (o GetListAttachedUserPolicyResultOutput) TargetUin() pulumi.IntOutput {
return o.ApplyT(func(v GetListAttachedUserPolicyResult) int { return v.TargetUin }).(pulumi.IntOutput)
}
func init() {
pulumi.RegisterOutputType(GetListAttachedUserPolicyResultOutput{})
}