https://pulumi.com logo
s

sticky-country-73582

11/22/2021, 4:18 PM
Hi, For EMR
Cluster
class in pulumi-aws v4.28.0, when trying to add
Copy code
auto_termination_policy=aws.emr.ClusterAutoTerminationPolicyArgs(
    idle_timeout=300,
)
I get the following error - AttributeError: module 'pulumi_aws.emr' has no attribute 'ClusterAutoTerminationPolicyArgs' error: an unhandled error occurred: Program exited with non-zero exit code: 1 Is this the right way to use this? I am using pulumi v.3.17.1
b

broad-dog-22463

11/29/2021, 10:22 PM
Hi @sticky-country-73582 I believe it would need to be:
Copy code
auto_termination_policy=aws.emr.ClusterAutoTerminationPolicyArgs{
    idle_timeout=300,
}
as it's a class not a func