Module authorization/v1

@pulumi/kubernetes > authorization > v1

class LocalSubjectAccessReview

extends CustomResource

LocalSubjectAccessReview checks whether or not a user or group can perform an action in a given namespace. Having a namespace scoped resource makes it much easier to grant namespace scoped policy that includes permissions checking.

constructor

new LocalSubjectAccessReview(name: string, args?: inputApi.authorization.v1.LocalSubjectAccessReview, opts?: pulumi.CustomResourceOptions)

Create a authorization.v1.LocalSubjectAccessReview 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): LocalSubjectAccessReview

Get the state of an existing LocalSubjectAccessReview 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.authorization.v1.LocalSubjectAccessReview

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<“authorization.k8s.io/v1”>;

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: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources

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<“LocalSubjectAccessReview”>;

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: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds

property metadata

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

property spec

public spec: pulumi.Output<outputApi.authorization.v1.SubjectAccessReviewSpec>;

Spec holds information about the request being evaluated. spec.namespace must be equal to the namespace you made the request against. If empty, it is defaulted.

property status

public status: pulumi.Output<outputApi.authorization.v1.SubjectAccessReviewStatus>;

Status is filled in by the server and indicates whether the request is allowed or not

property urn

urn: Output<URN>;

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

class SelfSubjectAccessReview

extends CustomResource

SelfSubjectAccessReview checks whether or the current user can perform an action. Not filling in a spec.namespace means “in all namespaces”. Self is a special case, because users should always be able to check whether they can perform an action

constructor

new SelfSubjectAccessReview(name: string, args?: inputApi.authorization.v1.SelfSubjectAccessReview, opts?: pulumi.CustomResourceOptions)

Create a authorization.v1.SelfSubjectAccessReview 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): SelfSubjectAccessReview

Get the state of an existing SelfSubjectAccessReview 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.authorization.v1.SelfSubjectAccessReview

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<“authorization.k8s.io/v1”>;

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: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources

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<“SelfSubjectAccessReview”>;

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: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds

property metadata

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

property spec

public spec: pulumi.Output<outputApi.authorization.v1.SelfSubjectAccessReviewSpec>;

Spec holds information about the request being evaluated. user and groups must be empty

property status

public status: pulumi.Output<outputApi.authorization.v1.SubjectAccessReviewStatus>;

Status is filled in by the server and indicates whether the request is allowed or not

property urn

urn: Output<URN>;

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

class SelfSubjectRulesReview

extends CustomResource

SelfSubjectRulesReview enumerates the set of actions the current user can perform within a namespace. The returned list of actions may be incomplete depending on the server’s authorization mode, and any errors experienced during the evaluation. SelfSubjectRulesReview should be used by UIs to show/hide actions, or to quickly let an end user reason about their permissions. It should NOT Be used by external systems to drive authorization decisions as this raises confused deputy, cache lifetime/revocation, and correctness concerns. SubjectAccessReview, and LocalAccessReview are the correct way to defer authorization decisions to the API server.

constructor

new SelfSubjectRulesReview(name: string, args?: inputApi.authorization.v1.SelfSubjectRulesReview, opts?: pulumi.CustomResourceOptions)

Create a authorization.v1.SelfSubjectRulesReview 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): SelfSubjectRulesReview

Get the state of an existing SelfSubjectRulesReview 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.authorization.v1.SelfSubjectRulesReview

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<“authorization.k8s.io/v1”>;

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: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources

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<“SelfSubjectRulesReview”>;

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: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds

property metadata

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

property spec

public spec: pulumi.Output<outputApi.authorization.v1.SelfSubjectRulesReviewSpec>;

Spec holds information about the request being evaluated.

property status

public status: pulumi.Output<outputApi.authorization.v1.SubjectRulesReviewStatus>;

Status is filled in by the server and indicates the set of actions a user can perform.

property urn

urn: Output<URN>;

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

class SubjectAccessReview

extends CustomResource

SubjectAccessReview checks whether or not a user or group can perform an action.

constructor

new SubjectAccessReview(name: string, args?: inputApi.authorization.v1.SubjectAccessReview, opts?: pulumi.CustomResourceOptions)

Create a authorization.v1.SubjectAccessReview 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): SubjectAccessReview

Get the state of an existing SubjectAccessReview 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.authorization.v1.SubjectAccessReview

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<“authorization.k8s.io/v1”>;

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: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources

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<“SubjectAccessReview”>;

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: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds

property metadata

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

property spec

public spec: pulumi.Output<outputApi.authorization.v1.SubjectAccessReviewSpec>;

Spec holds information about the request being evaluated

property status

public status: pulumi.Output<outputApi.authorization.v1.SubjectAccessReviewStatus>;

Status is filled in by the server and indicates whether the request is allowed or not

property urn

urn: Output<URN>;

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