Class AnalyticsConfiguration.Builder
java.lang.Object
software.amazon.awscdk.services.cognito.AnalyticsConfiguration.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<AnalyticsConfiguration>
- Enclosing interface:
AnalyticsConfiguration
@Stability(Stable)
public static final class AnalyticsConfiguration.Builder
extends Object
implements software.amazon.jsii.Builder<AnalyticsConfiguration>
A builder for
AnalyticsConfiguration
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapplication
(CfnApp application) Sets the value ofAnalyticsConfiguration.getApplication()
applicationId
(String applicationId) Sets the value ofAnalyticsConfiguration.getApplicationId()
build()
Builds the configured instance.externalId
(String externalId) Sets the value ofAnalyticsConfiguration.getExternalId()
Sets the value ofAnalyticsConfiguration.getRole()
shareUserData
(Boolean shareUserData) Sets the value ofAnalyticsConfiguration.getShareUserData()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
application
Sets the value ofAnalyticsConfiguration.getApplication()
- Parameters:
application
- The Amazon Pinpoint project that you want to connect to your user pool app client. Amazon Cognito publishes events to the Amazon Pinpoint project. You can also configure your application to pass an endpoint ID in theAnalyticsMetadata
parameter of sign-in operations. The endpoint ID is information about the destination for push notifications.- Returns:
this
-
applicationId
Sets the value ofAnalyticsConfiguration.getApplicationId()
- Parameters:
applicationId
- Your Amazon Pinpoint project ID.- Returns:
this
-
externalId
Sets the value ofAnalyticsConfiguration.getExternalId()
- Parameters:
externalId
- The external ID of the role that Amazon Cognito assumes to send analytics data to Amazon Pinpoint. More info here: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_create_for-user_externalid.html- Returns:
this
-
role
Sets the value ofAnalyticsConfiguration.getRole()
- Parameters:
role
- The IAM role that has the permissions required for Amazon Cognito to publish events to Amazon Pinpoint analytics.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<AnalyticsConfiguration>
- Returns:
- a new instance of
AnalyticsConfiguration
- Throws:
NullPointerException
- if any required attribute was not provided
-