Class CfnResourceIndex

java.lang.Object
software.amazon.smithy.aws.cloudformation.traits.CfnResourceIndex
All Implemented Interfaces:
KnowledgeIndex

public final class CfnResourceIndex extends Object implements KnowledgeIndex
Index of resources to their CloudFormation identifiers and properties.

This index performs no validation that the identifiers and reference valid shapes.

  • Constructor Details

    • CfnResourceIndex

      public CfnResourceIndex(Model model)
  • Method Details

    • of

      public static CfnResourceIndex of(Model model)
    • getResource

      public Optional<CfnResource> getResource(ToShapeId resource)
      Gets the definition of the specified CloudFormation resource.
      Parameters:
      resource - ShapeID of a resource
      Returns:
      The resource definition.