Hello team. I am trying to follow the example wher...
# python
a
Hello team. I am trying to follow the example where i want to use
args[FilsSystemArgs]
but it seems not valid. Can someone guide me over? https://www.pulumi.com/registry/packages/aws/api-docs/efs/filesystem/
Copy code
foo = aws.efs.FileSystem(
    "efs_filesystem", 
    resource_name="efs",
    args=[aws.efs.FileSystemArgs()]
})
b
I do believe it should be
args=aws.efs.FileSystemArgs()
. Maybe you were confused by square brackets from docs in
Copy code
Optional[FileSystemArgs]
but they just denotes the type of the argument for the optional argument.
đź‘‹ 1
Also you are using “efs_filesystem” for the first positions parameter
resource_name
and then use it again as a named parameter
delete the first one or the second one
a
@breezy-painter-29573 I have tried the code you showed me, nbut that didn’t work for me earlier.
@billowy-army-68599 Can you please give an idea?
b
I'm always happy to help where I can, but please remember this is community support
what error are you getting
a
I understand
b
could you give more information? wht error are you getting?
a
Copy code
foo = aws.efs.FileSystem(
    "efs_filesystem", 
    resource_name="efs",
    args=[aws.efs.FileSystemArgs()]
})
When i try to put
args=[aws.efs.FileSystemArgs()]
that format doesn’t work with it.
I am trying to put these parameters in efs api
b
why are you making it an array?
shouldn't it be:
Copy code
foo = aws.efs.FileSystem(
    "efs_filesystem", 
    resource_name="efs",
    args=aws.efs.FileSystemArgs()
})
a
It didn’t either work without an array
b
what do you mean "it didn't work" ? can you elaborate on what that means?
a
When i am trying to add the function, that doesn’t even list out.
FileSystemArgs()
doesn’t pop up.
b
that appears to be an issue for your autocompletion, it works fine for me
a
I see, let me check
b
update your global
pulumi_aws
to the latest version