Class: AWSCDK::SES::CfnMailManagerRelay::RelayAuthenticationProperty

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

Overview

Authentication for the relay destination server—specify the secretARN where the SMTP credentials are stored, or specify an empty NoAuthentication structure if the relay destination server does not require SMTP credential authentication.

This data type is a UNION, so only one of the following members can be specified when used or returned.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(no_authentication: nil, secret_arn: nil) ⇒ RelayAuthenticationProperty

Returns a new instance of RelayAuthenticationProperty.

Parameters:

  • no_authentication (Object, nil) (defaults to: nil)

    Keep an empty structure if the relay destination server does not require SMTP credential authentication.

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

    The ARN of the secret created in secrets manager where the relay server's SMTP credentials are stored.



607
608
609
610
611
612
# File 'ses/cfn_mail_manager_relay.rb', line 607

def initialize(no_authentication: nil, secret_arn: nil)
  @no_authentication = no_authentication
  Jsii::Type.check_type(@no_authentication, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJhbnkifQ==")), "noAuthentication") unless @no_authentication.nil?
  @secret_arn = secret_arn
  Jsii::Type.check_type(@secret_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "secretArn") unless @secret_arn.nil?
end

Instance Attribute Details

#no_authenticationObject? (readonly)

Keep an empty structure if the relay destination server does not require SMTP credential authentication.



618
619
620
# File 'ses/cfn_mail_manager_relay.rb', line 618

def no_authentication
  @no_authentication
end

#secret_arnString? (readonly)

The ARN of the secret created in secrets manager where the relay server's SMTP credentials are stored.



623
624
625
# File 'ses/cfn_mail_manager_relay.rb', line 623

def secret_arn
  @secret_arn
end

Class Method Details

.jsii_propertiesObject



625
626
627
628
629
630
# File 'ses/cfn_mail_manager_relay.rb', line 625

def self.jsii_properties
  {
    :no_authentication => "noAuthentication",
    :secret_arn => "secretArn",
  }
end

Instance Method Details

#to_jsiiObject



632
633
634
635
636
637
638
639
# File 'ses/cfn_mail_manager_relay.rb', line 632

def to_jsii
  result = {}
  result.merge!({
    "noAuthentication" => @no_authentication,
    "secretArn" => @secret_arn,
  })
  result.compact
end