This message was deleted.
# python
s
This message was deleted.
g
I think there is actually an error in Docs. Afaik resource
__init__
can take
args
or arguments directly
Copy code
def __init__(__self__,
                 resource_name: str,
                 args: Optional[ZoneArgs] = None,
                 opts: Optional[pulumi.ResourceOptions] = None):
args
is later in the code assigned to
__props__
I have a feeling that
props
argument name came from JS/TS in this case and therefore is a typo in docs. As for the usage of props, here is an example.
Copy code
# with props
route53.Zone(
    args=route53.ZoneArgs(name="<http://example.com|example.com>")
)
# without props
route53.Zone(name="<http://example.com|example.com>")
@billowy-army-68599 Could you please verify the correctness of my statement, we could then fix the docs together. Thank you!
b
i'm not actually sure myself, could you open an issue in pulumi/docs and I'll have someone verify it @great-sunset-355
👀 1
g
@billowy-army-68599 there you go: https://github.com/pulumi/pulumi-hugo/issues/684
r