Make iam.Role's managed policy ARNs a string list
@@ -10,7 +10,7 @@ export class Role extends cloudformation.Resource implements RoleProperties {
public assumeRolePolicyDocument: any;
public readonly path?: string;
public readonly roleName?: string;
- public managedPolicies?: Policy[];
+ public managedPolicyARNs?: string[];
public policies?: InlinePolicy[];
constructor(name: string, args: RoleProperties) {
@@ -21,7 +21,7 @@ export class Role extends cloudformation.Resource implements RoleProperties {
this.assumeRolePolicyDocument = args.assumeRolePolicyDocument;
this.path = args.path;
this.roleName = args.roleName;
- this.managedPolicies = args.managedPolicies;
+ this.managedPolicyARNs = args.managedPolicyARNs;
this.policies = args.policies;
}
}
@@ -43,7 +43,7 @@ export interface RoleProperties extends cloudformation.TagArgs {
// To prevent this, create a name that includes the region name itself, to create a region-specific name.
readonly roleName?: string;
// managedPolicies is one or more managed policies to attach to this role.
- managedPolicies?: Policy[];
+ managedPolicyARNs?: string[];
// policies are the policies to associate with this role.
policies?: InlinePolicy[];
}
