Class: AWSCDK::SES::CfnMailManagerRelayProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::SES::CfnMailManagerRelayProps
- Defined in:
- ses/cfn_mail_manager_relay_props.rb
Overview
Properties for defining a CfnMailManagerRelay.
Instance Attribute Summary collapse
-
#authentication ⇒ AWSCDK::IResolvable, AWSCDK::SES::CfnMailManagerRelay::RelayAuthenticationProperty
readonly
Authentication for the relay destination server—specify the secretARN where the SMTP credentials are stored.
-
#relay_name ⇒ String?
readonly
The unique relay name.
-
#server_name ⇒ String
readonly
The destination relay server address.
-
#server_port ⇒ Numeric
readonly
The destination relay server port.
-
#tags ⇒ Array<AWSCDK::CfnTag>?
readonly
The tags used to organize, track, or control access for the resource.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(authentication:, server_name:, server_port:, relay_name: nil, tags: nil) ⇒ CfnMailManagerRelayProps
constructor
A new instance of CfnMailManagerRelayProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(authentication:, server_name:, server_port:, relay_name: nil, tags: nil) ⇒ CfnMailManagerRelayProps
Returns a new instance of CfnMailManagerRelayProps.
14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'ses/cfn_mail_manager_relay_props.rb', line 14 def initialize(authentication:, server_name:, server_port:, relay_name: nil, tags: nil) @authentication = authentication.is_a?(Hash) ? ::AWSCDK::SES::CfnMailManagerRelay::RelayAuthenticationProperty.new(**authentication.transform_keys(&:to_sym)) : authentication Jsii::Type.check_type(@authentication, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zZXMuQ2ZuTWFpbE1hbmFnZXJSZWxheS5SZWxheUF1dGhlbnRpY2F0aW9uUHJvcGVydHkifV19fQ==")), "authentication") @server_name = server_name Jsii::Type.check_type(@server_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "serverName") @server_port = server_port Jsii::Type.check_type(@server_port, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "serverPort") @relay_name = relay_name Jsii::Type.check_type(@relay_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "relayName") unless @relay_name.nil? @tags = .is_a?(Array) ? .map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::CfnTag.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLkNmblRhZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "tags") unless @tags.nil? end |
Instance Attribute Details
#authentication ⇒ AWSCDK::IResolvable, AWSCDK::SES::CfnMailManagerRelay::RelayAuthenticationProperty (readonly)
Authentication for the relay destination server—specify the secretARN where the SMTP credentials are stored.
31 32 33 |
# File 'ses/cfn_mail_manager_relay_props.rb', line 31 def authentication @authentication end |
#relay_name ⇒ String? (readonly)
The unique relay name.
46 47 48 |
# File 'ses/cfn_mail_manager_relay_props.rb', line 46 def relay_name @relay_name end |
#server_name ⇒ String (readonly)
The destination relay server address.
36 37 38 |
# File 'ses/cfn_mail_manager_relay_props.rb', line 36 def server_name @server_name end |
#server_port ⇒ Numeric (readonly)
The destination relay server port.
41 42 43 |
# File 'ses/cfn_mail_manager_relay_props.rb', line 41 def server_port @server_port end |
#tags ⇒ Array<AWSCDK::CfnTag>? (readonly)
The tags used to organize, track, or control access for the resource.
For example, { "tags": "key2":"value2" }.
53 54 55 |
# File 'ses/cfn_mail_manager_relay_props.rb', line 53 def @tags end |
Class Method Details
.jsii_properties ⇒ Object
55 56 57 58 59 60 61 62 63 |
# File 'ses/cfn_mail_manager_relay_props.rb', line 55 def self.jsii_properties { :authentication => "authentication", :server_name => "serverName", :server_port => "serverPort", :relay_name => "relayName", :tags => "tags", } end |
Instance Method Details
#to_jsii ⇒ Object
65 66 67 68 69 70 71 72 73 74 75 |
# File 'ses/cfn_mail_manager_relay_props.rb', line 65 def to_jsii result = {} result.merge!({ "authentication" => @authentication, "serverName" => @server_name, "serverPort" => @server_port, "relayName" => @relay_name, "tags" => @tags, }) result.compact end |