Package clusterless.commons.naming
Class Ref
java.lang.Object
clusterless.commons.naming.Ref
Creates an identifier to use as an export/import key for provider output/export values.
aws:qualifier:[stage:]scopeName:scopeVersion:resourceNS:resourceType:resourceNameWhere the qualifier represents the type of value being exported/imported: - id - name - arn Where stage is the stage of the deployment, such as dev, test, prod, etc. It is optional. scopeName and scopeVersion are analogous to project names and versions. Resources are identified by a namespace, type, and name.
ref:aws:id:project-a:20230101:core:compute:spot ref:aws:id:dev:project-a:20230101:core:compute:spot
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Ref
arnRef()
boolean
int
hashCode()
static Ref
idRef()
static boolean
label()
static Ref
nameRef()
provider()
static String
static Ref
ref()
scope()
stage()
toString()
withProvider
(Fixed provider) withProvider
(Label provider) withProvider
(String provider) withQualifier
(Ref.Qualifier qualifier) withResourceName
(Fixed resourceName) withResourceName
(Label resourceName) withResourceName
(String resourceName) withResourceNs
(Fixed resourceNs) withResourceNs
(Label resourceNs) withResourceNs
(String resourceNs) withResourceType
(Fixed resourceType) withResourceType
(Label resourceType) withResourceType
(String resourceType) withScopeVersion
(Fixed scopeVersion) withScopeVersion
(Version scopeVersion) withScopeVersion
(String scopeVersion)
-
Constructor Details
-
Ref
public Ref()
-
-
Method Details
-
ref
-
idRef
-
arnRef
-
nameRef
-
isRef
-
provider
-
withProvider
-
withProvider
-
withProvider
-
withStage
-
withScope
-
withScope
-
withScope
-
withScopeVersion
-
withScopeVersion
-
withScopeVersion
-
withResourceNs
-
withResourceNs
-
withResourceNs
-
withResourceType
-
withResourceType
-
withResourceType
-
withResourceName
-
withResourceName
-
withResourceName
-
withQualifier
-
provider
-
stage
-
scope
-
scopeVersion
-
resourceNs
-
resourceType
-
resourceName
-
qualifier
-
resourceLabel
-
label
-
exportName
-
toString
-
equals
-
hashCode
-