import * as pulumi from "@pulumi/pulumi"; /** * Manages an API Security operation for a Fastly service. Operations represent API endpoints (method + domain + path) and can optionally be associated with operation tags. * * ## Example Usage * * Basic usage: * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as fastly from "@pulumi/fastly"; * * const svc1 = new fastly.ServiceVcl("svc1", { * name: "test-svc-1-example", * forceDestroy: true, * backends: [{ * address: "example.com", * name: "tf-test-backend-1", * }], * }); * const example = new fastly.ApiSecurityOperation("example", { * serviceId: svc1.id, * method: "GET", * domain: "api.example.com", * path: "/v1/things", * description: "Retrieve things", * }); * ``` * * With tags: * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as fastly from "@pulumi/fastly"; * * const svc1 = new fastly.ServiceVcl("svc1", { * name: "test-svc-1-example", * forceDestroy: true, * backends: [{ * address: "example.com", * name: "tf-test-backend-1", * }], * }); * const tag = new fastly.ApiSecurityOperationTag("tag", { * serviceId: svc1.id, * name: "production", * description: "Production endpoints", * }); * const example = new fastly.ApiSecurityOperation("example", { * serviceId: svc1.id, * method: "GET", * domain: "api.example.com", * path: "/v1/things", * description: "Retrieve things", * tagIds: [tag.tagId], * }); * ``` * * ## Import * * API Security operations can be imported using a composite ID of the form `/`, e.g. * * ```sh * $ pulumi import fastly:index/apiSecurityOperation:ApiSecurityOperation example / * ``` */ export declare class ApiSecurityOperation extends pulumi.CustomResource { /** * Get an existing ApiSecurityOperation 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, state?: ApiSecurityOperationState, opts?: pulumi.CustomResourceOptions): ApiSecurityOperation; /** * Returns true if the given object is an instance of ApiSecurityOperation. 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 ApiSecurityOperation; /** * Created timestamp (when present). */ readonly createdAt: pulumi.Output; /** * A description of the operation. */ readonly description: pulumi.Output; /** * Domain for the operation (exact match). Can be created, but not updated. */ readonly domain: pulumi.Output; /** * Last seen timestamp (when present). */ readonly lastSeenAt: pulumi.Output; /** * HTTP method for the operation (e.g. GET, POST). Can be created, but not updated. */ readonly method: pulumi.Output; /** * The operation ID. */ readonly operationId: pulumi.Output; /** * Path for the operation (exact match). Can be created, but not updated. */ readonly path: pulumi.Output; /** * Observed requests per second (when present). */ readonly rps: pulumi.Output; /** * Service ID the operation belongs to. To import, use: \n\n/\n\n. */ readonly serviceId: pulumi.Output; /** * Discovery status (when present). */ readonly status: pulumi.Output; /** * Associated operation tag IDs. */ readonly tagIds: pulumi.Output; /** * Updated timestamp (when present). */ readonly updatedAt: pulumi.Output; /** * Create a ApiSecurityOperation 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: ApiSecurityOperationArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering ApiSecurityOperation resources. */ export interface ApiSecurityOperationState { /** * Created timestamp (when present). */ createdAt?: pulumi.Input; /** * A description of the operation. */ description?: pulumi.Input; /** * Domain for the operation (exact match). Can be created, but not updated. */ domain?: pulumi.Input; /** * Last seen timestamp (when present). */ lastSeenAt?: pulumi.Input; /** * HTTP method for the operation (e.g. GET, POST). Can be created, but not updated. */ method?: pulumi.Input; /** * The operation ID. */ operationId?: pulumi.Input; /** * Path for the operation (exact match). Can be created, but not updated. */ path?: pulumi.Input; /** * Observed requests per second (when present). */ rps?: pulumi.Input; /** * Service ID the operation belongs to. To import, use: \n\n/\n\n. */ serviceId?: pulumi.Input; /** * Discovery status (when present). */ status?: pulumi.Input; /** * Associated operation tag IDs. */ tagIds?: pulumi.Input[] | undefined>; /** * Updated timestamp (when present). */ updatedAt?: pulumi.Input; } /** * The set of arguments for constructing a ApiSecurityOperation resource. */ export interface ApiSecurityOperationArgs { /** * A description of the operation. */ description?: pulumi.Input; /** * Domain for the operation (exact match). Can be created, but not updated. */ domain: pulumi.Input; /** * HTTP method for the operation (e.g. GET, POST). Can be created, but not updated. */ method: pulumi.Input; /** * Path for the operation (exact match). Can be created, but not updated. */ path: pulumi.Input; /** * Service ID the operation belongs to. To import, use: \n\n/\n\n. */ serviceId: pulumi.Input; /** * Associated operation tag IDs. */ tagIds?: pulumi.Input[] | undefined>; } //# sourceMappingURL=apiSecurityOperation.d.ts.map