File tree Expand file tree Collapse file tree 3 files changed +9
-3
lines changed
src/main/java/software/amazon/datasync/task Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 314
314
" fsx:DescribeFileSystems" ,
315
315
" elasticfilesystem:DescribeFileSystems" ,
316
316
" elasticfilesystem:DescribeMountTargets" ,
317
+ " logs:DescribeLogGroups" ,
317
318
" iam:GetRole" ,
318
319
" iam:PassRole"
319
320
]
330
331
" datasync:DescribeTask" ,
331
332
" datasync:ListTagsForResource" ,
332
333
" datasync:TagResource" ,
333
- " datasync:UntagResource"
334
+ " datasync:UntagResource" ,
335
+ " logs:DescribeLogGroups"
334
336
]
335
337
},
336
338
"delete" : {
Original file line number Diff line number Diff line change @@ -42,6 +42,7 @@ Resources:
42
42
- " fsx:DescribeFileSystems"
43
43
- " iam:GetRole"
44
44
- " iam:PassRole"
45
+ - " logs:DescribeLogGroups"
45
46
- " s3:ListAllMyBuckets"
46
47
- " s3:ListBucket"
47
48
Resource : " *"
Original file line number Diff line number Diff line change @@ -90,9 +90,10 @@ public static software.amazon.datasync.task.Options translateToResourceModelOpti
90
90
final software .amazon .awssdk .services .datasync .model .Options options ) {
91
91
if (options == null )
92
92
return software .amazon .datasync .task .Options .builder ().build ();
93
+ Integer bytesPerSecond = options .bytesPerSecond () != null ? options .bytesPerSecond ().intValue () : null ;
93
94
return software .amazon .datasync .task .Options .builder ()
94
95
.atime (options .atimeAsString ())
95
- .bytesPerSecond (options . bytesPerSecond (). intValue () )
96
+ .bytesPerSecond (bytesPerSecond )
96
97
.gid (options .gidAsString ())
97
98
.logLevel (options .logLevelAsString ())
98
99
.mtime (options .mtimeAsString ())
@@ -111,9 +112,11 @@ private static software.amazon.awssdk.services.datasync.model.Options translateT
111
112
final software .amazon .datasync .task .Options options ) {
112
113
if (options == null )
113
114
return software .amazon .awssdk .services .datasync .model .Options .builder ().build ();
115
+
116
+ Long bytesPerSecond = options .getBytesPerSecond () != null ? options .getBytesPerSecond ().longValue () : null ;
114
117
return software .amazon .awssdk .services .datasync .model .Options .builder ()
115
118
.atime (options .getAtime ())
116
- .bytesPerSecond (options . getBytesPerSecond (). longValue () )
119
+ .bytesPerSecond (bytesPerSecond )
117
120
.gid (options .getGid ())
118
121
.logLevel (options .getLogLevel ())
119
122
.mtime (options .getMtime ())
You can’t perform that action at this time.
0 commit comments