Module authorization/v1beta1
This page documents the language specification for the kubernetes package. If you're looking for help working with the inputs, outputs, or functions of kubernetes resources in a Pulumi program, please see the resource documentation for examples and API reference.
Resources
Others
- LocalSubjectAccessReviewArgs
- SelfSubjectAccessReviewArgs
- SelfSubjectRulesReviewArgs
- SubjectAccessReviewArgs
Resources
Resource LocalSubjectAccessReview
class LocalSubjectAccessReview extends CustomResourceLocalSubjectAccessReview 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?: LocalSubjectAccessReviewArgs, opts?: pulumi.CustomResourceOptions)Create a LocalSubjectAccessReview resource with the given unique name, arguments, and options.
nameThe unique name of the resource.argsThe arguments to use to populate this resource's properties.optsA bag of options that control this resource's behavior.
method get
public static get(name: string, id: pulumi.Input<pulumi.ID>, opts?: pulumi.CustomResourceOptions): LocalSubjectAccessReviewGet an existing LocalSubjectAccessReview resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
method getProvider
getProvider(moduleMember: string): ProviderResource | undefinedmethod isInstance
public static isInstance(obj: any): obj is LocalSubjectAccessReviewReturns true if the given object is an instance of LocalSubjectAccessReview. 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/v1beta1">;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/sig-architecture/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/sig-architecture/api-conventions.md#types-kinds
property metadata
public metadata: pulumi.Output<ObjectMeta>;property spec
public spec: pulumi.Output<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<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.
Resource SelfSubjectAccessReview
class SelfSubjectAccessReview extends CustomResourceSelfSubjectAccessReview 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?: SelfSubjectAccessReviewArgs, opts?: pulumi.CustomResourceOptions)Create a SelfSubjectAccessReview resource with the given unique name, arguments, and options.
nameThe unique name of the resource.argsThe arguments to use to populate this resource's properties.optsA bag of options that control this resource's behavior.
method get
public static get(name: string, id: pulumi.Input<pulumi.ID>, opts?: pulumi.CustomResourceOptions): SelfSubjectAccessReviewGet an existing SelfSubjectAccessReview resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
method getProvider
getProvider(moduleMember: string): ProviderResource | undefinedmethod isInstance
public static isInstance(obj: any): obj is SelfSubjectAccessReviewReturns true if the given object is an instance of SelfSubjectAccessReview. 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/v1beta1">;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/sig-architecture/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/sig-architecture/api-conventions.md#types-kinds
property metadata
public metadata: pulumi.Output<ObjectMeta>;property spec
public spec: pulumi.Output<SelfSubjectAccessReviewSpec>;Spec holds information about the request being evaluated. user and groups must be empty
property status
public status: pulumi.Output<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.
Resource SelfSubjectRulesReview
class SelfSubjectRulesReview extends CustomResourceSelfSubjectRulesReview 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?: SelfSubjectRulesReviewArgs, opts?: pulumi.CustomResourceOptions)Create a SelfSubjectRulesReview resource with the given unique name, arguments, and options.
nameThe unique name of the resource.argsThe arguments to use to populate this resource's properties.optsA bag of options that control this resource's behavior.
method get
public static get(name: string, id: pulumi.Input<pulumi.ID>, opts?: pulumi.CustomResourceOptions): SelfSubjectRulesReviewGet an existing SelfSubjectRulesReview resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
method getProvider
getProvider(moduleMember: string): ProviderResource | undefinedmethod isInstance
public static isInstance(obj: any): obj is SelfSubjectRulesReviewReturns true if the given object is an instance of SelfSubjectRulesReview. 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/v1beta1">;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/sig-architecture/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/sig-architecture/api-conventions.md#types-kinds
property metadata
public metadata: pulumi.Output<ObjectMeta>;property spec
public spec: pulumi.Output<SelfSubjectRulesReviewSpec>;Spec holds information about the request being evaluated.
property status
public status: pulumi.Output<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.
Resource SubjectAccessReview
class SubjectAccessReview extends CustomResourceSubjectAccessReview checks whether or not a user or group can perform an action.
constructor
new SubjectAccessReview(name: string, args?: SubjectAccessReviewArgs, opts?: pulumi.CustomResourceOptions)Create a SubjectAccessReview resource with the given unique name, arguments, and options.
nameThe unique name of the resource.argsThe arguments to use to populate this resource's properties.optsA bag of options that control this resource's behavior.
method get
public static get(name: string, id: pulumi.Input<pulumi.ID>, opts?: pulumi.CustomResourceOptions): SubjectAccessReviewGet an existing SubjectAccessReview resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
method getProvider
getProvider(moduleMember: string): ProviderResource | undefinedmethod isInstance
public static isInstance(obj: any): obj is SubjectAccessReviewReturns true if the given object is an instance of SubjectAccessReview. 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/v1beta1">;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/sig-architecture/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/sig-architecture/api-conventions.md#types-kinds
property metadata
public metadata: pulumi.Output<ObjectMeta>;property spec
public spec: pulumi.Output<SubjectAccessReviewSpec>;Spec holds information about the request being evaluated
property status
public status: pulumi.Output<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.
Others
interface LocalSubjectAccessReviewArgs
interface LocalSubjectAccessReviewArgsThe set of arguments for constructing a LocalSubjectAccessReview resource.
property apiVersion
apiVersion?: pulumi.Input<"authorization.k8s.io/v1beta1">;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/sig-architecture/api-conventions.md#resources
property kind
kind?: pulumi.Input<"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/sig-architecture/api-conventions.md#types-kinds
property metadata
metadata?: pulumi.Input<ObjectMeta>;property spec
spec: pulumi.Input<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.
interface SelfSubjectAccessReviewArgs
interface SelfSubjectAccessReviewArgsThe set of arguments for constructing a SelfSubjectAccessReview resource.
property apiVersion
apiVersion?: pulumi.Input<"authorization.k8s.io/v1beta1">;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/sig-architecture/api-conventions.md#resources
property kind
kind?: pulumi.Input<"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/sig-architecture/api-conventions.md#types-kinds
property metadata
metadata?: pulumi.Input<ObjectMeta>;property spec
spec: pulumi.Input<SelfSubjectAccessReviewSpec>;Spec holds information about the request being evaluated. user and groups must be empty
interface SelfSubjectRulesReviewArgs
interface SelfSubjectRulesReviewArgsThe set of arguments for constructing a SelfSubjectRulesReview resource.
property apiVersion
apiVersion?: pulumi.Input<"authorization.k8s.io/v1beta1">;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/sig-architecture/api-conventions.md#resources
property kind
kind?: pulumi.Input<"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/sig-architecture/api-conventions.md#types-kinds
property metadata
metadata?: pulumi.Input<ObjectMeta>;property spec
spec: pulumi.Input<SelfSubjectRulesReviewSpec>;Spec holds information about the request being evaluated.
interface SubjectAccessReviewArgs
interface SubjectAccessReviewArgsThe set of arguments for constructing a SubjectAccessReview resource.
property apiVersion
apiVersion?: pulumi.Input<"authorization.k8s.io/v1beta1">;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/sig-architecture/api-conventions.md#resources
property kind
kind?: pulumi.Input<"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/sig-architecture/api-conventions.md#types-kinds
property metadata
metadata?: pulumi.Input<ObjectMeta>;property spec
spec: pulumi.Input<SubjectAccessReviewSpec>;Spec holds information about the request being evaluated