/
getAgreement.go
139 lines (116 loc) · 5.29 KB
/
getAgreement.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
// 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 transfer
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::Transfer::Agreement
func LookupAgreement(ctx *pulumi.Context, args *LookupAgreementArgs, opts ...pulumi.InvokeOption) (*LookupAgreementResult, error) {
opts = internal.PkgInvokeDefaultOpts(opts)
var rv LookupAgreementResult
err := ctx.Invoke("aws-native:transfer:getAgreement", args, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
type LookupAgreementArgs struct {
// A unique identifier for the agreement.
AgreementId string `pulumi:"agreementId"`
// A unique identifier for the server.
ServerId string `pulumi:"serverId"`
}
type LookupAgreementResult struct {
// Specifies the access role for the agreement.
AccessRole *string `pulumi:"accessRole"`
// A unique identifier for the agreement.
AgreementId *string `pulumi:"agreementId"`
// Specifies the unique Amazon Resource Name (ARN) for the agreement.
Arn *string `pulumi:"arn"`
// Specifies the base directory for the agreement.
BaseDirectory *string `pulumi:"baseDirectory"`
// A textual description for the agreement.
Description *string `pulumi:"description"`
// A unique identifier for the local profile.
LocalProfileId *string `pulumi:"localProfileId"`
// A unique identifier for the partner profile.
PartnerProfileId *string `pulumi:"partnerProfileId"`
// Specifies the status of the agreement.
Status *AgreementStatus `pulumi:"status"`
// Key-value pairs that can be used to group and search for agreements. Tags are metadata attached to agreements for any purpose.
Tags []aws.Tag `pulumi:"tags"`
}
func LookupAgreementOutput(ctx *pulumi.Context, args LookupAgreementOutputArgs, opts ...pulumi.InvokeOption) LookupAgreementResultOutput {
return pulumi.ToOutputWithContext(context.Background(), args).
ApplyT(func(v interface{}) (LookupAgreementResult, error) {
args := v.(LookupAgreementArgs)
r, err := LookupAgreement(ctx, &args, opts...)
var s LookupAgreementResult
if r != nil {
s = *r
}
return s, err
}).(LookupAgreementResultOutput)
}
type LookupAgreementOutputArgs struct {
// A unique identifier for the agreement.
AgreementId pulumi.StringInput `pulumi:"agreementId"`
// A unique identifier for the server.
ServerId pulumi.StringInput `pulumi:"serverId"`
}
func (LookupAgreementOutputArgs) ElementType() reflect.Type {
return reflect.TypeOf((*LookupAgreementArgs)(nil)).Elem()
}
type LookupAgreementResultOutput struct{ *pulumi.OutputState }
func (LookupAgreementResultOutput) ElementType() reflect.Type {
return reflect.TypeOf((*LookupAgreementResult)(nil)).Elem()
}
func (o LookupAgreementResultOutput) ToLookupAgreementResultOutput() LookupAgreementResultOutput {
return o
}
func (o LookupAgreementResultOutput) ToLookupAgreementResultOutputWithContext(ctx context.Context) LookupAgreementResultOutput {
return o
}
// Specifies the access role for the agreement.
func (o LookupAgreementResultOutput) AccessRole() pulumi.StringPtrOutput {
return o.ApplyT(func(v LookupAgreementResult) *string { return v.AccessRole }).(pulumi.StringPtrOutput)
}
// A unique identifier for the agreement.
func (o LookupAgreementResultOutput) AgreementId() pulumi.StringPtrOutput {
return o.ApplyT(func(v LookupAgreementResult) *string { return v.AgreementId }).(pulumi.StringPtrOutput)
}
// Specifies the unique Amazon Resource Name (ARN) for the agreement.
func (o LookupAgreementResultOutput) Arn() pulumi.StringPtrOutput {
return o.ApplyT(func(v LookupAgreementResult) *string { return v.Arn }).(pulumi.StringPtrOutput)
}
// Specifies the base directory for the agreement.
func (o LookupAgreementResultOutput) BaseDirectory() pulumi.StringPtrOutput {
return o.ApplyT(func(v LookupAgreementResult) *string { return v.BaseDirectory }).(pulumi.StringPtrOutput)
}
// A textual description for the agreement.
func (o LookupAgreementResultOutput) Description() pulumi.StringPtrOutput {
return o.ApplyT(func(v LookupAgreementResult) *string { return v.Description }).(pulumi.StringPtrOutput)
}
// A unique identifier for the local profile.
func (o LookupAgreementResultOutput) LocalProfileId() pulumi.StringPtrOutput {
return o.ApplyT(func(v LookupAgreementResult) *string { return v.LocalProfileId }).(pulumi.StringPtrOutput)
}
// A unique identifier for the partner profile.
func (o LookupAgreementResultOutput) PartnerProfileId() pulumi.StringPtrOutput {
return o.ApplyT(func(v LookupAgreementResult) *string { return v.PartnerProfileId }).(pulumi.StringPtrOutput)
}
// Specifies the status of the agreement.
func (o LookupAgreementResultOutput) Status() AgreementStatusPtrOutput {
return o.ApplyT(func(v LookupAgreementResult) *AgreementStatus { return v.Status }).(AgreementStatusPtrOutput)
}
// Key-value pairs that can be used to group and search for agreements. Tags are metadata attached to agreements for any purpose.
func (o LookupAgreementResultOutput) Tags() aws.TagArrayOutput {
return o.ApplyT(func(v LookupAgreementResult) []aws.Tag { return v.Tags }).(aws.TagArrayOutput)
}
func init() {
pulumi.RegisterOutputType(LookupAgreementResultOutput{})
}