Class: AWSCDK::CloudFormation::CfnCustomResourceProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
cloud_formation/cfn_custom_resource_props.rb

Overview

Properties for defining a CfnCustomResource.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(service_token:, service_timeout: nil) ⇒ CfnCustomResourceProps

Returns a new instance of CfnCustomResourceProps.

Parameters:

  • service_token (String)

    The service token, such as an Amazon topic ARN or Lambda function ARN.

  • service_timeout (Numeric, nil) (defaults to: nil)

    The maximum time, in seconds, that can elapse before a custom resource operation times out.



11
12
13
14
15
16
# File 'cloud_formation/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_timeoutNumeric? (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 'cloud_formation/cfn_custom_resource_props.rb', line 33

def service_timeout
  @service_timeout
end

#service_tokenString (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 'cloud_formation/cfn_custom_resource_props.rb', line 26

def service_token
  @service_token
end

Class Method Details

.jsii_propertiesObject



35
36
37
38
39
40
# File 'cloud_formation/cfn_custom_resource_props.rb', line 35

def self.jsii_properties
  {
    :service_token => "serviceToken",
    :service_timeout => "serviceTimeout",
  }
end

Instance Method Details

#to_jsiiObject



42
43
44
45
46
47
48
49
# File 'cloud_formation/cfn_custom_resource_props.rb', line 42

def to_jsii
  result = {}
  result.merge!({
    "serviceToken" => @service_token,
    "serviceTimeout" => @service_timeout,
  })
  result.compact
end