Class: AWSCDK::SAM::CfnFunction::EventInvokeConfigProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::SAM::CfnFunction::EventInvokeConfigProperty
- Defined in:
- sam/cfn_function.rb
Overview
Instance Attribute Summary collapse
- #destination_config ⇒ AWSCDK::IResolvable, ... readonly
- #maximum_event_age_in_seconds ⇒ Numeric? readonly
- #maximum_retry_attempts ⇒ Numeric? readonly
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(destination_config: nil, maximum_event_age_in_seconds: nil, maximum_retry_attempts: nil) ⇒ EventInvokeConfigProperty
constructor
A new instance of EventInvokeConfigProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(destination_config: nil, maximum_event_age_in_seconds: nil, maximum_retry_attempts: nil) ⇒ EventInvokeConfigProperty
Returns a new instance of EventInvokeConfigProperty.
1786 1787 1788 1789 1790 1791 1792 1793 |
# File 'sam/cfn_function.rb', line 1786 def initialize(destination_config: nil, maximum_event_age_in_seconds: nil, maximum_retry_attempts: nil) @destination_config = destination_config.is_a?(Hash) ? ::AWSCDK::SAM::CfnFunction::EventInvokeDestinationConfigProperty.new(**destination_config.transform_keys(&:to_sym)) : destination_config Jsii::Type.check_type(@destination_config, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zYW0uQ2ZuRnVuY3Rpb24uRXZlbnRJbnZva2VEZXN0aW5hdGlvbkNvbmZpZ1Byb3BlcnR5In1dfX0=")), "destinationConfig") unless @destination_config.nil? @maximum_event_age_in_seconds = maximum_event_age_in_seconds Jsii::Type.check_type(@maximum_event_age_in_seconds, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "maximumEventAgeInSeconds") unless @maximum_event_age_in_seconds.nil? @maximum_retry_attempts = maximum_retry_attempts Jsii::Type.check_type(@maximum_retry_attempts, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "maximumRetryAttempts") unless @maximum_retry_attempts.nil? end |
Instance Attribute Details
#destination_config ⇒ AWSCDK::IResolvable, ... (readonly)
1797 1798 1799 |
# File 'sam/cfn_function.rb', line 1797 def destination_config @destination_config end |
#maximum_event_age_in_seconds ⇒ Numeric? (readonly)
1800 1801 1802 |
# File 'sam/cfn_function.rb', line 1800 def maximum_event_age_in_seconds @maximum_event_age_in_seconds end |
#maximum_retry_attempts ⇒ Numeric? (readonly)
1803 1804 1805 |
# File 'sam/cfn_function.rb', line 1803 def maximum_retry_attempts @maximum_retry_attempts end |
Class Method Details
.jsii_properties ⇒ Object
1805 1806 1807 1808 1809 1810 1811 |
# File 'sam/cfn_function.rb', line 1805 def self.jsii_properties { :destination_config => "destinationConfig", :maximum_event_age_in_seconds => "maximumEventAgeInSeconds", :maximum_retry_attempts => "maximumRetryAttempts", } end |
Instance Method Details
#to_jsii ⇒ Object
1813 1814 1815 1816 1817 1818 1819 1820 1821 |
# File 'sam/cfn_function.rb', line 1813 def to_jsii result = {} result.merge!({ "destinationConfig" => @destination_config, "maximumEventAgeInSeconds" => @maximum_event_age_in_seconds, "maximumRetryAttempts" => @maximum_retry_attempts, }) result.compact end |