Class AwsPartition
java.lang.Object
software.amazon.smithy.rulesengine.language.syntax.fn.FunctionDefinition
software.amazon.smithy.rulesengine.language.stdlib.AwsPartition
An AWS rule-set function for mapping a region string to a partition.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final Identifier
static final Identifier
static final String
static final Identifier
static final Identifier
static final Identifier
static final Identifier
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionEvaluate the arguments to a given function to compute a result.The arguments to this function.getId()
The ID of this function.The return type of this function definition.static Function
ofExpression
(Expression expression) Constructs a function definition for resolving a string expression to a partition.
-
Field Details
-
ID
- See Also:
-
NAME
-
DNS_SUFFIX
-
DUAL_STACK_DNS_SUFFIX
-
SUPPORTS_FIPS
-
SUPPORTS_DUAL_STACK
-
INFERRED
-
-
Constructor Details
-
AwsPartition
public AwsPartition()
-
-
Method Details
-
getId
Description copied from class:FunctionDefinition
The ID of this function.- Specified by:
getId
in classFunctionDefinition
- Returns:
- The ID string
-
getArguments
Description copied from class:FunctionDefinition
The arguments to this function.- Specified by:
getArguments
in classFunctionDefinition
- Returns:
- The function arguments
-
getReturnType
Description copied from class:FunctionDefinition
The return type of this function definition.- Specified by:
getReturnType
in classFunctionDefinition
- Returns:
- The function return type
-
evaluate
Description copied from class:FunctionDefinition
Evaluate the arguments to a given function to compute a result.- Specified by:
evaluate
in classFunctionDefinition
- Returns:
- The resulting value
-
ofExpression
Constructs a function definition for resolving a string expression to a partition.- Parameters:
expression
- expression to evaluate to a partition.- Returns:
- the function representing the partition lookup.
-