Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ export class IdentityPool extends Resource implements IIdentityPool {
/**
* Role Provider for the default Role for authenticated users
*/
private readonly roleAttachment: IdentityPoolRoleAttachment;
public readonly roleAttachment: CfnIdentityPoolRoleAttachment;

/**
* List of Identity Providers added in constructor for use with property overrides
Expand Down Expand Up @@ -500,7 +500,7 @@ export class IdentityPool extends Resource implements IIdentityPool {
authenticatedRole: this.authenticatedRole,
unauthenticatedRole: this.unauthenticatedRole,
roleMappings: props.roleMappings,
});
}).resource;

Array.isArray(this.roleAttachment);
}
Expand Down Expand Up @@ -589,6 +589,11 @@ class IdentityPoolRoleAttachment extends Resource implements IIdentityPoolRoleAt
*/
public readonly identityPoolId: string;

/**
* The Identity Pool Role Attachment CFN resource.
*/
public readonly resource: CfnIdentityPoolRoleAttachment;

constructor(scope: Construct, id: string, props: IdentityPoolRoleAttachmentProps) {
super(scope, id);
// Enhanced CDK Analytics Telemetry
Expand All @@ -604,7 +609,7 @@ class IdentityPoolRoleAttachment extends Resource implements IIdentityPoolRoleAt
if (mappings) {
roleMappings = this.configureRoleMappings(...mappings);
}
new CfnIdentityPoolRoleAttachment(this, 'Resource', {
this.resource = new CfnIdentityPoolRoleAttachment(this, 'Resource', {
identityPoolId: this.identityPoolId,
roles,
roleMappings,
Expand Down
Loading