import * as core from "@terrascript/core"; export interface WorkspaceApiKeyArgs extends core.ResourceArgs { keyName: string | core.StringOut; keyRole: string | core.StringOut; secondsToLive: number | core.NumberOut; workspaceId: string | core.StringOut; } export class WorkspaceApiKey extends core.Resource { @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * The key token in JSON format. Use this value as a bearer token to authenticate HTTP requests to the * workspace. */ @core.attr(String, { computed: true }) public key!: string | core.StringOut; @core.attr(String) public keyName!: string | core.StringOut; @core.attr(String) public keyRole!: string | core.StringOut; @core.attr(Number) public secondsToLive!: number | core.NumberOut; @core.attr(String) public workspaceId!: string | core.StringOut; constructor(name: string, args?: WorkspaceApiKeyArgs) { super(name, "aws_grafana_workspace_api_key", args); } public override getNamespace(): string { return "aws_grafana"; } }