Class: AWSCDK::APIGateway::CfnResourceProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
api_gateway/cfn_resource_props.rb

Overview

Properties for defining a CfnResource.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(parent_id:, path_part:, rest_api_id:) ⇒ CfnResourceProps

Returns a new instance of CfnResourceProps.

Parameters:



12
13
14
15
16
17
18
19
# File 'api_gateway/cfn_resource_props.rb', line 12

def initialize(parent_id:, path_part:, rest_api_id:)
  @parent_id = parent_id
  Jsii::Type.check_type(@parent_id, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoic3RyaW5nIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5pbnRlcmZhY2VzLmF3c19hcGlnYXRld2F5LklSZXNvdXJjZVJlZiJ9XX19")), "parentId")
  @path_part = path_part
  Jsii::Type.check_type(@path_part, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "pathPart")
  @rest_api_id = rest_api_id
  Jsii::Type.check_type(@rest_api_id, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoic3RyaW5nIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5pbnRlcmZhY2VzLmF3c19hcGlnYXRld2F5LklSZXN0QXBpUmVmIn1dfX0=")), "restApiId")
end

Instance Attribute Details

#parent_idString, AWSCDK::Interfaces::AWSApigateway::IResourceRef (readonly)

The parent resource's identifier.



25
26
27
# File 'api_gateway/cfn_resource_props.rb', line 25

def parent_id
  @parent_id
end

#path_partString (readonly)

The last path segment for this resource.



30
31
32
# File 'api_gateway/cfn_resource_props.rb', line 30

def path_part
  @path_part
end

#rest_api_idString, AWSCDK::Interfaces::AWSApigateway::IRestAPIRef (readonly)

The string identifier of the associated RestApi.



35
36
37
# File 'api_gateway/cfn_resource_props.rb', line 35

def rest_api_id
  @rest_api_id
end

Class Method Details

.jsii_propertiesObject



37
38
39
40
41
42
43
# File 'api_gateway/cfn_resource_props.rb', line 37

def self.jsii_properties
  {
    :parent_id => "parentId",
    :path_part => "pathPart",
    :rest_api_id => "restApiId",
  }
end

Instance Method Details

#to_jsiiObject



45
46
47
48
49
50
51
52
53
# File 'api_gateway/cfn_resource_props.rb', line 45

def to_jsii
  result = {}
  result.merge!({
    "parentId" => @parent_id,
    "pathPart" => @path_part,
    "restApiId" => @rest_api_id,
  })
  result.compact
end