Class: AWSCDK::CustomResources::PhysicalResourceId
- Inherits:
-
Jsii::Object
- Object
- Jsii::Object
- AWSCDK::CustomResources::PhysicalResourceId
- Defined in:
- custom_resources/physical_resource_id.rb
Overview
Physical ID of the custom resource.
Class Method Summary collapse
-
.from_response(response_path) ⇒ AWSCDK::CustomResources::PhysicalResourceId
Extract the physical resource id from the path (dot notation) to the data in the API call response.
- .jsii_overridable_methods ⇒ Object
-
.of(id) ⇒ AWSCDK::CustomResources::PhysicalResourceId
Explicit physical resource id.
Instance Method Summary collapse
-
#id ⇒ String?
Literal string to be used as the physical id.
-
#initialize(*args) ⇒ PhysicalResourceId
constructor
A new instance of PhysicalResourceId.
-
#response_path ⇒ String?
Path to a response data element to be used as the physical id.
Constructor Details
#initialize(*args) ⇒ PhysicalResourceId
Returns a new instance of PhysicalResourceId.
8 9 10 |
# File 'custom_resources/physical_resource_id.rb', line 8 def initialize(*args) raise NoMethodError, "aws-cdk-lib.custom_resources.PhysicalResourceId does not have a visible constructor; use the provided factory methods" end |
Class Method Details
.from_response(response_path) ⇒ AWSCDK::CustomResources::PhysicalResourceId
Extract the physical resource id from the path (dot notation) to the data in the API call response.
23 24 25 26 |
# File 'custom_resources/physical_resource_id.rb', line 23 def self.from_response(response_path) Jsii::Type.check_type(response_path, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "responsePath") Jsii::Kernel.instance.call_static("aws-cdk-lib.custom_resources.PhysicalResourceId", "fromResponse", [response_path]) end |
.jsii_overridable_methods ⇒ Object
12 13 14 15 16 17 |
# File 'custom_resources/physical_resource_id.rb', line 12 def self.jsii_overridable_methods { :id => { kind: :property, name: "id", is_optional: true }, :response_path => { kind: :property, name: "responsePath", is_optional: true }, } end |
.of(id) ⇒ AWSCDK::CustomResources::PhysicalResourceId
Explicit physical resource id.
32 33 34 35 |
# File 'custom_resources/physical_resource_id.rb', line 32 def self.of(id) Jsii::Type.check_type(id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "id") Jsii::Kernel.instance.call_static("aws-cdk-lib.custom_resources.PhysicalResourceId", "of", [id]) end |
Instance Method Details
#id ⇒ String?
Literal string to be used as the physical id.
40 41 42 |
# File 'custom_resources/physical_resource_id.rb', line 40 def id() jsii_get_property("id") end |
#response_path ⇒ String?
Path to a response data element to be used as the physical id.
47 48 49 |
# File 'custom_resources/physical_resource_id.rb', line 47 def response_path() jsii_get_property("responsePath") end |