@pulumiverse/scaleway
Version:
A Pulumi package for creating and managing Scaleway cloud resources.
139 lines (138 loc) • 4.38 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as inputs from "../types/input";
import * as outputs from "../types/output";
/**
* Creates and manages Scaleway VPC ACLs.
*
* ## Example Usage
*
* ### Basic
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as scaleway from "@pulumiverse/scaleway";
*
* const vpc01 = new scaleway.network.Vpc("vpc01", {name: "tf-vpc-acl"});
* const acl01 = new scaleway.network.Acl("acl01", {
* vpcId: vpc01.id,
* isIpv6: false,
* rules: [{
* protocol: "TCP",
* srcPortLow: 0,
* srcPortHigh: 0,
* dstPortLow: 80,
* dstPortHigh: 80,
* source: "0.0.0.0/0",
* destination: "0.0.0.0/0",
* description: "Allow HTTP traffic from any source",
* action: "accept",
* }],
* defaultPolicy: "drop",
* });
* ```
*
* ## Import
*
* ACLs can be imported using `{region}/{id}`, e.g.
*
* bash
*
* ```sh
* $ pulumi import scaleway:network/acl:Acl main fr-par/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;
/**
* The action to take for packets which do not match any rules.
*/
readonly defaultPolicy: pulumi.Output<string>;
/**
* Defines whether this set of ACL rules is for IPv6 (false = IPv4). Each Network ACL can have rules for only one IP type.
*/
readonly isIpv6: pulumi.Output<boolean | undefined>;
/**
* `region`) The region of the ACL.
*/
readonly region: pulumi.Output<string>;
/**
* The list of Network ACL rules.
*/
readonly rules: pulumi.Output<outputs.network.AclRule[]>;
/**
* The VPC ID the ACL belongs to.
*/
readonly vpcId: 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 {
/**
* The action to take for packets which do not match any rules.
*/
defaultPolicy?: pulumi.Input<string>;
/**
* Defines whether this set of ACL rules is for IPv6 (false = IPv4). Each Network ACL can have rules for only one IP type.
*/
isIpv6?: pulumi.Input<boolean>;
/**
* `region`) The region of the ACL.
*/
region?: pulumi.Input<string>;
/**
* The list of Network ACL rules.
*/
rules?: pulumi.Input<pulumi.Input<inputs.network.AclRule>[]>;
/**
* The VPC ID the ACL belongs to.
*/
vpcId?: pulumi.Input<string>;
}
/**
* The set of arguments for constructing a Acl resource.
*/
export interface AclArgs {
/**
* The action to take for packets which do not match any rules.
*/
defaultPolicy: pulumi.Input<string>;
/**
* Defines whether this set of ACL rules is for IPv6 (false = IPv4). Each Network ACL can have rules for only one IP type.
*/
isIpv6?: pulumi.Input<boolean>;
/**
* `region`) The region of the ACL.
*/
region?: pulumi.Input<string>;
/**
* The list of Network ACL rules.
*/
rules: pulumi.Input<pulumi.Input<inputs.network.AclRule>[]>;
/**
* The VPC ID the ACL belongs to.
*/
vpcId: pulumi.Input<string>;
}