@alicloud/vpc20160428 4.1.1 → 5.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.d.ts +3 -76
- package/dist/client.js +4 -144
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +5 -177
package/dist/client.d.ts
CHANGED
|
@@ -11580,54 +11580,6 @@ export declare class GetNatGatewayAttributeResponse extends $tea.Model {
|
|
|
11580
11580
|
[key: string]: any;
|
|
11581
11581
|
});
|
|
11582
11582
|
}
|
|
11583
|
-
export declare class GetNatGatewayConvertStatusRequest extends $tea.Model {
|
|
11584
|
-
natGatewayId?: string;
|
|
11585
|
-
ownerAccount?: string;
|
|
11586
|
-
ownerId?: number;
|
|
11587
|
-
regionId?: string;
|
|
11588
|
-
resourceOwnerAccount?: string;
|
|
11589
|
-
resourceOwnerId?: number;
|
|
11590
|
-
static names(): {
|
|
11591
|
-
[key: string]: string;
|
|
11592
|
-
};
|
|
11593
|
-
static types(): {
|
|
11594
|
-
[key: string]: any;
|
|
11595
|
-
};
|
|
11596
|
-
constructor(map?: {
|
|
11597
|
-
[key: string]: any;
|
|
11598
|
-
});
|
|
11599
|
-
}
|
|
11600
|
-
export declare class GetNatGatewayConvertStatusResponseBody extends $tea.Model {
|
|
11601
|
-
convertSteps?: GetNatGatewayConvertStatusResponseBodyConvertSteps[];
|
|
11602
|
-
dstNatType?: string;
|
|
11603
|
-
natGatewayId?: string;
|
|
11604
|
-
requestId?: string;
|
|
11605
|
-
static names(): {
|
|
11606
|
-
[key: string]: string;
|
|
11607
|
-
};
|
|
11608
|
-
static types(): {
|
|
11609
|
-
[key: string]: any;
|
|
11610
|
-
};
|
|
11611
|
-
constructor(map?: {
|
|
11612
|
-
[key: string]: any;
|
|
11613
|
-
});
|
|
11614
|
-
}
|
|
11615
|
-
export declare class GetNatGatewayConvertStatusResponse extends $tea.Model {
|
|
11616
|
-
headers: {
|
|
11617
|
-
[key: string]: string;
|
|
11618
|
-
};
|
|
11619
|
-
statusCode: number;
|
|
11620
|
-
body: GetNatGatewayConvertStatusResponseBody;
|
|
11621
|
-
static names(): {
|
|
11622
|
-
[key: string]: string;
|
|
11623
|
-
};
|
|
11624
|
-
static types(): {
|
|
11625
|
-
[key: string]: any;
|
|
11626
|
-
};
|
|
11627
|
-
constructor(map?: {
|
|
11628
|
-
[key: string]: any;
|
|
11629
|
-
});
|
|
11630
|
-
}
|
|
11631
11583
|
export declare class GetPhysicalConnectionServiceStatusRequest extends $tea.Model {
|
|
11632
11584
|
ownerAccount?: string;
|
|
11633
11585
|
ownerId?: number;
|
|
@@ -13092,6 +13044,7 @@ export declare class ListVpcEndpointServicesByEndUserResponseBody extends $tea.M
|
|
|
13092
13044
|
nextToken?: string;
|
|
13093
13045
|
requestId?: string;
|
|
13094
13046
|
services?: ListVpcEndpointServicesByEndUserResponseBodyServices[];
|
|
13047
|
+
totalCount?: string;
|
|
13095
13048
|
static names(): {
|
|
13096
13049
|
[key: string]: string;
|
|
13097
13050
|
};
|
|
@@ -23199,20 +23152,6 @@ export declare class GetNatGatewayAttributeResponseBodySnatTable extends $tea.Mo
|
|
|
23199
23152
|
[key: string]: any;
|
|
23200
23153
|
});
|
|
23201
23154
|
}
|
|
23202
|
-
export declare class GetNatGatewayConvertStatusResponseBodyConvertSteps extends $tea.Model {
|
|
23203
|
-
stepName?: string;
|
|
23204
|
-
stepStartTime?: string;
|
|
23205
|
-
stepStatus?: string;
|
|
23206
|
-
static names(): {
|
|
23207
|
-
[key: string]: string;
|
|
23208
|
-
};
|
|
23209
|
-
static types(): {
|
|
23210
|
-
[key: string]: any;
|
|
23211
|
-
};
|
|
23212
|
-
constructor(map?: {
|
|
23213
|
-
[key: string]: any;
|
|
23214
|
-
});
|
|
23215
|
-
}
|
|
23216
23155
|
export declare class GetVpcGatewayEndpointAttributeResponseBodyTags extends $tea.Model {
|
|
23217
23156
|
key?: string;
|
|
23218
23157
|
value?: string;
|
|
@@ -25069,7 +25008,6 @@ export default class Client extends OpenApi {
|
|
|
25069
25008
|
*/
|
|
25070
25009
|
associateVpcCidrBlock(request: AssociateVpcCidrBlockRequest): Promise<AssociateVpcCidrBlockResponse>;
|
|
25071
25010
|
/**
|
|
25072
|
-
* ## Usage notes
|
|
25073
25011
|
* Before you associate a VPN gateway with an SSL certificate, take note of the following items:
|
|
25074
25012
|
* * You can associate only VPN gateways of the ShangMi (SM) type with SSL certificates. You need to associate a VPN gateway of the SM type with two SSL certificates, one as the encryption certificate and the other as the signature certificate.
|
|
25075
25013
|
* * The SSL certificates must use the SM algorithm.
|
|
@@ -25088,7 +25026,6 @@ export default class Client extends OpenApi {
|
|
|
25088
25026
|
*/
|
|
25089
25027
|
associateVpnGatewayWithCertificateWithOptions(request: AssociateVpnGatewayWithCertificateRequest, runtime: $Util.RuntimeOptions): Promise<AssociateVpnGatewayWithCertificateResponse>;
|
|
25090
25028
|
/**
|
|
25091
|
-
* ## Usage notes
|
|
25092
25029
|
* Before you associate a VPN gateway with an SSL certificate, take note of the following items:
|
|
25093
25030
|
* * You can associate only VPN gateways of the ShangMi (SM) type with SSL certificates. You need to associate a VPN gateway of the SM type with two SSL certificates, one as the encryption certificate and the other as the signature certificate.
|
|
25094
25031
|
* * The SSL certificates must use the SM algorithm.
|
|
@@ -26171,9 +26108,8 @@ export default class Client extends OpenApi {
|
|
|
26171
26108
|
*/
|
|
26172
26109
|
createVpconnFromVbr(request: CreateVpconnFromVbrRequest): Promise<CreateVpconnFromVbrResponse>;
|
|
26173
26110
|
/**
|
|
26174
|
-
* # Usage notes
|
|
26175
26111
|
* By default, an IPsec-VPN connection created by calling the `CreateVpnAttachment` operation is not associated with a resource. You can associate an IPsec-VPN connection with a transit router by calling the [CreateTransitRouterVpnAttachment](~~443993~~) operation.
|
|
26176
|
-
*
|
|
26112
|
+
* ### Prerequisites
|
|
26177
26113
|
* Before you create an IPsec-VPN connection, make sure that you created a customer gateway in the region where you want to create the IPsec-VPN connection. For more information, see [CreateCustomerGateway](~~120368~~).
|
|
26178
26114
|
* If you want to add BGP configurations to an IPsec-VPN connection, make sure that an autonomous system number (ASN) is assigned to the customer gateway.
|
|
26179
26115
|
*
|
|
@@ -26183,9 +26119,8 @@ export default class Client extends OpenApi {
|
|
|
26183
26119
|
*/
|
|
26184
26120
|
createVpnAttachmentWithOptions(request: CreateVpnAttachmentRequest, runtime: $Util.RuntimeOptions): Promise<CreateVpnAttachmentResponse>;
|
|
26185
26121
|
/**
|
|
26186
|
-
* # Usage notes
|
|
26187
26122
|
* By default, an IPsec-VPN connection created by calling the `CreateVpnAttachment` operation is not associated with a resource. You can associate an IPsec-VPN connection with a transit router by calling the [CreateTransitRouterVpnAttachment](~~443993~~) operation.
|
|
26188
|
-
*
|
|
26123
|
+
* ### Prerequisites
|
|
26189
26124
|
* Before you create an IPsec-VPN connection, make sure that you created a customer gateway in the region where you want to create the IPsec-VPN connection. For more information, see [CreateCustomerGateway](~~120368~~).
|
|
26190
26125
|
* If you want to add BGP configurations to an IPsec-VPN connection, make sure that an autonomous system number (ASN) is assigned to the customer gateway.
|
|
26191
26126
|
*
|
|
@@ -26194,7 +26129,6 @@ export default class Client extends OpenApi {
|
|
|
26194
26129
|
*/
|
|
26195
26130
|
createVpnAttachment(request: CreateVpnAttachmentRequest): Promise<CreateVpnAttachmentResponse>;
|
|
26196
26131
|
/**
|
|
26197
|
-
* # Usage notes
|
|
26198
26132
|
* * **CreateVpnConnection** is an asynchronous operation. After a request is sent, the system returns a request ID and runs the task in the background. You can call [DescribeVpnGateway](~~73720~~) to query the status of the task.
|
|
26199
26133
|
* * If the VPN gateway is in the **updating** state, the IPsec-VPN connection is being created.
|
|
26200
26134
|
* * If the VPN gateway is in the **active** state, the IPsec-VPN connection is created.
|
|
@@ -26206,7 +26140,6 @@ export default class Client extends OpenApi {
|
|
|
26206
26140
|
*/
|
|
26207
26141
|
createVpnConnectionWithOptions(request: CreateVpnConnectionRequest, runtime: $Util.RuntimeOptions): Promise<CreateVpnConnectionResponse>;
|
|
26208
26142
|
/**
|
|
26209
|
-
* # Usage notes
|
|
26210
26143
|
* * **CreateVpnConnection** is an asynchronous operation. After a request is sent, the system returns a request ID and runs the task in the background. You can call [DescribeVpnGateway](~~73720~~) to query the status of the task.
|
|
26211
26144
|
* * If the VPN gateway is in the **updating** state, the IPsec-VPN connection is being created.
|
|
26212
26145
|
* * If the VPN gateway is in the **active** state, the IPsec-VPN connection is created.
|
|
@@ -27550,7 +27483,6 @@ export default class Client extends OpenApi {
|
|
|
27550
27483
|
dissociateRouteTablesFromVpcGatewayEndpointWithOptions(request: DissociateRouteTablesFromVpcGatewayEndpointRequest, runtime: $Util.RuntimeOptions): Promise<DissociateRouteTablesFromVpcGatewayEndpointResponse>;
|
|
27551
27484
|
dissociateRouteTablesFromVpcGatewayEndpoint(request: DissociateRouteTablesFromVpcGatewayEndpointRequest): Promise<DissociateRouteTablesFromVpcGatewayEndpointResponse>;
|
|
27552
27485
|
/**
|
|
27553
|
-
* ## Usage notes
|
|
27554
27486
|
* * **DissociateVpnGatewayWithCertificate** is an asynchronous operation. After a request is sent, the system returns a request and runs the task in the background. You can call the [DescribeVpnGateway](~~73720~~) operation to query the status the task.
|
|
27555
27487
|
* * If the VPN gateway is in the **updating** state, the SSL certificate is being disassociated from the VPN gateway.
|
|
27556
27488
|
* * If the VPN gateway is in the **active** state, the SSL certificate is disassociated from the VPN gateway.
|
|
@@ -27562,7 +27494,6 @@ export default class Client extends OpenApi {
|
|
|
27562
27494
|
*/
|
|
27563
27495
|
dissociateVpnGatewayWithCertificateWithOptions(request: DissociateVpnGatewayWithCertificateRequest, runtime: $Util.RuntimeOptions): Promise<DissociateVpnGatewayWithCertificateResponse>;
|
|
27564
27496
|
/**
|
|
27565
|
-
* ## Usage notes
|
|
27566
27497
|
* * **DissociateVpnGatewayWithCertificate** is an asynchronous operation. After a request is sent, the system returns a request and runs the task in the background. You can call the [DescribeVpnGateway](~~73720~~) operation to query the status the task.
|
|
27567
27498
|
* * If the VPN gateway is in the **updating** state, the SSL certificate is being disassociated from the VPN gateway.
|
|
27568
27499
|
* * If the VPN gateway is in the **active** state, the SSL certificate is disassociated from the VPN gateway.
|
|
@@ -27639,8 +27570,6 @@ export default class Client extends OpenApi {
|
|
|
27639
27570
|
* @return GetNatGatewayAttributeResponse
|
|
27640
27571
|
*/
|
|
27641
27572
|
getNatGatewayAttribute(request: GetNatGatewayAttributeRequest): Promise<GetNatGatewayAttributeResponse>;
|
|
27642
|
-
getNatGatewayConvertStatusWithOptions(request: GetNatGatewayConvertStatusRequest, runtime: $Util.RuntimeOptions): Promise<GetNatGatewayConvertStatusResponse>;
|
|
27643
|
-
getNatGatewayConvertStatus(request: GetNatGatewayConvertStatusRequest): Promise<GetNatGatewayConvertStatusResponse>;
|
|
27644
27573
|
/**
|
|
27645
27574
|
* You can call this API operation to query the status of outbound data transfer billing for the current account. For more information about outbound data transfer billing, see [Outbound data transfer billing](~~274385~~) and [Billing](~~54582~~).
|
|
27646
27575
|
*
|
|
@@ -27813,7 +27742,6 @@ export default class Client extends OpenApi {
|
|
|
27813
27742
|
listVpcGatewayEndpointsWithOptions(request: ListVpcGatewayEndpointsRequest, runtime: $Util.RuntimeOptions): Promise<ListVpcGatewayEndpointsResponse>;
|
|
27814
27743
|
listVpcGatewayEndpoints(request: ListVpcGatewayEndpointsRequest): Promise<ListVpcGatewayEndpointsResponse>;
|
|
27815
27744
|
/**
|
|
27816
|
-
* ## Usage notes
|
|
27817
27745
|
* When you call **ListVpnCertificateAssociations**, take note of the following information:
|
|
27818
27746
|
* * If you specify only **RegionId**, the SSL certificates associated with all VPN gateways in the specified region are queried.
|
|
27819
27747
|
* * If you specify **RegionId** and **CertificateType**, the SSL certificates of the specified type that are associated with the VPN gateways in the specified region are queried.
|
|
@@ -27826,7 +27754,6 @@ export default class Client extends OpenApi {
|
|
|
27826
27754
|
*/
|
|
27827
27755
|
listVpnCertificateAssociationsWithOptions(request: ListVpnCertificateAssociationsRequest, runtime: $Util.RuntimeOptions): Promise<ListVpnCertificateAssociationsResponse>;
|
|
27828
27756
|
/**
|
|
27829
|
-
* ## Usage notes
|
|
27830
27757
|
* When you call **ListVpnCertificateAssociations**, take note of the following information:
|
|
27831
27758
|
* * If you specify only **RegionId**, the SSL certificates associated with all VPN gateways in the specified region are queried.
|
|
27832
27759
|
* * If you specify **RegionId** and **CertificateType**, the SSL certificates of the specified type that are associated with the VPN gateways in the specified region are queried.
|
package/dist/client.js
CHANGED
|
@@ -16899,74 +16899,6 @@ class GetNatGatewayAttributeResponse extends $tea.Model {
|
|
|
16899
16899
|
}
|
|
16900
16900
|
}
|
|
16901
16901
|
exports.GetNatGatewayAttributeResponse = GetNatGatewayAttributeResponse;
|
|
16902
|
-
class GetNatGatewayConvertStatusRequest extends $tea.Model {
|
|
16903
|
-
constructor(map) {
|
|
16904
|
-
super(map);
|
|
16905
|
-
}
|
|
16906
|
-
static names() {
|
|
16907
|
-
return {
|
|
16908
|
-
natGatewayId: 'NatGatewayId',
|
|
16909
|
-
ownerAccount: 'OwnerAccount',
|
|
16910
|
-
ownerId: 'OwnerId',
|
|
16911
|
-
regionId: 'RegionId',
|
|
16912
|
-
resourceOwnerAccount: 'ResourceOwnerAccount',
|
|
16913
|
-
resourceOwnerId: 'ResourceOwnerId',
|
|
16914
|
-
};
|
|
16915
|
-
}
|
|
16916
|
-
static types() {
|
|
16917
|
-
return {
|
|
16918
|
-
natGatewayId: 'string',
|
|
16919
|
-
ownerAccount: 'string',
|
|
16920
|
-
ownerId: 'number',
|
|
16921
|
-
regionId: 'string',
|
|
16922
|
-
resourceOwnerAccount: 'string',
|
|
16923
|
-
resourceOwnerId: 'number',
|
|
16924
|
-
};
|
|
16925
|
-
}
|
|
16926
|
-
}
|
|
16927
|
-
exports.GetNatGatewayConvertStatusRequest = GetNatGatewayConvertStatusRequest;
|
|
16928
|
-
class GetNatGatewayConvertStatusResponseBody extends $tea.Model {
|
|
16929
|
-
constructor(map) {
|
|
16930
|
-
super(map);
|
|
16931
|
-
}
|
|
16932
|
-
static names() {
|
|
16933
|
-
return {
|
|
16934
|
-
convertSteps: 'ConvertSteps',
|
|
16935
|
-
dstNatType: 'DstNatType',
|
|
16936
|
-
natGatewayId: 'NatGatewayId',
|
|
16937
|
-
requestId: 'RequestId',
|
|
16938
|
-
};
|
|
16939
|
-
}
|
|
16940
|
-
static types() {
|
|
16941
|
-
return {
|
|
16942
|
-
convertSteps: { 'type': 'array', 'itemType': GetNatGatewayConvertStatusResponseBodyConvertSteps },
|
|
16943
|
-
dstNatType: 'string',
|
|
16944
|
-
natGatewayId: 'string',
|
|
16945
|
-
requestId: 'string',
|
|
16946
|
-
};
|
|
16947
|
-
}
|
|
16948
|
-
}
|
|
16949
|
-
exports.GetNatGatewayConvertStatusResponseBody = GetNatGatewayConvertStatusResponseBody;
|
|
16950
|
-
class GetNatGatewayConvertStatusResponse extends $tea.Model {
|
|
16951
|
-
constructor(map) {
|
|
16952
|
-
super(map);
|
|
16953
|
-
}
|
|
16954
|
-
static names() {
|
|
16955
|
-
return {
|
|
16956
|
-
headers: 'headers',
|
|
16957
|
-
statusCode: 'statusCode',
|
|
16958
|
-
body: 'body',
|
|
16959
|
-
};
|
|
16960
|
-
}
|
|
16961
|
-
static types() {
|
|
16962
|
-
return {
|
|
16963
|
-
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
16964
|
-
statusCode: 'number',
|
|
16965
|
-
body: GetNatGatewayConvertStatusResponseBody,
|
|
16966
|
-
};
|
|
16967
|
-
}
|
|
16968
|
-
}
|
|
16969
|
-
exports.GetNatGatewayConvertStatusResponse = GetNatGatewayConvertStatusResponse;
|
|
16970
16902
|
class GetPhysicalConnectionServiceStatusRequest extends $tea.Model {
|
|
16971
16903
|
constructor(map) {
|
|
16972
16904
|
super(map);
|
|
@@ -19103,6 +19035,7 @@ class ListVpcEndpointServicesByEndUserResponseBody extends $tea.Model {
|
|
|
19103
19035
|
nextToken: 'NextToken',
|
|
19104
19036
|
requestId: 'RequestId',
|
|
19105
19037
|
services: 'Services',
|
|
19038
|
+
totalCount: 'TotalCount',
|
|
19106
19039
|
};
|
|
19107
19040
|
}
|
|
19108
19041
|
static types() {
|
|
@@ -19111,6 +19044,7 @@ class ListVpcEndpointServicesByEndUserResponseBody extends $tea.Model {
|
|
|
19111
19044
|
nextToken: 'string',
|
|
19112
19045
|
requestId: 'string',
|
|
19113
19046
|
services: { 'type': 'array', 'itemType': ListVpcEndpointServicesByEndUserResponseBodyServices },
|
|
19047
|
+
totalCount: 'string',
|
|
19114
19048
|
};
|
|
19115
19049
|
}
|
|
19116
19050
|
}
|
|
@@ -33845,26 +33779,6 @@ class GetNatGatewayAttributeResponseBodySnatTable extends $tea.Model {
|
|
|
33845
33779
|
}
|
|
33846
33780
|
}
|
|
33847
33781
|
exports.GetNatGatewayAttributeResponseBodySnatTable = GetNatGatewayAttributeResponseBodySnatTable;
|
|
33848
|
-
class GetNatGatewayConvertStatusResponseBodyConvertSteps extends $tea.Model {
|
|
33849
|
-
constructor(map) {
|
|
33850
|
-
super(map);
|
|
33851
|
-
}
|
|
33852
|
-
static names() {
|
|
33853
|
-
return {
|
|
33854
|
-
stepName: 'StepName',
|
|
33855
|
-
stepStartTime: 'StepStartTime',
|
|
33856
|
-
stepStatus: 'StepStatus',
|
|
33857
|
-
};
|
|
33858
|
-
}
|
|
33859
|
-
static types() {
|
|
33860
|
-
return {
|
|
33861
|
-
stepName: 'string',
|
|
33862
|
-
stepStartTime: 'string',
|
|
33863
|
-
stepStatus: 'string',
|
|
33864
|
-
};
|
|
33865
|
-
}
|
|
33866
|
-
}
|
|
33867
|
-
exports.GetNatGatewayConvertStatusResponseBodyConvertSteps = GetNatGatewayConvertStatusResponseBodyConvertSteps;
|
|
33868
33782
|
class GetVpcGatewayEndpointAttributeResponseBodyTags extends $tea.Model {
|
|
33869
33783
|
constructor(map) {
|
|
33870
33784
|
super(map);
|
|
@@ -37843,7 +37757,6 @@ class Client extends openapi_client_1.default {
|
|
|
37843
37757
|
return await this.associateVpcCidrBlockWithOptions(request, runtime);
|
|
37844
37758
|
}
|
|
37845
37759
|
/**
|
|
37846
|
-
* ## Usage notes
|
|
37847
37760
|
* Before you associate a VPN gateway with an SSL certificate, take note of the following items:
|
|
37848
37761
|
* * You can associate only VPN gateways of the ShangMi (SM) type with SSL certificates. You need to associate a VPN gateway of the SM type with two SSL certificates, one as the encryption certificate and the other as the signature certificate.
|
|
37849
37762
|
* * The SSL certificates must use the SM algorithm.
|
|
@@ -37898,7 +37811,6 @@ class Client extends openapi_client_1.default {
|
|
|
37898
37811
|
return $tea.cast(await this.callApi(params, req, runtime), new AssociateVpnGatewayWithCertificateResponse({}));
|
|
37899
37812
|
}
|
|
37900
37813
|
/**
|
|
37901
|
-
* ## Usage notes
|
|
37902
37814
|
* Before you associate a VPN gateway with an SSL certificate, take note of the following items:
|
|
37903
37815
|
* * You can associate only VPN gateways of the ShangMi (SM) type with SSL certificates. You need to associate a VPN gateway of the SM type with two SSL certificates, one as the encryption certificate and the other as the signature certificate.
|
|
37904
37816
|
* * The SSL certificates must use the SM algorithm.
|
|
@@ -42362,9 +42274,8 @@ class Client extends openapi_client_1.default {
|
|
|
42362
42274
|
return await this.createVpconnFromVbrWithOptions(request, runtime);
|
|
42363
42275
|
}
|
|
42364
42276
|
/**
|
|
42365
|
-
* # Usage notes
|
|
42366
42277
|
* By default, an IPsec-VPN connection created by calling the `CreateVpnAttachment` operation is not associated with a resource. You can associate an IPsec-VPN connection with a transit router by calling the [CreateTransitRouterVpnAttachment](~~443993~~) operation.
|
|
42367
|
-
*
|
|
42278
|
+
* ### Prerequisites
|
|
42368
42279
|
* Before you create an IPsec-VPN connection, make sure that you created a customer gateway in the region where you want to create the IPsec-VPN connection. For more information, see [CreateCustomerGateway](~~120368~~).
|
|
42369
42280
|
* If you want to add BGP configurations to an IPsec-VPN connection, make sure that an autonomous system number (ASN) is assigned to the customer gateway.
|
|
42370
42281
|
*
|
|
@@ -42452,9 +42363,8 @@ class Client extends openapi_client_1.default {
|
|
|
42452
42363
|
return $tea.cast(await this.callApi(params, req, runtime), new CreateVpnAttachmentResponse({}));
|
|
42453
42364
|
}
|
|
42454
42365
|
/**
|
|
42455
|
-
* # Usage notes
|
|
42456
42366
|
* By default, an IPsec-VPN connection created by calling the `CreateVpnAttachment` operation is not associated with a resource. You can associate an IPsec-VPN connection with a transit router by calling the [CreateTransitRouterVpnAttachment](~~443993~~) operation.
|
|
42457
|
-
*
|
|
42367
|
+
* ### Prerequisites
|
|
42458
42368
|
* Before you create an IPsec-VPN connection, make sure that you created a customer gateway in the region where you want to create the IPsec-VPN connection. For more information, see [CreateCustomerGateway](~~120368~~).
|
|
42459
42369
|
* If you want to add BGP configurations to an IPsec-VPN connection, make sure that an autonomous system number (ASN) is assigned to the customer gateway.
|
|
42460
42370
|
*
|
|
@@ -42466,7 +42376,6 @@ class Client extends openapi_client_1.default {
|
|
|
42466
42376
|
return await this.createVpnAttachmentWithOptions(request, runtime);
|
|
42467
42377
|
}
|
|
42468
42378
|
/**
|
|
42469
|
-
* # Usage notes
|
|
42470
42379
|
* * **CreateVpnConnection** is an asynchronous operation. After a request is sent, the system returns a request ID and runs the task in the background. You can call [DescribeVpnGateway](~~73720~~) to query the status of the task.
|
|
42471
42380
|
* * If the VPN gateway is in the **updating** state, the IPsec-VPN connection is being created.
|
|
42472
42381
|
* * If the VPN gateway is in the **active** state, the IPsec-VPN connection is created.
|
|
@@ -42569,7 +42478,6 @@ class Client extends openapi_client_1.default {
|
|
|
42569
42478
|
return $tea.cast(await this.callApi(params, req, runtime), new CreateVpnConnectionResponse({}));
|
|
42570
42479
|
}
|
|
42571
42480
|
/**
|
|
42572
|
-
* # Usage notes
|
|
42573
42481
|
* * **CreateVpnConnection** is an asynchronous operation. After a request is sent, the system returns a request ID and runs the task in the background. You can call [DescribeVpnGateway](~~73720~~) to query the status of the task.
|
|
42574
42482
|
* * If the VPN gateway is in the **updating** state, the IPsec-VPN connection is being created.
|
|
42575
42483
|
* * If the VPN gateway is in the **active** state, the IPsec-VPN connection is created.
|
|
@@ -50175,7 +50083,6 @@ class Client extends openapi_client_1.default {
|
|
|
50175
50083
|
return await this.dissociateRouteTablesFromVpcGatewayEndpointWithOptions(request, runtime);
|
|
50176
50084
|
}
|
|
50177
50085
|
/**
|
|
50178
|
-
* ## Usage notes
|
|
50179
50086
|
* * **DissociateVpnGatewayWithCertificate** is an asynchronous operation. After a request is sent, the system returns a request and runs the task in the background. You can call the [DescribeVpnGateway](~~73720~~) operation to query the status the task.
|
|
50180
50087
|
* * If the VPN gateway is in the **updating** state, the SSL certificate is being disassociated from the VPN gateway.
|
|
50181
50088
|
* * If the VPN gateway is in the **active** state, the SSL certificate is disassociated from the VPN gateway.
|
|
@@ -50223,7 +50130,6 @@ class Client extends openapi_client_1.default {
|
|
|
50223
50130
|
return $tea.cast(await this.callApi(params, req, runtime), new DissociateVpnGatewayWithCertificateResponse({}));
|
|
50224
50131
|
}
|
|
50225
50132
|
/**
|
|
50226
|
-
* ## Usage notes
|
|
50227
50133
|
* * **DissociateVpnGatewayWithCertificate** is an asynchronous operation. After a request is sent, the system returns a request and runs the task in the background. You can call the [DescribeVpnGateway](~~73720~~) operation to query the status the task.
|
|
50228
50134
|
* * If the VPN gateway is in the **updating** state, the SSL certificate is being disassociated from the VPN gateway.
|
|
50229
50135
|
* * If the VPN gateway is in the **active** state, the SSL certificate is disassociated from the VPN gateway.
|
|
@@ -50678,50 +50584,6 @@ class Client extends openapi_client_1.default {
|
|
|
50678
50584
|
let runtime = new $Util.RuntimeOptions({});
|
|
50679
50585
|
return await this.getNatGatewayAttributeWithOptions(request, runtime);
|
|
50680
50586
|
}
|
|
50681
|
-
async getNatGatewayConvertStatusWithOptions(request, runtime) {
|
|
50682
|
-
tea_util_1.default.validateModel(request);
|
|
50683
|
-
let query = {};
|
|
50684
|
-
if (!tea_util_1.default.isUnset(request.natGatewayId)) {
|
|
50685
|
-
query["NatGatewayId"] = request.natGatewayId;
|
|
50686
|
-
}
|
|
50687
|
-
if (!tea_util_1.default.isUnset(request.ownerAccount)) {
|
|
50688
|
-
query["OwnerAccount"] = request.ownerAccount;
|
|
50689
|
-
}
|
|
50690
|
-
if (!tea_util_1.default.isUnset(request.ownerId)) {
|
|
50691
|
-
query["OwnerId"] = request.ownerId;
|
|
50692
|
-
}
|
|
50693
|
-
if (!tea_util_1.default.isUnset(request.regionId)) {
|
|
50694
|
-
query["RegionId"] = request.regionId;
|
|
50695
|
-
}
|
|
50696
|
-
if (!tea_util_1.default.isUnset(request.regionId)) {
|
|
50697
|
-
query["RegionId"] = request.regionId;
|
|
50698
|
-
}
|
|
50699
|
-
if (!tea_util_1.default.isUnset(request.resourceOwnerAccount)) {
|
|
50700
|
-
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
50701
|
-
}
|
|
50702
|
-
if (!tea_util_1.default.isUnset(request.resourceOwnerId)) {
|
|
50703
|
-
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
50704
|
-
}
|
|
50705
|
-
let req = new $OpenApi.OpenApiRequest({
|
|
50706
|
-
query: openapi_util_1.default.query(query),
|
|
50707
|
-
});
|
|
50708
|
-
let params = new $OpenApi.Params({
|
|
50709
|
-
action: "GetNatGatewayConvertStatus",
|
|
50710
|
-
version: "2016-04-28",
|
|
50711
|
-
protocol: "HTTPS",
|
|
50712
|
-
pathname: "/",
|
|
50713
|
-
method: "POST",
|
|
50714
|
-
authType: "AK",
|
|
50715
|
-
style: "RPC",
|
|
50716
|
-
reqBodyType: "formData",
|
|
50717
|
-
bodyType: "json",
|
|
50718
|
-
});
|
|
50719
|
-
return $tea.cast(await this.callApi(params, req, runtime), new GetNatGatewayConvertStatusResponse({}));
|
|
50720
|
-
}
|
|
50721
|
-
async getNatGatewayConvertStatus(request) {
|
|
50722
|
-
let runtime = new $Util.RuntimeOptions({});
|
|
50723
|
-
return await this.getNatGatewayConvertStatusWithOptions(request, runtime);
|
|
50724
|
-
}
|
|
50725
50587
|
/**
|
|
50726
50588
|
* You can call this API operation to query the status of outbound data transfer billing for the current account. For more information about outbound data transfer billing, see [Outbound data transfer billing](~~274385~~) and [Billing](~~54582~~).
|
|
50727
50589
|
*
|
|
@@ -52359,7 +52221,6 @@ class Client extends openapi_client_1.default {
|
|
|
52359
52221
|
return await this.listVpcGatewayEndpointsWithOptions(request, runtime);
|
|
52360
52222
|
}
|
|
52361
52223
|
/**
|
|
52362
|
-
* ## Usage notes
|
|
52363
52224
|
* When you call **ListVpnCertificateAssociations**, take note of the following information:
|
|
52364
52225
|
* * If you specify only **RegionId**, the SSL certificates associated with all VPN gateways in the specified region are queried.
|
|
52365
52226
|
* * If you specify **RegionId** and **CertificateType**, the SSL certificates of the specified type that are associated with the VPN gateways in the specified region are queried.
|
|
@@ -52408,7 +52269,6 @@ class Client extends openapi_client_1.default {
|
|
|
52408
52269
|
return $tea.cast(await this.callApi(params, req, runtime), new ListVpnCertificateAssociationsResponse({}));
|
|
52409
52270
|
}
|
|
52410
52271
|
/**
|
|
52411
|
-
* ## Usage notes
|
|
52412
52272
|
* When you call **ListVpnCertificateAssociations**, take note of the following information:
|
|
52413
52273
|
* * If you specify only **RegionId**, the SSL certificates associated with all VPN gateways in the specified region are queried.
|
|
52414
52274
|
* * If you specify **RegionId** and **CertificateType**, the SSL certificates of the specified type that are associated with the VPN gateways in the specified region are queried.
|