aws-sdk-opensearchserverless 1.10.0 → 1.11.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -22,8 +22,13 @@ module Aws::OpenSearchServerless
22
22
  Arn = Shapes::StringShape.new(name: 'Arn')
23
23
  BatchGetCollectionRequest = Shapes::StructureShape.new(name: 'BatchGetCollectionRequest')
24
24
  BatchGetCollectionResponse = Shapes::StructureShape.new(name: 'BatchGetCollectionResponse')
25
+ BatchGetEffectiveLifecyclePolicyRequest = Shapes::StructureShape.new(name: 'BatchGetEffectiveLifecyclePolicyRequest')
26
+ BatchGetEffectiveLifecyclePolicyResponse = Shapes::StructureShape.new(name: 'BatchGetEffectiveLifecyclePolicyResponse')
27
+ BatchGetLifecyclePolicyRequest = Shapes::StructureShape.new(name: 'BatchGetLifecyclePolicyRequest')
28
+ BatchGetLifecyclePolicyResponse = Shapes::StructureShape.new(name: 'BatchGetLifecyclePolicyResponse')
25
29
  BatchGetVpcEndpointRequest = Shapes::StructureShape.new(name: 'BatchGetVpcEndpointRequest')
26
30
  BatchGetVpcEndpointResponse = Shapes::StructureShape.new(name: 'BatchGetVpcEndpointResponse')
31
+ Boolean = Shapes::BooleanShape.new(name: 'Boolean')
27
32
  CapacityLimits = Shapes::StructureShape.new(name: 'CapacityLimits')
28
33
  ClientToken = Shapes::StringShape.new(name: 'ClientToken')
29
34
  CollectionDetail = Shapes::StructureShape.new(name: 'CollectionDetail')
@@ -48,6 +53,8 @@ module Aws::OpenSearchServerless
48
53
  CreateCollectionRequest = Shapes::StructureShape.new(name: 'CreateCollectionRequest')
49
54
  CreateCollectionRequestDescriptionString = Shapes::StringShape.new(name: 'CreateCollectionRequestDescriptionString')
50
55
  CreateCollectionResponse = Shapes::StructureShape.new(name: 'CreateCollectionResponse')
56
+ CreateLifecyclePolicyRequest = Shapes::StructureShape.new(name: 'CreateLifecyclePolicyRequest')
57
+ CreateLifecyclePolicyResponse = Shapes::StructureShape.new(name: 'CreateLifecyclePolicyResponse')
51
58
  CreateSecurityConfigRequest = Shapes::StructureShape.new(name: 'CreateSecurityConfigRequest')
52
59
  CreateSecurityConfigResponse = Shapes::StructureShape.new(name: 'CreateSecurityConfigResponse')
53
60
  CreateSecurityPolicyRequest = Shapes::StructureShape.new(name: 'CreateSecurityPolicyRequest')
@@ -60,6 +67,8 @@ module Aws::OpenSearchServerless
60
67
  DeleteCollectionDetail = Shapes::StructureShape.new(name: 'DeleteCollectionDetail')
61
68
  DeleteCollectionRequest = Shapes::StructureShape.new(name: 'DeleteCollectionRequest')
62
69
  DeleteCollectionResponse = Shapes::StructureShape.new(name: 'DeleteCollectionResponse')
70
+ DeleteLifecyclePolicyRequest = Shapes::StructureShape.new(name: 'DeleteLifecyclePolicyRequest')
71
+ DeleteLifecyclePolicyResponse = Shapes::StructureShape.new(name: 'DeleteLifecyclePolicyResponse')
63
72
  DeleteSecurityConfigRequest = Shapes::StructureShape.new(name: 'DeleteSecurityConfigRequest')
64
73
  DeleteSecurityConfigResponse = Shapes::StructureShape.new(name: 'DeleteSecurityConfigResponse')
65
74
  DeleteSecurityPolicyRequest = Shapes::StructureShape.new(name: 'DeleteSecurityPolicyRequest')
@@ -68,6 +77,10 @@ module Aws::OpenSearchServerless
68
77
  DeleteVpcEndpointRequest = Shapes::StructureShape.new(name: 'DeleteVpcEndpointRequest')
69
78
  DeleteVpcEndpointResponse = Shapes::StructureShape.new(name: 'DeleteVpcEndpointResponse')
70
79
  Document = Shapes::DocumentShape.new(name: 'Document', document: true)
80
+ EffectiveLifecyclePolicyDetail = Shapes::StructureShape.new(name: 'EffectiveLifecyclePolicyDetail')
81
+ EffectiveLifecyclePolicyDetails = Shapes::ListShape.new(name: 'EffectiveLifecyclePolicyDetails')
82
+ EffectiveLifecyclePolicyErrorDetail = Shapes::StructureShape.new(name: 'EffectiveLifecyclePolicyErrorDetail')
83
+ EffectiveLifecyclePolicyErrorDetails = Shapes::ListShape.new(name: 'EffectiveLifecyclePolicyErrorDetails')
71
84
  GetAccessPolicyRequest = Shapes::StructureShape.new(name: 'GetAccessPolicyRequest')
72
85
  GetAccessPolicyResponse = Shapes::StructureShape.new(name: 'GetAccessPolicyResponse')
73
86
  GetAccountSettingsRequest = Shapes::StructureShape.new(name: 'GetAccountSettingsRequest')
@@ -80,6 +93,19 @@ module Aws::OpenSearchServerless
80
93
  GetSecurityPolicyResponse = Shapes::StructureShape.new(name: 'GetSecurityPolicyResponse')
81
94
  IndexingCapacityValue = Shapes::IntegerShape.new(name: 'IndexingCapacityValue')
82
95
  InternalServerException = Shapes::StructureShape.new(name: 'InternalServerException')
96
+ LifecyclePolicyDetail = Shapes::StructureShape.new(name: 'LifecyclePolicyDetail')
97
+ LifecyclePolicyDetails = Shapes::ListShape.new(name: 'LifecyclePolicyDetails')
98
+ LifecyclePolicyErrorDetail = Shapes::StructureShape.new(name: 'LifecyclePolicyErrorDetail')
99
+ LifecyclePolicyErrorDetails = Shapes::ListShape.new(name: 'LifecyclePolicyErrorDetails')
100
+ LifecyclePolicyIdentifier = Shapes::StructureShape.new(name: 'LifecyclePolicyIdentifier')
101
+ LifecyclePolicyIdentifiers = Shapes::ListShape.new(name: 'LifecyclePolicyIdentifiers')
102
+ LifecyclePolicyResourceIdentifier = Shapes::StructureShape.new(name: 'LifecyclePolicyResourceIdentifier')
103
+ LifecyclePolicyResourceIdentifiers = Shapes::ListShape.new(name: 'LifecyclePolicyResourceIdentifiers')
104
+ LifecyclePolicyStats = Shapes::StructureShape.new(name: 'LifecyclePolicyStats')
105
+ LifecyclePolicySummaries = Shapes::ListShape.new(name: 'LifecyclePolicySummaries')
106
+ LifecyclePolicySummary = Shapes::StructureShape.new(name: 'LifecyclePolicySummary')
107
+ LifecyclePolicyType = Shapes::StringShape.new(name: 'LifecyclePolicyType')
108
+ LifecycleResource = Shapes::StringShape.new(name: 'LifecycleResource')
83
109
  ListAccessPoliciesRequest = Shapes::StructureShape.new(name: 'ListAccessPoliciesRequest')
84
110
  ListAccessPoliciesRequestMaxResultsInteger = Shapes::IntegerShape.new(name: 'ListAccessPoliciesRequestMaxResultsInteger')
85
111
  ListAccessPoliciesRequestResourceList = Shapes::ListShape.new(name: 'ListAccessPoliciesRequestResourceList')
@@ -87,6 +113,10 @@ module Aws::OpenSearchServerless
87
113
  ListCollectionsRequest = Shapes::StructureShape.new(name: 'ListCollectionsRequest')
88
114
  ListCollectionsRequestMaxResultsInteger = Shapes::IntegerShape.new(name: 'ListCollectionsRequestMaxResultsInteger')
89
115
  ListCollectionsResponse = Shapes::StructureShape.new(name: 'ListCollectionsResponse')
116
+ ListLifecyclePoliciesRequest = Shapes::StructureShape.new(name: 'ListLifecyclePoliciesRequest')
117
+ ListLifecyclePoliciesRequestMaxResultsInteger = Shapes::IntegerShape.new(name: 'ListLifecyclePoliciesRequestMaxResultsInteger')
118
+ ListLifecyclePoliciesRequestResourcesList = Shapes::ListShape.new(name: 'ListLifecyclePoliciesRequestResourcesList')
119
+ ListLifecyclePoliciesResponse = Shapes::StructureShape.new(name: 'ListLifecyclePoliciesResponse')
90
120
  ListSecurityConfigsRequest = Shapes::StructureShape.new(name: 'ListSecurityConfigsRequest')
91
121
  ListSecurityConfigsRequestMaxResultsInteger = Shapes::IntegerShape.new(name: 'ListSecurityConfigsRequestMaxResultsInteger')
92
122
  ListSecurityConfigsResponse = Shapes::StructureShape.new(name: 'ListSecurityConfigsResponse')
@@ -106,7 +136,9 @@ module Aws::OpenSearchServerless
106
136
  PolicyName = Shapes::StringShape.new(name: 'PolicyName')
107
137
  PolicyVersion = Shapes::StringShape.new(name: 'PolicyVersion')
108
138
  Resource = Shapes::StringShape.new(name: 'Resource')
139
+ ResourceName = Shapes::StringShape.new(name: 'ResourceName')
109
140
  ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
141
+ ResourceType = Shapes::StringShape.new(name: 'ResourceType')
110
142
  SamlConfigOptions = Shapes::StructureShape.new(name: 'SamlConfigOptions')
111
143
  SamlConfigOptionsSessionTimeoutInteger = Shapes::IntegerShape.new(name: 'SamlConfigOptionsSessionTimeoutInteger')
112
144
  SearchCapacityValue = Shapes::IntegerShape.new(name: 'SearchCapacityValue')
@@ -144,6 +176,8 @@ module Aws::OpenSearchServerless
144
176
  UpdateCollectionRequest = Shapes::StructureShape.new(name: 'UpdateCollectionRequest')
145
177
  UpdateCollectionRequestDescriptionString = Shapes::StringShape.new(name: 'UpdateCollectionRequestDescriptionString')
146
178
  UpdateCollectionResponse = Shapes::StructureShape.new(name: 'UpdateCollectionResponse')
179
+ UpdateLifecyclePolicyRequest = Shapes::StructureShape.new(name: 'UpdateLifecyclePolicyRequest')
180
+ UpdateLifecyclePolicyResponse = Shapes::StructureShape.new(name: 'UpdateLifecyclePolicyResponse')
147
181
  UpdateSecurityConfigRequest = Shapes::StructureShape.new(name: 'UpdateSecurityConfigRequest')
148
182
  UpdateSecurityConfigResponse = Shapes::StructureShape.new(name: 'UpdateSecurityConfigResponse')
149
183
  UpdateSecurityPolicyRequest = Shapes::StructureShape.new(name: 'UpdateSecurityPolicyRequest')
@@ -201,6 +235,20 @@ module Aws::OpenSearchServerless
201
235
  BatchGetCollectionResponse.add_member(:collection_error_details, Shapes::ShapeRef.new(shape: CollectionErrorDetails, location_name: "collectionErrorDetails"))
202
236
  BatchGetCollectionResponse.struct_class = Types::BatchGetCollectionResponse
203
237
 
238
+ BatchGetEffectiveLifecyclePolicyRequest.add_member(:resource_identifiers, Shapes::ShapeRef.new(shape: LifecyclePolicyResourceIdentifiers, required: true, location_name: "resourceIdentifiers"))
239
+ BatchGetEffectiveLifecyclePolicyRequest.struct_class = Types::BatchGetEffectiveLifecyclePolicyRequest
240
+
241
+ BatchGetEffectiveLifecyclePolicyResponse.add_member(:effective_lifecycle_policy_details, Shapes::ShapeRef.new(shape: EffectiveLifecyclePolicyDetails, location_name: "effectiveLifecyclePolicyDetails"))
242
+ BatchGetEffectiveLifecyclePolicyResponse.add_member(:effective_lifecycle_policy_error_details, Shapes::ShapeRef.new(shape: EffectiveLifecyclePolicyErrorDetails, location_name: "effectiveLifecyclePolicyErrorDetails"))
243
+ BatchGetEffectiveLifecyclePolicyResponse.struct_class = Types::BatchGetEffectiveLifecyclePolicyResponse
244
+
245
+ BatchGetLifecyclePolicyRequest.add_member(:identifiers, Shapes::ShapeRef.new(shape: LifecyclePolicyIdentifiers, required: true, location_name: "identifiers"))
246
+ BatchGetLifecyclePolicyRequest.struct_class = Types::BatchGetLifecyclePolicyRequest
247
+
248
+ BatchGetLifecyclePolicyResponse.add_member(:lifecycle_policy_details, Shapes::ShapeRef.new(shape: LifecyclePolicyDetails, location_name: "lifecyclePolicyDetails"))
249
+ BatchGetLifecyclePolicyResponse.add_member(:lifecycle_policy_error_details, Shapes::ShapeRef.new(shape: LifecyclePolicyErrorDetails, location_name: "lifecyclePolicyErrorDetails"))
250
+ BatchGetLifecyclePolicyResponse.struct_class = Types::BatchGetLifecyclePolicyResponse
251
+
204
252
  BatchGetVpcEndpointRequest.add_member(:ids, Shapes::ShapeRef.new(shape: VpcEndpointIds, required: true, location_name: "ids"))
205
253
  BatchGetVpcEndpointRequest.struct_class = Types::BatchGetVpcEndpointRequest
206
254
 
@@ -285,6 +333,16 @@ module Aws::OpenSearchServerless
285
333
  CreateCollectionResponse.add_member(:create_collection_detail, Shapes::ShapeRef.new(shape: CreateCollectionDetail, location_name: "createCollectionDetail"))
286
334
  CreateCollectionResponse.struct_class = Types::CreateCollectionResponse
287
335
 
336
+ CreateLifecyclePolicyRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: ClientToken, location_name: "clientToken", metadata: {"idempotencyToken"=>true}))
337
+ CreateLifecyclePolicyRequest.add_member(:description, Shapes::ShapeRef.new(shape: PolicyDescription, location_name: "description"))
338
+ CreateLifecyclePolicyRequest.add_member(:name, Shapes::ShapeRef.new(shape: PolicyName, required: true, location_name: "name"))
339
+ CreateLifecyclePolicyRequest.add_member(:policy, Shapes::ShapeRef.new(shape: PolicyDocument, required: true, location_name: "policy"))
340
+ CreateLifecyclePolicyRequest.add_member(:type, Shapes::ShapeRef.new(shape: LifecyclePolicyType, required: true, location_name: "type"))
341
+ CreateLifecyclePolicyRequest.struct_class = Types::CreateLifecyclePolicyRequest
342
+
343
+ CreateLifecyclePolicyResponse.add_member(:lifecycle_policy_detail, Shapes::ShapeRef.new(shape: LifecyclePolicyDetail, location_name: "lifecyclePolicyDetail"))
344
+ CreateLifecyclePolicyResponse.struct_class = Types::CreateLifecyclePolicyResponse
345
+
288
346
  CreateSecurityConfigRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: ClientToken, location_name: "clientToken", metadata: {"idempotencyToken"=>true}))
289
347
  CreateSecurityConfigRequest.add_member(:description, Shapes::ShapeRef.new(shape: ConfigDescription, location_name: "description"))
290
348
  CreateSecurityConfigRequest.add_member(:name, Shapes::ShapeRef.new(shape: ConfigName, required: true, location_name: "name"))
@@ -339,6 +397,13 @@ module Aws::OpenSearchServerless
339
397
  DeleteCollectionResponse.add_member(:delete_collection_detail, Shapes::ShapeRef.new(shape: DeleteCollectionDetail, location_name: "deleteCollectionDetail"))
340
398
  DeleteCollectionResponse.struct_class = Types::DeleteCollectionResponse
341
399
 
400
+ DeleteLifecyclePolicyRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: ClientToken, location_name: "clientToken", metadata: {"idempotencyToken"=>true}))
401
+ DeleteLifecyclePolicyRequest.add_member(:name, Shapes::ShapeRef.new(shape: PolicyName, required: true, location_name: "name"))
402
+ DeleteLifecyclePolicyRequest.add_member(:type, Shapes::ShapeRef.new(shape: LifecyclePolicyType, required: true, location_name: "type"))
403
+ DeleteLifecyclePolicyRequest.struct_class = Types::DeleteLifecyclePolicyRequest
404
+
405
+ DeleteLifecyclePolicyResponse.struct_class = Types::DeleteLifecyclePolicyResponse
406
+
342
407
  DeleteSecurityConfigRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: ClientToken, location_name: "clientToken", metadata: {"idempotencyToken"=>true}))
343
408
  DeleteSecurityConfigRequest.add_member(:id, Shapes::ShapeRef.new(shape: SecurityConfigId, required: true, location_name: "id"))
344
409
  DeleteSecurityConfigRequest.struct_class = Types::DeleteSecurityConfigRequest
@@ -364,6 +429,24 @@ module Aws::OpenSearchServerless
364
429
  DeleteVpcEndpointResponse.add_member(:delete_vpc_endpoint_detail, Shapes::ShapeRef.new(shape: DeleteVpcEndpointDetail, location_name: "deleteVpcEndpointDetail"))
365
430
  DeleteVpcEndpointResponse.struct_class = Types::DeleteVpcEndpointResponse
366
431
 
432
+ EffectiveLifecyclePolicyDetail.add_member(:no_min_retention_period, Shapes::ShapeRef.new(shape: Boolean, location_name: "noMinRetentionPeriod"))
433
+ EffectiveLifecyclePolicyDetail.add_member(:policy_name, Shapes::ShapeRef.new(shape: PolicyName, location_name: "policyName"))
434
+ EffectiveLifecyclePolicyDetail.add_member(:resource, Shapes::ShapeRef.new(shape: Resource, location_name: "resource"))
435
+ EffectiveLifecyclePolicyDetail.add_member(:resource_type, Shapes::ShapeRef.new(shape: ResourceType, location_name: "resourceType"))
436
+ EffectiveLifecyclePolicyDetail.add_member(:retention_period, Shapes::ShapeRef.new(shape: String, location_name: "retentionPeriod"))
437
+ EffectiveLifecyclePolicyDetail.add_member(:type, Shapes::ShapeRef.new(shape: LifecyclePolicyType, location_name: "type"))
438
+ EffectiveLifecyclePolicyDetail.struct_class = Types::EffectiveLifecyclePolicyDetail
439
+
440
+ EffectiveLifecyclePolicyDetails.member = Shapes::ShapeRef.new(shape: EffectiveLifecyclePolicyDetail)
441
+
442
+ EffectiveLifecyclePolicyErrorDetail.add_member(:error_code, Shapes::ShapeRef.new(shape: String, location_name: "errorCode"))
443
+ EffectiveLifecyclePolicyErrorDetail.add_member(:error_message, Shapes::ShapeRef.new(shape: String, location_name: "errorMessage"))
444
+ EffectiveLifecyclePolicyErrorDetail.add_member(:resource, Shapes::ShapeRef.new(shape: Resource, location_name: "resource"))
445
+ EffectiveLifecyclePolicyErrorDetail.add_member(:type, Shapes::ShapeRef.new(shape: LifecyclePolicyType, location_name: "type"))
446
+ EffectiveLifecyclePolicyErrorDetail.struct_class = Types::EffectiveLifecyclePolicyErrorDetail
447
+
448
+ EffectiveLifecyclePolicyErrorDetails.member = Shapes::ShapeRef.new(shape: EffectiveLifecyclePolicyErrorDetail)
449
+
367
450
  GetAccessPolicyRequest.add_member(:name, Shapes::ShapeRef.new(shape: PolicyName, required: true, location_name: "name"))
368
451
  GetAccessPolicyRequest.add_member(:type, Shapes::ShapeRef.new(shape: AccessPolicyType, required: true, location_name: "type"))
369
452
  GetAccessPolicyRequest.struct_class = Types::GetAccessPolicyRequest
@@ -379,6 +462,7 @@ module Aws::OpenSearchServerless
379
462
  GetPoliciesStatsRequest.struct_class = Types::GetPoliciesStatsRequest
380
463
 
381
464
  GetPoliciesStatsResponse.add_member(:access_policy_stats, Shapes::ShapeRef.new(shape: AccessPolicyStats, location_name: "AccessPolicyStats"))
465
+ GetPoliciesStatsResponse.add_member(:lifecycle_policy_stats, Shapes::ShapeRef.new(shape: LifecyclePolicyStats, location_name: "LifecyclePolicyStats"))
382
466
  GetPoliciesStatsResponse.add_member(:security_config_stats, Shapes::ShapeRef.new(shape: SecurityConfigStats, location_name: "SecurityConfigStats"))
383
467
  GetPoliciesStatsResponse.add_member(:security_policy_stats, Shapes::ShapeRef.new(shape: SecurityPolicyStats, location_name: "SecurityPolicyStats"))
384
468
  GetPoliciesStatsResponse.add_member(:total_policy_count, Shapes::ShapeRef.new(shape: Long, location_name: "TotalPolicyCount"))
@@ -400,6 +484,50 @@ module Aws::OpenSearchServerless
400
484
  InternalServerException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
401
485
  InternalServerException.struct_class = Types::InternalServerException
402
486
 
487
+ LifecyclePolicyDetail.add_member(:created_date, Shapes::ShapeRef.new(shape: Long, location_name: "createdDate"))
488
+ LifecyclePolicyDetail.add_member(:description, Shapes::ShapeRef.new(shape: PolicyDescription, location_name: "description"))
489
+ LifecyclePolicyDetail.add_member(:last_modified_date, Shapes::ShapeRef.new(shape: Long, location_name: "lastModifiedDate"))
490
+ LifecyclePolicyDetail.add_member(:name, Shapes::ShapeRef.new(shape: PolicyName, location_name: "name"))
491
+ LifecyclePolicyDetail.add_member(:policy, Shapes::ShapeRef.new(shape: Document, location_name: "policy"))
492
+ LifecyclePolicyDetail.add_member(:policy_version, Shapes::ShapeRef.new(shape: PolicyVersion, location_name: "policyVersion"))
493
+ LifecyclePolicyDetail.add_member(:type, Shapes::ShapeRef.new(shape: LifecyclePolicyType, location_name: "type"))
494
+ LifecyclePolicyDetail.struct_class = Types::LifecyclePolicyDetail
495
+
496
+ LifecyclePolicyDetails.member = Shapes::ShapeRef.new(shape: LifecyclePolicyDetail)
497
+
498
+ LifecyclePolicyErrorDetail.add_member(:error_code, Shapes::ShapeRef.new(shape: String, location_name: "errorCode"))
499
+ LifecyclePolicyErrorDetail.add_member(:error_message, Shapes::ShapeRef.new(shape: String, location_name: "errorMessage"))
500
+ LifecyclePolicyErrorDetail.add_member(:name, Shapes::ShapeRef.new(shape: PolicyName, location_name: "name"))
501
+ LifecyclePolicyErrorDetail.add_member(:type, Shapes::ShapeRef.new(shape: LifecyclePolicyType, location_name: "type"))
502
+ LifecyclePolicyErrorDetail.struct_class = Types::LifecyclePolicyErrorDetail
503
+
504
+ LifecyclePolicyErrorDetails.member = Shapes::ShapeRef.new(shape: LifecyclePolicyErrorDetail)
505
+
506
+ LifecyclePolicyIdentifier.add_member(:name, Shapes::ShapeRef.new(shape: PolicyName, required: true, location_name: "name"))
507
+ LifecyclePolicyIdentifier.add_member(:type, Shapes::ShapeRef.new(shape: LifecyclePolicyType, required: true, location_name: "type"))
508
+ LifecyclePolicyIdentifier.struct_class = Types::LifecyclePolicyIdentifier
509
+
510
+ LifecyclePolicyIdentifiers.member = Shapes::ShapeRef.new(shape: LifecyclePolicyIdentifier)
511
+
512
+ LifecyclePolicyResourceIdentifier.add_member(:resource, Shapes::ShapeRef.new(shape: ResourceName, required: true, location_name: "resource"))
513
+ LifecyclePolicyResourceIdentifier.add_member(:type, Shapes::ShapeRef.new(shape: LifecyclePolicyType, required: true, location_name: "type"))
514
+ LifecyclePolicyResourceIdentifier.struct_class = Types::LifecyclePolicyResourceIdentifier
515
+
516
+ LifecyclePolicyResourceIdentifiers.member = Shapes::ShapeRef.new(shape: LifecyclePolicyResourceIdentifier)
517
+
518
+ LifecyclePolicyStats.add_member(:retention_policy_count, Shapes::ShapeRef.new(shape: Long, location_name: "RetentionPolicyCount"))
519
+ LifecyclePolicyStats.struct_class = Types::LifecyclePolicyStats
520
+
521
+ LifecyclePolicySummaries.member = Shapes::ShapeRef.new(shape: LifecyclePolicySummary)
522
+
523
+ LifecyclePolicySummary.add_member(:created_date, Shapes::ShapeRef.new(shape: Long, location_name: "createdDate"))
524
+ LifecyclePolicySummary.add_member(:description, Shapes::ShapeRef.new(shape: PolicyDescription, location_name: "description"))
525
+ LifecyclePolicySummary.add_member(:last_modified_date, Shapes::ShapeRef.new(shape: Long, location_name: "lastModifiedDate"))
526
+ LifecyclePolicySummary.add_member(:name, Shapes::ShapeRef.new(shape: PolicyName, location_name: "name"))
527
+ LifecyclePolicySummary.add_member(:policy_version, Shapes::ShapeRef.new(shape: PolicyVersion, location_name: "policyVersion"))
528
+ LifecyclePolicySummary.add_member(:type, Shapes::ShapeRef.new(shape: LifecyclePolicyType, location_name: "type"))
529
+ LifecyclePolicySummary.struct_class = Types::LifecyclePolicySummary
530
+
403
531
  ListAccessPoliciesRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: ListAccessPoliciesRequestMaxResultsInteger, location_name: "maxResults"))
404
532
  ListAccessPoliciesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "nextToken"))
405
533
  ListAccessPoliciesRequest.add_member(:resource, Shapes::ShapeRef.new(shape: ListAccessPoliciesRequestResourceList, location_name: "resource"))
@@ -421,6 +549,18 @@ module Aws::OpenSearchServerless
421
549
  ListCollectionsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "nextToken"))
422
550
  ListCollectionsResponse.struct_class = Types::ListCollectionsResponse
423
551
 
552
+ ListLifecyclePoliciesRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: ListLifecyclePoliciesRequestMaxResultsInteger, location_name: "maxResults"))
553
+ ListLifecyclePoliciesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "nextToken"))
554
+ ListLifecyclePoliciesRequest.add_member(:resources, Shapes::ShapeRef.new(shape: ListLifecyclePoliciesRequestResourcesList, location_name: "resources"))
555
+ ListLifecyclePoliciesRequest.add_member(:type, Shapes::ShapeRef.new(shape: LifecyclePolicyType, required: true, location_name: "type"))
556
+ ListLifecyclePoliciesRequest.struct_class = Types::ListLifecyclePoliciesRequest
557
+
558
+ ListLifecyclePoliciesRequestResourcesList.member = Shapes::ShapeRef.new(shape: LifecycleResource)
559
+
560
+ ListLifecyclePoliciesResponse.add_member(:lifecycle_policy_summaries, Shapes::ShapeRef.new(shape: LifecyclePolicySummaries, location_name: "lifecyclePolicySummaries"))
561
+ ListLifecyclePoliciesResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "nextToken"))
562
+ ListLifecyclePoliciesResponse.struct_class = Types::ListLifecyclePoliciesResponse
563
+
424
564
  ListSecurityConfigsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: ListSecurityConfigsRequestMaxResultsInteger, location_name: "maxResults"))
425
565
  ListSecurityConfigsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "nextToken"))
426
566
  ListSecurityConfigsRequest.add_member(:type, Shapes::ShapeRef.new(shape: SecurityConfigType, required: true, location_name: "type"))
@@ -580,6 +720,17 @@ module Aws::OpenSearchServerless
580
720
  UpdateCollectionResponse.add_member(:update_collection_detail, Shapes::ShapeRef.new(shape: UpdateCollectionDetail, location_name: "updateCollectionDetail"))
581
721
  UpdateCollectionResponse.struct_class = Types::UpdateCollectionResponse
582
722
 
723
+ UpdateLifecyclePolicyRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: ClientToken, location_name: "clientToken", metadata: {"idempotencyToken"=>true}))
724
+ UpdateLifecyclePolicyRequest.add_member(:description, Shapes::ShapeRef.new(shape: PolicyDescription, location_name: "description"))
725
+ UpdateLifecyclePolicyRequest.add_member(:name, Shapes::ShapeRef.new(shape: PolicyName, required: true, location_name: "name"))
726
+ UpdateLifecyclePolicyRequest.add_member(:policy, Shapes::ShapeRef.new(shape: PolicyDocument, location_name: "policy"))
727
+ UpdateLifecyclePolicyRequest.add_member(:policy_version, Shapes::ShapeRef.new(shape: PolicyVersion, required: true, location_name: "policyVersion"))
728
+ UpdateLifecyclePolicyRequest.add_member(:type, Shapes::ShapeRef.new(shape: LifecyclePolicyType, required: true, location_name: "type"))
729
+ UpdateLifecyclePolicyRequest.struct_class = Types::UpdateLifecyclePolicyRequest
730
+
731
+ UpdateLifecyclePolicyResponse.add_member(:lifecycle_policy_detail, Shapes::ShapeRef.new(shape: LifecyclePolicyDetail, location_name: "lifecyclePolicyDetail"))
732
+ UpdateLifecyclePolicyResponse.struct_class = Types::UpdateLifecyclePolicyResponse
733
+
583
734
  UpdateSecurityConfigRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: ClientToken, location_name: "clientToken", metadata: {"idempotencyToken"=>true}))
584
735
  UpdateSecurityConfigRequest.add_member(:config_version, Shapes::ShapeRef.new(shape: PolicyVersion, required: true, location_name: "configVersion"))
585
736
  UpdateSecurityConfigRequest.add_member(:description, Shapes::ShapeRef.new(shape: ConfigDescription, location_name: "description"))
@@ -682,6 +833,26 @@ module Aws::OpenSearchServerless
682
833
  o.errors << Shapes::ShapeRef.new(shape: ValidationException)
683
834
  end)
684
835
 
836
+ api.add_operation(:batch_get_effective_lifecycle_policy, Seahorse::Model::Operation.new.tap do |o|
837
+ o.name = "BatchGetEffectiveLifecyclePolicy"
838
+ o.http_method = "POST"
839
+ o.http_request_uri = "/"
840
+ o.input = Shapes::ShapeRef.new(shape: BatchGetEffectiveLifecyclePolicyRequest)
841
+ o.output = Shapes::ShapeRef.new(shape: BatchGetEffectiveLifecyclePolicyResponse)
842
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
843
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
844
+ end)
845
+
846
+ api.add_operation(:batch_get_lifecycle_policy, Seahorse::Model::Operation.new.tap do |o|
847
+ o.name = "BatchGetLifecyclePolicy"
848
+ o.http_method = "POST"
849
+ o.http_request_uri = "/"
850
+ o.input = Shapes::ShapeRef.new(shape: BatchGetLifecyclePolicyRequest)
851
+ o.output = Shapes::ShapeRef.new(shape: BatchGetLifecyclePolicyResponse)
852
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
853
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
854
+ end)
855
+
685
856
  api.add_operation(:batch_get_vpc_endpoint, Seahorse::Model::Operation.new.tap do |o|
686
857
  o.name = "BatchGetVpcEndpoint"
687
858
  o.http_method = "POST"
@@ -717,6 +888,18 @@ module Aws::OpenSearchServerless
717
888
  o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
718
889
  end)
719
890
 
891
+ api.add_operation(:create_lifecycle_policy, Seahorse::Model::Operation.new.tap do |o|
892
+ o.name = "CreateLifecyclePolicy"
893
+ o.http_method = "POST"
894
+ o.http_request_uri = "/"
895
+ o.input = Shapes::ShapeRef.new(shape: CreateLifecyclePolicyRequest)
896
+ o.output = Shapes::ShapeRef.new(shape: CreateLifecyclePolicyResponse)
897
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
898
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
899
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
900
+ o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
901
+ end)
902
+
720
903
  api.add_operation(:create_security_config, Seahorse::Model::Operation.new.tap do |o|
721
904
  o.name = "CreateSecurityConfig"
722
905
  o.http_method = "POST"
@@ -777,6 +960,18 @@ module Aws::OpenSearchServerless
777
960
  o.errors << Shapes::ShapeRef.new(shape: ValidationException)
778
961
  end)
779
962
 
963
+ api.add_operation(:delete_lifecycle_policy, Seahorse::Model::Operation.new.tap do |o|
964
+ o.name = "DeleteLifecyclePolicy"
965
+ o.http_method = "POST"
966
+ o.http_request_uri = "/"
967
+ o.input = Shapes::ShapeRef.new(shape: DeleteLifecyclePolicyRequest)
968
+ o.output = Shapes::ShapeRef.new(shape: DeleteLifecyclePolicyResponse)
969
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
970
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
971
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
972
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
973
+ end)
974
+
780
975
  api.add_operation(:delete_security_config, Seahorse::Model::Operation.new.tap do |o|
781
976
  o.name = "DeleteSecurityConfig"
782
977
  o.http_method = "POST"
@@ -897,6 +1092,22 @@ module Aws::OpenSearchServerless
897
1092
  )
898
1093
  end)
899
1094
 
1095
+ api.add_operation(:list_lifecycle_policies, Seahorse::Model::Operation.new.tap do |o|
1096
+ o.name = "ListLifecyclePolicies"
1097
+ o.http_method = "POST"
1098
+ o.http_request_uri = "/"
1099
+ o.input = Shapes::ShapeRef.new(shape: ListLifecyclePoliciesRequest)
1100
+ o.output = Shapes::ShapeRef.new(shape: ListLifecyclePoliciesResponse)
1101
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1102
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
1103
+ o[:pager] = Aws::Pager.new(
1104
+ limit_key: "max_results",
1105
+ tokens: {
1106
+ "next_token" => "next_token"
1107
+ }
1108
+ )
1109
+ end)
1110
+
900
1111
  api.add_operation(:list_security_configs, Seahorse::Model::Operation.new.tap do |o|
901
1112
  o.name = "ListSecurityConfigs"
902
1113
  o.http_method = "POST"
@@ -1014,6 +1225,19 @@ module Aws::OpenSearchServerless
1014
1225
  o.errors << Shapes::ShapeRef.new(shape: ValidationException)
1015
1226
  end)
1016
1227
 
1228
+ api.add_operation(:update_lifecycle_policy, Seahorse::Model::Operation.new.tap do |o|
1229
+ o.name = "UpdateLifecyclePolicy"
1230
+ o.http_method = "POST"
1231
+ o.http_request_uri = "/"
1232
+ o.input = Shapes::ShapeRef.new(shape: UpdateLifecyclePolicyRequest)
1233
+ o.output = Shapes::ShapeRef.new(shape: UpdateLifecyclePolicyResponse)
1234
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1235
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1236
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
1237
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
1238
+ o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
1239
+ end)
1240
+
1017
1241
  api.add_operation(:update_security_config, Seahorse::Model::Operation.new.tap do |o|
1018
1242
  o.name = "UpdateSecurityConfig"
1019
1243
  o.http_method = "POST"
@@ -32,7 +32,7 @@ module Aws::OpenSearchServerless
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://aoss-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
37
37
  end
38
38
  raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
@@ -26,6 +26,34 @@ module Aws::OpenSearchServerless
26
26
  end
27
27
  end
28
28
 
29
+ class BatchGetEffectiveLifecyclePolicy
30
+ def self.build(context)
31
+ unless context.config.regional_endpoint
32
+ endpoint = context.config.endpoint.to_s
33
+ end
34
+ Aws::OpenSearchServerless::EndpointParameters.new(
35
+ region: context.config.region,
36
+ use_dual_stack: context.config.use_dualstack_endpoint,
37
+ use_fips: context.config.use_fips_endpoint,
38
+ endpoint: endpoint,
39
+ )
40
+ end
41
+ end
42
+
43
+ class BatchGetLifecyclePolicy
44
+ def self.build(context)
45
+ unless context.config.regional_endpoint
46
+ endpoint = context.config.endpoint.to_s
47
+ end
48
+ Aws::OpenSearchServerless::EndpointParameters.new(
49
+ region: context.config.region,
50
+ use_dual_stack: context.config.use_dualstack_endpoint,
51
+ use_fips: context.config.use_fips_endpoint,
52
+ endpoint: endpoint,
53
+ )
54
+ end
55
+ end
56
+
29
57
  class BatchGetVpcEndpoint
30
58
  def self.build(context)
31
59
  unless context.config.regional_endpoint
@@ -68,6 +96,20 @@ module Aws::OpenSearchServerless
68
96
  end
69
97
  end
70
98
 
99
+ class CreateLifecyclePolicy
100
+ def self.build(context)
101
+ unless context.config.regional_endpoint
102
+ endpoint = context.config.endpoint.to_s
103
+ end
104
+ Aws::OpenSearchServerless::EndpointParameters.new(
105
+ region: context.config.region,
106
+ use_dual_stack: context.config.use_dualstack_endpoint,
107
+ use_fips: context.config.use_fips_endpoint,
108
+ endpoint: endpoint,
109
+ )
110
+ end
111
+ end
112
+
71
113
  class CreateSecurityConfig
72
114
  def self.build(context)
73
115
  unless context.config.regional_endpoint
@@ -138,6 +180,20 @@ module Aws::OpenSearchServerless
138
180
  end
139
181
  end
140
182
 
183
+ class DeleteLifecyclePolicy
184
+ def self.build(context)
185
+ unless context.config.regional_endpoint
186
+ endpoint = context.config.endpoint.to_s
187
+ end
188
+ Aws::OpenSearchServerless::EndpointParameters.new(
189
+ region: context.config.region,
190
+ use_dual_stack: context.config.use_dualstack_endpoint,
191
+ use_fips: context.config.use_fips_endpoint,
192
+ endpoint: endpoint,
193
+ )
194
+ end
195
+ end
196
+
141
197
  class DeleteSecurityConfig
142
198
  def self.build(context)
143
199
  unless context.config.regional_endpoint
@@ -278,6 +334,20 @@ module Aws::OpenSearchServerless
278
334
  end
279
335
  end
280
336
 
337
+ class ListLifecyclePolicies
338
+ def self.build(context)
339
+ unless context.config.regional_endpoint
340
+ endpoint = context.config.endpoint.to_s
341
+ end
342
+ Aws::OpenSearchServerless::EndpointParameters.new(
343
+ region: context.config.region,
344
+ use_dual_stack: context.config.use_dualstack_endpoint,
345
+ use_fips: context.config.use_fips_endpoint,
346
+ endpoint: endpoint,
347
+ )
348
+ end
349
+ end
350
+
281
351
  class ListSecurityConfigs
282
352
  def self.build(context)
283
353
  unless context.config.regional_endpoint
@@ -404,6 +474,20 @@ module Aws::OpenSearchServerless
404
474
  end
405
475
  end
406
476
 
477
+ class UpdateLifecyclePolicy
478
+ def self.build(context)
479
+ unless context.config.regional_endpoint
480
+ endpoint = context.config.endpoint.to_s
481
+ end
482
+ Aws::OpenSearchServerless::EndpointParameters.new(
483
+ region: context.config.region,
484
+ use_dual_stack: context.config.use_dualstack_endpoint,
485
+ use_fips: context.config.use_fips_endpoint,
486
+ endpoint: endpoint,
487
+ )
488
+ end
489
+ end
490
+
407
491
  class UpdateSecurityConfig
408
492
  def self.build(context)
409
493
  unless context.config.regional_endpoint
@@ -58,12 +58,18 @@ module Aws::OpenSearchServerless
58
58
  case context.operation_name
59
59
  when :batch_get_collection
60
60
  Aws::OpenSearchServerless::Endpoints::BatchGetCollection.build(context)
61
+ when :batch_get_effective_lifecycle_policy
62
+ Aws::OpenSearchServerless::Endpoints::BatchGetEffectiveLifecyclePolicy.build(context)
63
+ when :batch_get_lifecycle_policy
64
+ Aws::OpenSearchServerless::Endpoints::BatchGetLifecyclePolicy.build(context)
61
65
  when :batch_get_vpc_endpoint
62
66
  Aws::OpenSearchServerless::Endpoints::BatchGetVpcEndpoint.build(context)
63
67
  when :create_access_policy
64
68
  Aws::OpenSearchServerless::Endpoints::CreateAccessPolicy.build(context)
65
69
  when :create_collection
66
70
  Aws::OpenSearchServerless::Endpoints::CreateCollection.build(context)
71
+ when :create_lifecycle_policy
72
+ Aws::OpenSearchServerless::Endpoints::CreateLifecyclePolicy.build(context)
67
73
  when :create_security_config
68
74
  Aws::OpenSearchServerless::Endpoints::CreateSecurityConfig.build(context)
69
75
  when :create_security_policy
@@ -74,6 +80,8 @@ module Aws::OpenSearchServerless
74
80
  Aws::OpenSearchServerless::Endpoints::DeleteAccessPolicy.build(context)
75
81
  when :delete_collection
76
82
  Aws::OpenSearchServerless::Endpoints::DeleteCollection.build(context)
83
+ when :delete_lifecycle_policy
84
+ Aws::OpenSearchServerless::Endpoints::DeleteLifecyclePolicy.build(context)
77
85
  when :delete_security_config
78
86
  Aws::OpenSearchServerless::Endpoints::DeleteSecurityConfig.build(context)
79
87
  when :delete_security_policy
@@ -94,6 +102,8 @@ module Aws::OpenSearchServerless
94
102
  Aws::OpenSearchServerless::Endpoints::ListAccessPolicies.build(context)
95
103
  when :list_collections
96
104
  Aws::OpenSearchServerless::Endpoints::ListCollections.build(context)
105
+ when :list_lifecycle_policies
106
+ Aws::OpenSearchServerless::Endpoints::ListLifecyclePolicies.build(context)
97
107
  when :list_security_configs
98
108
  Aws::OpenSearchServerless::Endpoints::ListSecurityConfigs.build(context)
99
109
  when :list_security_policies
@@ -112,6 +122,8 @@ module Aws::OpenSearchServerless
112
122
  Aws::OpenSearchServerless::Endpoints::UpdateAccountSettings.build(context)
113
123
  when :update_collection
114
124
  Aws::OpenSearchServerless::Endpoints::UpdateCollection.build(context)
125
+ when :update_lifecycle_policy
126
+ Aws::OpenSearchServerless::Endpoints::UpdateLifecyclePolicy.build(context)
115
127
  when :update_security_config
116
128
  Aws::OpenSearchServerless::Endpoints::UpdateSecurityConfig.build(context)
117
129
  when :update_security_policy