aws-sdk-managedgrafana 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,546 @@
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::ManagedGrafana
11
+ # @api private
12
+ module ClientApi
13
+
14
+ include Seahorse::Model
15
+
16
+ AccessDeniedException = Shapes::StructureShape.new(name: 'AccessDeniedException')
17
+ AccountAccessType = Shapes::StringShape.new(name: 'AccountAccessType')
18
+ AllowedOrganization = Shapes::StringShape.new(name: 'AllowedOrganization')
19
+ AllowedOrganizations = Shapes::ListShape.new(name: 'AllowedOrganizations')
20
+ AssertionAttribute = Shapes::StringShape.new(name: 'AssertionAttribute')
21
+ AssertionAttributes = Shapes::StructureShape.new(name: 'AssertionAttributes')
22
+ AssociateLicenseRequest = Shapes::StructureShape.new(name: 'AssociateLicenseRequest')
23
+ AssociateLicenseResponse = Shapes::StructureShape.new(name: 'AssociateLicenseResponse')
24
+ AuthenticationDescription = Shapes::StructureShape.new(name: 'AuthenticationDescription')
25
+ AuthenticationProviderTypes = Shapes::StringShape.new(name: 'AuthenticationProviderTypes')
26
+ AuthenticationProviders = Shapes::ListShape.new(name: 'AuthenticationProviders')
27
+ AuthenticationSummary = Shapes::StructureShape.new(name: 'AuthenticationSummary')
28
+ AwsSsoAuthentication = Shapes::StructureShape.new(name: 'AwsSsoAuthentication')
29
+ Boolean = Shapes::BooleanShape.new(name: 'Boolean')
30
+ ClientToken = Shapes::StringShape.new(name: 'ClientToken')
31
+ ConflictException = Shapes::StructureShape.new(name: 'ConflictException')
32
+ CreateWorkspaceRequest = Shapes::StructureShape.new(name: 'CreateWorkspaceRequest')
33
+ CreateWorkspaceResponse = Shapes::StructureShape.new(name: 'CreateWorkspaceResponse')
34
+ DataSourceType = Shapes::StringShape.new(name: 'DataSourceType')
35
+ DataSourceTypesList = Shapes::ListShape.new(name: 'DataSourceTypesList')
36
+ DeleteWorkspaceRequest = Shapes::StructureShape.new(name: 'DeleteWorkspaceRequest')
37
+ DeleteWorkspaceResponse = Shapes::StructureShape.new(name: 'DeleteWorkspaceResponse')
38
+ DescribeWorkspaceAuthenticationRequest = Shapes::StructureShape.new(name: 'DescribeWorkspaceAuthenticationRequest')
39
+ DescribeWorkspaceAuthenticationResponse = Shapes::StructureShape.new(name: 'DescribeWorkspaceAuthenticationResponse')
40
+ DescribeWorkspaceRequest = Shapes::StructureShape.new(name: 'DescribeWorkspaceRequest')
41
+ DescribeWorkspaceResponse = Shapes::StructureShape.new(name: 'DescribeWorkspaceResponse')
42
+ Description = Shapes::StringShape.new(name: 'Description')
43
+ DisassociateLicenseRequest = Shapes::StructureShape.new(name: 'DisassociateLicenseRequest')
44
+ DisassociateLicenseResponse = Shapes::StructureShape.new(name: 'DisassociateLicenseResponse')
45
+ Endpoint = Shapes::StringShape.new(name: 'Endpoint')
46
+ GrafanaVersion = Shapes::StringShape.new(name: 'GrafanaVersion')
47
+ IamRoleArn = Shapes::StringShape.new(name: 'IamRoleArn')
48
+ IdpMetadata = Shapes::UnionShape.new(name: 'IdpMetadata')
49
+ IdpMetadataUrl = Shapes::StringShape.new(name: 'IdpMetadataUrl')
50
+ Integer = Shapes::IntegerShape.new(name: 'Integer')
51
+ InternalServerException = Shapes::StructureShape.new(name: 'InternalServerException')
52
+ LicenseType = Shapes::StringShape.new(name: 'LicenseType')
53
+ ListPermissionsRequest = Shapes::StructureShape.new(name: 'ListPermissionsRequest')
54
+ ListPermissionsRequestMaxResultsInteger = Shapes::IntegerShape.new(name: 'ListPermissionsRequestMaxResultsInteger')
55
+ ListPermissionsResponse = Shapes::StructureShape.new(name: 'ListPermissionsResponse')
56
+ ListWorkspacesRequest = Shapes::StructureShape.new(name: 'ListWorkspacesRequest')
57
+ ListWorkspacesRequestMaxResultsInteger = Shapes::IntegerShape.new(name: 'ListWorkspacesRequestMaxResultsInteger')
58
+ ListWorkspacesResponse = Shapes::StructureShape.new(name: 'ListWorkspacesResponse')
59
+ LoginValidityDuration = Shapes::IntegerShape.new(name: 'LoginValidityDuration')
60
+ NotificationDestinationType = Shapes::StringShape.new(name: 'NotificationDestinationType')
61
+ NotificationDestinationsList = Shapes::ListShape.new(name: 'NotificationDestinationsList')
62
+ OrganizationRoleName = Shapes::StringShape.new(name: 'OrganizationRoleName')
63
+ OrganizationalUnit = Shapes::StringShape.new(name: 'OrganizationalUnit')
64
+ OrganizationalUnitList = Shapes::ListShape.new(name: 'OrganizationalUnitList')
65
+ PaginationToken = Shapes::StringShape.new(name: 'PaginationToken')
66
+ PermissionEntry = Shapes::StructureShape.new(name: 'PermissionEntry')
67
+ PermissionEntryList = Shapes::ListShape.new(name: 'PermissionEntryList')
68
+ PermissionType = Shapes::StringShape.new(name: 'PermissionType')
69
+ ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
70
+ Role = Shapes::StringShape.new(name: 'Role')
71
+ RoleValue = Shapes::StringShape.new(name: 'RoleValue')
72
+ RoleValueList = Shapes::ListShape.new(name: 'RoleValueList')
73
+ RoleValues = Shapes::StructureShape.new(name: 'RoleValues')
74
+ SSOClientId = Shapes::StringShape.new(name: 'SSOClientId')
75
+ SamlAuthentication = Shapes::StructureShape.new(name: 'SamlAuthentication')
76
+ SamlConfiguration = Shapes::StructureShape.new(name: 'SamlConfiguration')
77
+ SamlConfigurationStatus = Shapes::StringShape.new(name: 'SamlConfigurationStatus')
78
+ ServiceQuotaExceededException = Shapes::StructureShape.new(name: 'ServiceQuotaExceededException')
79
+ SsoId = Shapes::StringShape.new(name: 'SsoId')
80
+ StackSetName = Shapes::StringShape.new(name: 'StackSetName')
81
+ String = Shapes::StringShape.new(name: 'String')
82
+ ThrottlingException = Shapes::StructureShape.new(name: 'ThrottlingException')
83
+ Timestamp = Shapes::TimestampShape.new(name: 'Timestamp')
84
+ UpdateAction = Shapes::StringShape.new(name: 'UpdateAction')
85
+ UpdateError = Shapes::StructureShape.new(name: 'UpdateError')
86
+ UpdateErrorCodeInteger = Shapes::IntegerShape.new(name: 'UpdateErrorCodeInteger')
87
+ UpdateErrorList = Shapes::ListShape.new(name: 'UpdateErrorList')
88
+ UpdateInstruction = Shapes::StructureShape.new(name: 'UpdateInstruction')
89
+ UpdateInstructionBatch = Shapes::ListShape.new(name: 'UpdateInstructionBatch')
90
+ UpdatePermissionsRequest = Shapes::StructureShape.new(name: 'UpdatePermissionsRequest')
91
+ UpdatePermissionsResponse = Shapes::StructureShape.new(name: 'UpdatePermissionsResponse')
92
+ UpdateWorkspaceAuthenticationRequest = Shapes::StructureShape.new(name: 'UpdateWorkspaceAuthenticationRequest')
93
+ UpdateWorkspaceAuthenticationResponse = Shapes::StructureShape.new(name: 'UpdateWorkspaceAuthenticationResponse')
94
+ UpdateWorkspaceRequest = Shapes::StructureShape.new(name: 'UpdateWorkspaceRequest')
95
+ UpdateWorkspaceResponse = Shapes::StructureShape.new(name: 'UpdateWorkspaceResponse')
96
+ User = Shapes::StructureShape.new(name: 'User')
97
+ UserList = Shapes::ListShape.new(name: 'UserList')
98
+ UserType = Shapes::StringShape.new(name: 'UserType')
99
+ ValidationException = Shapes::StructureShape.new(name: 'ValidationException')
100
+ ValidationExceptionField = Shapes::StructureShape.new(name: 'ValidationExceptionField')
101
+ ValidationExceptionFieldList = Shapes::ListShape.new(name: 'ValidationExceptionFieldList')
102
+ ValidationExceptionReason = Shapes::StringShape.new(name: 'ValidationExceptionReason')
103
+ WorkspaceDescription = Shapes::StructureShape.new(name: 'WorkspaceDescription')
104
+ WorkspaceId = Shapes::StringShape.new(name: 'WorkspaceId')
105
+ WorkspaceList = Shapes::ListShape.new(name: 'WorkspaceList')
106
+ WorkspaceName = Shapes::StringShape.new(name: 'WorkspaceName')
107
+ WorkspaceStatus = Shapes::StringShape.new(name: 'WorkspaceStatus')
108
+ WorkspaceSummary = Shapes::StructureShape.new(name: 'WorkspaceSummary')
109
+
110
+ AccessDeniedException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
111
+ AccessDeniedException.struct_class = Types::AccessDeniedException
112
+
113
+ AllowedOrganizations.member = Shapes::ShapeRef.new(shape: AllowedOrganization)
114
+
115
+ AssertionAttributes.add_member(:email, Shapes::ShapeRef.new(shape: AssertionAttribute, location_name: "email"))
116
+ AssertionAttributes.add_member(:groups, Shapes::ShapeRef.new(shape: AssertionAttribute, location_name: "groups"))
117
+ AssertionAttributes.add_member(:login, Shapes::ShapeRef.new(shape: AssertionAttribute, location_name: "login"))
118
+ AssertionAttributes.add_member(:name, Shapes::ShapeRef.new(shape: AssertionAttribute, location_name: "name"))
119
+ AssertionAttributes.add_member(:org, Shapes::ShapeRef.new(shape: AssertionAttribute, location_name: "org"))
120
+ AssertionAttributes.add_member(:role, Shapes::ShapeRef.new(shape: AssertionAttribute, location_name: "role"))
121
+ AssertionAttributes.struct_class = Types::AssertionAttributes
122
+
123
+ AssociateLicenseRequest.add_member(:license_type, Shapes::ShapeRef.new(shape: LicenseType, required: true, location: "uri", location_name: "licenseType"))
124
+ AssociateLicenseRequest.add_member(:workspace_id, Shapes::ShapeRef.new(shape: WorkspaceId, required: true, location: "uri", location_name: "workspaceId"))
125
+ AssociateLicenseRequest.struct_class = Types::AssociateLicenseRequest
126
+
127
+ AssociateLicenseResponse.add_member(:workspace, Shapes::ShapeRef.new(shape: WorkspaceDescription, required: true, location_name: "workspace"))
128
+ AssociateLicenseResponse.struct_class = Types::AssociateLicenseResponse
129
+
130
+ AuthenticationDescription.add_member(:aws_sso, Shapes::ShapeRef.new(shape: AwsSsoAuthentication, location_name: "awsSso"))
131
+ AuthenticationDescription.add_member(:providers, Shapes::ShapeRef.new(shape: AuthenticationProviders, required: true, location_name: "providers"))
132
+ AuthenticationDescription.add_member(:saml, Shapes::ShapeRef.new(shape: SamlAuthentication, location_name: "saml"))
133
+ AuthenticationDescription.struct_class = Types::AuthenticationDescription
134
+
135
+ AuthenticationProviders.member = Shapes::ShapeRef.new(shape: AuthenticationProviderTypes)
136
+
137
+ AuthenticationSummary.add_member(:providers, Shapes::ShapeRef.new(shape: AuthenticationProviders, required: true, location_name: "providers"))
138
+ AuthenticationSummary.add_member(:saml_configuration_status, Shapes::ShapeRef.new(shape: SamlConfigurationStatus, location_name: "samlConfigurationStatus"))
139
+ AuthenticationSummary.struct_class = Types::AuthenticationSummary
140
+
141
+ AwsSsoAuthentication.add_member(:sso_client_id, Shapes::ShapeRef.new(shape: SSOClientId, location_name: "ssoClientId"))
142
+ AwsSsoAuthentication.struct_class = Types::AwsSsoAuthentication
143
+
144
+ ConflictException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
145
+ ConflictException.add_member(:resource_id, Shapes::ShapeRef.new(shape: String, required: true, location_name: "resourceId"))
146
+ ConflictException.add_member(:resource_type, Shapes::ShapeRef.new(shape: String, required: true, location_name: "resourceType"))
147
+ ConflictException.struct_class = Types::ConflictException
148
+
149
+ CreateWorkspaceRequest.add_member(:account_access_type, Shapes::ShapeRef.new(shape: AccountAccessType, required: true, location_name: "accountAccessType"))
150
+ CreateWorkspaceRequest.add_member(:authentication_providers, Shapes::ShapeRef.new(shape: AuthenticationProviders, required: true, location_name: "authenticationProviders"))
151
+ CreateWorkspaceRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: ClientToken, location_name: "clientToken", metadata: {"idempotencyToken"=>true}))
152
+ CreateWorkspaceRequest.add_member(:organization_role_name, Shapes::ShapeRef.new(shape: OrganizationRoleName, location_name: "organizationRoleName"))
153
+ CreateWorkspaceRequest.add_member(:permission_type, Shapes::ShapeRef.new(shape: PermissionType, required: true, location_name: "permissionType"))
154
+ CreateWorkspaceRequest.add_member(:stack_set_name, Shapes::ShapeRef.new(shape: StackSetName, location_name: "stackSetName"))
155
+ CreateWorkspaceRequest.add_member(:workspace_data_sources, Shapes::ShapeRef.new(shape: DataSourceTypesList, location_name: "workspaceDataSources"))
156
+ CreateWorkspaceRequest.add_member(:workspace_description, Shapes::ShapeRef.new(shape: Description, location_name: "workspaceDescription"))
157
+ CreateWorkspaceRequest.add_member(:workspace_name, Shapes::ShapeRef.new(shape: WorkspaceName, location_name: "workspaceName"))
158
+ CreateWorkspaceRequest.add_member(:workspace_notification_destinations, Shapes::ShapeRef.new(shape: NotificationDestinationsList, location_name: "workspaceNotificationDestinations"))
159
+ CreateWorkspaceRequest.add_member(:workspace_organizational_units, Shapes::ShapeRef.new(shape: OrganizationalUnitList, location_name: "workspaceOrganizationalUnits"))
160
+ CreateWorkspaceRequest.add_member(:workspace_role_arn, Shapes::ShapeRef.new(shape: IamRoleArn, location_name: "workspaceRoleArn"))
161
+ CreateWorkspaceRequest.struct_class = Types::CreateWorkspaceRequest
162
+
163
+ CreateWorkspaceResponse.add_member(:workspace, Shapes::ShapeRef.new(shape: WorkspaceDescription, required: true, location_name: "workspace"))
164
+ CreateWorkspaceResponse.struct_class = Types::CreateWorkspaceResponse
165
+
166
+ DataSourceTypesList.member = Shapes::ShapeRef.new(shape: DataSourceType)
167
+
168
+ DeleteWorkspaceRequest.add_member(:workspace_id, Shapes::ShapeRef.new(shape: WorkspaceId, required: true, location: "uri", location_name: "workspaceId"))
169
+ DeleteWorkspaceRequest.struct_class = Types::DeleteWorkspaceRequest
170
+
171
+ DeleteWorkspaceResponse.add_member(:workspace, Shapes::ShapeRef.new(shape: WorkspaceDescription, required: true, location_name: "workspace"))
172
+ DeleteWorkspaceResponse.struct_class = Types::DeleteWorkspaceResponse
173
+
174
+ DescribeWorkspaceAuthenticationRequest.add_member(:workspace_id, Shapes::ShapeRef.new(shape: WorkspaceId, required: true, location: "uri", location_name: "workspaceId"))
175
+ DescribeWorkspaceAuthenticationRequest.struct_class = Types::DescribeWorkspaceAuthenticationRequest
176
+
177
+ DescribeWorkspaceAuthenticationResponse.add_member(:authentication, Shapes::ShapeRef.new(shape: AuthenticationDescription, required: true, location_name: "authentication"))
178
+ DescribeWorkspaceAuthenticationResponse.struct_class = Types::DescribeWorkspaceAuthenticationResponse
179
+
180
+ DescribeWorkspaceRequest.add_member(:workspace_id, Shapes::ShapeRef.new(shape: WorkspaceId, required: true, location: "uri", location_name: "workspaceId"))
181
+ DescribeWorkspaceRequest.struct_class = Types::DescribeWorkspaceRequest
182
+
183
+ DescribeWorkspaceResponse.add_member(:workspace, Shapes::ShapeRef.new(shape: WorkspaceDescription, required: true, location_name: "workspace"))
184
+ DescribeWorkspaceResponse.struct_class = Types::DescribeWorkspaceResponse
185
+
186
+ DisassociateLicenseRequest.add_member(:license_type, Shapes::ShapeRef.new(shape: LicenseType, required: true, location: "uri", location_name: "licenseType"))
187
+ DisassociateLicenseRequest.add_member(:workspace_id, Shapes::ShapeRef.new(shape: WorkspaceId, required: true, location: "uri", location_name: "workspaceId"))
188
+ DisassociateLicenseRequest.struct_class = Types::DisassociateLicenseRequest
189
+
190
+ DisassociateLicenseResponse.add_member(:workspace, Shapes::ShapeRef.new(shape: WorkspaceDescription, required: true, location_name: "workspace"))
191
+ DisassociateLicenseResponse.struct_class = Types::DisassociateLicenseResponse
192
+
193
+ IdpMetadata.add_member(:url, Shapes::ShapeRef.new(shape: IdpMetadataUrl, location_name: "url"))
194
+ IdpMetadata.add_member(:xml, Shapes::ShapeRef.new(shape: String, location_name: "xml"))
195
+ IdpMetadata.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
196
+ IdpMetadata.add_member_subclass(:url, Types::IdpMetadata::Url)
197
+ IdpMetadata.add_member_subclass(:xml, Types::IdpMetadata::Xml)
198
+ IdpMetadata.add_member_subclass(:unknown, Types::IdpMetadata::Unknown)
199
+ IdpMetadata.struct_class = Types::IdpMetadata
200
+
201
+ InternalServerException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
202
+ InternalServerException.add_member(:retry_after_seconds, Shapes::ShapeRef.new(shape: Integer, location: "header", location_name: "Retry-After"))
203
+ InternalServerException.struct_class = Types::InternalServerException
204
+
205
+ ListPermissionsRequest.add_member(:group_id, Shapes::ShapeRef.new(shape: SsoId, location: "querystring", location_name: "groupId"))
206
+ ListPermissionsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: ListPermissionsRequestMaxResultsInteger, location: "querystring", location_name: "maxResults"))
207
+ ListPermissionsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location: "querystring", location_name: "nextToken"))
208
+ ListPermissionsRequest.add_member(:user_id, Shapes::ShapeRef.new(shape: SsoId, location: "querystring", location_name: "userId"))
209
+ ListPermissionsRequest.add_member(:user_type, Shapes::ShapeRef.new(shape: UserType, location: "querystring", location_name: "userType"))
210
+ ListPermissionsRequest.add_member(:workspace_id, Shapes::ShapeRef.new(shape: WorkspaceId, required: true, location: "uri", location_name: "workspaceId"))
211
+ ListPermissionsRequest.struct_class = Types::ListPermissionsRequest
212
+
213
+ ListPermissionsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "nextToken"))
214
+ ListPermissionsResponse.add_member(:permissions, Shapes::ShapeRef.new(shape: PermissionEntryList, required: true, location_name: "permissions"))
215
+ ListPermissionsResponse.struct_class = Types::ListPermissionsResponse
216
+
217
+ ListWorkspacesRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: ListWorkspacesRequestMaxResultsInteger, location: "querystring", location_name: "maxResults"))
218
+ ListWorkspacesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location: "querystring", location_name: "nextToken"))
219
+ ListWorkspacesRequest.struct_class = Types::ListWorkspacesRequest
220
+
221
+ ListWorkspacesResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "nextToken"))
222
+ ListWorkspacesResponse.add_member(:workspaces, Shapes::ShapeRef.new(shape: WorkspaceList, required: true, location_name: "workspaces"))
223
+ ListWorkspacesResponse.struct_class = Types::ListWorkspacesResponse
224
+
225
+ NotificationDestinationsList.member = Shapes::ShapeRef.new(shape: NotificationDestinationType)
226
+
227
+ OrganizationalUnitList.member = Shapes::ShapeRef.new(shape: OrganizationalUnit)
228
+
229
+ PermissionEntry.add_member(:role, Shapes::ShapeRef.new(shape: Role, required: true, location_name: "role"))
230
+ PermissionEntry.add_member(:user, Shapes::ShapeRef.new(shape: User, required: true, location_name: "user"))
231
+ PermissionEntry.struct_class = Types::PermissionEntry
232
+
233
+ PermissionEntryList.member = Shapes::ShapeRef.new(shape: PermissionEntry)
234
+
235
+ ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
236
+ ResourceNotFoundException.add_member(:resource_id, Shapes::ShapeRef.new(shape: String, required: true, location_name: "resourceId"))
237
+ ResourceNotFoundException.add_member(:resource_type, Shapes::ShapeRef.new(shape: String, required: true, location_name: "resourceType"))
238
+ ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
239
+
240
+ RoleValueList.member = Shapes::ShapeRef.new(shape: RoleValue)
241
+
242
+ RoleValues.add_member(:admin, Shapes::ShapeRef.new(shape: RoleValueList, location_name: "admin"))
243
+ RoleValues.add_member(:editor, Shapes::ShapeRef.new(shape: RoleValueList, location_name: "editor"))
244
+ RoleValues.struct_class = Types::RoleValues
245
+
246
+ SamlAuthentication.add_member(:configuration, Shapes::ShapeRef.new(shape: SamlConfiguration, location_name: "configuration"))
247
+ SamlAuthentication.add_member(:status, Shapes::ShapeRef.new(shape: SamlConfigurationStatus, required: true, location_name: "status"))
248
+ SamlAuthentication.struct_class = Types::SamlAuthentication
249
+
250
+ SamlConfiguration.add_member(:allowed_organizations, Shapes::ShapeRef.new(shape: AllowedOrganizations, location_name: "allowedOrganizations"))
251
+ SamlConfiguration.add_member(:assertion_attributes, Shapes::ShapeRef.new(shape: AssertionAttributes, location_name: "assertionAttributes"))
252
+ SamlConfiguration.add_member(:idp_metadata, Shapes::ShapeRef.new(shape: IdpMetadata, required: true, location_name: "idpMetadata"))
253
+ SamlConfiguration.add_member(:login_validity_duration, Shapes::ShapeRef.new(shape: LoginValidityDuration, location_name: "loginValidityDuration"))
254
+ SamlConfiguration.add_member(:role_values, Shapes::ShapeRef.new(shape: RoleValues, location_name: "roleValues"))
255
+ SamlConfiguration.struct_class = Types::SamlConfiguration
256
+
257
+ ServiceQuotaExceededException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
258
+ ServiceQuotaExceededException.add_member(:quota_code, Shapes::ShapeRef.new(shape: String, required: true, location_name: "quotaCode"))
259
+ ServiceQuotaExceededException.add_member(:resource_id, Shapes::ShapeRef.new(shape: String, required: true, location_name: "resourceId"))
260
+ ServiceQuotaExceededException.add_member(:resource_type, Shapes::ShapeRef.new(shape: String, required: true, location_name: "resourceType"))
261
+ ServiceQuotaExceededException.add_member(:service_code, Shapes::ShapeRef.new(shape: String, required: true, location_name: "serviceCode"))
262
+ ServiceQuotaExceededException.struct_class = Types::ServiceQuotaExceededException
263
+
264
+ ThrottlingException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
265
+ ThrottlingException.add_member(:quota_code, Shapes::ShapeRef.new(shape: String, location_name: "quotaCode"))
266
+ ThrottlingException.add_member(:retry_after_seconds, Shapes::ShapeRef.new(shape: Integer, location: "header", location_name: "Retry-After"))
267
+ ThrottlingException.add_member(:service_code, Shapes::ShapeRef.new(shape: String, location_name: "serviceCode"))
268
+ ThrottlingException.struct_class = Types::ThrottlingException
269
+
270
+ UpdateError.add_member(:caused_by, Shapes::ShapeRef.new(shape: UpdateInstruction, required: true, location_name: "causedBy"))
271
+ UpdateError.add_member(:code, Shapes::ShapeRef.new(shape: UpdateErrorCodeInteger, required: true, location_name: "code"))
272
+ UpdateError.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
273
+ UpdateError.struct_class = Types::UpdateError
274
+
275
+ UpdateErrorList.member = Shapes::ShapeRef.new(shape: UpdateError)
276
+
277
+ UpdateInstruction.add_member(:action, Shapes::ShapeRef.new(shape: UpdateAction, required: true, location_name: "action"))
278
+ UpdateInstruction.add_member(:role, Shapes::ShapeRef.new(shape: Role, required: true, location_name: "role"))
279
+ UpdateInstruction.add_member(:users, Shapes::ShapeRef.new(shape: UserList, required: true, location_name: "users"))
280
+ UpdateInstruction.struct_class = Types::UpdateInstruction
281
+
282
+ UpdateInstructionBatch.member = Shapes::ShapeRef.new(shape: UpdateInstruction)
283
+
284
+ UpdatePermissionsRequest.add_member(:update_instruction_batch, Shapes::ShapeRef.new(shape: UpdateInstructionBatch, required: true, location_name: "updateInstructionBatch"))
285
+ UpdatePermissionsRequest.add_member(:workspace_id, Shapes::ShapeRef.new(shape: WorkspaceId, required: true, location: "uri", location_name: "workspaceId"))
286
+ UpdatePermissionsRequest.struct_class = Types::UpdatePermissionsRequest
287
+
288
+ UpdatePermissionsResponse.add_member(:errors, Shapes::ShapeRef.new(shape: UpdateErrorList, required: true, location_name: "errors"))
289
+ UpdatePermissionsResponse.struct_class = Types::UpdatePermissionsResponse
290
+
291
+ UpdateWorkspaceAuthenticationRequest.add_member(:authentication_providers, Shapes::ShapeRef.new(shape: AuthenticationProviders, required: true, location_name: "authenticationProviders"))
292
+ UpdateWorkspaceAuthenticationRequest.add_member(:saml_configuration, Shapes::ShapeRef.new(shape: SamlConfiguration, location_name: "samlConfiguration"))
293
+ UpdateWorkspaceAuthenticationRequest.add_member(:workspace_id, Shapes::ShapeRef.new(shape: WorkspaceId, required: true, location: "uri", location_name: "workspaceId"))
294
+ UpdateWorkspaceAuthenticationRequest.struct_class = Types::UpdateWorkspaceAuthenticationRequest
295
+
296
+ UpdateWorkspaceAuthenticationResponse.add_member(:authentication, Shapes::ShapeRef.new(shape: AuthenticationDescription, required: true, location_name: "authentication"))
297
+ UpdateWorkspaceAuthenticationResponse.struct_class = Types::UpdateWorkspaceAuthenticationResponse
298
+
299
+ UpdateWorkspaceRequest.add_member(:account_access_type, Shapes::ShapeRef.new(shape: AccountAccessType, location_name: "accountAccessType"))
300
+ UpdateWorkspaceRequest.add_member(:organization_role_name, Shapes::ShapeRef.new(shape: OrganizationRoleName, location_name: "organizationRoleName"))
301
+ UpdateWorkspaceRequest.add_member(:permission_type, Shapes::ShapeRef.new(shape: PermissionType, location_name: "permissionType"))
302
+ UpdateWorkspaceRequest.add_member(:stack_set_name, Shapes::ShapeRef.new(shape: StackSetName, location_name: "stackSetName"))
303
+ UpdateWorkspaceRequest.add_member(:workspace_data_sources, Shapes::ShapeRef.new(shape: DataSourceTypesList, location_name: "workspaceDataSources"))
304
+ UpdateWorkspaceRequest.add_member(:workspace_description, Shapes::ShapeRef.new(shape: Description, location_name: "workspaceDescription"))
305
+ UpdateWorkspaceRequest.add_member(:workspace_id, Shapes::ShapeRef.new(shape: WorkspaceId, required: true, location: "uri", location_name: "workspaceId"))
306
+ UpdateWorkspaceRequest.add_member(:workspace_name, Shapes::ShapeRef.new(shape: WorkspaceName, location_name: "workspaceName"))
307
+ UpdateWorkspaceRequest.add_member(:workspace_notification_destinations, Shapes::ShapeRef.new(shape: NotificationDestinationsList, location_name: "workspaceNotificationDestinations"))
308
+ UpdateWorkspaceRequest.add_member(:workspace_organizational_units, Shapes::ShapeRef.new(shape: OrganizationalUnitList, location_name: "workspaceOrganizationalUnits"))
309
+ UpdateWorkspaceRequest.add_member(:workspace_role_arn, Shapes::ShapeRef.new(shape: IamRoleArn, location_name: "workspaceRoleArn"))
310
+ UpdateWorkspaceRequest.struct_class = Types::UpdateWorkspaceRequest
311
+
312
+ UpdateWorkspaceResponse.add_member(:workspace, Shapes::ShapeRef.new(shape: WorkspaceDescription, required: true, location_name: "workspace"))
313
+ UpdateWorkspaceResponse.struct_class = Types::UpdateWorkspaceResponse
314
+
315
+ User.add_member(:id, Shapes::ShapeRef.new(shape: SsoId, required: true, location_name: "id"))
316
+ User.add_member(:type, Shapes::ShapeRef.new(shape: UserType, required: true, location_name: "type"))
317
+ User.struct_class = Types::User
318
+
319
+ UserList.member = Shapes::ShapeRef.new(shape: User)
320
+
321
+ ValidationException.add_member(:field_list, Shapes::ShapeRef.new(shape: ValidationExceptionFieldList, location_name: "fieldList"))
322
+ ValidationException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
323
+ ValidationException.add_member(:reason, Shapes::ShapeRef.new(shape: ValidationExceptionReason, required: true, location_name: "reason"))
324
+ ValidationException.struct_class = Types::ValidationException
325
+
326
+ ValidationExceptionField.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
327
+ ValidationExceptionField.add_member(:name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "name"))
328
+ ValidationExceptionField.struct_class = Types::ValidationExceptionField
329
+
330
+ ValidationExceptionFieldList.member = Shapes::ShapeRef.new(shape: ValidationExceptionField)
331
+
332
+ WorkspaceDescription.add_member(:account_access_type, Shapes::ShapeRef.new(shape: AccountAccessType, location_name: "accountAccessType"))
333
+ WorkspaceDescription.add_member(:authentication, Shapes::ShapeRef.new(shape: AuthenticationSummary, required: true, location_name: "authentication"))
334
+ WorkspaceDescription.add_member(:created, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "created"))
335
+ WorkspaceDescription.add_member(:data_sources, Shapes::ShapeRef.new(shape: DataSourceTypesList, required: true, location_name: "dataSources"))
336
+ WorkspaceDescription.add_member(:description, Shapes::ShapeRef.new(shape: Description, location_name: "description"))
337
+ WorkspaceDescription.add_member(:endpoint, Shapes::ShapeRef.new(shape: Endpoint, required: true, location_name: "endpoint"))
338
+ WorkspaceDescription.add_member(:free_trial_consumed, Shapes::ShapeRef.new(shape: Boolean, location_name: "freeTrialConsumed"))
339
+ WorkspaceDescription.add_member(:free_trial_expiration, Shapes::ShapeRef.new(shape: Timestamp, location_name: "freeTrialExpiration"))
340
+ WorkspaceDescription.add_member(:grafana_version, Shapes::ShapeRef.new(shape: GrafanaVersion, required: true, location_name: "grafanaVersion"))
341
+ WorkspaceDescription.add_member(:id, Shapes::ShapeRef.new(shape: WorkspaceId, required: true, location_name: "id"))
342
+ WorkspaceDescription.add_member(:license_expiration, Shapes::ShapeRef.new(shape: Timestamp, location_name: "licenseExpiration"))
343
+ WorkspaceDescription.add_member(:license_type, Shapes::ShapeRef.new(shape: LicenseType, location_name: "licenseType"))
344
+ WorkspaceDescription.add_member(:modified, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "modified"))
345
+ WorkspaceDescription.add_member(:name, Shapes::ShapeRef.new(shape: WorkspaceName, location_name: "name"))
346
+ WorkspaceDescription.add_member(:notification_destinations, Shapes::ShapeRef.new(shape: NotificationDestinationsList, location_name: "notificationDestinations"))
347
+ WorkspaceDescription.add_member(:organization_role_name, Shapes::ShapeRef.new(shape: OrganizationRoleName, location_name: "organizationRoleName"))
348
+ WorkspaceDescription.add_member(:organizational_units, Shapes::ShapeRef.new(shape: OrganizationalUnitList, location_name: "organizationalUnits"))
349
+ WorkspaceDescription.add_member(:permission_type, Shapes::ShapeRef.new(shape: PermissionType, location_name: "permissionType"))
350
+ WorkspaceDescription.add_member(:stack_set_name, Shapes::ShapeRef.new(shape: StackSetName, location_name: "stackSetName"))
351
+ WorkspaceDescription.add_member(:status, Shapes::ShapeRef.new(shape: WorkspaceStatus, required: true, location_name: "status"))
352
+ WorkspaceDescription.add_member(:workspace_role_arn, Shapes::ShapeRef.new(shape: IamRoleArn, location_name: "workspaceRoleArn"))
353
+ WorkspaceDescription.struct_class = Types::WorkspaceDescription
354
+
355
+ WorkspaceList.member = Shapes::ShapeRef.new(shape: WorkspaceSummary)
356
+
357
+ WorkspaceSummary.add_member(:authentication, Shapes::ShapeRef.new(shape: AuthenticationSummary, required: true, location_name: "authentication"))
358
+ WorkspaceSummary.add_member(:created, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "created"))
359
+ WorkspaceSummary.add_member(:description, Shapes::ShapeRef.new(shape: Description, location_name: "description"))
360
+ WorkspaceSummary.add_member(:endpoint, Shapes::ShapeRef.new(shape: Endpoint, required: true, location_name: "endpoint"))
361
+ WorkspaceSummary.add_member(:grafana_version, Shapes::ShapeRef.new(shape: GrafanaVersion, required: true, location_name: "grafanaVersion"))
362
+ WorkspaceSummary.add_member(:id, Shapes::ShapeRef.new(shape: WorkspaceId, required: true, location_name: "id"))
363
+ WorkspaceSummary.add_member(:modified, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "modified"))
364
+ WorkspaceSummary.add_member(:name, Shapes::ShapeRef.new(shape: WorkspaceName, location_name: "name"))
365
+ WorkspaceSummary.add_member(:notification_destinations, Shapes::ShapeRef.new(shape: NotificationDestinationsList, location_name: "notificationDestinations"))
366
+ WorkspaceSummary.add_member(:status, Shapes::ShapeRef.new(shape: WorkspaceStatus, required: true, location_name: "status"))
367
+ WorkspaceSummary.struct_class = Types::WorkspaceSummary
368
+
369
+
370
+ # @api private
371
+ API = Seahorse::Model::Api.new.tap do |api|
372
+
373
+ api.version = "2020-08-18"
374
+
375
+ api.metadata = {
376
+ "apiVersion" => "2020-08-18",
377
+ "endpointPrefix" => "grafana",
378
+ "jsonVersion" => "1.1",
379
+ "protocol" => "rest-json",
380
+ "serviceFullName" => "Amazon Managed Grafana",
381
+ "serviceId" => "grafana",
382
+ "signatureVersion" => "v4",
383
+ "signingName" => "grafana",
384
+ "uid" => "grafana-2020-08-18",
385
+ }
386
+
387
+ api.add_operation(:associate_license, Seahorse::Model::Operation.new.tap do |o|
388
+ o.name = "AssociateLicense"
389
+ o.http_method = "POST"
390
+ o.http_request_uri = "/workspaces/{workspaceId}/licenses/{licenseType}"
391
+ o.input = Shapes::ShapeRef.new(shape: AssociateLicenseRequest)
392
+ o.output = Shapes::ShapeRef.new(shape: AssociateLicenseResponse)
393
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
394
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
395
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
396
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
397
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
398
+ end)
399
+
400
+ api.add_operation(:create_workspace, Seahorse::Model::Operation.new.tap do |o|
401
+ o.name = "CreateWorkspace"
402
+ o.http_method = "POST"
403
+ o.http_request_uri = "/workspaces"
404
+ o.input = Shapes::ShapeRef.new(shape: CreateWorkspaceRequest)
405
+ o.output = Shapes::ShapeRef.new(shape: CreateWorkspaceResponse)
406
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
407
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
408
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
409
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
410
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
411
+ o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
412
+ end)
413
+
414
+ api.add_operation(:delete_workspace, Seahorse::Model::Operation.new.tap do |o|
415
+ o.name = "DeleteWorkspace"
416
+ o.http_method = "DELETE"
417
+ o.http_request_uri = "/workspaces/{workspaceId}"
418
+ o.input = Shapes::ShapeRef.new(shape: DeleteWorkspaceRequest)
419
+ o.output = Shapes::ShapeRef.new(shape: DeleteWorkspaceResponse)
420
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
421
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
422
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
423
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
424
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
425
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
426
+ end)
427
+
428
+ api.add_operation(:describe_workspace, Seahorse::Model::Operation.new.tap do |o|
429
+ o.name = "DescribeWorkspace"
430
+ o.http_method = "GET"
431
+ o.http_request_uri = "/workspaces/{workspaceId}"
432
+ o.input = Shapes::ShapeRef.new(shape: DescribeWorkspaceRequest)
433
+ o.output = Shapes::ShapeRef.new(shape: DescribeWorkspaceResponse)
434
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
435
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
436
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
437
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
438
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
439
+ end)
440
+
441
+ api.add_operation(:describe_workspace_authentication, Seahorse::Model::Operation.new.tap do |o|
442
+ o.name = "DescribeWorkspaceAuthentication"
443
+ o.http_method = "GET"
444
+ o.http_request_uri = "/workspaces/{workspaceId}/authentication"
445
+ o.input = Shapes::ShapeRef.new(shape: DescribeWorkspaceAuthenticationRequest)
446
+ o.output = Shapes::ShapeRef.new(shape: DescribeWorkspaceAuthenticationResponse)
447
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
448
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
449
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
450
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
451
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
452
+ end)
453
+
454
+ api.add_operation(:disassociate_license, Seahorse::Model::Operation.new.tap do |o|
455
+ o.name = "DisassociateLicense"
456
+ o.http_method = "DELETE"
457
+ o.http_request_uri = "/workspaces/{workspaceId}/licenses/{licenseType}"
458
+ o.input = Shapes::ShapeRef.new(shape: DisassociateLicenseRequest)
459
+ o.output = Shapes::ShapeRef.new(shape: DisassociateLicenseResponse)
460
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
461
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
462
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
463
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
464
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
465
+ end)
466
+
467
+ api.add_operation(:list_permissions, Seahorse::Model::Operation.new.tap do |o|
468
+ o.name = "ListPermissions"
469
+ o.http_method = "GET"
470
+ o.http_request_uri = "/workspaces/{workspaceId}/permissions"
471
+ o.input = Shapes::ShapeRef.new(shape: ListPermissionsRequest)
472
+ o.output = Shapes::ShapeRef.new(shape: ListPermissionsResponse)
473
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
474
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
475
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
476
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
477
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
478
+ o[:pager] = Aws::Pager.new(
479
+ limit_key: "max_results",
480
+ tokens: {
481
+ "next_token" => "next_token"
482
+ }
483
+ )
484
+ end)
485
+
486
+ api.add_operation(:list_workspaces, Seahorse::Model::Operation.new.tap do |o|
487
+ o.name = "ListWorkspaces"
488
+ o.http_method = "GET"
489
+ o.http_request_uri = "/workspaces"
490
+ o.input = Shapes::ShapeRef.new(shape: ListWorkspacesRequest)
491
+ o.output = Shapes::ShapeRef.new(shape: ListWorkspacesResponse)
492
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
493
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
494
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
495
+ o[:pager] = Aws::Pager.new(
496
+ limit_key: "max_results",
497
+ tokens: {
498
+ "next_token" => "next_token"
499
+ }
500
+ )
501
+ end)
502
+
503
+ api.add_operation(:update_permissions, Seahorse::Model::Operation.new.tap do |o|
504
+ o.name = "UpdatePermissions"
505
+ o.http_method = "PATCH"
506
+ o.http_request_uri = "/workspaces/{workspaceId}/permissions"
507
+ o.input = Shapes::ShapeRef.new(shape: UpdatePermissionsRequest)
508
+ o.output = Shapes::ShapeRef.new(shape: UpdatePermissionsResponse)
509
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
510
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
511
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
512
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
513
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
514
+ end)
515
+
516
+ api.add_operation(:update_workspace, Seahorse::Model::Operation.new.tap do |o|
517
+ o.name = "UpdateWorkspace"
518
+ o.http_method = "PUT"
519
+ o.http_request_uri = "/workspaces/{workspaceId}"
520
+ o.input = Shapes::ShapeRef.new(shape: UpdateWorkspaceRequest)
521
+ o.output = Shapes::ShapeRef.new(shape: UpdateWorkspaceResponse)
522
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
523
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
524
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
525
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
526
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
527
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
528
+ end)
529
+
530
+ api.add_operation(:update_workspace_authentication, Seahorse::Model::Operation.new.tap do |o|
531
+ o.name = "UpdateWorkspaceAuthentication"
532
+ o.http_method = "POST"
533
+ o.http_request_uri = "/workspaces/{workspaceId}/authentication"
534
+ o.input = Shapes::ShapeRef.new(shape: UpdateWorkspaceAuthenticationRequest)
535
+ o.output = Shapes::ShapeRef.new(shape: UpdateWorkspaceAuthenticationResponse)
536
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
537
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
538
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
539
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
540
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
541
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
542
+ end)
543
+ end
544
+
545
+ end
546
+ end
File without changes