Skip to content

(aws-cognito): L2 Construct support for analytics configuration #32837

@wladyslawczyzewski

Description

@wladyslawczyzewski

Describe the feature

At this moment, to configure native integration of Cognito's App Client with the Pinpoint project you can either do this from the AWS Console or use the workaround like showed below.

CDK already has the L2 construct for Cognito App Client and we need to extend this construct to allow engineers to configure the integration from the L2 construct props instead of L1 construct.

    (
      client.node.defaultChild as cognito.CfnUserPoolClient
    ).analyticsConfiguration = {
      userDataShared: true,
      applicationArn: props.analyticsAppArn,
    };

Use Case

Cognito has the native integration with Pinpoint analytics useful for operations like InitiateAuth, RespondToAuthChallenge and few others. This integration allows Cognito App Client to send the analytic events to Pinpoint without implementing this separately.

Proposed Solution

No response

Other Information

No response

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

CDK version used

2.173.2

Environment details (OS name and version, etc.)

macOS, Node v22

Metadata

Metadata

Assignees

No one assigned

    Labels

    @aws-cdk/aws-cognitoRelated to Amazon Cognitoeffort/smallSmall work item – less than a day of effortfeature-requestA feature should be added or improved.open-for-community-contributionWe are welcoming community contributions for this onep3

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions