/
getQueueEnvironment.go
98 lines (79 loc) · 3.85 KB
/
getQueueEnvironment.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
// 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 deadline
import (
"context"
"reflect"
"github.com/pulumi/pulumi-aws-native/sdk/go/aws/internal"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
// Definition of AWS::Deadline::QueueEnvironment Resource Type
func LookupQueueEnvironment(ctx *pulumi.Context, args *LookupQueueEnvironmentArgs, opts ...pulumi.InvokeOption) (*LookupQueueEnvironmentResult, error) {
opts = internal.PkgInvokeDefaultOpts(opts)
var rv LookupQueueEnvironmentResult
err := ctx.Invoke("aws-native:deadline:getQueueEnvironment", args, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
type LookupQueueEnvironmentArgs struct {
FarmId string `pulumi:"farmId"`
QueueEnvironmentId string `pulumi:"queueEnvironmentId"`
QueueId string `pulumi:"queueId"`
}
type LookupQueueEnvironmentResult struct {
Name *string `pulumi:"name"`
Priority *int `pulumi:"priority"`
QueueEnvironmentId *string `pulumi:"queueEnvironmentId"`
Template *string `pulumi:"template"`
TemplateType *QueueEnvironmentEnvironmentTemplateType `pulumi:"templateType"`
}
func LookupQueueEnvironmentOutput(ctx *pulumi.Context, args LookupQueueEnvironmentOutputArgs, opts ...pulumi.InvokeOption) LookupQueueEnvironmentResultOutput {
return pulumi.ToOutputWithContext(context.Background(), args).
ApplyT(func(v interface{}) (LookupQueueEnvironmentResult, error) {
args := v.(LookupQueueEnvironmentArgs)
r, err := LookupQueueEnvironment(ctx, &args, opts...)
var s LookupQueueEnvironmentResult
if r != nil {
s = *r
}
return s, err
}).(LookupQueueEnvironmentResultOutput)
}
type LookupQueueEnvironmentOutputArgs struct {
FarmId pulumi.StringInput `pulumi:"farmId"`
QueueEnvironmentId pulumi.StringInput `pulumi:"queueEnvironmentId"`
QueueId pulumi.StringInput `pulumi:"queueId"`
}
func (LookupQueueEnvironmentOutputArgs) ElementType() reflect.Type {
return reflect.TypeOf((*LookupQueueEnvironmentArgs)(nil)).Elem()
}
type LookupQueueEnvironmentResultOutput struct{ *pulumi.OutputState }
func (LookupQueueEnvironmentResultOutput) ElementType() reflect.Type {
return reflect.TypeOf((*LookupQueueEnvironmentResult)(nil)).Elem()
}
func (o LookupQueueEnvironmentResultOutput) ToLookupQueueEnvironmentResultOutput() LookupQueueEnvironmentResultOutput {
return o
}
func (o LookupQueueEnvironmentResultOutput) ToLookupQueueEnvironmentResultOutputWithContext(ctx context.Context) LookupQueueEnvironmentResultOutput {
return o
}
func (o LookupQueueEnvironmentResultOutput) Name() pulumi.StringPtrOutput {
return o.ApplyT(func(v LookupQueueEnvironmentResult) *string { return v.Name }).(pulumi.StringPtrOutput)
}
func (o LookupQueueEnvironmentResultOutput) Priority() pulumi.IntPtrOutput {
return o.ApplyT(func(v LookupQueueEnvironmentResult) *int { return v.Priority }).(pulumi.IntPtrOutput)
}
func (o LookupQueueEnvironmentResultOutput) QueueEnvironmentId() pulumi.StringPtrOutput {
return o.ApplyT(func(v LookupQueueEnvironmentResult) *string { return v.QueueEnvironmentId }).(pulumi.StringPtrOutput)
}
func (o LookupQueueEnvironmentResultOutput) Template() pulumi.StringPtrOutput {
return o.ApplyT(func(v LookupQueueEnvironmentResult) *string { return v.Template }).(pulumi.StringPtrOutput)
}
func (o LookupQueueEnvironmentResultOutput) TemplateType() QueueEnvironmentEnvironmentTemplateTypePtrOutput {
return o.ApplyT(func(v LookupQueueEnvironmentResult) *QueueEnvironmentEnvironmentTemplateType { return v.TemplateType }).(QueueEnvironmentEnvironmentTemplateTypePtrOutput)
}
func init() {
pulumi.RegisterOutputType(LookupQueueEnvironmentResultOutput{})
}