alicloud.apig.Gateway
Explore with Pulumi AI
Import
APIG Gateway can be imported using the id, e.g.
$ pulumi import alicloud:apig/gateway:Gateway example <id>
Create Gateway Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Gateway(name: string, args: GatewayArgs, opts?: CustomResourceOptions);
@overload
def Gateway(resource_name: str,
args: GatewayArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Gateway(resource_name: str,
opts: Optional[ResourceOptions] = None,
payment_type: Optional[str] = None,
zone_config: Optional[GatewayZoneConfigArgs] = None,
gateway_name: Optional[str] = None,
log_config: Optional[GatewayLogConfigArgs] = None,
network_access_config: Optional[GatewayNetworkAccessConfigArgs] = None,
resource_group_id: Optional[str] = None,
spec: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
vpc: Optional[GatewayVpcArgs] = None,
vswitch: Optional[GatewayVswitchArgs] = None)
func NewGateway(ctx *Context, name string, args GatewayArgs, opts ...ResourceOption) (*Gateway, error)
public Gateway(string name, GatewayArgs args, CustomResourceOptions? opts = null)
public Gateway(String name, GatewayArgs args)
public Gateway(String name, GatewayArgs args, CustomResourceOptions options)
type: alicloud:apig:Gateway
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args GatewayArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args GatewayArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args GatewayArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args GatewayArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args GatewayArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var gatewayResource = new AliCloud.Apig.Gateway("gatewayResource", new()
{
PaymentType = "string",
ZoneConfig = new AliCloud.Apig.Inputs.GatewayZoneConfigArgs
{
SelectOption = "string",
},
GatewayName = "string",
LogConfig = new AliCloud.Apig.Inputs.GatewayLogConfigArgs
{
Sls = new AliCloud.Apig.Inputs.GatewayLogConfigSlsArgs
{
Enable = false,
},
},
NetworkAccessConfig = new AliCloud.Apig.Inputs.GatewayNetworkAccessConfigArgs
{
Type = "string",
},
ResourceGroupId = "string",
Spec = "string",
Tags =
{
{ "string", "string" },
},
Vpc = new AliCloud.Apig.Inputs.GatewayVpcArgs
{
VpcId = "string",
Name = "string",
},
Vswitch = new AliCloud.Apig.Inputs.GatewayVswitchArgs
{
Name = "string",
VswitchId = "string",
},
});
example, err := apig.NewGateway(ctx, "gatewayResource", &apig.GatewayArgs{
PaymentType: pulumi.String("string"),
ZoneConfig: &apig.GatewayZoneConfigArgs{
SelectOption: pulumi.String("string"),
},
GatewayName: pulumi.String("string"),
LogConfig: &apig.GatewayLogConfigArgs{
Sls: &apig.GatewayLogConfigSlsArgs{
Enable: pulumi.Bool(false),
},
},
NetworkAccessConfig: &apig.GatewayNetworkAccessConfigArgs{
Type: pulumi.String("string"),
},
ResourceGroupId: pulumi.String("string"),
Spec: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
Vpc: &apig.GatewayVpcArgs{
VpcId: pulumi.String("string"),
Name: pulumi.String("string"),
},
Vswitch: &apig.GatewayVswitchArgs{
Name: pulumi.String("string"),
VswitchId: pulumi.String("string"),
},
})
var gatewayResource = new Gateway("gatewayResource", GatewayArgs.builder()
.paymentType("string")
.zoneConfig(GatewayZoneConfigArgs.builder()
.selectOption("string")
.build())
.gatewayName("string")
.logConfig(GatewayLogConfigArgs.builder()
.sls(GatewayLogConfigSlsArgs.builder()
.enable(false)
.build())
.build())
.networkAccessConfig(GatewayNetworkAccessConfigArgs.builder()
.type("string")
.build())
.resourceGroupId("string")
.spec("string")
.tags(Map.of("string", "string"))
.vpc(GatewayVpcArgs.builder()
.vpcId("string")
.name("string")
.build())
.vswitch(GatewayVswitchArgs.builder()
.name("string")
.vswitchId("string")
.build())
.build());
gateway_resource = alicloud.apig.Gateway("gatewayResource",
payment_type="string",
zone_config={
"select_option": "string",
},
gateway_name="string",
log_config={
"sls": {
"enable": False,
},
},
network_access_config={
"type": "string",
},
resource_group_id="string",
spec="string",
tags={
"string": "string",
},
vpc={
"vpc_id": "string",
"name": "string",
},
vswitch={
"name": "string",
"vswitch_id": "string",
})
const gatewayResource = new alicloud.apig.Gateway("gatewayResource", {
paymentType: "string",
zoneConfig: {
selectOption: "string",
},
gatewayName: "string",
logConfig: {
sls: {
enable: false,
},
},
networkAccessConfig: {
type: "string",
},
resourceGroupId: "string",
spec: "string",
tags: {
string: "string",
},
vpc: {
vpcId: "string",
name: "string",
},
vswitch: {
name: "string",
vswitchId: "string",
},
});
type: alicloud:apig:Gateway
properties:
gatewayName: string
logConfig:
sls:
enable: false
networkAccessConfig:
type: string
paymentType: string
resourceGroupId: string
spec: string
tags:
string: string
vpc:
name: string
vpcId: string
vswitch:
name: string
vswitchId: string
zoneConfig:
selectOption: string
Gateway Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Gateway resource accepts the following input properties:
- Payment
Type string - The payment type of the resource
- Zone
Config Pulumi.Ali Cloud. Apig. Inputs. Gateway Zone Config - Availability Zone Configuration See
zone_config
below. - Gateway
Name string - The name of the resource
- Log
Config Pulumi.Ali Cloud. Apig. Inputs. Gateway Log Config - Log Configuration See
log_config
below. - Network
Access Pulumi.Config Ali Cloud. Apig. Inputs. Gateway Network Access Config - Network Access Configuration See
network_access_config
below. - Resource
Group stringId - The ID of the resource group
- Spec string
- Gateway instance specifications
- Dictionary<string, string>
- The tag of the resource
- Vpc
Pulumi.
Ali Cloud. Apig. Inputs. Gateway Vpc - The VPC associated with the Gateway. See
vpc
below. - Vswitch
Pulumi.
Ali Cloud. Apig. Inputs. Gateway Vswitch - The virtual switch associated with the Gateway. See
vswitch
below.
- Payment
Type string - The payment type of the resource
- Zone
Config GatewayZone Config Args - Availability Zone Configuration See
zone_config
below. - Gateway
Name string - The name of the resource
- Log
Config GatewayLog Config Args - Log Configuration See
log_config
below. - Network
Access GatewayConfig Network Access Config Args - Network Access Configuration See
network_access_config
below. - Resource
Group stringId - The ID of the resource group
- Spec string
- Gateway instance specifications
- map[string]string
- The tag of the resource
- Vpc
Gateway
Vpc Args - The VPC associated with the Gateway. See
vpc
below. - Vswitch
Gateway
Vswitch Args - The virtual switch associated with the Gateway. See
vswitch
below.
- payment
Type String - The payment type of the resource
- zone
Config GatewayZone Config - Availability Zone Configuration See
zone_config
below. - gateway
Name String - The name of the resource
- log
Config GatewayLog Config - Log Configuration See
log_config
below. - network
Access GatewayConfig Network Access Config - Network Access Configuration See
network_access_config
below. - resource
Group StringId - The ID of the resource group
- spec String
- Gateway instance specifications
- Map<String,String>
- The tag of the resource
- vpc
Gateway
Vpc - The VPC associated with the Gateway. See
vpc
below. - vswitch
Gateway
Vswitch - The virtual switch associated with the Gateway. See
vswitch
below.
- payment
Type string - The payment type of the resource
- zone
Config GatewayZone Config - Availability Zone Configuration See
zone_config
below. - gateway
Name string - The name of the resource
- log
Config GatewayLog Config - Log Configuration See
log_config
below. - network
Access GatewayConfig Network Access Config - Network Access Configuration See
network_access_config
below. - resource
Group stringId - The ID of the resource group
- spec string
- Gateway instance specifications
- {[key: string]: string}
- The tag of the resource
- vpc
Gateway
Vpc - The VPC associated with the Gateway. See
vpc
below. - vswitch
Gateway
Vswitch - The virtual switch associated with the Gateway. See
vswitch
below.
- payment_
type str - The payment type of the resource
- zone_
config GatewayZone Config Args - Availability Zone Configuration See
zone_config
below. - gateway_
name str - The name of the resource
- log_
config GatewayLog Config Args - Log Configuration See
log_config
below. - network_
access_ Gatewayconfig Network Access Config Args - Network Access Configuration See
network_access_config
below. - resource_
group_ strid - The ID of the resource group
- spec str
- Gateway instance specifications
- Mapping[str, str]
- The tag of the resource
- vpc
Gateway
Vpc Args - The VPC associated with the Gateway. See
vpc
below. - vswitch
Gateway
Vswitch Args - The virtual switch associated with the Gateway. See
vswitch
below.
- payment
Type String - The payment type of the resource
- zone
Config Property Map - Availability Zone Configuration See
zone_config
below. - gateway
Name String - The name of the resource
- log
Config Property Map - Log Configuration See
log_config
below. - network
Access Property MapConfig - Network Access Configuration See
network_access_config
below. - resource
Group StringId - The ID of the resource group
- spec String
- Gateway instance specifications
- Map<String>
- The tag of the resource
- vpc Property Map
- The VPC associated with the Gateway. See
vpc
below. - vswitch Property Map
- The virtual switch associated with the Gateway. See
vswitch
below.
Outputs
All input properties are implicitly available as output properties. Additionally, the Gateway resource produces the following output properties:
- Create
Time int - The creation timestamp. Unit: milliseconds.
- Id string
- The provider-assigned unique ID for this managed resource.
- Status string
- The status of the resource
- Create
Time int - The creation timestamp. Unit: milliseconds.
- Id string
- The provider-assigned unique ID for this managed resource.
- Status string
- The status of the resource
- create
Time Integer - The creation timestamp. Unit: milliseconds.
- id String
- The provider-assigned unique ID for this managed resource.
- status String
- The status of the resource
- create
Time number - The creation timestamp. Unit: milliseconds.
- id string
- The provider-assigned unique ID for this managed resource.
- status string
- The status of the resource
- create_
time int - The creation timestamp. Unit: milliseconds.
- id str
- The provider-assigned unique ID for this managed resource.
- status str
- The status of the resource
- create
Time Number - The creation timestamp. Unit: milliseconds.
- id String
- The provider-assigned unique ID for this managed resource.
- status String
- The status of the resource
Look up Existing Gateway Resource
Get an existing Gateway resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: GatewayState, opts?: CustomResourceOptions): Gateway
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
create_time: Optional[int] = None,
gateway_name: Optional[str] = None,
log_config: Optional[GatewayLogConfigArgs] = None,
network_access_config: Optional[GatewayNetworkAccessConfigArgs] = None,
payment_type: Optional[str] = None,
resource_group_id: Optional[str] = None,
spec: Optional[str] = None,
status: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
vpc: Optional[GatewayVpcArgs] = None,
vswitch: Optional[GatewayVswitchArgs] = None,
zone_config: Optional[GatewayZoneConfigArgs] = None) -> Gateway
func GetGateway(ctx *Context, name string, id IDInput, state *GatewayState, opts ...ResourceOption) (*Gateway, error)
public static Gateway Get(string name, Input<string> id, GatewayState? state, CustomResourceOptions? opts = null)
public static Gateway get(String name, Output<String> id, GatewayState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Create
Time int - The creation timestamp. Unit: milliseconds.
- Gateway
Name string - The name of the resource
- Log
Config Pulumi.Ali Cloud. Apig. Inputs. Gateway Log Config - Log Configuration See
log_config
below. - Network
Access Pulumi.Config Ali Cloud. Apig. Inputs. Gateway Network Access Config - Network Access Configuration See
network_access_config
below. - Payment
Type string - The payment type of the resource
- Resource
Group stringId - The ID of the resource group
- Spec string
- Gateway instance specifications
- Status string
- The status of the resource
- Dictionary<string, string>
- The tag of the resource
- Vpc
Pulumi.
Ali Cloud. Apig. Inputs. Gateway Vpc - The VPC associated with the Gateway. See
vpc
below. - Vswitch
Pulumi.
Ali Cloud. Apig. Inputs. Gateway Vswitch - The virtual switch associated with the Gateway. See
vswitch
below. - Zone
Config Pulumi.Ali Cloud. Apig. Inputs. Gateway Zone Config - Availability Zone Configuration See
zone_config
below.
- Create
Time int - The creation timestamp. Unit: milliseconds.
- Gateway
Name string - The name of the resource
- Log
Config GatewayLog Config Args - Log Configuration See
log_config
below. - Network
Access GatewayConfig Network Access Config Args - Network Access Configuration See
network_access_config
below. - Payment
Type string - The payment type of the resource
- Resource
Group stringId - The ID of the resource group
- Spec string
- Gateway instance specifications
- Status string
- The status of the resource
- map[string]string
- The tag of the resource
- Vpc
Gateway
Vpc Args - The VPC associated with the Gateway. See
vpc
below. - Vswitch
Gateway
Vswitch Args - The virtual switch associated with the Gateway. See
vswitch
below. - Zone
Config GatewayZone Config Args - Availability Zone Configuration See
zone_config
below.
- create
Time Integer - The creation timestamp. Unit: milliseconds.
- gateway
Name String - The name of the resource
- log
Config GatewayLog Config - Log Configuration See
log_config
below. - network
Access GatewayConfig Network Access Config - Network Access Configuration See
network_access_config
below. - payment
Type String - The payment type of the resource
- resource
Group StringId - The ID of the resource group
- spec String
- Gateway instance specifications
- status String
- The status of the resource
- Map<String,String>
- The tag of the resource
- vpc
Gateway
Vpc - The VPC associated with the Gateway. See
vpc
below. - vswitch
Gateway
Vswitch - The virtual switch associated with the Gateway. See
vswitch
below. - zone
Config GatewayZone Config - Availability Zone Configuration See
zone_config
below.
- create
Time number - The creation timestamp. Unit: milliseconds.
- gateway
Name string - The name of the resource
- log
Config GatewayLog Config - Log Configuration See
log_config
below. - network
Access GatewayConfig Network Access Config - Network Access Configuration See
network_access_config
below. - payment
Type string - The payment type of the resource
- resource
Group stringId - The ID of the resource group
- spec string
- Gateway instance specifications
- status string
- The status of the resource
- {[key: string]: string}
- The tag of the resource
- vpc
Gateway
Vpc - The VPC associated with the Gateway. See
vpc
below. - vswitch
Gateway
Vswitch - The virtual switch associated with the Gateway. See
vswitch
below. - zone
Config GatewayZone Config - Availability Zone Configuration See
zone_config
below.
- create_
time int - The creation timestamp. Unit: milliseconds.
- gateway_
name str - The name of the resource
- log_
config GatewayLog Config Args - Log Configuration See
log_config
below. - network_
access_ Gatewayconfig Network Access Config Args - Network Access Configuration See
network_access_config
below. - payment_
type str - The payment type of the resource
- resource_
group_ strid - The ID of the resource group
- spec str
- Gateway instance specifications
- status str
- The status of the resource
- Mapping[str, str]
- The tag of the resource
- vpc
Gateway
Vpc Args - The VPC associated with the Gateway. See
vpc
below. - vswitch
Gateway
Vswitch Args - The virtual switch associated with the Gateway. See
vswitch
below. - zone_
config GatewayZone Config Args - Availability Zone Configuration See
zone_config
below.
- create
Time Number - The creation timestamp. Unit: milliseconds.
- gateway
Name String - The name of the resource
- log
Config Property Map - Log Configuration See
log_config
below. - network
Access Property MapConfig - Network Access Configuration See
network_access_config
below. - payment
Type String - The payment type of the resource
- resource
Group StringId - The ID of the resource group
- spec String
- Gateway instance specifications
- status String
- The status of the resource
- Map<String>
- The tag of the resource
- vpc Property Map
- The VPC associated with the Gateway. See
vpc
below. - vswitch Property Map
- The virtual switch associated with the Gateway. See
vswitch
below. - zone
Config Property Map - Availability Zone Configuration See
zone_config
below.
Supporting Types
GatewayLogConfig, GatewayLogConfigArgs
- Sls
Pulumi.
Ali Cloud. Apig. Inputs. Gateway Log Config Sls - Sls See
sls
below.
- Sls
Gateway
Log Config Sls - Sls See
sls
below.
- sls
Gateway
Log Config Sls - Sls See
sls
below.
- sls
Gateway
Log Config Sls - Sls See
sls
below.
- sls
Gateway
Log Config Sls - Sls See
sls
below.
- sls Property Map
- Sls See
sls
below.
GatewayLogConfigSls, GatewayLogConfigSlsArgs
- Enable bool
- Enable Log Service
- Enable bool
- Enable Log Service
- enable Boolean
- Enable Log Service
- enable boolean
- Enable Log Service
- enable bool
- Enable Log Service
- enable Boolean
- Enable Log Service
GatewayNetworkAccessConfig, GatewayNetworkAccessConfigArgs
- Type string
- Network Access Type
- Type string
- Network Access Type
- type String
- Network Access Type
- type string
- Network Access Type
- type str
- Network Access Type
- type String
- Network Access Type
GatewayVpc, GatewayVpcArgs
GatewayVswitch, GatewayVswitchArgs
- name str
- The name of the VPC gateway.
- vswitch_
id str - The ID of the virtual switch.
GatewayZoneConfig, GatewayZoneConfigArgs
- Select
Option string - Availability Zone Options
- Select
Option string - Availability Zone Options
- select
Option String - Availability Zone Options
- select
Option string - Availability Zone Options
- select_
option str - Availability Zone Options
- select
Option String - Availability Zone Options
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.