/
configurationProfile.go
431 lines (373 loc) · 25.3 KB
/
configurationProfile.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
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
// 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 appconfig
import (
"context"
"reflect"
"errors"
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/internal"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
// Provides an AppConfig Configuration Profile resource.
//
// ## Example Usage
//
// <!--Start PulumiCodeChooser -->
// ```go
// package main
//
// import (
//
// "github.com/pulumi/pulumi-aws/sdk/v6/go/aws/appconfig"
// "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
//
// )
//
// func main() {
// pulumi.Run(func(ctx *pulumi.Context) error {
// _, err := appconfig.NewConfigurationProfile(ctx, "example", &appconfig.ConfigurationProfileArgs{
// ApplicationId: pulumi.Any(exampleAwsAppconfigApplication.Id),
// Description: pulumi.String("Example Configuration Profile"),
// Name: pulumi.String("example-configuration-profile-tf"),
// LocationUri: pulumi.String("hosted"),
// Validators: appconfig.ConfigurationProfileValidatorArray{
// &appconfig.ConfigurationProfileValidatorArgs{
// Content: pulumi.Any(exampleAwsLambdaFunction.Arn),
// Type: pulumi.String("LAMBDA"),
// },
// },
// Tags: pulumi.StringMap{
// "Type": pulumi.String("AppConfig Configuration Profile"),
// },
// })
// if err != nil {
// return err
// }
// return nil
// })
// }
//
// ```
// <!--End PulumiCodeChooser -->
//
// ## Import
//
// Using `pulumi import`, import AppConfig Configuration Profiles using the configuration profile ID and application ID separated by a colon (`:`). For example:
//
// ```sh
// $ pulumi import aws:appconfig/configurationProfile:ConfigurationProfile example 71abcde:11xxxxx
// ```
type ConfigurationProfile struct {
pulumi.CustomResourceState
// Application ID. Must be between 4 and 7 characters in length.
ApplicationId pulumi.StringOutput `pulumi:"applicationId"`
// ARN of the AppConfig Configuration Profile.
Arn pulumi.StringOutput `pulumi:"arn"`
// The configuration profile ID.
ConfigurationProfileId pulumi.StringOutput `pulumi:"configurationProfileId"`
// Description of the configuration profile. Can be at most 1024 characters.
Description pulumi.StringPtrOutput `pulumi:"description"`
// The identifier for an Key Management Service key to encrypt new configuration data versions in the AppConfig hosted configuration store. This attribute is only used for hosted configuration types. The identifier can be an KMS key ID, alias, or the Amazon Resource Name (ARN) of the key ID or alias.
KmsKeyIdentifier pulumi.StringPtrOutput `pulumi:"kmsKeyIdentifier"`
// URI to locate the configuration. You can specify the AWS AppConfig hosted configuration store, Systems Manager (SSM) document, an SSM Parameter Store parameter, or an Amazon S3 object. For the hosted configuration store, specify `hosted`. For an SSM document, specify either the document name in the format `ssm-document://<Document_name>` or the ARN. For a parameter, specify either the parameter name in the format `ssm-parameter://<Parameter_name>` or the ARN. For an Amazon S3 object, specify the URI in the following format: `s3://<bucket>/<objectKey>`.
LocationUri pulumi.StringOutput `pulumi:"locationUri"`
// Name for the configuration profile. Must be between 1 and 64 characters in length.
Name pulumi.StringOutput `pulumi:"name"`
// ARN of an IAM role with permission to access the configuration at the specified `locationUri`. A retrieval role ARN is not required for configurations stored in the AWS AppConfig `hosted` configuration store. It is required for all other sources that store your configuration.
RetrievalRoleArn pulumi.StringPtrOutput `pulumi:"retrievalRoleArn"`
// Map of tags to assign to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
Tags pulumi.StringMapOutput `pulumi:"tags"`
// Map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
//
// Deprecated: Please use `tags` instead.
TagsAll pulumi.StringMapOutput `pulumi:"tagsAll"`
// Type of configurations contained in the profile. Valid values: `AWS.AppConfig.FeatureFlags` and `AWS.Freeform`. Default: `AWS.Freeform`.
Type pulumi.StringPtrOutput `pulumi:"type"`
// Set of methods for validating the configuration. Maximum of 2. See Validator below for more details.
Validators ConfigurationProfileValidatorArrayOutput `pulumi:"validators"`
}
// NewConfigurationProfile registers a new resource with the given unique name, arguments, and options.
func NewConfigurationProfile(ctx *pulumi.Context,
name string, args *ConfigurationProfileArgs, opts ...pulumi.ResourceOption) (*ConfigurationProfile, error) {
if args == nil {
return nil, errors.New("missing one or more required arguments")
}
if args.ApplicationId == nil {
return nil, errors.New("invalid value for required argument 'ApplicationId'")
}
if args.LocationUri == nil {
return nil, errors.New("invalid value for required argument 'LocationUri'")
}
opts = internal.PkgResourceDefaultOpts(opts)
var resource ConfigurationProfile
err := ctx.RegisterResource("aws:appconfig/configurationProfile:ConfigurationProfile", name, args, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// GetConfigurationProfile gets an existing ConfigurationProfile 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 GetConfigurationProfile(ctx *pulumi.Context,
name string, id pulumi.IDInput, state *ConfigurationProfileState, opts ...pulumi.ResourceOption) (*ConfigurationProfile, error) {
var resource ConfigurationProfile
err := ctx.ReadResource("aws:appconfig/configurationProfile:ConfigurationProfile", name, id, state, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// Input properties used for looking up and filtering ConfigurationProfile resources.
type configurationProfileState struct {
// Application ID. Must be between 4 and 7 characters in length.
ApplicationId *string `pulumi:"applicationId"`
// ARN of the AppConfig Configuration Profile.
Arn *string `pulumi:"arn"`
// The configuration profile ID.
ConfigurationProfileId *string `pulumi:"configurationProfileId"`
// Description of the configuration profile. Can be at most 1024 characters.
Description *string `pulumi:"description"`
// The identifier for an Key Management Service key to encrypt new configuration data versions in the AppConfig hosted configuration store. This attribute is only used for hosted configuration types. The identifier can be an KMS key ID, alias, or the Amazon Resource Name (ARN) of the key ID or alias.
KmsKeyIdentifier *string `pulumi:"kmsKeyIdentifier"`
// URI to locate the configuration. You can specify the AWS AppConfig hosted configuration store, Systems Manager (SSM) document, an SSM Parameter Store parameter, or an Amazon S3 object. For the hosted configuration store, specify `hosted`. For an SSM document, specify either the document name in the format `ssm-document://<Document_name>` or the ARN. For a parameter, specify either the parameter name in the format `ssm-parameter://<Parameter_name>` or the ARN. For an Amazon S3 object, specify the URI in the following format: `s3://<bucket>/<objectKey>`.
LocationUri *string `pulumi:"locationUri"`
// Name for the configuration profile. Must be between 1 and 64 characters in length.
Name *string `pulumi:"name"`
// ARN of an IAM role with permission to access the configuration at the specified `locationUri`. A retrieval role ARN is not required for configurations stored in the AWS AppConfig `hosted` configuration store. It is required for all other sources that store your configuration.
RetrievalRoleArn *string `pulumi:"retrievalRoleArn"`
// Map of tags to assign to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
Tags map[string]string `pulumi:"tags"`
// Map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
//
// Deprecated: Please use `tags` instead.
TagsAll map[string]string `pulumi:"tagsAll"`
// Type of configurations contained in the profile. Valid values: `AWS.AppConfig.FeatureFlags` and `AWS.Freeform`. Default: `AWS.Freeform`.
Type *string `pulumi:"type"`
// Set of methods for validating the configuration. Maximum of 2. See Validator below for more details.
Validators []ConfigurationProfileValidator `pulumi:"validators"`
}
type ConfigurationProfileState struct {
// Application ID. Must be between 4 and 7 characters in length.
ApplicationId pulumi.StringPtrInput
// ARN of the AppConfig Configuration Profile.
Arn pulumi.StringPtrInput
// The configuration profile ID.
ConfigurationProfileId pulumi.StringPtrInput
// Description of the configuration profile. Can be at most 1024 characters.
Description pulumi.StringPtrInput
// The identifier for an Key Management Service key to encrypt new configuration data versions in the AppConfig hosted configuration store. This attribute is only used for hosted configuration types. The identifier can be an KMS key ID, alias, or the Amazon Resource Name (ARN) of the key ID or alias.
KmsKeyIdentifier pulumi.StringPtrInput
// URI to locate the configuration. You can specify the AWS AppConfig hosted configuration store, Systems Manager (SSM) document, an SSM Parameter Store parameter, or an Amazon S3 object. For the hosted configuration store, specify `hosted`. For an SSM document, specify either the document name in the format `ssm-document://<Document_name>` or the ARN. For a parameter, specify either the parameter name in the format `ssm-parameter://<Parameter_name>` or the ARN. For an Amazon S3 object, specify the URI in the following format: `s3://<bucket>/<objectKey>`.
LocationUri pulumi.StringPtrInput
// Name for the configuration profile. Must be between 1 and 64 characters in length.
Name pulumi.StringPtrInput
// ARN of an IAM role with permission to access the configuration at the specified `locationUri`. A retrieval role ARN is not required for configurations stored in the AWS AppConfig `hosted` configuration store. It is required for all other sources that store your configuration.
RetrievalRoleArn pulumi.StringPtrInput
// Map of tags to assign to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
Tags pulumi.StringMapInput
// Map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
//
// Deprecated: Please use `tags` instead.
TagsAll pulumi.StringMapInput
// Type of configurations contained in the profile. Valid values: `AWS.AppConfig.FeatureFlags` and `AWS.Freeform`. Default: `AWS.Freeform`.
Type pulumi.StringPtrInput
// Set of methods for validating the configuration. Maximum of 2. See Validator below for more details.
Validators ConfigurationProfileValidatorArrayInput
}
func (ConfigurationProfileState) ElementType() reflect.Type {
return reflect.TypeOf((*configurationProfileState)(nil)).Elem()
}
type configurationProfileArgs struct {
// Application ID. Must be between 4 and 7 characters in length.
ApplicationId string `pulumi:"applicationId"`
// Description of the configuration profile. Can be at most 1024 characters.
Description *string `pulumi:"description"`
// The identifier for an Key Management Service key to encrypt new configuration data versions in the AppConfig hosted configuration store. This attribute is only used for hosted configuration types. The identifier can be an KMS key ID, alias, or the Amazon Resource Name (ARN) of the key ID or alias.
KmsKeyIdentifier *string `pulumi:"kmsKeyIdentifier"`
// URI to locate the configuration. You can specify the AWS AppConfig hosted configuration store, Systems Manager (SSM) document, an SSM Parameter Store parameter, or an Amazon S3 object. For the hosted configuration store, specify `hosted`. For an SSM document, specify either the document name in the format `ssm-document://<Document_name>` or the ARN. For a parameter, specify either the parameter name in the format `ssm-parameter://<Parameter_name>` or the ARN. For an Amazon S3 object, specify the URI in the following format: `s3://<bucket>/<objectKey>`.
LocationUri string `pulumi:"locationUri"`
// Name for the configuration profile. Must be between 1 and 64 characters in length.
Name *string `pulumi:"name"`
// ARN of an IAM role with permission to access the configuration at the specified `locationUri`. A retrieval role ARN is not required for configurations stored in the AWS AppConfig `hosted` configuration store. It is required for all other sources that store your configuration.
RetrievalRoleArn *string `pulumi:"retrievalRoleArn"`
// Map of tags to assign to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
Tags map[string]string `pulumi:"tags"`
// Type of configurations contained in the profile. Valid values: `AWS.AppConfig.FeatureFlags` and `AWS.Freeform`. Default: `AWS.Freeform`.
Type *string `pulumi:"type"`
// Set of methods for validating the configuration. Maximum of 2. See Validator below for more details.
Validators []ConfigurationProfileValidator `pulumi:"validators"`
}
// The set of arguments for constructing a ConfigurationProfile resource.
type ConfigurationProfileArgs struct {
// Application ID. Must be between 4 and 7 characters in length.
ApplicationId pulumi.StringInput
// Description of the configuration profile. Can be at most 1024 characters.
Description pulumi.StringPtrInput
// The identifier for an Key Management Service key to encrypt new configuration data versions in the AppConfig hosted configuration store. This attribute is only used for hosted configuration types. The identifier can be an KMS key ID, alias, or the Amazon Resource Name (ARN) of the key ID or alias.
KmsKeyIdentifier pulumi.StringPtrInput
// URI to locate the configuration. You can specify the AWS AppConfig hosted configuration store, Systems Manager (SSM) document, an SSM Parameter Store parameter, or an Amazon S3 object. For the hosted configuration store, specify `hosted`. For an SSM document, specify either the document name in the format `ssm-document://<Document_name>` or the ARN. For a parameter, specify either the parameter name in the format `ssm-parameter://<Parameter_name>` or the ARN. For an Amazon S3 object, specify the URI in the following format: `s3://<bucket>/<objectKey>`.
LocationUri pulumi.StringInput
// Name for the configuration profile. Must be between 1 and 64 characters in length.
Name pulumi.StringPtrInput
// ARN of an IAM role with permission to access the configuration at the specified `locationUri`. A retrieval role ARN is not required for configurations stored in the AWS AppConfig `hosted` configuration store. It is required for all other sources that store your configuration.
RetrievalRoleArn pulumi.StringPtrInput
// Map of tags to assign to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
Tags pulumi.StringMapInput
// Type of configurations contained in the profile. Valid values: `AWS.AppConfig.FeatureFlags` and `AWS.Freeform`. Default: `AWS.Freeform`.
Type pulumi.StringPtrInput
// Set of methods for validating the configuration. Maximum of 2. See Validator below for more details.
Validators ConfigurationProfileValidatorArrayInput
}
func (ConfigurationProfileArgs) ElementType() reflect.Type {
return reflect.TypeOf((*configurationProfileArgs)(nil)).Elem()
}
type ConfigurationProfileInput interface {
pulumi.Input
ToConfigurationProfileOutput() ConfigurationProfileOutput
ToConfigurationProfileOutputWithContext(ctx context.Context) ConfigurationProfileOutput
}
func (*ConfigurationProfile) ElementType() reflect.Type {
return reflect.TypeOf((**ConfigurationProfile)(nil)).Elem()
}
func (i *ConfigurationProfile) ToConfigurationProfileOutput() ConfigurationProfileOutput {
return i.ToConfigurationProfileOutputWithContext(context.Background())
}
func (i *ConfigurationProfile) ToConfigurationProfileOutputWithContext(ctx context.Context) ConfigurationProfileOutput {
return pulumi.ToOutputWithContext(ctx, i).(ConfigurationProfileOutput)
}
// ConfigurationProfileArrayInput is an input type that accepts ConfigurationProfileArray and ConfigurationProfileArrayOutput values.
// You can construct a concrete instance of `ConfigurationProfileArrayInput` via:
//
// ConfigurationProfileArray{ ConfigurationProfileArgs{...} }
type ConfigurationProfileArrayInput interface {
pulumi.Input
ToConfigurationProfileArrayOutput() ConfigurationProfileArrayOutput
ToConfigurationProfileArrayOutputWithContext(context.Context) ConfigurationProfileArrayOutput
}
type ConfigurationProfileArray []ConfigurationProfileInput
func (ConfigurationProfileArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]*ConfigurationProfile)(nil)).Elem()
}
func (i ConfigurationProfileArray) ToConfigurationProfileArrayOutput() ConfigurationProfileArrayOutput {
return i.ToConfigurationProfileArrayOutputWithContext(context.Background())
}
func (i ConfigurationProfileArray) ToConfigurationProfileArrayOutputWithContext(ctx context.Context) ConfigurationProfileArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(ConfigurationProfileArrayOutput)
}
// ConfigurationProfileMapInput is an input type that accepts ConfigurationProfileMap and ConfigurationProfileMapOutput values.
// You can construct a concrete instance of `ConfigurationProfileMapInput` via:
//
// ConfigurationProfileMap{ "key": ConfigurationProfileArgs{...} }
type ConfigurationProfileMapInput interface {
pulumi.Input
ToConfigurationProfileMapOutput() ConfigurationProfileMapOutput
ToConfigurationProfileMapOutputWithContext(context.Context) ConfigurationProfileMapOutput
}
type ConfigurationProfileMap map[string]ConfigurationProfileInput
func (ConfigurationProfileMap) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*ConfigurationProfile)(nil)).Elem()
}
func (i ConfigurationProfileMap) ToConfigurationProfileMapOutput() ConfigurationProfileMapOutput {
return i.ToConfigurationProfileMapOutputWithContext(context.Background())
}
func (i ConfigurationProfileMap) ToConfigurationProfileMapOutputWithContext(ctx context.Context) ConfigurationProfileMapOutput {
return pulumi.ToOutputWithContext(ctx, i).(ConfigurationProfileMapOutput)
}
type ConfigurationProfileOutput struct{ *pulumi.OutputState }
func (ConfigurationProfileOutput) ElementType() reflect.Type {
return reflect.TypeOf((**ConfigurationProfile)(nil)).Elem()
}
func (o ConfigurationProfileOutput) ToConfigurationProfileOutput() ConfigurationProfileOutput {
return o
}
func (o ConfigurationProfileOutput) ToConfigurationProfileOutputWithContext(ctx context.Context) ConfigurationProfileOutput {
return o
}
// Application ID. Must be between 4 and 7 characters in length.
func (o ConfigurationProfileOutput) ApplicationId() pulumi.StringOutput {
return o.ApplyT(func(v *ConfigurationProfile) pulumi.StringOutput { return v.ApplicationId }).(pulumi.StringOutput)
}
// ARN of the AppConfig Configuration Profile.
func (o ConfigurationProfileOutput) Arn() pulumi.StringOutput {
return o.ApplyT(func(v *ConfigurationProfile) pulumi.StringOutput { return v.Arn }).(pulumi.StringOutput)
}
// The configuration profile ID.
func (o ConfigurationProfileOutput) ConfigurationProfileId() pulumi.StringOutput {
return o.ApplyT(func(v *ConfigurationProfile) pulumi.StringOutput { return v.ConfigurationProfileId }).(pulumi.StringOutput)
}
// Description of the configuration profile. Can be at most 1024 characters.
func (o ConfigurationProfileOutput) Description() pulumi.StringPtrOutput {
return o.ApplyT(func(v *ConfigurationProfile) pulumi.StringPtrOutput { return v.Description }).(pulumi.StringPtrOutput)
}
// The identifier for an Key Management Service key to encrypt new configuration data versions in the AppConfig hosted configuration store. This attribute is only used for hosted configuration types. The identifier can be an KMS key ID, alias, or the Amazon Resource Name (ARN) of the key ID or alias.
func (o ConfigurationProfileOutput) KmsKeyIdentifier() pulumi.StringPtrOutput {
return o.ApplyT(func(v *ConfigurationProfile) pulumi.StringPtrOutput { return v.KmsKeyIdentifier }).(pulumi.StringPtrOutput)
}
// URI to locate the configuration. You can specify the AWS AppConfig hosted configuration store, Systems Manager (SSM) document, an SSM Parameter Store parameter, or an Amazon S3 object. For the hosted configuration store, specify `hosted`. For an SSM document, specify either the document name in the format `ssm-document://<Document_name>` or the ARN. For a parameter, specify either the parameter name in the format `ssm-parameter://<Parameter_name>` or the ARN. For an Amazon S3 object, specify the URI in the following format: `s3://<bucket>/<objectKey>`.
func (o ConfigurationProfileOutput) LocationUri() pulumi.StringOutput {
return o.ApplyT(func(v *ConfigurationProfile) pulumi.StringOutput { return v.LocationUri }).(pulumi.StringOutput)
}
// Name for the configuration profile. Must be between 1 and 64 characters in length.
func (o ConfigurationProfileOutput) Name() pulumi.StringOutput {
return o.ApplyT(func(v *ConfigurationProfile) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput)
}
// ARN of an IAM role with permission to access the configuration at the specified `locationUri`. A retrieval role ARN is not required for configurations stored in the AWS AppConfig `hosted` configuration store. It is required for all other sources that store your configuration.
func (o ConfigurationProfileOutput) RetrievalRoleArn() pulumi.StringPtrOutput {
return o.ApplyT(func(v *ConfigurationProfile) pulumi.StringPtrOutput { return v.RetrievalRoleArn }).(pulumi.StringPtrOutput)
}
// Map of tags to assign to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
func (o ConfigurationProfileOutput) Tags() pulumi.StringMapOutput {
return o.ApplyT(func(v *ConfigurationProfile) pulumi.StringMapOutput { return v.Tags }).(pulumi.StringMapOutput)
}
// Map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
//
// Deprecated: Please use `tags` instead.
func (o ConfigurationProfileOutput) TagsAll() pulumi.StringMapOutput {
return o.ApplyT(func(v *ConfigurationProfile) pulumi.StringMapOutput { return v.TagsAll }).(pulumi.StringMapOutput)
}
// Type of configurations contained in the profile. Valid values: `AWS.AppConfig.FeatureFlags` and `AWS.Freeform`. Default: `AWS.Freeform`.
func (o ConfigurationProfileOutput) Type() pulumi.StringPtrOutput {
return o.ApplyT(func(v *ConfigurationProfile) pulumi.StringPtrOutput { return v.Type }).(pulumi.StringPtrOutput)
}
// Set of methods for validating the configuration. Maximum of 2. See Validator below for more details.
func (o ConfigurationProfileOutput) Validators() ConfigurationProfileValidatorArrayOutput {
return o.ApplyT(func(v *ConfigurationProfile) ConfigurationProfileValidatorArrayOutput { return v.Validators }).(ConfigurationProfileValidatorArrayOutput)
}
type ConfigurationProfileArrayOutput struct{ *pulumi.OutputState }
func (ConfigurationProfileArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]*ConfigurationProfile)(nil)).Elem()
}
func (o ConfigurationProfileArrayOutput) ToConfigurationProfileArrayOutput() ConfigurationProfileArrayOutput {
return o
}
func (o ConfigurationProfileArrayOutput) ToConfigurationProfileArrayOutputWithContext(ctx context.Context) ConfigurationProfileArrayOutput {
return o
}
func (o ConfigurationProfileArrayOutput) Index(i pulumi.IntInput) ConfigurationProfileOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) *ConfigurationProfile {
return vs[0].([]*ConfigurationProfile)[vs[1].(int)]
}).(ConfigurationProfileOutput)
}
type ConfigurationProfileMapOutput struct{ *pulumi.OutputState }
func (ConfigurationProfileMapOutput) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*ConfigurationProfile)(nil)).Elem()
}
func (o ConfigurationProfileMapOutput) ToConfigurationProfileMapOutput() ConfigurationProfileMapOutput {
return o
}
func (o ConfigurationProfileMapOutput) ToConfigurationProfileMapOutputWithContext(ctx context.Context) ConfigurationProfileMapOutput {
return o
}
func (o ConfigurationProfileMapOutput) MapIndex(k pulumi.StringInput) ConfigurationProfileOutput {
return pulumi.All(o, k).ApplyT(func(vs []interface{}) *ConfigurationProfile {
return vs[0].(map[string]*ConfigurationProfile)[vs[1].(string)]
}).(ConfigurationProfileOutput)
}
func init() {
pulumi.RegisterInputType(reflect.TypeOf((*ConfigurationProfileInput)(nil)).Elem(), &ConfigurationProfile{})
pulumi.RegisterInputType(reflect.TypeOf((*ConfigurationProfileArrayInput)(nil)).Elem(), ConfigurationProfileArray{})
pulumi.RegisterInputType(reflect.TypeOf((*ConfigurationProfileMapInput)(nil)).Elem(), ConfigurationProfileMap{})
pulumi.RegisterOutputType(ConfigurationProfileOutput{})
pulumi.RegisterOutputType(ConfigurationProfileArrayOutput{})
pulumi.RegisterOutputType(ConfigurationProfileMapOutput{})
}