Module authentication/v1

@pulumi/kubernetes > authentication > v1

class TokenReview

extends CustomResource

TokenReview attempts to authenticate a token to a known user. Note: TokenReview requests may be cached by the webhook token authenticator plugin in the kube-apiserver.


new TokenReview(name: string, args?: inputApi.authentication.v1.TokenReview, opts?: pulumi.CustomResourceOptions)

Create a authentication.v1.TokenReview resource with the given unique name, arguments, and options.

  • name The unique name of the resource.
  • args The arguments to use to populate this resource's properties.
  • opts A bag of options that control this resource's behavior.

method get

public static get(name: string, id: pulumi.Input<pulumi.ID>, opts?: pulumi.CustomResourceOptions): TokenReview

Get the state of an existing TokenReview resource, as identified by id. Typically this ID is of the form /; if is omitted, then (per Kubernetes convention) the ID becomes default/.

Pulumi will keep track of this resource using name as the Pulumi ID.

method getInputs

public getInputs(): inputApi.authentication.v1.TokenReview

method getProvider

getProvider(moduleMember: string): ProviderResource | undefined

method isInstance

static isInstance(obj: any): boolean

Returns true if the given object is an instance of CustomResource. This is designed to work even when multiple copies of the Pulumi SDK have been loaded into the same process.

property apiVersion

public apiVersion: pulumi.Output<"">;

APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info:

property id

id: Output<ID>;

id is the provider-assigned unique ID for this managed resource. It is set during deployments and may be missing (undefined) during planning phases.

property kind

public kind: pulumi.Output<"TokenReview">;

Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info:

property metadata

public metadata: pulumi.Output<outputApi.meta.v1.ObjectMeta>;

property spec

public spec: pulumi.Output<outputApi.authentication.v1.TokenReviewSpec>;

Spec holds information about the request being evaluated

property status

public status: pulumi.Output<outputApi.authentication.v1.TokenReviewStatus>;

Status is filled in by the server and indicates whether the request can be authenticated.

property urn

urn: Output<URN>;

urn is the stable logical URN used to distinctly address a resource, both before and after deployments.