Class CfnResourceIndex

  • All Implemented Interfaces:
    software.amazon.smithy.model.knowledge.KnowledgeIndex

    public final class CfnResourceIndex
    extends java.lang.Object
    implements software.amazon.smithy.model.knowledge.KnowledgeIndex
    Index of resources to their CloudFormation identifiers and properties.

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

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  CfnResourceIndex.Mutability
      Mutability options derived through lifecycle operations or traits.
    • Constructor Summary

      Constructors 
      Constructor Description
      CfnResourceIndex​(software.amazon.smithy.model.Model model)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Optional<CfnResource> getResource​(software.amazon.smithy.model.shapes.ToShapeId resource)
      Gets the definition of the specified CloudFormation resource.
      static CfnResourceIndex of​(software.amazon.smithy.model.Model model)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CfnResourceIndex

        public CfnResourceIndex​(software.amazon.smithy.model.Model model)
    • Method Detail

      • of

        public static CfnResourceIndex of​(software.amazon.smithy.model.Model model)
      • getResource

        public java.util.Optional<CfnResource> getResource​(software.amazon.smithy.model.shapes.ToShapeId resource)
        Gets the definition of the specified CloudFormation resource.
        Parameters:
        resource - ShapeID of a resource
        Returns:
        The resource definition.