Class: AWSCDK::Cognito::CfnIdentityPool::CognitoStreamsProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Cognito::CfnIdentityPool::CognitoStreamsProperty
- Defined in:
- cognito/cfn_identity_pool.rb
Overview
CognitoStreams is a property of the AWS::Cognito::IdentityPool resource that defines configuration options for Amazon Cognito streams.
Instance Attribute Summary collapse
-
#role_arn ⇒ String?
readonly
The Amazon Resource Name (ARN) of the role Amazon Cognito can assume to publish to the stream.
-
#stream_name ⇒ String?
readonly
The name of the Amazon Cognito stream to receive updates.
-
#streaming_status ⇒ String?
readonly
Status of the Amazon Cognito streams.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(role_arn: nil, streaming_status: nil, stream_name: nil) ⇒ CognitoStreamsProperty
constructor
A new instance of CognitoStreamsProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(role_arn: nil, streaming_status: nil, stream_name: nil) ⇒ CognitoStreamsProperty
Returns a new instance of CognitoStreamsProperty.
744 745 746 747 748 749 750 751 |
# File 'cognito/cfn_identity_pool.rb', line 744 def initialize(role_arn: nil, streaming_status: nil, stream_name: nil) @role_arn = role_arn Jsii::Type.check_type(@role_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "roleArn") unless @role_arn.nil? @streaming_status = streaming_status Jsii::Type.check_type(@streaming_status, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "streamingStatus") unless @streaming_status.nil? @stream_name = stream_name Jsii::Type.check_type(@stream_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "streamName") unless @stream_name.nil? end |
Instance Attribute Details
#role_arn ⇒ String? (readonly)
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.
759 760 761 |
# File 'cognito/cfn_identity_pool.rb', line 759 def role_arn @role_arn end |
#stream_name ⇒ String? (readonly)
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.
773 774 775 |
# File 'cognito/cfn_identity_pool.rb', line 773 def stream_name @stream_name end |
#streaming_status ⇒ String? (readonly)
Status of the Amazon Cognito streams.
Valid values are: ENABLED or DISABLED .
766 767 768 |
# File 'cognito/cfn_identity_pool.rb', line 766 def streaming_status @streaming_status end |
Class Method Details
.jsii_properties ⇒ Object
775 776 777 778 779 780 781 |
# File 'cognito/cfn_identity_pool.rb', line 775 def self.jsii_properties { :role_arn => "roleArn", :streaming_status => "streamingStatus", :stream_name => "streamName", } end |
Instance Method Details
#to_jsii ⇒ Object
783 784 785 786 787 788 789 790 791 |
# File 'cognito/cfn_identity_pool.rb', line 783 def to_jsii result = {} result.merge!({ "roleArn" => @role_arn, "streamingStatus" => @streaming_status, "streamName" => @stream_name, }) result.compact end |