public static final class CfnIdentityPool.CognitoStreamsProperty.Builder
extends java.lang.Object
CfnIdentityPool.CognitoStreamsProperty
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CfnIdentityPool.CognitoStreamsProperty |
build()
Builds the configured instance.
|
CfnIdentityPool.CognitoStreamsProperty.Builder |
roleArn(java.lang.String roleArn)
Sets the value of
CfnIdentityPool.CognitoStreamsProperty.getRoleArn() |
CfnIdentityPool.CognitoStreamsProperty.Builder |
streamingStatus(java.lang.String streamingStatus)
Sets the value of
CfnIdentityPool.CognitoStreamsProperty.getStreamingStatus() |
CfnIdentityPool.CognitoStreamsProperty.Builder |
streamName(java.lang.String streamName)
Sets the value of
CfnIdentityPool.CognitoStreamsProperty.getStreamName() |
public CfnIdentityPool.CognitoStreamsProperty.Builder roleArn(java.lang.String roleArn)
CfnIdentityPool.CognitoStreamsProperty.getRoleArn()
roleArn
- The Amazon Resource Name (ARN) of the role Amazon Cognito can assume to publish to the stream.
This role must grant access to Amazon Cognito (cognito-sync) to invoke PutRecord
on your Amazon Cognito stream.this
public CfnIdentityPool.CognitoStreamsProperty.Builder streamingStatus(java.lang.String streamingStatus)
CfnIdentityPool.CognitoStreamsProperty.getStreamingStatus()
streamingStatus
- Status of the Amazon Cognito streams.
Valid values are: ENABLED
or DISABLED
.this
public CfnIdentityPool.CognitoStreamsProperty.Builder streamName(java.lang.String streamName)
CfnIdentityPool.CognitoStreamsProperty.getStreamName()
streamName
- The name of the Amazon Cognito stream to receive updates.
This stream must be in the developer's account and in the same Region as the identity pool.this
public CfnIdentityPool.CognitoStreamsProperty build()
CfnIdentityPool.CognitoStreamsProperty
java.lang.NullPointerException
- if any required attribute was not provided