Class: AWSCDK::Cognito::CfnIdentityPool::PushSyncProperty

Inherits:
Jsii::Struct
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(application_arns: nil, role_arn: nil) ⇒ PushSyncProperty

Returns a new instance of PushSyncProperty.

Parameters:

  • application_arns (Array<String>, nil) (defaults to: nil)

    The ARNs of the Amazon SNS platform applications that could be used by clients.

  • role_arn (String, nil) (defaults to: nil)

    An IAM role configured to allow Amazon Cognito to call Amazon SNS on behalf of the developer.



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_arnsArray<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_arnString? (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_propertiesObject



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_jsiiObject



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