aws-sdk-opensearchservice 1.103.0 → 1.104.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1701d64074b5dd02a7ad39e145636c89d390f33868d05a69101ba10065a1d587
4
- data.tar.gz: abc776a9bab7a4782d3d332e1d48683027b816ada09342bb1692b76fdef6db4d
3
+ metadata.gz: 6d72a60f66eda90d91bf02b74bdffe14740c62f3562c2228bee75fe23ca6c64e
4
+ data.tar.gz: ba73c2af3df833c3893659510ee59858e65bf86730c629a4e81dedfbbeec0312
5
5
  SHA512:
6
- metadata.gz: fc1b05b96e97d093d900533136ae38fc6aff5cdb8db2a2d614d864e70bfa624558079ef65ac36d4e294a01d9a7bcad754b223889f97bb2c81341e70941dfb5b2
7
- data.tar.gz: 16cf00d713a78905b485c8fe2684783743620713c4b9ed8ad14edb0d74c22a522756b73115ccc562f66a6938fc8fb0e0e2e6be5a847488ea1e95a063350d0bdd
6
+ metadata.gz: b46a0fbb740e69655444bd6959d4408dbbe10cd7793a840ef7f5b17db415758c3920d27287967251722a817b8cf2f9aff17921afc89717c6e0e2f6fcc1dc7659
7
+ data.tar.gz: 125f2afae30a02e7a15577c438a59b1a169e75acc763ac6b4c891d6c8f104383b74f3bfa3e80ffb2b2cba9ae00ee3e9ca412b1e78e16c7259ab007e7f8d61c34
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.104.0 (2026-06-19)
5
+ ------------------
6
+
7
+ * Feature - This release introduces data source attachment APIs, enabling users to attach and detach Amazon OpenSearch Service domains and Amazon OpenSearch Serverless collections to an OpenSearch application.
8
+
4
9
  1.103.0 (2026-06-17)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.103.0
1
+ 1.104.0
@@ -810,6 +810,85 @@ module Aws::OpenSearchService
810
810
  req.send_request(options)
811
811
  end
812
812
 
813
+ # Attaches a data source to an OpenSearch application. The data source
814
+ # can be an Amazon OpenSearch Service domain or an Amazon OpenSearch
815
+ # Serverless collection. If both the application and data source are in
816
+ # the `ACTIVE` state, the attachment completes immediately and returns a
817
+ # status of `ATTACHED`. If either resource is not yet active, the
818
+ # operation stores the request and returns a status of `PENDING`. A
819
+ # background process then completes the attachment when both resources
820
+ # become active. Pending attachments that are not completed within 24
821
+ # hours are marked as `FAILED`. This operation is idempotent. If a data
822
+ # source is already attached or pending for the same application, the
823
+ # existing attachment is returned.
824
+ #
825
+ # @option params [required, String] :id
826
+ # The unique identifier or name of the OpenSearch application to attach
827
+ # the data source to. This is the same identifier used with
828
+ # `UpdateApplication`, `GetApplication`, and `DeleteApplication`.
829
+ #
830
+ # @option params [required, String] :data_source_arn
831
+ # The Amazon Resource Name (ARN) of the domain. See [Identifiers for IAM
832
+ # Entities ][1] in *Using Amazon Web Services Identity and Access
833
+ # Management* for more information.
834
+ #
835
+ #
836
+ #
837
+ # [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/index.html
838
+ #
839
+ # @option params [String] :workspace_id
840
+ # The identifier of an existing workspace to update with the new data
841
+ # source. Mutually exclusive with `workspaceConfiguration`.
842
+ #
843
+ # @option params [Types::WorkspaceConfigurationInput] :workspace_configuration
844
+ # Configuration for creating a new workspace during the attachment. If
845
+ # specified, a workspace is created and linked to the data source after
846
+ # the attachment completes. Mutually exclusive with `workspaceId`.
847
+ #
848
+ # @option params [String] :client_token
849
+ # A unique, case-sensitive identifier to ensure idempotency of the
850
+ # request. If you retry a request with the same client token and the
851
+ # same parameters, the retry succeeds without performing any further
852
+ # actions.
853
+ #
854
+ # @return [Types::AttachDataSourceResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
855
+ #
856
+ # * {Types::AttachDataSourceResponse#attachment_id #attachment_id} => String
857
+ # * {Types::AttachDataSourceResponse#id #id} => String
858
+ # * {Types::AttachDataSourceResponse#arn #arn} => String
859
+ # * {Types::AttachDataSourceResponse#data_source_arn #data_source_arn} => String
860
+ # * {Types::AttachDataSourceResponse#status #status} => String
861
+ #
862
+ # @example Request syntax with placeholder values
863
+ #
864
+ # resp = client.attach_data_source({
865
+ # id: "Id", # required
866
+ # data_source_arn: "ARN", # required
867
+ # workspace_id: "String",
868
+ # workspace_configuration: {
869
+ # name: "String", # required
870
+ # workspace_type: "String", # required
871
+ # },
872
+ # client_token: "ClientToken",
873
+ # })
874
+ #
875
+ # @example Response structure
876
+ #
877
+ # resp.attachment_id #=> String
878
+ # resp.id #=> String
879
+ # resp.arn #=> String
880
+ # resp.data_source_arn #=> String
881
+ # resp.status #=> String, one of "PENDING", "ATTACHED", "FAILED"
882
+ #
883
+ # @see http://docs.aws.amazon.com/goto/WebAPI/opensearch-2021-01-01/AttachDataSource AWS API Documentation
884
+ #
885
+ # @overload attach_data_source(params = {})
886
+ # @param [Hash] params ({})
887
+ def attach_data_source(params = {}, options = {})
888
+ req = build_request(:attach_data_source, params)
889
+ req.send_request(options)
890
+ end
891
+
813
892
  # Provides access to an Amazon OpenSearch Service domain through the use
814
893
  # of an interface VPC endpoint.
815
894
  #
@@ -2311,6 +2390,55 @@ module Aws::OpenSearchService
2311
2390
  req.send_request(options)
2312
2391
  end
2313
2392
 
2393
+ # Returns the current status and details of a specific data source
2394
+ # attachment for an OpenSearch application. Throws a
2395
+ # `ResourceNotFoundException` if no attachment record exists for the
2396
+ # specified application and data source combination.
2397
+ #
2398
+ # @option params [required, String] :id
2399
+ # The unique identifier or name of the OpenSearch application.
2400
+ #
2401
+ # @option params [required, String] :data_source_arn
2402
+ # The Amazon Resource Name (ARN) of the domain. See [Identifiers for IAM
2403
+ # Entities ][1] in *Using Amazon Web Services Identity and Access
2404
+ # Management* for more information.
2405
+ #
2406
+ #
2407
+ #
2408
+ # [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/index.html
2409
+ #
2410
+ # @return [Types::DescribeDataSourceAttachmentResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2411
+ #
2412
+ # * {Types::DescribeDataSourceAttachmentResponse#attachment_id #attachment_id} => String
2413
+ # * {Types::DescribeDataSourceAttachmentResponse#id #id} => String
2414
+ # * {Types::DescribeDataSourceAttachmentResponse#arn #arn} => String
2415
+ # * {Types::DescribeDataSourceAttachmentResponse#data_source_arn #data_source_arn} => String
2416
+ # * {Types::DescribeDataSourceAttachmentResponse#status #status} => String
2417
+ #
2418
+ # @example Request syntax with placeholder values
2419
+ #
2420
+ # resp = client.describe_data_source_attachment({
2421
+ # id: "Id", # required
2422
+ # data_source_arn: "ARN", # required
2423
+ # })
2424
+ #
2425
+ # @example Response structure
2426
+ #
2427
+ # resp.attachment_id #=> String
2428
+ # resp.id #=> String
2429
+ # resp.arn #=> String
2430
+ # resp.data_source_arn #=> String
2431
+ # resp.status #=> String, one of "PENDING", "ATTACHED", "FAILED"
2432
+ #
2433
+ # @see http://docs.aws.amazon.com/goto/WebAPI/opensearch-2021-01-01/DescribeDataSourceAttachment AWS API Documentation
2434
+ #
2435
+ # @overload describe_data_source_attachment(params = {})
2436
+ # @param [Hash] params ({})
2437
+ def describe_data_source_attachment(params = {}, options = {})
2438
+ req = build_request(:describe_data_source_attachment, params)
2439
+ req.send_request(options)
2440
+ end
2441
+
2314
2442
  # Describes the domain configuration for the specified Amazon OpenSearch
2315
2443
  # Service domain, including the domain ID, domain service endpoint, and
2316
2444
  # domain ARN.
@@ -3744,6 +3872,54 @@ module Aws::OpenSearchService
3744
3872
  req.send_request(options)
3745
3873
  end
3746
3874
 
3875
+ # Removes a data source from an OpenSearch application. The application
3876
+ # must be in the `ACTIVE` state. This operation removes the data source
3877
+ # saved object from the application and deletes the attachment record.
3878
+ # Throws a `ConflictException` if the specified data source has a
3879
+ # `PENDING` attachment, and a `ResourceNotFoundException` if the data
3880
+ # source is not currently attached to the application.
3881
+ #
3882
+ # @option params [required, String] :id
3883
+ # The unique identifier or name of the OpenSearch application to detach
3884
+ # the data source from.
3885
+ #
3886
+ # @option params [required, String] :data_source_arn
3887
+ # The Amazon Resource Name (ARN) of the domain. See [Identifiers for IAM
3888
+ # Entities ][1] in *Using Amazon Web Services Identity and Access
3889
+ # Management* for more information.
3890
+ #
3891
+ #
3892
+ #
3893
+ # [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/index.html
3894
+ #
3895
+ # @return [Types::DetachDataSourceResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3896
+ #
3897
+ # * {Types::DetachDataSourceResponse#id #id} => String
3898
+ # * {Types::DetachDataSourceResponse#arn #arn} => String
3899
+ # * {Types::DetachDataSourceResponse#data_source_arn #data_source_arn} => String
3900
+ #
3901
+ # @example Request syntax with placeholder values
3902
+ #
3903
+ # resp = client.detach_data_source({
3904
+ # id: "Id", # required
3905
+ # data_source_arn: "ARN", # required
3906
+ # })
3907
+ #
3908
+ # @example Response structure
3909
+ #
3910
+ # resp.id #=> String
3911
+ # resp.arn #=> String
3912
+ # resp.data_source_arn #=> String
3913
+ #
3914
+ # @see http://docs.aws.amazon.com/goto/WebAPI/opensearch-2021-01-01/DetachDataSource AWS API Documentation
3915
+ #
3916
+ # @overload detach_data_source(params = {})
3917
+ # @param [Hash] params ({})
3918
+ def detach_data_source(params = {}, options = {})
3919
+ req = build_request(:detach_data_source, params)
3920
+ req.send_request(options)
3921
+ end
3922
+
3747
3923
  # Removes a package from the specified Amazon OpenSearch Service domain.
3748
3924
  # The package can't be in use with any OpenSearch index for the
3749
3925
  # dissociation to succeed. The package is still available in OpenSearch
@@ -4364,6 +4540,51 @@ module Aws::OpenSearchService
4364
4540
  req.send_request(options)
4365
4541
  end
4366
4542
 
4543
+ # Returns a paginated list of all data source attachments for an
4544
+ # OpenSearch application, including attachments in all states
4545
+ # (`PENDING`, `ATTACHED`, and `FAILED`).
4546
+ #
4547
+ # @option params [required, String] :id
4548
+ # The unique identifier or name of the OpenSearch application to list
4549
+ # attachments for.
4550
+ #
4551
+ # @option params [String] :next_token
4552
+ # The pagination token from a previous call to retrieve the next set of
4553
+ # results.
4554
+ #
4555
+ # @option params [Integer] :max_results
4556
+ # The maximum number of results to return per page. The default is 50.
4557
+ #
4558
+ # @return [Types::ListDataSourceAttachmentsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
4559
+ #
4560
+ # * {Types::ListDataSourceAttachmentsResponse#attachments #attachments} => Array<Types::DataSourceAttachmentSummary>
4561
+ # * {Types::ListDataSourceAttachmentsResponse#next_token #next_token} => String
4562
+ #
4563
+ # @example Request syntax with placeholder values
4564
+ #
4565
+ # resp = client.list_data_source_attachments({
4566
+ # id: "Id", # required
4567
+ # next_token: "String",
4568
+ # max_results: 1,
4569
+ # })
4570
+ #
4571
+ # @example Response structure
4572
+ #
4573
+ # resp.attachments #=> Array
4574
+ # resp.attachments[0].attachment_id #=> String
4575
+ # resp.attachments[0].data_source_arn #=> String
4576
+ # resp.attachments[0].status #=> String, one of "PENDING", "ATTACHED", "FAILED"
4577
+ # resp.next_token #=> String
4578
+ #
4579
+ # @see http://docs.aws.amazon.com/goto/WebAPI/opensearch-2021-01-01/ListDataSourceAttachments AWS API Documentation
4580
+ #
4581
+ # @overload list_data_source_attachments(params = {})
4582
+ # @param [Hash] params ({})
4583
+ def list_data_source_attachments(params = {}, options = {})
4584
+ req = build_request(:list_data_source_attachments, params)
4585
+ req.send_request(options)
4586
+ end
4587
+
4367
4588
  # Lists direct-query data sources for a specific domain. For more
4368
4589
  # information, see For more information, see [Working with Amazon
4369
4590
  # OpenSearch Service direct queries with Amazon S3][1].
@@ -6600,7 +6821,7 @@ module Aws::OpenSearchService
6600
6821
  tracer: tracer
6601
6822
  )
6602
6823
  context[:gem_name] = 'aws-sdk-opensearchservice'
6603
- context[:gem_version] = '1.103.0'
6824
+ context[:gem_version] = '1.104.0'
6604
6825
  Seahorse::Client::Request.new(handlers, context)
6605
6826
  end
6606
6827
 
@@ -56,6 +56,8 @@ module Aws::OpenSearchService
56
56
  AssociatePackageResponse = Shapes::StructureShape.new(name: 'AssociatePackageResponse')
57
57
  AssociatePackagesRequest = Shapes::StructureShape.new(name: 'AssociatePackagesRequest')
58
58
  AssociatePackagesResponse = Shapes::StructureShape.new(name: 'AssociatePackagesResponse')
59
+ AttachDataSourceRequest = Shapes::StructureShape.new(name: 'AttachDataSourceRequest')
60
+ AttachDataSourceResponse = Shapes::StructureShape.new(name: 'AttachDataSourceResponse')
59
61
  AuthorizeVpcEndpointAccessRequest = Shapes::StructureShape.new(name: 'AuthorizeVpcEndpointAccessRequest')
60
62
  AuthorizeVpcEndpointAccessResponse = Shapes::StructureShape.new(name: 'AuthorizeVpcEndpointAccessResponse')
61
63
  AuthorizedPrincipal = Shapes::StructureShape.new(name: 'AuthorizedPrincipal')
@@ -138,6 +140,9 @@ module Aws::OpenSearchService
138
140
  CreatedAt = Shapes::TimestampShape.new(name: 'CreatedAt')
139
141
  CrossClusterSearchConnectionProperties = Shapes::StructureShape.new(name: 'CrossClusterSearchConnectionProperties')
140
142
  DataSource = Shapes::StructureShape.new(name: 'DataSource')
143
+ DataSourceAttachmentStatus = Shapes::StringShape.new(name: 'DataSourceAttachmentStatus')
144
+ DataSourceAttachmentSummary = Shapes::StructureShape.new(name: 'DataSourceAttachmentSummary')
145
+ DataSourceAttachmentSummaryList = Shapes::ListShape.new(name: 'DataSourceAttachmentSummaryList')
141
146
  DataSourceDescription = Shapes::StringShape.new(name: 'DataSourceDescription')
142
147
  DataSourceDetails = Shapes::StructureShape.new(name: 'DataSourceDetails')
143
148
  DataSourceList = Shapes::ListShape.new(name: 'DataSourceList')
@@ -171,6 +176,8 @@ module Aws::OpenSearchService
171
176
  DeploymentType = Shapes::StringShape.new(name: 'DeploymentType')
172
177
  DeregisterCapabilityRequest = Shapes::StructureShape.new(name: 'DeregisterCapabilityRequest')
173
178
  DeregisterCapabilityResponse = Shapes::StructureShape.new(name: 'DeregisterCapabilityResponse')
179
+ DescribeDataSourceAttachmentRequest = Shapes::StructureShape.new(name: 'DescribeDataSourceAttachmentRequest')
180
+ DescribeDataSourceAttachmentResponse = Shapes::StructureShape.new(name: 'DescribeDataSourceAttachmentResponse')
174
181
  DescribeDomainAutoTunesRequest = Shapes::StructureShape.new(name: 'DescribeDomainAutoTunesRequest')
175
182
  DescribeDomainAutoTunesResponse = Shapes::StructureShape.new(name: 'DescribeDomainAutoTunesResponse')
176
183
  DescribeDomainChangeProgressRequest = Shapes::StructureShape.new(name: 'DescribeDomainChangeProgressRequest')
@@ -209,6 +216,8 @@ module Aws::OpenSearchService
209
216
  DescribeVpcEndpointsRequest = Shapes::StructureShape.new(name: 'DescribeVpcEndpointsRequest')
210
217
  DescribeVpcEndpointsResponse = Shapes::StructureShape.new(name: 'DescribeVpcEndpointsResponse')
211
218
  Description = Shapes::StringShape.new(name: 'Description')
219
+ DetachDataSourceRequest = Shapes::StructureShape.new(name: 'DetachDataSourceRequest')
220
+ DetachDataSourceResponse = Shapes::StructureShape.new(name: 'DetachDataSourceResponse')
212
221
  DirectQueryDataSource = Shapes::StructureShape.new(name: 'DirectQueryDataSource')
213
222
  DirectQueryDataSourceDescription = Shapes::StringShape.new(name: 'DirectQueryDataSourceDescription')
214
223
  DirectQueryDataSourceList = Shapes::ListShape.new(name: 'DirectQueryDataSourceList')
@@ -361,6 +370,8 @@ module Aws::OpenSearchService
361
370
  LimitsByRole = Shapes::MapShape.new(name: 'LimitsByRole')
362
371
  ListApplicationsRequest = Shapes::StructureShape.new(name: 'ListApplicationsRequest')
363
372
  ListApplicationsResponse = Shapes::StructureShape.new(name: 'ListApplicationsResponse')
373
+ ListDataSourceAttachmentsRequest = Shapes::StructureShape.new(name: 'ListDataSourceAttachmentsRequest')
374
+ ListDataSourceAttachmentsResponse = Shapes::StructureShape.new(name: 'ListDataSourceAttachmentsResponse')
364
375
  ListDataSourcesRequest = Shapes::StructureShape.new(name: 'ListDataSourcesRequest')
365
376
  ListDataSourcesResponse = Shapes::StructureShape.new(name: 'ListDataSourcesResponse')
366
377
  ListDirectQueryDataSourcesRequest = Shapes::StructureShape.new(name: 'ListDirectQueryDataSourcesRequest')
@@ -614,6 +625,7 @@ module Aws::OpenSearchService
614
625
  VpcEndpointSummaryList = Shapes::ListShape.new(name: 'VpcEndpointSummaryList')
615
626
  VpcEndpoints = Shapes::ListShape.new(name: 'VpcEndpoints')
616
627
  WindowStartTime = Shapes::StructureShape.new(name: 'WindowStartTime')
628
+ WorkspaceConfigurationInput = Shapes::StructureShape.new(name: 'WorkspaceConfigurationInput')
617
629
  ZoneAwarenessConfig = Shapes::StructureShape.new(name: 'ZoneAwarenessConfig')
618
630
  ZoneStatus = Shapes::StringShape.new(name: 'ZoneStatus')
619
631
 
@@ -744,6 +756,20 @@ module Aws::OpenSearchService
744
756
  AssociatePackagesResponse.add_member(:domain_package_details_list, Shapes::ShapeRef.new(shape: DomainPackageDetailsList, location_name: "DomainPackageDetailsList"))
745
757
  AssociatePackagesResponse.struct_class = Types::AssociatePackagesResponse
746
758
 
759
+ AttachDataSourceRequest.add_member(:id, Shapes::ShapeRef.new(shape: Id, required: true, location: "uri", location_name: "id"))
760
+ AttachDataSourceRequest.add_member(:data_source_arn, Shapes::ShapeRef.new(shape: ARN, required: true, location_name: "dataSourceArn"))
761
+ AttachDataSourceRequest.add_member(:workspace_id, Shapes::ShapeRef.new(shape: String, location_name: "workspaceId"))
762
+ AttachDataSourceRequest.add_member(:workspace_configuration, Shapes::ShapeRef.new(shape: WorkspaceConfigurationInput, location_name: "workspaceConfiguration"))
763
+ AttachDataSourceRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: ClientToken, location_name: "clientToken"))
764
+ AttachDataSourceRequest.struct_class = Types::AttachDataSourceRequest
765
+
766
+ AttachDataSourceResponse.add_member(:attachment_id, Shapes::ShapeRef.new(shape: String, location_name: "attachmentId"))
767
+ AttachDataSourceResponse.add_member(:id, Shapes::ShapeRef.new(shape: Id, location_name: "id"))
768
+ AttachDataSourceResponse.add_member(:arn, Shapes::ShapeRef.new(shape: ARN, location_name: "arn"))
769
+ AttachDataSourceResponse.add_member(:data_source_arn, Shapes::ShapeRef.new(shape: ARN, location_name: "dataSourceArn"))
770
+ AttachDataSourceResponse.add_member(:status, Shapes::ShapeRef.new(shape: DataSourceAttachmentStatus, location_name: "status"))
771
+ AttachDataSourceResponse.struct_class = Types::AttachDataSourceResponse
772
+
747
773
  AuthorizeVpcEndpointAccessRequest.add_member(:domain_name, Shapes::ShapeRef.new(shape: DomainName, required: true, location: "uri", location_name: "DomainName"))
748
774
  AuthorizeVpcEndpointAccessRequest.add_member(:account, Shapes::ShapeRef.new(shape: AWSAccount, location_name: "Account"))
749
775
  AuthorizeVpcEndpointAccessRequest.add_member(:service, Shapes::ShapeRef.new(shape: AWSServicePrincipal, location_name: "Service"))
@@ -1056,6 +1082,13 @@ module Aws::OpenSearchService
1056
1082
  DataSource.add_member(:iam_role_for_data_source_arn, Shapes::ShapeRef.new(shape: RoleArn, location_name: "iamRoleForDataSourceArn"))
1057
1083
  DataSource.struct_class = Types::DataSource
1058
1084
 
1085
+ DataSourceAttachmentSummary.add_member(:attachment_id, Shapes::ShapeRef.new(shape: String, location_name: "attachmentId"))
1086
+ DataSourceAttachmentSummary.add_member(:data_source_arn, Shapes::ShapeRef.new(shape: ARN, location_name: "dataSourceArn"))
1087
+ DataSourceAttachmentSummary.add_member(:status, Shapes::ShapeRef.new(shape: DataSourceAttachmentStatus, location_name: "status"))
1088
+ DataSourceAttachmentSummary.struct_class = Types::DataSourceAttachmentSummary
1089
+
1090
+ DataSourceAttachmentSummaryList.member = Shapes::ShapeRef.new(shape: DataSourceAttachmentSummary)
1091
+
1059
1092
  DataSourceDetails.add_member(:data_source_type, Shapes::ShapeRef.new(shape: DataSourceType, location_name: "DataSourceType"))
1060
1093
  DataSourceDetails.add_member(:name, Shapes::ShapeRef.new(shape: DataSourceName, location_name: "Name"))
1061
1094
  DataSourceDetails.add_member(:description, Shapes::ShapeRef.new(shape: DataSourceDescription, location_name: "Description"))
@@ -1140,6 +1173,17 @@ module Aws::OpenSearchService
1140
1173
  DeregisterCapabilityResponse.add_member(:status, Shapes::ShapeRef.new(shape: CapabilityStatus, location_name: "status"))
1141
1174
  DeregisterCapabilityResponse.struct_class = Types::DeregisterCapabilityResponse
1142
1175
 
1176
+ DescribeDataSourceAttachmentRequest.add_member(:id, Shapes::ShapeRef.new(shape: Id, required: true, location: "uri", location_name: "id"))
1177
+ DescribeDataSourceAttachmentRequest.add_member(:data_source_arn, Shapes::ShapeRef.new(shape: ARN, required: true, location_name: "dataSourceArn"))
1178
+ DescribeDataSourceAttachmentRequest.struct_class = Types::DescribeDataSourceAttachmentRequest
1179
+
1180
+ DescribeDataSourceAttachmentResponse.add_member(:attachment_id, Shapes::ShapeRef.new(shape: String, location_name: "attachmentId"))
1181
+ DescribeDataSourceAttachmentResponse.add_member(:id, Shapes::ShapeRef.new(shape: Id, location_name: "id"))
1182
+ DescribeDataSourceAttachmentResponse.add_member(:arn, Shapes::ShapeRef.new(shape: ARN, location_name: "arn"))
1183
+ DescribeDataSourceAttachmentResponse.add_member(:data_source_arn, Shapes::ShapeRef.new(shape: ARN, location_name: "dataSourceArn"))
1184
+ DescribeDataSourceAttachmentResponse.add_member(:status, Shapes::ShapeRef.new(shape: DataSourceAttachmentStatus, location_name: "status"))
1185
+ DescribeDataSourceAttachmentResponse.struct_class = Types::DescribeDataSourceAttachmentResponse
1186
+
1143
1187
  DescribeDomainAutoTunesRequest.add_member(:domain_name, Shapes::ShapeRef.new(shape: DomainName, required: true, location: "uri", location_name: "DomainName"))
1144
1188
  DescribeDomainAutoTunesRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location: "querystring", location_name: "maxResults"))
1145
1189
  DescribeDomainAutoTunesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location: "querystring", location_name: "nextToken"))
@@ -1284,6 +1328,15 @@ module Aws::OpenSearchService
1284
1328
  DescribeVpcEndpointsResponse.add_member(:vpc_endpoint_errors, Shapes::ShapeRef.new(shape: VpcEndpointErrorList, required: true, location_name: "VpcEndpointErrors"))
1285
1329
  DescribeVpcEndpointsResponse.struct_class = Types::DescribeVpcEndpointsResponse
1286
1330
 
1331
+ DetachDataSourceRequest.add_member(:id, Shapes::ShapeRef.new(shape: Id, required: true, location: "uri", location_name: "id"))
1332
+ DetachDataSourceRequest.add_member(:data_source_arn, Shapes::ShapeRef.new(shape: ARN, required: true, location_name: "dataSourceArn"))
1333
+ DetachDataSourceRequest.struct_class = Types::DetachDataSourceRequest
1334
+
1335
+ DetachDataSourceResponse.add_member(:id, Shapes::ShapeRef.new(shape: Id, location_name: "id"))
1336
+ DetachDataSourceResponse.add_member(:arn, Shapes::ShapeRef.new(shape: ARN, location_name: "arn"))
1337
+ DetachDataSourceResponse.add_member(:data_source_arn, Shapes::ShapeRef.new(shape: ARN, location_name: "dataSourceArn"))
1338
+ DetachDataSourceResponse.struct_class = Types::DetachDataSourceResponse
1339
+
1287
1340
  DirectQueryDataSource.add_member(:data_source_name, Shapes::ShapeRef.new(shape: DirectQueryDataSourceName, location_name: "DataSourceName"))
1288
1341
  DirectQueryDataSource.add_member(:data_source_type, Shapes::ShapeRef.new(shape: DirectQueryDataSourceType, location_name: "DataSourceType"))
1289
1342
  DirectQueryDataSource.add_member(:description, Shapes::ShapeRef.new(shape: DirectQueryDataSourceDescription, location_name: "Description"))
@@ -1760,6 +1813,15 @@ module Aws::OpenSearchService
1760
1813
  ListApplicationsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
1761
1814
  ListApplicationsResponse.struct_class = Types::ListApplicationsResponse
1762
1815
 
1816
+ ListDataSourceAttachmentsRequest.add_member(:id, Shapes::ShapeRef.new(shape: Id, required: true, location: "uri", location_name: "id"))
1817
+ ListDataSourceAttachmentsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "nextToken"))
1818
+ ListDataSourceAttachmentsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: Integer, location_name: "maxResults"))
1819
+ ListDataSourceAttachmentsRequest.struct_class = Types::ListDataSourceAttachmentsRequest
1820
+
1821
+ ListDataSourceAttachmentsResponse.add_member(:attachments, Shapes::ShapeRef.new(shape: DataSourceAttachmentSummaryList, location_name: "attachments"))
1822
+ ListDataSourceAttachmentsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "nextToken"))
1823
+ ListDataSourceAttachmentsResponse.struct_class = Types::ListDataSourceAttachmentsResponse
1824
+
1763
1825
  ListDataSourcesRequest.add_member(:domain_name, Shapes::ShapeRef.new(shape: DomainName, required: true, location: "uri", location_name: "DomainName"))
1764
1826
  ListDataSourcesRequest.struct_class = Types::ListDataSourcesRequest
1765
1827
 
@@ -2459,6 +2521,10 @@ module Aws::OpenSearchService
2459
2521
  WindowStartTime.add_member(:minutes, Shapes::ShapeRef.new(shape: StartTimeMinutes, required: true, location_name: "Minutes"))
2460
2522
  WindowStartTime.struct_class = Types::WindowStartTime
2461
2523
 
2524
+ WorkspaceConfigurationInput.add_member(:name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "name"))
2525
+ WorkspaceConfigurationInput.add_member(:workspace_type, Shapes::ShapeRef.new(shape: String, required: true, location_name: "workspaceType"))
2526
+ WorkspaceConfigurationInput.struct_class = Types::WorkspaceConfigurationInput
2527
+
2462
2528
  ZoneAwarenessConfig.add_member(:availability_zone_count, Shapes::ShapeRef.new(shape: IntegerClass, location_name: "AvailabilityZoneCount"))
2463
2529
  ZoneAwarenessConfig.struct_class = Types::ZoneAwarenessConfig
2464
2530
 
@@ -2560,6 +2626,20 @@ module Aws::OpenSearchService
2560
2626
  o.errors << Shapes::ShapeRef.new(shape: DisabledOperationException)
2561
2627
  end)
2562
2628
 
2629
+ api.add_operation(:attach_data_source, Seahorse::Model::Operation.new.tap do |o|
2630
+ o.name = "AttachDataSource"
2631
+ o.http_method = "POST"
2632
+ o.http_request_uri = "/2021-01-01/opensearch/application/{id}/attachDataSource"
2633
+ o.input = Shapes::ShapeRef.new(shape: AttachDataSourceRequest)
2634
+ o.output = Shapes::ShapeRef.new(shape: AttachDataSourceResponse)
2635
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
2636
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
2637
+ o.errors << Shapes::ShapeRef.new(shape: InternalException)
2638
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
2639
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
2640
+ o.errors << Shapes::ShapeRef.new(shape: DisabledOperationException)
2641
+ end)
2642
+
2563
2643
  api.add_operation(:authorize_vpc_endpoint_access, Seahorse::Model::Operation.new.tap do |o|
2564
2644
  o.name = "AuthorizeVpcEndpointAccess"
2565
2645
  o.http_method = "POST"
@@ -2814,6 +2894,19 @@ module Aws::OpenSearchService
2814
2894
  o.errors << Shapes::ShapeRef.new(shape: DisabledOperationException)
2815
2895
  end)
2816
2896
 
2897
+ api.add_operation(:describe_data_source_attachment, Seahorse::Model::Operation.new.tap do |o|
2898
+ o.name = "DescribeDataSourceAttachment"
2899
+ o.http_method = "POST"
2900
+ o.http_request_uri = "/2021-01-01/opensearch/application/{id}/describeDataSourceAttachment"
2901
+ o.input = Shapes::ShapeRef.new(shape: DescribeDataSourceAttachmentRequest)
2902
+ o.output = Shapes::ShapeRef.new(shape: DescribeDataSourceAttachmentResponse)
2903
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
2904
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
2905
+ o.errors << Shapes::ShapeRef.new(shape: InternalException)
2906
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
2907
+ o.errors << Shapes::ShapeRef.new(shape: DisabledOperationException)
2908
+ end)
2909
+
2817
2910
  api.add_operation(:describe_domain, Seahorse::Model::Operation.new.tap do |o|
2818
2911
  o.name = "DescribeDomain"
2819
2912
  o.http_method = "GET"
@@ -3046,6 +3139,20 @@ module Aws::OpenSearchService
3046
3139
  o.errors << Shapes::ShapeRef.new(shape: BaseException)
3047
3140
  end)
3048
3141
 
3142
+ api.add_operation(:detach_data_source, Seahorse::Model::Operation.new.tap do |o|
3143
+ o.name = "DetachDataSource"
3144
+ o.http_method = "POST"
3145
+ o.http_request_uri = "/2021-01-01/opensearch/application/{id}/detachDataSource"
3146
+ o.input = Shapes::ShapeRef.new(shape: DetachDataSourceRequest)
3147
+ o.output = Shapes::ShapeRef.new(shape: DetachDataSourceResponse)
3148
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
3149
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
3150
+ o.errors << Shapes::ShapeRef.new(shape: InternalException)
3151
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
3152
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
3153
+ o.errors << Shapes::ShapeRef.new(shape: DisabledOperationException)
3154
+ end)
3155
+
3049
3156
  api.add_operation(:dissociate_package, Seahorse::Model::Operation.new.tap do |o|
3050
3157
  o.name = "DissociatePackage"
3051
3158
  o.http_method = "POST"
@@ -3252,6 +3359,19 @@ module Aws::OpenSearchService
3252
3359
  )
3253
3360
  end)
3254
3361
 
3362
+ api.add_operation(:list_data_source_attachments, Seahorse::Model::Operation.new.tap do |o|
3363
+ o.name = "ListDataSourceAttachments"
3364
+ o.http_method = "POST"
3365
+ o.http_request_uri = "/2021-01-01/opensearch/application/{id}/listDataSourceAttachments"
3366
+ o.input = Shapes::ShapeRef.new(shape: ListDataSourceAttachmentsRequest)
3367
+ o.output = Shapes::ShapeRef.new(shape: ListDataSourceAttachmentsResponse)
3368
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
3369
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
3370
+ o.errors << Shapes::ShapeRef.new(shape: InternalException)
3371
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
3372
+ o.errors << Shapes::ShapeRef.new(shape: DisabledOperationException)
3373
+ end)
3374
+
3255
3375
  api.add_operation(:list_data_sources, Seahorse::Model::Operation.new.tap do |o|
3256
3376
  o.name = "ListDataSources"
3257
3377
  o.http_method = "GET"
@@ -679,6 +679,100 @@ module Aws::OpenSearchService
679
679
  include Aws::Structure
680
680
  end
681
681
 
682
+ # @!attribute [rw] id
683
+ # The unique identifier or name of the OpenSearch application to
684
+ # attach the data source to. This is the same identifier used with
685
+ # `UpdateApplication`, `GetApplication`, and `DeleteApplication`.
686
+ # @return [String]
687
+ #
688
+ # @!attribute [rw] data_source_arn
689
+ # The Amazon Resource Name (ARN) of the domain. See [Identifiers for
690
+ # IAM Entities ][1] in *Using Amazon Web Services Identity and Access
691
+ # Management* for more information.
692
+ #
693
+ #
694
+ #
695
+ # [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/index.html
696
+ # @return [String]
697
+ #
698
+ # @!attribute [rw] workspace_id
699
+ # The identifier of an existing workspace to update with the new data
700
+ # source. Mutually exclusive with `workspaceConfiguration`.
701
+ # @return [String]
702
+ #
703
+ # @!attribute [rw] workspace_configuration
704
+ # Configuration for creating a new workspace during the attachment. If
705
+ # specified, a workspace is created and linked to the data source
706
+ # after the attachment completes. Mutually exclusive with
707
+ # `workspaceId`.
708
+ # @return [Types::WorkspaceConfigurationInput]
709
+ #
710
+ # @!attribute [rw] client_token
711
+ # A unique, case-sensitive identifier to ensure idempotency of the
712
+ # request. If you retry a request with the same client token and the
713
+ # same parameters, the retry succeeds without performing any further
714
+ # actions.
715
+ # @return [String]
716
+ #
717
+ # @see http://docs.aws.amazon.com/goto/WebAPI/opensearch-2021-01-01/AttachDataSourceRequest AWS API Documentation
718
+ #
719
+ class AttachDataSourceRequest < Struct.new(
720
+ :id,
721
+ :data_source_arn,
722
+ :workspace_id,
723
+ :workspace_configuration,
724
+ :client_token)
725
+ SENSITIVE = []
726
+ include Aws::Structure
727
+ end
728
+
729
+ # @!attribute [rw] attachment_id
730
+ # The unique identifier assigned to the data source attachment.
731
+ # @return [String]
732
+ #
733
+ # @!attribute [rw] id
734
+ # The unique identifier of the OpenSearch application.
735
+ # @return [String]
736
+ #
737
+ # @!attribute [rw] arn
738
+ # The Amazon Resource Name (ARN) of the domain. See [Identifiers for
739
+ # IAM Entities ][1] in *Using Amazon Web Services Identity and Access
740
+ # Management* for more information.
741
+ #
742
+ #
743
+ #
744
+ # [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/index.html
745
+ # @return [String]
746
+ #
747
+ # @!attribute [rw] data_source_arn
748
+ # The Amazon Resource Name (ARN) of the domain. See [Identifiers for
749
+ # IAM Entities ][1] in *Using Amazon Web Services Identity and Access
750
+ # Management* for more information.
751
+ #
752
+ #
753
+ #
754
+ # [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/index.html
755
+ # @return [String]
756
+ #
757
+ # @!attribute [rw] status
758
+ # The status of the data source attachment. Valid values are `PENDING`
759
+ # (waiting for resources to become active), `ATTACHED` (successfully
760
+ # attached), and `FAILED` (attachment timed out or encountered a
761
+ # non-retryable error).
762
+ # @return [String]
763
+ #
764
+ # @see http://docs.aws.amazon.com/goto/WebAPI/opensearch-2021-01-01/AttachDataSourceResponse AWS API Documentation
765
+ #
766
+ class AttachDataSourceResponse < Struct.new(
767
+ :attachment_id,
768
+ :id,
769
+ :arn,
770
+ :data_source_arn,
771
+ :status)
772
+ SENSITIVE = []
773
+ include Aws::Structure
774
+ end
775
+
682
776
  # @!attribute [rw] domain_name
683
777
  # The name of the OpenSearch Service domain to provide access to.
684
778
  # @return [String]
@@ -2341,6 +2435,38 @@ module Aws::OpenSearchService
2341
2435
  include Aws::Structure
2342
2436
  end
2343
2437
 
2438
+ # Summary information about a data source attachment, including its
2439
+ # identifier, data source ARN, and current status.
2440
+ #
2441
+ # @!attribute [rw] attachment_id
2442
+ # The unique identifier assigned to the data source attachment.
2443
+ # @return [String]
2444
+ #
2445
+ # @!attribute [rw] data_source_arn
2446
+ # The Amazon Resource Name (ARN) of the domain. See [Identifiers for
2447
+ # IAM Entities ][1] in *Using Amazon Web Services Identity and Access
2448
+ # Management* for more information.
2449
+ #
2450
+ #
2451
+ #
2452
+ # [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/index.html
2453
+ # @return [String]
2454
+ #
2455
+ # @!attribute [rw] status
2456
+ # The current status of the data source attachment. Valid values are
2457
+ # `PENDING`, `ATTACHED`, and `FAILED`.
2458
+ # @return [String]
2459
+ #
2460
+ # @see http://docs.aws.amazon.com/goto/WebAPI/opensearch-2021-01-01/DataSourceAttachmentSummary AWS API Documentation
2461
+ #
2462
+ class DataSourceAttachmentSummary < Struct.new(
2463
+ :attachment_id,
2464
+ :data_source_arn,
2465
+ :status)
2466
+ SENSITIVE = []
2467
+ include Aws::Structure
2468
+ end
2469
+
2344
2470
  # Details about a direct-query data source.
2345
2471
  #
2346
2472
  # @!attribute [rw] data_source_type
@@ -2708,6 +2834,74 @@ module Aws::OpenSearchService
2708
2834
  include Aws::Structure
2709
2835
  end
2710
2836
 
2837
+ # @!attribute [rw] id
2838
+ # The unique identifier or name of the OpenSearch application.
2839
+ # @return [String]
2840
+ #
2841
+ # @!attribute [rw] data_source_arn
2842
+ # The Amazon Resource Name (ARN) of the domain. See [Identifiers for
2843
+ # IAM Entities ][1] in *Using Amazon Web Services Identity and Access
2844
+ # Management* for more information.
2845
+ #
2846
+ #
2847
+ #
2848
+ # [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/index.html
2849
+ # @return [String]
2850
+ #
2851
+ # @see http://docs.aws.amazon.com/goto/WebAPI/opensearch-2021-01-01/DescribeDataSourceAttachmentRequest AWS API Documentation
2852
+ #
2853
+ class DescribeDataSourceAttachmentRequest < Struct.new(
2854
+ :id,
2855
+ :data_source_arn)
2856
+ SENSITIVE = []
2857
+ include Aws::Structure
2858
+ end
2859
+
2860
+ # @!attribute [rw] attachment_id
2861
+ # The unique identifier assigned to the data source attachment.
2862
+ # @return [String]
2863
+ #
2864
+ # @!attribute [rw] id
2865
+ # The unique identifier of the OpenSearch application.
2866
+ # @return [String]
2867
+ #
2868
+ # @!attribute [rw] arn
2869
+ # The Amazon Resource Name (ARN) of the domain. See [Identifiers for
2870
+ # IAM Entities ][1] in *Using Amazon Web Services Identity and Access
2871
+ # Management* for more information.
2872
+ #
2873
+ #
2874
+ #
2875
+ # [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/index.html
2876
+ # @return [String]
2877
+ #
2878
+ # @!attribute [rw] data_source_arn
2879
+ # The Amazon Resource Name (ARN) of the domain. See [Identifiers for
2880
+ # IAM Entities ][1] in *Using Amazon Web Services Identity and Access
2881
+ # Management* for more information.
2882
+ #
2883
+ #
2884
+ #
2885
+ # [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/index.html
2886
+ # @return [String]
2887
+ #
2888
+ # @!attribute [rw] status
2889
+ # The status of the data source attachment. Valid values are
2890
+ # `PENDING`, `ATTACHED`, and `FAILED`.
2891
+ # @return [String]
2892
+ #
2893
+ # @see http://docs.aws.amazon.com/goto/WebAPI/opensearch-2021-01-01/DescribeDataSourceAttachmentResponse AWS API Documentation
2894
+ #
2895
+ class DescribeDataSourceAttachmentResponse < Struct.new(
2896
+ :attachment_id,
2897
+ :id,
2898
+ :arn,
2899
+ :data_source_arn,
2900
+ :status)
2901
+ SENSITIVE = []
2902
+ include Aws::Structure
2903
+ end
2904
+
2711
2905
  # Container for the parameters to the `DescribeDomainAutoTunes`
2712
2906
  # operation.
2713
2907
  #
@@ -3483,6 +3677,64 @@ module Aws::OpenSearchService
3483
3677
  include Aws::Structure
3484
3678
  end
3485
3679
 
3680
+ # @!attribute [rw] id
3681
+ # The unique identifier or name of the OpenSearch application to
3682
+ # detach the data source from.
3683
+ # @return [String]
3684
+ #
3685
+ # @!attribute [rw] data_source_arn
3686
+ # The Amazon Resource Name (ARN) of the domain. See [Identifiers for
3687
+ # IAM Entities ][1] in *Using Amazon Web Services Identity and Access
3688
+ # Management* for more information.
3689
+ #
3690
+ #
3691
+ #
3692
+ # [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/index.html
3693
+ # @return [String]
3694
+ #
3695
+ # @see http://docs.aws.amazon.com/goto/WebAPI/opensearch-2021-01-01/DetachDataSourceRequest AWS API Documentation
3696
+ #
3697
+ class DetachDataSourceRequest < Struct.new(
3698
+ :id,
3699
+ :data_source_arn)
3700
+ SENSITIVE = []
3701
+ include Aws::Structure
3702
+ end
3703
+
3704
+ # @!attribute [rw] id
3705
+ # The unique identifier of the OpenSearch application.
3706
+ # @return [String]
3707
+ #
3708
+ # @!attribute [rw] arn
3709
+ # The Amazon Resource Name (ARN) of the domain. See [Identifiers for
3710
+ # IAM Entities ][1] in *Using Amazon Web Services Identity and Access
3711
+ # Management* for more information.
3712
+ #
3713
+ #
3714
+ #
3715
+ # [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/index.html
3716
+ # @return [String]
3717
+ #
3718
+ # @!attribute [rw] data_source_arn
3719
+ # The Amazon Resource Name (ARN) of the domain. See [Identifiers for
3720
+ # IAM Entities ][1] in *Using Amazon Web Services Identity and Access
3721
+ # Management* for more information.
3722
+ #
3723
+ #
3724
+ #
3725
+ # [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/index.html
3726
+ # @return [String]
3727
+ #
3728
+ # @see http://docs.aws.amazon.com/goto/WebAPI/opensearch-2021-01-01/DetachDataSourceResponse AWS API Documentation
3729
+ #
3730
+ class DetachDataSourceResponse < Struct.new(
3731
+ :id,
3732
+ :arn,
3733
+ :data_source_arn)
3734
+ SENSITIVE = []
3735
+ include Aws::Structure
3736
+ end
3737
+
3486
3738
  # The configuration details for a data source that can be directly
3487
3739
  # queried.
3488
3740
  #
@@ -5825,6 +6077,49 @@ module Aws::OpenSearchService
5825
6077
  include Aws::Structure
5826
6078
  end
5827
6079
 
6080
+ # @!attribute [rw] id
6081
+ # The unique identifier or name of the OpenSearch application to list
6082
+ # attachments for.
6083
+ # @return [String]
6084
+ #
6085
+ # @!attribute [rw] next_token
6086
+ # The pagination token from a previous call to retrieve the next set
6087
+ # of results.
6088
+ # @return [String]
6089
+ #
6090
+ # @!attribute [rw] max_results
6091
+ # The maximum number of results to return per page. The default is 50.
6092
+ # @return [Integer]
6093
+ #
6094
+ # @see http://docs.aws.amazon.com/goto/WebAPI/opensearch-2021-01-01/ListDataSourceAttachmentsRequest AWS API Documentation
6095
+ #
6096
+ class ListDataSourceAttachmentsRequest < Struct.new(
6097
+ :id,
6098
+ :next_token,
6099
+ :max_results)
6100
+ SENSITIVE = []
6101
+ include Aws::Structure
6102
+ end
6103
+
6104
+ # @!attribute [rw] attachments
6105
+ # A list of data source attachment summaries for the specified
6106
+ # application.
6107
+ # @return [Array<Types::DataSourceAttachmentSummary>]
6108
+ #
6109
+ # @!attribute [rw] next_token
6110
+ # The pagination token to use in a subsequent call to retrieve the
6111
+ # next set of results.
6112
+ # @return [String]
6113
+ #
6114
+ # @see http://docs.aws.amazon.com/goto/WebAPI/opensearch-2021-01-01/ListDataSourceAttachmentsResponse AWS API Documentation
6115
+ #
6116
+ class ListDataSourceAttachmentsResponse < Struct.new(
6117
+ :attachments,
6118
+ :next_token)
6119
+ SENSITIVE = []
6120
+ include Aws::Structure
6121
+ end
6122
+
5828
6123
  # Container for the parameters to the `ListDataSources` operation.
5829
6124
  #
5830
6125
  # @!attribute [rw] domain_name
@@ -9391,6 +9686,31 @@ module Aws::OpenSearchService
9391
9686
  include Aws::Structure
9392
9687
  end
9393
9688
 
9689
+ # Configuration for creating a new workspace when attaching a data
9690
+ # source to an OpenSearch application. The workspace is created after
9691
+ # the data source is successfully attached.
9692
+ #
9693
+ # @!attribute [rw] name
9694
+ # The name of the workspace to create. Must be between 1 and 40
9695
+ # characters and can contain alphanumeric characters, parentheses,
9696
+ # brackets, hyphens, underscores, and spaces.
9697
+ # @return [String]
9698
+ #
9699
+ # @!attribute [rw] workspace_type
9700
+ # The type of workspace to create, which determines the use-case
9701
+ # features enabled for the workspace. Valid values are
9702
+ # `OBSERVABILITY`, `SECURITY_ANALYTICS`, and `SEARCH`.
9703
+ # @return [String]
9704
+ #
9705
+ # @see http://docs.aws.amazon.com/goto/WebAPI/opensearch-2021-01-01/WorkspaceConfigurationInput AWS API Documentation
9706
+ #
9707
+ class WorkspaceConfigurationInput < Struct.new(
9708
+ :name,
9709
+ :workspace_type)
9710
+ SENSITIVE = []
9711
+ include Aws::Structure
9712
+ end
9713
+
9394
9714
  # The zone awareness configuration for an Amazon OpenSearch Service
9395
9715
  # domain.
9396
9716
  #
@@ -54,7 +54,7 @@ module Aws::OpenSearchService
54
54
  autoload :EndpointProvider, 'aws-sdk-opensearchservice/endpoint_provider'
55
55
  autoload :Endpoints, 'aws-sdk-opensearchservice/endpoints'
56
56
 
57
- GEM_VERSION = '1.103.0'
57
+ GEM_VERSION = '1.104.0'
58
58
 
59
59
  end
60
60
 
data/sig/client.rbs CHANGED
@@ -177,6 +177,27 @@ module Aws
177
177
  ) -> _AssociatePackagesResponseSuccess
178
178
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _AssociatePackagesResponseSuccess
179
179
 
180
+ interface _AttachDataSourceResponseSuccess
181
+ include ::Seahorse::Client::_ResponseSuccess[Types::AttachDataSourceResponse]
182
+ def attachment_id: () -> ::String
183
+ def id: () -> ::String
184
+ def arn: () -> ::String
185
+ def data_source_arn: () -> ::String
186
+ def status: () -> ("PENDING" | "ATTACHED" | "FAILED")
187
+ end
188
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/OpenSearchService/Client.html#attach_data_source-instance_method
189
+ def attach_data_source: (
190
+ id: ::String,
191
+ data_source_arn: ::String,
192
+ ?workspace_id: ::String,
193
+ ?workspace_configuration: {
194
+ name: ::String,
195
+ workspace_type: ::String
196
+ },
197
+ ?client_token: ::String
198
+ ) -> _AttachDataSourceResponseSuccess
199
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _AttachDataSourceResponseSuccess
200
+
180
201
  interface _AuthorizeVpcEndpointAccessResponseSuccess
181
202
  include ::Seahorse::Client::_ResponseSuccess[Types::AuthorizeVpcEndpointAccessResponse]
182
203
  def authorized_principal: () -> Types::AuthorizedPrincipal
@@ -542,6 +563,21 @@ module Aws
542
563
  ) -> _DeregisterCapabilityResponseSuccess
543
564
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DeregisterCapabilityResponseSuccess
544
565
 
566
+ interface _DescribeDataSourceAttachmentResponseSuccess
567
+ include ::Seahorse::Client::_ResponseSuccess[Types::DescribeDataSourceAttachmentResponse]
568
+ def attachment_id: () -> ::String
569
+ def id: () -> ::String
570
+ def arn: () -> ::String
571
+ def data_source_arn: () -> ::String
572
+ def status: () -> ("PENDING" | "ATTACHED" | "FAILED")
573
+ end
574
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/OpenSearchService/Client.html#describe_data_source_attachment-instance_method
575
+ def describe_data_source_attachment: (
576
+ id: ::String,
577
+ data_source_arn: ::String
578
+ ) -> _DescribeDataSourceAttachmentResponseSuccess
579
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DescribeDataSourceAttachmentResponseSuccess
580
+
545
581
  interface _DescribeDomainResponseSuccess
546
582
  include ::Seahorse::Client::_ResponseSuccess[Types::DescribeDomainResponse]
547
583
  def domain_status: () -> Types::DomainStatus
@@ -760,6 +796,19 @@ module Aws
760
796
  ) -> _DescribeVpcEndpointsResponseSuccess
761
797
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DescribeVpcEndpointsResponseSuccess
762
798
 
799
+ interface _DetachDataSourceResponseSuccess
800
+ include ::Seahorse::Client::_ResponseSuccess[Types::DetachDataSourceResponse]
801
+ def id: () -> ::String
802
+ def arn: () -> ::String
803
+ def data_source_arn: () -> ::String
804
+ end
805
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/OpenSearchService/Client.html#detach_data_source-instance_method
806
+ def detach_data_source: (
807
+ id: ::String,
808
+ data_source_arn: ::String
809
+ ) -> _DetachDataSourceResponseSuccess
810
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DetachDataSourceResponseSuccess
811
+
763
812
  interface _DissociatePackageResponseSuccess
764
813
  include ::Seahorse::Client::_ResponseSuccess[Types::DissociatePackageResponse]
765
814
  def domain_package_details: () -> Types::DomainPackageDetails
@@ -944,6 +993,19 @@ module Aws
944
993
  ) -> _ListApplicationsResponseSuccess
945
994
  | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListApplicationsResponseSuccess
946
995
 
996
+ interface _ListDataSourceAttachmentsResponseSuccess
997
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListDataSourceAttachmentsResponse]
998
+ def attachments: () -> ::Array[Types::DataSourceAttachmentSummary]
999
+ def next_token: () -> ::String
1000
+ end
1001
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/OpenSearchService/Client.html#list_data_source_attachments-instance_method
1002
+ def list_data_source_attachments: (
1003
+ id: ::String,
1004
+ ?next_token: ::String,
1005
+ ?max_results: ::Integer
1006
+ ) -> _ListDataSourceAttachmentsResponseSuccess
1007
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListDataSourceAttachmentsResponseSuccess
1008
+
947
1009
  interface _ListDataSourcesResponseSuccess
948
1010
  include ::Seahorse::Client::_ResponseSuccess[Types::ListDataSourcesResponse]
949
1011
  def data_sources: () -> ::Array[Types::DataSourceDetails]
data/sig/types.rbs CHANGED
@@ -172,6 +172,24 @@ module Aws::OpenSearchService
172
172
  SENSITIVE: []
173
173
  end
174
174
 
175
+ class AttachDataSourceRequest
176
+ attr_accessor id: ::String
177
+ attr_accessor data_source_arn: ::String
178
+ attr_accessor workspace_id: ::String
179
+ attr_accessor workspace_configuration: Types::WorkspaceConfigurationInput
180
+ attr_accessor client_token: ::String
181
+ SENSITIVE: []
182
+ end
183
+
184
+ class AttachDataSourceResponse
185
+ attr_accessor attachment_id: ::String
186
+ attr_accessor id: ::String
187
+ attr_accessor arn: ::String
188
+ attr_accessor data_source_arn: ::String
189
+ attr_accessor status: ("PENDING" | "ATTACHED" | "FAILED")
190
+ SENSITIVE: []
191
+ end
192
+
175
193
  class AuthorizeVpcEndpointAccessRequest
176
194
  attr_accessor domain_name: ::String
177
195
  attr_accessor account: ::String
@@ -576,6 +594,13 @@ module Aws::OpenSearchService
576
594
  SENSITIVE: []
577
595
  end
578
596
 
597
+ class DataSourceAttachmentSummary
598
+ attr_accessor attachment_id: ::String
599
+ attr_accessor data_source_arn: ::String
600
+ attr_accessor status: ("PENDING" | "ATTACHED" | "FAILED")
601
+ SENSITIVE: []
602
+ end
603
+
579
604
  class DataSourceDetails
580
605
  attr_accessor data_source_type: Types::DataSourceType
581
606
  attr_accessor name: ::String
@@ -705,6 +730,21 @@ module Aws::OpenSearchService
705
730
  SENSITIVE: []
706
731
  end
707
732
 
733
+ class DescribeDataSourceAttachmentRequest
734
+ attr_accessor id: ::String
735
+ attr_accessor data_source_arn: ::String
736
+ SENSITIVE: []
737
+ end
738
+
739
+ class DescribeDataSourceAttachmentResponse
740
+ attr_accessor attachment_id: ::String
741
+ attr_accessor id: ::String
742
+ attr_accessor arn: ::String
743
+ attr_accessor data_source_arn: ::String
744
+ attr_accessor status: ("PENDING" | "ATTACHED" | "FAILED")
745
+ SENSITIVE: []
746
+ end
747
+
708
748
  class DescribeDomainAutoTunesRequest
709
749
  attr_accessor domain_name: ::String
710
750
  attr_accessor max_results: ::Integer
@@ -911,6 +951,19 @@ module Aws::OpenSearchService
911
951
  SENSITIVE: []
912
952
  end
913
953
 
954
+ class DetachDataSourceRequest
955
+ attr_accessor id: ::String
956
+ attr_accessor data_source_arn: ::String
957
+ SENSITIVE: []
958
+ end
959
+
960
+ class DetachDataSourceResponse
961
+ attr_accessor id: ::String
962
+ attr_accessor arn: ::String
963
+ attr_accessor data_source_arn: ::String
964
+ SENSITIVE: []
965
+ end
966
+
914
967
  class DirectQueryDataSource
915
968
  attr_accessor data_source_name: ::String
916
969
  attr_accessor data_source_type: Types::DirectQueryDataSourceType
@@ -1494,6 +1547,19 @@ module Aws::OpenSearchService
1494
1547
  SENSITIVE: []
1495
1548
  end
1496
1549
 
1550
+ class ListDataSourceAttachmentsRequest
1551
+ attr_accessor id: ::String
1552
+ attr_accessor next_token: ::String
1553
+ attr_accessor max_results: ::Integer
1554
+ SENSITIVE: []
1555
+ end
1556
+
1557
+ class ListDataSourceAttachmentsResponse
1558
+ attr_accessor attachments: ::Array[Types::DataSourceAttachmentSummary]
1559
+ attr_accessor next_token: ::String
1560
+ SENSITIVE: []
1561
+ end
1562
+
1497
1563
  class ListDataSourcesRequest
1498
1564
  attr_accessor domain_name: ::String
1499
1565
  SENSITIVE: []
@@ -2390,6 +2456,12 @@ module Aws::OpenSearchService
2390
2456
  SENSITIVE: []
2391
2457
  end
2392
2458
 
2459
+ class WorkspaceConfigurationInput
2460
+ attr_accessor name: ::String
2461
+ attr_accessor workspace_type: ::String
2462
+ SENSITIVE: []
2463
+ end
2464
+
2393
2465
  class ZoneAwarenessConfig
2394
2466
  attr_accessor availability_zone_count: ::Integer
2395
2467
  SENSITIVE: []
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-opensearchservice
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.103.0
4
+ version: 1.104.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services