aws-sdk-managedgrafana 1.8.0 → 1.10.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-managedgrafana/client.rb +183 -35
- data/lib/aws-sdk-managedgrafana/client_api.rb +61 -0
- data/lib/aws-sdk-managedgrafana/endpoint_parameters.rb +66 -0
- data/lib/aws-sdk-managedgrafana/endpoint_provider.rb +111 -0
- data/lib/aws-sdk-managedgrafana/endpoints.rb +267 -0
- data/lib/aws-sdk-managedgrafana/plugins/endpoints.rb +104 -0
- data/lib/aws-sdk-managedgrafana/types.rb +193 -41
- data/lib/aws-sdk-managedgrafana.rb +5 -1
- metadata +8 -4
@@ -0,0 +1,104 @@
|
|
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
|
+
|
11
|
+
module Aws::ManagedGrafana
|
12
|
+
module Plugins
|
13
|
+
class Endpoints < Seahorse::Client::Plugin
|
14
|
+
option(
|
15
|
+
:endpoint_provider,
|
16
|
+
doc_type: 'Aws::ManagedGrafana::EndpointProvider',
|
17
|
+
docstring: 'The endpoint provider used to resolve endpoints. Any '\
|
18
|
+
'object that responds to `#resolve_endpoint(parameters)` '\
|
19
|
+
'where `parameters` is a Struct similar to '\
|
20
|
+
'`Aws::ManagedGrafana::EndpointParameters`'
|
21
|
+
) do |cfg|
|
22
|
+
Aws::ManagedGrafana::EndpointProvider.new
|
23
|
+
end
|
24
|
+
|
25
|
+
# @api private
|
26
|
+
class Handler < Seahorse::Client::Handler
|
27
|
+
def call(context)
|
28
|
+
# If endpoint was discovered, do not resolve or apply the endpoint.
|
29
|
+
unless context[:discovered_endpoint]
|
30
|
+
params = parameters_for_operation(context)
|
31
|
+
endpoint = context.config.endpoint_provider.resolve_endpoint(params)
|
32
|
+
|
33
|
+
context.http_request.endpoint = endpoint.url
|
34
|
+
apply_endpoint_headers(context, endpoint.headers)
|
35
|
+
end
|
36
|
+
|
37
|
+
context[:endpoint_params] = params
|
38
|
+
context[:auth_scheme] =
|
39
|
+
Aws::Endpoints.resolve_auth_scheme(context, endpoint)
|
40
|
+
|
41
|
+
@handler.call(context)
|
42
|
+
end
|
43
|
+
|
44
|
+
private
|
45
|
+
|
46
|
+
def apply_endpoint_headers(context, headers)
|
47
|
+
headers.each do |key, values|
|
48
|
+
value = values
|
49
|
+
.compact
|
50
|
+
.map { |s| Seahorse::Util.escape_header_list_string(s.to_s) }
|
51
|
+
.join(',')
|
52
|
+
|
53
|
+
context.http_request.headers[key] = value
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
def parameters_for_operation(context)
|
58
|
+
case context.operation_name
|
59
|
+
when :associate_license
|
60
|
+
Aws::ManagedGrafana::Endpoints::AssociateLicense.build(context)
|
61
|
+
when :create_workspace
|
62
|
+
Aws::ManagedGrafana::Endpoints::CreateWorkspace.build(context)
|
63
|
+
when :create_workspace_api_key
|
64
|
+
Aws::ManagedGrafana::Endpoints::CreateWorkspaceApiKey.build(context)
|
65
|
+
when :delete_workspace
|
66
|
+
Aws::ManagedGrafana::Endpoints::DeleteWorkspace.build(context)
|
67
|
+
when :delete_workspace_api_key
|
68
|
+
Aws::ManagedGrafana::Endpoints::DeleteWorkspaceApiKey.build(context)
|
69
|
+
when :describe_workspace
|
70
|
+
Aws::ManagedGrafana::Endpoints::DescribeWorkspace.build(context)
|
71
|
+
when :describe_workspace_authentication
|
72
|
+
Aws::ManagedGrafana::Endpoints::DescribeWorkspaceAuthentication.build(context)
|
73
|
+
when :describe_workspace_configuration
|
74
|
+
Aws::ManagedGrafana::Endpoints::DescribeWorkspaceConfiguration.build(context)
|
75
|
+
when :disassociate_license
|
76
|
+
Aws::ManagedGrafana::Endpoints::DisassociateLicense.build(context)
|
77
|
+
when :list_permissions
|
78
|
+
Aws::ManagedGrafana::Endpoints::ListPermissions.build(context)
|
79
|
+
when :list_tags_for_resource
|
80
|
+
Aws::ManagedGrafana::Endpoints::ListTagsForResource.build(context)
|
81
|
+
when :list_workspaces
|
82
|
+
Aws::ManagedGrafana::Endpoints::ListWorkspaces.build(context)
|
83
|
+
when :tag_resource
|
84
|
+
Aws::ManagedGrafana::Endpoints::TagResource.build(context)
|
85
|
+
when :untag_resource
|
86
|
+
Aws::ManagedGrafana::Endpoints::UntagResource.build(context)
|
87
|
+
when :update_permissions
|
88
|
+
Aws::ManagedGrafana::Endpoints::UpdatePermissions.build(context)
|
89
|
+
when :update_workspace
|
90
|
+
Aws::ManagedGrafana::Endpoints::UpdateWorkspace.build(context)
|
91
|
+
when :update_workspace_authentication
|
92
|
+
Aws::ManagedGrafana::Endpoints::UpdateWorkspaceAuthentication.build(context)
|
93
|
+
when :update_workspace_configuration
|
94
|
+
Aws::ManagedGrafana::Endpoints::UpdateWorkspaceConfiguration.build(context)
|
95
|
+
end
|
96
|
+
end
|
97
|
+
end
|
98
|
+
|
99
|
+
def add_handlers(handlers, _config)
|
100
|
+
handlers.add(Handler, step: :build, priority: 75)
|
101
|
+
end
|
102
|
+
end
|
103
|
+
end
|
104
|
+
end
|
@@ -124,13 +124,13 @@ module Aws::ManagedGrafana
|
|
124
124
|
#
|
125
125
|
# @!attribute [rw] aws_sso
|
126
126
|
# A structure containing information about how this workspace works
|
127
|
-
# with
|
127
|
+
# with IAM Identity Center.
|
128
128
|
# @return [Types::AwsSsoAuthentication]
|
129
129
|
#
|
130
130
|
# @!attribute [rw] providers
|
131
|
-
# Specifies whether this workspace uses
|
132
|
-
#
|
133
|
-
#
|
131
|
+
# Specifies whether this workspace uses IAM Identity Center, SAML, or
|
132
|
+
# both methods to authenticate users to use the Grafana console in the
|
133
|
+
# Amazon Managed Grafana workspace.
|
134
134
|
# @return [Array<String>]
|
135
135
|
#
|
136
136
|
# @!attribute [rw] saml
|
@@ -149,13 +149,13 @@ module Aws::ManagedGrafana
|
|
149
149
|
include Aws::Structure
|
150
150
|
end
|
151
151
|
|
152
|
-
# A structure that describes whether the workspace uses SAML,
|
153
|
-
#
|
152
|
+
# A structure that describes whether the workspace uses SAML, IAM
|
153
|
+
# Identity Center, or both methods for user authentication, and whether
|
154
154
|
# that authentication is fully configured.
|
155
155
|
#
|
156
156
|
# @!attribute [rw] providers
|
157
|
-
# Specifies whether the workspace uses SAML,
|
158
|
-
#
|
157
|
+
# Specifies whether the workspace uses SAML, IAM Identity Center, or
|
158
|
+
# both methods for user authentication.
|
159
159
|
# @return [Array<String>]
|
160
160
|
#
|
161
161
|
# @!attribute [rw] saml_configuration_status
|
@@ -173,10 +173,10 @@ module Aws::ManagedGrafana
|
|
173
173
|
end
|
174
174
|
|
175
175
|
# A structure containing information about how this workspace works with
|
176
|
-
#
|
176
|
+
# IAM Identity Center.
|
177
177
|
#
|
178
178
|
# @!attribute [rw] sso_client_id
|
179
|
-
# The ID of the
|
179
|
+
# The ID of the IAM Identity Center-managed application that is
|
180
180
|
# created by Amazon Managed Grafana.
|
181
181
|
# @return [String]
|
182
182
|
#
|
@@ -224,14 +224,14 @@ module Aws::ManagedGrafana
|
|
224
224
|
# }
|
225
225
|
#
|
226
226
|
# @!attribute [rw] key_name
|
227
|
-
# Specifies the name of the key
|
228
|
-
#
|
227
|
+
# Specifies the name of the key. Keynames must be unique to the
|
228
|
+
# workspace.
|
229
229
|
# @return [String]
|
230
230
|
#
|
231
231
|
# @!attribute [rw] key_role
|
232
232
|
# Specifies the permission level of the key.
|
233
233
|
#
|
234
|
-
# Valid
|
234
|
+
# Valid values: `VIEWER`\|`EDITOR`\|`ADMIN`
|
235
235
|
# @return [String]
|
236
236
|
#
|
237
237
|
# @!attribute [rw] seconds_to_live
|
@@ -240,7 +240,7 @@ module Aws::ManagedGrafana
|
|
240
240
|
# @return [Integer]
|
241
241
|
#
|
242
242
|
# @!attribute [rw] workspace_id
|
243
|
-
# The ID of the workspace
|
243
|
+
# The ID of the workspace to create an API key.
|
244
244
|
# @return [String]
|
245
245
|
#
|
246
246
|
# @see http://docs.aws.amazon.com/goto/WebAPI/grafana-2020-08-18/CreateWorkspaceApiKeyRequest AWS API Documentation
|
@@ -255,8 +255,8 @@ module Aws::ManagedGrafana
|
|
255
255
|
end
|
256
256
|
|
257
257
|
# @!attribute [rw] key
|
258
|
-
# The key token
|
259
|
-
#
|
258
|
+
# The key token. Use this value as a bearer token to authenticate HTTP
|
259
|
+
# requests to the workspace.
|
260
260
|
# @return [String]
|
261
261
|
#
|
262
262
|
# @!attribute [rw] key_name
|
@@ -284,13 +284,18 @@ module Aws::ManagedGrafana
|
|
284
284
|
# account_access_type: "CURRENT_ACCOUNT", # required, accepts CURRENT_ACCOUNT, ORGANIZATION
|
285
285
|
# authentication_providers: ["AWS_SSO"], # required, accepts AWS_SSO, SAML
|
286
286
|
# client_token: "ClientToken",
|
287
|
+
# configuration: "OverridableConfigurationJson",
|
287
288
|
# organization_role_name: "OrganizationRoleName",
|
288
289
|
# permission_type: "CUSTOMER_MANAGED", # required, accepts CUSTOMER_MANAGED, SERVICE_MANAGED
|
289
290
|
# stack_set_name: "StackSetName",
|
290
291
|
# tags: {
|
291
292
|
# "TagKey" => "TagValue",
|
292
293
|
# },
|
293
|
-
#
|
294
|
+
# vpc_configuration: {
|
295
|
+
# security_group_ids: ["SecurityGroupId"], # required
|
296
|
+
# subnet_ids: ["SubnetId"], # required
|
297
|
+
# },
|
298
|
+
# workspace_data_sources: ["AMAZON_OPENSEARCH_SERVICE"], # accepts AMAZON_OPENSEARCH_SERVICE, CLOUDWATCH, PROMETHEUS, XRAY, TIMESTREAM, SITEWISE, ATHENA, REDSHIFT, TWINMAKER
|
294
299
|
# workspace_description: "Description",
|
295
300
|
# workspace_name: "WorkspaceName",
|
296
301
|
# workspace_notification_destinations: ["SNS"], # accepts SNS
|
@@ -308,10 +313,10 @@ module Aws::ManagedGrafana
|
|
308
313
|
# @return [String]
|
309
314
|
#
|
310
315
|
# @!attribute [rw] authentication_providers
|
311
|
-
# Specifies whether this workspace uses SAML 2.0,
|
312
|
-
# Single Sign
|
313
|
-
# console within a workspace. For more information,
|
314
|
-
# authentication in Amazon Managed Grafana][1].
|
316
|
+
# Specifies whether this workspace uses SAML 2.0, IAM Identity Center
|
317
|
+
# (successor to Single Sign-On), or both to authenticate users for
|
318
|
+
# using the Grafana console within a workspace. For more information,
|
319
|
+
# see [User authentication in Amazon Managed Grafana][1].
|
315
320
|
#
|
316
321
|
#
|
317
322
|
#
|
@@ -326,6 +331,16 @@ module Aws::ManagedGrafana
|
|
326
331
|
# not need to pass this option.
|
327
332
|
# @return [String]
|
328
333
|
#
|
334
|
+
# @!attribute [rw] configuration
|
335
|
+
# The configuration string for the workspace that you create. For more
|
336
|
+
# information about the format and configuration options available,
|
337
|
+
# see [Working in your Grafana workspace][1].
|
338
|
+
#
|
339
|
+
#
|
340
|
+
#
|
341
|
+
# [1]: https://docs.aws.amazon.com/grafana/latest/userguide/AMG-configure-workspace.html
|
342
|
+
# @return [String]
|
343
|
+
#
|
329
344
|
# @!attribute [rw] organization_role_name
|
330
345
|
# The name of an IAM role that already exists to use with
|
331
346
|
# Organizations to access Amazon Web Services data sources and
|
@@ -336,9 +351,12 @@ module Aws::ManagedGrafana
|
|
336
351
|
# If you specify `SERVICE_MANAGED` on AWS Grafana console, Amazon
|
337
352
|
# Managed Grafana automatically creates the IAM roles and provisions
|
338
353
|
# the permissions that the workspace needs to use Amazon Web Services
|
339
|
-
# data sources and notification channels. In CLI mode, the
|
354
|
+
# data sources and notification channels. In the CLI mode, the
|
340
355
|
# permissionType `SERVICE_MANAGED` will not create the IAM role for
|
341
|
-
# you.
|
356
|
+
# you. The ability for the Amazon Managed Grafana to create the IAM
|
357
|
+
# role on behalf of the user is supported only in the Amazon Managed
|
358
|
+
# Grafana AWS console. Use only the `CUSTOMER_MANAGED` permission type
|
359
|
+
# when creating a workspace in the CLI.
|
342
360
|
#
|
343
361
|
# If you specify `CUSTOMER_MANAGED`, you will manage those roles and
|
344
362
|
# permissions yourself. If you are creating this workspace in a member
|
@@ -365,6 +383,11 @@ module Aws::ManagedGrafana
|
|
365
383
|
# The list of tags associated with the workspace.
|
366
384
|
# @return [Hash<String,String>]
|
367
385
|
#
|
386
|
+
# @!attribute [rw] vpc_configuration
|
387
|
+
# The configuration settings for an Amazon VPC that contains data
|
388
|
+
# sources for your Grafana workspace to connect to.
|
389
|
+
# @return [Types::VpcConfiguration]
|
390
|
+
#
|
368
391
|
# @!attribute [rw] workspace_data_sources
|
369
392
|
# Specify the Amazon Web Services data sources that you want to be
|
370
393
|
# queried in this workspace. Specifying these data sources here
|
@@ -415,10 +438,12 @@ module Aws::ManagedGrafana
|
|
415
438
|
:account_access_type,
|
416
439
|
:authentication_providers,
|
417
440
|
:client_token,
|
441
|
+
:configuration,
|
418
442
|
:organization_role_name,
|
419
443
|
:permission_type,
|
420
444
|
:stack_set_name,
|
421
445
|
:tags,
|
446
|
+
:vpc_configuration,
|
422
447
|
:workspace_data_sources,
|
423
448
|
:workspace_description,
|
424
449
|
:workspace_name,
|
@@ -467,7 +492,7 @@ module Aws::ManagedGrafana
|
|
467
492
|
end
|
468
493
|
|
469
494
|
# @!attribute [rw] key_name
|
470
|
-
# The name of the
|
495
|
+
# The name of the key that was deleted.
|
471
496
|
# @return [String]
|
472
497
|
#
|
473
498
|
# @!attribute [rw] workspace_id
|
@@ -547,6 +572,43 @@ module Aws::ManagedGrafana
|
|
547
572
|
include Aws::Structure
|
548
573
|
end
|
549
574
|
|
575
|
+
# @note When making an API call, you may pass DescribeWorkspaceConfigurationRequest
|
576
|
+
# data as a hash:
|
577
|
+
#
|
578
|
+
# {
|
579
|
+
# workspace_id: "WorkspaceId", # required
|
580
|
+
# }
|
581
|
+
#
|
582
|
+
# @!attribute [rw] workspace_id
|
583
|
+
# The ID of the workspace to get configuration information for.
|
584
|
+
# @return [String]
|
585
|
+
#
|
586
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/grafana-2020-08-18/DescribeWorkspaceConfigurationRequest AWS API Documentation
|
587
|
+
#
|
588
|
+
class DescribeWorkspaceConfigurationRequest < Struct.new(
|
589
|
+
:workspace_id)
|
590
|
+
SENSITIVE = []
|
591
|
+
include Aws::Structure
|
592
|
+
end
|
593
|
+
|
594
|
+
# @!attribute [rw] configuration
|
595
|
+
# The configuration string for the workspace that you requested. For
|
596
|
+
# more information about the format and configuration options
|
597
|
+
# available, see [Working in your Grafana workspace][1].
|
598
|
+
#
|
599
|
+
#
|
600
|
+
#
|
601
|
+
# [1]: https://docs.aws.amazon.com/grafana/latest/userguide/AMG-configure-workspace.html
|
602
|
+
# @return [String]
|
603
|
+
#
|
604
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/grafana-2020-08-18/DescribeWorkspaceConfigurationResponse AWS API Documentation
|
605
|
+
#
|
606
|
+
class DescribeWorkspaceConfigurationResponse < Struct.new(
|
607
|
+
:configuration)
|
608
|
+
SENSITIVE = []
|
609
|
+
include Aws::Structure
|
610
|
+
end
|
611
|
+
|
550
612
|
# @note When making an API call, you may pass DescribeWorkspaceRequest
|
551
613
|
# data as a hash:
|
552
614
|
#
|
@@ -620,18 +682,18 @@ module Aws::ManagedGrafana
|
|
620
682
|
# integrate the identity provider with this workspace. You can specify
|
621
683
|
# the metadata either by providing a URL to its location in the `url`
|
622
684
|
# parameter, or by specifying the full metadata in XML format in the
|
623
|
-
# `xml` parameter.
|
685
|
+
# `xml` parameter. Specifying both will cause an error.
|
624
686
|
#
|
625
687
|
# @note IdpMetadata is a union - when making an API calls you must set exactly one of the members.
|
626
688
|
#
|
627
689
|
# @note IdpMetadata is a union - when returned from an API call exactly one value will be set and the returned type will be a subclass of IdpMetadata corresponding to the set member.
|
628
690
|
#
|
629
691
|
# @!attribute [rw] url
|
630
|
-
# The URL of the location containing the metadata.
|
692
|
+
# The URL of the location containing the IdP metadata.
|
631
693
|
# @return [String]
|
632
694
|
#
|
633
695
|
# @!attribute [rw] xml
|
634
|
-
# The
|
696
|
+
# The full IdP metadata, in XML format.
|
635
697
|
# @return [String]
|
636
698
|
#
|
637
699
|
# @see http://docs.aws.amazon.com/goto/WebAPI/grafana-2020-08-18/IdpMetadata AWS API Documentation
|
@@ -700,9 +762,8 @@ module Aws::ManagedGrafana
|
|
700
762
|
#
|
701
763
|
# @!attribute [rw] user_type
|
702
764
|
# (Optional) If you specify `SSO_USER`, then only the permissions of
|
703
|
-
#
|
704
|
-
#
|
705
|
-
# are returned.
|
765
|
+
# IAM Identity Center users are returned. If you specify `SSO_GROUP`,
|
766
|
+
# only the permissions of IAM Identity Center groups are returned.
|
706
767
|
# @return [String]
|
707
768
|
#
|
708
769
|
# @!attribute [rw] workspace_id
|
@@ -817,11 +878,11 @@ module Aws::ManagedGrafana
|
|
817
878
|
end
|
818
879
|
|
819
880
|
# A structure containing the identity of one user or group and the
|
820
|
-
# `Admin` or `
|
881
|
+
# `Admin`, `Editor`, or `Viewer` role that they have.
|
821
882
|
#
|
822
883
|
# @!attribute [rw] role
|
823
|
-
# Specifies whether the user or group has the `Admin` or
|
824
|
-
# role.
|
884
|
+
# Specifies whether the user or group has the `Admin`, `Editor`, or
|
885
|
+
# `Viewer` role.
|
825
886
|
# @return [String]
|
826
887
|
#
|
827
888
|
# @!attribute [rw] user
|
@@ -863,7 +924,8 @@ module Aws::ManagedGrafana
|
|
863
924
|
|
864
925
|
# This structure defines which groups defined in the SAML assertion
|
865
926
|
# attribute are to be mapped to the Grafana `Admin` and `Editor` roles
|
866
|
-
# in the workspace.
|
927
|
+
# in the workspace. SAML authenticated users not part of `Admin` or
|
928
|
+
# `Editor` role groups have `Viewer` permission over the workspace.
|
867
929
|
#
|
868
930
|
# @note When making an API call, you may pass RoleValues
|
869
931
|
# data as a hash:
|
@@ -1258,10 +1320,10 @@ module Aws::ManagedGrafana
|
|
1258
1320
|
# }
|
1259
1321
|
#
|
1260
1322
|
# @!attribute [rw] authentication_providers
|
1261
|
-
# Specifies whether this workspace uses SAML 2.0,
|
1262
|
-
# Single Sign
|
1263
|
-
# console within a workspace. For more information,
|
1264
|
-
# authentication in Amazon Managed Grafana][1].
|
1323
|
+
# Specifies whether this workspace uses SAML 2.0, IAM Identity Center
|
1324
|
+
# (successor to Single Sign-On), or both to authenticate users for
|
1325
|
+
# using the Grafana console within a workspace. For more information,
|
1326
|
+
# see [User authentication in Amazon Managed Grafana][1].
|
1265
1327
|
#
|
1266
1328
|
#
|
1267
1329
|
#
|
@@ -1302,6 +1364,41 @@ module Aws::ManagedGrafana
|
|
1302
1364
|
include Aws::Structure
|
1303
1365
|
end
|
1304
1366
|
|
1367
|
+
# @note When making an API call, you may pass UpdateWorkspaceConfigurationRequest
|
1368
|
+
# data as a hash:
|
1369
|
+
#
|
1370
|
+
# {
|
1371
|
+
# configuration: "OverridableConfigurationJson", # required
|
1372
|
+
# workspace_id: "WorkspaceId", # required
|
1373
|
+
# }
|
1374
|
+
#
|
1375
|
+
# @!attribute [rw] configuration
|
1376
|
+
# The new configuration string for the workspace. For more information
|
1377
|
+
# about the format and configuration options available, see [Working
|
1378
|
+
# in your Grafana workspace][1].
|
1379
|
+
#
|
1380
|
+
#
|
1381
|
+
#
|
1382
|
+
# [1]: https://docs.aws.amazon.com/grafana/latest/userguide/AMG-configure-workspace.html
|
1383
|
+
# @return [String]
|
1384
|
+
#
|
1385
|
+
# @!attribute [rw] workspace_id
|
1386
|
+
# The ID of the workspace to update.
|
1387
|
+
# @return [String]
|
1388
|
+
#
|
1389
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/grafana-2020-08-18/UpdateWorkspaceConfigurationRequest AWS API Documentation
|
1390
|
+
#
|
1391
|
+
class UpdateWorkspaceConfigurationRequest < Struct.new(
|
1392
|
+
:configuration,
|
1393
|
+
:workspace_id)
|
1394
|
+
SENSITIVE = []
|
1395
|
+
include Aws::Structure
|
1396
|
+
end
|
1397
|
+
|
1398
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/grafana-2020-08-18/UpdateWorkspaceConfigurationResponse AWS API Documentation
|
1399
|
+
#
|
1400
|
+
class UpdateWorkspaceConfigurationResponse < Aws::EmptyStructure; end
|
1401
|
+
|
1305
1402
|
# @note When making an API call, you may pass UpdateWorkspaceRequest
|
1306
1403
|
# data as a hash:
|
1307
1404
|
#
|
@@ -1309,8 +1406,13 @@ module Aws::ManagedGrafana
|
|
1309
1406
|
# account_access_type: "CURRENT_ACCOUNT", # accepts CURRENT_ACCOUNT, ORGANIZATION
|
1310
1407
|
# organization_role_name: "OrganizationRoleName",
|
1311
1408
|
# permission_type: "CUSTOMER_MANAGED", # accepts CUSTOMER_MANAGED, SERVICE_MANAGED
|
1409
|
+
# remove_vpc_configuration: false,
|
1312
1410
|
# stack_set_name: "StackSetName",
|
1313
|
-
#
|
1411
|
+
# vpc_configuration: {
|
1412
|
+
# security_group_ids: ["SecurityGroupId"], # required
|
1413
|
+
# subnet_ids: ["SubnetId"], # required
|
1414
|
+
# },
|
1415
|
+
# workspace_data_sources: ["AMAZON_OPENSEARCH_SERVICE"], # accepts AMAZON_OPENSEARCH_SERVICE, CLOUDWATCH, PROMETHEUS, XRAY, TIMESTREAM, SITEWISE, ATHENA, REDSHIFT, TWINMAKER
|
1314
1416
|
# workspace_description: "Description",
|
1315
1417
|
# workspace_id: "WorkspaceId", # required
|
1316
1418
|
# workspace_name: "WorkspaceName",
|
@@ -1355,11 +1457,23 @@ module Aws::ManagedGrafana
|
|
1355
1457
|
# [1]: https://docs.aws.amazon.com/grafana/latest/userguide/AMG-manage-permissions.html
|
1356
1458
|
# @return [String]
|
1357
1459
|
#
|
1460
|
+
# @!attribute [rw] remove_vpc_configuration
|
1461
|
+
# Whether to remove the VPC configuration from the workspace.
|
1462
|
+
#
|
1463
|
+
# Setting this to `true` and providing a `vpcConfiguration` to set
|
1464
|
+
# will return an error.
|
1465
|
+
# @return [Boolean]
|
1466
|
+
#
|
1358
1467
|
# @!attribute [rw] stack_set_name
|
1359
1468
|
# The name of the CloudFormation stack set to use to generate IAM
|
1360
1469
|
# roles to be used for this workspace.
|
1361
1470
|
# @return [String]
|
1362
1471
|
#
|
1472
|
+
# @!attribute [rw] vpc_configuration
|
1473
|
+
# The configuration settings for an Amazon VPC that contains data
|
1474
|
+
# sources for your Grafana workspace to connect to.
|
1475
|
+
# @return [Types::VpcConfiguration]
|
1476
|
+
#
|
1363
1477
|
# @!attribute [rw] workspace_data_sources
|
1364
1478
|
# Specify the Amazon Web Services data sources that you want to be
|
1365
1479
|
# queried in this workspace. Specifying these data sources here
|
@@ -1415,7 +1529,9 @@ module Aws::ManagedGrafana
|
|
1415
1529
|
:account_access_type,
|
1416
1530
|
:organization_role_name,
|
1417
1531
|
:permission_type,
|
1532
|
+
:remove_vpc_configuration,
|
1418
1533
|
:stack_set_name,
|
1534
|
+
:vpc_configuration,
|
1419
1535
|
:workspace_data_sources,
|
1420
1536
|
:workspace_description,
|
1421
1537
|
:workspace_id,
|
@@ -1513,6 +1629,36 @@ module Aws::ManagedGrafana
|
|
1513
1629
|
include Aws::Structure
|
1514
1630
|
end
|
1515
1631
|
|
1632
|
+
# The configuration settings for an Amazon VPC that contains data
|
1633
|
+
# sources for your Grafana workspace to connect to.
|
1634
|
+
#
|
1635
|
+
# @note When making an API call, you may pass VpcConfiguration
|
1636
|
+
# data as a hash:
|
1637
|
+
#
|
1638
|
+
# {
|
1639
|
+
# security_group_ids: ["SecurityGroupId"], # required
|
1640
|
+
# subnet_ids: ["SubnetId"], # required
|
1641
|
+
# }
|
1642
|
+
#
|
1643
|
+
# @!attribute [rw] security_group_ids
|
1644
|
+
# The list of Amazon EC2 security group IDs attached to the Amazon VPC
|
1645
|
+
# for your Grafana workspace to connect.
|
1646
|
+
# @return [Array<String>]
|
1647
|
+
#
|
1648
|
+
# @!attribute [rw] subnet_ids
|
1649
|
+
# The list of Amazon EC2 subnet IDs created in the Amazon VPC for your
|
1650
|
+
# Grafana workspace to connect.
|
1651
|
+
# @return [Array<String>]
|
1652
|
+
#
|
1653
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/grafana-2020-08-18/VpcConfiguration AWS API Documentation
|
1654
|
+
#
|
1655
|
+
class VpcConfiguration < Struct.new(
|
1656
|
+
:security_group_ids,
|
1657
|
+
:subnet_ids)
|
1658
|
+
SENSITIVE = []
|
1659
|
+
include Aws::Structure
|
1660
|
+
end
|
1661
|
+
|
1516
1662
|
# A structure containing information about an Amazon Managed Grafana
|
1517
1663
|
# workspace in your account.
|
1518
1664
|
#
|
@@ -1526,8 +1672,8 @@ module Aws::ManagedGrafana
|
|
1526
1672
|
# @return [String]
|
1527
1673
|
#
|
1528
1674
|
# @!attribute [rw] authentication
|
1529
|
-
# A structure that describes whether the workspace uses SAML,
|
1530
|
-
#
|
1675
|
+
# A structure that describes whether the workspace uses SAML, IAM
|
1676
|
+
# Identity Center, or both methods for user authentication.
|
1531
1677
|
# @return [Types::AuthenticationSummary]
|
1532
1678
|
#
|
1533
1679
|
# @!attribute [rw] created
|
@@ -1637,6 +1783,11 @@ module Aws::ManagedGrafana
|
|
1637
1783
|
# The list of tags associated with the workspace.
|
1638
1784
|
# @return [Hash<String,String>]
|
1639
1785
|
#
|
1786
|
+
# @!attribute [rw] vpc_configuration
|
1787
|
+
# The configuration for connecting to data sources in a private VPC
|
1788
|
+
# (Amazon Virtual Private Cloud).
|
1789
|
+
# @return [Types::VpcConfiguration]
|
1790
|
+
#
|
1640
1791
|
# @!attribute [rw] workspace_role_arn
|
1641
1792
|
# The IAM role that grants permissions to the Amazon Web Services
|
1642
1793
|
# resources that the workspace will view data from. This role must
|
@@ -1667,6 +1818,7 @@ module Aws::ManagedGrafana
|
|
1667
1818
|
:stack_set_name,
|
1668
1819
|
:status,
|
1669
1820
|
:tags,
|
1821
|
+
:vpc_configuration,
|
1670
1822
|
:workspace_role_arn)
|
1671
1823
|
SENSITIVE = [:description, :name, :organization_role_name, :organizational_units, :workspace_role_arn]
|
1672
1824
|
include Aws::Structure
|
@@ -13,9 +13,13 @@ require 'aws-sigv4'
|
|
13
13
|
|
14
14
|
require_relative 'aws-sdk-managedgrafana/types'
|
15
15
|
require_relative 'aws-sdk-managedgrafana/client_api'
|
16
|
+
require_relative 'aws-sdk-managedgrafana/plugins/endpoints.rb'
|
16
17
|
require_relative 'aws-sdk-managedgrafana/client'
|
17
18
|
require_relative 'aws-sdk-managedgrafana/errors'
|
18
19
|
require_relative 'aws-sdk-managedgrafana/resource'
|
20
|
+
require_relative 'aws-sdk-managedgrafana/endpoint_parameters'
|
21
|
+
require_relative 'aws-sdk-managedgrafana/endpoint_provider'
|
22
|
+
require_relative 'aws-sdk-managedgrafana/endpoints'
|
19
23
|
require_relative 'aws-sdk-managedgrafana/customizations'
|
20
24
|
|
21
25
|
# This module provides support for Amazon Managed Grafana. This module is available in the
|
@@ -48,6 +52,6 @@ require_relative 'aws-sdk-managedgrafana/customizations'
|
|
48
52
|
# @!group service
|
49
53
|
module Aws::ManagedGrafana
|
50
54
|
|
51
|
-
GEM_VERSION = '1.
|
55
|
+
GEM_VERSION = '1.10.0'
|
52
56
|
|
53
57
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-managedgrafana
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.10.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: 2022-
|
11
|
+
date: 2022-11-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: '3'
|
20
20
|
- - ">="
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 3.
|
22
|
+
version: 3.165.0
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
version: '3'
|
30
30
|
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 3.
|
32
|
+
version: 3.165.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: aws-sigv4
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -59,7 +59,11 @@ files:
|
|
59
59
|
- lib/aws-sdk-managedgrafana/client.rb
|
60
60
|
- lib/aws-sdk-managedgrafana/client_api.rb
|
61
61
|
- lib/aws-sdk-managedgrafana/customizations.rb
|
62
|
+
- lib/aws-sdk-managedgrafana/endpoint_parameters.rb
|
63
|
+
- lib/aws-sdk-managedgrafana/endpoint_provider.rb
|
64
|
+
- lib/aws-sdk-managedgrafana/endpoints.rb
|
62
65
|
- lib/aws-sdk-managedgrafana/errors.rb
|
66
|
+
- lib/aws-sdk-managedgrafana/plugins/endpoints.rb
|
63
67
|
- lib/aws-sdk-managedgrafana/resource.rb
|
64
68
|
- lib/aws-sdk-managedgrafana/types.rb
|
65
69
|
homepage: https://github.com/aws/aws-sdk-ruby
|