sparse-intern-71089
12/21/2023, 9:21 PMlimited-rainbow-51650
12/22/2023, 10:57 AMname
, which is a string
◦ args
, which is an object type <ResourceType>Args
with all resource arguments fully typed
◦ opts
, which is an object with all Pulumi resource options fully typed
• a constructor accepting **kwargs
(keyword arguments). This constructor accepts every of the properties you find on the <ResourceType>Args
When using Pulumi, you have full code assist when you use the first version of the constructor, which is not possible for the second type of constructors.
So if you want code assist while writing Pulumi code, I suggest you use:
vpc1=aws.ec2.Vpc(
"vpc1",
aws.ec2.VpcArgs(
cidr_block="80.144.0.0/16", tags={ "Name" : "vpc1"}
),
)
millions-parrot-88279
12/22/2023, 3:08 PM