Class: AWSCDK::APIGateway::CfnResourceProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::APIGateway::CfnResourceProps
- Defined in:
- api_gateway/cfn_resource_props.rb
Overview
Properties for defining a CfnResource.
Instance Attribute Summary collapse
-
#parent_id ⇒ String, AWSCDK::Interfaces::AWSApigateway::IResourceRef
readonly
The parent resource's identifier.
-
#path_part ⇒ String
readonly
The last path segment for this resource.
-
#rest_api_id ⇒ String, AWSCDK::Interfaces::AWSApigateway::IRestAPIRef
readonly
The string identifier of the associated RestApi.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(parent_id:, path_part:, rest_api_id:) ⇒ CfnResourceProps
constructor
A new instance of CfnResourceProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(parent_id:, path_part:, rest_api_id:) ⇒ CfnResourceProps
Returns a new instance of CfnResourceProps.
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_id ⇒ String, 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_part ⇒ String (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_id ⇒ String, 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_properties ⇒ Object
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_jsii ⇒ Object
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 |