pulumi/pkg/codegen/internal/test/testdata/aws-s3-logging.pp
Pat Gavlin 1d672563da Fix output property names in Python codegen.
Some property names are mapped from their `camelCase` Pulumi name to a
`snake_case` Python name. This mapping is irregular, and only occurs for
resources properties and function calls.

Note that there's still more work to do here: this only fixes names on
the output side; the input side is still broken for nested resource
proprerties and function calls.

The underlying design--annotated types in `hcl2/model`--may need some
additional work in the future, but I _believe_ it's good enough for now.
2020-04-21 10:25:27 -07:00

12 lines
185 B
Puppet

resource logs "aws:s3:Bucket" {}
resource bucket "aws:s3:Bucket" {
loggings = [{
targetBucket = logs.bucket,
}]
}
output targetBucket {
value = bucket.loggings[0].targetBucket
}