Module networking/v1

Resources

Resources

Resource NetworkPolicy

class NetworkPolicy extends CustomResource

NetworkPolicy describes what network traffic is allowed for a set of Pods

constructor

new NetworkPolicy(name: string, args?: inputs.networking.v1.NetworkPolicy, opts?: pulumi.CustomResourceOptions)

Create a networking.v1.NetworkPolicy 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): NetworkPolicy

Get the state of an existing NetworkPolicy resource, as identified by id. The ID is of the form [namespace]/&lt;name&gt;; if namespace is omitted, then (per Kubernetes convention) the ID becomes default/&lt;name&gt;.

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

method getProvider

getProvider(moduleMember: string): ProviderResource | undefined

method isInstance

public static isInstance(obj: any): boolean

Returns true if the given object is an instance of NetworkPolicy. 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<"networking.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/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<"NetworkPolicy">;

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<outputs.meta.v1.ObjectMeta>;

Standard object’s metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata

property spec

public spec: pulumi.Output<outputs.networking.v1.NetworkPolicySpec>;

Specification of the desired behavior for this NetworkPolicy.

property urn

urn: Output<URN>;

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

Resource NetworkPolicyList

class NetworkPolicyList extends CustomResource

NetworkPolicyList is a list of NetworkPolicy objects.

constructor

new NetworkPolicyList(name: string, args?: inputs.networking.v1.NetworkPolicyList, opts?: pulumi.CustomResourceOptions)

Create a networking.v1.NetworkPolicyList 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): NetworkPolicyList

Get the state of an existing NetworkPolicyList resource, as identified by id. The ID is of the form [namespace]/&lt;name&gt;; if namespace is omitted, then (per Kubernetes convention) the ID becomes default/&lt;name&gt;.

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

method getProvider

getProvider(moduleMember: string): ProviderResource | undefined

method isInstance

public static isInstance(obj: any): boolean

Returns true if the given object is an instance of NetworkPolicyList. 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<"networking.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/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 items

public items: pulumi.Output<outputs.networking.v1.NetworkPolicy[]>;

Items is a list of schema objects.

property kind

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

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<outputs.meta.v1.ListMeta>;

Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata

property urn

urn: Output<URN>;

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