Class: AWSCDK::SES::CfnReceiptRule::ConnectActionProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
ses/cfn_receipt_rule.rb

Overview

When included in a receipt rule, this action parses the received message and starts an email contact in Amazon Connect on your behalf.

When you receive emails, the maximum email size (including headers) is 40 MB. Additionally, emails may only have up to 10 attachments. Emails larger than 40 MB or with more than 10 attachments will be bounced.

We recommend that you configure this action via Amazon Connect.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(iam_role_arn:, instance_arn:) ⇒ ConnectActionProperty

Returns a new instance of ConnectActionProperty.

Parameters:

  • iam_role_arn (String)

    The Amazon Resource Name (ARN) of the IAM role to be used by Amazon Simple Email Service while starting email contacts to the Amazon Connect instance.

  • instance_arn (String)

    The Amazon Resource Name (ARN) for the Amazon Connect instance that Amazon SES integrates with for starting email contacts.



767
768
769
770
771
772
# File 'ses/cfn_receipt_rule.rb', line 767

def initialize(iam_role_arn:, instance_arn:)
  @iam_role_arn = iam_role_arn
  Jsii::Type.check_type(@iam_role_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "iamRoleArn")
  @instance_arn = instance_arn
  Jsii::Type.check_type(@instance_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "instanceArn")
end

Instance Attribute Details

#iam_role_arnString (readonly)

The Amazon Resource Name (ARN) of the IAM role to be used by Amazon Simple Email Service while starting email contacts to the Amazon Connect instance.

This role should have permission to invoke connect:StartEmailContact for the given Amazon Connect instance.



780
781
782
# File 'ses/cfn_receipt_rule.rb', line 780

def iam_role_arn
  @iam_role_arn
end

#instance_arnString (readonly)

The Amazon Resource Name (ARN) for the Amazon Connect instance that Amazon SES integrates with for starting email contacts.

For more information about Amazon Connect instances, see the Amazon Connect Administrator Guide



787
788
789
# File 'ses/cfn_receipt_rule.rb', line 787

def instance_arn
  @instance_arn
end

Class Method Details

.jsii_propertiesObject



789
790
791
792
793
794
# File 'ses/cfn_receipt_rule.rb', line 789

def self.jsii_properties
  {
    :iam_role_arn => "iamRoleArn",
    :instance_arn => "instanceArn",
  }
end

Instance Method Details

#to_jsiiObject



796
797
798
799
800
801
802
803
# File 'ses/cfn_receipt_rule.rb', line 796

def to_jsii
  result = {}
  result.merge!({
    "iamRoleArn" => @iam_role_arn,
    "instanceArn" => @instance_arn,
  })
  result.compact
end