-
Notifications
You must be signed in to change notification settings - Fork 17
/
getPipeline.go
108 lines (88 loc) · 3.79 KB
/
getPipeline.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
// 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 sagemaker
import (
"context"
"reflect"
"github.com/pulumi/pulumi-aws-native/sdk/go/aws"
"github.com/pulumi/pulumi-aws-native/sdk/go/aws/internal"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
// Resource Type definition for AWS::SageMaker::Pipeline
func LookupPipeline(ctx *pulumi.Context, args *LookupPipelineArgs, opts ...pulumi.InvokeOption) (*LookupPipelineResult, error) {
opts = internal.PkgInvokeDefaultOpts(opts)
var rv LookupPipelineResult
err := ctx.Invoke("aws-native:sagemaker:getPipeline", args, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
type LookupPipelineArgs struct {
// The name of the Pipeline.
PipelineName string `pulumi:"pipelineName"`
}
type LookupPipelineResult struct {
ParallelismConfiguration *ParallelismConfigurationProperties `pulumi:"parallelismConfiguration"`
PipelineDefinition interface{} `pulumi:"pipelineDefinition"`
// The description of the Pipeline.
PipelineDescription *string `pulumi:"pipelineDescription"`
// The display name of the Pipeline.
PipelineDisplayName *string `pulumi:"pipelineDisplayName"`
// Role Arn
RoleArn *string `pulumi:"roleArn"`
Tags []aws.Tag `pulumi:"tags"`
}
func LookupPipelineOutput(ctx *pulumi.Context, args LookupPipelineOutputArgs, opts ...pulumi.InvokeOption) LookupPipelineResultOutput {
return pulumi.ToOutputWithContext(context.Background(), args).
ApplyT(func(v interface{}) (LookupPipelineResult, error) {
args := v.(LookupPipelineArgs)
r, err := LookupPipeline(ctx, &args, opts...)
var s LookupPipelineResult
if r != nil {
s = *r
}
return s, err
}).(LookupPipelineResultOutput)
}
type LookupPipelineOutputArgs struct {
// The name of the Pipeline.
PipelineName pulumi.StringInput `pulumi:"pipelineName"`
}
func (LookupPipelineOutputArgs) ElementType() reflect.Type {
return reflect.TypeOf((*LookupPipelineArgs)(nil)).Elem()
}
type LookupPipelineResultOutput struct{ *pulumi.OutputState }
func (LookupPipelineResultOutput) ElementType() reflect.Type {
return reflect.TypeOf((*LookupPipelineResult)(nil)).Elem()
}
func (o LookupPipelineResultOutput) ToLookupPipelineResultOutput() LookupPipelineResultOutput {
return o
}
func (o LookupPipelineResultOutput) ToLookupPipelineResultOutputWithContext(ctx context.Context) LookupPipelineResultOutput {
return o
}
func (o LookupPipelineResultOutput) ParallelismConfiguration() ParallelismConfigurationPropertiesPtrOutput {
return o.ApplyT(func(v LookupPipelineResult) *ParallelismConfigurationProperties { return v.ParallelismConfiguration }).(ParallelismConfigurationPropertiesPtrOutput)
}
func (o LookupPipelineResultOutput) PipelineDefinition() pulumi.AnyOutput {
return o.ApplyT(func(v LookupPipelineResult) interface{} { return v.PipelineDefinition }).(pulumi.AnyOutput)
}
// The description of the Pipeline.
func (o LookupPipelineResultOutput) PipelineDescription() pulumi.StringPtrOutput {
return o.ApplyT(func(v LookupPipelineResult) *string { return v.PipelineDescription }).(pulumi.StringPtrOutput)
}
// The display name of the Pipeline.
func (o LookupPipelineResultOutput) PipelineDisplayName() pulumi.StringPtrOutput {
return o.ApplyT(func(v LookupPipelineResult) *string { return v.PipelineDisplayName }).(pulumi.StringPtrOutput)
}
// Role Arn
func (o LookupPipelineResultOutput) RoleArn() pulumi.StringPtrOutput {
return o.ApplyT(func(v LookupPipelineResult) *string { return v.RoleArn }).(pulumi.StringPtrOutput)
}
func (o LookupPipelineResultOutput) Tags() aws.TagArrayOutput {
return o.ApplyT(func(v LookupPipelineResult) []aws.Tag { return v.Tags }).(aws.TagArrayOutput)
}
func init() {
pulumi.RegisterOutputType(LookupPipelineResultOutput{})
}