aws-sdk-efs 1.68.0 → 1.70.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -30,6 +30,7 @@ module Aws::EFS
30
30
  BadRequest = Shapes::StructureShape.new(name: 'BadRequest')
31
31
  BypassPolicyLockoutSafetyCheck = Shapes::BooleanShape.new(name: 'BypassPolicyLockoutSafetyCheck')
32
32
  ClientToken = Shapes::StringShape.new(name: 'ClientToken')
33
+ ConflictException = Shapes::StructureShape.new(name: 'ConflictException')
33
34
  CreateAccessPointRequest = Shapes::StructureShape.new(name: 'CreateAccessPointRequest')
34
35
  CreateFileSystemRequest = Shapes::StructureShape.new(name: 'CreateFileSystemRequest')
35
36
  CreateMountTargetRequest = Shapes::StructureShape.new(name: 'CreateMountTargetRequest')
@@ -78,6 +79,7 @@ module Aws::EFS
78
79
  FileSystemNotFound = Shapes::StructureShape.new(name: 'FileSystemNotFound')
79
80
  FileSystemNullableSizeValue = Shapes::IntegerShape.new(name: 'FileSystemNullableSizeValue')
80
81
  FileSystemPolicyDescription = Shapes::StructureShape.new(name: 'FileSystemPolicyDescription')
82
+ FileSystemProtectionDescription = Shapes::StructureShape.new(name: 'FileSystemProtectionDescription')
81
83
  FileSystemSize = Shapes::StructureShape.new(name: 'FileSystemSize')
82
84
  FileSystemSizeValue = Shapes::IntegerShape.new(name: 'FileSystemSizeValue')
83
85
  Gid = Shapes::IntegerShape.new(name: 'Gid')
@@ -124,9 +126,11 @@ module Aws::EFS
124
126
  PutFileSystemPolicyRequest = Shapes::StructureShape.new(name: 'PutFileSystemPolicyRequest')
125
127
  PutLifecycleConfigurationRequest = Shapes::StructureShape.new(name: 'PutLifecycleConfigurationRequest')
126
128
  RegionName = Shapes::StringShape.new(name: 'RegionName')
129
+ ReplicationAlreadyExists = Shapes::StructureShape.new(name: 'ReplicationAlreadyExists')
127
130
  ReplicationConfigurationDescription = Shapes::StructureShape.new(name: 'ReplicationConfigurationDescription')
128
131
  ReplicationConfigurationDescriptions = Shapes::ListShape.new(name: 'ReplicationConfigurationDescriptions')
129
132
  ReplicationNotFound = Shapes::StructureShape.new(name: 'ReplicationNotFound')
133
+ ReplicationOverwriteProtection = Shapes::StringShape.new(name: 'ReplicationOverwriteProtection')
130
134
  ReplicationStatus = Shapes::StringShape.new(name: 'ReplicationStatus')
131
135
  Resource = Shapes::StringShape.new(name: 'Resource')
132
136
  ResourceId = Shapes::StringShape.new(name: 'ResourceId')
@@ -154,11 +158,13 @@ module Aws::EFS
154
158
  Timestamp = Shapes::TimestampShape.new(name: 'Timestamp')
155
159
  Token = Shapes::StringShape.new(name: 'Token')
156
160
  TooManyRequests = Shapes::StructureShape.new(name: 'TooManyRequests')
161
+ TransitionToArchiveRules = Shapes::StringShape.new(name: 'TransitionToArchiveRules')
157
162
  TransitionToIARules = Shapes::StringShape.new(name: 'TransitionToIARules')
158
163
  TransitionToPrimaryStorageClassRules = Shapes::StringShape.new(name: 'TransitionToPrimaryStorageClassRules')
159
164
  Uid = Shapes::IntegerShape.new(name: 'Uid')
160
165
  UnsupportedAvailabilityZone = Shapes::StructureShape.new(name: 'UnsupportedAvailabilityZone')
161
166
  UntagResourceRequest = Shapes::StructureShape.new(name: 'UntagResourceRequest')
167
+ UpdateFileSystemProtectionRequest = Shapes::StructureShape.new(name: 'UpdateFileSystemProtectionRequest')
162
168
  UpdateFileSystemRequest = Shapes::StructureShape.new(name: 'UpdateFileSystemRequest')
163
169
  ValidationException = Shapes::StructureShape.new(name: 'ValidationException')
164
170
  VpcId = Shapes::StringShape.new(name: 'VpcId')
@@ -204,6 +210,10 @@ module Aws::EFS
204
210
  BadRequest.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
205
211
  BadRequest.struct_class = Types::BadRequest
206
212
 
213
+ ConflictException.add_member(:error_code, Shapes::ShapeRef.new(shape: ErrorCode, location_name: "ErrorCode"))
214
+ ConflictException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
215
+ ConflictException.struct_class = Types::ConflictException
216
+
207
217
  CreateAccessPointRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: ClientToken, required: true, location_name: "ClientToken", metadata: {"idempotencyToken"=>true}))
208
218
  CreateAccessPointRequest.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, location_name: "Tags"))
209
219
  CreateAccessPointRequest.add_member(:file_system_id, Shapes::ShapeRef.new(shape: FileSystemId, required: true, location_name: "FileSystemId"))
@@ -348,6 +358,7 @@ module Aws::EFS
348
358
  DestinationToCreate.add_member(:region, Shapes::ShapeRef.new(shape: RegionName, location_name: "Region"))
349
359
  DestinationToCreate.add_member(:availability_zone_name, Shapes::ShapeRef.new(shape: AvailabilityZoneName, location_name: "AvailabilityZoneName"))
350
360
  DestinationToCreate.add_member(:kms_key_id, Shapes::ShapeRef.new(shape: KmsKeyId, location_name: "KmsKeyId"))
361
+ DestinationToCreate.add_member(:file_system_id, Shapes::ShapeRef.new(shape: FileSystemId, location_name: "FileSystemId"))
351
362
  DestinationToCreate.struct_class = Types::DestinationToCreate
352
363
 
353
364
  Destinations.member = Shapes::ShapeRef.new(shape: Destination)
@@ -376,6 +387,7 @@ module Aws::EFS
376
387
  FileSystemDescription.add_member(:availability_zone_name, Shapes::ShapeRef.new(shape: AvailabilityZoneName, location_name: "AvailabilityZoneName"))
377
388
  FileSystemDescription.add_member(:availability_zone_id, Shapes::ShapeRef.new(shape: AvailabilityZoneId, location_name: "AvailabilityZoneId"))
378
389
  FileSystemDescription.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, required: true, location_name: "Tags"))
390
+ FileSystemDescription.add_member(:file_system_protection, Shapes::ShapeRef.new(shape: FileSystemProtectionDescription, location_name: "FileSystemProtection"))
379
391
  FileSystemDescription.struct_class = Types::FileSystemDescription
380
392
 
381
393
  FileSystemDescriptions.member = Shapes::ShapeRef.new(shape: FileSystemDescription)
@@ -396,10 +408,14 @@ module Aws::EFS
396
408
  FileSystemPolicyDescription.add_member(:policy, Shapes::ShapeRef.new(shape: Policy, location_name: "Policy"))
397
409
  FileSystemPolicyDescription.struct_class = Types::FileSystemPolicyDescription
398
410
 
411
+ FileSystemProtectionDescription.add_member(:replication_overwrite_protection, Shapes::ShapeRef.new(shape: ReplicationOverwriteProtection, location_name: "ReplicationOverwriteProtection"))
412
+ FileSystemProtectionDescription.struct_class = Types::FileSystemProtectionDescription
413
+
399
414
  FileSystemSize.add_member(:value, Shapes::ShapeRef.new(shape: FileSystemSizeValue, required: true, location_name: "Value"))
400
415
  FileSystemSize.add_member(:timestamp, Shapes::ShapeRef.new(shape: Timestamp, location_name: "Timestamp"))
401
416
  FileSystemSize.add_member(:value_in_ia, Shapes::ShapeRef.new(shape: FileSystemNullableSizeValue, location_name: "ValueInIA"))
402
417
  FileSystemSize.add_member(:value_in_standard, Shapes::ShapeRef.new(shape: FileSystemNullableSizeValue, location_name: "ValueInStandard"))
418
+ FileSystemSize.add_member(:value_in_archive, Shapes::ShapeRef.new(shape: FileSystemNullableSizeValue, location_name: "ValueInArchive"))
403
419
  FileSystemSize.struct_class = Types::FileSystemSize
404
420
 
405
421
  IncorrectFileSystemLifeCycleState.add_member(:error_code, Shapes::ShapeRef.new(shape: ErrorCode, required: true, location_name: "ErrorCode"))
@@ -433,6 +449,7 @@ module Aws::EFS
433
449
 
434
450
  LifecyclePolicy.add_member(:transition_to_ia, Shapes::ShapeRef.new(shape: TransitionToIARules, location_name: "TransitionToIA"))
435
451
  LifecyclePolicy.add_member(:transition_to_primary_storage_class, Shapes::ShapeRef.new(shape: TransitionToPrimaryStorageClassRules, location_name: "TransitionToPrimaryStorageClass"))
452
+ LifecyclePolicy.add_member(:transition_to_archive, Shapes::ShapeRef.new(shape: TransitionToArchiveRules, location_name: "TransitionToArchive"))
436
453
  LifecyclePolicy.struct_class = Types::LifecyclePolicy
437
454
 
438
455
  ListTagsForResourceRequest.add_member(:resource_id, Shapes::ShapeRef.new(shape: ResourceId, required: true, location: "uri", location_name: "ResourceId"))
@@ -506,6 +523,10 @@ module Aws::EFS
506
523
  PutLifecycleConfigurationRequest.add_member(:lifecycle_policies, Shapes::ShapeRef.new(shape: LifecyclePolicies, required: true, location_name: "LifecyclePolicies"))
507
524
  PutLifecycleConfigurationRequest.struct_class = Types::PutLifecycleConfigurationRequest
508
525
 
526
+ ReplicationAlreadyExists.add_member(:error_code, Shapes::ShapeRef.new(shape: ErrorCode, location_name: "ErrorCode"))
527
+ ReplicationAlreadyExists.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
528
+ ReplicationAlreadyExists.struct_class = Types::ReplicationAlreadyExists
529
+
509
530
  ReplicationConfigurationDescription.add_member(:source_file_system_id, Shapes::ShapeRef.new(shape: FileSystemId, required: true, location_name: "SourceFileSystemId"))
510
531
  ReplicationConfigurationDescription.add_member(:source_file_system_region, Shapes::ShapeRef.new(shape: RegionName, required: true, location_name: "SourceFileSystemRegion"))
511
532
  ReplicationConfigurationDescription.add_member(:source_file_system_arn, Shapes::ShapeRef.new(shape: FileSystemArn, required: true, location_name: "SourceFileSystemArn"))
@@ -578,6 +599,10 @@ module Aws::EFS
578
599
  UntagResourceRequest.add_member(:tag_keys, Shapes::ShapeRef.new(shape: TagKeys, required: true, location: "querystring", location_name: "tagKeys"))
579
600
  UntagResourceRequest.struct_class = Types::UntagResourceRequest
580
601
 
602
+ UpdateFileSystemProtectionRequest.add_member(:file_system_id, Shapes::ShapeRef.new(shape: FileSystemId, required: true, location: "uri", location_name: "FileSystemId"))
603
+ UpdateFileSystemProtectionRequest.add_member(:replication_overwrite_protection, Shapes::ShapeRef.new(shape: ReplicationOverwriteProtection, location_name: "ReplicationOverwriteProtection"))
604
+ UpdateFileSystemProtectionRequest.struct_class = Types::UpdateFileSystemProtectionRequest
605
+
581
606
  UpdateFileSystemRequest.add_member(:file_system_id, Shapes::ShapeRef.new(shape: FileSystemId, required: true, location: "uri", location_name: "FileSystemId"))
582
607
  UpdateFileSystemRequest.add_member(:throughput_mode, Shapes::ShapeRef.new(shape: ThroughputMode, location_name: "ThroughputMode"))
583
608
  UpdateFileSystemRequest.add_member(:provisioned_throughput_in_mibps, Shapes::ShapeRef.new(shape: ProvisionedThroughputInMibps, location_name: "ProvisionedThroughputInMibps"))
@@ -670,6 +695,7 @@ module Aws::EFS
670
695
  o.errors << Shapes::ShapeRef.new(shape: FileSystemLimitExceeded)
671
696
  o.errors << Shapes::ShapeRef.new(shape: InsufficientThroughputCapacity)
672
697
  o.errors << Shapes::ShapeRef.new(shape: ThroughputLimitExceeded)
698
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
673
699
  o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
674
700
  end)
675
701
 
@@ -859,6 +885,12 @@ module Aws::EFS
859
885
  o.errors << Shapes::ShapeRef.new(shape: FileSystemNotFound)
860
886
  o.errors << Shapes::ShapeRef.new(shape: MountTargetNotFound)
861
887
  o.errors << Shapes::ShapeRef.new(shape: AccessPointNotFound)
888
+ o[:pager] = Aws::Pager.new(
889
+ limit_key: "max_items",
890
+ tokens: {
891
+ "next_marker" => "marker"
892
+ }
893
+ )
862
894
  end)
863
895
 
864
896
  api.add_operation(:describe_replication_configurations, Seahorse::Model::Operation.new.tap do |o|
@@ -872,6 +904,12 @@ module Aws::EFS
872
904
  o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
873
905
  o.errors << Shapes::ShapeRef.new(shape: ReplicationNotFound)
874
906
  o.errors << Shapes::ShapeRef.new(shape: ValidationException)
907
+ o[:pager] = Aws::Pager.new(
908
+ limit_key: "max_results",
909
+ tokens: {
910
+ "next_token" => "next_token"
911
+ }
912
+ )
875
913
  end)
876
914
 
877
915
  api.add_operation(:describe_tags, Seahorse::Model::Operation.new.tap do |o|
@@ -1010,6 +1048,22 @@ module Aws::EFS
1010
1048
  o.errors << Shapes::ShapeRef.new(shape: ThroughputLimitExceeded)
1011
1049
  o.errors << Shapes::ShapeRef.new(shape: TooManyRequests)
1012
1050
  end)
1051
+
1052
+ api.add_operation(:update_file_system_protection, Seahorse::Model::Operation.new.tap do |o|
1053
+ o.name = "UpdateFileSystemProtection"
1054
+ o.http_method = "PUT"
1055
+ o.http_request_uri = "/2015-02-01/file-systems/{FileSystemId}/protection"
1056
+ o.input = Shapes::ShapeRef.new(shape: UpdateFileSystemProtectionRequest)
1057
+ o.output = Shapes::ShapeRef.new(shape: FileSystemProtectionDescription)
1058
+ o.errors << Shapes::ShapeRef.new(shape: BadRequest)
1059
+ o.errors << Shapes::ShapeRef.new(shape: FileSystemNotFound)
1060
+ o.errors << Shapes::ShapeRef.new(shape: IncorrectFileSystemLifeCycleState)
1061
+ o.errors << Shapes::ShapeRef.new(shape: InsufficientThroughputCapacity)
1062
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
1063
+ o.errors << Shapes::ShapeRef.new(shape: ThroughputLimitExceeded)
1064
+ o.errors << Shapes::ShapeRef.new(shape: ReplicationAlreadyExists)
1065
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequests)
1066
+ end)
1013
1067
  end
1014
1068
 
1015
1069
  end
@@ -32,7 +32,7 @@ module Aws::EFS
32
32
  raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
33
33
  end
34
34
  if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
35
- if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
35
+ if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"), true)
36
36
  return Aws::Endpoints::Endpoint.new(url: "https://elasticfilesystem-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
37
37
  end
38
38
  raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
@@ -432,5 +432,19 @@ module Aws::EFS
432
432
  end
433
433
  end
434
434
 
435
+ class UpdateFileSystemProtection
436
+ def self.build(context)
437
+ unless context.config.regional_endpoint
438
+ endpoint = context.config.endpoint.to_s
439
+ end
440
+ Aws::EFS::EndpointParameters.new(
441
+ region: context.config.region,
442
+ use_dual_stack: context.config.use_dualstack_endpoint,
443
+ use_fips: context.config.use_fips_endpoint,
444
+ endpoint: endpoint,
445
+ )
446
+ end
447
+ end
448
+
435
449
  end
436
450
  end
@@ -32,6 +32,7 @@ module Aws::EFS
32
32
  # * {AccessPointNotFound}
33
33
  # * {AvailabilityZonesMismatch}
34
34
  # * {BadRequest}
35
+ # * {ConflictException}
35
36
  # * {DependencyTimeout}
36
37
  # * {FileSystemAlreadyExists}
37
38
  # * {FileSystemInUse}
@@ -48,6 +49,7 @@ module Aws::EFS
48
49
  # * {NetworkInterfaceLimitExceeded}
49
50
  # * {NoFreeAddressesInSubnet}
50
51
  # * {PolicyNotFound}
52
+ # * {ReplicationAlreadyExists}
51
53
  # * {ReplicationNotFound}
52
54
  # * {SecurityGroupLimitExceeded}
53
55
  # * {SecurityGroupNotFound}
@@ -169,6 +171,26 @@ module Aws::EFS
169
171
  end
170
172
  end
171
173
 
174
+ class ConflictException < ServiceError
175
+
176
+ # @param [Seahorse::Client::RequestContext] context
177
+ # @param [String] message
178
+ # @param [Aws::EFS::Types::ConflictException] data
179
+ def initialize(context, message, data = Aws::EmptyStructure.new)
180
+ super(context, message, data)
181
+ end
182
+
183
+ # @return [String]
184
+ def error_code
185
+ @data[:error_code]
186
+ end
187
+
188
+ # @return [String]
189
+ def message
190
+ @message || @data[:message]
191
+ end
192
+ end
193
+
172
194
  class DependencyTimeout < ServiceError
173
195
 
174
196
  # @param [Seahorse::Client::RequestContext] context
@@ -494,6 +516,26 @@ module Aws::EFS
494
516
  end
495
517
  end
496
518
 
519
+ class ReplicationAlreadyExists < ServiceError
520
+
521
+ # @param [Seahorse::Client::RequestContext] context
522
+ # @param [String] message
523
+ # @param [Aws::EFS::Types::ReplicationAlreadyExists] data
524
+ def initialize(context, message, data = Aws::EmptyStructure.new)
525
+ super(context, message, data)
526
+ end
527
+
528
+ # @return [String]
529
+ def error_code
530
+ @data[:error_code]
531
+ end
532
+
533
+ # @return [String]
534
+ def message
535
+ @message || @data[:message]
536
+ end
537
+ end
538
+
497
539
  class ReplicationNotFound < ServiceError
498
540
 
499
541
  # @param [Seahorse::Client::RequestContext] context
@@ -116,6 +116,8 @@ module Aws::EFS
116
116
  Aws::EFS::Endpoints::UntagResource.build(context)
117
117
  when :update_file_system
118
118
  Aws::EFS::Endpoints::UpdateFileSystem.build(context)
119
+ when :update_file_system_protection
120
+ Aws::EFS::Endpoints::UpdateFileSystemProtection.build(context)
119
121
  end
120
122
  end
121
123
  end