aws-sdk-appsync 1.67.0 → 1.68.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a269409c97a052055a9ecb18903bb1b4dceb70ce1d966ef85abf73d1e445f177
4
- data.tar.gz: e9a3b0229d70da312f8418295cc1d566163929b43849e8b4cb2bb76a7e7fec22
3
+ metadata.gz: 7bcdd20c337365ff55cda935743416f8475496d6c4c5eabfd4f1dbc58d261eb3
4
+ data.tar.gz: 274f1ce0eae3723d2750e05e4344289f2e56c74d297f83719169efc074152358
5
5
  SHA512:
6
- metadata.gz: b2fb5e0451c15264d661a0e52de57685dab9f1ed201bde3cbcb666bafe3c99bca6aadd6e6e60ccd3d16047895ba9737940addc35ba89d53b004828e76eb299ef
7
- data.tar.gz: 7f3c0a9692be584f80ad727a4d11d19790147064f7e46fb16ae3aa3396274e5ea62a4474dbbc0d719c8d10ec039dba6987551453f2df6061195f9f6c5f8079c0
6
+ metadata.gz: 1170724d852d6553c323f06074a935fa72ef60dbde8e24013d12f794760385842dd55b2a8d986ac021e90eccac88d767394b988438373ea2901a768468206576
7
+ data.tar.gz: 5112e9428766e40bc93288a7e2df6887d412f4b43b002f9e2ba99cf22f6672f2d2584d82165d00f50c8da830e4e82112fcdf278682b6767e6a90c3a8931b4038
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.68.0 (2023-11-27)
5
+ ------------------
6
+
7
+ * Feature - This update enables introspection of Aurora cluster databases using the RDS Data API
8
+
4
9
  1.67.0 (2023-11-22)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.67.0
1
+ 1.68.0
@@ -1887,6 +1887,80 @@ module Aws::AppSync
1887
1887
  req.send_request(options)
1888
1888
  end
1889
1889
 
1890
+ # Retrieves the record of an existing introspection. If the retrieval is
1891
+ # successful, the result of the instrospection will also be returned. If
1892
+ # the retrieval fails the operation, an error message will be returned
1893
+ # instead.
1894
+ #
1895
+ # @option params [required, String] :introspection_id
1896
+ # The introspection ID. Each introspection contains a unique ID that can
1897
+ # be used to reference the instrospection record.
1898
+ #
1899
+ # @option params [Boolean] :include_models_sdl
1900
+ # A boolean flag that determines whether SDL should be generated for
1901
+ # introspected types or not. If set to `true`, each model will contain
1902
+ # an `sdl` property that contains the SDL for that type. The SDL only
1903
+ # contains the type data and no additional metadata or directives.
1904
+ #
1905
+ # @option params [String] :next_token
1906
+ # Determines the number of types to be returned in a single response
1907
+ # before paginating. This value is typically taken from `nextToken`
1908
+ # value from the previous response.
1909
+ #
1910
+ # @option params [Integer] :max_results
1911
+ # The maximum number of introspected types that will be returned in a
1912
+ # single response.
1913
+ #
1914
+ # @return [Types::GetDataSourceIntrospectionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1915
+ #
1916
+ # * {Types::GetDataSourceIntrospectionResponse#introspection_id #introspection_id} => String
1917
+ # * {Types::GetDataSourceIntrospectionResponse#introspection_status #introspection_status} => String
1918
+ # * {Types::GetDataSourceIntrospectionResponse#introspection_status_detail #introspection_status_detail} => String
1919
+ # * {Types::GetDataSourceIntrospectionResponse#introspection_result #introspection_result} => Types::DataSourceIntrospectionResult
1920
+ #
1921
+ # @example Request syntax with placeholder values
1922
+ #
1923
+ # resp = client.get_data_source_introspection({
1924
+ # introspection_id: "String", # required
1925
+ # include_models_sdl: false,
1926
+ # next_token: "PaginationToken",
1927
+ # max_results: 1,
1928
+ # })
1929
+ #
1930
+ # @example Response structure
1931
+ #
1932
+ # resp.introspection_id #=> String
1933
+ # resp.introspection_status #=> String, one of "PROCESSING", "FAILED", "SUCCESS"
1934
+ # resp.introspection_status_detail #=> String
1935
+ # resp.introspection_result.models #=> Array
1936
+ # resp.introspection_result.models[0].name #=> String
1937
+ # resp.introspection_result.models[0].fields #=> Array
1938
+ # resp.introspection_result.models[0].fields[0].name #=> String
1939
+ # resp.introspection_result.models[0].fields[0].type.kind #=> String
1940
+ # resp.introspection_result.models[0].fields[0].type.name #=> String
1941
+ # resp.introspection_result.models[0].fields[0].type.type #=> Types::DataSourceIntrospectionModelFieldType
1942
+ # resp.introspection_result.models[0].fields[0].type.values #=> Array
1943
+ # resp.introspection_result.models[0].fields[0].type.values[0] #=> String
1944
+ # resp.introspection_result.models[0].fields[0].length #=> Integer
1945
+ # resp.introspection_result.models[0].primary_key.name #=> String
1946
+ # resp.introspection_result.models[0].primary_key.fields #=> Array
1947
+ # resp.introspection_result.models[0].primary_key.fields[0] #=> String
1948
+ # resp.introspection_result.models[0].indexes #=> Array
1949
+ # resp.introspection_result.models[0].indexes[0].name #=> String
1950
+ # resp.introspection_result.models[0].indexes[0].fields #=> Array
1951
+ # resp.introspection_result.models[0].indexes[0].fields[0] #=> String
1952
+ # resp.introspection_result.models[0].sdl #=> String
1953
+ # resp.introspection_result.next_token #=> String
1954
+ #
1955
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetDataSourceIntrospection AWS API Documentation
1956
+ #
1957
+ # @overload get_data_source_introspection(params = {})
1958
+ # @param [Hash] params ({})
1959
+ def get_data_source_introspection(params = {}, options = {})
1960
+ req = build_request(:get_data_source_introspection, params)
1961
+ req.send_request(options)
1962
+ end
1963
+
1890
1964
  # Retrieves a custom `DomainName` object.
1891
1965
  #
1892
1966
  # @option params [required, String] :domain_name
@@ -2855,6 +2929,43 @@ module Aws::AppSync
2855
2929
  req.send_request(options)
2856
2930
  end
2857
2931
 
2932
+ # Creates a new introspection. Returns the `introspectionId` of the new
2933
+ # introspection after its creation.
2934
+ #
2935
+ # @option params [Types::RdsDataApiConfig] :rds_data_api_config
2936
+ # The `rdsDataApiConfig` object data.
2937
+ #
2938
+ # @return [Types::StartDataSourceIntrospectionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2939
+ #
2940
+ # * {Types::StartDataSourceIntrospectionResponse#introspection_id #introspection_id} => String
2941
+ # * {Types::StartDataSourceIntrospectionResponse#introspection_status #introspection_status} => String
2942
+ # * {Types::StartDataSourceIntrospectionResponse#introspection_status_detail #introspection_status_detail} => String
2943
+ #
2944
+ # @example Request syntax with placeholder values
2945
+ #
2946
+ # resp = client.start_data_source_introspection({
2947
+ # rds_data_api_config: {
2948
+ # resource_arn: "RdsDataApiConfigResourceArn", # required
2949
+ # secret_arn: "RdsDataApiConfigSecretArn", # required
2950
+ # database_name: "RdsDataApiConfigDatabaseName", # required
2951
+ # },
2952
+ # })
2953
+ #
2954
+ # @example Response structure
2955
+ #
2956
+ # resp.introspection_id #=> String
2957
+ # resp.introspection_status #=> String, one of "PROCESSING", "FAILED", "SUCCESS"
2958
+ # resp.introspection_status_detail #=> String
2959
+ #
2960
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/StartDataSourceIntrospection AWS API Documentation
2961
+ #
2962
+ # @overload start_data_source_introspection(params = {})
2963
+ # @param [Hash] params ({})
2964
+ def start_data_source_introspection(params = {}, options = {})
2965
+ req = build_request(:start_data_source_introspection, params)
2966
+ req.send_request(options)
2967
+ end
2968
+
2858
2969
  # Adds a new schema to your GraphQL API.
2859
2970
  #
2860
2971
  # This operation is asynchronous. Use to determine when it has
@@ -3803,7 +3914,7 @@ module Aws::AppSync
3803
3914
  params: params,
3804
3915
  config: config)
3805
3916
  context[:gem_name] = 'aws-sdk-appsync'
3806
- context[:gem_version] = '1.67.0'
3917
+ context[:gem_version] = '1.68.0'
3807
3918
  Seahorse::Client::Request.new(handlers, context)
3808
3919
  end
3809
3920
 
@@ -76,6 +76,17 @@ module Aws::AppSync
76
76
  CreateTypeRequest = Shapes::StructureShape.new(name: 'CreateTypeRequest')
77
77
  CreateTypeResponse = Shapes::StructureShape.new(name: 'CreateTypeResponse')
78
78
  DataSource = Shapes::StructureShape.new(name: 'DataSource')
79
+ DataSourceIntrospectionModel = Shapes::StructureShape.new(name: 'DataSourceIntrospectionModel')
80
+ DataSourceIntrospectionModelField = Shapes::StructureShape.new(name: 'DataSourceIntrospectionModelField')
81
+ DataSourceIntrospectionModelFieldType = Shapes::StructureShape.new(name: 'DataSourceIntrospectionModelFieldType')
82
+ DataSourceIntrospectionModelFieldTypeValues = Shapes::ListShape.new(name: 'DataSourceIntrospectionModelFieldTypeValues')
83
+ DataSourceIntrospectionModelFields = Shapes::ListShape.new(name: 'DataSourceIntrospectionModelFields')
84
+ DataSourceIntrospectionModelIndex = Shapes::StructureShape.new(name: 'DataSourceIntrospectionModelIndex')
85
+ DataSourceIntrospectionModelIndexFields = Shapes::ListShape.new(name: 'DataSourceIntrospectionModelIndexFields')
86
+ DataSourceIntrospectionModelIndexes = Shapes::ListShape.new(name: 'DataSourceIntrospectionModelIndexes')
87
+ DataSourceIntrospectionModels = Shapes::ListShape.new(name: 'DataSourceIntrospectionModels')
88
+ DataSourceIntrospectionResult = Shapes::StructureShape.new(name: 'DataSourceIntrospectionResult')
89
+ DataSourceIntrospectionStatus = Shapes::StringShape.new(name: 'DataSourceIntrospectionStatus')
79
90
  DataSourceType = Shapes::StringShape.new(name: 'DataSourceType')
80
91
  DataSources = Shapes::ListShape.new(name: 'DataSources')
81
92
  Date = Shapes::TimestampShape.new(name: 'Date')
@@ -128,6 +139,8 @@ module Aws::AppSync
128
139
  GetApiAssociationResponse = Shapes::StructureShape.new(name: 'GetApiAssociationResponse')
129
140
  GetApiCacheRequest = Shapes::StructureShape.new(name: 'GetApiCacheRequest')
130
141
  GetApiCacheResponse = Shapes::StructureShape.new(name: 'GetApiCacheResponse')
142
+ GetDataSourceIntrospectionRequest = Shapes::StructureShape.new(name: 'GetDataSourceIntrospectionRequest')
143
+ GetDataSourceIntrospectionResponse = Shapes::StructureShape.new(name: 'GetDataSourceIntrospectionResponse')
131
144
  GetDataSourceRequest = Shapes::StructureShape.new(name: 'GetDataSourceRequest')
132
145
  GetDataSourceResponse = Shapes::StructureShape.new(name: 'GetDataSourceResponse')
133
146
  GetDomainNameRequest = Shapes::StructureShape.new(name: 'GetDomainNameRequest')
@@ -194,6 +207,10 @@ module Aws::AppSync
194
207
  Ownership = Shapes::StringShape.new(name: 'Ownership')
195
208
  PaginationToken = Shapes::StringShape.new(name: 'PaginationToken')
196
209
  PipelineConfig = Shapes::StructureShape.new(name: 'PipelineConfig')
210
+ RdsDataApiConfig = Shapes::StructureShape.new(name: 'RdsDataApiConfig')
211
+ RdsDataApiConfigDatabaseName = Shapes::StringShape.new(name: 'RdsDataApiConfigDatabaseName')
212
+ RdsDataApiConfigResourceArn = Shapes::StringShape.new(name: 'RdsDataApiConfigResourceArn')
213
+ RdsDataApiConfigSecretArn = Shapes::StringShape.new(name: 'RdsDataApiConfigSecretArn')
197
214
  RdsHttpEndpointConfig = Shapes::StructureShape.new(name: 'RdsHttpEndpointConfig')
198
215
  RelationalDatabaseDataSourceConfig = Shapes::StructureShape.new(name: 'RelationalDatabaseDataSourceConfig')
199
216
  RelationalDatabaseSourceType = Shapes::StringShape.new(name: 'RelationalDatabaseSourceType')
@@ -209,6 +226,8 @@ module Aws::AppSync
209
226
  SourceApiAssociationStatus = Shapes::StringShape.new(name: 'SourceApiAssociationStatus')
210
227
  SourceApiAssociationSummary = Shapes::StructureShape.new(name: 'SourceApiAssociationSummary')
211
228
  SourceApiAssociationSummaryList = Shapes::ListShape.new(name: 'SourceApiAssociationSummaryList')
229
+ StartDataSourceIntrospectionRequest = Shapes::StructureShape.new(name: 'StartDataSourceIntrospectionRequest')
230
+ StartDataSourceIntrospectionResponse = Shapes::StructureShape.new(name: 'StartDataSourceIntrospectionResponse')
212
231
  StartSchemaCreationRequest = Shapes::StructureShape.new(name: 'StartSchemaCreationRequest')
213
232
  StartSchemaCreationResponse = Shapes::StructureShape.new(name: 'StartSchemaCreationResponse')
214
233
  StartSchemaMergeRequest = Shapes::StructureShape.new(name: 'StartSchemaMergeRequest')
@@ -480,6 +499,42 @@ module Aws::AppSync
480
499
  DataSource.add_member(:event_bridge_config, Shapes::ShapeRef.new(shape: EventBridgeDataSourceConfig, location_name: "eventBridgeConfig"))
481
500
  DataSource.struct_class = Types::DataSource
482
501
 
502
+ DataSourceIntrospectionModel.add_member(:name, Shapes::ShapeRef.new(shape: String, location_name: "name"))
503
+ DataSourceIntrospectionModel.add_member(:fields, Shapes::ShapeRef.new(shape: DataSourceIntrospectionModelFields, location_name: "fields"))
504
+ DataSourceIntrospectionModel.add_member(:primary_key, Shapes::ShapeRef.new(shape: DataSourceIntrospectionModelIndex, location_name: "primaryKey"))
505
+ DataSourceIntrospectionModel.add_member(:indexes, Shapes::ShapeRef.new(shape: DataSourceIntrospectionModelIndexes, location_name: "indexes"))
506
+ DataSourceIntrospectionModel.add_member(:sdl, Shapes::ShapeRef.new(shape: String, location_name: "sdl"))
507
+ DataSourceIntrospectionModel.struct_class = Types::DataSourceIntrospectionModel
508
+
509
+ DataSourceIntrospectionModelField.add_member(:name, Shapes::ShapeRef.new(shape: String, location_name: "name"))
510
+ DataSourceIntrospectionModelField.add_member(:type, Shapes::ShapeRef.new(shape: DataSourceIntrospectionModelFieldType, location_name: "type"))
511
+ DataSourceIntrospectionModelField.add_member(:length, Shapes::ShapeRef.new(shape: Long, location_name: "length"))
512
+ DataSourceIntrospectionModelField.struct_class = Types::DataSourceIntrospectionModelField
513
+
514
+ DataSourceIntrospectionModelFieldType.add_member(:kind, Shapes::ShapeRef.new(shape: String, location_name: "kind"))
515
+ DataSourceIntrospectionModelFieldType.add_member(:name, Shapes::ShapeRef.new(shape: String, location_name: "name"))
516
+ DataSourceIntrospectionModelFieldType.add_member(:type, Shapes::ShapeRef.new(shape: DataSourceIntrospectionModelFieldType, location_name: "type"))
517
+ DataSourceIntrospectionModelFieldType.add_member(:values, Shapes::ShapeRef.new(shape: DataSourceIntrospectionModelFieldTypeValues, location_name: "values"))
518
+ DataSourceIntrospectionModelFieldType.struct_class = Types::DataSourceIntrospectionModelFieldType
519
+
520
+ DataSourceIntrospectionModelFieldTypeValues.member = Shapes::ShapeRef.new(shape: String)
521
+
522
+ DataSourceIntrospectionModelFields.member = Shapes::ShapeRef.new(shape: DataSourceIntrospectionModelField)
523
+
524
+ DataSourceIntrospectionModelIndex.add_member(:name, Shapes::ShapeRef.new(shape: String, location_name: "name"))
525
+ DataSourceIntrospectionModelIndex.add_member(:fields, Shapes::ShapeRef.new(shape: DataSourceIntrospectionModelIndexFields, location_name: "fields"))
526
+ DataSourceIntrospectionModelIndex.struct_class = Types::DataSourceIntrospectionModelIndex
527
+
528
+ DataSourceIntrospectionModelIndexFields.member = Shapes::ShapeRef.new(shape: String)
529
+
530
+ DataSourceIntrospectionModelIndexes.member = Shapes::ShapeRef.new(shape: DataSourceIntrospectionModelIndex)
531
+
532
+ DataSourceIntrospectionModels.member = Shapes::ShapeRef.new(shape: DataSourceIntrospectionModel)
533
+
534
+ DataSourceIntrospectionResult.add_member(:models, Shapes::ShapeRef.new(shape: DataSourceIntrospectionModels, location_name: "models"))
535
+ DataSourceIntrospectionResult.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "nextToken"))
536
+ DataSourceIntrospectionResult.struct_class = Types::DataSourceIntrospectionResult
537
+
483
538
  DataSources.member = Shapes::ShapeRef.new(shape: DataSource)
484
539
 
485
540
  DeleteApiCacheRequest.add_member(:api_id, Shapes::ShapeRef.new(shape: String, required: true, location: "uri", location_name: "apiId"))
@@ -637,6 +692,18 @@ module Aws::AppSync
637
692
  GetApiCacheResponse.add_member(:api_cache, Shapes::ShapeRef.new(shape: ApiCache, location_name: "apiCache"))
638
693
  GetApiCacheResponse.struct_class = Types::GetApiCacheResponse
639
694
 
695
+ GetDataSourceIntrospectionRequest.add_member(:introspection_id, Shapes::ShapeRef.new(shape: String, required: true, location: "uri", location_name: "introspectionId"))
696
+ GetDataSourceIntrospectionRequest.add_member(:include_models_sdl, Shapes::ShapeRef.new(shape: Boolean, location: "querystring", location_name: "includeModelsSDL"))
697
+ GetDataSourceIntrospectionRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location: "querystring", location_name: "nextToken"))
698
+ GetDataSourceIntrospectionRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location: "querystring", location_name: "maxResults"))
699
+ GetDataSourceIntrospectionRequest.struct_class = Types::GetDataSourceIntrospectionRequest
700
+
701
+ GetDataSourceIntrospectionResponse.add_member(:introspection_id, Shapes::ShapeRef.new(shape: String, location_name: "introspectionId"))
702
+ GetDataSourceIntrospectionResponse.add_member(:introspection_status, Shapes::ShapeRef.new(shape: DataSourceIntrospectionStatus, location_name: "introspectionStatus"))
703
+ GetDataSourceIntrospectionResponse.add_member(:introspection_status_detail, Shapes::ShapeRef.new(shape: String, location_name: "introspectionStatusDetail"))
704
+ GetDataSourceIntrospectionResponse.add_member(:introspection_result, Shapes::ShapeRef.new(shape: DataSourceIntrospectionResult, location_name: "introspectionResult"))
705
+ GetDataSourceIntrospectionResponse.struct_class = Types::GetDataSourceIntrospectionResponse
706
+
640
707
  GetDataSourceRequest.add_member(:api_id, Shapes::ShapeRef.new(shape: String, required: true, location: "uri", location_name: "apiId"))
641
708
  GetDataSourceRequest.add_member(:name, Shapes::ShapeRef.new(shape: ResourceName, required: true, location: "uri", location_name: "name"))
642
709
  GetDataSourceRequest.struct_class = Types::GetDataSourceRequest
@@ -877,6 +944,11 @@ module Aws::AppSync
877
944
  PipelineConfig.add_member(:functions, Shapes::ShapeRef.new(shape: FunctionsIds, location_name: "functions"))
878
945
  PipelineConfig.struct_class = Types::PipelineConfig
879
946
 
947
+ RdsDataApiConfig.add_member(:resource_arn, Shapes::ShapeRef.new(shape: RdsDataApiConfigResourceArn, required: true, location_name: "resourceArn"))
948
+ RdsDataApiConfig.add_member(:secret_arn, Shapes::ShapeRef.new(shape: RdsDataApiConfigSecretArn, required: true, location_name: "secretArn"))
949
+ RdsDataApiConfig.add_member(:database_name, Shapes::ShapeRef.new(shape: RdsDataApiConfigDatabaseName, required: true, location_name: "databaseName"))
950
+ RdsDataApiConfig.struct_class = Types::RdsDataApiConfig
951
+
880
952
  RdsHttpEndpointConfig.add_member(:aws_region, Shapes::ShapeRef.new(shape: String, location_name: "awsRegion"))
881
953
  RdsHttpEndpointConfig.add_member(:db_cluster_identifier, Shapes::ShapeRef.new(shape: String, location_name: "dbClusterIdentifier"))
882
954
  RdsHttpEndpointConfig.add_member(:database_name, Shapes::ShapeRef.new(shape: String, location_name: "databaseName"))
@@ -932,6 +1004,14 @@ module Aws::AppSync
932
1004
 
933
1005
  SourceApiAssociationSummaryList.member = Shapes::ShapeRef.new(shape: SourceApiAssociationSummary)
934
1006
 
1007
+ StartDataSourceIntrospectionRequest.add_member(:rds_data_api_config, Shapes::ShapeRef.new(shape: RdsDataApiConfig, location_name: "rdsDataApiConfig"))
1008
+ StartDataSourceIntrospectionRequest.struct_class = Types::StartDataSourceIntrospectionRequest
1009
+
1010
+ StartDataSourceIntrospectionResponse.add_member(:introspection_id, Shapes::ShapeRef.new(shape: String, location_name: "introspectionId"))
1011
+ StartDataSourceIntrospectionResponse.add_member(:introspection_status, Shapes::ShapeRef.new(shape: DataSourceIntrospectionStatus, location_name: "introspectionStatus"))
1012
+ StartDataSourceIntrospectionResponse.add_member(:introspection_status_detail, Shapes::ShapeRef.new(shape: String, location_name: "introspectionStatusDetail"))
1013
+ StartDataSourceIntrospectionResponse.struct_class = Types::StartDataSourceIntrospectionResponse
1014
+
935
1015
  StartSchemaCreationRequest.add_member(:api_id, Shapes::ShapeRef.new(shape: String, required: true, location: "uri", location_name: "apiId"))
936
1016
  StartSchemaCreationRequest.add_member(:definition, Shapes::ShapeRef.new(shape: Blob, required: true, location_name: "definition"))
937
1017
  StartSchemaCreationRequest.struct_class = Types::StartSchemaCreationRequest
@@ -1476,6 +1556,17 @@ module Aws::AppSync
1476
1556
  o.errors << Shapes::ShapeRef.new(shape: InternalFailureException)
1477
1557
  end)
1478
1558
 
1559
+ api.add_operation(:get_data_source_introspection, Seahorse::Model::Operation.new.tap do |o|
1560
+ o.name = "GetDataSourceIntrospection"
1561
+ o.http_method = "GET"
1562
+ o.http_request_uri = "/v1/datasources/introspections/{introspectionId}"
1563
+ o.input = Shapes::ShapeRef.new(shape: GetDataSourceIntrospectionRequest)
1564
+ o.output = Shapes::ShapeRef.new(shape: GetDataSourceIntrospectionResponse)
1565
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
1566
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
1567
+ o.errors << Shapes::ShapeRef.new(shape: InternalFailureException)
1568
+ end)
1569
+
1479
1570
  api.add_operation(:get_domain_name, Seahorse::Model::Operation.new.tap do |o|
1480
1571
  o.name = "GetDomainName"
1481
1572
  o.http_method = "GET"
@@ -1706,6 +1797,18 @@ module Aws::AppSync
1706
1797
  o.errors << Shapes::ShapeRef.new(shape: InternalFailureException)
1707
1798
  end)
1708
1799
 
1800
+ api.add_operation(:start_data_source_introspection, Seahorse::Model::Operation.new.tap do |o|
1801
+ o.name = "StartDataSourceIntrospection"
1802
+ o.http_method = "POST"
1803
+ o.http_request_uri = "/v1/datasources/introspections"
1804
+ o.input = Shapes::ShapeRef.new(shape: StartDataSourceIntrospectionRequest)
1805
+ o.output = Shapes::ShapeRef.new(shape: StartDataSourceIntrospectionResponse)
1806
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
1807
+ o.errors << Shapes::ShapeRef.new(shape: UnauthorizedException)
1808
+ o.errors << Shapes::ShapeRef.new(shape: InternalFailureException)
1809
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
1810
+ end)
1811
+
1709
1812
  api.add_operation(:start_schema_creation, Seahorse::Model::Operation.new.tap do |o|
1710
1813
  o.name = "StartSchemaCreation"
1711
1814
  o.http_method = "POST"
@@ -32,7 +32,7 @@ module Aws::AppSync
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://appsync-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
37
37
  end
38
38
  raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
@@ -404,6 +404,20 @@ module Aws::AppSync
404
404
  end
405
405
  end
406
406
 
407
+ class GetDataSourceIntrospection
408
+ def self.build(context)
409
+ unless context.config.regional_endpoint
410
+ endpoint = context.config.endpoint.to_s
411
+ end
412
+ Aws::AppSync::EndpointParameters.new(
413
+ region: context.config.region,
414
+ use_dual_stack: context.config.use_dualstack_endpoint,
415
+ use_fips: context.config.use_fips_endpoint,
416
+ endpoint: endpoint,
417
+ )
418
+ end
419
+ end
420
+
407
421
  class GetDomainName
408
422
  def self.build(context)
409
423
  unless context.config.regional_endpoint
@@ -670,6 +684,20 @@ module Aws::AppSync
670
684
  end
671
685
  end
672
686
 
687
+ class StartDataSourceIntrospection
688
+ def self.build(context)
689
+ unless context.config.regional_endpoint
690
+ endpoint = context.config.endpoint.to_s
691
+ end
692
+ Aws::AppSync::EndpointParameters.new(
693
+ region: context.config.region,
694
+ use_dual_stack: context.config.use_dualstack_endpoint,
695
+ use_fips: context.config.use_fips_endpoint,
696
+ endpoint: endpoint,
697
+ )
698
+ end
699
+ end
700
+
673
701
  class StartSchemaCreation
674
702
  def self.build(context)
675
703
  unless context.config.regional_endpoint
@@ -112,6 +112,8 @@ module Aws::AppSync
112
112
  Aws::AppSync::Endpoints::GetApiCache.build(context)
113
113
  when :get_data_source
114
114
  Aws::AppSync::Endpoints::GetDataSource.build(context)
115
+ when :get_data_source_introspection
116
+ Aws::AppSync::Endpoints::GetDataSourceIntrospection.build(context)
115
117
  when :get_domain_name
116
118
  Aws::AppSync::Endpoints::GetDomainName.build(context)
117
119
  when :get_function
@@ -150,6 +152,8 @@ module Aws::AppSync
150
152
  Aws::AppSync::Endpoints::ListTypes.build(context)
151
153
  when :list_types_by_association
152
154
  Aws::AppSync::Endpoints::ListTypesByAssociation.build(context)
155
+ when :start_data_source_introspection
156
+ Aws::AppSync::Endpoints::StartDataSourceIntrospection.build(context)
153
157
  when :start_schema_creation
154
158
  Aws::AppSync::Endpoints::StartSchemaCreation.build(context)
155
159
  when :start_schema_merge
@@ -1336,6 +1336,160 @@ module Aws::AppSync
1336
1336
  include Aws::Structure
1337
1337
  end
1338
1338
 
1339
+ # Contains the introspected data that was retrieved from the data
1340
+ # source.
1341
+ #
1342
+ # @!attribute [rw] name
1343
+ # The name of the model. For example, this could be the name of a
1344
+ # single table in a database.
1345
+ # @return [String]
1346
+ #
1347
+ # @!attribute [rw] fields
1348
+ # The `DataSourceIntrospectionModelField` object data.
1349
+ # @return [Array<Types::DataSourceIntrospectionModelField>]
1350
+ #
1351
+ # @!attribute [rw] primary_key
1352
+ # The primary key stored as a `DataSourceIntrospectionModelIndex`
1353
+ # object.
1354
+ # @return [Types::DataSourceIntrospectionModelIndex]
1355
+ #
1356
+ # @!attribute [rw] indexes
1357
+ # The array of `DataSourceIntrospectionModelIndex` objects.
1358
+ # @return [Array<Types::DataSourceIntrospectionModelIndex>]
1359
+ #
1360
+ # @!attribute [rw] sdl
1361
+ # Contains the output of the SDL that was generated from the
1362
+ # introspected types. This is controlled by the `includeModelsSDL`
1363
+ # parameter of the `GetDataSourceIntrospection` operation.
1364
+ # @return [String]
1365
+ #
1366
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DataSourceIntrospectionModel AWS API Documentation
1367
+ #
1368
+ class DataSourceIntrospectionModel < Struct.new(
1369
+ :name,
1370
+ :fields,
1371
+ :primary_key,
1372
+ :indexes,
1373
+ :sdl)
1374
+ SENSITIVE = []
1375
+ include Aws::Structure
1376
+ end
1377
+
1378
+ # Represents the fields that were retrieved from the introspected data.
1379
+ #
1380
+ # @!attribute [rw] name
1381
+ # The name of the field that was retrieved from the introspected data.
1382
+ # @return [String]
1383
+ #
1384
+ # @!attribute [rw] type
1385
+ # The `DataSourceIntrospectionModelFieldType` object data.
1386
+ # @return [Types::DataSourceIntrospectionModelFieldType]
1387
+ #
1388
+ # @!attribute [rw] length
1389
+ # The length value of the introspected field.
1390
+ # @return [Integer]
1391
+ #
1392
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DataSourceIntrospectionModelField AWS API Documentation
1393
+ #
1394
+ class DataSourceIntrospectionModelField < Struct.new(
1395
+ :name,
1396
+ :type,
1397
+ :length)
1398
+ SENSITIVE = []
1399
+ include Aws::Structure
1400
+ end
1401
+
1402
+ # Represents the type data for each field retrieved from the
1403
+ # introspection.
1404
+ #
1405
+ # @!attribute [rw] kind
1406
+ # Specifies the classification of data. For example, this could be set
1407
+ # to values like `Scalar` or `NonNull` to indicate a fundamental
1408
+ # property of the field.
1409
+ #
1410
+ # Valid values include:
1411
+ #
1412
+ # * `Scalar`: Indicates the value is a primitive type (scalar).
1413
+ #
1414
+ # * `NonNull`: Indicates the field cannot be `null`.
1415
+ #
1416
+ # * `List`: Indicates the field contains a list.
1417
+ # @return [String]
1418
+ #
1419
+ # @!attribute [rw] name
1420
+ # The name of the data type that represents the field. For example,
1421
+ # `String` is a valid `name` value.
1422
+ # @return [String]
1423
+ #
1424
+ # @!attribute [rw] type
1425
+ # The `DataSourceIntrospectionModelFieldType` object data. The `type`
1426
+ # is only present if `DataSourceIntrospectionModelFieldType.kind` is
1427
+ # set to `NonNull` or `List`.
1428
+ #
1429
+ # The `type` typically contains its own `kind` and `name` fields to
1430
+ # represent the actual type data. For instance, `type` could contain a
1431
+ # `kind` value of `Scalar` with a `name` value of `String`. The values
1432
+ # `Scalar` and `String` will be collectively stored in the `values`
1433
+ # field.
1434
+ # @return [Types::DataSourceIntrospectionModelFieldType]
1435
+ #
1436
+ # @!attribute [rw] values
1437
+ # The values of the `type` field. This field represents the AppSync
1438
+ # data type equivalent of the introspected field.
1439
+ # @return [Array<String>]
1440
+ #
1441
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DataSourceIntrospectionModelFieldType AWS API Documentation
1442
+ #
1443
+ class DataSourceIntrospectionModelFieldType < Struct.new(
1444
+ :kind,
1445
+ :name,
1446
+ :type,
1447
+ :values)
1448
+ SENSITIVE = []
1449
+ include Aws::Structure
1450
+ end
1451
+
1452
+ # The index that was retrieved from the introspected data.
1453
+ #
1454
+ # @!attribute [rw] name
1455
+ # The name of the index.
1456
+ # @return [String]
1457
+ #
1458
+ # @!attribute [rw] fields
1459
+ # The fields of the index.
1460
+ # @return [Array<String>]
1461
+ #
1462
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DataSourceIntrospectionModelIndex AWS API Documentation
1463
+ #
1464
+ class DataSourceIntrospectionModelIndex < Struct.new(
1465
+ :name,
1466
+ :fields)
1467
+ SENSITIVE = []
1468
+ include Aws::Structure
1469
+ end
1470
+
1471
+ # Represents the output of a `DataSourceIntrospectionResult`. This is
1472
+ # the populated result of a `GetDataSourceIntrospection` operation.
1473
+ #
1474
+ # @!attribute [rw] models
1475
+ # The array of `DataSourceIntrospectionModel` objects.
1476
+ # @return [Array<Types::DataSourceIntrospectionModel>]
1477
+ #
1478
+ # @!attribute [rw] next_token
1479
+ # Determines the number of types to be returned in a single response
1480
+ # before paginating. This value is typically taken from `nextToken`
1481
+ # value from the previous response.
1482
+ # @return [String]
1483
+ #
1484
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DataSourceIntrospectionResult AWS API Documentation
1485
+ #
1486
+ class DataSourceIntrospectionResult < Struct.new(
1487
+ :models,
1488
+ :next_token)
1489
+ SENSITIVE = []
1490
+ include Aws::Structure
1491
+ end
1492
+
1339
1493
  # Represents the input of a `DeleteApiCache` operation.
1340
1494
  #
1341
1495
  # @!attribute [rw] api_id
@@ -2004,6 +2158,75 @@ module Aws::AppSync
2004
2158
  include Aws::Structure
2005
2159
  end
2006
2160
 
2161
+ # @!attribute [rw] introspection_id
2162
+ # The introspection ID. Each introspection contains a unique ID that
2163
+ # can be used to reference the instrospection record.
2164
+ # @return [String]
2165
+ #
2166
+ # @!attribute [rw] include_models_sdl
2167
+ # A boolean flag that determines whether SDL should be generated for
2168
+ # introspected types or not. If set to `true`, each model will contain
2169
+ # an `sdl` property that contains the SDL for that type. The SDL only
2170
+ # contains the type data and no additional metadata or directives.
2171
+ # @return [Boolean]
2172
+ #
2173
+ # @!attribute [rw] next_token
2174
+ # Determines the number of types to be returned in a single response
2175
+ # before paginating. This value is typically taken from `nextToken`
2176
+ # value from the previous response.
2177
+ # @return [String]
2178
+ #
2179
+ # @!attribute [rw] max_results
2180
+ # The maximum number of introspected types that will be returned in a
2181
+ # single response.
2182
+ # @return [Integer]
2183
+ #
2184
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetDataSourceIntrospectionRequest AWS API Documentation
2185
+ #
2186
+ class GetDataSourceIntrospectionRequest < Struct.new(
2187
+ :introspection_id,
2188
+ :include_models_sdl,
2189
+ :next_token,
2190
+ :max_results)
2191
+ SENSITIVE = []
2192
+ include Aws::Structure
2193
+ end
2194
+
2195
+ # @!attribute [rw] introspection_id
2196
+ # The introspection ID. Each introspection contains a unique ID that
2197
+ # can be used to reference the instrospection record.
2198
+ # @return [String]
2199
+ #
2200
+ # @!attribute [rw] introspection_status
2201
+ # The status of the introspection during retrieval. By default, when a
2202
+ # new instrospection is being retrieved, the status will be set to
2203
+ # `PROCESSING`. Once the operation has been completed, the status will
2204
+ # change to `SUCCESS` or `FAILED` depending on how the data was
2205
+ # parsed. A `FAILED` operation will return an error and its details as
2206
+ # an `introspectionStatusDetail`.
2207
+ # @return [String]
2208
+ #
2209
+ # @!attribute [rw] introspection_status_detail
2210
+ # The error detail field. When a `FAILED` `introspectionStatus` is
2211
+ # returned, the `introspectionStatusDetail` will also return the exact
2212
+ # error that was generated during the operation.
2213
+ # @return [String]
2214
+ #
2215
+ # @!attribute [rw] introspection_result
2216
+ # The `DataSourceIntrospectionResult` object data.
2217
+ # @return [Types::DataSourceIntrospectionResult]
2218
+ #
2219
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetDataSourceIntrospectionResponse AWS API Documentation
2220
+ #
2221
+ class GetDataSourceIntrospectionResponse < Struct.new(
2222
+ :introspection_id,
2223
+ :introspection_status,
2224
+ :introspection_status_detail,
2225
+ :introspection_result)
2226
+ SENSITIVE = []
2227
+ include Aws::Structure
2228
+ end
2229
+
2007
2230
  # @!attribute [rw] api_id
2008
2231
  # The API ID.
2009
2232
  # @return [String]
@@ -3147,6 +3370,35 @@ module Aws::AppSync
3147
3370
  include Aws::Structure
3148
3371
  end
3149
3372
 
3373
+ # Contains the metadata required to introspect the RDS cluster.
3374
+ #
3375
+ # @!attribute [rw] resource_arn
3376
+ # The resource ARN of the RDS cluster.
3377
+ # @return [String]
3378
+ #
3379
+ # @!attribute [rw] secret_arn
3380
+ # The secret's ARN that was obtained from Secrets Manager. A secret
3381
+ # consists of secret information, the secret value, plus metadata
3382
+ # about the secret. A secret value can be a string or binary. It
3383
+ # typically includes the ARN, secret name and description, policies,
3384
+ # tags, encryption key from the Key Management Service, and key
3385
+ # rotation data.
3386
+ # @return [String]
3387
+ #
3388
+ # @!attribute [rw] database_name
3389
+ # The name of the database in the cluster.
3390
+ # @return [String]
3391
+ #
3392
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/RdsDataApiConfig AWS API Documentation
3393
+ #
3394
+ class RdsDataApiConfig < Struct.new(
3395
+ :resource_arn,
3396
+ :secret_arn,
3397
+ :database_name)
3398
+ SENSITIVE = []
3399
+ include Aws::Structure
3400
+ end
3401
+
3150
3402
  # The Amazon Relational Database Service (Amazon RDS) HTTP endpoint
3151
3403
  # configuration.
3152
3404
  #
@@ -3447,6 +3699,48 @@ module Aws::AppSync
3447
3699
  include Aws::Structure
3448
3700
  end
3449
3701
 
3702
+ # @!attribute [rw] rds_data_api_config
3703
+ # The `rdsDataApiConfig` object data.
3704
+ # @return [Types::RdsDataApiConfig]
3705
+ #
3706
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/StartDataSourceIntrospectionRequest AWS API Documentation
3707
+ #
3708
+ class StartDataSourceIntrospectionRequest < Struct.new(
3709
+ :rds_data_api_config)
3710
+ SENSITIVE = []
3711
+ include Aws::Structure
3712
+ end
3713
+
3714
+ # @!attribute [rw] introspection_id
3715
+ # The introspection ID. Each introspection contains a unique ID that
3716
+ # can be used to reference the instrospection record.
3717
+ # @return [String]
3718
+ #
3719
+ # @!attribute [rw] introspection_status
3720
+ # The status of the introspection during creation. By default, when a
3721
+ # new instrospection has been created, the status will be set to
3722
+ # `PROCESSING`. Once the operation has been completed, the status will
3723
+ # change to `SUCCESS` or `FAILED` depending on how the data was
3724
+ # parsed. A `FAILED` operation will return an error and its details as
3725
+ # an `introspectionStatusDetail`.
3726
+ # @return [String]
3727
+ #
3728
+ # @!attribute [rw] introspection_status_detail
3729
+ # The error detail field. When a `FAILED` `introspectionStatus` is
3730
+ # returned, the `introspectionStatusDetail` will also return the exact
3731
+ # error that was generated during the operation.
3732
+ # @return [String]
3733
+ #
3734
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/StartDataSourceIntrospectionResponse AWS API Documentation
3735
+ #
3736
+ class StartDataSourceIntrospectionResponse < Struct.new(
3737
+ :introspection_id,
3738
+ :introspection_status,
3739
+ :introspection_status_detail)
3740
+ SENSITIVE = []
3741
+ include Aws::Structure
3742
+ end
3743
+
3450
3744
  # @!attribute [rw] api_id
3451
3745
  # The API ID.
3452
3746
  # @return [String]
@@ -52,6 +52,6 @@ require_relative 'aws-sdk-appsync/customizations'
52
52
  # @!group service
53
53
  module Aws::AppSync
54
54
 
55
- GEM_VERSION = '1.67.0'
55
+ GEM_VERSION = '1.68.0'
56
56
 
57
57
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-appsync
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.67.0
4
+ version: 1.68.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-11-22 00:00:00.000000000 Z
11
+ date: 2023-11-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core