UNPKG

@pulumi/cloudngfwaws

Version:

A Pulumi package for creating and managing Cloud NGFW for AWS resources.

296 lines (295 loc) 8.64 kB
import * as pulumi from "@pulumi/pulumi"; import * as inputs from "./types/input"; import * as outputs from "./types/output"; /** * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * import * as cloudngfwaws from "@pulumi/cloudngfwaws"; * * const rs = new cloudngfwaws.CommitRulestack("rs", {rulestack: "my-rulestack"}); * const exampleVpc = new aws.index.Vpc("example", { * cidrBlock: "172.16.0.0/16", * tags: { * name: "tf-example", * }, * }); * const subnet1 = new aws.index.Subnet("subnet1", { * vpcId: myVpc.id, * cidrBlock: "172.16.10.0/24", * availabilityZone: "us-west-2a", * tags: { * name: "tf-example", * }, * }); * const subnet2 = new aws.index.Subnet("subnet2", { * vpcId: myVpc.id, * cidrBlock: "172.16.20.0/24", * availabilityZone: "us-west-2b", * tags: { * name: "tf-example", * }, * }); * const example = new cloudngfwaws.Ngfw("example", { * name: "example-instance", * vpcId: exampleVpc.id, * accountId: "12345678", * description: "Example description", * linkId: "Link-81e80ccc-357a-4e4e-8325-1ed1d830cba5", * endpointMode: "ServiceManaged", * subnetMappings: [ * { * subnetId: subnet1.id, * }, * { * subnetId: subnet2.id, * }, * ], * rulestack: rs.rulestack, * tags: { * Foo: "bar", * }, * }); * ``` * * ## Import * * import name is <account_id>:<name> * * ```sh * $ pulumi import cloudngfwaws:index/ngfw:Ngfw example 12345678:example-instance * ``` */ export declare class Ngfw extends pulumi.CustomResource { /** * Get an existing Ngfw 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?: NgfwState, opts?: pulumi.CustomResourceOptions): Ngfw; /** * Returns true if the given object is an instance of Ngfw. 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 Ngfw; /** * The account ID. This field is mandatory if using multiple accounts. */ readonly accountId: pulumi.Output<string | undefined>; /** * App-ID version number. */ readonly appIdVersion: pulumi.Output<string>; /** * Automatic App-ID upgrade version number. Defaults to `true`. */ readonly automaticUpgradeAppIdVersion: pulumi.Output<boolean | undefined>; /** * The description. */ readonly description: pulumi.Output<string | undefined>; /** * Set endpoint mode from the following options. Valid values are `ServiceManaged` or `CustomerManaged`. */ readonly endpointMode: pulumi.Output<string>; /** * The endpoint service name. */ readonly endpointServiceName: pulumi.Output<string>; /** * The Id of the NGFW. */ readonly firewallId: pulumi.Output<string>; /** * The global rulestack for this NGFW. */ readonly globalRulestack: pulumi.Output<string | undefined>; /** * A unique identifier for establishing and managing the link between the Cloud NGFW and other AWS resources. */ readonly linkId: pulumi.Output<string>; /** * The link status. */ readonly linkStatus: pulumi.Output<string>; /** * Share NGFW with Multiple VPCs. This feature can be enabled only if the endpointMode is CustomerManaged. */ readonly multiVpc: pulumi.Output<boolean>; /** * The NGFW name. */ readonly name: pulumi.Output<string>; /** * The rulestack for this NGFW. */ readonly rulestack: pulumi.Output<string | undefined>; readonly statuses: pulumi.Output<outputs.NgfwStatus[]>; /** * Subnet mappings. */ readonly subnetMappings: pulumi.Output<outputs.NgfwSubnetMapping[]>; /** * The tags. */ readonly tags: pulumi.Output<{ [key: string]: string; } | undefined>; /** * The update token. */ readonly updateToken: pulumi.Output<string>; /** * The vpc id. */ readonly vpcId: pulumi.Output<string>; /** * Create a Ngfw 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: NgfwArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Ngfw resources. */ export interface NgfwState { /** * The account ID. This field is mandatory if using multiple accounts. */ accountId?: pulumi.Input<string>; /** * App-ID version number. */ appIdVersion?: pulumi.Input<string>; /** * Automatic App-ID upgrade version number. Defaults to `true`. */ automaticUpgradeAppIdVersion?: pulumi.Input<boolean>; /** * The description. */ description?: pulumi.Input<string>; /** * Set endpoint mode from the following options. Valid values are `ServiceManaged` or `CustomerManaged`. */ endpointMode?: pulumi.Input<string>; /** * The endpoint service name. */ endpointServiceName?: pulumi.Input<string>; /** * The Id of the NGFW. */ firewallId?: pulumi.Input<string>; /** * The global rulestack for this NGFW. */ globalRulestack?: pulumi.Input<string>; /** * A unique identifier for establishing and managing the link between the Cloud NGFW and other AWS resources. */ linkId?: pulumi.Input<string>; /** * The link status. */ linkStatus?: pulumi.Input<string>; /** * Share NGFW with Multiple VPCs. This feature can be enabled only if the endpointMode is CustomerManaged. */ multiVpc?: pulumi.Input<boolean>; /** * The NGFW name. */ name?: pulumi.Input<string>; /** * The rulestack for this NGFW. */ rulestack?: pulumi.Input<string>; statuses?: pulumi.Input<pulumi.Input<inputs.NgfwStatus>[]>; /** * Subnet mappings. */ subnetMappings?: pulumi.Input<pulumi.Input<inputs.NgfwSubnetMapping>[]>; /** * The tags. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input<string>; }>; /** * The update token. */ updateToken?: pulumi.Input<string>; /** * The vpc id. */ vpcId?: pulumi.Input<string>; } /** * The set of arguments for constructing a Ngfw resource. */ export interface NgfwArgs { /** * The account ID. This field is mandatory if using multiple accounts. */ accountId?: pulumi.Input<string>; /** * App-ID version number. */ appIdVersion?: pulumi.Input<string>; /** * Automatic App-ID upgrade version number. Defaults to `true`. */ automaticUpgradeAppIdVersion?: pulumi.Input<boolean>; /** * The description. */ description?: pulumi.Input<string>; /** * Set endpoint mode from the following options. Valid values are `ServiceManaged` or `CustomerManaged`. */ endpointMode: pulumi.Input<string>; /** * The global rulestack for this NGFW. */ globalRulestack?: pulumi.Input<string>; /** * A unique identifier for establishing and managing the link between the Cloud NGFW and other AWS resources. */ linkId?: pulumi.Input<string>; /** * Share NGFW with Multiple VPCs. This feature can be enabled only if the endpointMode is CustomerManaged. */ multiVpc?: pulumi.Input<boolean>; /** * The NGFW name. */ name?: pulumi.Input<string>; /** * The rulestack for this NGFW. */ rulestack?: pulumi.Input<string>; /** * Subnet mappings. */ subnetMappings: pulumi.Input<pulumi.Input<inputs.NgfwSubnetMapping>[]>; /** * The tags. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input<string>; }>; /** * The vpc id. */ vpcId: pulumi.Input<string>; }