CreateTokenRequest: {
    description?: string;
    expiresAt?: Date;
    functionId?: string;
    namespaceId?: string;
    region?: Region;
}

Type declaration

  • Optionaldescription?: string

    Description of the token.

  • OptionalexpiresAt?: Date

    Date on which the token expires.

  • OptionalfunctionId?: string

    UUID of the function to associate the token with.

    One-of ('scope'): at most one of 'functionId', 'namespaceId' could be set.

  • OptionalnamespaceId?: string

    UUID of the namespace to associate the token with.

    One-of ('scope'): at most one of 'functionId', 'namespaceId' could be set.

  • Optionalregion?: Region

    Region to target. If none is passed will use default region from the config.