UNPKG

@pulumi/sdwan

Version:

A Pulumi package for managing resources on Cisco Catalyst SD-WAN.. Based on terraform-provider-sdwan: version v0.4.1

258 lines (257 loc) 8.83 kB
import * as pulumi from "@pulumi/pulumi"; import * as inputs from "./types/input"; import * as outputs from "./types/output"; /** * This resource can manage a Switchport feature template. * - Minimum SD-WAN Manager version: `15.0.0` * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as sdwan from "@pulumi/sdwan"; * * const example = new sdwan.SwitchportFeatureTemplate("example", { * name: "Example", * description: "My Example", * deviceTypes: ["vedge-C8000V"], * slot: 0, * subSlot: 0, * moduleType: "4", * interfaces: [{ * name: "GigabitEthernet0/0/0", * switchportMode: "access", * shutdown: true, * speed: "100", * duplex: "full", * switchportAccessVlan: 100, * switchportTrunkAllowedVlans: "100,200", * switchportTrunkNativeVlan: 100, * dot1xEnable: true, * dot1xPortControl: "auto", * dot1xAuthenticationOrder: ["dot1x"], * voiceVlan: 200, * dot1xPaeEnable: true, * dot1xMacAuthenticationBypass: true, * dot1xHostMode: "multi-domain", * dot1xEnablePeriodicReauth: true, * dot1xPeriodicReauthInactivityTimeout: 100, * dot1xPeriodicReauthInterval: 60, * dot1xControlDirection: "both", * dot1xRestrictedVlan: 100, * dot1xGuestVlan: 101, * dot1xCriticalVlan: 102, * dot1xEnableCriticialVoiceVlan: true, * }], * ageOutTime: 500, * staticMacAddresses: [{ * macAddress: "0000.0000.0000", * ifName: "GigabitEthernet0/0/0", * vlan: 100, * }], * }); * ``` * * ## Import * * The `pulumi import` command can be used, for example: * * ```sh * $ pulumi import sdwan:index/switchportFeatureTemplate:SwitchportFeatureTemplate example "f6b2c44c-693c-4763-b010-895aa3d236bd" * ``` */ export declare class SwitchportFeatureTemplate extends pulumi.CustomResource { /** * Get an existing SwitchportFeatureTemplate 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?: SwitchportFeatureTemplateState, opts?: pulumi.CustomResourceOptions): SwitchportFeatureTemplate; /** * Returns true if the given object is an instance of SwitchportFeatureTemplate. 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 SwitchportFeatureTemplate; /** * Set when a MAC table entry ages out (0 to disable, 10-1000000 otherwise) * - Range: `0`-`1000000` * - Default value: `300` */ readonly ageOutTime: pulumi.Output<number | undefined>; /** * Variable name */ readonly ageOutTimeVariable: pulumi.Output<string | undefined>; /** * The description of the feature template */ readonly description: pulumi.Output<string>; /** * List of supported device types * - Choices: `vedge-C8000V`, `vedge-C8300-1N1S-4T2X`, `vedge-C8300-1N1S-6T`, `vedge-C8300-2N2S-6T`, `vedge-C8300-2N2S-4T2X`, `vedge-C8500-12X4QC`, `vedge-C8500-12X`, `vedge-C8500-20X6C`, `vedge-C8500L-8S4X`, `vedge-C8200-1N-4T`, `vedge-C8200L-1N-4T` */ readonly deviceTypes: pulumi.Output<string[]>; /** * Interface name: GigabitEthernet0/<>/<> when present */ readonly interfaces: pulumi.Output<outputs.SwitchportFeatureTemplateInterface[] | undefined>; /** * Module type * - Choices: `4`, `8`, `22`, `50` */ readonly moduleType: pulumi.Output<string | undefined>; /** * The name of the feature template */ readonly name: pulumi.Output<string>; /** * Number of Slots * - Range: `0`-`31` * - Default value: `0` */ readonly slot: pulumi.Output<number | undefined>; /** * Add static MAC address entries for interface */ readonly staticMacAddresses: pulumi.Output<outputs.SwitchportFeatureTemplateStaticMacAddress[] | undefined>; /** * Number of Sub-Slots * - Range: `0`-`31` * - Default value: `0` */ readonly subSlot: pulumi.Output<number | undefined>; /** * The template type */ readonly templateType: pulumi.Output<string>; /** * The version of the feature template */ readonly version: pulumi.Output<number>; /** * Create a SwitchportFeatureTemplate 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: SwitchportFeatureTemplateArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering SwitchportFeatureTemplate resources. */ export interface SwitchportFeatureTemplateState { /** * Set when a MAC table entry ages out (0 to disable, 10-1000000 otherwise) * - Range: `0`-`1000000` * - Default value: `300` */ ageOutTime?: pulumi.Input<number>; /** * Variable name */ ageOutTimeVariable?: pulumi.Input<string>; /** * The description of the feature template */ description?: pulumi.Input<string>; /** * List of supported device types * - Choices: `vedge-C8000V`, `vedge-C8300-1N1S-4T2X`, `vedge-C8300-1N1S-6T`, `vedge-C8300-2N2S-6T`, `vedge-C8300-2N2S-4T2X`, `vedge-C8500-12X4QC`, `vedge-C8500-12X`, `vedge-C8500-20X6C`, `vedge-C8500L-8S4X`, `vedge-C8200-1N-4T`, `vedge-C8200L-1N-4T` */ deviceTypes?: pulumi.Input<pulumi.Input<string>[]>; /** * Interface name: GigabitEthernet0/<>/<> when present */ interfaces?: pulumi.Input<pulumi.Input<inputs.SwitchportFeatureTemplateInterface>[]>; /** * Module type * - Choices: `4`, `8`, `22`, `50` */ moduleType?: pulumi.Input<string>; /** * The name of the feature template */ name?: pulumi.Input<string>; /** * Number of Slots * - Range: `0`-`31` * - Default value: `0` */ slot?: pulumi.Input<number>; /** * Add static MAC address entries for interface */ staticMacAddresses?: pulumi.Input<pulumi.Input<inputs.SwitchportFeatureTemplateStaticMacAddress>[]>; /** * Number of Sub-Slots * - Range: `0`-`31` * - Default value: `0` */ subSlot?: pulumi.Input<number>; /** * The template type */ templateType?: pulumi.Input<string>; /** * The version of the feature template */ version?: pulumi.Input<number>; } /** * The set of arguments for constructing a SwitchportFeatureTemplate resource. */ export interface SwitchportFeatureTemplateArgs { /** * Set when a MAC table entry ages out (0 to disable, 10-1000000 otherwise) * - Range: `0`-`1000000` * - Default value: `300` */ ageOutTime?: pulumi.Input<number>; /** * Variable name */ ageOutTimeVariable?: pulumi.Input<string>; /** * The description of the feature template */ description: pulumi.Input<string>; /** * List of supported device types * - Choices: `vedge-C8000V`, `vedge-C8300-1N1S-4T2X`, `vedge-C8300-1N1S-6T`, `vedge-C8300-2N2S-6T`, `vedge-C8300-2N2S-4T2X`, `vedge-C8500-12X4QC`, `vedge-C8500-12X`, `vedge-C8500-20X6C`, `vedge-C8500L-8S4X`, `vedge-C8200-1N-4T`, `vedge-C8200L-1N-4T` */ deviceTypes: pulumi.Input<pulumi.Input<string>[]>; /** * Interface name: GigabitEthernet0/<>/<> when present */ interfaces?: pulumi.Input<pulumi.Input<inputs.SwitchportFeatureTemplateInterface>[]>; /** * Module type * - Choices: `4`, `8`, `22`, `50` */ moduleType?: pulumi.Input<string>; /** * The name of the feature template */ name?: pulumi.Input<string>; /** * Number of Slots * - Range: `0`-`31` * - Default value: `0` */ slot?: pulumi.Input<number>; /** * Add static MAC address entries for interface */ staticMacAddresses?: pulumi.Input<pulumi.Input<inputs.SwitchportFeatureTemplateStaticMacAddress>[]>; /** * Number of Sub-Slots * - Range: `0`-`31` * - Default value: `0` */ subSlot?: pulumi.Input<number>; }