gifted-mechanic-99328
02/28/2025, 10:13 AMinput_type
classes:
@pulumi.input_type
class SftpHomeDirectoryArgs:
def __init__(
self,
*,
bucket_name: str,
bucket_path: str,
entrypoint: str = "/",
bucket_kms: Optional[pulumi.Input[str]] = None,
):
...
@pulumi.input_type
class SftpUserArgs:
def __init__(
self,
*,
username: str,
home_directory: SftpHomeDirectoryArgs,
ssh_key: Optional[str] = None,
password_login: bool = False,
):
...
Since bucket_kms
in SftpHomeDirectoryArgs
is defined as pulumi.Input[str]
, should home_directory
in SftpUserArgs
also be declared as pulumi.Input[SftpHomeDirectoryArgs]
? Or is it fine as it is?
Thanks!echoing-dinner-19531
02/28/2025, 11:05 AMgifted-mechanic-99328
02/28/2025, 11:15 AMhome_directory: SftpHomeDirectoryArgs
vs
home_directory: pulumi.Input[SftpHomeDirectoryArgs]
Would explicitly wrapping it in pulumi.Input
provide any benefits, such as better handling of dependencies or asynchronous values?echoing-dinner-19531
02/28/2025, 11:17 AMgifted-mechanic-99328
02/28/2025, 11:48 AM