-
Notifications
You must be signed in to change notification settings - Fork 151
/
organizationConformancePack.go
466 lines (412 loc) · 24.1 KB
/
organizationConformancePack.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
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
// 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 cfg
import (
"context"
"reflect"
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/internal"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
// Manages a Config Organization Conformance Pack. More information can be found in the [Managing Conformance Packs Across all Accounts in Your Organization](https://docs.aws.amazon.com/config/latest/developerguide/conformance-pack-organization-apis.html) and [AWS Config Managed Rules](https://docs.aws.amazon.com/config/latest/developerguide/evaluate-config_use-managed-rules.html) documentation. Example conformance pack templates may be found in the [AWS Config Rules Repository](https://github.com/awslabs/aws-config-rules/tree/master/aws-config-conformance-packs).
//
// > **NOTE:** This resource must be created in the Organization master account or a delegated administrator account, and the Organization must have all features enabled. Every Organization account except those configured in the `excludedAccounts` argument must have a Configuration Recorder with proper IAM permissions before the Organization Conformance Pack will successfully create or update. See also the `cfg.Recorder` resource.
//
// ## Example Usage
//
// ### Using Template Body
//
// <!--Start PulumiCodeChooser -->
// ```go
// package main
//
// import (
//
// "github.com/pulumi/pulumi-aws/sdk/v6/go/aws/cfg"
// "github.com/pulumi/pulumi-aws/sdk/v6/go/aws/organizations"
// "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
//
// )
//
// func main() {
// pulumi.Run(func(ctx *pulumi.Context) error {
// exampleOrganization, err := organizations.NewOrganization(ctx, "example", &organizations.OrganizationArgs{
// AwsServiceAccessPrincipals: pulumi.StringArray{
// pulumi.String("config-multiaccountsetup.amazonaws.com"),
// },
// FeatureSet: pulumi.String("ALL"),
// })
// if err != nil {
// return err
// }
// _, err = cfg.NewOrganizationConformancePack(ctx, "example", &cfg.OrganizationConformancePackArgs{
// Name: pulumi.String("example"),
// InputParameters: cfg.OrganizationConformancePackInputParameterArray{
// &cfg.OrganizationConformancePackInputParameterArgs{
// ParameterName: pulumi.String("AccessKeysRotatedParameterMaxAccessKeyAge"),
// ParameterValue: pulumi.String("90"),
// },
// },
// TemplateBody: pulumi.String(`Parameters:
// AccessKeysRotatedParameterMaxAccessKeyAge:
// Type: String
//
// Resources:
//
// IAMPasswordPolicy:
// Properties:
// ConfigRuleName: IAMPasswordPolicy
// Source:
// Owner: AWS
// SourceIdentifier: IAM_PASSWORD_POLICY
// Type: AWS::Config::ConfigRule
//
// `),
//
// }, pulumi.DependsOn([]pulumi.Resource{
// exampleAwsConfigConfigurationRecorder,
// exampleOrganization,
// }))
// if err != nil {
// return err
// }
// return nil
// })
// }
//
// ```
// <!--End PulumiCodeChooser -->
//
// ### Using Template S3 URI
//
// <!--Start PulumiCodeChooser -->
// ```go
// package main
//
// import (
//
// "fmt"
//
// "github.com/pulumi/pulumi-aws/sdk/v6/go/aws/cfg"
// "github.com/pulumi/pulumi-aws/sdk/v6/go/aws/organizations"
// "github.com/pulumi/pulumi-aws/sdk/v6/go/aws/s3"
// "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
//
// )
//
// func main() {
// pulumi.Run(func(ctx *pulumi.Context) error {
// exampleOrganization, err := organizations.NewOrganization(ctx, "example", &organizations.OrganizationArgs{
// AwsServiceAccessPrincipals: pulumi.StringArray{
// pulumi.String("config-multiaccountsetup.amazonaws.com"),
// },
// FeatureSet: pulumi.String("ALL"),
// })
// if err != nil {
// return err
// }
// exampleBucketV2, err := s3.NewBucketV2(ctx, "example", &s3.BucketV2Args{
// Bucket: pulumi.String("example"),
// })
// if err != nil {
// return err
// }
// exampleBucketObjectv2, err := s3.NewBucketObjectv2(ctx, "example", &s3.BucketObjectv2Args{
// Bucket: exampleBucketV2.ID(),
// Key: pulumi.String("example-key"),
// Content: pulumi.String(`Resources:
// IAMPasswordPolicy:
// Properties:
// ConfigRuleName: IAMPasswordPolicy
// Source:
// Owner: AWS
// SourceIdentifier: IAM_PASSWORD_POLICY
// Type: AWS::Config::ConfigRule
//
// `),
//
// })
// if err != nil {
// return err
// }
// _, err = cfg.NewOrganizationConformancePack(ctx, "example", &cfg.OrganizationConformancePackArgs{
// Name: pulumi.String("example"),
// TemplateS3Uri: pulumi.All(exampleBucketV2.Bucket, exampleBucketObjectv2.Key).ApplyT(func(_args []interface{}) (string, error) {
// bucket := _args[0].(string)
// key := _args[1].(string)
// return fmt.Sprintf("s3://%v/%v", bucket, key), nil
// }).(pulumi.StringOutput),
// }, pulumi.DependsOn([]pulumi.Resource{
// exampleAwsConfigConfigurationRecorder,
// exampleOrganization,
// }))
// if err != nil {
// return err
// }
// return nil
// })
// }
//
// ```
// <!--End PulumiCodeChooser -->
//
// ## Import
//
// Using `pulumi import`, import Config Organization Conformance Packs using the `name`. For example:
//
// ```sh
// $ pulumi import aws:cfg/organizationConformancePack:OrganizationConformancePack example example
// ```
type OrganizationConformancePack struct {
pulumi.CustomResourceState
// Amazon Resource Name (ARN) of the organization conformance pack.
Arn pulumi.StringOutput `pulumi:"arn"`
// Amazon S3 bucket where AWS Config stores conformance pack templates. Delivery bucket must begin with `awsconfigconforms` prefix. Maximum length of 63.
DeliveryS3Bucket pulumi.StringPtrOutput `pulumi:"deliveryS3Bucket"`
// The prefix for the Amazon S3 bucket. Maximum length of 1024.
DeliveryS3KeyPrefix pulumi.StringPtrOutput `pulumi:"deliveryS3KeyPrefix"`
// Set of AWS accounts to be excluded from an organization conformance pack while deploying a conformance pack. Maximum of 1000 accounts.
ExcludedAccounts pulumi.StringArrayOutput `pulumi:"excludedAccounts"`
// Set of configuration blocks describing input parameters passed to the conformance pack template. Documented below. When configured, the parameters must also be included in the `templateBody` or in the template stored in Amazon S3 if using `templateS3Uri`.
InputParameters OrganizationConformancePackInputParameterArrayOutput `pulumi:"inputParameters"`
// The name of the organization conformance pack. Must begin with a letter and contain from 1 to 128 alphanumeric characters and hyphens.
Name pulumi.StringOutput `pulumi:"name"`
// A string containing full conformance pack template body. Maximum length of 51200. Drift detection is not possible with this argument.
TemplateBody pulumi.StringPtrOutput `pulumi:"templateBody"`
// Location of file, e.g., `s3://bucketname/prefix`, containing the template body. The uri must point to the conformance pack template that is located in an Amazon S3 bucket in the same region as the conformance pack. Maximum length of 1024. Drift detection is not possible with this argument.
TemplateS3Uri pulumi.StringPtrOutput `pulumi:"templateS3Uri"`
}
// NewOrganizationConformancePack registers a new resource with the given unique name, arguments, and options.
func NewOrganizationConformancePack(ctx *pulumi.Context,
name string, args *OrganizationConformancePackArgs, opts ...pulumi.ResourceOption) (*OrganizationConformancePack, error) {
if args == nil {
args = &OrganizationConformancePackArgs{}
}
opts = internal.PkgResourceDefaultOpts(opts)
var resource OrganizationConformancePack
err := ctx.RegisterResource("aws:cfg/organizationConformancePack:OrganizationConformancePack", name, args, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// GetOrganizationConformancePack gets an existing OrganizationConformancePack 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 GetOrganizationConformancePack(ctx *pulumi.Context,
name string, id pulumi.IDInput, state *OrganizationConformancePackState, opts ...pulumi.ResourceOption) (*OrganizationConformancePack, error) {
var resource OrganizationConformancePack
err := ctx.ReadResource("aws:cfg/organizationConformancePack:OrganizationConformancePack", name, id, state, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// Input properties used for looking up and filtering OrganizationConformancePack resources.
type organizationConformancePackState struct {
// Amazon Resource Name (ARN) of the organization conformance pack.
Arn *string `pulumi:"arn"`
// Amazon S3 bucket where AWS Config stores conformance pack templates. Delivery bucket must begin with `awsconfigconforms` prefix. Maximum length of 63.
DeliveryS3Bucket *string `pulumi:"deliveryS3Bucket"`
// The prefix for the Amazon S3 bucket. Maximum length of 1024.
DeliveryS3KeyPrefix *string `pulumi:"deliveryS3KeyPrefix"`
// Set of AWS accounts to be excluded from an organization conformance pack while deploying a conformance pack. Maximum of 1000 accounts.
ExcludedAccounts []string `pulumi:"excludedAccounts"`
// Set of configuration blocks describing input parameters passed to the conformance pack template. Documented below. When configured, the parameters must also be included in the `templateBody` or in the template stored in Amazon S3 if using `templateS3Uri`.
InputParameters []OrganizationConformancePackInputParameter `pulumi:"inputParameters"`
// The name of the organization conformance pack. Must begin with a letter and contain from 1 to 128 alphanumeric characters and hyphens.
Name *string `pulumi:"name"`
// A string containing full conformance pack template body. Maximum length of 51200. Drift detection is not possible with this argument.
TemplateBody *string `pulumi:"templateBody"`
// Location of file, e.g., `s3://bucketname/prefix`, containing the template body. The uri must point to the conformance pack template that is located in an Amazon S3 bucket in the same region as the conformance pack. Maximum length of 1024. Drift detection is not possible with this argument.
TemplateS3Uri *string `pulumi:"templateS3Uri"`
}
type OrganizationConformancePackState struct {
// Amazon Resource Name (ARN) of the organization conformance pack.
Arn pulumi.StringPtrInput
// Amazon S3 bucket where AWS Config stores conformance pack templates. Delivery bucket must begin with `awsconfigconforms` prefix. Maximum length of 63.
DeliveryS3Bucket pulumi.StringPtrInput
// The prefix for the Amazon S3 bucket. Maximum length of 1024.
DeliveryS3KeyPrefix pulumi.StringPtrInput
// Set of AWS accounts to be excluded from an organization conformance pack while deploying a conformance pack. Maximum of 1000 accounts.
ExcludedAccounts pulumi.StringArrayInput
// Set of configuration blocks describing input parameters passed to the conformance pack template. Documented below. When configured, the parameters must also be included in the `templateBody` or in the template stored in Amazon S3 if using `templateS3Uri`.
InputParameters OrganizationConformancePackInputParameterArrayInput
// The name of the organization conformance pack. Must begin with a letter and contain from 1 to 128 alphanumeric characters and hyphens.
Name pulumi.StringPtrInput
// A string containing full conformance pack template body. Maximum length of 51200. Drift detection is not possible with this argument.
TemplateBody pulumi.StringPtrInput
// Location of file, e.g., `s3://bucketname/prefix`, containing the template body. The uri must point to the conformance pack template that is located in an Amazon S3 bucket in the same region as the conformance pack. Maximum length of 1024. Drift detection is not possible with this argument.
TemplateS3Uri pulumi.StringPtrInput
}
func (OrganizationConformancePackState) ElementType() reflect.Type {
return reflect.TypeOf((*organizationConformancePackState)(nil)).Elem()
}
type organizationConformancePackArgs struct {
// Amazon S3 bucket where AWS Config stores conformance pack templates. Delivery bucket must begin with `awsconfigconforms` prefix. Maximum length of 63.
DeliveryS3Bucket *string `pulumi:"deliveryS3Bucket"`
// The prefix for the Amazon S3 bucket. Maximum length of 1024.
DeliveryS3KeyPrefix *string `pulumi:"deliveryS3KeyPrefix"`
// Set of AWS accounts to be excluded from an organization conformance pack while deploying a conformance pack. Maximum of 1000 accounts.
ExcludedAccounts []string `pulumi:"excludedAccounts"`
// Set of configuration blocks describing input parameters passed to the conformance pack template. Documented below. When configured, the parameters must also be included in the `templateBody` or in the template stored in Amazon S3 if using `templateS3Uri`.
InputParameters []OrganizationConformancePackInputParameter `pulumi:"inputParameters"`
// The name of the organization conformance pack. Must begin with a letter and contain from 1 to 128 alphanumeric characters and hyphens.
Name *string `pulumi:"name"`
// A string containing full conformance pack template body. Maximum length of 51200. Drift detection is not possible with this argument.
TemplateBody *string `pulumi:"templateBody"`
// Location of file, e.g., `s3://bucketname/prefix`, containing the template body. The uri must point to the conformance pack template that is located in an Amazon S3 bucket in the same region as the conformance pack. Maximum length of 1024. Drift detection is not possible with this argument.
TemplateS3Uri *string `pulumi:"templateS3Uri"`
}
// The set of arguments for constructing a OrganizationConformancePack resource.
type OrganizationConformancePackArgs struct {
// Amazon S3 bucket where AWS Config stores conformance pack templates. Delivery bucket must begin with `awsconfigconforms` prefix. Maximum length of 63.
DeliveryS3Bucket pulumi.StringPtrInput
// The prefix for the Amazon S3 bucket. Maximum length of 1024.
DeliveryS3KeyPrefix pulumi.StringPtrInput
// Set of AWS accounts to be excluded from an organization conformance pack while deploying a conformance pack. Maximum of 1000 accounts.
ExcludedAccounts pulumi.StringArrayInput
// Set of configuration blocks describing input parameters passed to the conformance pack template. Documented below. When configured, the parameters must also be included in the `templateBody` or in the template stored in Amazon S3 if using `templateS3Uri`.
InputParameters OrganizationConformancePackInputParameterArrayInput
// The name of the organization conformance pack. Must begin with a letter and contain from 1 to 128 alphanumeric characters and hyphens.
Name pulumi.StringPtrInput
// A string containing full conformance pack template body. Maximum length of 51200. Drift detection is not possible with this argument.
TemplateBody pulumi.StringPtrInput
// Location of file, e.g., `s3://bucketname/prefix`, containing the template body. The uri must point to the conformance pack template that is located in an Amazon S3 bucket in the same region as the conformance pack. Maximum length of 1024. Drift detection is not possible with this argument.
TemplateS3Uri pulumi.StringPtrInput
}
func (OrganizationConformancePackArgs) ElementType() reflect.Type {
return reflect.TypeOf((*organizationConformancePackArgs)(nil)).Elem()
}
type OrganizationConformancePackInput interface {
pulumi.Input
ToOrganizationConformancePackOutput() OrganizationConformancePackOutput
ToOrganizationConformancePackOutputWithContext(ctx context.Context) OrganizationConformancePackOutput
}
func (*OrganizationConformancePack) ElementType() reflect.Type {
return reflect.TypeOf((**OrganizationConformancePack)(nil)).Elem()
}
func (i *OrganizationConformancePack) ToOrganizationConformancePackOutput() OrganizationConformancePackOutput {
return i.ToOrganizationConformancePackOutputWithContext(context.Background())
}
func (i *OrganizationConformancePack) ToOrganizationConformancePackOutputWithContext(ctx context.Context) OrganizationConformancePackOutput {
return pulumi.ToOutputWithContext(ctx, i).(OrganizationConformancePackOutput)
}
// OrganizationConformancePackArrayInput is an input type that accepts OrganizationConformancePackArray and OrganizationConformancePackArrayOutput values.
// You can construct a concrete instance of `OrganizationConformancePackArrayInput` via:
//
// OrganizationConformancePackArray{ OrganizationConformancePackArgs{...} }
type OrganizationConformancePackArrayInput interface {
pulumi.Input
ToOrganizationConformancePackArrayOutput() OrganizationConformancePackArrayOutput
ToOrganizationConformancePackArrayOutputWithContext(context.Context) OrganizationConformancePackArrayOutput
}
type OrganizationConformancePackArray []OrganizationConformancePackInput
func (OrganizationConformancePackArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]*OrganizationConformancePack)(nil)).Elem()
}
func (i OrganizationConformancePackArray) ToOrganizationConformancePackArrayOutput() OrganizationConformancePackArrayOutput {
return i.ToOrganizationConformancePackArrayOutputWithContext(context.Background())
}
func (i OrganizationConformancePackArray) ToOrganizationConformancePackArrayOutputWithContext(ctx context.Context) OrganizationConformancePackArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(OrganizationConformancePackArrayOutput)
}
// OrganizationConformancePackMapInput is an input type that accepts OrganizationConformancePackMap and OrganizationConformancePackMapOutput values.
// You can construct a concrete instance of `OrganizationConformancePackMapInput` via:
//
// OrganizationConformancePackMap{ "key": OrganizationConformancePackArgs{...} }
type OrganizationConformancePackMapInput interface {
pulumi.Input
ToOrganizationConformancePackMapOutput() OrganizationConformancePackMapOutput
ToOrganizationConformancePackMapOutputWithContext(context.Context) OrganizationConformancePackMapOutput
}
type OrganizationConformancePackMap map[string]OrganizationConformancePackInput
func (OrganizationConformancePackMap) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*OrganizationConformancePack)(nil)).Elem()
}
func (i OrganizationConformancePackMap) ToOrganizationConformancePackMapOutput() OrganizationConformancePackMapOutput {
return i.ToOrganizationConformancePackMapOutputWithContext(context.Background())
}
func (i OrganizationConformancePackMap) ToOrganizationConformancePackMapOutputWithContext(ctx context.Context) OrganizationConformancePackMapOutput {
return pulumi.ToOutputWithContext(ctx, i).(OrganizationConformancePackMapOutput)
}
type OrganizationConformancePackOutput struct{ *pulumi.OutputState }
func (OrganizationConformancePackOutput) ElementType() reflect.Type {
return reflect.TypeOf((**OrganizationConformancePack)(nil)).Elem()
}
func (o OrganizationConformancePackOutput) ToOrganizationConformancePackOutput() OrganizationConformancePackOutput {
return o
}
func (o OrganizationConformancePackOutput) ToOrganizationConformancePackOutputWithContext(ctx context.Context) OrganizationConformancePackOutput {
return o
}
// Amazon Resource Name (ARN) of the organization conformance pack.
func (o OrganizationConformancePackOutput) Arn() pulumi.StringOutput {
return o.ApplyT(func(v *OrganizationConformancePack) pulumi.StringOutput { return v.Arn }).(pulumi.StringOutput)
}
// Amazon S3 bucket where AWS Config stores conformance pack templates. Delivery bucket must begin with `awsconfigconforms` prefix. Maximum length of 63.
func (o OrganizationConformancePackOutput) DeliveryS3Bucket() pulumi.StringPtrOutput {
return o.ApplyT(func(v *OrganizationConformancePack) pulumi.StringPtrOutput { return v.DeliveryS3Bucket }).(pulumi.StringPtrOutput)
}
// The prefix for the Amazon S3 bucket. Maximum length of 1024.
func (o OrganizationConformancePackOutput) DeliveryS3KeyPrefix() pulumi.StringPtrOutput {
return o.ApplyT(func(v *OrganizationConformancePack) pulumi.StringPtrOutput { return v.DeliveryS3KeyPrefix }).(pulumi.StringPtrOutput)
}
// Set of AWS accounts to be excluded from an organization conformance pack while deploying a conformance pack. Maximum of 1000 accounts.
func (o OrganizationConformancePackOutput) ExcludedAccounts() pulumi.StringArrayOutput {
return o.ApplyT(func(v *OrganizationConformancePack) pulumi.StringArrayOutput { return v.ExcludedAccounts }).(pulumi.StringArrayOutput)
}
// Set of configuration blocks describing input parameters passed to the conformance pack template. Documented below. When configured, the parameters must also be included in the `templateBody` or in the template stored in Amazon S3 if using `templateS3Uri`.
func (o OrganizationConformancePackOutput) InputParameters() OrganizationConformancePackInputParameterArrayOutput {
return o.ApplyT(func(v *OrganizationConformancePack) OrganizationConformancePackInputParameterArrayOutput {
return v.InputParameters
}).(OrganizationConformancePackInputParameterArrayOutput)
}
// The name of the organization conformance pack. Must begin with a letter and contain from 1 to 128 alphanumeric characters and hyphens.
func (o OrganizationConformancePackOutput) Name() pulumi.StringOutput {
return o.ApplyT(func(v *OrganizationConformancePack) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput)
}
// A string containing full conformance pack template body. Maximum length of 51200. Drift detection is not possible with this argument.
func (o OrganizationConformancePackOutput) TemplateBody() pulumi.StringPtrOutput {
return o.ApplyT(func(v *OrganizationConformancePack) pulumi.StringPtrOutput { return v.TemplateBody }).(pulumi.StringPtrOutput)
}
// Location of file, e.g., `s3://bucketname/prefix`, containing the template body. The uri must point to the conformance pack template that is located in an Amazon S3 bucket in the same region as the conformance pack. Maximum length of 1024. Drift detection is not possible with this argument.
func (o OrganizationConformancePackOutput) TemplateS3Uri() pulumi.StringPtrOutput {
return o.ApplyT(func(v *OrganizationConformancePack) pulumi.StringPtrOutput { return v.TemplateS3Uri }).(pulumi.StringPtrOutput)
}
type OrganizationConformancePackArrayOutput struct{ *pulumi.OutputState }
func (OrganizationConformancePackArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]*OrganizationConformancePack)(nil)).Elem()
}
func (o OrganizationConformancePackArrayOutput) ToOrganizationConformancePackArrayOutput() OrganizationConformancePackArrayOutput {
return o
}
func (o OrganizationConformancePackArrayOutput) ToOrganizationConformancePackArrayOutputWithContext(ctx context.Context) OrganizationConformancePackArrayOutput {
return o
}
func (o OrganizationConformancePackArrayOutput) Index(i pulumi.IntInput) OrganizationConformancePackOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) *OrganizationConformancePack {
return vs[0].([]*OrganizationConformancePack)[vs[1].(int)]
}).(OrganizationConformancePackOutput)
}
type OrganizationConformancePackMapOutput struct{ *pulumi.OutputState }
func (OrganizationConformancePackMapOutput) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*OrganizationConformancePack)(nil)).Elem()
}
func (o OrganizationConformancePackMapOutput) ToOrganizationConformancePackMapOutput() OrganizationConformancePackMapOutput {
return o
}
func (o OrganizationConformancePackMapOutput) ToOrganizationConformancePackMapOutputWithContext(ctx context.Context) OrganizationConformancePackMapOutput {
return o
}
func (o OrganizationConformancePackMapOutput) MapIndex(k pulumi.StringInput) OrganizationConformancePackOutput {
return pulumi.All(o, k).ApplyT(func(vs []interface{}) *OrganizationConformancePack {
return vs[0].(map[string]*OrganizationConformancePack)[vs[1].(string)]
}).(OrganizationConformancePackOutput)
}
func init() {
pulumi.RegisterInputType(reflect.TypeOf((*OrganizationConformancePackInput)(nil)).Elem(), &OrganizationConformancePack{})
pulumi.RegisterInputType(reflect.TypeOf((*OrganizationConformancePackArrayInput)(nil)).Elem(), OrganizationConformancePackArray{})
pulumi.RegisterInputType(reflect.TypeOf((*OrganizationConformancePackMapInput)(nil)).Elem(), OrganizationConformancePackMap{})
pulumi.RegisterOutputType(OrganizationConformancePackOutput{})
pulumi.RegisterOutputType(OrganizationConformancePackArrayOutput{})
pulumi.RegisterOutputType(OrganizationConformancePackMapOutput{})
}