/
getBuild.go
92 lines (75 loc) · 4.05 KB
/
getBuild.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
// 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 gamelift
import (
"context"
"reflect"
"github.com/pulumi/pulumi-aws-native/sdk/go/aws/internal"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
// Resource Type definition for AWS::GameLift::Build
func LookupBuild(ctx *pulumi.Context, args *LookupBuildArgs, opts ...pulumi.InvokeOption) (*LookupBuildResult, error) {
opts = internal.PkgInvokeDefaultOpts(opts)
var rv LookupBuildResult
err := ctx.Invoke("aws-native:gamelift:getBuild", args, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
type LookupBuildArgs struct {
// A unique identifier for a build to be deployed on the new fleet. If you are deploying the fleet with a custom game build, you must specify this property. The build must have been successfully uploaded to Amazon GameLift and be in a READY status. This fleet setting cannot be changed once the fleet is created.
BuildId string `pulumi:"buildId"`
}
type LookupBuildResult struct {
// A unique identifier for a build to be deployed on the new fleet. If you are deploying the fleet with a custom game build, you must specify this property. The build must have been successfully uploaded to Amazon GameLift and be in a READY status. This fleet setting cannot be changed once the fleet is created.
BuildId *string `pulumi:"buildId"`
// A descriptive label that is associated with a build. Build names do not need to be unique.
Name *string `pulumi:"name"`
// Version information that is associated with this build. Version strings do not need to be unique.
Version *string `pulumi:"version"`
}
func LookupBuildOutput(ctx *pulumi.Context, args LookupBuildOutputArgs, opts ...pulumi.InvokeOption) LookupBuildResultOutput {
return pulumi.ToOutputWithContext(context.Background(), args).
ApplyT(func(v interface{}) (LookupBuildResult, error) {
args := v.(LookupBuildArgs)
r, err := LookupBuild(ctx, &args, opts...)
var s LookupBuildResult
if r != nil {
s = *r
}
return s, err
}).(LookupBuildResultOutput)
}
type LookupBuildOutputArgs struct {
// A unique identifier for a build to be deployed on the new fleet. If you are deploying the fleet with a custom game build, you must specify this property. The build must have been successfully uploaded to Amazon GameLift and be in a READY status. This fleet setting cannot be changed once the fleet is created.
BuildId pulumi.StringInput `pulumi:"buildId"`
}
func (LookupBuildOutputArgs) ElementType() reflect.Type {
return reflect.TypeOf((*LookupBuildArgs)(nil)).Elem()
}
type LookupBuildResultOutput struct{ *pulumi.OutputState }
func (LookupBuildResultOutput) ElementType() reflect.Type {
return reflect.TypeOf((*LookupBuildResult)(nil)).Elem()
}
func (o LookupBuildResultOutput) ToLookupBuildResultOutput() LookupBuildResultOutput {
return o
}
func (o LookupBuildResultOutput) ToLookupBuildResultOutputWithContext(ctx context.Context) LookupBuildResultOutput {
return o
}
// A unique identifier for a build to be deployed on the new fleet. If you are deploying the fleet with a custom game build, you must specify this property. The build must have been successfully uploaded to Amazon GameLift and be in a READY status. This fleet setting cannot be changed once the fleet is created.
func (o LookupBuildResultOutput) BuildId() pulumi.StringPtrOutput {
return o.ApplyT(func(v LookupBuildResult) *string { return v.BuildId }).(pulumi.StringPtrOutput)
}
// A descriptive label that is associated with a build. Build names do not need to be unique.
func (o LookupBuildResultOutput) Name() pulumi.StringPtrOutput {
return o.ApplyT(func(v LookupBuildResult) *string { return v.Name }).(pulumi.StringPtrOutput)
}
// Version information that is associated with this build. Version strings do not need to be unique.
func (o LookupBuildResultOutput) Version() pulumi.StringPtrOutput {
return o.ApplyT(func(v LookupBuildResult) *string { return v.Version }).(pulumi.StringPtrOutput)
}
func init() {
pulumi.RegisterOutputType(LookupBuildResultOutput{})
}