Class: AWSCDK::PhysicalName

Inherits:
Jsii::Object
  • Object
show all
Defined in:
physical_name.rb

Overview

Includes special markers for automatic generation of physical names.

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ PhysicalName

Returns a new instance of PhysicalName.

Raises:

  • (NoMethodError)


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_NEEDEDString

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.

Returns:

  • (String)


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_methodsObject



12
13
14
15
# File 'physical_name.rb', line 12

def self.jsii_overridable_methods
  {
  }
end