sparse-intern-71089
10/01/2021, 4:13 PMgreat-sunset-355
10/05/2021, 12:47 PM__init__
can take args
or arguments directly
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.
# 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!billowy-army-68599
great-sunset-355
10/06/2021, 6:51 AMred-match-15116
10/06/2021, 5:27 PM