@pulumiverse/scaleway
Version:
A Pulumi package for creating and managing Scaleway cloud resources.
168 lines (167 loc) • 5.52 kB
TypeScript
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.
*
* bash
*
* ```sh
* $ pulumi import scaleway:loadbalancers/acl:Acl acl01 fr-par-1/11111111-1111-1111-1111-111111111111
* ```
*/
export declare class Acl extends pulumi.CustomResource {
/**
* Get an existing Acl 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?: AclState, opts?: pulumi.CustomResourceOptions): Acl;
/**
* Returns true if the given object is an instance of Acl. 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 Acl;
/**
* Action to undertake when an ACL filter matches.
*/
readonly action: pulumi.Output<outputs.loadbalancers.AclAction>;
/**
* 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 `httpFilter` and `httpFilterValue` are required.
*/
readonly match: pulumi.Output<outputs.loadbalancers.AclMatch | 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 Acl 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: AclArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering Acl resources.
*/
export interface AclState {
/**
* Action to undertake when an ACL filter matches.
*/
action?: pulumi.Input<inputs.loadbalancers.AclAction>;
/**
* IsDate and time of ACL's creation (RFC 3339 format)
*/
createdAt?: pulumi.Input<string>;
/**
* The ACL description.
*/
description?: pulumi.Input<string>;
/**
* 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 `httpFilter` and `httpFilterValue` are required.
*/
match?: pulumi.Input<inputs.loadbalancers.AclMatch>;
/**
* The ACL name. If not provided it will be randomly generated.
*/
name?: pulumi.Input<string>;
/**
* IsDate and time of ACL's update (RFC 3339 format)
*/
updatedAt?: pulumi.Input<string>;
}
/**
* The set of arguments for constructing a Acl resource.
*/
export interface AclArgs {
/**
* Action to undertake when an ACL filter matches.
*/
action: pulumi.Input<inputs.loadbalancers.AclAction>;
/**
* The ACL description.
*/
description?: pulumi.Input<string>;
/**
* 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 `httpFilter` and `httpFilterValue` are required.
*/
match?: pulumi.Input<inputs.loadbalancers.AclMatch>;
/**
* The ACL name. If not provided it will be randomly generated.
*/
name?: pulumi.Input<string>;
}