GradientEdge CDK Utils
    Preparing search index...

    Provides a construct to create and deploy a cloudflare worker site

    import { CloudflareWorkerSite, CloudflareWorkerSiteProps } '@gradientedge/cdk-utils'
    import { Construct } from 'constructs'

    class CustomConstruct extends CloudflareWorkerSite {
    constructor(parent: Construct, id: string, props: CloudflareWorkerSiteProps) {
    super(parent, id, props)
    this.props = props
    this.id = id
    this.initResources()
    }
    }

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    Manager for Cloudflare Access operations

    apiShieldManager: CloudflareApiShieldManager

    Manager for Cloudflare API Shield operations

    Manager for Cloudflare Argo operations

    config: Config

    The Pulumi configuration instance

    Manager for Cloudflare Filter operations

    firewallManager: CloudflareFirewallManager

    Manager for Cloudflare Firewall operations

    fullyQualifiedDomainName: string

    The fully qualified domain name resolved from domainName and subDomain

    id: string

    The scoped identifier for this construct

    options?: ComponentResourceOptions

    Optional Pulumi component resource options

    Manager for Cloudflare Pages operations

    The construct stack properties

    provider: Provider

    The Cloudflare provider instance

    Manager for Cloudflare DNS Record operations

    ruleSetManager: CloudflareRuleSetManager

    Manager for Cloudflare Rule Set operations

    siteRuleSet: Ruleset

    The Cloudflare ruleset resource for the worker site

    siteWorkerDomain: WorkersCustomDomain

    The Cloudflare Workers custom domain resource

    siteWorkerScript: WorkersScript

    The Cloudflare Workers script resource

    siteZone: Output<GetZoneResult> | Zone

    The Cloudflare zone (created or resolved) for the worker site

    siteZoneSetting: ZoneSetting

    The Cloudflare zone setting resource for the worker site

    urn: Output<string>

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

    Manager for Cloudflare Worker operations

    workerPlainTextBindingEnvironmentVariables: WorkersScriptBinding[] = []

    Plain text binding environment variables for the worker script

    workerSecretTextBindingEnvironmentVariables: WorkersScriptBinding[] = []

    Secret text binding environment variables for the worker script

    Manager for Cloudflare Zone operations

    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>

    • Registers synthetic outputs that a component has initialized, usually by allocating other child sub-resources and propagating their resulting property values.

      Component resources can call this at the end of their constructor to indicate that they are done creating child resources. This is not strictly necessary as this will automatically be called after the initialize method completes.

      Parameters

      • Optionaloutputs: Inputs | Promise<Inputs> | Output<Inputs>

      Returns void

    • Parameters

      • resourceGroupName: string

        the resource group name where the key vault is located

      • keyVaultName: string

        the key vault name

      • secretKey: string

        the secret key

      Returns OutputInstance<string | undefined> | undefined

      the secret value

    • 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>