1. Packages
  2. Cisco IOS XE Resource Provider
  3. API Docs
  4. CryptoIpsecTransformSet
Cisco IOS XE v0.0.1 published on Friday, Sep 22, 2023 by lbrlabs

iosxe.CryptoIpsecTransformSet

Explore with Pulumi AI

iosxe logo
Cisco IOS XE v0.0.1 published on Friday, Sep 22, 2023 by lbrlabs

    This resource can manage the Crypto IPSec Transform Set configuration.

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Iosxe = Lbrlabs.PulumiPackage.Iosxe;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Iosxe.CryptoIpsecTransformSet("example", new()
        {
            Esp = "esp-aes",
            EspHmac = "esp-sha-hmac",
            ModeTunnel = true,
        });
    
    });
    
    package main
    
    import (
    	"github.com/lbrlabs/pulumi-iosxe/sdk/go/iosxe"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := iosxe.NewCryptoIpsecTransformSet(ctx, "example", &iosxe.CryptoIpsecTransformSetArgs{
    			Esp:        pulumi.String("esp-aes"),
    			EspHmac:    pulumi.String("esp-sha-hmac"),
    			ModeTunnel: pulumi.Bool(true),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.iosxe.CryptoIpsecTransformSet;
    import com.pulumi.iosxe.CryptoIpsecTransformSetArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var example = new CryptoIpsecTransformSet("example", CryptoIpsecTransformSetArgs.builder()        
                .esp("esp-aes")
                .espHmac("esp-sha-hmac")
                .modeTunnel(true)
                .build());
    
        }
    }
    
    import pulumi
    import lbrlabs_pulumi_iosxe as iosxe
    
    example = iosxe.CryptoIpsecTransformSet("example",
        esp="esp-aes",
        esp_hmac="esp-sha-hmac",
        mode_tunnel=True)
    
    import * as pulumi from "@pulumi/pulumi";
    import * as iosxe from "@lbrlabs/pulumi-iosxe";
    
    const example = new iosxe.CryptoIpsecTransformSet("example", {
        esp: "esp-aes",
        espHmac: "esp-sha-hmac",
        modeTunnel: true,
    });
    
    resources:
      example:
        type: iosxe:CryptoIpsecTransformSet
        properties:
          esp: esp-aes
          espHmac: esp-sha-hmac
          modeTunnel: true
    

    Create CryptoIpsecTransformSet Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new CryptoIpsecTransformSet(name: string, args: CryptoIpsecTransformSetArgs, opts?: CustomResourceOptions);
    @overload
    def CryptoIpsecTransformSet(resource_name: str,
                                args: CryptoIpsecTransformSetArgs,
                                opts: Optional[ResourceOptions] = None)
    
    @overload
    def CryptoIpsecTransformSet(resource_name: str,
                                opts: Optional[ResourceOptions] = None,
                                esp: Optional[str] = None,
                                esp_hmac: Optional[str] = None,
                                device: Optional[str] = None,
                                mode_tunnel: Optional[bool] = None,
                                name: Optional[str] = None)
    func NewCryptoIpsecTransformSet(ctx *Context, name string, args CryptoIpsecTransformSetArgs, opts ...ResourceOption) (*CryptoIpsecTransformSet, error)
    public CryptoIpsecTransformSet(string name, CryptoIpsecTransformSetArgs args, CustomResourceOptions? opts = null)
    public CryptoIpsecTransformSet(String name, CryptoIpsecTransformSetArgs args)
    public CryptoIpsecTransformSet(String name, CryptoIpsecTransformSetArgs args, CustomResourceOptions options)
    
    type: iosxe:CryptoIpsecTransformSet
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args CryptoIpsecTransformSetArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args CryptoIpsecTransformSetArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args CryptoIpsecTransformSetArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args CryptoIpsecTransformSetArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args CryptoIpsecTransformSetArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var cryptoIpsecTransformSetResource = new Iosxe.CryptoIpsecTransformSet("cryptoIpsecTransformSetResource", new()
    {
        Esp = "string",
        EspHmac = "string",
        Device = "string",
        ModeTunnel = false,
        Name = "string",
    });
    
    example, err := iosxe.NewCryptoIpsecTransformSet(ctx, "cryptoIpsecTransformSetResource", &iosxe.CryptoIpsecTransformSetArgs{
    	Esp:        pulumi.String("string"),
    	EspHmac:    pulumi.String("string"),
    	Device:     pulumi.String("string"),
    	ModeTunnel: pulumi.Bool(false),
    	Name:       pulumi.String("string"),
    })
    
    var cryptoIpsecTransformSetResource = new CryptoIpsecTransformSet("cryptoIpsecTransformSetResource", CryptoIpsecTransformSetArgs.builder()
        .esp("string")
        .espHmac("string")
        .device("string")
        .modeTunnel(false)
        .name("string")
        .build());
    
    crypto_ipsec_transform_set_resource = iosxe.CryptoIpsecTransformSet("cryptoIpsecTransformSetResource",
        esp="string",
        esp_hmac="string",
        device="string",
        mode_tunnel=False,
        name="string")
    
    const cryptoIpsecTransformSetResource = new iosxe.CryptoIpsecTransformSet("cryptoIpsecTransformSetResource", {
        esp: "string",
        espHmac: "string",
        device: "string",
        modeTunnel: false,
        name: "string",
    });
    
    type: iosxe:CryptoIpsecTransformSet
    properties:
        device: string
        esp: string
        espHmac: string
        modeTunnel: false
        name: string
    

    CryptoIpsecTransformSet Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The CryptoIpsecTransformSet resource accepts the following input properties:

    Esp string
    • Choices: esp-3des, esp-aes, esp-des, esp-gcm, esp-gmac, esp-null, esp-seal
    EspHmac string
    • Choices: esp-md5-hmac, esp-sha-hmac, esp-sha256-hmac, esp-sha384-hmac, esp-sha512-hmac
    Device string
    A device name from the provider configuration.
    ModeTunnel bool
    tunnel (datagram encapsulation) mode
    Name string
    Esp string
    • Choices: esp-3des, esp-aes, esp-des, esp-gcm, esp-gmac, esp-null, esp-seal
    EspHmac string
    • Choices: esp-md5-hmac, esp-sha-hmac, esp-sha256-hmac, esp-sha384-hmac, esp-sha512-hmac
    Device string
    A device name from the provider configuration.
    ModeTunnel bool
    tunnel (datagram encapsulation) mode
    Name string
    esp String
    • Choices: esp-3des, esp-aes, esp-des, esp-gcm, esp-gmac, esp-null, esp-seal
    espHmac String
    • Choices: esp-md5-hmac, esp-sha-hmac, esp-sha256-hmac, esp-sha384-hmac, esp-sha512-hmac
    device String
    A device name from the provider configuration.
    modeTunnel Boolean
    tunnel (datagram encapsulation) mode
    name String
    esp string
    • Choices: esp-3des, esp-aes, esp-des, esp-gcm, esp-gmac, esp-null, esp-seal
    espHmac string
    • Choices: esp-md5-hmac, esp-sha-hmac, esp-sha256-hmac, esp-sha384-hmac, esp-sha512-hmac
    device string
    A device name from the provider configuration.
    modeTunnel boolean
    tunnel (datagram encapsulation) mode
    name string
    esp str
    • Choices: esp-3des, esp-aes, esp-des, esp-gcm, esp-gmac, esp-null, esp-seal
    esp_hmac str
    • Choices: esp-md5-hmac, esp-sha-hmac, esp-sha256-hmac, esp-sha384-hmac, esp-sha512-hmac
    device str
    A device name from the provider configuration.
    mode_tunnel bool
    tunnel (datagram encapsulation) mode
    name str
    esp String
    • Choices: esp-3des, esp-aes, esp-des, esp-gcm, esp-gmac, esp-null, esp-seal
    espHmac String
    • Choices: esp-md5-hmac, esp-sha-hmac, esp-sha256-hmac, esp-sha384-hmac, esp-sha512-hmac
    device String
    A device name from the provider configuration.
    modeTunnel Boolean
    tunnel (datagram encapsulation) mode
    name String

    Outputs

    All input properties are implicitly available as output properties. Additionally, the CryptoIpsecTransformSet resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing CryptoIpsecTransformSet Resource

    Get an existing CryptoIpsecTransformSet resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: CryptoIpsecTransformSetState, opts?: CustomResourceOptions): CryptoIpsecTransformSet
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            device: Optional[str] = None,
            esp: Optional[str] = None,
            esp_hmac: Optional[str] = None,
            mode_tunnel: Optional[bool] = None,
            name: Optional[str] = None) -> CryptoIpsecTransformSet
    func GetCryptoIpsecTransformSet(ctx *Context, name string, id IDInput, state *CryptoIpsecTransformSetState, opts ...ResourceOption) (*CryptoIpsecTransformSet, error)
    public static CryptoIpsecTransformSet Get(string name, Input<string> id, CryptoIpsecTransformSetState? state, CustomResourceOptions? opts = null)
    public static CryptoIpsecTransformSet get(String name, Output<String> id, CryptoIpsecTransformSetState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Device string
    A device name from the provider configuration.
    Esp string
    • Choices: esp-3des, esp-aes, esp-des, esp-gcm, esp-gmac, esp-null, esp-seal
    EspHmac string
    • Choices: esp-md5-hmac, esp-sha-hmac, esp-sha256-hmac, esp-sha384-hmac, esp-sha512-hmac
    ModeTunnel bool
    tunnel (datagram encapsulation) mode
    Name string
    Device string
    A device name from the provider configuration.
    Esp string
    • Choices: esp-3des, esp-aes, esp-des, esp-gcm, esp-gmac, esp-null, esp-seal
    EspHmac string
    • Choices: esp-md5-hmac, esp-sha-hmac, esp-sha256-hmac, esp-sha384-hmac, esp-sha512-hmac
    ModeTunnel bool
    tunnel (datagram encapsulation) mode
    Name string
    device String
    A device name from the provider configuration.
    esp String
    • Choices: esp-3des, esp-aes, esp-des, esp-gcm, esp-gmac, esp-null, esp-seal
    espHmac String
    • Choices: esp-md5-hmac, esp-sha-hmac, esp-sha256-hmac, esp-sha384-hmac, esp-sha512-hmac
    modeTunnel Boolean
    tunnel (datagram encapsulation) mode
    name String
    device string
    A device name from the provider configuration.
    esp string
    • Choices: esp-3des, esp-aes, esp-des, esp-gcm, esp-gmac, esp-null, esp-seal
    espHmac string
    • Choices: esp-md5-hmac, esp-sha-hmac, esp-sha256-hmac, esp-sha384-hmac, esp-sha512-hmac
    modeTunnel boolean
    tunnel (datagram encapsulation) mode
    name string
    device str
    A device name from the provider configuration.
    esp str
    • Choices: esp-3des, esp-aes, esp-des, esp-gcm, esp-gmac, esp-null, esp-seal
    esp_hmac str
    • Choices: esp-md5-hmac, esp-sha-hmac, esp-sha256-hmac, esp-sha384-hmac, esp-sha512-hmac
    mode_tunnel bool
    tunnel (datagram encapsulation) mode
    name str
    device String
    A device name from the provider configuration.
    esp String
    • Choices: esp-3des, esp-aes, esp-des, esp-gcm, esp-gmac, esp-null, esp-seal
    espHmac String
    • Choices: esp-md5-hmac, esp-sha-hmac, esp-sha256-hmac, esp-sha384-hmac, esp-sha512-hmac
    modeTunnel Boolean
    tunnel (datagram encapsulation) mode
    name String

    Import

     $ pulumi import iosxe:index/cryptoIpsecTransformSet:CryptoIpsecTransformSet example "Cisco-IOS-XE-native:native/crypto/Cisco-IOS-XE-crypto:ipsec/transform-set=TEST"
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    iosxe lbrlabs/pulumi-iosxe
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the iosxe Terraform Provider.
    iosxe logo
    Cisco IOS XE v0.0.1 published on Friday, Sep 22, 2023 by lbrlabs