Class IsVirtualHostableS3Bucket
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.IsVirtualHostableS3Bucket
- All Implemented Interfaces:
FromSourceLocation,ToNode,TypeCheck,ToCondition,ToExpression
An AWS rule-set function for determining whether a given string can be promoted to an S3 virtual bucket host label.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classAFunctionDefinitionfor theIsVirtualHostableS3Bucketfunction. -
Field Summary
FieldsFields inherited from class software.amazon.smithy.rulesengine.language.syntax.expressions.functions.LibraryFunction
definition, functionNode -
Method Summary
Modifier and TypeMethodDescription<T> Taccept(ExpressionVisitor<T> visitor) Invoke theExpressionVisitorfunctions for this expression.Gets theFunctionDefinitionimplementation.static booleanisVirtualHostableBucket(String hostLabel, boolean allowDots) Checks if the given hostLabel string is a virtual hostable bucket name.static IsVirtualHostableS3BucketofExpressions(ToExpression arg1, boolean arg2) Creates aIsVirtualHostableS3Bucketfunction from the given expressions.static IsVirtualHostableS3BucketofExpressions(ToExpression arg1, ToExpression arg2) Creates aIsVirtualHostableS3Bucketfunction from the given expressions.Methods inherited from class software.amazon.smithy.rulesengine.language.syntax.expressions.functions.LibraryFunction
calculateReferences, canonicalize, equals, expectOneArgument, getArguments, getFunctionDefinition, getName, getSourceLocation, hashCode, shouldSwapArgs, toConditionBuilder, toNode, toString, typeCheckLocalMethods inherited from class software.amazon.smithy.rulesengine.language.syntax.expressions.Expression
fromNode, getLiteral, getReference, getReference, getReference, getReferences, of, of, of, parseShortform, toExpression, type, typeCheckMethods inherited from class software.amazon.smithy.rulesengine.language.syntax.SyntaxElement
availableSince, booleanEqual, getAttr, getAttr, isSet, isValidHostLabel, not, parseUrl, stringEqual, substring, templateMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.smithy.rulesengine.language.syntax.ToCondition
toCondition, toCondition
-
Field Details
-
ID
- See Also:
-
-
Method Details
-
getDefinition
Gets theFunctionDefinitionimplementation.- Returns:
- the function definition.
-
ofExpressions
Creates aIsVirtualHostableS3Bucketfunction from the given expressions.- Parameters:
arg1- the value to check.arg2- whether to allow subdomains.- Returns:
- The resulting
IsVirtualHostableS3Bucketfunction.
-
ofExpressions
Creates aIsVirtualHostableS3Bucketfunction from the given expressions.- Parameters:
arg1- the value to check.arg2- whether to allow subdomains.- Returns:
- The resulting
IsVirtualHostableS3Bucketfunction.
-
accept
Description copied from class:ExpressionInvoke theExpressionVisitorfunctions for this expression.- Specified by:
acceptin classExpression- Type Parameters:
T- the visitor return type.- Parameters:
visitor- the visitor to be invoked.- Returns:
- the return value of the visitor.
-
isVirtualHostableBucket
Checks if the given hostLabel string is a virtual hostable bucket name.- Parameters:
hostLabel- Host label to check.allowDots- Whether to allow dots in the host label.- Returns:
- true if it is compatible.
-