edit-icon download-icon

ALIYUN::ApiGateway::VpcAccessConfig

Last Updated: Jun 13, 2018

ALIYUN::ApiGateway::VpcAccessConfig can be used to configure the VPC authorities to enable the service of VPC APIs.

Syntax

  1. {
  2. "Type" : "ALIYUN::ApiGateway::VpcAccessConfig",
  3. "Properties" : {
  4. "InstanceId" : String,
  5. "VpcId" : String,
  6. "Name" : String,
  7. "Port" : Integer
  8. }
  9. }

Attributes

Attribute name Type Required Update allowed Description
InstanceId string Yes Yes The ID of an ECS or SLB instance,which must be from the VPC specified by VpcId
VpcId string Yes Yes VPC ID
Name string Yes Yes User-defined authority name. It must be unique
Port integer Yes Yes The instance port number

Example

  1. {
  2. "ROSTemplateFormatVersion": "2015-09-01",
  3. "Parameters": {
  4. "InstanceId": {
  5. "Type": "String"
  6. },
  7. "VpcId": {
  8. "Type": "String"
  9. }
  10. },
  11. "Resources": {
  12. "VpcAccesssConfig": {
  13. "Type": "ALIYUN::ApiGateway::VpcAccessConfig",
  14. "Properties": {
  15. "VpcId": {"Ref": "VpcId"},
  16. "InstanceId": {"Ref": "InstanceId"},
  17. "Port": 8080,
  18. "Name": "ros_test_vpc_access"
  19. }
  20. }
  21. }
  22. }
Thank you! We've received your feedback.