UNPKG

@pulumiverse/scaleway

Version:

A Pulumi package for creating and managing Scaleway cloud resources.

169 lines 6.16 kB
import * as pulumi from "@pulumi/pulumi"; import * as inputs from "./types/input"; import * as outputs from "./types/output"; /** * Creates and manages Scaleway Load Balancer ACLs. * * For more information, see the [main documentation](https://www.scaleway.com/en/docs/load-balancer/reference-content/acls/) or [API documentation](https://www.scaleway.com/en/developers/api/load-balancer/zoned-api/#path-acls-get-an-acl). * * ## Example Usage * * ### Basic * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@pulumiverse/scaleway"; * * const acl01 = new scaleway.loadbalancers.Acl("acl01", { * frontendId: frt01.id, * name: "acl01", * description: "Exclude well-known IPs", * index: 0, * action: { * type: "allow", * }, * match: { * ipSubnets: [ * "192.168.0.1", * "192.168.0.2", * "192.168.10.0/24", * ], * }, * }); * ``` * * ## Import * * Load Balancer ACLs can be imported using `{zone}/{id}`, e.g. * * ```sh * $ pulumi import scaleway:index/loadbalancerAcl:LoadbalancerAcl acl01 fr-par-1/11111111-1111-1111-1111-111111111111 * ``` * * @deprecated scaleway.index/loadbalanceracl.LoadbalancerAcl has been deprecated in favor of scaleway.loadbalancers/acl.Acl */ export declare class LoadbalancerAcl extends pulumi.CustomResource { /** * Get an existing LoadbalancerAcl 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<pulumi.ID>, state?: LoadbalancerAclState, opts?: pulumi.CustomResourceOptions): LoadbalancerAcl; /** * Returns true if the given object is an instance of LoadbalancerAcl. 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 LoadbalancerAcl; /** * Action to undertake when an ACL filter matches. */ readonly action: pulumi.Output<outputs.LoadbalancerAclAction>; /** * IsDate and time of ACL's creation (RFC 3339 format) */ readonly createdAt: pulumi.Output<string>; /** * The ACL description. */ readonly description: pulumi.Output<string | undefined>; /** * The ID of the Load Balancer frontend to attach the ACL to. */ readonly frontendId: pulumi.Output<string>; /** * The priority of this ACL (ACLs are applied in ascending order, 0 is the first ACL executed). */ readonly index: pulumi.Output<number>; /** * The ACL match rule. At least `ipSubnet` or `ipsEdgeServices` or `httpFilter` and `httpFilterValue` are required. */ readonly match: pulumi.Output<outputs.LoadbalancerAclMatch | undefined>; /** * The ACL name. If not provided it will be randomly generated. */ readonly name: pulumi.Output<string>; /** * IsDate and time of ACL's update (RFC 3339 format) */ readonly updatedAt: pulumi.Output<string>; /** * Create a LoadbalancerAcl 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. */ /** @deprecated scaleway.index/loadbalanceracl.LoadbalancerAcl has been deprecated in favor of scaleway.loadbalancers/acl.Acl */ constructor(name: string, args: LoadbalancerAclArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering LoadbalancerAcl resources. */ export interface LoadbalancerAclState { /** * Action to undertake when an ACL filter matches. */ action?: pulumi.Input<inputs.LoadbalancerAclAction | undefined>; /** * IsDate and time of ACL's creation (RFC 3339 format) */ createdAt?: pulumi.Input<string | undefined>; /** * The ACL description. */ description?: pulumi.Input<string | undefined>; /** * The ID of the Load Balancer frontend to attach the ACL to. */ frontendId?: pulumi.Input<string | undefined>; /** * The priority of this ACL (ACLs are applied in ascending order, 0 is the first ACL executed). */ index?: pulumi.Input<number | undefined>; /** * The ACL match rule. At least `ipSubnet` or `ipsEdgeServices` or `httpFilter` and `httpFilterValue` are required. */ match?: pulumi.Input<inputs.LoadbalancerAclMatch | undefined>; /** * The ACL name. If not provided it will be randomly generated. */ name?: pulumi.Input<string | undefined>; /** * IsDate and time of ACL's update (RFC 3339 format) */ updatedAt?: pulumi.Input<string | undefined>; } /** * The set of arguments for constructing a LoadbalancerAcl resource. */ export interface LoadbalancerAclArgs { /** * Action to undertake when an ACL filter matches. */ action: pulumi.Input<inputs.LoadbalancerAclAction>; /** * The ACL description. */ description?: pulumi.Input<string | undefined>; /** * The ID of the Load Balancer frontend to attach the ACL to. */ frontendId: pulumi.Input<string>; /** * The priority of this ACL (ACLs are applied in ascending order, 0 is the first ACL executed). */ index: pulumi.Input<number>; /** * The ACL match rule. At least `ipSubnet` or `ipsEdgeServices` or `httpFilter` and `httpFilterValue` are required. */ match?: pulumi.Input<inputs.LoadbalancerAclMatch | undefined>; /** * The ACL name. If not provided it will be randomly generated. */ name?: pulumi.Input<string | undefined>; } //# sourceMappingURL=loadbalancerAcl.d.ts.map