Class: AWSCDK::Pinpoint::CfnCampaign::CustomDeliveryConfigurationProperty

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

Overview

Specifies the delivery configuration settings for sending a campaign or campaign treatment through a custom channel.

This object is required if you use the CampaignCustomMessage object to define the message to send for the campaign or campaign treatment.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(delivery_uri: nil, endpoint_types: nil) ⇒ CustomDeliveryConfigurationProperty

Returns a new instance of CustomDeliveryConfigurationProperty.

Parameters:

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

    The destination to send the campaign or treatment to. This value can be one of the following:.

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

    The types of endpoints to send the campaign or treatment to.



1143
1144
1145
1146
1147
1148
# File 'pinpoint/cfn_campaign.rb', line 1143

def initialize(delivery_uri: nil, endpoint_types: nil)
  @delivery_uri = delivery_uri
  Jsii::Type.check_type(@delivery_uri, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "deliveryUri") unless @delivery_uri.nil?
  @endpoint_types = endpoint_types
  Jsii::Type.check_type(@endpoint_types, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "endpointTypes") unless @endpoint_types.nil?
end

Instance Attribute Details

#delivery_uriString? (readonly)

The destination to send the campaign or treatment to. This value can be one of the following:.

  • The name or Amazon Resource Name (ARN) of an AWS Lambda function to invoke to handle delivery of the campaign or treatment.
  • The URL for a web application or service that supports HTTPS and can receive the message. The URL has to be a full URL, including the HTTPS protocol.


1157
1158
1159
# File 'pinpoint/cfn_campaign.rb', line 1157

def delivery_uri
  @delivery_uri
end

#endpoint_typesArray<String>? (readonly)

The types of endpoints to send the campaign or treatment to.

Each valid value maps to a type of channel that you can associate with an endpoint by using the ChannelType property of an endpoint.



1164
1165
1166
# File 'pinpoint/cfn_campaign.rb', line 1164

def endpoint_types
  @endpoint_types
end

Class Method Details

.jsii_propertiesObject



1166
1167
1168
1169
1170
1171
# File 'pinpoint/cfn_campaign.rb', line 1166

def self.jsii_properties
  {
    :delivery_uri => "deliveryUri",
    :endpoint_types => "endpointTypes",
  }
end

Instance Method Details

#to_jsiiObject



1173
1174
1175
1176
1177
1178
1179
1180
# File 'pinpoint/cfn_campaign.rb', line 1173

def to_jsii
  result = {}
  result.merge!({
    "deliveryUri" => @delivery_uri,
    "endpointTypes" => @endpoint_types,
  })
  result.compact
end