Class AwsPartition
java.lang.Object
software.amazon.smithy.rulesengine.language.syntax.SyntaxElement
software.amazon.smithy.rulesengine.language.syntax.expressions.Expression
software.amazon.smithy.rulesengine.language.syntax.expressions.functions.LibraryFunction
software.amazon.smithy.rulesengine.aws.language.functions.AwsPartition
- All Implemented Interfaces:
- FromSourceLocation,- ToNode,- TypeCheck,- ToCondition,- ToExpression
An AWS rule-set function for mapping a region string to a partition.
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic final classAFunctionDefinitionfor theAwsPartitionfunction.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final Identifierstatic final Identifierstatic final Stringstatic final Identifierstatic final Identifierstatic final Identifierstatic final Identifierstatic final IdentifierFields inherited from class software.amazon.smithy.rulesengine.language.syntax.expressions.functions.LibraryFunctiondefinition, functionNode
- 
Method SummaryModifier and TypeMethodDescription<T> Taccept(ExpressionVisitor<T> visitor) Invoke theExpressionVisitorfunctions for this expression.static AwsPartition.DefinitionGets theFunctionDefinitionimplementation.static AwsPartitionofExpressions(ToExpression arg1) Creates aAwsPartitionfunction from the given expressions.static voidoverridePartitions(Partitions partitions) Overrides the partitions provided by default.Methods inherited from class software.amazon.smithy.rulesengine.language.syntax.expressions.functions.LibraryFunctionequals, expectOneArgument, getArguments, getName, getSourceLocation, hashCode, toNode, toString, typeCheckLocalMethods inherited from class software.amazon.smithy.rulesengine.language.syntax.expressions.ExpressionfromNode, getLiteral, getReference, of, of, of, parseShortform, toConditionBuilder, toExpression, type, typeCheckMethods inherited from class software.amazon.smithy.rulesengine.language.syntax.SyntaxElementbooleanEqual, getAttr, getAttr, isSet, isValidHostLabel, not, parseUrl, stringEqual, substring, templateMethods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.smithy.rulesengine.language.syntax.ToConditiontoCondition, toCondition
- 
Field Details- 
ID- See Also:
 
- 
NAME
- 
DNS_SUFFIX
- 
DUAL_STACK_DNS_SUFFIX
- 
SUPPORTS_FIPS
- 
SUPPORTS_DUAL_STACK
- 
IMPLICIT_GLOBAL_REGION
- 
INFERRED
 
- 
- 
Method Details- 
overridePartitionsOverrides the partitions provided by default.- Parameters:
- partitions- A list of partitions to set.
 
- 
getDefinitionGets theFunctionDefinitionimplementation.- Returns:
- the function definition.
 
- 
ofExpressionsCreates aAwsPartitionfunction from the given expressions.- Parameters:
- arg1- the region to retrieve partition information from.
- Returns:
- The resulting AwsPartitionfunction.
 
- 
acceptDescription copied from class:ExpressionInvoke theExpressionVisitorfunctions for this expression.- Specified by:
- acceptin class- Expression
- Type Parameters:
- T- the visitor return type.
- Parameters:
- visitor- the visitor to be invoked.
- Returns:
- the return value of the visitor.
 
 
-