Skip to content

Commit

Permalink
Adds support for the new GrafanaToken as part of the Amazon Managed G…
Browse files Browse the repository at this point in the history
…rafana Enterprise plugins upgrade to associate your AWS account with a Grafana Labs account.
  • Loading branch information
aws-sdk-dotnet-automation committed Mar 7, 2024
1 parent 19f1fac commit 08c7ce2
Show file tree
Hide file tree
Showing 13 changed files with 229 additions and 32 deletions.
13 changes: 13 additions & 0 deletions generator/ServiceModels/grafana/grafana-2020-08-18.api.json
Original file line number Diff line number Diff line change
Expand Up @@ -405,6 +405,11 @@
"workspaceId"
],
"members":{
"grafanaToken":{
"shape":"GrafanaToken",
"location":"header",
"locationName":"Grafana-Token"
},
"licenseType":{
"shape":"LicenseType",
"location":"uri",
Expand Down Expand Up @@ -723,6 +728,11 @@
"max":2048,
"min":1
},
"GrafanaToken":{
"type":"string",
"max":36,
"min":1
},
"GrafanaVersion":{
"type":"string",
"max":255,
Expand Down Expand Up @@ -1437,6 +1447,7 @@
"endpoint":{"shape":"Endpoint"},
"freeTrialConsumed":{"shape":"Boolean"},
"freeTrialExpiration":{"shape":"Timestamp"},
"grafanaToken":{"shape":"GrafanaToken"},
"grafanaVersion":{"shape":"GrafanaVersion"},
"id":{"shape":"WorkspaceId"},
"licenseExpiration":{"shape":"Timestamp"},
Expand Down Expand Up @@ -1502,8 +1513,10 @@
"created":{"shape":"Timestamp"},
"description":{"shape":"Description"},
"endpoint":{"shape":"Endpoint"},
"grafanaToken":{"shape":"GrafanaToken"},
"grafanaVersion":{"shape":"GrafanaVersion"},
"id":{"shape":"WorkspaceId"},
"licenseType":{"shape":"LicenseType"},
"modified":{"shape":"Timestamp"},
"name":{"shape":"WorkspaceName"},
"notificationDestinations":{"shape":"NotificationDestinationsList"},
Expand Down
27 changes: 18 additions & 9 deletions generator/ServiceModels/grafana/grafana-2020-08-18.docs.json
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@
"refs": {
"AuthenticationDescription$providers": "<p>Specifies whether this workspace uses IAM Identity Center, SAML, or both methods to authenticate users to use the Grafana console in the Amazon Managed Grafana workspace.</p>",
"AuthenticationSummary$providers": "<p>Specifies whether the workspace uses SAML, IAM Identity Center, or both methods for user authentication.</p>",
"CreateWorkspaceRequest$authenticationProviders": "<p>Specifies whether this workspace uses SAML 2.0, IAM Identity Center (successor to Single Sign-On), or both to authenticate users for using the Grafana console within a workspace. For more information, see <a href=\"https://docs.aws.amazon.com/grafana/latest/userguide/authentication-in-AMG.html\">User authentication in Amazon Managed Grafana</a>.</p>",
"UpdateWorkspaceAuthenticationRequest$authenticationProviders": "<p>Specifies whether this workspace uses SAML 2.0, IAM Identity Center (successor to Single Sign-On), or both to authenticate users for using the Grafana console within a workspace. For more information, see <a href=\"https://docs.aws.amazon.com/grafana/latest/userguide/authentication-in-AMG.html\">User authentication in Amazon Managed Grafana</a>.</p>"
"CreateWorkspaceRequest$authenticationProviders": "<p>Specifies whether this workspace uses SAML 2.0, IAM Identity Center, or both to authenticate users for using the Grafana console within a workspace. For more information, see <a href=\"https://docs.aws.amazon.com/grafana/latest/userguide/authentication-in-AMG.html\">User authentication in Amazon Managed Grafana</a>.</p>",
"UpdateWorkspaceAuthenticationRequest$authenticationProviders": "<p>Specifies whether this workspace uses SAML 2.0, IAM Identity Center, or both to authenticate users for using the Grafana console within a workspace. For more information, see <a href=\"https://docs.aws.amazon.com/grafana/latest/userguide/authentication-in-AMG.html\">User authentication in Amazon Managed Grafana</a>.</p>"
}
},
"AuthenticationSummary": {
Expand All @@ -130,7 +130,7 @@
"refs": {
"UpdateWorkspaceRequest$removeNetworkAccessConfiguration": "<p>Whether to remove the network access configuration from the workspace.</p> <p>Setting this to <code>true</code> and providing a <code>networkAccessControl</code> to set will return an error.</p> <p>If you remove this configuration by setting this to <code>true</code>, then all IP addresses and VPC endpoints will be allowed. Standard Grafana authentication and authorization will still be required.</p>",
"UpdateWorkspaceRequest$removeVpcConfiguration": "<p>Whether to remove the VPC configuration from the workspace.</p> <p>Setting this to <code>true</code> and providing a <code>vpcConfiguration</code> to set will return an error.</p>",
"WorkspaceDescription$freeTrialConsumed": "<p>Specifies whether this workspace has already fully used its free trial for Grafana Enterprise.</p>"
"WorkspaceDescription$freeTrialConsumed": "<p>Specifies whether this workspace has already fully used its free trial for Grafana Enterprise.</p> <note> <p>Amazon Managed Grafana workspaces no longer support Grafana Enterprise free trials.</p> </note>"
}
},
"ClientToken": {
Expand Down Expand Up @@ -260,13 +260,21 @@
"WorkspaceSummary$endpoint": "<p>The URL endpoint to use to access the Grafana console in the workspace.</p>"
}
},
"GrafanaToken": {
"base": null,
"refs": {
"AssociateLicenseRequest$grafanaToken": "<p>A token from Grafana Labs that ties your Amazon Web Services account with a Grafana Labs account. For more information, see <a href=\"https://docs.aws.amazon.com/grafana/latest/userguide/upgrade-to-Grafana-Enterprise.html#AMG-workspace-register-enterprise\">Register with Grafana Labs</a>.</p>",
"WorkspaceDescription$grafanaToken": "<p>The token that ties this workspace to a Grafana Labs account. For more information, see <a href=\"https://docs.aws.amazon.com/grafana/latest/userguide/upgrade-to-Grafana-Enterprise.html#AMG-workspace-register-enterprise\">Register with Grafana Labs</a>.</p>",
"WorkspaceSummary$grafanaToken": "<p>The token that ties this workspace to a Grafana Labs account. For more information, see <a href=\"https://docs.aws.amazon.com/grafana/latest/userguide/upgrade-to-Grafana-Enterprise.html#AMG-workspace-register-enterprise\">Register with Grafana Labs</a>.</p>"
}
},
"GrafanaVersion": {
"base": null,
"refs": {
"CreateWorkspaceRequest$grafanaVersion": "<p>Specifies the version of Grafana to support in the new workspace.</p> <p>To get a list of supported version, use the <code>ListVersions</code> operation.</p>",
"CreateWorkspaceRequest$grafanaVersion": "<p>Specifies the version of Grafana to support in the new workspace. If not specified, defaults to the latest version (for example, 9.4).</p> <p>To get a list of supported versions, use the <code>ListVersions</code> operation.</p>",
"DescribeWorkspaceConfigurationResponse$grafanaVersion": "<p>The supported Grafana version for the workspace.</p>",
"GrafanaVersionList$member": null,
"UpdateWorkspaceConfigurationRequest$grafanaVersion": "<p>Specifies the version of Grafana to support in the new workspace.</p> <p>Can only be used to upgrade (for example, from 8.4 to 9.4), not downgrade (for example, from 9.4 to 8.4).</p> <p>To know what versions are available to upgrade to for a specific workspace, see the <code>ListVersions</code> operation.</p>",
"UpdateWorkspaceConfigurationRequest$grafanaVersion": "<p>Specifies the version of Grafana to support in the workspace. If not specified, keeps the current version of the workspace.</p> <p>Can only be used to upgrade (for example, from 8.4 to 9.4), not downgrade (for example, from 9.4 to 8.4).</p> <p>To know what versions are available to upgrade to for a specific workspace, see the <a href=\"https://docs.aws.amazon.com/grafana/latest/APIReference/API_ListVersions.html\">ListVersions</a> operation.</p>",
"WorkspaceDescription$grafanaVersion": "<p>The version of Grafana supported in this workspace.</p>",
"WorkspaceSummary$grafanaVersion": "<p>The Grafana version that the workspace is running.</p>"
}
Expand Down Expand Up @@ -312,9 +320,10 @@
"LicenseType": {
"base": null,
"refs": {
"AssociateLicenseRequest$licenseType": "<p>The type of license to associate with the workspace.</p>",
"AssociateLicenseRequest$licenseType": "<p>The type of license to associate with the workspace.</p> <note> <p>Amazon Managed Grafana workspaces no longer support Grafana Enterprise free trials.</p> </note>",
"DisassociateLicenseRequest$licenseType": "<p>The type of license to remove from the workspace.</p>",
"WorkspaceDescription$licenseType": "<p>Specifies whether this workspace has a full Grafana Enterprise license or a free trial license.</p>"
"WorkspaceDescription$licenseType": "<p>Specifies whether this workspace has a full Grafana Enterprise license.</p> <note> <p>Amazon Managed Grafana workspaces no longer support Grafana Enterprise free trials.</p> </note>",
"WorkspaceSummary$licenseType": "<p>Specifies whether this workspace has a full Grafana Enterprise license.</p> <note> <p>Amazon Managed Grafana workspaces no longer support Grafana Enterprise free trials.</p> </note>"
}
},
"ListPermissionsRequest": {
Expand Down Expand Up @@ -657,8 +666,8 @@
"base": null,
"refs": {
"WorkspaceDescription$created": "<p>The date that the workspace was created.</p>",
"WorkspaceDescription$freeTrialExpiration": "<p>If this workspace is currently in the free trial period for Grafana Enterprise, this value specifies when that free trial ends.</p>",
"WorkspaceDescription$licenseExpiration": "<p>If this workspace has a full Grafana Enterprise license, this specifies when the license ends and will need to be renewed.</p>",
"WorkspaceDescription$freeTrialExpiration": "<p>If this workspace is currently in the free trial period for Grafana Enterprise, this value specifies when that free trial ends.</p> <note> <p>Amazon Managed Grafana workspaces no longer support Grafana Enterprise free trials.</p> </note>",
"WorkspaceDescription$licenseExpiration": "<p>If this workspace has a full Grafana Enterprise license purchased through Amazon Web Services Marketplace, this specifies when the license ends and will need to be renewed. Purchasing the Enterprise plugins option through Amazon Managed Grafana does not have an expiration. It is valid until the license is removed.</p>",
"WorkspaceDescription$modified": "<p>The most recent date that the workspace was modified.</p>",
"WorkspaceSummary$created": "<p>The date that the workspace was created.</p>",
"WorkspaceSummary$modified": "<p>The most recent date that the workspace was modified.</p>"
Expand Down
41 changes: 32 additions & 9 deletions generator/ServiceModels/grafana/grafana-2020-08-18.normal.json
Original file line number Diff line number Diff line change
Expand Up @@ -444,9 +444,15 @@
"workspaceId"
],
"members":{
"grafanaToken":{
"shape":"GrafanaToken",
"documentation":"<p>A token from Grafana Labs that ties your Amazon Web Services account with a Grafana Labs account. For more information, see <a href=\"https://docs.aws.amazon.com/grafana/latest/userguide/upgrade-to-Grafana-Enterprise.html#AMG-workspace-register-enterprise\">Register with Grafana Labs</a>.</p>",
"location":"header",
"locationName":"Grafana-Token"
},
"licenseType":{
"shape":"LicenseType",
"documentation":"<p>The type of license to associate with the workspace.</p>",
"documentation":"<p>The type of license to associate with the workspace.</p> <note> <p>Amazon Managed Grafana workspaces no longer support Grafana Enterprise free trials.</p> </note>",
"location":"uri",
"locationName":"licenseType"
},
Expand Down Expand Up @@ -630,7 +636,7 @@
},
"authenticationProviders":{
"shape":"AuthenticationProviders",
"documentation":"<p>Specifies whether this workspace uses SAML 2.0, IAM Identity Center (successor to Single Sign-On), or both to authenticate users for using the Grafana console within a workspace. For more information, see <a href=\"https://docs.aws.amazon.com/grafana/latest/userguide/authentication-in-AMG.html\">User authentication in Amazon Managed Grafana</a>.</p>"
"documentation":"<p>Specifies whether this workspace uses SAML 2.0, IAM Identity Center, or both to authenticate users for using the Grafana console within a workspace. For more information, see <a href=\"https://docs.aws.amazon.com/grafana/latest/userguide/authentication-in-AMG.html\">User authentication in Amazon Managed Grafana</a>.</p>"
},
"clientToken":{
"shape":"ClientToken",
Expand All @@ -644,7 +650,7 @@
},
"grafanaVersion":{
"shape":"GrafanaVersion",
"documentation":"<p>Specifies the version of Grafana to support in the new workspace.</p> <p>To get a list of supported version, use the <code>ListVersions</code> operation.</p>"
"documentation":"<p>Specifies the version of Grafana to support in the new workspace. If not specified, defaults to the latest version (for example, 9.4).</p> <p>To get a list of supported versions, use the <code>ListVersions</code> operation.</p>"
},
"networkAccessControl":{
"shape":"NetworkAccessConfiguration",
Expand Down Expand Up @@ -897,6 +903,11 @@
"max":2048,
"min":1
},
"GrafanaToken":{
"type":"string",
"max":36,
"min":1
},
"GrafanaVersion":{
"type":"string",
"max":255,
Expand Down Expand Up @@ -1596,7 +1607,7 @@
"members":{
"authenticationProviders":{
"shape":"AuthenticationProviders",
"documentation":"<p>Specifies whether this workspace uses SAML 2.0, IAM Identity Center (successor to Single Sign-On), or both to authenticate users for using the Grafana console within a workspace. For more information, see <a href=\"https://docs.aws.amazon.com/grafana/latest/userguide/authentication-in-AMG.html\">User authentication in Amazon Managed Grafana</a>.</p>"
"documentation":"<p>Specifies whether this workspace uses SAML 2.0, IAM Identity Center, or both to authenticate users for using the Grafana console within a workspace. For more information, see <a href=\"https://docs.aws.amazon.com/grafana/latest/userguide/authentication-in-AMG.html\">User authentication in Amazon Managed Grafana</a>.</p>"
},
"samlConfiguration":{
"shape":"SamlConfiguration",
Expand Down Expand Up @@ -1634,7 +1645,7 @@
},
"grafanaVersion":{
"shape":"GrafanaVersion",
"documentation":"<p>Specifies the version of Grafana to support in the new workspace.</p> <p>Can only be used to upgrade (for example, from 8.4 to 9.4), not downgrade (for example, from 9.4 to 8.4).</p> <p>To know what versions are available to upgrade to for a specific workspace, see the <code>ListVersions</code> operation.</p>"
"documentation":"<p>Specifies the version of Grafana to support in the workspace. If not specified, keeps the current version of the workspace.</p> <p>Can only be used to upgrade (for example, from 8.4 to 9.4), not downgrade (for example, from 9.4 to 8.4).</p> <p>To know what versions are available to upgrade to for a specific workspace, see the <a href=\"https://docs.aws.amazon.com/grafana/latest/APIReference/API_ListVersions.html\">ListVersions</a> operation.</p>"
},
"workspaceId":{
"shape":"WorkspaceId",
Expand Down Expand Up @@ -1880,11 +1891,15 @@
},
"freeTrialConsumed":{
"shape":"Boolean",
"documentation":"<p>Specifies whether this workspace has already fully used its free trial for Grafana Enterprise.</p>"
"documentation":"<p>Specifies whether this workspace has already fully used its free trial for Grafana Enterprise.</p> <note> <p>Amazon Managed Grafana workspaces no longer support Grafana Enterprise free trials.</p> </note>"
},
"freeTrialExpiration":{
"shape":"Timestamp",
"documentation":"<p>If this workspace is currently in the free trial period for Grafana Enterprise, this value specifies when that free trial ends.</p>"
"documentation":"<p>If this workspace is currently in the free trial period for Grafana Enterprise, this value specifies when that free trial ends.</p> <note> <p>Amazon Managed Grafana workspaces no longer support Grafana Enterprise free trials.</p> </note>"
},
"grafanaToken":{
"shape":"GrafanaToken",
"documentation":"<p>The token that ties this workspace to a Grafana Labs account. For more information, see <a href=\"https://docs.aws.amazon.com/grafana/latest/userguide/upgrade-to-Grafana-Enterprise.html#AMG-workspace-register-enterprise\">Register with Grafana Labs</a>.</p>"
},
"grafanaVersion":{
"shape":"GrafanaVersion",
Expand All @@ -1896,11 +1911,11 @@
},
"licenseExpiration":{
"shape":"Timestamp",
"documentation":"<p>If this workspace has a full Grafana Enterprise license, this specifies when the license ends and will need to be renewed.</p>"
"documentation":"<p>If this workspace has a full Grafana Enterprise license purchased through Amazon Web Services Marketplace, this specifies when the license ends and will need to be renewed. Purchasing the Enterprise plugins option through Amazon Managed Grafana does not have an expiration. It is valid until the license is removed.</p>"
},
"licenseType":{
"shape":"LicenseType",
"documentation":"<p>Specifies whether this workspace has a full Grafana Enterprise license or a free trial license.</p>"
"documentation":"<p>Specifies whether this workspace has a full Grafana Enterprise license.</p> <note> <p>Amazon Managed Grafana workspaces no longer support Grafana Enterprise free trials.</p> </note>"
},
"modified":{
"shape":"Timestamp",
Expand Down Expand Up @@ -2012,6 +2027,10 @@
"shape":"Endpoint",
"documentation":"<p>The URL endpoint to use to access the Grafana console in the workspace.</p>"
},
"grafanaToken":{
"shape":"GrafanaToken",
"documentation":"<p>The token that ties this workspace to a Grafana Labs account. For more information, see <a href=\"https://docs.aws.amazon.com/grafana/latest/userguide/upgrade-to-Grafana-Enterprise.html#AMG-workspace-register-enterprise\">Register with Grafana Labs</a>.</p>"
},
"grafanaVersion":{
"shape":"GrafanaVersion",
"documentation":"<p>The Grafana version that the workspace is running.</p>"
Expand All @@ -2020,6 +2039,10 @@
"shape":"WorkspaceId",
"documentation":"<p>The unique ID of the workspace.</p>"
},
"licenseType":{
"shape":"LicenseType",
"documentation":"<p>Specifies whether this workspace has a full Grafana Enterprise license.</p> <note> <p>Amazon Managed Grafana workspaces no longer support Grafana Enterprise free trials.</p> </note>"
},
"modified":{
"shape":"Timestamp",
"documentation":"<p>The most recent date that the workspace was modified.</p>"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
<?xml version="1.0" encoding="utf-16"?>
<property-value-rules>
<property-value-rule>
<property>Amazon.ManagedGrafana.Model.AssociateLicenseRequest.GrafanaToken</property>
<min>1</min>
<max>36</max>
</property-value-rule>
<property-value-rule>
<property>Amazon.ManagedGrafana.Model.AssociateLicenseRequest.WorkspaceId</property>
<pattern>^g-[0-9a-f]{10}$</pattern>
Expand Down Expand Up @@ -241,6 +246,11 @@
<min>1</min>
<max>2048</max>
</property-value-rule>
<property-value-rule>
<property>Amazon.ManagedGrafana.Model.WorkspaceDescription.GrafanaToken</property>
<min>1</min>
<max>36</max>
</property-value-rule>
<property-value-rule>
<property>Amazon.ManagedGrafana.Model.WorkspaceDescription.GrafanaVersion</property>
<min>1</min>
Expand Down Expand Up @@ -274,6 +284,11 @@
<min>1</min>
<max>2048</max>
</property-value-rule>
<property-value-rule>
<property>Amazon.ManagedGrafana.Model.WorkspaceSummary.GrafanaToken</property>
<min>1</min>
<max>36</max>
</property-value-rule>
<property-value-rule>
<property>Amazon.ManagedGrafana.Model.WorkspaceSummary.GrafanaVersion</property>
<min>1</min>
Expand Down
Loading

0 comments on commit 08c7ce2

Please sign in to comment.