Class: AWSCDK::Pinpoint::CfnADMChannelProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
pinpoint/cfn_adm_channel_props.rb

Overview

Properties for defining a CfnADMChannel.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(application_id:, client_id:, client_secret:, enabled: nil) ⇒ CfnADMChannelProps

Returns a new instance of CfnADMChannelProps.

Parameters:

  • application_id (String)

    The unique identifier for the Amazon Pinpoint application that the ADM channel applies to.

  • client_id (String)

    The Client ID that you received from Amazon to send messages by using ADM.

  • client_secret (String)

    The Client Secret that you received from Amazon to send messages by using ADM.

  • enabled (Boolean, AWSCDK::IResolvable, nil) (defaults to: nil)

    Specifies whether to enable the ADM channel for the application.



13
14
15
16
17
18
19
20
21
22
# File 'pinpoint/cfn_adm_channel_props.rb', line 13

def initialize(application_id:, client_id:, client_secret:, enabled: nil)
  @application_id = application_id
  Jsii::Type.check_type(@application_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "applicationId")
  @client_id = client_id
  Jsii::Type.check_type(@client_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "clientId")
  @client_secret = client_secret
  Jsii::Type.check_type(@client_secret, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "clientSecret")
  @enabled = enabled
  Jsii::Type.check_type(@enabled, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "enabled") unless @enabled.nil?
end

Instance Attribute Details

#application_idString (readonly)

The unique identifier for the Amazon Pinpoint application that the ADM channel applies to.



28
29
30
# File 'pinpoint/cfn_adm_channel_props.rb', line 28

def application_id
  @application_id
end

#client_idString (readonly)

The Client ID that you received from Amazon to send messages by using ADM.



33
34
35
# File 'pinpoint/cfn_adm_channel_props.rb', line 33

def client_id
  @client_id
end

#client_secretString (readonly)

The Client Secret that you received from Amazon to send messages by using ADM.



38
39
40
# File 'pinpoint/cfn_adm_channel_props.rb', line 38

def client_secret
  @client_secret
end

#enabledBoolean, ... (readonly)

Specifies whether to enable the ADM channel for the application.



43
44
45
# File 'pinpoint/cfn_adm_channel_props.rb', line 43

def enabled
  @enabled
end

Class Method Details

.jsii_propertiesObject



45
46
47
48
49
50
51
52
# File 'pinpoint/cfn_adm_channel_props.rb', line 45

def self.jsii_properties
  {
    :application_id => "applicationId",
    :client_id => "clientId",
    :client_secret => "clientSecret",
    :enabled => "enabled",
  }
end

Instance Method Details

#to_jsiiObject



54
55
56
57
58
59
60
61
62
63
# File 'pinpoint/cfn_adm_channel_props.rb', line 54

def to_jsii
  result = {}
  result.merge!({
    "applicationId" => @application_id,
    "clientId" => @client_id,
    "clientSecret" => @client_secret,
    "enabled" => @enabled,
  })
  result.compact
end