You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Issue #, if available: aws-controllers-k8s/community#881
Description of changes:
Supports creating custom list and map fields where the member shapes of those fields already exist in the SDK.
Rather than supplying a `from` in the field config, you can now supply a `custom_field` property which requires
either `list_of` or `map_of` with the name of an API shape as the value.
An example of generating a list (for an S3 Bucket):
```yaml
resources:
Bucket:
fields:
AnalyticsConfigurations:
custom_field:
list_of: AnalyticsConfiguration
```
Produces the following:
```golang
AnalyticsConfigurations []*AnalyticsConfiguration `json:"analyticsConfigurations,omitempty"`
```
An example of generating a map (for an S3 Bucket):
```yaml
resources:
Bucket:
fields:
AnalyticsConfigurations:
custom_field:
map_of: AnalyticsConfiguration
```
Produces the following:
```golang
AnalyticsConfigurations map[string]*AnalyticsConfiguration `json:"analyticsConfigurations,omitempty"`
```
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
0 commit comments