@pulumi/cloudngfwaws
Version:
A Pulumi package for creating and managing Cloud NGFW for AWS resources.
208 lines (207 loc) • 6.67 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Resource for intelligent feed manipulation.
*
* ## Admin Permission Type
*
* * `Rulestack` (for `scope="Local"`)
* * `Global Rulestack` (for `scope="Global"`)
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as cloudngfwaws from "@pulumi/cloudngfwaws";
*
* const r = new cloudngfwaws.Rulestack("r", {
* name: "terraform-rulestack",
* scope: "Local",
* accountId: "123456789",
* description: "Made by Pulumi",
* profileConfig: {
* antiSpyware: "BestPractice",
* },
* });
* // Retrieve the feed information every day at midnight.
* const example = new cloudngfwaws.IntelligentFeed("example", {
* rulestack: r.name,
* name: "tf-feed",
* description: "Also configured by Terraform",
* url: "https://foobar.net",
* type: "URL_LIST",
* frequency: "DAILY",
* time: 0,
* });
* ```
*
* ## Import
*
* import name is <scope>:<rulestack>:<intelligent_feed_name>
*
* ```sh
* $ pulumi import cloudngfwaws:index/intelligentFeed:IntelligentFeed example Local:terraform-rulestack:tf-feed
* ```
*/
export declare class IntelligentFeed extends pulumi.CustomResource {
/**
* Get an existing IntelligentFeed 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?: IntelligentFeedState, opts?: pulumi.CustomResourceOptions): IntelligentFeed;
/**
* Returns true if the given object is an instance of IntelligentFeed. 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 IntelligentFeed;
/**
* The audit comment.
*/
readonly auditComment: pulumi.Output<string | undefined>;
/**
* The certificate profile.
*/
readonly certificate: pulumi.Output<string | undefined>;
/**
* The description.
*/
readonly description: pulumi.Output<string | undefined>;
/**
* Update frequency. Valid values are `HOURLY` or `DAILY`. Defaults to `HOURLY`.
*/
readonly frequency: pulumi.Output<string | undefined>;
/**
* The name.
*/
readonly name: pulumi.Output<string>;
/**
* The rulestack.
*/
readonly rulestack: pulumi.Output<string>;
/**
* The rulestack's scope. A local rulestack will require that you've retrieved a LRA JWT. A global rulestack will require that you've retrieved a GRA JWT. Valid values are `Local` or `Global`. Defaults to `Local`.
*/
readonly scope: pulumi.Output<string | undefined>;
/**
* The time to poll for updates if frequency is daily. The number must be between [0, 23] incluside.
*/
readonly time: pulumi.Output<number | undefined>;
/**
* The intelligent feed type. Valid values are `IP_LIST` or `URL_LIST`. Defaults to `IP_LIST`.
*/
readonly type: pulumi.Output<string | undefined>;
/**
* The update token.
*/
readonly updateToken: pulumi.Output<string>;
/**
* The intelligent feed source.
*/
readonly url: pulumi.Output<string>;
/**
* Create a IntelligentFeed 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: IntelligentFeedArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering IntelligentFeed resources.
*/
export interface IntelligentFeedState {
/**
* The audit comment.
*/
auditComment?: pulumi.Input<string>;
/**
* The certificate profile.
*/
certificate?: pulumi.Input<string>;
/**
* The description.
*/
description?: pulumi.Input<string>;
/**
* Update frequency. Valid values are `HOURLY` or `DAILY`. Defaults to `HOURLY`.
*/
frequency?: pulumi.Input<string>;
/**
* The name.
*/
name?: pulumi.Input<string>;
/**
* The rulestack.
*/
rulestack?: pulumi.Input<string>;
/**
* The rulestack's scope. A local rulestack will require that you've retrieved a LRA JWT. A global rulestack will require that you've retrieved a GRA JWT. Valid values are `Local` or `Global`. Defaults to `Local`.
*/
scope?: pulumi.Input<string>;
/**
* The time to poll for updates if frequency is daily. The number must be between [0, 23] incluside.
*/
time?: pulumi.Input<number>;
/**
* The intelligent feed type. Valid values are `IP_LIST` or `URL_LIST`. Defaults to `IP_LIST`.
*/
type?: pulumi.Input<string>;
/**
* The update token.
*/
updateToken?: pulumi.Input<string>;
/**
* The intelligent feed source.
*/
url?: pulumi.Input<string>;
}
/**
* The set of arguments for constructing a IntelligentFeed resource.
*/
export interface IntelligentFeedArgs {
/**
* The audit comment.
*/
auditComment?: pulumi.Input<string>;
/**
* The certificate profile.
*/
certificate?: pulumi.Input<string>;
/**
* The description.
*/
description?: pulumi.Input<string>;
/**
* Update frequency. Valid values are `HOURLY` or `DAILY`. Defaults to `HOURLY`.
*/
frequency?: pulumi.Input<string>;
/**
* The name.
*/
name?: pulumi.Input<string>;
/**
* The rulestack.
*/
rulestack: pulumi.Input<string>;
/**
* The rulestack's scope. A local rulestack will require that you've retrieved a LRA JWT. A global rulestack will require that you've retrieved a GRA JWT. Valid values are `Local` or `Global`. Defaults to `Local`.
*/
scope?: pulumi.Input<string>;
/**
* The time to poll for updates if frequency is daily. The number must be between [0, 23] incluside.
*/
time?: pulumi.Input<number>;
/**
* The intelligent feed type. Valid values are `IP_LIST` or `URL_LIST`. Defaults to `IP_LIST`.
*/
type?: pulumi.Input<string>;
/**
* The intelligent feed source.
*/
url: pulumi.Input<string>;
}