This repository has been archived by the owner on Aug 15, 2022. It is now read-only.
generated from pulumi/pulumi-tf-provider-boilerplate
/
samlprovider.go
282 lines (230 loc) · 9.68 KB
/
samlprovider.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
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
// 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 cam
import (
"context"
"reflect"
"github.com/pkg/errors"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
type SAMLProvider struct {
pulumi.CustomResourceState
// The create time of the CAM SAML provider.
CreateTime pulumi.StringOutput `pulumi:"createTime"`
// The description of the CAM SAML provider.
Description pulumi.StringOutput `pulumi:"description"`
// The meta data document of the CAM SAML provider.
MetaData pulumi.StringOutput `pulumi:"metaData"`
// Name of CAM SAML provider.
Name pulumi.StringOutput `pulumi:"name"`
// The ARN of the CAM SAML provider.
ProviderArn pulumi.StringOutput `pulumi:"providerArn"`
// The last update time of the CAM SAML provider.
UpdateTime pulumi.StringOutput `pulumi:"updateTime"`
}
// NewSAMLProvider registers a new resource with the given unique name, arguments, and options.
func NewSAMLProvider(ctx *pulumi.Context,
name string, args *SAMLProviderArgs, opts ...pulumi.ResourceOption) (*SAMLProvider, error) {
if args == nil {
return nil, errors.New("missing one or more required arguments")
}
if args.Description == nil {
return nil, errors.New("invalid value for required argument 'Description'")
}
if args.MetaData == nil {
return nil, errors.New("invalid value for required argument 'MetaData'")
}
var resource SAMLProvider
err := ctx.RegisterResource("tctest:Cam/sAMLProvider:SAMLProvider", name, args, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// GetSAMLProvider gets an existing SAMLProvider resource's state with the given name, ID, and optional
// state properties that are used to uniquely qualify the lookup (nil if not required).
func GetSAMLProvider(ctx *pulumi.Context,
name string, id pulumi.IDInput, state *SAMLProviderState, opts ...pulumi.ResourceOption) (*SAMLProvider, error) {
var resource SAMLProvider
err := ctx.ReadResource("tctest:Cam/sAMLProvider:SAMLProvider", name, id, state, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// Input properties used for looking up and filtering SAMLProvider resources.
type samlproviderState struct {
// The create time of the CAM SAML provider.
CreateTime *string `pulumi:"createTime"`
// The description of the CAM SAML provider.
Description *string `pulumi:"description"`
// The meta data document of the CAM SAML provider.
MetaData *string `pulumi:"metaData"`
// Name of CAM SAML provider.
Name *string `pulumi:"name"`
// The ARN of the CAM SAML provider.
ProviderArn *string `pulumi:"providerArn"`
// The last update time of the CAM SAML provider.
UpdateTime *string `pulumi:"updateTime"`
}
type SAMLProviderState struct {
// The create time of the CAM SAML provider.
CreateTime pulumi.StringPtrInput
// The description of the CAM SAML provider.
Description pulumi.StringPtrInput
// The meta data document of the CAM SAML provider.
MetaData pulumi.StringPtrInput
// Name of CAM SAML provider.
Name pulumi.StringPtrInput
// The ARN of the CAM SAML provider.
ProviderArn pulumi.StringPtrInput
// The last update time of the CAM SAML provider.
UpdateTime pulumi.StringPtrInput
}
func (SAMLProviderState) ElementType() reflect.Type {
return reflect.TypeOf((*samlproviderState)(nil)).Elem()
}
type samlproviderArgs struct {
// The description of the CAM SAML provider.
Description string `pulumi:"description"`
// The meta data document of the CAM SAML provider.
MetaData string `pulumi:"metaData"`
// Name of CAM SAML provider.
Name *string `pulumi:"name"`
}
// The set of arguments for constructing a SAMLProvider resource.
type SAMLProviderArgs struct {
// The description of the CAM SAML provider.
Description pulumi.StringInput
// The meta data document of the CAM SAML provider.
MetaData pulumi.StringInput
// Name of CAM SAML provider.
Name pulumi.StringPtrInput
}
func (SAMLProviderArgs) ElementType() reflect.Type {
return reflect.TypeOf((*samlproviderArgs)(nil)).Elem()
}
type SAMLProviderInput interface {
pulumi.Input
ToSAMLProviderOutput() SAMLProviderOutput
ToSAMLProviderOutputWithContext(ctx context.Context) SAMLProviderOutput
}
func (*SAMLProvider) ElementType() reflect.Type {
return reflect.TypeOf((**SAMLProvider)(nil)).Elem()
}
func (i *SAMLProvider) ToSAMLProviderOutput() SAMLProviderOutput {
return i.ToSAMLProviderOutputWithContext(context.Background())
}
func (i *SAMLProvider) ToSAMLProviderOutputWithContext(ctx context.Context) SAMLProviderOutput {
return pulumi.ToOutputWithContext(ctx, i).(SAMLProviderOutput)
}
// SAMLProviderArrayInput is an input type that accepts SAMLProviderArray and SAMLProviderArrayOutput values.
// You can construct a concrete instance of `SAMLProviderArrayInput` via:
//
// SAMLProviderArray{ SAMLProviderArgs{...} }
type SAMLProviderArrayInput interface {
pulumi.Input
ToSAMLProviderArrayOutput() SAMLProviderArrayOutput
ToSAMLProviderArrayOutputWithContext(context.Context) SAMLProviderArrayOutput
}
type SAMLProviderArray []SAMLProviderInput
func (SAMLProviderArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]*SAMLProvider)(nil)).Elem()
}
func (i SAMLProviderArray) ToSAMLProviderArrayOutput() SAMLProviderArrayOutput {
return i.ToSAMLProviderArrayOutputWithContext(context.Background())
}
func (i SAMLProviderArray) ToSAMLProviderArrayOutputWithContext(ctx context.Context) SAMLProviderArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(SAMLProviderArrayOutput)
}
// SAMLProviderMapInput is an input type that accepts SAMLProviderMap and SAMLProviderMapOutput values.
// You can construct a concrete instance of `SAMLProviderMapInput` via:
//
// SAMLProviderMap{ "key": SAMLProviderArgs{...} }
type SAMLProviderMapInput interface {
pulumi.Input
ToSAMLProviderMapOutput() SAMLProviderMapOutput
ToSAMLProviderMapOutputWithContext(context.Context) SAMLProviderMapOutput
}
type SAMLProviderMap map[string]SAMLProviderInput
func (SAMLProviderMap) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*SAMLProvider)(nil)).Elem()
}
func (i SAMLProviderMap) ToSAMLProviderMapOutput() SAMLProviderMapOutput {
return i.ToSAMLProviderMapOutputWithContext(context.Background())
}
func (i SAMLProviderMap) ToSAMLProviderMapOutputWithContext(ctx context.Context) SAMLProviderMapOutput {
return pulumi.ToOutputWithContext(ctx, i).(SAMLProviderMapOutput)
}
type SAMLProviderOutput struct{ *pulumi.OutputState }
func (SAMLProviderOutput) ElementType() reflect.Type {
return reflect.TypeOf((**SAMLProvider)(nil)).Elem()
}
func (o SAMLProviderOutput) ToSAMLProviderOutput() SAMLProviderOutput {
return o
}
func (o SAMLProviderOutput) ToSAMLProviderOutputWithContext(ctx context.Context) SAMLProviderOutput {
return o
}
// The create time of the CAM SAML provider.
func (o SAMLProviderOutput) CreateTime() pulumi.StringOutput {
return o.ApplyT(func(v *SAMLProvider) pulumi.StringOutput { return v.CreateTime }).(pulumi.StringOutput)
}
// The description of the CAM SAML provider.
func (o SAMLProviderOutput) Description() pulumi.StringOutput {
return o.ApplyT(func(v *SAMLProvider) pulumi.StringOutput { return v.Description }).(pulumi.StringOutput)
}
// The meta data document of the CAM SAML provider.
func (o SAMLProviderOutput) MetaData() pulumi.StringOutput {
return o.ApplyT(func(v *SAMLProvider) pulumi.StringOutput { return v.MetaData }).(pulumi.StringOutput)
}
// Name of CAM SAML provider.
func (o SAMLProviderOutput) Name() pulumi.StringOutput {
return o.ApplyT(func(v *SAMLProvider) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput)
}
// The ARN of the CAM SAML provider.
func (o SAMLProviderOutput) ProviderArn() pulumi.StringOutput {
return o.ApplyT(func(v *SAMLProvider) pulumi.StringOutput { return v.ProviderArn }).(pulumi.StringOutput)
}
// The last update time of the CAM SAML provider.
func (o SAMLProviderOutput) UpdateTime() pulumi.StringOutput {
return o.ApplyT(func(v *SAMLProvider) pulumi.StringOutput { return v.UpdateTime }).(pulumi.StringOutput)
}
type SAMLProviderArrayOutput struct{ *pulumi.OutputState }
func (SAMLProviderArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]*SAMLProvider)(nil)).Elem()
}
func (o SAMLProviderArrayOutput) ToSAMLProviderArrayOutput() SAMLProviderArrayOutput {
return o
}
func (o SAMLProviderArrayOutput) ToSAMLProviderArrayOutputWithContext(ctx context.Context) SAMLProviderArrayOutput {
return o
}
func (o SAMLProviderArrayOutput) Index(i pulumi.IntInput) SAMLProviderOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) *SAMLProvider {
return vs[0].([]*SAMLProvider)[vs[1].(int)]
}).(SAMLProviderOutput)
}
type SAMLProviderMapOutput struct{ *pulumi.OutputState }
func (SAMLProviderMapOutput) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*SAMLProvider)(nil)).Elem()
}
func (o SAMLProviderMapOutput) ToSAMLProviderMapOutput() SAMLProviderMapOutput {
return o
}
func (o SAMLProviderMapOutput) ToSAMLProviderMapOutputWithContext(ctx context.Context) SAMLProviderMapOutput {
return o
}
func (o SAMLProviderMapOutput) MapIndex(k pulumi.StringInput) SAMLProviderOutput {
return pulumi.All(o, k).ApplyT(func(vs []interface{}) *SAMLProvider {
return vs[0].(map[string]*SAMLProvider)[vs[1].(string)]
}).(SAMLProviderOutput)
}
func init() {
pulumi.RegisterInputType(reflect.TypeOf((*SAMLProviderInput)(nil)).Elem(), &SAMLProvider{})
pulumi.RegisterInputType(reflect.TypeOf((*SAMLProviderArrayInput)(nil)).Elem(), SAMLProviderArray{})
pulumi.RegisterInputType(reflect.TypeOf((*SAMLProviderMapInput)(nil)).Elem(), SAMLProviderMap{})
pulumi.RegisterOutputType(SAMLProviderOutput{})
pulumi.RegisterOutputType(SAMLProviderArrayOutput{})
pulumi.RegisterOutputType(SAMLProviderMapOutput{})
}