@@ -52,6 +52,11 @@ import {
52
52
DeleteConnectorCommandInput ,
53
53
DeleteConnectorCommandOutput ,
54
54
} from "./commands/DeleteConnectorCommand" ;
55
+ import {
56
+ DeleteHostKeyCommand ,
57
+ DeleteHostKeyCommandInput ,
58
+ DeleteHostKeyCommandOutput ,
59
+ } from "./commands/DeleteHostKeyCommand" ;
55
60
import {
56
61
DeleteProfileCommand ,
57
62
DeleteProfileCommandInput ,
@@ -98,6 +103,11 @@ import {
98
103
DescribeExecutionCommandInput ,
99
104
DescribeExecutionCommandOutput ,
100
105
} from "./commands/DescribeExecutionCommand" ;
106
+ import {
107
+ DescribeHostKeyCommand ,
108
+ DescribeHostKeyCommandInput ,
109
+ DescribeHostKeyCommandOutput ,
110
+ } from "./commands/DescribeHostKeyCommand" ;
101
111
import {
102
112
DescribeProfileCommand ,
103
113
DescribeProfileCommandInput ,
@@ -128,6 +138,11 @@ import {
128
138
ImportCertificateCommandInput ,
129
139
ImportCertificateCommandOutput ,
130
140
} from "./commands/ImportCertificateCommand" ;
141
+ import {
142
+ ImportHostKeyCommand ,
143
+ ImportHostKeyCommandInput ,
144
+ ImportHostKeyCommandOutput ,
145
+ } from "./commands/ImportHostKeyCommand" ;
131
146
import {
132
147
ImportSshPublicKeyCommand ,
133
148
ImportSshPublicKeyCommandInput ,
@@ -158,6 +173,11 @@ import {
158
173
ListExecutionsCommandInput ,
159
174
ListExecutionsCommandOutput ,
160
175
} from "./commands/ListExecutionsCommand" ;
176
+ import {
177
+ ListHostKeysCommand ,
178
+ ListHostKeysCommandInput ,
179
+ ListHostKeysCommandOutput ,
180
+ } from "./commands/ListHostKeysCommand" ;
161
181
import {
162
182
ListProfilesCommand ,
163
183
ListProfilesCommandInput ,
@@ -223,6 +243,11 @@ import {
223
243
UpdateConnectorCommandInput ,
224
244
UpdateConnectorCommandOutput ,
225
245
} from "./commands/UpdateConnectorCommand" ;
246
+ import {
247
+ UpdateHostKeyCommand ,
248
+ UpdateHostKeyCommandInput ,
249
+ UpdateHostKeyCommandOutput ,
250
+ } from "./commands/UpdateHostKeyCommand" ;
226
251
import {
227
252
UpdateProfileCommand ,
228
253
UpdateProfileCommandInput ,
@@ -613,6 +638,38 @@ export class Transfer extends TransferClient {
613
638
}
614
639
}
615
640
641
+ /**
642
+ * <p>Deletes the host key that's specified in the <code>HoskKeyId</code> parameter.</p>
643
+ */
644
+ public deleteHostKey (
645
+ args : DeleteHostKeyCommandInput ,
646
+ options ?: __HttpHandlerOptions
647
+ ) : Promise < DeleteHostKeyCommandOutput > ;
648
+ public deleteHostKey (
649
+ args : DeleteHostKeyCommandInput ,
650
+ cb : ( err : any , data ?: DeleteHostKeyCommandOutput ) => void
651
+ ) : void ;
652
+ public deleteHostKey (
653
+ args : DeleteHostKeyCommandInput ,
654
+ options : __HttpHandlerOptions ,
655
+ cb : ( err : any , data ?: DeleteHostKeyCommandOutput ) => void
656
+ ) : void ;
657
+ public deleteHostKey (
658
+ args : DeleteHostKeyCommandInput ,
659
+ optionsOrCb ?: __HttpHandlerOptions | ( ( err : any , data ?: DeleteHostKeyCommandOutput ) => void ) ,
660
+ cb ?: ( err : any , data ?: DeleteHostKeyCommandOutput ) => void
661
+ ) : Promise < DeleteHostKeyCommandOutput > | void {
662
+ const command = new DeleteHostKeyCommand ( args ) ;
663
+ if ( typeof optionsOrCb === "function" ) {
664
+ this . send ( command , optionsOrCb ) ;
665
+ } else if ( typeof cb === "function" ) {
666
+ if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb } ` ) ;
667
+ this . send ( command , optionsOrCb || { } , cb ) ;
668
+ } else {
669
+ return this . send ( command , optionsOrCb ) ;
670
+ }
671
+ }
672
+
616
673
/**
617
674
* <p>Deletes the profile that's specified in the <code>ProfileId</code> parameter.</p>
618
675
*/
@@ -938,6 +995,38 @@ export class Transfer extends TransferClient {
938
995
}
939
996
}
940
997
998
+ /**
999
+ * <p>Returns the details of the host key that's specified by the <code>HostKeyId</code> and <code>ServerId</code>.</p>
1000
+ */
1001
+ public describeHostKey (
1002
+ args : DescribeHostKeyCommandInput ,
1003
+ options ?: __HttpHandlerOptions
1004
+ ) : Promise < DescribeHostKeyCommandOutput > ;
1005
+ public describeHostKey (
1006
+ args : DescribeHostKeyCommandInput ,
1007
+ cb : ( err : any , data ?: DescribeHostKeyCommandOutput ) => void
1008
+ ) : void ;
1009
+ public describeHostKey (
1010
+ args : DescribeHostKeyCommandInput ,
1011
+ options : __HttpHandlerOptions ,
1012
+ cb : ( err : any , data ?: DescribeHostKeyCommandOutput ) => void
1013
+ ) : void ;
1014
+ public describeHostKey (
1015
+ args : DescribeHostKeyCommandInput ,
1016
+ optionsOrCb ?: __HttpHandlerOptions | ( ( err : any , data ?: DescribeHostKeyCommandOutput ) => void ) ,
1017
+ cb ?: ( err : any , data ?: DescribeHostKeyCommandOutput ) => void
1018
+ ) : Promise < DescribeHostKeyCommandOutput > | void {
1019
+ const command = new DescribeHostKeyCommand ( args ) ;
1020
+ if ( typeof optionsOrCb === "function" ) {
1021
+ this . send ( command , optionsOrCb ) ;
1022
+ } else if ( typeof cb === "function" ) {
1023
+ if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb } ` ) ;
1024
+ this . send ( command , optionsOrCb || { } , cb ) ;
1025
+ } else {
1026
+ return this . send ( command , optionsOrCb ) ;
1027
+ }
1028
+ }
1029
+
941
1030
/**
942
1031
* <p>Returns the details of the profile that's specified by the <code>ProfileId</code>.</p>
943
1032
*/
@@ -1141,6 +1230,38 @@ export class Transfer extends TransferClient {
1141
1230
}
1142
1231
}
1143
1232
1233
+ /**
1234
+ * <p>Adds a host key to the server specified by the <code>ServerId</code> parameter.</p>
1235
+ */
1236
+ public importHostKey (
1237
+ args : ImportHostKeyCommandInput ,
1238
+ options ?: __HttpHandlerOptions
1239
+ ) : Promise < ImportHostKeyCommandOutput > ;
1240
+ public importHostKey (
1241
+ args : ImportHostKeyCommandInput ,
1242
+ cb : ( err : any , data ?: ImportHostKeyCommandOutput ) => void
1243
+ ) : void ;
1244
+ public importHostKey (
1245
+ args : ImportHostKeyCommandInput ,
1246
+ options : __HttpHandlerOptions ,
1247
+ cb : ( err : any , data ?: ImportHostKeyCommandOutput ) => void
1248
+ ) : void ;
1249
+ public importHostKey (
1250
+ args : ImportHostKeyCommandInput ,
1251
+ optionsOrCb ?: __HttpHandlerOptions | ( ( err : any , data ?: ImportHostKeyCommandOutput ) => void ) ,
1252
+ cb ?: ( err : any , data ?: ImportHostKeyCommandOutput ) => void
1253
+ ) : Promise < ImportHostKeyCommandOutput > | void {
1254
+ const command = new ImportHostKeyCommand ( args ) ;
1255
+ if ( typeof optionsOrCb === "function" ) {
1256
+ this . send ( command , optionsOrCb ) ;
1257
+ } else if ( typeof cb === "function" ) {
1258
+ if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb } ` ) ;
1259
+ this . send ( command , optionsOrCb || { } , cb ) ;
1260
+ } else {
1261
+ return this . send ( command , optionsOrCb ) ;
1262
+ }
1263
+ }
1264
+
1144
1265
/**
1145
1266
* <p>Adds a Secure Shell (SSH) public key to a user account identified by a
1146
1267
* <code>UserName</code> value assigned to the specific file transfer protocol-enabled server,
@@ -1343,6 +1464,35 @@ export class Transfer extends TransferClient {
1343
1464
}
1344
1465
}
1345
1466
1467
+ /**
1468
+ * <p>Returns a list of host keys for the server specified by the <code>ServerId</code> paramter.</p>
1469
+ */
1470
+ public listHostKeys (
1471
+ args : ListHostKeysCommandInput ,
1472
+ options ?: __HttpHandlerOptions
1473
+ ) : Promise < ListHostKeysCommandOutput > ;
1474
+ public listHostKeys ( args : ListHostKeysCommandInput , cb : ( err : any , data ?: ListHostKeysCommandOutput ) => void ) : void ;
1475
+ public listHostKeys (
1476
+ args : ListHostKeysCommandInput ,
1477
+ options : __HttpHandlerOptions ,
1478
+ cb : ( err : any , data ?: ListHostKeysCommandOutput ) => void
1479
+ ) : void ;
1480
+ public listHostKeys (
1481
+ args : ListHostKeysCommandInput ,
1482
+ optionsOrCb ?: __HttpHandlerOptions | ( ( err : any , data ?: ListHostKeysCommandOutput ) => void ) ,
1483
+ cb ?: ( err : any , data ?: ListHostKeysCommandOutput ) => void
1484
+ ) : Promise < ListHostKeysCommandOutput > | void {
1485
+ const command = new ListHostKeysCommand ( args ) ;
1486
+ if ( typeof optionsOrCb === "function" ) {
1487
+ this . send ( command , optionsOrCb ) ;
1488
+ } else if ( typeof cb === "function" ) {
1489
+ if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb } ` ) ;
1490
+ this . send ( command , optionsOrCb || { } , cb ) ;
1491
+ } else {
1492
+ return this . send ( command , optionsOrCb ) ;
1493
+ }
1494
+ }
1495
+
1346
1496
/**
1347
1497
* <p>Returns a list of the profiles for your system. If you want to limit the results to a
1348
1498
* certain number, supply a value for the <code>MaxResults</code> parameter. If you ran the
@@ -1934,6 +2084,38 @@ export class Transfer extends TransferClient {
1934
2084
}
1935
2085
}
1936
2086
2087
+ /**
2088
+ * <p>Updates the description for the host key specified by the specified by the <code>ServerId</code> and <code>HostKeyId</code> parameters.</p>
2089
+ */
2090
+ public updateHostKey (
2091
+ args : UpdateHostKeyCommandInput ,
2092
+ options ?: __HttpHandlerOptions
2093
+ ) : Promise < UpdateHostKeyCommandOutput > ;
2094
+ public updateHostKey (
2095
+ args : UpdateHostKeyCommandInput ,
2096
+ cb : ( err : any , data ?: UpdateHostKeyCommandOutput ) => void
2097
+ ) : void ;
2098
+ public updateHostKey (
2099
+ args : UpdateHostKeyCommandInput ,
2100
+ options : __HttpHandlerOptions ,
2101
+ cb : ( err : any , data ?: UpdateHostKeyCommandOutput ) => void
2102
+ ) : void ;
2103
+ public updateHostKey (
2104
+ args : UpdateHostKeyCommandInput ,
2105
+ optionsOrCb ?: __HttpHandlerOptions | ( ( err : any , data ?: UpdateHostKeyCommandOutput ) => void ) ,
2106
+ cb ?: ( err : any , data ?: UpdateHostKeyCommandOutput ) => void
2107
+ ) : Promise < UpdateHostKeyCommandOutput > | void {
2108
+ const command = new UpdateHostKeyCommand ( args ) ;
2109
+ if ( typeof optionsOrCb === "function" ) {
2110
+ this . send ( command , optionsOrCb ) ;
2111
+ } else if ( typeof cb === "function" ) {
2112
+ if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb } ` ) ;
2113
+ this . send ( command , optionsOrCb || { } , cb ) ;
2114
+ } else {
2115
+ return this . send ( command , optionsOrCb ) ;
2116
+ }
2117
+ }
2118
+
1937
2119
/**
1938
2120
* <p>Updates some of the parameters for an existing profile. Provide the <code>ProfileId</code>
1939
2121
* for the profile that you want to update, along with the new values for the parameters to
0 commit comments