aws-sdk-timestreaminfluxdb 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,500 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+ module Aws::TimestreamInfluxDB
11
+ # @api private
12
+ module ClientApi
13
+
14
+ include Seahorse::Model
15
+
16
+ AccessDeniedException = Shapes::StructureShape.new(name: 'AccessDeniedException')
17
+ AllocatedStorage = Shapes::IntegerShape.new(name: 'AllocatedStorage')
18
+ Arn = Shapes::StringShape.new(name: 'Arn')
19
+ Boolean = Shapes::BooleanShape.new(name: 'Boolean')
20
+ Bucket = Shapes::StringShape.new(name: 'Bucket')
21
+ ConflictException = Shapes::StructureShape.new(name: 'ConflictException')
22
+ CreateDbInstanceInput = Shapes::StructureShape.new(name: 'CreateDbInstanceInput')
23
+ CreateDbInstanceOutput = Shapes::StructureShape.new(name: 'CreateDbInstanceOutput')
24
+ CreateDbParameterGroupInput = Shapes::StructureShape.new(name: 'CreateDbParameterGroupInput')
25
+ CreateDbParameterGroupInputDescriptionString = Shapes::StringShape.new(name: 'CreateDbParameterGroupInputDescriptionString')
26
+ CreateDbParameterGroupOutput = Shapes::StructureShape.new(name: 'CreateDbParameterGroupOutput')
27
+ DbInstanceId = Shapes::StringShape.new(name: 'DbInstanceId')
28
+ DbInstanceIdentifier = Shapes::StringShape.new(name: 'DbInstanceIdentifier')
29
+ DbInstanceName = Shapes::StringShape.new(name: 'DbInstanceName')
30
+ DbInstanceSummary = Shapes::StructureShape.new(name: 'DbInstanceSummary')
31
+ DbInstanceSummaryList = Shapes::ListShape.new(name: 'DbInstanceSummaryList')
32
+ DbInstanceType = Shapes::StringShape.new(name: 'DbInstanceType')
33
+ DbParameterGroupId = Shapes::StringShape.new(name: 'DbParameterGroupId')
34
+ DbParameterGroupIdentifier = Shapes::StringShape.new(name: 'DbParameterGroupIdentifier')
35
+ DbParameterGroupName = Shapes::StringShape.new(name: 'DbParameterGroupName')
36
+ DbParameterGroupSummary = Shapes::StructureShape.new(name: 'DbParameterGroupSummary')
37
+ DbParameterGroupSummaryList = Shapes::ListShape.new(name: 'DbParameterGroupSummaryList')
38
+ DbStorageType = Shapes::StringShape.new(name: 'DbStorageType')
39
+ DeleteDbInstanceInput = Shapes::StructureShape.new(name: 'DeleteDbInstanceInput')
40
+ DeleteDbInstanceOutput = Shapes::StructureShape.new(name: 'DeleteDbInstanceOutput')
41
+ DeploymentType = Shapes::StringShape.new(name: 'DeploymentType')
42
+ GetDbInstanceInput = Shapes::StructureShape.new(name: 'GetDbInstanceInput')
43
+ GetDbInstanceOutput = Shapes::StructureShape.new(name: 'GetDbInstanceOutput')
44
+ GetDbParameterGroupInput = Shapes::StructureShape.new(name: 'GetDbParameterGroupInput')
45
+ GetDbParameterGroupOutput = Shapes::StructureShape.new(name: 'GetDbParameterGroupOutput')
46
+ InfluxDBv2Parameters = Shapes::StructureShape.new(name: 'InfluxDBv2Parameters')
47
+ InfluxDBv2ParametersQueryConcurrencyInteger = Shapes::IntegerShape.new(name: 'InfluxDBv2ParametersQueryConcurrencyInteger')
48
+ InfluxDBv2ParametersQueryQueueSizeInteger = Shapes::IntegerShape.new(name: 'InfluxDBv2ParametersQueryQueueSizeInteger')
49
+ Integer = Shapes::IntegerShape.new(name: 'Integer')
50
+ InternalServerException = Shapes::StructureShape.new(name: 'InternalServerException')
51
+ ListDbInstancesInput = Shapes::StructureShape.new(name: 'ListDbInstancesInput')
52
+ ListDbInstancesOutput = Shapes::StructureShape.new(name: 'ListDbInstancesOutput')
53
+ ListDbParameterGroupsInput = Shapes::StructureShape.new(name: 'ListDbParameterGroupsInput')
54
+ ListDbParameterGroupsOutput = Shapes::StructureShape.new(name: 'ListDbParameterGroupsOutput')
55
+ ListTagsForResourceRequest = Shapes::StructureShape.new(name: 'ListTagsForResourceRequest')
56
+ ListTagsForResourceResponse = Shapes::StructureShape.new(name: 'ListTagsForResourceResponse')
57
+ LogDeliveryConfiguration = Shapes::StructureShape.new(name: 'LogDeliveryConfiguration')
58
+ LogLevel = Shapes::StringShape.new(name: 'LogLevel')
59
+ MaxResults = Shapes::IntegerShape.new(name: 'MaxResults')
60
+ NextToken = Shapes::StringShape.new(name: 'NextToken')
61
+ Organization = Shapes::StringShape.new(name: 'Organization')
62
+ Parameters = Shapes::UnionShape.new(name: 'Parameters')
63
+ Password = Shapes::StringShape.new(name: 'Password')
64
+ RequestTagMap = Shapes::MapShape.new(name: 'RequestTagMap')
65
+ ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
66
+ ResponseTagMap = Shapes::MapShape.new(name: 'ResponseTagMap')
67
+ S3Configuration = Shapes::StructureShape.new(name: 'S3Configuration')
68
+ S3ConfigurationBucketNameString = Shapes::StringShape.new(name: 'S3ConfigurationBucketNameString')
69
+ ServiceQuotaExceededException = Shapes::StructureShape.new(name: 'ServiceQuotaExceededException')
70
+ Status = Shapes::StringShape.new(name: 'Status')
71
+ String = Shapes::StringShape.new(name: 'String')
72
+ TagKey = Shapes::StringShape.new(name: 'TagKey')
73
+ TagKeys = Shapes::ListShape.new(name: 'TagKeys')
74
+ TagResourceRequest = Shapes::StructureShape.new(name: 'TagResourceRequest')
75
+ TagValue = Shapes::StringShape.new(name: 'TagValue')
76
+ ThrottlingException = Shapes::StructureShape.new(name: 'ThrottlingException')
77
+ TracingType = Shapes::StringShape.new(name: 'TracingType')
78
+ UntagResourceRequest = Shapes::StructureShape.new(name: 'UntagResourceRequest')
79
+ UpdateDbInstanceInput = Shapes::StructureShape.new(name: 'UpdateDbInstanceInput')
80
+ UpdateDbInstanceOutput = Shapes::StructureShape.new(name: 'UpdateDbInstanceOutput')
81
+ Username = Shapes::StringShape.new(name: 'Username')
82
+ ValidationException = Shapes::StructureShape.new(name: 'ValidationException')
83
+ ValidationExceptionReason = Shapes::StringShape.new(name: 'ValidationExceptionReason')
84
+ VpcSecurityGroupId = Shapes::StringShape.new(name: 'VpcSecurityGroupId')
85
+ VpcSecurityGroupIdList = Shapes::ListShape.new(name: 'VpcSecurityGroupIdList')
86
+ VpcSubnetId = Shapes::StringShape.new(name: 'VpcSubnetId')
87
+ VpcSubnetIdList = Shapes::ListShape.new(name: 'VpcSubnetIdList')
88
+
89
+ AccessDeniedException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
90
+ AccessDeniedException.struct_class = Types::AccessDeniedException
91
+
92
+ ConflictException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
93
+ ConflictException.add_member(:resource_id, Shapes::ShapeRef.new(shape: String, required: true, location_name: "resourceId"))
94
+ ConflictException.add_member(:resource_type, Shapes::ShapeRef.new(shape: String, required: true, location_name: "resourceType"))
95
+ ConflictException.struct_class = Types::ConflictException
96
+
97
+ CreateDbInstanceInput.add_member(:name, Shapes::ShapeRef.new(shape: DbInstanceName, required: true, location_name: "name"))
98
+ CreateDbInstanceInput.add_member(:username, Shapes::ShapeRef.new(shape: Username, location_name: "username"))
99
+ CreateDbInstanceInput.add_member(:password, Shapes::ShapeRef.new(shape: Password, required: true, location_name: "password"))
100
+ CreateDbInstanceInput.add_member(:organization, Shapes::ShapeRef.new(shape: Organization, location_name: "organization"))
101
+ CreateDbInstanceInput.add_member(:bucket, Shapes::ShapeRef.new(shape: Bucket, location_name: "bucket"))
102
+ CreateDbInstanceInput.add_member(:db_instance_type, Shapes::ShapeRef.new(shape: DbInstanceType, required: true, location_name: "dbInstanceType"))
103
+ CreateDbInstanceInput.add_member(:vpc_subnet_ids, Shapes::ShapeRef.new(shape: VpcSubnetIdList, required: true, location_name: "vpcSubnetIds"))
104
+ CreateDbInstanceInput.add_member(:vpc_security_group_ids, Shapes::ShapeRef.new(shape: VpcSecurityGroupIdList, required: true, location_name: "vpcSecurityGroupIds"))
105
+ CreateDbInstanceInput.add_member(:publicly_accessible, Shapes::ShapeRef.new(shape: Boolean, location_name: "publiclyAccessible"))
106
+ CreateDbInstanceInput.add_member(:db_storage_type, Shapes::ShapeRef.new(shape: DbStorageType, location_name: "dbStorageType"))
107
+ CreateDbInstanceInput.add_member(:allocated_storage, Shapes::ShapeRef.new(shape: AllocatedStorage, required: true, location_name: "allocatedStorage"))
108
+ CreateDbInstanceInput.add_member(:db_parameter_group_identifier, Shapes::ShapeRef.new(shape: DbParameterGroupIdentifier, location_name: "dbParameterGroupIdentifier"))
109
+ CreateDbInstanceInput.add_member(:deployment_type, Shapes::ShapeRef.new(shape: DeploymentType, location_name: "deploymentType"))
110
+ CreateDbInstanceInput.add_member(:log_delivery_configuration, Shapes::ShapeRef.new(shape: LogDeliveryConfiguration, location_name: "logDeliveryConfiguration"))
111
+ CreateDbInstanceInput.add_member(:tags, Shapes::ShapeRef.new(shape: RequestTagMap, location_name: "tags"))
112
+ CreateDbInstanceInput.struct_class = Types::CreateDbInstanceInput
113
+
114
+ CreateDbInstanceOutput.add_member(:id, Shapes::ShapeRef.new(shape: DbInstanceId, required: true, location_name: "id"))
115
+ CreateDbInstanceOutput.add_member(:name, Shapes::ShapeRef.new(shape: DbInstanceName, required: true, location_name: "name"))
116
+ CreateDbInstanceOutput.add_member(:arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "arn"))
117
+ CreateDbInstanceOutput.add_member(:status, Shapes::ShapeRef.new(shape: Status, location_name: "status"))
118
+ CreateDbInstanceOutput.add_member(:endpoint, Shapes::ShapeRef.new(shape: String, location_name: "endpoint"))
119
+ CreateDbInstanceOutput.add_member(:db_instance_type, Shapes::ShapeRef.new(shape: DbInstanceType, location_name: "dbInstanceType"))
120
+ CreateDbInstanceOutput.add_member(:db_storage_type, Shapes::ShapeRef.new(shape: DbStorageType, location_name: "dbStorageType"))
121
+ CreateDbInstanceOutput.add_member(:allocated_storage, Shapes::ShapeRef.new(shape: AllocatedStorage, location_name: "allocatedStorage"))
122
+ CreateDbInstanceOutput.add_member(:deployment_type, Shapes::ShapeRef.new(shape: DeploymentType, location_name: "deploymentType"))
123
+ CreateDbInstanceOutput.add_member(:vpc_subnet_ids, Shapes::ShapeRef.new(shape: VpcSubnetIdList, required: true, location_name: "vpcSubnetIds"))
124
+ CreateDbInstanceOutput.add_member(:publicly_accessible, Shapes::ShapeRef.new(shape: Boolean, location_name: "publiclyAccessible"))
125
+ CreateDbInstanceOutput.add_member(:vpc_security_group_ids, Shapes::ShapeRef.new(shape: VpcSecurityGroupIdList, location_name: "vpcSecurityGroupIds"))
126
+ CreateDbInstanceOutput.add_member(:db_parameter_group_identifier, Shapes::ShapeRef.new(shape: DbParameterGroupIdentifier, location_name: "dbParameterGroupIdentifier"))
127
+ CreateDbInstanceOutput.add_member(:availability_zone, Shapes::ShapeRef.new(shape: String, location_name: "availabilityZone"))
128
+ CreateDbInstanceOutput.add_member(:secondary_availability_zone, Shapes::ShapeRef.new(shape: String, location_name: "secondaryAvailabilityZone"))
129
+ CreateDbInstanceOutput.add_member(:log_delivery_configuration, Shapes::ShapeRef.new(shape: LogDeliveryConfiguration, location_name: "logDeliveryConfiguration"))
130
+ CreateDbInstanceOutput.add_member(:influx_auth_parameters_secret_arn, Shapes::ShapeRef.new(shape: String, location_name: "influxAuthParametersSecretArn"))
131
+ CreateDbInstanceOutput.struct_class = Types::CreateDbInstanceOutput
132
+
133
+ CreateDbParameterGroupInput.add_member(:name, Shapes::ShapeRef.new(shape: DbParameterGroupName, required: true, location_name: "name"))
134
+ CreateDbParameterGroupInput.add_member(:description, Shapes::ShapeRef.new(shape: CreateDbParameterGroupInputDescriptionString, location_name: "description"))
135
+ CreateDbParameterGroupInput.add_member(:parameters, Shapes::ShapeRef.new(shape: Parameters, location_name: "parameters"))
136
+ CreateDbParameterGroupInput.add_member(:tags, Shapes::ShapeRef.new(shape: RequestTagMap, location_name: "tags"))
137
+ CreateDbParameterGroupInput.struct_class = Types::CreateDbParameterGroupInput
138
+
139
+ CreateDbParameterGroupOutput.add_member(:id, Shapes::ShapeRef.new(shape: DbParameterGroupId, required: true, location_name: "id"))
140
+ CreateDbParameterGroupOutput.add_member(:name, Shapes::ShapeRef.new(shape: DbParameterGroupName, required: true, location_name: "name"))
141
+ CreateDbParameterGroupOutput.add_member(:arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "arn"))
142
+ CreateDbParameterGroupOutput.add_member(:description, Shapes::ShapeRef.new(shape: String, location_name: "description"))
143
+ CreateDbParameterGroupOutput.add_member(:parameters, Shapes::ShapeRef.new(shape: Parameters, location_name: "parameters"))
144
+ CreateDbParameterGroupOutput.struct_class = Types::CreateDbParameterGroupOutput
145
+
146
+ DbInstanceSummary.add_member(:id, Shapes::ShapeRef.new(shape: DbInstanceId, required: true, location_name: "id"))
147
+ DbInstanceSummary.add_member(:name, Shapes::ShapeRef.new(shape: DbInstanceName, required: true, location_name: "name"))
148
+ DbInstanceSummary.add_member(:arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "arn"))
149
+ DbInstanceSummary.add_member(:status, Shapes::ShapeRef.new(shape: Status, location_name: "status"))
150
+ DbInstanceSummary.add_member(:endpoint, Shapes::ShapeRef.new(shape: String, location_name: "endpoint"))
151
+ DbInstanceSummary.add_member(:db_instance_type, Shapes::ShapeRef.new(shape: DbInstanceType, location_name: "dbInstanceType"))
152
+ DbInstanceSummary.add_member(:db_storage_type, Shapes::ShapeRef.new(shape: DbStorageType, location_name: "dbStorageType"))
153
+ DbInstanceSummary.add_member(:allocated_storage, Shapes::ShapeRef.new(shape: AllocatedStorage, location_name: "allocatedStorage"))
154
+ DbInstanceSummary.add_member(:deployment_type, Shapes::ShapeRef.new(shape: DeploymentType, location_name: "deploymentType"))
155
+ DbInstanceSummary.struct_class = Types::DbInstanceSummary
156
+
157
+ DbInstanceSummaryList.member = Shapes::ShapeRef.new(shape: DbInstanceSummary)
158
+
159
+ DbParameterGroupSummary.add_member(:id, Shapes::ShapeRef.new(shape: DbParameterGroupId, required: true, location_name: "id"))
160
+ DbParameterGroupSummary.add_member(:name, Shapes::ShapeRef.new(shape: DbParameterGroupName, required: true, location_name: "name"))
161
+ DbParameterGroupSummary.add_member(:arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "arn"))
162
+ DbParameterGroupSummary.add_member(:description, Shapes::ShapeRef.new(shape: String, location_name: "description"))
163
+ DbParameterGroupSummary.struct_class = Types::DbParameterGroupSummary
164
+
165
+ DbParameterGroupSummaryList.member = Shapes::ShapeRef.new(shape: DbParameterGroupSummary)
166
+
167
+ DeleteDbInstanceInput.add_member(:identifier, Shapes::ShapeRef.new(shape: DbInstanceIdentifier, required: true, location_name: "identifier"))
168
+ DeleteDbInstanceInput.struct_class = Types::DeleteDbInstanceInput
169
+
170
+ DeleteDbInstanceOutput.add_member(:id, Shapes::ShapeRef.new(shape: DbInstanceId, required: true, location_name: "id"))
171
+ DeleteDbInstanceOutput.add_member(:name, Shapes::ShapeRef.new(shape: DbInstanceName, required: true, location_name: "name"))
172
+ DeleteDbInstanceOutput.add_member(:arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "arn"))
173
+ DeleteDbInstanceOutput.add_member(:status, Shapes::ShapeRef.new(shape: Status, location_name: "status"))
174
+ DeleteDbInstanceOutput.add_member(:endpoint, Shapes::ShapeRef.new(shape: String, location_name: "endpoint"))
175
+ DeleteDbInstanceOutput.add_member(:db_instance_type, Shapes::ShapeRef.new(shape: DbInstanceType, location_name: "dbInstanceType"))
176
+ DeleteDbInstanceOutput.add_member(:db_storage_type, Shapes::ShapeRef.new(shape: DbStorageType, location_name: "dbStorageType"))
177
+ DeleteDbInstanceOutput.add_member(:allocated_storage, Shapes::ShapeRef.new(shape: AllocatedStorage, location_name: "allocatedStorage"))
178
+ DeleteDbInstanceOutput.add_member(:deployment_type, Shapes::ShapeRef.new(shape: DeploymentType, location_name: "deploymentType"))
179
+ DeleteDbInstanceOutput.add_member(:vpc_subnet_ids, Shapes::ShapeRef.new(shape: VpcSubnetIdList, required: true, location_name: "vpcSubnetIds"))
180
+ DeleteDbInstanceOutput.add_member(:publicly_accessible, Shapes::ShapeRef.new(shape: Boolean, location_name: "publiclyAccessible"))
181
+ DeleteDbInstanceOutput.add_member(:vpc_security_group_ids, Shapes::ShapeRef.new(shape: VpcSecurityGroupIdList, location_name: "vpcSecurityGroupIds"))
182
+ DeleteDbInstanceOutput.add_member(:db_parameter_group_identifier, Shapes::ShapeRef.new(shape: DbParameterGroupIdentifier, location_name: "dbParameterGroupIdentifier"))
183
+ DeleteDbInstanceOutput.add_member(:availability_zone, Shapes::ShapeRef.new(shape: String, location_name: "availabilityZone"))
184
+ DeleteDbInstanceOutput.add_member(:secondary_availability_zone, Shapes::ShapeRef.new(shape: String, location_name: "secondaryAvailabilityZone"))
185
+ DeleteDbInstanceOutput.add_member(:log_delivery_configuration, Shapes::ShapeRef.new(shape: LogDeliveryConfiguration, location_name: "logDeliveryConfiguration"))
186
+ DeleteDbInstanceOutput.add_member(:influx_auth_parameters_secret_arn, Shapes::ShapeRef.new(shape: String, location_name: "influxAuthParametersSecretArn"))
187
+ DeleteDbInstanceOutput.struct_class = Types::DeleteDbInstanceOutput
188
+
189
+ GetDbInstanceInput.add_member(:identifier, Shapes::ShapeRef.new(shape: DbInstanceIdentifier, required: true, location_name: "identifier"))
190
+ GetDbInstanceInput.struct_class = Types::GetDbInstanceInput
191
+
192
+ GetDbInstanceOutput.add_member(:id, Shapes::ShapeRef.new(shape: DbInstanceId, required: true, location_name: "id"))
193
+ GetDbInstanceOutput.add_member(:name, Shapes::ShapeRef.new(shape: DbInstanceName, required: true, location_name: "name"))
194
+ GetDbInstanceOutput.add_member(:arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "arn"))
195
+ GetDbInstanceOutput.add_member(:status, Shapes::ShapeRef.new(shape: Status, location_name: "status"))
196
+ GetDbInstanceOutput.add_member(:endpoint, Shapes::ShapeRef.new(shape: String, location_name: "endpoint"))
197
+ GetDbInstanceOutput.add_member(:db_instance_type, Shapes::ShapeRef.new(shape: DbInstanceType, location_name: "dbInstanceType"))
198
+ GetDbInstanceOutput.add_member(:db_storage_type, Shapes::ShapeRef.new(shape: DbStorageType, location_name: "dbStorageType"))
199
+ GetDbInstanceOutput.add_member(:allocated_storage, Shapes::ShapeRef.new(shape: AllocatedStorage, location_name: "allocatedStorage"))
200
+ GetDbInstanceOutput.add_member(:deployment_type, Shapes::ShapeRef.new(shape: DeploymentType, location_name: "deploymentType"))
201
+ GetDbInstanceOutput.add_member(:vpc_subnet_ids, Shapes::ShapeRef.new(shape: VpcSubnetIdList, required: true, location_name: "vpcSubnetIds"))
202
+ GetDbInstanceOutput.add_member(:publicly_accessible, Shapes::ShapeRef.new(shape: Boolean, location_name: "publiclyAccessible"))
203
+ GetDbInstanceOutput.add_member(:vpc_security_group_ids, Shapes::ShapeRef.new(shape: VpcSecurityGroupIdList, location_name: "vpcSecurityGroupIds"))
204
+ GetDbInstanceOutput.add_member(:db_parameter_group_identifier, Shapes::ShapeRef.new(shape: DbParameterGroupIdentifier, location_name: "dbParameterGroupIdentifier"))
205
+ GetDbInstanceOutput.add_member(:availability_zone, Shapes::ShapeRef.new(shape: String, location_name: "availabilityZone"))
206
+ GetDbInstanceOutput.add_member(:secondary_availability_zone, Shapes::ShapeRef.new(shape: String, location_name: "secondaryAvailabilityZone"))
207
+ GetDbInstanceOutput.add_member(:log_delivery_configuration, Shapes::ShapeRef.new(shape: LogDeliveryConfiguration, location_name: "logDeliveryConfiguration"))
208
+ GetDbInstanceOutput.add_member(:influx_auth_parameters_secret_arn, Shapes::ShapeRef.new(shape: String, location_name: "influxAuthParametersSecretArn"))
209
+ GetDbInstanceOutput.struct_class = Types::GetDbInstanceOutput
210
+
211
+ GetDbParameterGroupInput.add_member(:identifier, Shapes::ShapeRef.new(shape: DbParameterGroupIdentifier, required: true, location_name: "identifier"))
212
+ GetDbParameterGroupInput.struct_class = Types::GetDbParameterGroupInput
213
+
214
+ GetDbParameterGroupOutput.add_member(:id, Shapes::ShapeRef.new(shape: DbParameterGroupId, required: true, location_name: "id"))
215
+ GetDbParameterGroupOutput.add_member(:name, Shapes::ShapeRef.new(shape: DbParameterGroupName, required: true, location_name: "name"))
216
+ GetDbParameterGroupOutput.add_member(:arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "arn"))
217
+ GetDbParameterGroupOutput.add_member(:description, Shapes::ShapeRef.new(shape: String, location_name: "description"))
218
+ GetDbParameterGroupOutput.add_member(:parameters, Shapes::ShapeRef.new(shape: Parameters, location_name: "parameters"))
219
+ GetDbParameterGroupOutput.struct_class = Types::GetDbParameterGroupOutput
220
+
221
+ InfluxDBv2Parameters.add_member(:flux_log_enabled, Shapes::ShapeRef.new(shape: Boolean, location_name: "fluxLogEnabled"))
222
+ InfluxDBv2Parameters.add_member(:log_level, Shapes::ShapeRef.new(shape: LogLevel, location_name: "logLevel"))
223
+ InfluxDBv2Parameters.add_member(:no_tasks, Shapes::ShapeRef.new(shape: Boolean, location_name: "noTasks"))
224
+ InfluxDBv2Parameters.add_member(:query_concurrency, Shapes::ShapeRef.new(shape: InfluxDBv2ParametersQueryConcurrencyInteger, location_name: "queryConcurrency"))
225
+ InfluxDBv2Parameters.add_member(:query_queue_size, Shapes::ShapeRef.new(shape: InfluxDBv2ParametersQueryQueueSizeInteger, location_name: "queryQueueSize"))
226
+ InfluxDBv2Parameters.add_member(:tracing_type, Shapes::ShapeRef.new(shape: TracingType, location_name: "tracingType"))
227
+ InfluxDBv2Parameters.add_member(:metrics_disabled, Shapes::ShapeRef.new(shape: Boolean, location_name: "metricsDisabled"))
228
+ InfluxDBv2Parameters.struct_class = Types::InfluxDBv2Parameters
229
+
230
+ InternalServerException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
231
+ InternalServerException.struct_class = Types::InternalServerException
232
+
233
+ ListDbInstancesInput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
234
+ ListDbInstancesInput.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "maxResults"))
235
+ ListDbInstancesInput.struct_class = Types::ListDbInstancesInput
236
+
237
+ ListDbInstancesOutput.add_member(:items, Shapes::ShapeRef.new(shape: DbInstanceSummaryList, required: true, location_name: "items"))
238
+ ListDbInstancesOutput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
239
+ ListDbInstancesOutput.struct_class = Types::ListDbInstancesOutput
240
+
241
+ ListDbParameterGroupsInput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
242
+ ListDbParameterGroupsInput.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "maxResults"))
243
+ ListDbParameterGroupsInput.struct_class = Types::ListDbParameterGroupsInput
244
+
245
+ ListDbParameterGroupsOutput.add_member(:items, Shapes::ShapeRef.new(shape: DbParameterGroupSummaryList, required: true, location_name: "items"))
246
+ ListDbParameterGroupsOutput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
247
+ ListDbParameterGroupsOutput.struct_class = Types::ListDbParameterGroupsOutput
248
+
249
+ ListTagsForResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "resourceArn"))
250
+ ListTagsForResourceRequest.struct_class = Types::ListTagsForResourceRequest
251
+
252
+ ListTagsForResourceResponse.add_member(:tags, Shapes::ShapeRef.new(shape: ResponseTagMap, location_name: "tags"))
253
+ ListTagsForResourceResponse.struct_class = Types::ListTagsForResourceResponse
254
+
255
+ LogDeliveryConfiguration.add_member(:s3_configuration, Shapes::ShapeRef.new(shape: S3Configuration, required: true, location_name: "s3Configuration"))
256
+ LogDeliveryConfiguration.struct_class = Types::LogDeliveryConfiguration
257
+
258
+ Parameters.add_member(:influx_d_bv_2, Shapes::ShapeRef.new(shape: InfluxDBv2Parameters, location_name: "InfluxDBv2"))
259
+ Parameters.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
260
+ Parameters.add_member_subclass(:influx_d_bv_2, Types::Parameters::InfluxDBv2)
261
+ Parameters.add_member_subclass(:unknown, Types::Parameters::Unknown)
262
+ Parameters.struct_class = Types::Parameters
263
+
264
+ RequestTagMap.key = Shapes::ShapeRef.new(shape: TagKey)
265
+ RequestTagMap.value = Shapes::ShapeRef.new(shape: TagValue)
266
+
267
+ ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
268
+ ResourceNotFoundException.add_member(:resource_id, Shapes::ShapeRef.new(shape: String, required: true, location_name: "resourceId"))
269
+ ResourceNotFoundException.add_member(:resource_type, Shapes::ShapeRef.new(shape: String, required: true, location_name: "resourceType"))
270
+ ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
271
+
272
+ ResponseTagMap.key = Shapes::ShapeRef.new(shape: TagKey)
273
+ ResponseTagMap.value = Shapes::ShapeRef.new(shape: TagValue)
274
+
275
+ S3Configuration.add_member(:bucket_name, Shapes::ShapeRef.new(shape: S3ConfigurationBucketNameString, required: true, location_name: "bucketName"))
276
+ S3Configuration.add_member(:enabled, Shapes::ShapeRef.new(shape: Boolean, required: true, location_name: "enabled"))
277
+ S3Configuration.struct_class = Types::S3Configuration
278
+
279
+ ServiceQuotaExceededException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
280
+ ServiceQuotaExceededException.struct_class = Types::ServiceQuotaExceededException
281
+
282
+ TagKeys.member = Shapes::ShapeRef.new(shape: TagKey)
283
+
284
+ TagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "resourceArn"))
285
+ TagResourceRequest.add_member(:tags, Shapes::ShapeRef.new(shape: RequestTagMap, required: true, location_name: "tags"))
286
+ TagResourceRequest.struct_class = Types::TagResourceRequest
287
+
288
+ ThrottlingException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
289
+ ThrottlingException.add_member(:retry_after_seconds, Shapes::ShapeRef.new(shape: Integer, location_name: "retryAfterSeconds"))
290
+ ThrottlingException.struct_class = Types::ThrottlingException
291
+
292
+ UntagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "resourceArn"))
293
+ UntagResourceRequest.add_member(:tag_keys, Shapes::ShapeRef.new(shape: TagKeys, required: true, location_name: "tagKeys"))
294
+ UntagResourceRequest.struct_class = Types::UntagResourceRequest
295
+
296
+ UpdateDbInstanceInput.add_member(:identifier, Shapes::ShapeRef.new(shape: DbInstanceIdentifier, required: true, location_name: "identifier"))
297
+ UpdateDbInstanceInput.add_member(:log_delivery_configuration, Shapes::ShapeRef.new(shape: LogDeliveryConfiguration, location_name: "logDeliveryConfiguration"))
298
+ UpdateDbInstanceInput.add_member(:db_parameter_group_identifier, Shapes::ShapeRef.new(shape: DbParameterGroupIdentifier, location_name: "dbParameterGroupIdentifier"))
299
+ UpdateDbInstanceInput.struct_class = Types::UpdateDbInstanceInput
300
+
301
+ UpdateDbInstanceOutput.add_member(:id, Shapes::ShapeRef.new(shape: DbInstanceId, required: true, location_name: "id"))
302
+ UpdateDbInstanceOutput.add_member(:name, Shapes::ShapeRef.new(shape: DbInstanceName, required: true, location_name: "name"))
303
+ UpdateDbInstanceOutput.add_member(:arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "arn"))
304
+ UpdateDbInstanceOutput.add_member(:status, Shapes::ShapeRef.new(shape: Status, location_name: "status"))
305
+ UpdateDbInstanceOutput.add_member(:endpoint, Shapes::ShapeRef.new(shape: String, location_name: "endpoint"))
306
+ UpdateDbInstanceOutput.add_member(:db_instance_type, Shapes::ShapeRef.new(shape: DbInstanceType, location_name: "dbInstanceType"))
307
+ UpdateDbInstanceOutput.add_member(:db_storage_type, Shapes::ShapeRef.new(shape: DbStorageType, location_name: "dbStorageType"))
308
+ UpdateDbInstanceOutput.add_member(:allocated_storage, Shapes::ShapeRef.new(shape: AllocatedStorage, location_name: "allocatedStorage"))
309
+ UpdateDbInstanceOutput.add_member(:deployment_type, Shapes::ShapeRef.new(shape: DeploymentType, location_name: "deploymentType"))
310
+ UpdateDbInstanceOutput.add_member(:vpc_subnet_ids, Shapes::ShapeRef.new(shape: VpcSubnetIdList, required: true, location_name: "vpcSubnetIds"))
311
+ UpdateDbInstanceOutput.add_member(:publicly_accessible, Shapes::ShapeRef.new(shape: Boolean, location_name: "publiclyAccessible"))
312
+ UpdateDbInstanceOutput.add_member(:vpc_security_group_ids, Shapes::ShapeRef.new(shape: VpcSecurityGroupIdList, location_name: "vpcSecurityGroupIds"))
313
+ UpdateDbInstanceOutput.add_member(:db_parameter_group_identifier, Shapes::ShapeRef.new(shape: DbParameterGroupIdentifier, location_name: "dbParameterGroupIdentifier"))
314
+ UpdateDbInstanceOutput.add_member(:availability_zone, Shapes::ShapeRef.new(shape: String, location_name: "availabilityZone"))
315
+ UpdateDbInstanceOutput.add_member(:secondary_availability_zone, Shapes::ShapeRef.new(shape: String, location_name: "secondaryAvailabilityZone"))
316
+ UpdateDbInstanceOutput.add_member(:log_delivery_configuration, Shapes::ShapeRef.new(shape: LogDeliveryConfiguration, location_name: "logDeliveryConfiguration"))
317
+ UpdateDbInstanceOutput.add_member(:influx_auth_parameters_secret_arn, Shapes::ShapeRef.new(shape: String, location_name: "influxAuthParametersSecretArn"))
318
+ UpdateDbInstanceOutput.struct_class = Types::UpdateDbInstanceOutput
319
+
320
+ ValidationException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
321
+ ValidationException.add_member(:reason, Shapes::ShapeRef.new(shape: ValidationExceptionReason, required: true, location_name: "reason"))
322
+ ValidationException.struct_class = Types::ValidationException
323
+
324
+ VpcSecurityGroupIdList.member = Shapes::ShapeRef.new(shape: VpcSecurityGroupId)
325
+
326
+ VpcSubnetIdList.member = Shapes::ShapeRef.new(shape: VpcSubnetId)
327
+
328
+
329
+ # @api private
330
+ API = Seahorse::Model::Api.new.tap do |api|
331
+
332
+ api.version = "2023-01-27"
333
+
334
+ api.metadata = {
335
+ "apiVersion" => "2023-01-27",
336
+ "endpointPrefix" => "timestream-influxdb",
337
+ "jsonVersion" => "1.0",
338
+ "protocol" => "json",
339
+ "ripServiceName" => "timestream-influxdb",
340
+ "serviceAbbreviation" => "Timestream InfluxDB",
341
+ "serviceFullName" => "Timestream InfluxDB",
342
+ "serviceId" => "Timestream InfluxDB",
343
+ "signatureVersion" => "v4",
344
+ "signingName" => "timestream-influxdb",
345
+ "targetPrefix" => "AmazonTimestreamInfluxDB",
346
+ "uid" => "timestream-influxdb-2023-01-27",
347
+ }
348
+
349
+ api.add_operation(:create_db_instance, Seahorse::Model::Operation.new.tap do |o|
350
+ o.name = "CreateDbInstance"
351
+ o.http_method = "POST"
352
+ o.http_request_uri = "/"
353
+ o.input = Shapes::ShapeRef.new(shape: CreateDbInstanceInput)
354
+ o.output = Shapes::ShapeRef.new(shape: CreateDbInstanceOutput)
355
+ o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
356
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
357
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
358
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
359
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
360
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
361
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
362
+ end)
363
+
364
+ api.add_operation(:create_db_parameter_group, Seahorse::Model::Operation.new.tap do |o|
365
+ o.name = "CreateDbParameterGroup"
366
+ o.http_method = "POST"
367
+ o.http_request_uri = "/"
368
+ o.input = Shapes::ShapeRef.new(shape: CreateDbParameterGroupInput)
369
+ o.output = Shapes::ShapeRef.new(shape: CreateDbParameterGroupOutput)
370
+ o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
371
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
372
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
373
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
374
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
375
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
376
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
377
+ end)
378
+
379
+ api.add_operation(:delete_db_instance, Seahorse::Model::Operation.new.tap do |o|
380
+ o.name = "DeleteDbInstance"
381
+ o.http_method = "POST"
382
+ o.http_request_uri = "/"
383
+ o.input = Shapes::ShapeRef.new(shape: DeleteDbInstanceInput)
384
+ o.output = Shapes::ShapeRef.new(shape: DeleteDbInstanceOutput)
385
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
386
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
387
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
388
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
389
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
390
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
391
+ end)
392
+
393
+ api.add_operation(:get_db_instance, Seahorse::Model::Operation.new.tap do |o|
394
+ o.name = "GetDbInstance"
395
+ o.http_method = "POST"
396
+ o.http_request_uri = "/"
397
+ o.input = Shapes::ShapeRef.new(shape: GetDbInstanceInput)
398
+ o.output = Shapes::ShapeRef.new(shape: GetDbInstanceOutput)
399
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
400
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
401
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
402
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
403
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
404
+ end)
405
+
406
+ api.add_operation(:get_db_parameter_group, Seahorse::Model::Operation.new.tap do |o|
407
+ o.name = "GetDbParameterGroup"
408
+ o.http_method = "POST"
409
+ o.http_request_uri = "/"
410
+ o.input = Shapes::ShapeRef.new(shape: GetDbParameterGroupInput)
411
+ o.output = Shapes::ShapeRef.new(shape: GetDbParameterGroupOutput)
412
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
413
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
414
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
415
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
416
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
417
+ end)
418
+
419
+ api.add_operation(:list_db_instances, Seahorse::Model::Operation.new.tap do |o|
420
+ o.name = "ListDbInstances"
421
+ o.http_method = "POST"
422
+ o.http_request_uri = "/"
423
+ o.input = Shapes::ShapeRef.new(shape: ListDbInstancesInput)
424
+ o.output = Shapes::ShapeRef.new(shape: ListDbInstancesOutput)
425
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
426
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
427
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
428
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
429
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
430
+ o[:pager] = Aws::Pager.new(
431
+ limit_key: "max_results",
432
+ tokens: {
433
+ "next_token" => "next_token"
434
+ }
435
+ )
436
+ end)
437
+
438
+ api.add_operation(:list_db_parameter_groups, Seahorse::Model::Operation.new.tap do |o|
439
+ o.name = "ListDbParameterGroups"
440
+ o.http_method = "POST"
441
+ o.http_request_uri = "/"
442
+ o.input = Shapes::ShapeRef.new(shape: ListDbParameterGroupsInput)
443
+ o.output = Shapes::ShapeRef.new(shape: ListDbParameterGroupsOutput)
444
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
445
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
446
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
447
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
448
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
449
+ o[:pager] = Aws::Pager.new(
450
+ limit_key: "max_results",
451
+ tokens: {
452
+ "next_token" => "next_token"
453
+ }
454
+ )
455
+ end)
456
+
457
+ api.add_operation(:list_tags_for_resource, Seahorse::Model::Operation.new.tap do |o|
458
+ o.name = "ListTagsForResource"
459
+ o.http_method = "POST"
460
+ o.http_request_uri = "/"
461
+ o.input = Shapes::ShapeRef.new(shape: ListTagsForResourceRequest)
462
+ o.output = Shapes::ShapeRef.new(shape: ListTagsForResourceResponse)
463
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
464
+ end)
465
+
466
+ api.add_operation(:tag_resource, Seahorse::Model::Operation.new.tap do |o|
467
+ o.name = "TagResource"
468
+ o.http_method = "POST"
469
+ o.http_request_uri = "/"
470
+ o.input = Shapes::ShapeRef.new(shape: TagResourceRequest)
471
+ o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
472
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
473
+ end)
474
+
475
+ api.add_operation(:untag_resource, Seahorse::Model::Operation.new.tap do |o|
476
+ o.name = "UntagResource"
477
+ o.http_method = "POST"
478
+ o.http_request_uri = "/"
479
+ o.input = Shapes::ShapeRef.new(shape: UntagResourceRequest)
480
+ o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
481
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
482
+ end)
483
+
484
+ api.add_operation(:update_db_instance, Seahorse::Model::Operation.new.tap do |o|
485
+ o.name = "UpdateDbInstance"
486
+ o.http_method = "POST"
487
+ o.http_request_uri = "/"
488
+ o.input = Shapes::ShapeRef.new(shape: UpdateDbInstanceInput)
489
+ o.output = Shapes::ShapeRef.new(shape: UpdateDbInstanceOutput)
490
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
491
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
492
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
493
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
494
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
495
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
496
+ end)
497
+ end
498
+
499
+ end
500
+ end
File without changes
@@ -0,0 +1,66 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+ module Aws::TimestreamInfluxDB
11
+ # Endpoint parameters used to influence endpoints per request.
12
+ #
13
+ # @!attribute region
14
+ # The AWS region used to dispatch the request.
15
+ #
16
+ # @return [String]
17
+ #
18
+ # @!attribute use_dual_stack
19
+ # When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.
20
+ #
21
+ # @return [Boolean]
22
+ #
23
+ # @!attribute use_fips
24
+ # When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.
25
+ #
26
+ # @return [Boolean]
27
+ #
28
+ # @!attribute endpoint
29
+ # Override the endpoint used to send this request
30
+ #
31
+ # @return [String]
32
+ #
33
+ EndpointParameters = Struct.new(
34
+ :region,
35
+ :use_dual_stack,
36
+ :use_fips,
37
+ :endpoint,
38
+ ) do
39
+ include Aws::Structure
40
+
41
+ # @api private
42
+ class << self
43
+ PARAM_MAP = {
44
+ 'Region' => :region,
45
+ 'UseDualStack' => :use_dual_stack,
46
+ 'UseFIPS' => :use_fips,
47
+ 'Endpoint' => :endpoint,
48
+ }.freeze
49
+ end
50
+
51
+ def initialize(options = {})
52
+ self[:region] = options[:region]
53
+ self[:use_dual_stack] = options[:use_dual_stack]
54
+ self[:use_dual_stack] = false if self[:use_dual_stack].nil?
55
+ if self[:use_dual_stack].nil?
56
+ raise ArgumentError, "Missing required EndpointParameter: :use_dual_stack"
57
+ end
58
+ self[:use_fips] = options[:use_fips]
59
+ self[:use_fips] = false if self[:use_fips].nil?
60
+ if self[:use_fips].nil?
61
+ raise ArgumentError, "Missing required EndpointParameter: :use_fips"
62
+ end
63
+ self[:endpoint] = options[:endpoint]
64
+ end
65
+ end
66
+ end
@@ -0,0 +1,54 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+ module Aws::TimestreamInfluxDB
11
+ class EndpointProvider
12
+ def resolve_endpoint(parameters)
13
+ region = parameters.region
14
+ use_dual_stack = parameters.use_dual_stack
15
+ use_fips = parameters.use_fips
16
+ endpoint = parameters.endpoint
17
+ if Aws::Endpoints::Matchers.set?(endpoint)
18
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
19
+ raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
20
+ end
21
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
22
+ raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
23
+ end
24
+ return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
25
+ end
26
+ if Aws::Endpoints::Matchers.set?(region)
27
+ if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
28
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
29
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
30
+ return Aws::Endpoints::Endpoint.new(url: "https://timestream-influxdb-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
31
+ end
32
+ raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
33
+ end
34
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
35
+ if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"), true)
36
+ return Aws::Endpoints::Endpoint.new(url: "https://timestream-influxdb-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
37
+ end
38
+ raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
39
+ end
40
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
41
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
42
+ return Aws::Endpoints::Endpoint.new(url: "https://timestream-influxdb.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
43
+ end
44
+ raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
45
+ end
46
+ return Aws::Endpoints::Endpoint.new(url: "https://timestream-influxdb.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
47
+ end
48
+ end
49
+ raise ArgumentError, "Invalid Configuration: Missing Region"
50
+ raise ArgumentError, 'No endpoint could be resolved'
51
+
52
+ end
53
+ end
54
+ end