License Association
Provides an Amazon Managed Grafana workspace license association resource.
Example Usage
Basic configuration
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.iam.Role;
import com.pulumi.aws.iam.RoleArgs;
import com.pulumi.aws.grafana.Workspace;
import com.pulumi.aws.grafana.WorkspaceArgs;
import com.pulumi.aws.grafana.LicenseAssociation;
import com.pulumi.aws.grafana.LicenseAssociationArgs;
import static com.pulumi.codegen.internal.Serialization.*;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var assume = new Role("assume", RoleArgs.builder()
.assumeRolePolicy(serializeJson(
jsonObject(
jsonProperty("Version", "2012-10-17"),
jsonProperty("Statement", jsonArray(jsonObject(
jsonProperty("Action", "sts:AssumeRole"),
jsonProperty("Effect", "Allow"),
jsonProperty("Sid", ""),
jsonProperty("Principal", jsonObject(
jsonProperty("Service", "grafana.amazonaws.com")
))
)))
)))
.build());
var exampleWorkspace = new Workspace("exampleWorkspace", WorkspaceArgs.builder()
.accountAccessType("CURRENT_ACCOUNT")
.authenticationProviders("SAML")
.permissionType("SERVICE_MANAGED")
.roleArn(assume.arn())
.build());
var exampleLicenseAssociation = new LicenseAssociation("exampleLicenseAssociation", LicenseAssociationArgs.builder()
.licenseType("ENTERPRISE_FREE_TRIAL")
.workspaceId(exampleWorkspace.id())
.build());
}
}Content copied to clipboard
Import
Grafana workspace license association can be imported using the workspace's id, e.g.,
$ pulumi import aws:grafana/licenseAssociation:LicenseAssociation example g-2054c75a02Content copied to clipboard
Properties
Link copied to clipboard
If license_type is set to ENTERPRISE_FREE_TRIAL, this is the expiration date of the free trial.
Link copied to clipboard
If license_type is set to ENTERPRISE, this is the expiration date of the enterprise license.
Link copied to clipboard
The type of license for the workspace license association. Valid values are ENTERPRISE and ENTERPRISE_FREE_TRIAL.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
The workspace id.