UNPKG

@pulumi/scm

Version:

A Pulumi package for managing resources on Strata Cloud Manager.. Based on terraform-provider-scm: version v0.2.1

174 lines (173 loc) 4.85 kB
import * as pulumi from "@pulumi/pulumi"; import * as outputs from "./types/output"; /** * PbfRule data source * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scm from "@pulumi/scm"; * * // Define the data source (the item to be retrieved via API GET) * const pbfExternalWebTestGet = scm.getPbfRule({ * id: "044d67ad-1c36-4b97-bbf4-584445fe8a7d", * }); * export const retrievedIDAndName = { * id: pbfExternalWebTestGet.then(pbfExternalWebTestGet => pbfExternalWebTestGet.id), * name: pbfExternalWebTestGet.then(pbfExternalWebTestGet => pbfExternalWebTestGet.name), * }; * export const recievedResponse = pbfExternalWebTestGet; * ``` */ export declare function getPbfRule(args: GetPbfRuleArgs, opts?: pulumi.InvokeOptions): Promise<GetPbfRuleResult>; /** * A collection of arguments for invoking getPbfRule. */ export interface GetPbfRuleArgs { /** * The device in which the resource is defined * > ℹ️ **Note:** You must specify exactly one of `device`, `folder`, and `snippet`. */ device?: string; /** * The folder in which the resource is defined * > ℹ️ **Note:** You must specify exactly one of `device`, `folder`, and `snippet`. */ folder?: string; /** * UUID of the resource */ id: string; /** * PBF rule name */ name?: string; /** * The snippet in which the resource is defined * > ℹ️ **Note:** You must specify exactly one of `device`, `folder`, and `snippet`. */ snippet?: string; } /** * A collection of values returned by getPbfRule. */ export interface GetPbfRuleResult { /** * Action */ readonly action: outputs.GetPbfRuleAction; /** * Applications */ readonly applications: string[]; /** * Description */ readonly description: string; /** * Destination addresses */ readonly destinations: string[]; /** * The device in which the resource is defined * > ℹ️ **Note:** You must specify exactly one of `device`, `folder`, and `snippet`. */ readonly device: string; /** * Enforce symmetric return */ readonly enforceSymmetricReturn: outputs.GetPbfRuleEnforceSymmetricReturn; /** * The folder in which the resource is defined * > ℹ️ **Note:** You must specify exactly one of `device`, `folder`, and `snippet`. */ readonly folder: string; /** * From */ readonly from: outputs.GetPbfRuleFrom; /** * UUID of the resource */ readonly id: string; /** * PBF rule name */ readonly name: string; /** * Schedule */ readonly schedule: string; /** * Services */ readonly services: string[]; /** * The snippet in which the resource is defined * > ℹ️ **Note:** You must specify exactly one of `device`, `folder`, and `snippet`. */ readonly snippet: string; /** * Source users */ readonly sourceUsers: string[]; /** * Source addresses */ readonly sources: string[]; /** * Tags */ readonly tags: string[]; readonly tfid: string; } /** * PbfRule data source * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scm from "@pulumi/scm"; * * // Define the data source (the item to be retrieved via API GET) * const pbfExternalWebTestGet = scm.getPbfRule({ * id: "044d67ad-1c36-4b97-bbf4-584445fe8a7d", * }); * export const retrievedIDAndName = { * id: pbfExternalWebTestGet.then(pbfExternalWebTestGet => pbfExternalWebTestGet.id), * name: pbfExternalWebTestGet.then(pbfExternalWebTestGet => pbfExternalWebTestGet.name), * }; * export const recievedResponse = pbfExternalWebTestGet; * ``` */ export declare function getPbfRuleOutput(args: GetPbfRuleOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetPbfRuleResult>; /** * A collection of arguments for invoking getPbfRule. */ export interface GetPbfRuleOutputArgs { /** * The device in which the resource is defined * > ℹ️ **Note:** You must specify exactly one of `device`, `folder`, and `snippet`. */ device?: pulumi.Input<string>; /** * The folder in which the resource is defined * > ℹ️ **Note:** You must specify exactly one of `device`, `folder`, and `snippet`. */ folder?: pulumi.Input<string>; /** * UUID of the resource */ id: pulumi.Input<string>; /** * PBF rule name */ name?: pulumi.Input<string>; /** * The snippet in which the resource is defined * > ℹ️ **Note:** You must specify exactly one of `device`, `folder`, and `snippet`. */ snippet?: pulumi.Input<string>; }