Class CfnResourceIndex
- java.lang.Object
-
- software.amazon.smithy.aws.cloudformation.traits.CfnResourceIndex
-
- All Implemented Interfaces:
KnowledgeIndex
public final class CfnResourceIndex extends java.lang.Object implements 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(Model model)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Optional<CfnResource>
getResource(ToShapeId resource)
Gets the definition of the specified CloudFormation resource.static CfnResourceIndex
of(Model model)
-
-
-
Constructor Detail
-
CfnResourceIndex
public CfnResourceIndex(Model model)
-
-
Method Detail
-
of
public static CfnResourceIndex of(Model model)
-
getResource
public java.util.Optional<CfnResource> getResource(ToShapeId resource)
Gets the definition of the specified CloudFormation resource.- Parameters:
resource
- ShapeID of a resource- Returns:
- The resource definition.
-
-