View a markdown version of this page

VpcConfig - AWS Serverless Application Model

本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。

VpcConfig

設定網路連接器的 VPC 輸出設定,包括彈性網路介面 (ENI) 佈建的子網路、安全群組和網路通訊協定。

語法

若要在 AWS Serverless Application Model (AWS SAM) 範本中宣告此實體,請使用下列語法。

YAML

NetworkProtocol: String SecurityGroupIds: List SubnetIds: List

Properties

NetworkProtocol

VPC 輸出連線的網路通訊協定。

有效值IPv4DualStack

類型:字串

必要:是

CloudFormation 相容性:此屬性會直接傳遞至 AWS::Lambda::NetworkConnector 資源Configuration.VpcEgressConfigurationNetworkProtocol 屬性。

SecurityGroupIds

要與彈性網路介面 (ENIs) 建立關聯的安全群組 IDs 清單。

類型:清單

必要:是

CloudFormation 相容性:此屬性會直接傳遞至 AWS::Lambda::NetworkConnector 資源Configuration.VpcEgressConfigurationSecurityGroupIds 屬性。

SubnetIds

子網路 IDs 清單,其中服務為 VPC 輸出連線佈建 ENIs。

類型:清單

必要:是

CloudFormation 相容性:此屬性會直接傳遞至 AWS::Lambda::NetworkConnector 資源Configuration.VpcEgressConfigurationSubnetIds 屬性。

範例

VpcConfig 範例

VpcConfig: SubnetIds: - subnet-0abc123def4567890 - subnet-0def456abc7890123 SecurityGroupIds: - sg-0abc1234def567890 NetworkProtocol: IPv4