Skip to content

ResourceProps

Construction properties for {@link Resource}.

Initializer

import com.aliyun.ros.cdk.core.ResourceProps;
ResourceProps.builder()
//  .physicalName(java.lang.String)
    .build();

Properties

Name Type Description
physicalName java.lang.String The value passed in by users to the physical name prop of the resource.

physicalNameOptional

public java.lang.String getPhysicalName();
  • Type: java.lang.String
  • Default: The physical name will be allocated at deployment time

The value passed in by users to the physical name prop of the resource.

  • undefined implies that a physical name will be allocated during deployment.
  • a concrete value implies a specific physical name
  • PhysicalName.GENERATE_IF_NEEDED is a marker that indicates that a physical will only be generated by the CDK if it is needed for cross-environment references. Otherwise, it will be allocated.