WorkspaceApiKeyState constructor

const WorkspaceApiKeyState({
  1. Input<String?>? key,
  2. Input<String?>? keyName,
  3. Input<String?>? keyRole,
  4. Input<String?>? region,
  5. Input<int?>? secondsToLive,
  6. Input<String?>? workspaceId,
})

Creates a new WorkspaceApiKeyState. key The key token in JSON format. Use this value as a bearer token to authenticate HTTP requests to the workspace. keyName Specifies the name of the API key. Key names must be unique to the workspace. keyRole Specifies the permission level of the API key. Valid values are VIEWER, EDITOR, or ADMIN. region Region where this resource will be managed. Defaults to the Region set in the provider configuration. secondsToLive Specifies the time in seconds until the API key expires. Keys can be valid for up to 30 days. workspaceId The ID of the workspace that the API key is valid for.

Implementation

const WorkspaceApiKeyState({
  this.key,
  this.keyName,
  this.keyRole,
  this.region,
  this.secondsToLive,
  this.workspaceId,
});