Cell API
    Preparing search index...

    Class FcDeployment

    Deploys the output of the fc preset with the Function Compute 3.0 API: the output directory as the code of a custom runtime function, and an anonymous HTTP trigger. Credentials: ALIBABA_CLOUD_ACCESS_KEY_ID / ALIBABA_CLOUD_ACCESS_KEY_SECRET (/ ALIBABA_CLOUD_SECURITY_TOKEN).

    Index
    context: DeployContext
    credentials?: {
        accessKeyId: string;
        accessKeySecret: string;
        securityToken?: string;
    }
    io: CloudIo = DEFAULT_IO
    name: string
    region: string
    CREDENTIALS: "ALIBABA_CLOUD_ACCESS_KEY_ID and ALIBABA_CLOUD_ACCESS_KEY_SECRET" = 'ALIBABA_CLOUD_ACCESS_KEY_ID and ALIBABA_CLOUD_ACCESS_KEY_SECRET'
    MAX_PACKAGE: number = ...

    Code of a direct upload, base64 in the request body.

    TRIGGER: "http" = 'http'
    • get resources(): {
          cpu: number;
          instanceConcurrency: number;
          memorySize: number;
          timeout: number;
      }

      Memory in MB and vCPUs: FC wants memory (GB) between 1 and 4 times the vCPUs, cpu in steps of 0.05.

      Returns {
          cpu: number;
          instanceConcurrency: number;
          memorySize: number;
          timeout: number;
      }