@serverless-cd/srm-aliyun-pop-core
TypeScript icon, indicating that this package has built-in type declarations

0.0.7-beta.4 • Public • Published

getInitVpcConfigAsFc

接收参数

interface IInitVpcConfig {
  region: string;
  rule: string;
  nasZoneIds?: string[]; // 如果传入了 nas 的可用区,则需要创建和返回 nasSwitchId
}

处理逻辑

返回参数

interface IResponse {
  vpcId: string;
  vSwitchIds: string[];
  securityGroupId: string;
  nasVswitch?: string; // 如果传入 nasZoneId,则需要返回
  nasZone?: string; // 如果传入 nasZoneId,则需要返回
}

getInitNasConfigAsFc

接收参数

interface IConfig {
  region: string;
  rule: string;
  vpcConfig?: {
    vpcId: string; // 如果传入了 vpcId,则不再处理 fc 的交换机和安全组
    vSwitchIds?: string[];
  }
}

处理逻辑

返回结果

interface IResponse {
  vpcConfig: {
    vpcId: string;
    vSwitchIds?: string[]; // 如果传入了 vpcId,但是没有传入 vSwitchIds 则不会返回 vSwitchIds
    securityGroupId?: string; // 如果传入了 vpcId,则不返回 securityGroupId
  };
  fileSystemId: string;
  mountTargetDomain: string;
}

Readme

Keywords

none

Package Sidebar

Install

npm i @serverless-cd/srm-aliyun-pop-core

Weekly Downloads

4

Version

0.0.7-beta.4

License

ISC

Unpacked Size

120 kB

Total Files

38

Last publish

Collaborators

  • windwaving
  • andymanastorm
  • lowkeyrd
  • ls_nodejs
  • huipeng
  • hazel0928
  • kwtboom
  • fengc123
  • wssgryx
  • xsahxl
  • heimanba