-
Notifications
You must be signed in to change notification settings - Fork 17
/
getMigrationProject.go
155 lines (130 loc) · 7.4 KB
/
getMigrationProject.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
// 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 dms
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 schema for AWS::DMS::MigrationProject
func LookupMigrationProject(ctx *pulumi.Context, args *LookupMigrationProjectArgs, opts ...pulumi.InvokeOption) (*LookupMigrationProjectResult, error) {
opts = internal.PkgInvokeDefaultOpts(opts)
var rv LookupMigrationProjectResult
err := ctx.Invoke("aws-native:dms:getMigrationProject", args, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
type LookupMigrationProjectArgs struct {
// The property describes an ARN of the migration project.
MigrationProjectArn string `pulumi:"migrationProjectArn"`
}
type LookupMigrationProjectResult struct {
// The optional description of the migration project.
Description *string `pulumi:"description"`
// The property describes an instance profile arn for the migration project. For read
InstanceProfileArn *string `pulumi:"instanceProfileArn"`
// The property describes an instance profile name for the migration project. For read
InstanceProfileName *string `pulumi:"instanceProfileName"`
// The property describes an ARN of the migration project.
MigrationProjectArn *string `pulumi:"migrationProjectArn"`
// The property describes a creating time of the migration project.
MigrationProjectCreationTime *string `pulumi:"migrationProjectCreationTime"`
// The property describes a name to identify the migration project.
MigrationProjectName *string `pulumi:"migrationProjectName"`
// The property describes schema conversion application attributes for the migration project.
SchemaConversionApplicationAttributes *SchemaConversionApplicationAttributesProperties `pulumi:"schemaConversionApplicationAttributes"`
// The property describes source data provider descriptors for the migration project.
SourceDataProviderDescriptors []MigrationProjectDataProviderDescriptor `pulumi:"sourceDataProviderDescriptors"`
// An array of key-value pairs to apply to this resource.
Tags []aws.Tag `pulumi:"tags"`
// The property describes target data provider descriptors for the migration project.
TargetDataProviderDescriptors []MigrationProjectDataProviderDescriptor `pulumi:"targetDataProviderDescriptors"`
// The property describes transformation rules for the migration project.
TransformationRules *string `pulumi:"transformationRules"`
}
func LookupMigrationProjectOutput(ctx *pulumi.Context, args LookupMigrationProjectOutputArgs, opts ...pulumi.InvokeOption) LookupMigrationProjectResultOutput {
return pulumi.ToOutputWithContext(context.Background(), args).
ApplyT(func(v interface{}) (LookupMigrationProjectResult, error) {
args := v.(LookupMigrationProjectArgs)
r, err := LookupMigrationProject(ctx, &args, opts...)
var s LookupMigrationProjectResult
if r != nil {
s = *r
}
return s, err
}).(LookupMigrationProjectResultOutput)
}
type LookupMigrationProjectOutputArgs struct {
// The property describes an ARN of the migration project.
MigrationProjectArn pulumi.StringInput `pulumi:"migrationProjectArn"`
}
func (LookupMigrationProjectOutputArgs) ElementType() reflect.Type {
return reflect.TypeOf((*LookupMigrationProjectArgs)(nil)).Elem()
}
type LookupMigrationProjectResultOutput struct{ *pulumi.OutputState }
func (LookupMigrationProjectResultOutput) ElementType() reflect.Type {
return reflect.TypeOf((*LookupMigrationProjectResult)(nil)).Elem()
}
func (o LookupMigrationProjectResultOutput) ToLookupMigrationProjectResultOutput() LookupMigrationProjectResultOutput {
return o
}
func (o LookupMigrationProjectResultOutput) ToLookupMigrationProjectResultOutputWithContext(ctx context.Context) LookupMigrationProjectResultOutput {
return o
}
// The optional description of the migration project.
func (o LookupMigrationProjectResultOutput) Description() pulumi.StringPtrOutput {
return o.ApplyT(func(v LookupMigrationProjectResult) *string { return v.Description }).(pulumi.StringPtrOutput)
}
// The property describes an instance profile arn for the migration project. For read
func (o LookupMigrationProjectResultOutput) InstanceProfileArn() pulumi.StringPtrOutput {
return o.ApplyT(func(v LookupMigrationProjectResult) *string { return v.InstanceProfileArn }).(pulumi.StringPtrOutput)
}
// The property describes an instance profile name for the migration project. For read
func (o LookupMigrationProjectResultOutput) InstanceProfileName() pulumi.StringPtrOutput {
return o.ApplyT(func(v LookupMigrationProjectResult) *string { return v.InstanceProfileName }).(pulumi.StringPtrOutput)
}
// The property describes an ARN of the migration project.
func (o LookupMigrationProjectResultOutput) MigrationProjectArn() pulumi.StringPtrOutput {
return o.ApplyT(func(v LookupMigrationProjectResult) *string { return v.MigrationProjectArn }).(pulumi.StringPtrOutput)
}
// The property describes a creating time of the migration project.
func (o LookupMigrationProjectResultOutput) MigrationProjectCreationTime() pulumi.StringPtrOutput {
return o.ApplyT(func(v LookupMigrationProjectResult) *string { return v.MigrationProjectCreationTime }).(pulumi.StringPtrOutput)
}
// The property describes a name to identify the migration project.
func (o LookupMigrationProjectResultOutput) MigrationProjectName() pulumi.StringPtrOutput {
return o.ApplyT(func(v LookupMigrationProjectResult) *string { return v.MigrationProjectName }).(pulumi.StringPtrOutput)
}
// The property describes schema conversion application attributes for the migration project.
func (o LookupMigrationProjectResultOutput) SchemaConversionApplicationAttributes() SchemaConversionApplicationAttributesPropertiesPtrOutput {
return o.ApplyT(func(v LookupMigrationProjectResult) *SchemaConversionApplicationAttributesProperties {
return v.SchemaConversionApplicationAttributes
}).(SchemaConversionApplicationAttributesPropertiesPtrOutput)
}
// The property describes source data provider descriptors for the migration project.
func (o LookupMigrationProjectResultOutput) SourceDataProviderDescriptors() MigrationProjectDataProviderDescriptorArrayOutput {
return o.ApplyT(func(v LookupMigrationProjectResult) []MigrationProjectDataProviderDescriptor {
return v.SourceDataProviderDescriptors
}).(MigrationProjectDataProviderDescriptorArrayOutput)
}
// An array of key-value pairs to apply to this resource.
func (o LookupMigrationProjectResultOutput) Tags() aws.TagArrayOutput {
return o.ApplyT(func(v LookupMigrationProjectResult) []aws.Tag { return v.Tags }).(aws.TagArrayOutput)
}
// The property describes target data provider descriptors for the migration project.
func (o LookupMigrationProjectResultOutput) TargetDataProviderDescriptors() MigrationProjectDataProviderDescriptorArrayOutput {
return o.ApplyT(func(v LookupMigrationProjectResult) []MigrationProjectDataProviderDescriptor {
return v.TargetDataProviderDescriptors
}).(MigrationProjectDataProviderDescriptorArrayOutput)
}
// The property describes transformation rules for the migration project.
func (o LookupMigrationProjectResultOutput) TransformationRules() pulumi.StringPtrOutput {
return o.ApplyT(func(v LookupMigrationProjectResult) *string { return v.TransformationRules }).(pulumi.StringPtrOutput)
}
func init() {
pulumi.RegisterOutputType(LookupMigrationProjectResultOutput{})
}