Class: AWSCDK::Cognito::CfnIdentityPool::PushSyncProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Cognito::CfnIdentityPool::PushSyncProperty
- Defined in:
- cognito/cfn_identity_pool.rb
Overview
PushSync is a property of the AWS::Cognito::IdentityPool resource that defines the configuration options to be applied to an Amazon Cognito identity pool.
Instance Attribute Summary collapse
-
#application_arns ⇒ Array<String>?
readonly
The ARNs of the Amazon SNS platform applications that could be used by clients.
-
#role_arn ⇒ String?
readonly
An IAM role configured to allow Amazon Cognito to call Amazon SNS on behalf of the developer.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(application_arns: nil, role_arn: nil) ⇒ PushSyncProperty
constructor
A new instance of PushSyncProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(application_arns: nil, role_arn: nil) ⇒ PushSyncProperty
Returns a new instance of PushSyncProperty.
802 803 804 805 806 807 |
# File 'cognito/cfn_identity_pool.rb', line 802 def initialize(application_arns: nil, role_arn: nil) @application_arns = application_arns Jsii::Type.check_type(@application_arns, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "applicationArns") unless @application_arns.nil? @role_arn = role_arn Jsii::Type.check_type(@role_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "roleArn") unless @role_arn.nil? end |
Instance Attribute Details
#application_arns ⇒ Array<String>? (readonly)
The ARNs of the Amazon SNS platform applications that could be used by clients.
813 814 815 |
# File 'cognito/cfn_identity_pool.rb', line 813 def application_arns @application_arns end |
#role_arn ⇒ String? (readonly)
An IAM role configured to allow Amazon Cognito to call Amazon SNS on behalf of the developer.
818 819 820 |
# File 'cognito/cfn_identity_pool.rb', line 818 def role_arn @role_arn end |
Class Method Details
.jsii_properties ⇒ Object
820 821 822 823 824 825 |
# File 'cognito/cfn_identity_pool.rb', line 820 def self.jsii_properties { :application_arns => "applicationArns", :role_arn => "roleArn", } end |
Instance Method Details
#to_jsii ⇒ Object
827 828 829 830 831 832 833 834 |
# File 'cognito/cfn_identity_pool.rb', line 827 def to_jsii result = {} result.merge!({ "applicationArns" => @application_arns, "roleArn" => @role_arn, }) result.compact end |