Had a quick Q about auto-casing/argument passing i...
# python
g
Had a quick Q about auto-casing/argument passing into resource constructors. I notice many of Pulumi's args are auto-snake-cased as a dict of args that can be passed into a constructor, for example,
Copy code
ProbeArgs(
                    http_get=HTTPGetActionArgs(
                        path="/healthz",
                        port=DEFAULT_SERVICE_PORTS_SPEC["http"]["port"],
                        scheme="HTTP",
                    ),
                    failure_threshold=2,
                    initial_delay_seconds=60,
                    period_seconds=30,
                    success_threshold=1,
                    timeout_seconds=5,
                ),
is it acceptable practice to skip using the verbose class & arg and go straight to constructing things like this?
Copy code
liveness_probe={"http_get": {"path": "/healthz", "port": DEFAULT_SERVICE_PORTS_SPEC["http"]["port"], "scheme": "http"}, "failure_threshold": 2, "initial_delay_sections": 60, "period_seconds": 30, "success_threshold": 1, "timeout_seconds": 5}