Skip to content

Commit c7611a4

Browse files
author
awstools
committed
feat(client-transfer): Added AS2 agreement configurations to control filename preservation and message signing enforcement. Added AS2 connector configuration to preserve content type from S3 objects.
1 parent 16bb7db commit c7611a4

File tree

8 files changed

+268
-4
lines changed

8 files changed

+268
-4
lines changed

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

+2
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ export interface CreateAgreementCommandOutput extends CreateAgreementResponse, _
5454
* Value: "STRING_VALUE", // required
5555
* },
5656
* ],
57+
* PreserveFilename: "ENABLED" || "DISABLED",
58+
* EnforceMessageSigning: "ENABLED" || "DISABLED",
5759
* };
5860
* const command = new CreateAgreementCommand(input);
5961
* const response = await client.send(command);

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

+1
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ export interface CreateConnectorCommandOutput extends CreateConnectorResponse, _
5252
* MdnSigningAlgorithm: "SHA256" || "SHA384" || "SHA512" || "SHA1" || "NONE" || "DEFAULT",
5353
* MdnResponse: "SYNC" || "NONE",
5454
* BasicAuthSecretId: "STRING_VALUE",
55+
* PreserveContentType: "ENABLED" || "DISABLED",
5556
* },
5657
* AccessRole: "STRING_VALUE", // required
5758
* LoggingRole: "STRING_VALUE",

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

+2
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ export interface DescribeAgreementCommandOutput extends DescribeAgreementRespons
5858
* // Value: "STRING_VALUE", // required
5959
* // },
6060
* // ],
61+
* // PreserveFilename: "ENABLED" || "DISABLED",
62+
* // EnforceMessageSigning: "ENABLED" || "DISABLED",
6163
* // },
6264
* // };
6365
*

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

+1
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ export interface DescribeConnectorCommandOutput extends DescribeConnectorRespons
5656
* // MdnSigningAlgorithm: "SHA256" || "SHA384" || "SHA512" || "SHA1" || "NONE" || "DEFAULT",
5757
* // MdnResponse: "SYNC" || "NONE",
5858
* // BasicAuthSecretId: "STRING_VALUE",
59+
* // PreserveContentType: "ENABLED" || "DISABLED",
5960
* // },
6061
* // AccessRole: "STRING_VALUE",
6162
* // LoggingRole: "STRING_VALUE",

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

+2
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ export interface UpdateAgreementCommandOutput extends UpdateAgreementResponse, _
4646
* PartnerProfileId: "STRING_VALUE",
4747
* BaseDirectory: "STRING_VALUE",
4848
* AccessRole: "STRING_VALUE",
49+
* PreserveFilename: "ENABLED" || "DISABLED",
50+
* EnforceMessageSigning: "ENABLED" || "DISABLED",
4951
* };
5052
* const command = new UpdateAgreementCommand(input);
5153
* const response = await client.send(command);

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

+1
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ export interface UpdateConnectorCommandOutput extends UpdateConnectorResponse, _
5050
* MdnSigningAlgorithm: "SHA256" || "SHA384" || "SHA512" || "SHA1" || "NONE" || "DEFAULT",
5151
* MdnResponse: "SYNC" || "NONE",
5252
* BasicAuthSecretId: "STRING_VALUE",
53+
* PreserveContentType: "ENABLED" || "DISABLED",
5354
* },
5455
* AccessRole: "STRING_VALUE",
5556
* LoggingRole: "STRING_VALUE",

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

+165-3
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,34 @@ export class AccessDeniedException extends __BaseException {
2525
}
2626
}
2727

28+
/**
29+
* @public
30+
* @enum
31+
*/
32+
export const EnforceMessageSigningType = {
33+
DISABLED: "DISABLED",
34+
ENABLED: "ENABLED",
35+
} as const;
36+
37+
/**
38+
* @public
39+
*/
40+
export type EnforceMessageSigningType = (typeof EnforceMessageSigningType)[keyof typeof EnforceMessageSigningType];
41+
42+
/**
43+
* @public
44+
* @enum
45+
*/
46+
export const PreserveFilenameType = {
47+
DISABLED: "DISABLED",
48+
ENABLED: "ENABLED",
49+
} as const;
50+
51+
/**
52+
* @public
53+
*/
54+
export type PreserveFilenameType = (typeof PreserveFilenameType)[keyof typeof PreserveFilenameType];
55+
2856
/**
2957
* @public
3058
* @enum
@@ -142,6 +170,44 @@ export interface CreateAgreementRequest {
142170
* @public
143171
*/
144172
Tags?: Tag[] | undefined;
173+
174+
/**
175+
* <p>
176+
* Determines whether or not Transfer Family appends a unique string of characters to the end of the AS2 message payload
177+
* filename when saving it.
178+
* </p>
179+
* <ul>
180+
* <li>
181+
* <p>
182+
* <code>ENABLED</code>: the filename provided by your trading parter is preserved when the file is saved.</p>
183+
* </li>
184+
* <li>
185+
* <p>
186+
* <code>DISABLED</code> (default value): when Transfer Family saves the file, the filename is adjusted, as
187+
* described in <a href="https://docs.aws.amazon.com/transfer/latest/userguide/send-as2-messages.html#file-names-as2">File names and locations</a>.</p>
188+
* </li>
189+
* </ul>
190+
* @public
191+
*/
192+
PreserveFilename?: PreserveFilenameType | undefined;
193+
194+
/**
195+
* <p>
196+
* Determines whether or not unsigned messages from your trading partners will be accepted.
197+
* </p>
198+
* <ul>
199+
* <li>
200+
* <p>
201+
* <code>ENABLED</code>: Transfer Family rejects unsigned messages from your trading partner.</p>
202+
* </li>
203+
* <li>
204+
* <p>
205+
* <code>DISABLED</code> (default value): Transfer Family accepts unsigned messages from your trading partner.</p>
206+
* </li>
207+
* </ul>
208+
* @public
209+
*/
210+
EnforceMessageSigning?: EnforceMessageSigningType | undefined;
145211
}
146212

147213
/**
@@ -425,6 +491,44 @@ export interface DescribedAgreement {
425491
* @public
426492
*/
427493
Tags?: Tag[] | undefined;
494+
495+
/**
496+
* <p>
497+
* Determines whether or not Transfer Family appends a unique string of characters to the end of the AS2 message payload
498+
* filename when saving it.
499+
* </p>
500+
* <ul>
501+
* <li>
502+
* <p>
503+
* <code>ENABLED</code>: the filename provided by your trading parter is preserved when the file is saved.</p>
504+
* </li>
505+
* <li>
506+
* <p>
507+
* <code>DISABLED</code> (default value): when Transfer Family saves the file, the filename is adjusted, as
508+
* described in <a href="https://docs.aws.amazon.com/transfer/latest/userguide/send-as2-messages.html#file-names-as2">File names and locations</a>.</p>
509+
* </li>
510+
* </ul>
511+
* @public
512+
*/
513+
PreserveFilename?: PreserveFilenameType | undefined;
514+
515+
/**
516+
* <p>
517+
* Determines whether or not unsigned messages from your trading partners will be accepted.
518+
* </p>
519+
* <ul>
520+
* <li>
521+
* <p>
522+
* <code>ENABLED</code>: Transfer Family rejects unsigned messages from your trading partner.</p>
523+
* </li>
524+
* <li>
525+
* <p>
526+
* <code>DISABLED</code> (default value): Transfer Family accepts unsigned messages from your trading partner.</p>
527+
* </li>
528+
* </ul>
529+
* @public
530+
*/
531+
EnforceMessageSigning?: EnforceMessageSigningType | undefined;
428532
}
429533

430534
/**
@@ -638,6 +742,44 @@ export interface UpdateAgreementRequest {
638742
* @public
639743
*/
640744
AccessRole?: string | undefined;
745+
746+
/**
747+
* <p>
748+
* Determines whether or not Transfer Family appends a unique string of characters to the end of the AS2 message payload
749+
* filename when saving it.
750+
* </p>
751+
* <ul>
752+
* <li>
753+
* <p>
754+
* <code>ENABLED</code>: the filename provided by your trading parter is preserved when the file is saved.</p>
755+
* </li>
756+
* <li>
757+
* <p>
758+
* <code>DISABLED</code> (default value): when Transfer Family saves the file, the filename is adjusted, as
759+
* described in <a href="https://docs.aws.amazon.com/transfer/latest/userguide/send-as2-messages.html#file-names-as2">File names and locations</a>.</p>
760+
* </li>
761+
* </ul>
762+
* @public
763+
*/
764+
PreserveFilename?: PreserveFilenameType | undefined;
765+
766+
/**
767+
* <p>
768+
* Determines whether or not unsigned messages from your trading partners will be accepted.
769+
* </p>
770+
* <ul>
771+
* <li>
772+
* <p>
773+
* <code>ENABLED</code>: Transfer Family rejects unsigned messages from your trading partner.</p>
774+
* </li>
775+
* <li>
776+
* <p>
777+
* <code>DISABLED</code> (default value): Transfer Family accepts unsigned messages from your trading partner.</p>
778+
* </li>
779+
* </ul>
780+
* @public
781+
*/
782+
EnforceMessageSigning?: EnforceMessageSigningType | undefined;
641783
}
642784

643785
/**
@@ -714,6 +856,20 @@ export const MdnSigningAlg = {
714856
*/
715857
export type MdnSigningAlg = (typeof MdnSigningAlg)[keyof typeof MdnSigningAlg];
716858

859+
/**
860+
* @public
861+
* @enum
862+
*/
863+
export const PreserveContentType = {
864+
DISABLED: "DISABLED",
865+
ENABLED: "ENABLED",
866+
} as const;
867+
868+
/**
869+
* @public
870+
*/
871+
export type PreserveContentType = (typeof PreserveContentType)[keyof typeof PreserveContentType];
872+
717873
/**
718874
* @public
719875
* @enum
@@ -838,6 +994,14 @@ export interface As2ConnectorConfig {
838994
* @public
839995
*/
840996
BasicAuthSecretId?: string | undefined;
997+
998+
/**
999+
* <p>Allows you to use the Amazon S3 <code>Content-Type</code> that is associated with objects in S3 instead of
1000+
* having the content type mapped based on the file extension. This parameter is enabled by default when you create an AS2 connector
1001+
* from the console, but disabled by default when you create an AS2 connector by calling the API directly.</p>
1002+
* @public
1003+
*/
1004+
PreserveContentType?: PreserveContentType | undefined;
8411005
}
8421006

8431007
/**
@@ -957,9 +1121,7 @@ export interface DescribedCertificate {
9571121
Usage?: CertificateUsageType | undefined;
9581122

9591123
/**
960-
* <p>The certificate can be either <code>ACTIVE</code>, <code>PENDING_ROTATION</code>, or
961-
* <code>INACTIVE</code>. <code>PENDING_ROTATION</code> means that this certificate will
962-
* replace the current certificate when it expires.</p>
1124+
* <p>Currently, the only available status is <code>ACTIVE</code>: all other values are reserved for future use.</p>
9631125
* @public
9641126
*/
9651127
Status?: CertificateStatusType | undefined;

0 commit comments

Comments
 (0)