Class CfnUserPoolClient.AnalyticsConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.cognito.CfnUserPoolClient.AnalyticsConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnUserPoolClient.AnalyticsConfigurationProperty>
- Enclosing interface:
CfnUserPoolClient.AnalyticsConfigurationProperty
@Stability(Stable)
public static final class CfnUserPoolClient.AnalyticsConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnUserPoolClient.AnalyticsConfigurationProperty>
A builder for
CfnUserPoolClient.AnalyticsConfigurationProperty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapplicationArn
(String applicationArn) Sets the value ofCfnUserPoolClient.AnalyticsConfigurationProperty.getApplicationArn()
applicationId
(String applicationId) Sets the value ofCfnUserPoolClient.AnalyticsConfigurationProperty.getApplicationId()
build()
Builds the configured instance.externalId
(String externalId) Sets the value ofCfnUserPoolClient.AnalyticsConfigurationProperty.getExternalId()
Sets the value ofCfnUserPoolClient.AnalyticsConfigurationProperty.getRoleArn()
userDataShared
(Boolean userDataShared) Sets the value ofCfnUserPoolClient.AnalyticsConfigurationProperty.getUserDataShared()
userDataShared
(IResolvable userDataShared) Sets the value ofCfnUserPoolClient.AnalyticsConfigurationProperty.getUserDataShared()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
applicationArn
@Stability(Stable) public CfnUserPoolClient.AnalyticsConfigurationProperty.Builder applicationArn(String applicationArn) Sets the value ofCfnUserPoolClient.AnalyticsConfigurationProperty.getApplicationArn()
- Parameters:
applicationArn
- The Amazon Resource Name (ARN) of an Amazon Pinpoint project that you want to connect to your user pool app client. Amazon Cognito publishes events to the Amazon Pinpoint project thatApplicationArn
declares. 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
@Stability(Stable) public CfnUserPoolClient.AnalyticsConfigurationProperty.Builder applicationId(String applicationId) Sets the value ofCfnUserPoolClient.AnalyticsConfigurationProperty.getApplicationId()
- Parameters:
applicationId
- Your Amazon Pinpoint project ID.- Returns:
this
-
externalId
@Stability(Stable) public CfnUserPoolClient.AnalyticsConfigurationProperty.Builder externalId(String externalId) Sets the value ofCfnUserPoolClient.AnalyticsConfigurationProperty.getExternalId()
- Parameters:
externalId
- The external ID of the role that Amazon Cognito assumes to send analytics data to Amazon Pinpoint.- Returns:
this
-
roleArn
@Stability(Stable) public CfnUserPoolClient.AnalyticsConfigurationProperty.Builder roleArn(String roleArn) Sets the value ofCfnUserPoolClient.AnalyticsConfigurationProperty.getRoleArn()
- Parameters:
roleArn
- The ARN of an AWS Identity and Access Management 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<CfnUserPoolClient.AnalyticsConfigurationProperty>
- Returns:
- a new instance of
CfnUserPoolClient.AnalyticsConfigurationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-