Class CfnResourceIndex
- java.lang.Object
-
- software.amazon.smithy.aws.cloudformation.traits.CfnResourceIndex
-
- All Implemented Interfaces:
software.amazon.smithy.model.knowledge.KnowledgeIndex
public final class CfnResourceIndex extends java.lang.Object implements software.amazon.smithy.model.knowledge.KnowledgeIndexIndex 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 classCfnResourceIndex.MutabilityMutability 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 CfnResourceIndexof(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.
-
-