Class: AWSCDK::CfnCustomResourceProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::CfnCustomResourceProps
- Defined in:
- cfn_custom_resource_props.rb
Overview
Properties for defining a CfnCustomResource.
Instance Attribute Summary collapse
-
#service_timeout ⇒ Numeric?
readonly
The maximum time, in seconds, that can elapse before a custom resource operation times out.
-
#service_token ⇒ String
readonly
The service token, such as an Amazon topic ARN or Lambda function ARN.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(service_token:, service_timeout: nil) ⇒ CfnCustomResourceProps
constructor
A new instance of CfnCustomResourceProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(service_token:, service_timeout: nil) ⇒ CfnCustomResourceProps
Returns a new instance of CfnCustomResourceProps.
11 12 13 14 15 16 |
# File 'cfn_custom_resource_props.rb', line 11 def initialize(service_token:, service_timeout: nil) @service_token = service_token Jsii::Type.check_type(@service_token, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "serviceToken") @service_timeout = service_timeout Jsii::Type.check_type(@service_timeout, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "serviceTimeout") unless @service_timeout.nil? end |
Instance Attribute Details
#service_timeout ⇒ Numeric? (readonly)
The maximum time, in seconds, that can elapse before a custom resource operation times out.
The value must be an integer from 1 to 3600. The default value is 3600 seconds (1 hour).
33 34 35 |
# File 'cfn_custom_resource_props.rb', line 33 def service_timeout @service_timeout end |
#service_token ⇒ String (readonly)
The service token, such as an Amazon topic ARN or Lambda function ARN.
The service token must be from the same Region as the stack.
Updates aren't supported.
26 27 28 |
# File 'cfn_custom_resource_props.rb', line 26 def service_token @service_token end |
Class Method Details
.jsii_properties ⇒ Object
35 36 37 38 39 40 |
# File 'cfn_custom_resource_props.rb', line 35 def self.jsii_properties { :service_token => "serviceToken", :service_timeout => "serviceTimeout", } end |
Instance Method Details
#to_jsii ⇒ Object
42 43 44 45 46 47 48 49 |
# File 'cfn_custom_resource_props.rb', line 42 def to_jsii result = {} result.merge!({ "serviceToken" => @service_token, "serviceTimeout" => @service_timeout, }) result.compact end |