/
getImagePipeline.go
229 lines (197 loc) · 8.89 KB
/
getImagePipeline.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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
// 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 imagebuilder
import (
"context"
"reflect"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
// Provides details about an Image Builder Image Pipeline.
//
// ## Example Usage
//
// ```go
// package main
//
// import (
//
// "github.com/pulumi/pulumi-aws/sdk/v5/go/aws/imagebuilder"
// "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
//
// )
//
// func main() {
// pulumi.Run(func(ctx *pulumi.Context) error {
// _, err := imagebuilder.LookupImagePipeline(ctx, &imagebuilder.LookupImagePipelineArgs{
// Arn: "arn:aws:imagebuilder:us-west-2:aws:image-pipeline/example",
// }, nil)
// if err != nil {
// return err
// }
// return nil
// })
// }
//
// ```
func LookupImagePipeline(ctx *pulumi.Context, args *LookupImagePipelineArgs, opts ...pulumi.InvokeOption) (*LookupImagePipelineResult, error) {
var rv LookupImagePipelineResult
err := ctx.Invoke("aws:imagebuilder/getImagePipeline:getImagePipeline", args, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
// A collection of arguments for invoking getImagePipeline.
type LookupImagePipelineArgs struct {
// ARN of the image pipeline.
Arn string `pulumi:"arn"`
// Key-value map of resource tags for the image pipeline.
Tags map[string]string `pulumi:"tags"`
}
// A collection of values returned by getImagePipeline.
type LookupImagePipelineResult struct {
Arn string `pulumi:"arn"`
// ARN of the container recipe.
ContainerRecipeArn string `pulumi:"containerRecipeArn"`
// Date the image pipeline was created.
DateCreated string `pulumi:"dateCreated"`
// Date the image pipeline was last run.
DateLastRun string `pulumi:"dateLastRun"`
// Date the image pipeline will run next.
DateNextRun string `pulumi:"dateNextRun"`
// Date the image pipeline was updated.
DateUpdated string `pulumi:"dateUpdated"`
// Description of the image pipeline.
Description string `pulumi:"description"`
// ARN of the Image Builder Distribution Configuration.
DistributionConfigurationArn string `pulumi:"distributionConfigurationArn"`
// Whether additional information about the image being created is collected.
EnhancedImageMetadataEnabled bool `pulumi:"enhancedImageMetadataEnabled"`
// The provider-assigned unique ID for this managed resource.
Id string `pulumi:"id"`
// ARN of the image recipe.
ImageRecipeArn string `pulumi:"imageRecipeArn"`
// List of an object with image tests configuration.
ImageTestsConfigurations []GetImagePipelineImageTestsConfiguration `pulumi:"imageTestsConfigurations"`
// ARN of the Image Builder Infrastructure Configuration.
InfrastructureConfigurationArn string `pulumi:"infrastructureConfigurationArn"`
// Name of the image pipeline.
Name string `pulumi:"name"`
// Platform of the image pipeline.
Platform string `pulumi:"platform"`
// List of an object with schedule settings.
Schedules []GetImagePipelineSchedule `pulumi:"schedules"`
// Status of the image pipeline.
Status string `pulumi:"status"`
// Key-value map of resource tags for the image pipeline.
Tags map[string]string `pulumi:"tags"`
}
func LookupImagePipelineOutput(ctx *pulumi.Context, args LookupImagePipelineOutputArgs, opts ...pulumi.InvokeOption) LookupImagePipelineResultOutput {
return pulumi.ToOutputWithContext(context.Background(), args).
ApplyT(func(v interface{}) (LookupImagePipelineResult, error) {
args := v.(LookupImagePipelineArgs)
r, err := LookupImagePipeline(ctx, &args, opts...)
var s LookupImagePipelineResult
if r != nil {
s = *r
}
return s, err
}).(LookupImagePipelineResultOutput)
}
// A collection of arguments for invoking getImagePipeline.
type LookupImagePipelineOutputArgs struct {
// ARN of the image pipeline.
Arn pulumi.StringInput `pulumi:"arn"`
// Key-value map of resource tags for the image pipeline.
Tags pulumi.StringMapInput `pulumi:"tags"`
}
func (LookupImagePipelineOutputArgs) ElementType() reflect.Type {
return reflect.TypeOf((*LookupImagePipelineArgs)(nil)).Elem()
}
// A collection of values returned by getImagePipeline.
type LookupImagePipelineResultOutput struct{ *pulumi.OutputState }
func (LookupImagePipelineResultOutput) ElementType() reflect.Type {
return reflect.TypeOf((*LookupImagePipelineResult)(nil)).Elem()
}
func (o LookupImagePipelineResultOutput) ToLookupImagePipelineResultOutput() LookupImagePipelineResultOutput {
return o
}
func (o LookupImagePipelineResultOutput) ToLookupImagePipelineResultOutputWithContext(ctx context.Context) LookupImagePipelineResultOutput {
return o
}
func (o LookupImagePipelineResultOutput) Arn() pulumi.StringOutput {
return o.ApplyT(func(v LookupImagePipelineResult) string { return v.Arn }).(pulumi.StringOutput)
}
// ARN of the container recipe.
func (o LookupImagePipelineResultOutput) ContainerRecipeArn() pulumi.StringOutput {
return o.ApplyT(func(v LookupImagePipelineResult) string { return v.ContainerRecipeArn }).(pulumi.StringOutput)
}
// Date the image pipeline was created.
func (o LookupImagePipelineResultOutput) DateCreated() pulumi.StringOutput {
return o.ApplyT(func(v LookupImagePipelineResult) string { return v.DateCreated }).(pulumi.StringOutput)
}
// Date the image pipeline was last run.
func (o LookupImagePipelineResultOutput) DateLastRun() pulumi.StringOutput {
return o.ApplyT(func(v LookupImagePipelineResult) string { return v.DateLastRun }).(pulumi.StringOutput)
}
// Date the image pipeline will run next.
func (o LookupImagePipelineResultOutput) DateNextRun() pulumi.StringOutput {
return o.ApplyT(func(v LookupImagePipelineResult) string { return v.DateNextRun }).(pulumi.StringOutput)
}
// Date the image pipeline was updated.
func (o LookupImagePipelineResultOutput) DateUpdated() pulumi.StringOutput {
return o.ApplyT(func(v LookupImagePipelineResult) string { return v.DateUpdated }).(pulumi.StringOutput)
}
// Description of the image pipeline.
func (o LookupImagePipelineResultOutput) Description() pulumi.StringOutput {
return o.ApplyT(func(v LookupImagePipelineResult) string { return v.Description }).(pulumi.StringOutput)
}
// ARN of the Image Builder Distribution Configuration.
func (o LookupImagePipelineResultOutput) DistributionConfigurationArn() pulumi.StringOutput {
return o.ApplyT(func(v LookupImagePipelineResult) string { return v.DistributionConfigurationArn }).(pulumi.StringOutput)
}
// Whether additional information about the image being created is collected.
func (o LookupImagePipelineResultOutput) EnhancedImageMetadataEnabled() pulumi.BoolOutput {
return o.ApplyT(func(v LookupImagePipelineResult) bool { return v.EnhancedImageMetadataEnabled }).(pulumi.BoolOutput)
}
// The provider-assigned unique ID for this managed resource.
func (o LookupImagePipelineResultOutput) Id() pulumi.StringOutput {
return o.ApplyT(func(v LookupImagePipelineResult) string { return v.Id }).(pulumi.StringOutput)
}
// ARN of the image recipe.
func (o LookupImagePipelineResultOutput) ImageRecipeArn() pulumi.StringOutput {
return o.ApplyT(func(v LookupImagePipelineResult) string { return v.ImageRecipeArn }).(pulumi.StringOutput)
}
// List of an object with image tests configuration.
func (o LookupImagePipelineResultOutput) ImageTestsConfigurations() GetImagePipelineImageTestsConfigurationArrayOutput {
return o.ApplyT(func(v LookupImagePipelineResult) []GetImagePipelineImageTestsConfiguration {
return v.ImageTestsConfigurations
}).(GetImagePipelineImageTestsConfigurationArrayOutput)
}
// ARN of the Image Builder Infrastructure Configuration.
func (o LookupImagePipelineResultOutput) InfrastructureConfigurationArn() pulumi.StringOutput {
return o.ApplyT(func(v LookupImagePipelineResult) string { return v.InfrastructureConfigurationArn }).(pulumi.StringOutput)
}
// Name of the image pipeline.
func (o LookupImagePipelineResultOutput) Name() pulumi.StringOutput {
return o.ApplyT(func(v LookupImagePipelineResult) string { return v.Name }).(pulumi.StringOutput)
}
// Platform of the image pipeline.
func (o LookupImagePipelineResultOutput) Platform() pulumi.StringOutput {
return o.ApplyT(func(v LookupImagePipelineResult) string { return v.Platform }).(pulumi.StringOutput)
}
// List of an object with schedule settings.
func (o LookupImagePipelineResultOutput) Schedules() GetImagePipelineScheduleArrayOutput {
return o.ApplyT(func(v LookupImagePipelineResult) []GetImagePipelineSchedule { return v.Schedules }).(GetImagePipelineScheduleArrayOutput)
}
// Status of the image pipeline.
func (o LookupImagePipelineResultOutput) Status() pulumi.StringOutput {
return o.ApplyT(func(v LookupImagePipelineResult) string { return v.Status }).(pulumi.StringOutput)
}
// Key-value map of resource tags for the image pipeline.
func (o LookupImagePipelineResultOutput) Tags() pulumi.StringMapOutput {
return o.ApplyT(func(v LookupImagePipelineResult) map[string]string { return v.Tags }).(pulumi.StringMapOutput)
}
func init() {
pulumi.RegisterOutputType(LookupImagePipelineResultOutput{})
}