You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to create a role with an AssumeRolePolicyDocument and MaxSessionDuration specified, but I think it's not possible (using latest 0.8.1 version).
The RoleResource class uses RoleResourceProps, which is aware of the maxSessionDuration property, but when the RoleResource is created within the Role constructor, that property is simply not used. The Role constructor specifies assumeRolePolicyDocument, managedPolicyArns, path and roleName explicitly, and there is no way to pass in further properties through RoleProps. Also, this RoleResource instance cannot be changed in any ways with methods of the Role class.
I'm trying to create a role with an AssumeRolePolicyDocument and MaxSessionDuration specified, but I think it's not possible (using latest 0.8.1 version).
The RoleResource class uses RoleResourceProps, which is aware of the maxSessionDuration property, but when the RoleResource is created within the Role constructor, that property is simply not used. The Role constructor specifies assumeRolePolicyDocument, managedPolicyArns, path and roleName explicitly, and there is no way to pass in further properties through RoleProps. Also, this RoleResource instance cannot be changed in any ways with methods of the Role class.
https://github.com/awslabs/aws-cdk/blob/master/packages/%40aws-cdk/aws-iam/lib/role.ts#L88
Is there a reason why this property has been left out, or is it just missing? Could it be added?
Thanks!
The text was updated successfully, but these errors were encountered: