GradientEdge CDK Utils
    Preparing search index...

    Common stack to use as a base for all higher level constructs using Pulumi

    import { CommonAzureStack } from '@gradientedge/cdk-utils'

    class CustomStack extends CommonAzureStack {
    constructor(name: string, props: CommonAzureStackProps) {
    super(name, props)
    // provision resources
    }
    }

    Hierarchy

    • ComponentResource
      • CommonAzureStack
    Index

    Constructors

    Properties

    config: Config

    Pulumi config instance for reading stack configuration values

    The construct instance created by this stack

    outputs?: Record<string, unknown>

    Registered stack outputs for cross-stack references

    Stack properties including environment-specific configuration

    urn: Output<string>

    The stable logical URN used to distinctly address a resource, both before and after deployments.

    NODEJS_RUNTIME: string = '22'

    Default Node.js runtime version for Azure Function Apps

    Methods

    • Retrieves the data produces by initialize. The data is immediately available in a derived class's constructor after the super(...) call to ComponentResource.

      Returns Promise<any>

    • Returns the provider for the given module member, if one exists.

      Parameters

      • moduleMember: string

      Returns ProviderResource | undefined

    • Can be overridden by a subclass to asynchronously initialize data for this component automatically when constructed. The data will be available immediately for subclass constructors to use. To access the data use getData.

      Parameters

      • args: Inputs
      • Optionalopts: ComponentResourceOptions
      • Optionalname: string
      • Optionaltype: string

      Returns Promise<any>

    • Returns string

      The directory path containing the stage context configuration

      Error if the stage context directory cannot be found within 6 parent directories

    • Parameters

      • property: string

        the property key to retrieve from the environment config

      Returns any

      The value of the requested property from the stage config JSON

    • Returns true if the given object is a CustomResource. This is designed to work even when multiple copies of the Pulumi SDK have been loaded into the same process.

      Parameters

      • obj: any

      Returns obj is ComponentResource<any>