@aws-quickstart/eks-blueprints
    Preparing search index...

    Class ResourceContext

    Provides API to register resource providers and get access to the provided resources.

    Index

    Constructors

    Properties

    blueprintProps: EksBlueprintProps
    scope: Construct

    Methods

    • Adds a new resource provider and specifies the name under which the provided resource will be registered,

      Type Parameters

      • T extends IConstruct

      Parameters

      • name: string

        Specifies the name key under which the provided resources will be registered for subsequent look-ups.

      • provider: ResourceProvider<T>

        Implementation of the resource provider interface

      Returns T

      the provided resource

    • Adds a namespace resource provider.

      Type Parameters

      • T extends IConstruct

      Parameters

      • namespace: string

        the namespace name

      • provider: ResourceProvider<T>

        Implementation of the resource provider interface

      Returns T

      the provided resource

    • Gets the provided resource by the supplied name.

      Type Parameters

      • T extends IConstruct = IConstruct

      Parameters

      • name: string

        under which the resource provider was registered

      Returns T | undefined

      the resource or undefined if the specified resource was not found

    • Gets a namespace resource by name.

      Type Parameters

      • T extends IConstruct = IConstruct

      Parameters

      • namespace: string

        the namespace name

      Returns T | undefined

      the namespace resource or undefined if not found