/
getIdentitySource.go
91 lines (73 loc) · 3.44 KB
/
getIdentitySource.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
// Code generated by pulumi-language-go DO NOT EDIT.
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
package verifiedpermissions
import (
"context"
"reflect"
"github.com/pulumi/pulumi-aws-native/sdk/go/aws/internal"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
// Definition of AWS::VerifiedPermissions::IdentitySource Resource Type
func LookupIdentitySource(ctx *pulumi.Context, args *LookupIdentitySourceArgs, opts ...pulumi.InvokeOption) (*LookupIdentitySourceResult, error) {
opts = internal.PkgInvokeDefaultOpts(opts)
var rv LookupIdentitySourceResult
err := ctx.Invoke("aws-native:verifiedpermissions:getIdentitySource", args, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
type LookupIdentitySourceArgs struct {
IdentitySourceId string `pulumi:"identitySourceId"`
PolicyStoreId string `pulumi:"policyStoreId"`
}
type LookupIdentitySourceResult struct {
Configuration *IdentitySourceConfiguration `pulumi:"configuration"`
Details *IdentitySourceDetails `pulumi:"details"`
IdentitySourceId *string `pulumi:"identitySourceId"`
PrincipalEntityType *string `pulumi:"principalEntityType"`
}
func LookupIdentitySourceOutput(ctx *pulumi.Context, args LookupIdentitySourceOutputArgs, opts ...pulumi.InvokeOption) LookupIdentitySourceResultOutput {
return pulumi.ToOutputWithContext(context.Background(), args).
ApplyT(func(v interface{}) (LookupIdentitySourceResult, error) {
args := v.(LookupIdentitySourceArgs)
r, err := LookupIdentitySource(ctx, &args, opts...)
var s LookupIdentitySourceResult
if r != nil {
s = *r
}
return s, err
}).(LookupIdentitySourceResultOutput)
}
type LookupIdentitySourceOutputArgs struct {
IdentitySourceId pulumi.StringInput `pulumi:"identitySourceId"`
PolicyStoreId pulumi.StringInput `pulumi:"policyStoreId"`
}
func (LookupIdentitySourceOutputArgs) ElementType() reflect.Type {
return reflect.TypeOf((*LookupIdentitySourceArgs)(nil)).Elem()
}
type LookupIdentitySourceResultOutput struct{ *pulumi.OutputState }
func (LookupIdentitySourceResultOutput) ElementType() reflect.Type {
return reflect.TypeOf((*LookupIdentitySourceResult)(nil)).Elem()
}
func (o LookupIdentitySourceResultOutput) ToLookupIdentitySourceResultOutput() LookupIdentitySourceResultOutput {
return o
}
func (o LookupIdentitySourceResultOutput) ToLookupIdentitySourceResultOutputWithContext(ctx context.Context) LookupIdentitySourceResultOutput {
return o
}
func (o LookupIdentitySourceResultOutput) Configuration() IdentitySourceConfigurationPtrOutput {
return o.ApplyT(func(v LookupIdentitySourceResult) *IdentitySourceConfiguration { return v.Configuration }).(IdentitySourceConfigurationPtrOutput)
}
func (o LookupIdentitySourceResultOutput) Details() IdentitySourceDetailsPtrOutput {
return o.ApplyT(func(v LookupIdentitySourceResult) *IdentitySourceDetails { return v.Details }).(IdentitySourceDetailsPtrOutput)
}
func (o LookupIdentitySourceResultOutput) IdentitySourceId() pulumi.StringPtrOutput {
return o.ApplyT(func(v LookupIdentitySourceResult) *string { return v.IdentitySourceId }).(pulumi.StringPtrOutput)
}
func (o LookupIdentitySourceResultOutput) PrincipalEntityType() pulumi.StringPtrOutput {
return o.ApplyT(func(v LookupIdentitySourceResult) *string { return v.PrincipalEntityType }).(pulumi.StringPtrOutput)
}
func init() {
pulumi.RegisterOutputType(LookupIdentitySourceResultOutput{})
}