UNPKG

@pulumi/scm

Version:

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

159 lines (158 loc) 4.36 kB
import * as pulumi from "@pulumi/pulumi"; import * as outputs from "./types/output"; /** * NatRule 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 dnatExternalWebTestGet = scm.getNatRule({ * id: "574717ac-8a63-4b6f-bf77-f05a66ba6322", * }); * export const retrievedIDAndName = { * id: dnatExternalWebTestGet.then(dnatExternalWebTestGet => dnatExternalWebTestGet.id), * name: dnatExternalWebTestGet.then(dnatExternalWebTestGet => dnatExternalWebTestGet.name), * }; * export const retrievedDestinationTranslation = dnatExternalWebTestGet.then(dnatExternalWebTestGet => dnatExternalWebTestGet.destinationTranslation); * export const recievedResponse = dnatExternalWebTestGet; * ``` */ export declare function getNatRule(args: GetNatRuleArgs, opts?: pulumi.InvokeOptions): Promise<GetNatRuleResult>; /** * A collection of arguments for invoking getNatRule. */ export interface GetNatRuleArgs { /** * UUID of the resource */ id: string; /** * NAT rule name */ name?: string; } /** * A collection of values returned by getNatRule. */ export interface GetNatRuleResult { /** * Active active device binding */ readonly activeActiveDeviceBinding: string; /** * NAT rule description */ readonly description: string; /** * Destination translation */ readonly destinationTranslation: outputs.GetNatRuleDestinationTranslation; /** * Destination address(es) of the original packet */ readonly destinations: string[]; /** * The device in which the resource is defined */ readonly device: string; /** * Disable NAT rule? */ readonly disabled: boolean; /** * Dynamic destination translation */ readonly dynamicDestinationTranslation: outputs.GetNatRuleDynamicDestinationTranslation; /** * The folder in which the resource is defined */ readonly folder: string; /** * Source zone(s) of the original packet */ readonly froms: string[]; /** * UUID of the resource */ readonly id: string; /** * NAT rule name */ readonly name: string; /** * NAT type */ readonly natType: string; /** * The relative position of the rule */ readonly position: string; /** * The service of the original packet */ readonly service: string; /** * The snippet in which the resource is defined */ readonly snippet: string; /** * Source translation */ readonly sourceTranslation: outputs.GetNatRuleSourceTranslation; /** * Source address(es) of the original packet */ readonly sources: string[]; /** * NAT rule tags */ readonly tags: string[]; readonly tfid: string; /** * Destination interface of the original packet */ readonly toInterface: string; /** * Destination zone of the original packet */ readonly tos: string[]; } /** * NatRule 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 dnatExternalWebTestGet = scm.getNatRule({ * id: "574717ac-8a63-4b6f-bf77-f05a66ba6322", * }); * export const retrievedIDAndName = { * id: dnatExternalWebTestGet.then(dnatExternalWebTestGet => dnatExternalWebTestGet.id), * name: dnatExternalWebTestGet.then(dnatExternalWebTestGet => dnatExternalWebTestGet.name), * }; * export const retrievedDestinationTranslation = dnatExternalWebTestGet.then(dnatExternalWebTestGet => dnatExternalWebTestGet.destinationTranslation); * export const recievedResponse = dnatExternalWebTestGet; * ``` */ export declare function getNatRuleOutput(args: GetNatRuleOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetNatRuleResult>; /** * A collection of arguments for invoking getNatRule. */ export interface GetNatRuleOutputArgs { /** * UUID of the resource */ id: pulumi.Input<string>; /** * NAT rule name */ name?: pulumi.Input<string>; }