/
getBridgeSource.go
85 lines (69 loc) · 2.91 KB
/
getBridgeSource.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
// 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 mediaconnect
import (
"context"
"reflect"
"github.com/pulumi/pulumi-aws-native/sdk/go/aws/internal"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
// Resource schema for AWS::MediaConnect::BridgeSource
func LookupBridgeSource(ctx *pulumi.Context, args *LookupBridgeSourceArgs, opts ...pulumi.InvokeOption) (*LookupBridgeSourceResult, error) {
opts = internal.PkgInvokeDefaultOpts(opts)
var rv LookupBridgeSourceResult
err := ctx.Invoke("aws-native:mediaconnect:getBridgeSource", args, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
type LookupBridgeSourceArgs struct {
// The Amazon Resource Number (ARN) of the bridge.
BridgeArn string `pulumi:"bridgeArn"`
// The name of the source.
Name string `pulumi:"name"`
}
type LookupBridgeSourceResult struct {
FlowSource *BridgeSourceBridgeFlowSource `pulumi:"flowSource"`
NetworkSource *BridgeSourceBridgeNetworkSource `pulumi:"networkSource"`
}
func LookupBridgeSourceOutput(ctx *pulumi.Context, args LookupBridgeSourceOutputArgs, opts ...pulumi.InvokeOption) LookupBridgeSourceResultOutput {
return pulumi.ToOutputWithContext(context.Background(), args).
ApplyT(func(v interface{}) (LookupBridgeSourceResult, error) {
args := v.(LookupBridgeSourceArgs)
r, err := LookupBridgeSource(ctx, &args, opts...)
var s LookupBridgeSourceResult
if r != nil {
s = *r
}
return s, err
}).(LookupBridgeSourceResultOutput)
}
type LookupBridgeSourceOutputArgs struct {
// The Amazon Resource Number (ARN) of the bridge.
BridgeArn pulumi.StringInput `pulumi:"bridgeArn"`
// The name of the source.
Name pulumi.StringInput `pulumi:"name"`
}
func (LookupBridgeSourceOutputArgs) ElementType() reflect.Type {
return reflect.TypeOf((*LookupBridgeSourceArgs)(nil)).Elem()
}
type LookupBridgeSourceResultOutput struct{ *pulumi.OutputState }
func (LookupBridgeSourceResultOutput) ElementType() reflect.Type {
return reflect.TypeOf((*LookupBridgeSourceResult)(nil)).Elem()
}
func (o LookupBridgeSourceResultOutput) ToLookupBridgeSourceResultOutput() LookupBridgeSourceResultOutput {
return o
}
func (o LookupBridgeSourceResultOutput) ToLookupBridgeSourceResultOutputWithContext(ctx context.Context) LookupBridgeSourceResultOutput {
return o
}
func (o LookupBridgeSourceResultOutput) FlowSource() BridgeSourceBridgeFlowSourcePtrOutput {
return o.ApplyT(func(v LookupBridgeSourceResult) *BridgeSourceBridgeFlowSource { return v.FlowSource }).(BridgeSourceBridgeFlowSourcePtrOutput)
}
func (o LookupBridgeSourceResultOutput) NetworkSource() BridgeSourceBridgeNetworkSourcePtrOutput {
return o.ApplyT(func(v LookupBridgeSourceResult) *BridgeSourceBridgeNetworkSource { return v.NetworkSource }).(BridgeSourceBridgeNetworkSourcePtrOutput)
}
func init() {
pulumi.RegisterOutputType(LookupBridgeSourceResultOutput{})
}