Skip to content

Commit 88710c1

Browse files
author
AWS
committed
AWS Transfer Family Update: Introduced S3StorageOptions for servers to enable directory listing optimizations and added Type fields to logical directory mappings.
1 parent d41d1a3 commit 88710c1

File tree

2 files changed

+53
-6
lines changed

2 files changed

+53
-6
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"type": "feature",
3+
"category": "AWS Transfer Family",
4+
"contributor": "",
5+
"description": "Introduced S3StorageOptions for servers to enable directory listing optimizations and added Type fields to logical directory mappings."
6+
}

services/transfer/src/main/resources/codegen-resources/service-2.json

Lines changed: 47 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1023,7 +1023,7 @@
10231023
"type":"string",
10241024
"max":1600,
10251025
"min":20,
1026-
"pattern":"arn:.*"
1026+
"pattern":"arn:\\S+"
10271027
},
10281028
"As2ConnectorConfig":{
10291029
"type":"structure",
@@ -1450,6 +1450,10 @@
14501450
"StructuredLogDestinations":{
14511451
"shape":"StructuredLogDestinations",
14521452
"documentation":"<p>Specifies the log groups to which your server logs are sent.</p> <p>To specify a log group, you must provide the ARN for an existing log group. In this case, the format of the log group is as follows:</p> <p> <code>arn:aws:logs:region-name:amazon-account-id:log-group:log-group-name:*</code> </p> <p>For example, <code>arn:aws:logs:us-east-1:111122223333:log-group:mytestgroup:*</code> </p> <p>If you have previously specified a log group for a server, you can clear it, and in effect turn off structured logging, by providing an empty value for this parameter in an <code>update-server</code> call. For example:</p> <p> <code>update-server --server-id s-1234567890abcdef0 --structured-log-destinations</code> </p>"
1453+
},
1454+
"S3StorageOptions":{
1455+
"shape":"S3StorageOptions",
1456+
"documentation":"<p>Specifies whether or not performance for your Amazon S3 directories is optimized. This is disabled by default.</p> <p>By default, home directory mappings have a <code>TYPE</code> of <code>DIRECTORY</code>. If you enable this option, you would then need to explicitly set the <code>HomeDirectoryMapEntry</code> <code>Type</code> to <code>FILE</code> if you want a mapping to have a file target.</p>"
14531457
}
14541458
}
14551459
},
@@ -2459,6 +2463,10 @@
24592463
"StructuredLogDestinations":{
24602464
"shape":"StructuredLogDestinations",
24612465
"documentation":"<p>Specifies the log groups to which your server logs are sent.</p> <p>To specify a log group, you must provide the ARN for an existing log group. In this case, the format of the log group is as follows:</p> <p> <code>arn:aws:logs:region-name:amazon-account-id:log-group:log-group-name:*</code> </p> <p>For example, <code>arn:aws:logs:us-east-1:111122223333:log-group:mytestgroup:*</code> </p> <p>If you have previously specified a log group for a server, you can clear it, and in effect turn off structured logging, by providing an empty value for this parameter in an <code>update-server</code> call. For example:</p> <p> <code>update-server --server-id s-1234567890abcdef0 --structured-log-destinations</code> </p>"
2466+
},
2467+
"S3StorageOptions":{
2468+
"shape":"S3StorageOptions",
2469+
"documentation":"<p>Specifies whether or not performance for your Amazon S3 directories is optimized. This is disabled by default.</p> <p>By default, home directory mappings have a <code>TYPE</code> of <code>DIRECTORY</code>. If you enable this option, you would then need to explicitly set the <code>HomeDirectoryMapEntry</code> <code>Type</code> to <code>FILE</code> if you want a mapping to have a file target.</p>"
24622470
}
24632471
},
24642472
"documentation":"<p>Describes the properties of a file transfer protocol-enabled server that was specified.</p>"
@@ -2553,6 +2561,14 @@
25532561
"min":12,
25542562
"pattern":"d-[0-9a-f]{10}"
25552563
},
2564+
"DirectoryListingOptimization":{
2565+
"type":"string",
2566+
"documentation":"<p>Indicates whether optimization to directory listing on S3 servers is used. Disabled by default for compatibility.</p>",
2567+
"enum":[
2568+
"ENABLED",
2569+
"DISABLED"
2570+
]
2571+
},
25562572
"Domain":{
25572573
"type":"string",
25582574
"enum":[
@@ -2764,7 +2780,7 @@
27642780
"type":"string",
27652781
"max":1024,
27662782
"min":0,
2767-
"pattern":"$|/.*"
2783+
"pattern":"(|/.*)"
27682784
},
27692785
"HomeDirectoryMapEntry":{
27702786
"type":"structure",
@@ -2779,15 +2795,19 @@
27792795
},
27802796
"Target":{
27812797
"shape":"MapTarget",
2782-
"documentation":"<p>Represents the map target that is used in a <code>HomeDirectorymapEntry</code>.</p>"
2798+
"documentation":"<p>Represents the map target that is used in a <code>HomeDirectoryMapEntry</code>.</p>"
2799+
},
2800+
"Type":{
2801+
"shape":"MapType",
2802+
"documentation":"<p>Specifies the type of mapping. Set the type to <code>FILE</code> if you want the mapping to point to a file, or <code>DIRECTORY</code> for the directory to point to a directory.</p> <note> <p>By default, home directory mappings have a <code>Type</code> of <code>DIRECTORY</code> when you create a Transfer Family server. You would need to explicitly set <code>Type</code> to <code>FILE</code> if you want a mapping to have a file target.</p> </note>"
27832803
}
27842804
},
27852805
"documentation":"<p>Represents an object that contains entries and targets for <code>HomeDirectoryMappings</code>.</p> <p>The following is an <code>Entry</code> and <code>Target</code> pair example for <code>chroot</code>.</p> <p> <code>[ { \"Entry\": \"/\", \"Target\": \"/bucket_name/home/mydirectory\" } ]</code> </p>"
27862806
},
27872807
"HomeDirectoryMappings":{
27882808
"type":"list",
27892809
"member":{"shape":"HomeDirectoryMapEntry"},
2790-
"max":50,
2810+
"max":50000,
27912811
"min":1
27922812
},
27932813
"HomeDirectoryType":{
@@ -3769,6 +3789,13 @@
37693789
"min":0,
37703790
"pattern":"/.*"
37713791
},
3792+
"MapType":{
3793+
"type":"string",
3794+
"enum":[
3795+
"FILE",
3796+
"DIRECTORY"
3797+
]
3798+
},
37723799
"MaxResults":{
37733800
"type":"integer",
37743801
"box":true,
@@ -3809,7 +3836,7 @@
38093836
"type":"string",
38103837
"max":2048,
38113838
"min":0,
3812-
"pattern":"$|arn:.*role/.*"
3839+
"pattern":"(|arn:.*role/\\S+)"
38133840
},
38143841
"OnPartialUploadWorkflowDetails":{
38153842
"type":"list",
@@ -3975,7 +4002,7 @@
39754002
"type":"string",
39764003
"max":2048,
39774004
"min":20,
3978-
"pattern":"arn:.*role/.*"
4005+
"pattern":"arn:.*role/\\S+"
39794006
},
39804007
"S3Bucket":{
39814008
"type":"string",
@@ -4031,6 +4058,16 @@
40314058
"min":0,
40324059
"pattern":"[\\P{M}\\p{M}]*"
40334060
},
4061+
"S3StorageOptions":{
4062+
"type":"structure",
4063+
"members":{
4064+
"DirectoryListingOptimization":{
4065+
"shape":"DirectoryListingOptimization",
4066+
"documentation":"<p>Specifies whether or not performance for your Amazon S3 directories is optimized. This is disabled by default.</p> <p>By default, home directory mappings have a <code>TYPE</code> of <code>DIRECTORY</code>. If you enable this option, you would then need to explicitly set the <code>HomeDirectoryMapEntry</code> <code>Type</code> to <code>FILE</code> if you want a mapping to have a file target.</p>"
4067+
}
4068+
},
4069+
"documentation":"<p>The Amazon S3 storage options that are configured for your server.</p>"
4070+
},
40344071
"S3Tag":{
40354072
"type":"structure",
40364073
"required":[
@@ -4866,6 +4903,10 @@
48664903
"StructuredLogDestinations":{
48674904
"shape":"StructuredLogDestinations",
48684905
"documentation":"<p>Specifies the log groups to which your server logs are sent.</p> <p>To specify a log group, you must provide the ARN for an existing log group. In this case, the format of the log group is as follows:</p> <p> <code>arn:aws:logs:region-name:amazon-account-id:log-group:log-group-name:*</code> </p> <p>For example, <code>arn:aws:logs:us-east-1:111122223333:log-group:mytestgroup:*</code> </p> <p>If you have previously specified a log group for a server, you can clear it, and in effect turn off structured logging, by providing an empty value for this parameter in an <code>update-server</code> call. For example:</p> <p> <code>update-server --server-id s-1234567890abcdef0 --structured-log-destinations</code> </p>"
4906+
},
4907+
"S3StorageOptions":{
4908+
"shape":"S3StorageOptions",
4909+
"documentation":"<p>Specifies whether or not performance for your Amazon S3 directories is optimized. This is disabled by default.</p> <p>By default, home directory mappings have a <code>TYPE</code> of <code>DIRECTORY</code>. If you enable this option, you would then need to explicitly set the <code>HomeDirectoryMapEntry</code> <code>Type</code> to <code>FILE</code> if you want a mapping to have a file target.</p>"
48694910
}
48704911
}
48714912
},

0 commit comments

Comments
 (0)