import * as pulumi from "@pulumi/pulumi"; /** * Apply IP restrictions to an OVHcloud Managed Kubernetes cluster. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as ovh from "@ovhcloud/pulumi-ovh"; * * const vrackOnly = new ovh.cloudproject.KubeIpRestrictions("vrack_only", { * serviceName: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", * kubeId: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxx", * ips: ["10.42.0.0/16"], * }); * ``` * * ## Import * * OVHcloud Managed Kubernetes Service cluster IP restrictions can be imported using the `service_name` and the `id` of the cluster, separated by "/" E.g., * * bash * * ```sh * $ pulumi import ovh:CloudProject/kubeIpRestrictions:KubeIpRestrictions iprestrictions service_name/kube_id * ``` */ export declare class KubeIpRestrictions extends pulumi.CustomResource { /** * Get an existing KubeIpRestrictions resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: KubeIpRestrictionsState, opts?: pulumi.CustomResourceOptions): KubeIpRestrictions; /** * Returns true if the given object is an instance of KubeIpRestrictions. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is KubeIpRestrictions; /** * List of CIDR authorized to interact with the managed Kubernetes cluster. */ readonly ips: pulumi.Output; /** * The id of the managed Kubernetes cluster. **Changing this value recreates the resource.** */ readonly kubeId: pulumi.Output; /** * The id of the public cloud project. If omitted, the `OVH_CLOUD_PROJECT_SERVICE` environment variable is used. **Changing this value recreates the resource.** */ readonly serviceName: pulumi.Output; /** * Create a KubeIpRestrictions resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: KubeIpRestrictionsArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering KubeIpRestrictions resources. */ export interface KubeIpRestrictionsState { /** * List of CIDR authorized to interact with the managed Kubernetes cluster. */ ips?: pulumi.Input[]>; /** * The id of the managed Kubernetes cluster. **Changing this value recreates the resource.** */ kubeId?: pulumi.Input; /** * The id of the public cloud project. If omitted, the `OVH_CLOUD_PROJECT_SERVICE` environment variable is used. **Changing this value recreates the resource.** */ serviceName?: pulumi.Input; } /** * The set of arguments for constructing a KubeIpRestrictions resource. */ export interface KubeIpRestrictionsArgs { /** * List of CIDR authorized to interact with the managed Kubernetes cluster. */ ips: pulumi.Input[]>; /** * The id of the managed Kubernetes cluster. **Changing this value recreates the resource.** */ kubeId: pulumi.Input; /** * The id of the public cloud project. If omitted, the `OVH_CLOUD_PROJECT_SERVICE` environment variable is used. **Changing this value recreates the resource.** */ serviceName?: pulumi.Input; }