pulumi / pulumi-aws

An Amazon Web Services (AWS) Pulumi resource package, providing multi-language access to AWS
Apache License 2.0
464 stars 155 forks source link

aws.fxs.LustreFileSystems python SDK subnet_ids paramater #2025

Open SamEdwardes opened 2 years ago

SamEdwardes commented 2 years ago

The current doc string for aws.fsx.LustreFileSystem has a parameter subnet_ids.

https://github.com/pulumi/pulumi-aws/blob/e51376b38e1fc240c8640892a0abbaf4168f98aa/sdk/python/pulumi_aws/fsx/lustre_file_system.py#L41

There are two potential issues?

  1. The docstring describes a list of subnet_ids, but I think it should be just one id.
  2. The name of the parameter is plural, should it be singular if it is just a single string?
lblackstone commented 2 years ago

This looks like a possible bug in the schema mapping. The example in the API docs shows a list for the subnet IDs, which I would have expected from the name. It also looks like the example failed to generate for Python, so something odd is going on here.