Class: AWSCDK::PhysicalName
- Inherits:
-
Jsii::Object
- Object
- Jsii::Object
- AWSCDK::PhysicalName
- Defined in:
- physical_name.rb
Overview
Includes special markers for automatic generation of physical names.
Class Method Summary collapse
-
.GENERATE_IF_NEEDED ⇒ String
Use this to automatically generate a physical name for an AWS resource only if the resource is referenced across environments (account/region).
- .jsii_overridable_methods ⇒ Object
Instance Method Summary collapse
-
#initialize(*args) ⇒ PhysicalName
constructor
A new instance of PhysicalName.
Constructor Details
#initialize(*args) ⇒ PhysicalName
Returns a new instance of PhysicalName.
8 9 10 |
# File 'physical_name.rb', line 8 def initialize(*args) raise NoMethodError, "aws-cdk-lib.PhysicalName does not have a visible constructor; use the provided factory methods" end |
Class Method Details
.GENERATE_IF_NEEDED ⇒ String
Use this to automatically generate a physical name for an AWS resource only if the resource is referenced across environments (account/region).
Otherwise, the name will be allocated during deployment by CloudFormation.
If you are certain that a resource will be referenced across environments, you may also specify an explicit physical name for it. This option is mostly designed for reusable constructs which may or may not be referenced across environments.
27 28 29 |
# File 'physical_name.rb', line 27 def self.GENERATE_IF_NEEDED() Jsii::Kernel.instance.get_static("aws-cdk-lib.PhysicalName", "GENERATE_IF_NEEDED") end |
.jsii_overridable_methods ⇒ Object
12 13 14 15 |
# File 'physical_name.rb', line 12 def self.jsii_overridable_methods { } end |