Skip to content

Commit e14e08b

Browse files
author
awstools
committed
feat(client-transfer): Adds support for the customer to send custom HTTP headers and configure an AS2 Connector to receive Asynchronous MDNs from their trading partner
1 parent 7163f9d commit e14e08b

10 files changed

Lines changed: 271 additions & 67 deletions

File tree

clients/client-transfer/src/commands/CreateConnectorCommand.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,15 @@ export interface CreateConnectorCommandOutput extends CreateConnectorResponse, _
4646
* EncryptionAlgorithm: "AES128_CBC" || "AES192_CBC" || "AES256_CBC" || "DES_EDE3_CBC" || "NONE",
4747
* SigningAlgorithm: "SHA256" || "SHA384" || "SHA512" || "SHA1" || "NONE",
4848
* MdnSigningAlgorithm: "SHA256" || "SHA384" || "SHA512" || "SHA1" || "NONE" || "DEFAULT",
49-
* MdnResponse: "SYNC" || "NONE",
49+
* MdnResponse: "SYNC" || "NONE" || "ASYNC",
5050
* BasicAuthSecretId: "STRING_VALUE",
5151
* PreserveContentType: "ENABLED" || "DISABLED",
52+
* AsyncMdnConfig: { // As2AsyncMdnConnectorConfig
53+
* Url: "STRING_VALUE",
54+
* ServerIds: [ // As2AsyncMdnServerIds
55+
* "STRING_VALUE",
56+
* ],
57+
* },
5258
* },
5359
* AccessRole: "STRING_VALUE", // required
5460
* LoggingRole: "STRING_VALUE",

clients/client-transfer/src/commands/DescribeConnectorCommand.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,15 @@ export interface DescribeConnectorCommandOutput extends DescribeConnectorRespons
5454
* // EncryptionAlgorithm: "AES128_CBC" || "AES192_CBC" || "AES256_CBC" || "DES_EDE3_CBC" || "NONE",
5555
* // SigningAlgorithm: "SHA256" || "SHA384" || "SHA512" || "SHA1" || "NONE",
5656
* // MdnSigningAlgorithm: "SHA256" || "SHA384" || "SHA512" || "SHA1" || "NONE" || "DEFAULT",
57-
* // MdnResponse: "SYNC" || "NONE",
57+
* // MdnResponse: "SYNC" || "NONE" || "ASYNC",
5858
* // BasicAuthSecretId: "STRING_VALUE",
5959
* // PreserveContentType: "ENABLED" || "DISABLED",
60+
* // AsyncMdnConfig: { // As2AsyncMdnConnectorConfig
61+
* // Url: "STRING_VALUE",
62+
* // ServerIds: [ // As2AsyncMdnServerIds
63+
* // "STRING_VALUE",
64+
* // ],
65+
* // },
6066
* // },
6167
* // AccessRole: "STRING_VALUE",
6268
* // LoggingRole: "STRING_VALUE",

clients/client-transfer/src/commands/StartFileTransferCommand.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,12 @@ export interface StartFileTransferCommandOutput extends StartFileTransferRespons
4646
* ],
4747
* LocalDirectoryPath: "STRING_VALUE",
4848
* RemoteDirectoryPath: "STRING_VALUE",
49+
* CustomHttpHeaders: [ // CustomHttpHeaders
50+
* { // CustomHttpHeader
51+
* Key: "STRING_VALUE",
52+
* Value: "STRING_VALUE",
53+
* },
54+
* ],
4955
* };
5056
* const command = new StartFileTransferCommand(input);
5157
* const response = await client.send(command);

clients/client-transfer/src/commands/UpdateConnectorCommand.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,15 @@ export interface UpdateConnectorCommandOutput extends UpdateConnectorResponse, _
4747
* EncryptionAlgorithm: "AES128_CBC" || "AES192_CBC" || "AES256_CBC" || "DES_EDE3_CBC" || "NONE",
4848
* SigningAlgorithm: "SHA256" || "SHA384" || "SHA512" || "SHA1" || "NONE",
4949
* MdnSigningAlgorithm: "SHA256" || "SHA384" || "SHA512" || "SHA1" || "NONE" || "DEFAULT",
50-
* MdnResponse: "SYNC" || "NONE",
50+
* MdnResponse: "SYNC" || "NONE" || "ASYNC",
5151
* BasicAuthSecretId: "STRING_VALUE",
5252
* PreserveContentType: "ENABLED" || "DISABLED",
53+
* AsyncMdnConfig: { // As2AsyncMdnConnectorConfig
54+
* Url: "STRING_VALUE",
55+
* ServerIds: [ // As2AsyncMdnServerIds
56+
* "STRING_VALUE",
57+
* ],
58+
* },
5359
* },
5460
* AccessRole: "STRING_VALUE",
5561
* LoggingRole: "STRING_VALUE",

clients/client-transfer/src/models/enums.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ export type EncryptionAlg = (typeof EncryptionAlg)[keyof typeof EncryptionAlg];
7272
* @enum
7373
*/
7474
export const MdnResponse = {
75+
ASYNC: "ASYNC",
7576
NONE: "NONE",
7677
SYNC: "SYNC",
7778
} as const;

clients/client-transfer/src/models/models_0.ts

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -476,6 +476,24 @@ export interface UpdateAgreementResponse {
476476
AgreementId: string | undefined;
477477
}
478478

479+
/**
480+
* <p>Contains the configuration details for asynchronous Message Disposition Notification (MDN) responses in AS2 connectors. This configuration specifies where asynchronous MDN responses should be sent and which servers should handle them.</p>
481+
* @public
482+
*/
483+
export interface As2AsyncMdnConnectorConfig {
484+
/**
485+
* <p>The URL endpoint where asynchronous MDN responses should be sent.</p>
486+
* @public
487+
*/
488+
Url?: string | undefined;
489+
490+
/**
491+
* <p>A list of server identifiers that can handle asynchronous MDN responses. You can specify between 1 and 10 server IDs.</p>
492+
* @public
493+
*/
494+
ServerIds?: string[] | undefined;
495+
}
496+
479497
/**
480498
* <p>Contains the details for an AS2 connector object. The connector object is used for AS2 outbound processes, to connect the Transfer Family customer with the trading partner.</p>
481499
* @public
@@ -540,6 +558,12 @@ export interface As2ConnectorConfig {
540558
* @public
541559
*/
542560
PreserveContentType?: PreserveContentType | undefined;
561+
562+
/**
563+
* <p>Configuration settings for asynchronous Message Disposition Notification (MDN) responses. This allows you to configure where asynchronous MDN responses should be sent and which servers should handle them.</p>
564+
* @public
565+
*/
566+
AsyncMdnConfig?: As2AsyncMdnConnectorConfig | undefined;
543567
}
544568

545569
/**
@@ -2408,6 +2432,24 @@ export interface CreateWorkflowResponse {
24082432
WorkflowId: string | undefined;
24092433
}
24102434

2435+
/**
2436+
* <p>Represents a custom HTTP header that can be included in AS2 messages. Each header consists of a key-value pair.</p>
2437+
* @public
2438+
*/
2439+
export interface CustomHttpHeader {
2440+
/**
2441+
* <p>The name of the custom HTTP header.</p>
2442+
* @public
2443+
*/
2444+
Key?: string | undefined;
2445+
2446+
/**
2447+
* <p>The value of the custom HTTP header.</p>
2448+
* @public
2449+
*/
2450+
Value?: string | undefined;
2451+
}
2452+
24112453
/**
24122454
* @public
24132455
*/
@@ -4821,6 +4863,12 @@ export interface StartFileTransferRequest {
48214863
* @public
48224864
*/
48234865
RemoteDirectoryPath?: string | undefined;
4866+
4867+
/**
4868+
* <p>An array of key-value pairs that represent custom HTTP headers to include in AS2 messages. These headers are added to the AS2 message when sending files to your trading partner.</p>
4869+
* @public
4870+
*/
4871+
CustomHttpHeaders?: CustomHttpHeader[] | undefined;
48244872
}
48254873

48264874
/**

0 commit comments

Comments
 (0)