Package software.amazon.smithy.build.transforms
package software.amazon.smithy.build.transforms
-
ClassDescriptionApplies transforms of other projections.
apply
configuration.changeStringEnumsToEnumShapes
is used to change string shapes bearing the enum trait into enum shapes.changeStringEnumsToEnumShapes
configuration settings.changeType
is used to change the type of one or more shapes.flattenNamespaces
configuration settings.An abstract class used to more easily implement a Smithy build projection transformer that expects configuration input in a specific type,T
.excludeMetadata
removes metadata entries when a metadata key matcheskeys
.excludeMetadata
configuration settings.excludeShapesBySelector
excludes the shapes matching the given selector.excludeShapesBySelector
configuration.excludeShapesByTag
removes shapes if they are tagged with one or more of the given arguments.excludeShapesByTag
configuration.Removes shapes from the model if they are marked with a specific trait.excludeTags
removes tags from shapes and trait definitions that match any of the providedtags
.excludeTags
configuration.excludeTraits
removes trait definitions and traits from shapes when a trait name matches any of the values given intraits
.excludeTraits
configuration settings.excludeTraitsByTag
removes traits and trait definitions from a model if the trait definition contains any of the providedtags
.excludeTraitsByTag
configuration settings.Filters suppressions found in metadata andSuppressTrait
traits.filterSuppressions
configuration settings.flattenNamespaces
updates a model by flattening the namespaces of shapes connected to a service into a single, target namespace.flattenNamespaces
configuration settings.includeMetadata
keeps only metadata keys specifically defined in the providedkeys
setting.includeMetadata
configuration settings.includeNamespaces
filters out shapes and trait definitions that are not part of one of the givennamespaces
.includeNamespaces
configuration.includeServices
filters out service shapes that are not included in the list of shape IDs contained in theservices
property.includeServices
configuration.includeShapesBySelector
includes the shapes matching the given selector.includeShapesBySelector
configuration.includeShapesByTag
removes shapes and trait definitions that are not tagged with at least one of the tags provided in thetags
argument.includeShapesByTag
configuration.includeTags
removes tags from shapes and trait definitions that are not in the set of tags defined in thetags
property.includeTags
configuration.includeTraits
removes trait definitions when a trait name does not match one of the providedtraits
shape IDs.includeTraits
configuration settings.includeTraitsByTag
removes trait definitions from a model if the definition does not contain at least one of the providedtags
.includeTraitsByTag
configuration settings.removeTraitShapes
removes all trait definitions from a model, but leaves if the trait definition contains any of the providedtags
.removeTraitShapes
configuration settings.removeUnusedShapes
removes shapes from the model that are not connected to any service shape.removeUnusedShapes
configuration settings.renameShapes
updates a model by renaming shapes.renameShapes
configuration settings.