aws-sdk-appsync 1.71.0 → 1.72.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: 6adfec1e46b0031e223eb53db69ce1cef7debab9ea310566aad11e74d2f13f1e
4
- data.tar.gz: 1dd0e4eb50b103c6f04599a49c6b74c8c2c6bf6829fd85c6f84f00657027b89e
3
+ metadata.gz: b20be619f0a3cd655e0110ebb06c720a42eed94364ab9f9603ff1e2c99f7cbcf
4
+ data.tar.gz: 7f2f342dc0d0e3cb50e588571546c10d2680b23ddab2d2a166b94c8c8bf2cda5
5
5
  SHA512:
6
- metadata.gz: 76954a4afb6bc4df8b8822eed23ae39d249ee8fbe23b5b48d6965f91539840ec0cc34f83300ca0f733463520ca64d4ef8df67af14ebd48a85c5335981859f2f2
7
- data.tar.gz: d9c5118760316d8bddd7d072958bd65e00a0b900b6ac09f86c945cc62bb04bc26bc3007cdf0a811f8b1a66e42ba9d5f58b1edefe0b54878df88d67ed229650c3
6
+ metadata.gz: e5098d28d8fb00135f14769c58119e51a661266c2038444301ab042fff8a91db364105928901ac484cb1fe303941d61d1dd0bdb90c9b2b2d3085bfe5bde77997
7
+ data.tar.gz: e432b6dd4b507dba0eb1ebd9ad4318d64c9fb8140c3098cc0db0da11e1c062320535e7347f957a4bfda192e619cb733908d98356c6852ee8849dfc8b70a3d6a1
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.72.0 (2024-02-06)
5
+ ------------------
6
+
7
+ * Feature - Support for environment variables in AppSync GraphQL APIs
8
+
4
9
  1.71.0 (2024-01-26)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.71.0
1
+ 1.72.0
@@ -2151,6 +2151,37 @@ module Aws::AppSync
2151
2151
  req.send_request(options)
2152
2152
  end
2153
2153
 
2154
+ # Retrieves the list of environmental variable key-value pairs
2155
+ # associated with an API by its ID value.
2156
+ #
2157
+ # @option params [required, String] :api_id
2158
+ # The ID of the API from which the environmental variable list will be
2159
+ # retrieved.
2160
+ #
2161
+ # @return [Types::GetGraphqlApiEnvironmentVariablesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2162
+ #
2163
+ # * {Types::GetGraphqlApiEnvironmentVariablesResponse#environment_variables #environment_variables} => Hash<String,String>
2164
+ #
2165
+ # @example Request syntax with placeholder values
2166
+ #
2167
+ # resp = client.get_graphql_api_environment_variables({
2168
+ # api_id: "String", # required
2169
+ # })
2170
+ #
2171
+ # @example Response structure
2172
+ #
2173
+ # resp.environment_variables #=> Hash
2174
+ # resp.environment_variables["EnvironmentVariableKey"] #=> String
2175
+ #
2176
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetGraphqlApiEnvironmentVariables AWS API Documentation
2177
+ #
2178
+ # @overload get_graphql_api_environment_variables(params = {})
2179
+ # @param [Hash] params ({})
2180
+ def get_graphql_api_environment_variables(params = {}, options = {})
2181
+ req = build_request(:get_graphql_api_environment_variables, params)
2182
+ req.send_request(options)
2183
+ end
2184
+
2154
2185
  # Retrieves the introspection schema for a GraphQL API.
2155
2186
  #
2156
2187
  # @option params [required, String] :api_id
@@ -2974,6 +3005,104 @@ module Aws::AppSync
2974
3005
  req.send_request(options)
2975
3006
  end
2976
3007
 
3008
+ # Creates a list of environmental variables in an API by its ID value.
3009
+ #
3010
+ # When creating an environmental variable, it must follow the
3011
+ # constraints below:
3012
+ #
3013
+ # * Both JavaScript and VTL templates support environmental variables.
3014
+ #
3015
+ # * Environmental variables are not evaluated before function
3016
+ # invocation.
3017
+ #
3018
+ # * Environmental variables only support string values.
3019
+ #
3020
+ # * Any defined value in an environmental variable is considered a
3021
+ # string literal and not expanded.
3022
+ #
3023
+ # * Variable evaluations should ideally be performed in the function
3024
+ # code.
3025
+ #
3026
+ # When creating an environmental variable key-value pair, it must follow
3027
+ # the additional constraints below:
3028
+ #
3029
+ # * Keys must begin with a letter.
3030
+ #
3031
+ # * Keys must be at least two characters long.
3032
+ #
3033
+ # * Keys can only contain letters, numbers, and the underscore character
3034
+ # (\_).
3035
+ #
3036
+ # * Values can be up to 512 characters long.
3037
+ #
3038
+ # * You can configure up to 50 key-value pairs in a GraphQL API.
3039
+ #
3040
+ # You can create a list of environmental variables by adding it to the
3041
+ # `environmentVariables` payload as a list in the format
3042
+ # `\{"key1":"value1","key2":"value2", …\}`. Note that each call of the
3043
+ # `PutGraphqlApiEnvironmentVariables` action will result in the
3044
+ # overwriting of the existing environmental variable list of that API.
3045
+ # This means the existing environmental variables will be lost. To avoid
3046
+ # this, you must include all existing and new environmental variables in
3047
+ # the list each time you call this action.
3048
+ #
3049
+ # @option params [required, String] :api_id
3050
+ # The ID of the API to which the environmental variable list will be
3051
+ # written.
3052
+ #
3053
+ # @option params [required, Hash<String,String>] :environment_variables
3054
+ # The list of environmental variables to add to the API.
3055
+ #
3056
+ # When creating an environmental variable key-value pair, it must follow
3057
+ # the additional constraints below:
3058
+ #
3059
+ # * Keys must begin with a letter.
3060
+ #
3061
+ # * Keys must be at least two characters long.
3062
+ #
3063
+ # * Keys can only contain letters, numbers, and the underscore character
3064
+ # (\_).
3065
+ #
3066
+ # * Values can be up to 512 characters long.
3067
+ #
3068
+ # * You can configure up to 50 key-value pairs in a GraphQL API.
3069
+ #
3070
+ # You can create a list of environmental variables by adding it to the
3071
+ # `environmentVariables` payload as a list in the format
3072
+ # `\{"key1":"value1","key2":"value2", …\}`. Note that each call of the
3073
+ # `PutGraphqlApiEnvironmentVariables` action will result in the
3074
+ # overwriting of the existing environmental variable list of that API.
3075
+ # This means the existing environmental variables will be lost. To avoid
3076
+ # this, you must include all existing and new environmental variables in
3077
+ # the list each time you call this action.
3078
+ #
3079
+ # @return [Types::PutGraphqlApiEnvironmentVariablesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3080
+ #
3081
+ # * {Types::PutGraphqlApiEnvironmentVariablesResponse#environment_variables #environment_variables} => Hash&lt;String,String&gt;
3082
+ #
3083
+ # @example Request syntax with placeholder values
3084
+ #
3085
+ # resp = client.put_graphql_api_environment_variables({
3086
+ # api_id: "String", # required
3087
+ # environment_variables: { # required
3088
+ # "EnvironmentVariableKey" => "EnvironmentVariableValue",
3089
+ # },
3090
+ # })
3091
+ #
3092
+ # @example Response structure
3093
+ #
3094
+ # resp.environment_variables #=> Hash
3095
+ # resp.environment_variables["EnvironmentVariableKey"] #=> String
3096
+ #
3097
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/PutGraphqlApiEnvironmentVariables AWS API Documentation
3098
+ #
3099
+ # @overload put_graphql_api_environment_variables(params = {})
3100
+ # @param [Hash] params ({})
3101
+ def put_graphql_api_environment_variables(params = {}, options = {})
3102
+ req = build_request(:put_graphql_api_environment_variables, params)
3103
+ req.send_request(options)
3104
+ end
3105
+
2977
3106
  # Creates a new introspection. Returns the `introspectionId` of the new
2978
3107
  # introspection after its creation.
2979
3108
  #
@@ -3998,7 +4127,7 @@ module Aws::AppSync
3998
4127
  params: params,
3999
4128
  config: config)
4000
4129
  context[:gem_name] = 'aws-sdk-appsync'
4001
- context[:gem_version] = '1.71.0'
4130
+ context[:gem_version] = '1.72.0'
4002
4131
  Seahorse::Client::Request.new(handlers, context)
4003
4132
  end
4004
4133
 
@@ -120,6 +120,9 @@ module Aws::AppSync
120
120
  DomainNameConfigs = Shapes::ListShape.new(name: 'DomainNameConfigs')
121
121
  DynamodbDataSourceConfig = Shapes::StructureShape.new(name: 'DynamodbDataSourceConfig')
122
122
  ElasticsearchDataSourceConfig = Shapes::StructureShape.new(name: 'ElasticsearchDataSourceConfig')
123
+ EnvironmentVariableKey = Shapes::StringShape.new(name: 'EnvironmentVariableKey')
124
+ EnvironmentVariableMap = Shapes::MapShape.new(name: 'EnvironmentVariableMap')
125
+ EnvironmentVariableValue = Shapes::StringShape.new(name: 'EnvironmentVariableValue')
123
126
  ErrorDetail = Shapes::StructureShape.new(name: 'ErrorDetail')
124
127
  ErrorMessage = Shapes::StringShape.new(name: 'ErrorMessage')
125
128
  EvaluateCodeErrorDetail = Shapes::StructureShape.new(name: 'EvaluateCodeErrorDetail')
@@ -147,6 +150,8 @@ module Aws::AppSync
147
150
  GetDomainNameResponse = Shapes::StructureShape.new(name: 'GetDomainNameResponse')
148
151
  GetFunctionRequest = Shapes::StructureShape.new(name: 'GetFunctionRequest')
149
152
  GetFunctionResponse = Shapes::StructureShape.new(name: 'GetFunctionResponse')
153
+ GetGraphqlApiEnvironmentVariablesRequest = Shapes::StructureShape.new(name: 'GetGraphqlApiEnvironmentVariablesRequest')
154
+ GetGraphqlApiEnvironmentVariablesResponse = Shapes::StructureShape.new(name: 'GetGraphqlApiEnvironmentVariablesResponse')
150
155
  GetGraphqlApiRequest = Shapes::StructureShape.new(name: 'GetGraphqlApiRequest')
151
156
  GetGraphqlApiResponse = Shapes::StructureShape.new(name: 'GetGraphqlApiResponse')
152
157
  GetIntrospectionSchemaRequest = Shapes::StructureShape.new(name: 'GetIntrospectionSchemaRequest')
@@ -208,6 +213,8 @@ module Aws::AppSync
208
213
  Ownership = Shapes::StringShape.new(name: 'Ownership')
209
214
  PaginationToken = Shapes::StringShape.new(name: 'PaginationToken')
210
215
  PipelineConfig = Shapes::StructureShape.new(name: 'PipelineConfig')
216
+ PutGraphqlApiEnvironmentVariablesRequest = Shapes::StructureShape.new(name: 'PutGraphqlApiEnvironmentVariablesRequest')
217
+ PutGraphqlApiEnvironmentVariablesResponse = Shapes::StructureShape.new(name: 'PutGraphqlApiEnvironmentVariablesResponse')
211
218
  QueryDepthLimit = Shapes::IntegerShape.new(name: 'QueryDepthLimit')
212
219
  RdsDataApiConfig = Shapes::StructureShape.new(name: 'RdsDataApiConfig')
213
220
  RdsDataApiConfigDatabaseName = Shapes::StringShape.new(name: 'RdsDataApiConfigDatabaseName')
@@ -633,6 +640,9 @@ module Aws::AppSync
633
640
  ElasticsearchDataSourceConfig.add_member(:aws_region, Shapes::ShapeRef.new(shape: String, required: true, location_name: "awsRegion"))
634
641
  ElasticsearchDataSourceConfig.struct_class = Types::ElasticsearchDataSourceConfig
635
642
 
643
+ EnvironmentVariableMap.key = Shapes::ShapeRef.new(shape: EnvironmentVariableKey)
644
+ EnvironmentVariableMap.value = Shapes::ShapeRef.new(shape: EnvironmentVariableValue)
645
+
636
646
  ErrorDetail.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "message"))
637
647
  ErrorDetail.struct_class = Types::ErrorDetail
638
648
 
@@ -730,6 +740,12 @@ module Aws::AppSync
730
740
  GetFunctionResponse.add_member(:function_configuration, Shapes::ShapeRef.new(shape: FunctionConfiguration, location_name: "functionConfiguration"))
731
741
  GetFunctionResponse.struct_class = Types::GetFunctionResponse
732
742
 
743
+ GetGraphqlApiEnvironmentVariablesRequest.add_member(:api_id, Shapes::ShapeRef.new(shape: String, required: true, location: "uri", location_name: "apiId"))
744
+ GetGraphqlApiEnvironmentVariablesRequest.struct_class = Types::GetGraphqlApiEnvironmentVariablesRequest
745
+
746
+ GetGraphqlApiEnvironmentVariablesResponse.add_member(:environment_variables, Shapes::ShapeRef.new(shape: EnvironmentVariableMap, location_name: "environmentVariables"))
747
+ GetGraphqlApiEnvironmentVariablesResponse.struct_class = Types::GetGraphqlApiEnvironmentVariablesResponse
748
+
733
749
  GetGraphqlApiRequest.add_member(:api_id, Shapes::ShapeRef.new(shape: String, required: true, location: "uri", location_name: "apiId"))
734
750
  GetGraphqlApiRequest.struct_class = Types::GetGraphqlApiRequest
735
751
 
@@ -953,6 +969,13 @@ module Aws::AppSync
953
969
  PipelineConfig.add_member(:functions, Shapes::ShapeRef.new(shape: FunctionsIds, location_name: "functions"))
954
970
  PipelineConfig.struct_class = Types::PipelineConfig
955
971
 
972
+ PutGraphqlApiEnvironmentVariablesRequest.add_member(:api_id, Shapes::ShapeRef.new(shape: String, required: true, location: "uri", location_name: "apiId"))
973
+ PutGraphqlApiEnvironmentVariablesRequest.add_member(:environment_variables, Shapes::ShapeRef.new(shape: EnvironmentVariableMap, required: true, location_name: "environmentVariables"))
974
+ PutGraphqlApiEnvironmentVariablesRequest.struct_class = Types::PutGraphqlApiEnvironmentVariablesRequest
975
+
976
+ PutGraphqlApiEnvironmentVariablesResponse.add_member(:environment_variables, Shapes::ShapeRef.new(shape: EnvironmentVariableMap, location_name: "environmentVariables"))
977
+ PutGraphqlApiEnvironmentVariablesResponse.struct_class = Types::PutGraphqlApiEnvironmentVariablesResponse
978
+
956
979
  RdsDataApiConfig.add_member(:resource_arn, Shapes::ShapeRef.new(shape: RdsDataApiConfigResourceArn, required: true, location_name: "resourceArn"))
957
980
  RdsDataApiConfig.add_member(:secret_arn, Shapes::ShapeRef.new(shape: RdsDataApiConfigSecretArn, required: true, location_name: "secretArn"))
958
981
  RdsDataApiConfig.add_member(:database_name, Shapes::ShapeRef.new(shape: RdsDataApiConfigDatabaseName, required: true, location_name: "databaseName"))
@@ -1615,6 +1638,19 @@ module Aws::AppSync
1615
1638
  o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
1616
1639
  end)
1617
1640
 
1641
+ api.add_operation(:get_graphql_api_environment_variables, Seahorse::Model::Operation.new.tap do |o|
1642
+ o.name = "GetGraphqlApiEnvironmentVariables"
1643
+ o.http_method = "GET"
1644
+ o.http_request_uri = "/v1/apis/{apiId}/environmentVariables"
1645
+ o.input = Shapes::ShapeRef.new(shape: GetGraphqlApiEnvironmentVariablesRequest)
1646
+ o.output = Shapes::ShapeRef.new(shape: GetGraphqlApiEnvironmentVariablesResponse)
1647
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
1648
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
1649
+ o.errors << Shapes::ShapeRef.new(shape: UnauthorizedException)
1650
+ o.errors << Shapes::ShapeRef.new(shape: InternalFailureException)
1651
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
1652
+ end)
1653
+
1618
1654
  api.add_operation(:get_introspection_schema, Seahorse::Model::Operation.new.tap do |o|
1619
1655
  o.name = "GetIntrospectionSchema"
1620
1656
  o.http_method = "GET"
@@ -1809,6 +1845,20 @@ module Aws::AppSync
1809
1845
  o.errors << Shapes::ShapeRef.new(shape: InternalFailureException)
1810
1846
  end)
1811
1847
 
1848
+ api.add_operation(:put_graphql_api_environment_variables, Seahorse::Model::Operation.new.tap do |o|
1849
+ o.name = "PutGraphqlApiEnvironmentVariables"
1850
+ o.http_method = "PUT"
1851
+ o.http_request_uri = "/v1/apis/{apiId}/environmentVariables"
1852
+ o.input = Shapes::ShapeRef.new(shape: PutGraphqlApiEnvironmentVariablesRequest)
1853
+ o.output = Shapes::ShapeRef.new(shape: PutGraphqlApiEnvironmentVariablesResponse)
1854
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
1855
+ o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException)
1856
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
1857
+ o.errors << Shapes::ShapeRef.new(shape: UnauthorizedException)
1858
+ o.errors << Shapes::ShapeRef.new(shape: InternalFailureException)
1859
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
1860
+ end)
1861
+
1812
1862
  api.add_operation(:start_data_source_introspection, Seahorse::Model::Operation.new.tap do |o|
1813
1863
  o.name = "StartDataSourceIntrospection"
1814
1864
  o.http_method = "POST"
@@ -460,6 +460,20 @@ module Aws::AppSync
460
460
  end
461
461
  end
462
462
 
463
+ class GetGraphqlApiEnvironmentVariables
464
+ def self.build(context)
465
+ unless context.config.regional_endpoint
466
+ endpoint = context.config.endpoint.to_s
467
+ end
468
+ Aws::AppSync::EndpointParameters.new(
469
+ region: context.config.region,
470
+ use_dual_stack: context.config.use_dualstack_endpoint,
471
+ use_fips: context.config.use_fips_endpoint,
472
+ endpoint: endpoint,
473
+ )
474
+ end
475
+ end
476
+
463
477
  class GetIntrospectionSchema
464
478
  def self.build(context)
465
479
  unless context.config.regional_endpoint
@@ -684,6 +698,20 @@ module Aws::AppSync
684
698
  end
685
699
  end
686
700
 
701
+ class PutGraphqlApiEnvironmentVariables
702
+ def self.build(context)
703
+ unless context.config.regional_endpoint
704
+ endpoint = context.config.endpoint.to_s
705
+ end
706
+ Aws::AppSync::EndpointParameters.new(
707
+ region: context.config.region,
708
+ use_dual_stack: context.config.use_dualstack_endpoint,
709
+ use_fips: context.config.use_fips_endpoint,
710
+ endpoint: endpoint,
711
+ )
712
+ end
713
+ end
714
+
687
715
  class StartDataSourceIntrospection
688
716
  def self.build(context)
689
717
  unless context.config.regional_endpoint
@@ -122,6 +122,8 @@ module Aws::AppSync
122
122
  Aws::AppSync::Endpoints::GetFunction.build(context)
123
123
  when :get_graphql_api
124
124
  Aws::AppSync::Endpoints::GetGraphqlApi.build(context)
125
+ when :get_graphql_api_environment_variables
126
+ Aws::AppSync::Endpoints::GetGraphqlApiEnvironmentVariables.build(context)
125
127
  when :get_introspection_schema
126
128
  Aws::AppSync::Endpoints::GetIntrospectionSchema.build(context)
127
129
  when :get_resolver
@@ -154,6 +156,8 @@ module Aws::AppSync
154
156
  Aws::AppSync::Endpoints::ListTypes.build(context)
155
157
  when :list_types_by_association
156
158
  Aws::AppSync::Endpoints::ListTypesByAssociation.build(context)
159
+ when :put_graphql_api_environment_variables
160
+ Aws::AppSync::Endpoints::PutGraphqlApiEnvironmentVariables.build(context)
157
161
  when :start_data_source_introspection
158
162
  Aws::AppSync::Endpoints::StartDataSourceIntrospection.build(context)
159
163
  when :start_schema_creation
@@ -2348,6 +2348,32 @@ module Aws::AppSync
2348
2348
  include Aws::Structure
2349
2349
  end
2350
2350
 
2351
+ # @!attribute [rw] api_id
2352
+ # The ID of the API from which the environmental variable list will be
2353
+ # retrieved.
2354
+ # @return [String]
2355
+ #
2356
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetGraphqlApiEnvironmentVariablesRequest AWS API Documentation
2357
+ #
2358
+ class GetGraphqlApiEnvironmentVariablesRequest < Struct.new(
2359
+ :api_id)
2360
+ SENSITIVE = []
2361
+ include Aws::Structure
2362
+ end
2363
+
2364
+ # @!attribute [rw] environment_variables
2365
+ # The payload containing each environmental variable in the `"key" :
2366
+ # "value"` format.
2367
+ # @return [Hash<String,String>]
2368
+ #
2369
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetGraphqlApiEnvironmentVariablesResponse AWS API Documentation
2370
+ #
2371
+ class GetGraphqlApiEnvironmentVariablesResponse < Struct.new(
2372
+ :environment_variables)
2373
+ SENSITIVE = []
2374
+ include Aws::Structure
2375
+ end
2376
+
2351
2377
  # @!attribute [rw] api_id
2352
2378
  # The API ID for the GraphQL API.
2353
2379
  # @return [String]
@@ -3448,6 +3474,60 @@ module Aws::AppSync
3448
3474
  include Aws::Structure
3449
3475
  end
3450
3476
 
3477
+ # @!attribute [rw] api_id
3478
+ # The ID of the API to which the environmental variable list will be
3479
+ # written.
3480
+ # @return [String]
3481
+ #
3482
+ # @!attribute [rw] environment_variables
3483
+ # The list of environmental variables to add to the API.
3484
+ #
3485
+ # When creating an environmental variable key-value pair, it must
3486
+ # follow the additional constraints below:
3487
+ #
3488
+ # * Keys must begin with a letter.
3489
+ #
3490
+ # * Keys must be at least two characters long.
3491
+ #
3492
+ # * Keys can only contain letters, numbers, and the underscore
3493
+ # character (\_).
3494
+ #
3495
+ # * Values can be up to 512 characters long.
3496
+ #
3497
+ # * You can configure up to 50 key-value pairs in a GraphQL API.
3498
+ #
3499
+ # You can create a list of environmental variables by adding it to the
3500
+ # `environmentVariables` payload as a list in the format
3501
+ # `\{"key1":"value1","key2":"value2", …\}`. Note that each call of the
3502
+ # `PutGraphqlApiEnvironmentVariables` action will result in the
3503
+ # overwriting of the existing environmental variable list of that API.
3504
+ # This means the existing environmental variables will be lost. To
3505
+ # avoid this, you must include all existing and new environmental
3506
+ # variables in the list each time you call this action.
3507
+ # @return [Hash<String,String>]
3508
+ #
3509
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/PutGraphqlApiEnvironmentVariablesRequest AWS API Documentation
3510
+ #
3511
+ class PutGraphqlApiEnvironmentVariablesRequest < Struct.new(
3512
+ :api_id,
3513
+ :environment_variables)
3514
+ SENSITIVE = []
3515
+ include Aws::Structure
3516
+ end
3517
+
3518
+ # @!attribute [rw] environment_variables
3519
+ # The payload containing each environmental variable in the `"key" :
3520
+ # "value"` format.
3521
+ # @return [Hash<String,String>]
3522
+ #
3523
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/PutGraphqlApiEnvironmentVariablesResponse AWS API Documentation
3524
+ #
3525
+ class PutGraphqlApiEnvironmentVariablesResponse < Struct.new(
3526
+ :environment_variables)
3527
+ SENSITIVE = []
3528
+ include Aws::Structure
3529
+ end
3530
+
3451
3531
  # Contains the metadata required to introspect the RDS cluster.
3452
3532
  #
3453
3533
  # @!attribute [rw] resource_arn
@@ -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.71.0'
55
+ GEM_VERSION = '1.72.0'
56
56
 
57
57
  end
data/sig/client.rbs CHANGED
@@ -576,6 +576,16 @@ module Aws
576
576
  ) -> _GetGraphqlApiResponseSuccess
577
577
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetGraphqlApiResponseSuccess
578
578
 
579
+ interface _GetGraphqlApiEnvironmentVariablesResponseSuccess
580
+ include ::Seahorse::Client::_ResponseSuccess[Types::GetGraphqlApiEnvironmentVariablesResponse]
581
+ def environment_variables: () -> ::Hash[::String, ::String]
582
+ end
583
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/AppSync/Client.html#get_graphql_api_environment_variables-instance_method
584
+ def get_graphql_api_environment_variables: (
585
+ api_id: ::String
586
+ ) -> _GetGraphqlApiEnvironmentVariablesResponseSuccess
587
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetGraphqlApiEnvironmentVariablesResponseSuccess
588
+
579
589
  interface _GetIntrospectionSchemaResponseSuccess
580
590
  include ::Seahorse::Client::_ResponseSuccess[Types::GetIntrospectionSchemaResponse]
581
591
  def schema: () -> ::String
@@ -779,6 +789,17 @@ module Aws
779
789
  ) -> _ListTypesByAssociationResponseSuccess
780
790
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListTypesByAssociationResponseSuccess
781
791
 
792
+ interface _PutGraphqlApiEnvironmentVariablesResponseSuccess
793
+ include ::Seahorse::Client::_ResponseSuccess[Types::PutGraphqlApiEnvironmentVariablesResponse]
794
+ def environment_variables: () -> ::Hash[::String, ::String]
795
+ end
796
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/AppSync/Client.html#put_graphql_api_environment_variables-instance_method
797
+ def put_graphql_api_environment_variables: (
798
+ api_id: ::String,
799
+ environment_variables: Hash[::String, ::String]
800
+ ) -> _PutGraphqlApiEnvironmentVariablesResponseSuccess
801
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _PutGraphqlApiEnvironmentVariablesResponseSuccess
802
+
782
803
  interface _StartDataSourceIntrospectionResponseSuccess
783
804
  include ::Seahorse::Client::_ResponseSuccess[Types::StartDataSourceIntrospectionResponse]
784
805
  def introspection_id: () -> ::String
data/sig/types.rbs CHANGED
@@ -619,6 +619,16 @@ module Aws::AppSync
619
619
  SENSITIVE: []
620
620
  end
621
621
 
622
+ class GetGraphqlApiEnvironmentVariablesRequest
623
+ attr_accessor api_id: ::String
624
+ SENSITIVE: []
625
+ end
626
+
627
+ class GetGraphqlApiEnvironmentVariablesResponse
628
+ attr_accessor environment_variables: ::Hash[::String, ::String]
629
+ SENSITIVE: []
630
+ end
631
+
622
632
  class GetGraphqlApiRequest
623
633
  attr_accessor api_id: ::String
624
634
  SENSITIVE: []
@@ -927,6 +937,17 @@ module Aws::AppSync
927
937
  SENSITIVE: []
928
938
  end
929
939
 
940
+ class PutGraphqlApiEnvironmentVariablesRequest
941
+ attr_accessor api_id: ::String
942
+ attr_accessor environment_variables: ::Hash[::String, ::String]
943
+ SENSITIVE: []
944
+ end
945
+
946
+ class PutGraphqlApiEnvironmentVariablesResponse
947
+ attr_accessor environment_variables: ::Hash[::String, ::String]
948
+ SENSITIVE: []
949
+ end
950
+
930
951
  class RdsDataApiConfig
931
952
  attr_accessor resource_arn: ::String
932
953
  attr_accessor secret_arn: ::String
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.71.0
4
+ version: 1.72.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: 2024-01-26 00:00:00.000000000 Z
11
+ date: 2024-02-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core