Skip to content

Commit

Permalink
Updated API models and rebuilt service gems.
Browse files Browse the repository at this point in the history
  • Loading branch information
AWS SDK for Ruby authored and Nobody committed May 13, 2022
1 parent 08b284d commit 78393ae
Show file tree
Hide file tree
Showing 8 changed files with 424 additions and 9 deletions.
117 changes: 116 additions & 1 deletion apis/grafana/2020-08-18/api-2.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,25 @@
],
"idempotent":true
},
"CreateWorkspaceApiKey":{
"name":"CreateWorkspaceApiKey",
"http":{
"method":"POST",
"requestUri":"/workspaces/{workspaceId}/apikeys",
"responseCode":200
},
"input":{"shape":"CreateWorkspaceApiKeyRequest"},
"output":{"shape":"CreateWorkspaceApiKeyResponse"},
"errors":[
{"shape":"ResourceNotFoundException"},
{"shape":"ThrottlingException"},
{"shape":"ConflictException"},
{"shape":"ValidationException"},
{"shape":"AccessDeniedException"},
{"shape":"InternalServerException"},
{"shape":"ServiceQuotaExceededException"}
]
},
"DeleteWorkspace":{
"name":"DeleteWorkspace",
"http":{
Expand All @@ -67,6 +86,24 @@
],
"idempotent":true
},
"DeleteWorkspaceApiKey":{
"name":"DeleteWorkspaceApiKey",
"http":{
"method":"DELETE",
"requestUri":"/workspaces/{workspaceId}/apikeys/{keyName}",
"responseCode":200
},
"input":{"shape":"DeleteWorkspaceApiKeyRequest"},
"output":{"shape":"DeleteWorkspaceApiKeyResponse"},
"errors":[
{"shape":"ResourceNotFoundException"},
{"shape":"ThrottlingException"},
{"shape":"ConflictException"},
{"shape":"ValidationException"},
{"shape":"AccessDeniedException"},
{"shape":"InternalServerException"}
]
},
"DescribeWorkspace":{
"name":"DescribeWorkspace",
"http":{
Expand Down Expand Up @@ -285,6 +322,15 @@
"type":"list",
"member":{"shape":"AllowedOrganization"}
},
"ApiKeyName":{
"type":"string",
"max":100,
"min":1
},
"ApiKeyToken":{
"type":"string",
"sensitive":true
},
"AssertionAttribute":{
"type":"string",
"max":256,
Expand Down Expand Up @@ -387,6 +433,44 @@
},
"exception":true
},
"CreateWorkspaceApiKeyRequest":{
"type":"structure",
"required":[
"keyName",
"keyRole",
"secondsToLive",
"workspaceId"
],
"members":{
"keyName":{"shape":"ApiKeyName"},
"keyRole":{"shape":"String"},
"secondsToLive":{"shape":"CreateWorkspaceApiKeyRequestSecondsToLiveInteger"},
"workspaceId":{
"shape":"WorkspaceId",
"location":"uri",
"locationName":"workspaceId"
}
}
},
"CreateWorkspaceApiKeyRequestSecondsToLiveInteger":{
"type":"integer",
"box":true,
"max":2592000,
"min":1
},
"CreateWorkspaceApiKeyResponse":{
"type":"structure",
"required":[
"key",
"keyName",
"workspaceId"
],
"members":{
"key":{"shape":"ApiKeyToken"},
"keyName":{"shape":"ApiKeyName"},
"workspaceId":{"shape":"WorkspaceId"}
}
},
"CreateWorkspaceRequest":{
"type":"structure",
"required":[
Expand Down Expand Up @@ -437,6 +521,36 @@
"type":"list",
"member":{"shape":"DataSourceType"}
},
"DeleteWorkspaceApiKeyRequest":{
"type":"structure",
"required":[
"keyName",
"workspaceId"
],
"members":{
"keyName":{
"shape":"ApiKeyName",
"location":"uri",
"locationName":"keyName"
},
"workspaceId":{
"shape":"WorkspaceId",
"location":"uri",
"locationName":"workspaceId"
}
}
},
"DeleteWorkspaceApiKeyResponse":{
"type":"structure",
"required":[
"keyName",
"workspaceId"
],
"members":{
"keyName":{"shape":"ApiKeyName"},
"workspaceId":{"shape":"WorkspaceId"}
}
},
"DeleteWorkspaceRequest":{
"type":"structure",
"required":["workspaceId"],
Expand Down Expand Up @@ -741,7 +855,8 @@
"type":"string",
"enum":[
"ADMIN",
"EDITOR"
"EDITOR",
"VIEWER"
]
},
"RoleValue":{
Expand Down
48 changes: 48 additions & 0 deletions apis/grafana/2020-08-18/docs-2.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
"operations": {
"AssociateLicense": "<p>Assigns a Grafana Enterprise license to a workspace. Upgrading to Grafana Enterprise incurs additional fees. For more information, see <a href=\"https://docs.aws.amazon.com/grafana/latest/userguide/upgrade-to-Grafana-Enterprise.html\">Upgrade a workspace to Grafana Enterprise</a>.</p>",
"CreateWorkspace": "<p>Creates a <i>workspace</i>. In a workspace, you can create Grafana dashboards and visualizations to analyze your metrics, logs, and traces. You don't have to build, package, or deploy any hardware to run the Grafana server.</p> <p>Don't use <code>CreateWorkspace</code> to modify an existing workspace. Instead, use <a href=\"https://docs.aws.amazon.com/grafana/latest/APIReference/API_UpdateWorkspace.html\">UpdateWorkspace</a>.</p>",
"CreateWorkspaceApiKey": "<p>Creates an API key for the workspace. This key can be used to authenticate requests sent to the workspace's HTTP API. See <a href=\" https://docs.aws.amazon.com/grafana/latest/userguide/Using-Grafana-APIs.html\"> https://docs.aws.amazon.com/grafana/latest/userguide/Using-Grafana-APIs.html</a> for available APIs and example requests.</p>",
"DeleteWorkspace": "<p>Deletes an Amazon Managed Grafana workspace.</p>",
"DeleteWorkspaceApiKey": "<p>Deletes an API key for a workspace.</p>",
"DescribeWorkspace": "<p>Displays information about one Amazon Managed Grafana workspace.</p>",
"DescribeWorkspaceAuthentication": "<p>Displays information about the authentication methods used in one Amazon Managed Grafana workspace.</p>",
"DisassociateLicense": "<p>Removes the Grafana Enterprise license from a workspace.</p>",
Expand Down Expand Up @@ -43,6 +45,21 @@
"SamlConfiguration$allowedOrganizations": "<p>Lists which organizations defined in the SAML assertion are allowed to use the Amazon Managed Grafana workspace. If this is empty, all organizations in the assertion attribute have access.</p>"
}
},
"ApiKeyName": {
"base": null,
"refs": {
"CreateWorkspaceApiKeyRequest$keyName": "<p>Specifies the name of the key to create. Key names must be unique to the workspace.</p>",
"CreateWorkspaceApiKeyResponse$keyName": "<p>The name of the key that was created.</p>",
"DeleteWorkspaceApiKeyRequest$keyName": "<p>The name of the API key to delete.</p>",
"DeleteWorkspaceApiKeyResponse$keyName": "<p>The name of the API key that was deleted.</p>"
}
},
"ApiKeyToken": {
"base": null,
"refs": {
"CreateWorkspaceApiKeyResponse$key": "<p>The key token that was created. Use this value as a bearer token to authenticate HTTP requests to the workspace.</p>"
}
},
"AssertionAttribute": {
"base": null,
"refs": {
Expand Down Expand Up @@ -122,6 +139,22 @@
"refs": {
}
},
"CreateWorkspaceApiKeyRequest": {
"base": null,
"refs": {
}
},
"CreateWorkspaceApiKeyRequestSecondsToLiveInteger": {
"base": null,
"refs": {
"CreateWorkspaceApiKeyRequest$secondsToLive": "<p>Specifies the time in seconds until the key expires. Keys can be valid for up to 30 days.</p>"
}
},
"CreateWorkspaceApiKeyResponse": {
"base": null,
"refs": {
}
},
"CreateWorkspaceRequest": {
"base": null,
"refs": {
Expand All @@ -146,6 +179,16 @@
"WorkspaceDescription$dataSources": "<p>Specifies the Amazon Web Services data sources that have been configured to have IAM roles and permissions created to allow Amazon Managed Grafana to read data from these sources.</p>"
}
},
"DeleteWorkspaceApiKeyRequest": {
"base": null,
"refs": {
}
},
"DeleteWorkspaceApiKeyResponse": {
"base": null,
"refs": {
}
},
"DeleteWorkspaceRequest": {
"base": null,
"refs": {
Expand Down Expand Up @@ -448,6 +491,7 @@
"ConflictException$message": "<p>A description of the error.</p>",
"ConflictException$resourceId": "<p>The ID of the resource that is associated with the error.</p>",
"ConflictException$resourceType": "<p>The type of the resource that is associated with the error.</p>",
"CreateWorkspaceApiKeyRequest$keyRole": "<p>Specifies the permission level of the key.</p> <p>Valid Values: <code>VIEWER</code> | <code>EDITOR</code> | <code>ADMIN</code> </p>",
"IdpMetadata$xml": "<p>The actual full metadata file, in XML format.</p>",
"InternalServerException$message": "<p>A description of the error.</p>",
"ListTagsForResourceRequest$resourceArn": "<p>The ARN of the resource the list of tags are associated with.</p>",
Expand Down Expand Up @@ -660,6 +704,10 @@
"base": null,
"refs": {
"AssociateLicenseRequest$workspaceId": "<p>The ID of the workspace to associate the license with.</p>",
"CreateWorkspaceApiKeyRequest$workspaceId": "<p>The ID of the workspace in which to create an API key.</p>",
"CreateWorkspaceApiKeyResponse$workspaceId": "<p>The ID of the workspace that the key is valid for.</p>",
"DeleteWorkspaceApiKeyRequest$workspaceId": "<p>The ID of the workspace to delete.</p>",
"DeleteWorkspaceApiKeyResponse$workspaceId": "<p>The ID of the workspace where the key was deleted.</p>",
"DeleteWorkspaceRequest$workspaceId": "<p>The ID of the workspace to delete.</p>",
"DescribeWorkspaceAuthenticationRequest$workspaceId": "<p>The ID of the workspace to return authentication information about.</p>",
"DescribeWorkspaceRequest$workspaceId": "<p>The ID of the workspace to display information about.</p>",
Expand Down
5 changes: 5 additions & 0 deletions gems/aws-sdk-managedgrafana/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
Unreleased Changes
------------------

1.8.0 (2022-05-13)
------------------

* Feature - This release adds APIs for creating and deleting API keys in an Amazon Managed Grafana workspace.

1.7.0 (2022-03-31)
------------------

Expand Down
2 changes: 1 addition & 1 deletion gems/aws-sdk-managedgrafana/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.7.0
1.8.0
2 changes: 1 addition & 1 deletion gems/aws-sdk-managedgrafana/lib/aws-sdk-managedgrafana.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,6 @@
# @!group service
module Aws::ManagedGrafana

GEM_VERSION = '1.7.0'
GEM_VERSION = '1.8.0'

end
Loading

0 comments on commit 78393ae

Please sign in to comment.