IpsecCryptoProfile resource
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as scm from "@pulumi/scm";
// The resource block defines a new IPsec Crypto Profile.
const scmIpsecCryptoProfile2 = new scm.IpsecCryptoProfile("scm_ipsec_crypto_profile_2", {
name: "scm_ipsec_crypto_profile_2",
folder: "Prisma Access",
esp: {
authentications: [
"sha256",
"sha384",
],
encryptions: [
"aes-256-gcm",
"aes-128-cbc",
],
},
dhGroup: "group14",
lifetime: {
hours: 1,
},
lifesize: {
gb: 10,
},
});
import pulumi
import pulumi_scm as scm
# The resource block defines a new IPsec Crypto Profile.
scm_ipsec_crypto_profile2 = scm.IpsecCryptoProfile("scm_ipsec_crypto_profile_2",
name="scm_ipsec_crypto_profile_2",
folder="Prisma Access",
esp={
"authentications": [
"sha256",
"sha384",
],
"encryptions": [
"aes-256-gcm",
"aes-128-cbc",
],
},
dh_group="group14",
lifetime={
"hours": 1,
},
lifesize={
"gb": 10,
})
package main
import (
"github.com/pulumi/pulumi-scm/sdk/go/scm"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
// The resource block defines a new IPsec Crypto Profile.
_, err := scm.NewIpsecCryptoProfile(ctx, "scm_ipsec_crypto_profile_2", &scm.IpsecCryptoProfileArgs{
Name: pulumi.String("scm_ipsec_crypto_profile_2"),
Folder: pulumi.String("Prisma Access"),
Esp: &scm.IpsecCryptoProfileEspArgs{
Authentications: pulumi.StringArray{
pulumi.String("sha256"),
pulumi.String("sha384"),
},
Encryptions: pulumi.StringArray{
pulumi.String("aes-256-gcm"),
pulumi.String("aes-128-cbc"),
},
},
DhGroup: pulumi.String("group14"),
Lifetime: &scm.IpsecCryptoProfileLifetimeArgs{
Hours: pulumi.Int(1),
},
Lifesize: &scm.IpsecCryptoProfileLifesizeArgs{
Gb: pulumi.Int(10),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Scm = Pulumi.Scm;
return await Deployment.RunAsync(() =>
{
// The resource block defines a new IPsec Crypto Profile.
var scmIpsecCryptoProfile2 = new Scm.IpsecCryptoProfile("scm_ipsec_crypto_profile_2", new()
{
Name = "scm_ipsec_crypto_profile_2",
Folder = "Prisma Access",
Esp = new Scm.Inputs.IpsecCryptoProfileEspArgs
{
Authentications = new[]
{
"sha256",
"sha384",
},
Encryptions = new[]
{
"aes-256-gcm",
"aes-128-cbc",
},
},
DhGroup = "group14",
Lifetime = new Scm.Inputs.IpsecCryptoProfileLifetimeArgs
{
Hours = 1,
},
Lifesize = new Scm.Inputs.IpsecCryptoProfileLifesizeArgs
{
Gb = 10,
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.scm.IpsecCryptoProfile;
import com.pulumi.scm.IpsecCryptoProfileArgs;
import com.pulumi.scm.inputs.IpsecCryptoProfileEspArgs;
import com.pulumi.scm.inputs.IpsecCryptoProfileLifetimeArgs;
import com.pulumi.scm.inputs.IpsecCryptoProfileLifesizeArgs;
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) {
// The resource block defines a new IPsec Crypto Profile.
var scmIpsecCryptoProfile2 = new IpsecCryptoProfile("scmIpsecCryptoProfile2", IpsecCryptoProfileArgs.builder()
.name("scm_ipsec_crypto_profile_2")
.folder("Prisma Access")
.esp(IpsecCryptoProfileEspArgs.builder()
.authentications(
"sha256",
"sha384")
.encryptions(
"aes-256-gcm",
"aes-128-cbc")
.build())
.dhGroup("group14")
.lifetime(IpsecCryptoProfileLifetimeArgs.builder()
.hours(1)
.build())
.lifesize(IpsecCryptoProfileLifesizeArgs.builder()
.gb(10)
.build())
.build());
}
}
resources:
# The resource block defines a new IPsec Crypto Profile.
scmIpsecCryptoProfile2:
type: scm:IpsecCryptoProfile
name: scm_ipsec_crypto_profile_2
properties:
name: scm_ipsec_crypto_profile_2
folder: Prisma Access
esp:
authentications:
- sha256
- sha384
encryptions:
- aes-256-gcm
- aes-128-cbc
dhGroup: group14
lifetime:
hours: 1
lifesize:
gb: 10
Create IpsecCryptoProfile Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new IpsecCryptoProfile(name: string, args: IpsecCryptoProfileArgs, opts?: CustomResourceOptions);@overload
def IpsecCryptoProfile(resource_name: str,
args: IpsecCryptoProfileArgs,
opts: Optional[ResourceOptions] = None)
@overload
def IpsecCryptoProfile(resource_name: str,
opts: Optional[ResourceOptions] = None,
lifetime: Optional[IpsecCryptoProfileLifetimeArgs] = None,
ah: Optional[IpsecCryptoProfileAhArgs] = None,
device: Optional[str] = None,
dh_group: Optional[str] = None,
esp: Optional[IpsecCryptoProfileEspArgs] = None,
folder: Optional[str] = None,
lifesize: Optional[IpsecCryptoProfileLifesizeArgs] = None,
name: Optional[str] = None,
snippet: Optional[str] = None)func NewIpsecCryptoProfile(ctx *Context, name string, args IpsecCryptoProfileArgs, opts ...ResourceOption) (*IpsecCryptoProfile, error)public IpsecCryptoProfile(string name, IpsecCryptoProfileArgs args, CustomResourceOptions? opts = null)
public IpsecCryptoProfile(String name, IpsecCryptoProfileArgs args)
public IpsecCryptoProfile(String name, IpsecCryptoProfileArgs args, CustomResourceOptions options)
type: scm:IpsecCryptoProfile
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 IpsecCryptoProfileArgs
- 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 IpsecCryptoProfileArgs
- 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 IpsecCryptoProfileArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args IpsecCryptoProfileArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args IpsecCryptoProfileArgs
- 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 ipsecCryptoProfileResource = new Scm.IpsecCryptoProfile("ipsecCryptoProfileResource", new()
{
Lifetime = new Scm.Inputs.IpsecCryptoProfileLifetimeArgs
{
Days = 0,
Hours = 0,
Minutes = 0,
Seconds = 0,
},
Ah = new Scm.Inputs.IpsecCryptoProfileAhArgs
{
Authentications = new[]
{
"string",
},
},
Device = "string",
DhGroup = "string",
Esp = new Scm.Inputs.IpsecCryptoProfileEspArgs
{
Authentications = new[]
{
"string",
},
Encryptions = new[]
{
"string",
},
},
Folder = "string",
Lifesize = new Scm.Inputs.IpsecCryptoProfileLifesizeArgs
{
Gb = 0,
Kb = 0,
Mb = 0,
Tb = 0,
},
Name = "string",
Snippet = "string",
});
example, err := scm.NewIpsecCryptoProfile(ctx, "ipsecCryptoProfileResource", &scm.IpsecCryptoProfileArgs{
Lifetime: &scm.IpsecCryptoProfileLifetimeArgs{
Days: pulumi.Int(0),
Hours: pulumi.Int(0),
Minutes: pulumi.Int(0),
Seconds: pulumi.Int(0),
},
Ah: &scm.IpsecCryptoProfileAhArgs{
Authentications: pulumi.StringArray{
pulumi.String("string"),
},
},
Device: pulumi.String("string"),
DhGroup: pulumi.String("string"),
Esp: &scm.IpsecCryptoProfileEspArgs{
Authentications: pulumi.StringArray{
pulumi.String("string"),
},
Encryptions: pulumi.StringArray{
pulumi.String("string"),
},
},
Folder: pulumi.String("string"),
Lifesize: &scm.IpsecCryptoProfileLifesizeArgs{
Gb: pulumi.Int(0),
Kb: pulumi.Int(0),
Mb: pulumi.Int(0),
Tb: pulumi.Int(0),
},
Name: pulumi.String("string"),
Snippet: pulumi.String("string"),
})
var ipsecCryptoProfileResource = new IpsecCryptoProfile("ipsecCryptoProfileResource", IpsecCryptoProfileArgs.builder()
.lifetime(IpsecCryptoProfileLifetimeArgs.builder()
.days(0)
.hours(0)
.minutes(0)
.seconds(0)
.build())
.ah(IpsecCryptoProfileAhArgs.builder()
.authentications("string")
.build())
.device("string")
.dhGroup("string")
.esp(IpsecCryptoProfileEspArgs.builder()
.authentications("string")
.encryptions("string")
.build())
.folder("string")
.lifesize(IpsecCryptoProfileLifesizeArgs.builder()
.gb(0)
.kb(0)
.mb(0)
.tb(0)
.build())
.name("string")
.snippet("string")
.build());
ipsec_crypto_profile_resource = scm.IpsecCryptoProfile("ipsecCryptoProfileResource",
lifetime={
"days": 0,
"hours": 0,
"minutes": 0,
"seconds": 0,
},
ah={
"authentications": ["string"],
},
device="string",
dh_group="string",
esp={
"authentications": ["string"],
"encryptions": ["string"],
},
folder="string",
lifesize={
"gb": 0,
"kb": 0,
"mb": 0,
"tb": 0,
},
name="string",
snippet="string")
const ipsecCryptoProfileResource = new scm.IpsecCryptoProfile("ipsecCryptoProfileResource", {
lifetime: {
days: 0,
hours: 0,
minutes: 0,
seconds: 0,
},
ah: {
authentications: ["string"],
},
device: "string",
dhGroup: "string",
esp: {
authentications: ["string"],
encryptions: ["string"],
},
folder: "string",
lifesize: {
gb: 0,
kb: 0,
mb: 0,
tb: 0,
},
name: "string",
snippet: "string",
});
type: scm:IpsecCryptoProfile
properties:
ah:
authentications:
- string
device: string
dhGroup: string
esp:
authentications:
- string
encryptions:
- string
folder: string
lifesize:
gb: 0
kb: 0
mb: 0
tb: 0
lifetime:
days: 0
hours: 0
minutes: 0
seconds: 0
name: string
snippet: string
IpsecCryptoProfile 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 IpsecCryptoProfile resource accepts the following input properties:
- Lifetime
Ipsec
Crypto Profile Lifetime - Ipsec crypto profile lifetime
- Ah
Ipsec
Crypto Profile Ah - Ah
- Device string
- The device in which the resource is defined
- Dh
Group string - phase-2 DH group (PFS DH group)
- Esp
Ipsec
Crypto Profile Esp - Esp
- Folder string
- The folder in which the resource is defined
- Lifesize
Ipsec
Crypto Profile Lifesize - Lifesize
- Name string
- Alphanumeric string begin with letter: [0-9a-zA-Z._-]
- Snippet string
- The snippet in which the resource is defined
- Lifetime
Ipsec
Crypto Profile Lifetime Args - Ipsec crypto profile lifetime
- Ah
Ipsec
Crypto Profile Ah Args - Ah
- Device string
- The device in which the resource is defined
- Dh
Group string - phase-2 DH group (PFS DH group)
- Esp
Ipsec
Crypto Profile Esp Args - Esp
- Folder string
- The folder in which the resource is defined
- Lifesize
Ipsec
Crypto Profile Lifesize Args - Lifesize
- Name string
- Alphanumeric string begin with letter: [0-9a-zA-Z._-]
- Snippet string
- The snippet in which the resource is defined
- lifetime
Ipsec
Crypto Profile Lifetime - Ipsec crypto profile lifetime
- ah
Ipsec
Crypto Profile Ah - Ah
- device String
- The device in which the resource is defined
- dh
Group String - phase-2 DH group (PFS DH group)
- esp
Ipsec
Crypto Profile Esp - Esp
- folder String
- The folder in which the resource is defined
- lifesize
Ipsec
Crypto Profile Lifesize - Lifesize
- name String
- Alphanumeric string begin with letter: [0-9a-zA-Z._-]
- snippet String
- The snippet in which the resource is defined
- lifetime
Ipsec
Crypto Profile Lifetime - Ipsec crypto profile lifetime
- ah
Ipsec
Crypto Profile Ah - Ah
- device string
- The device in which the resource is defined
- dh
Group string - phase-2 DH group (PFS DH group)
- esp
Ipsec
Crypto Profile Esp - Esp
- folder string
- The folder in which the resource is defined
- lifesize
Ipsec
Crypto Profile Lifesize - Lifesize
- name string
- Alphanumeric string begin with letter: [0-9a-zA-Z._-]
- snippet string
- The snippet in which the resource is defined
- lifetime
Ipsec
Crypto Profile Lifetime Args - Ipsec crypto profile lifetime
- ah
Ipsec
Crypto Profile Ah Args - Ah
- device str
- The device in which the resource is defined
- dh_
group str - phase-2 DH group (PFS DH group)
- esp
Ipsec
Crypto Profile Esp Args - Esp
- folder str
- The folder in which the resource is defined
- lifesize
Ipsec
Crypto Profile Lifesize Args - Lifesize
- name str
- Alphanumeric string begin with letter: [0-9a-zA-Z._-]
- snippet str
- The snippet in which the resource is defined
- lifetime Property Map
- Ipsec crypto profile lifetime
- ah Property Map
- Ah
- device String
- The device in which the resource is defined
- dh
Group String - phase-2 DH group (PFS DH group)
- esp Property Map
- Esp
- folder String
- The folder in which the resource is defined
- lifesize Property Map
- Lifesize
- name String
- Alphanumeric string begin with letter: [0-9a-zA-Z._-]
- snippet String
- The snippet in which the resource is defined
Outputs
All input properties are implicitly available as output properties. Additionally, the IpsecCryptoProfile resource produces the following output properties:
Look up Existing IpsecCryptoProfile Resource
Get an existing IpsecCryptoProfile 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?: IpsecCryptoProfileState, opts?: CustomResourceOptions): IpsecCryptoProfile@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
ah: Optional[IpsecCryptoProfileAhArgs] = None,
device: Optional[str] = None,
dh_group: Optional[str] = None,
esp: Optional[IpsecCryptoProfileEspArgs] = None,
folder: Optional[str] = None,
lifesize: Optional[IpsecCryptoProfileLifesizeArgs] = None,
lifetime: Optional[IpsecCryptoProfileLifetimeArgs] = None,
name: Optional[str] = None,
snippet: Optional[str] = None,
tfid: Optional[str] = None) -> IpsecCryptoProfilefunc GetIpsecCryptoProfile(ctx *Context, name string, id IDInput, state *IpsecCryptoProfileState, opts ...ResourceOption) (*IpsecCryptoProfile, error)public static IpsecCryptoProfile Get(string name, Input<string> id, IpsecCryptoProfileState? state, CustomResourceOptions? opts = null)public static IpsecCryptoProfile get(String name, Output<String> id, IpsecCryptoProfileState state, CustomResourceOptions options)resources: _: type: scm:IpsecCryptoProfile get: id: ${id}- 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.
- Ah
Ipsec
Crypto Profile Ah - Ah
- Device string
- The device in which the resource is defined
- Dh
Group string - phase-2 DH group (PFS DH group)
- Esp
Ipsec
Crypto Profile Esp - Esp
- Folder string
- The folder in which the resource is defined
- Lifesize
Ipsec
Crypto Profile Lifesize - Lifesize
- Lifetime
Ipsec
Crypto Profile Lifetime - Ipsec crypto profile lifetime
- Name string
- Alphanumeric string begin with letter: [0-9a-zA-Z._-]
- Snippet string
- The snippet in which the resource is defined
- Tfid string
- Ah
Ipsec
Crypto Profile Ah Args - Ah
- Device string
- The device in which the resource is defined
- Dh
Group string - phase-2 DH group (PFS DH group)
- Esp
Ipsec
Crypto Profile Esp Args - Esp
- Folder string
- The folder in which the resource is defined
- Lifesize
Ipsec
Crypto Profile Lifesize Args - Lifesize
- Lifetime
Ipsec
Crypto Profile Lifetime Args - Ipsec crypto profile lifetime
- Name string
- Alphanumeric string begin with letter: [0-9a-zA-Z._-]
- Snippet string
- The snippet in which the resource is defined
- Tfid string
- ah
Ipsec
Crypto Profile Ah - Ah
- device String
- The device in which the resource is defined
- dh
Group String - phase-2 DH group (PFS DH group)
- esp
Ipsec
Crypto Profile Esp - Esp
- folder String
- The folder in which the resource is defined
- lifesize
Ipsec
Crypto Profile Lifesize - Lifesize
- lifetime
Ipsec
Crypto Profile Lifetime - Ipsec crypto profile lifetime
- name String
- Alphanumeric string begin with letter: [0-9a-zA-Z._-]
- snippet String
- The snippet in which the resource is defined
- tfid String
- ah
Ipsec
Crypto Profile Ah - Ah
- device string
- The device in which the resource is defined
- dh
Group string - phase-2 DH group (PFS DH group)
- esp
Ipsec
Crypto Profile Esp - Esp
- folder string
- The folder in which the resource is defined
- lifesize
Ipsec
Crypto Profile Lifesize - Lifesize
- lifetime
Ipsec
Crypto Profile Lifetime - Ipsec crypto profile lifetime
- name string
- Alphanumeric string begin with letter: [0-9a-zA-Z._-]
- snippet string
- The snippet in which the resource is defined
- tfid string
- ah
Ipsec
Crypto Profile Ah Args - Ah
- device str
- The device in which the resource is defined
- dh_
group str - phase-2 DH group (PFS DH group)
- esp
Ipsec
Crypto Profile Esp Args - Esp
- folder str
- The folder in which the resource is defined
- lifesize
Ipsec
Crypto Profile Lifesize Args - Lifesize
- lifetime
Ipsec
Crypto Profile Lifetime Args - Ipsec crypto profile lifetime
- name str
- Alphanumeric string begin with letter: [0-9a-zA-Z._-]
- snippet str
- The snippet in which the resource is defined
- tfid str
- ah Property Map
- Ah
- device String
- The device in which the resource is defined
- dh
Group String - phase-2 DH group (PFS DH group)
- esp Property Map
- Esp
- folder String
- The folder in which the resource is defined
- lifesize Property Map
- Lifesize
- lifetime Property Map
- Ipsec crypto profile lifetime
- name String
- Alphanumeric string begin with letter: [0-9a-zA-Z._-]
- snippet String
- The snippet in which the resource is defined
- tfid String
Supporting Types
IpsecCryptoProfileAh, IpsecCryptoProfileAhArgs
- Authentications List<string>
- Authentication
- Authentications []string
- Authentication
- authentications List<String>
- Authentication
- authentications string[]
- Authentication
- authentications Sequence[str]
- Authentication
- authentications List<String>
- Authentication
IpsecCryptoProfileEsp, IpsecCryptoProfileEspArgs
- Authentications List<string>
- Authentication algorithm
- Encryptions List<string>
- Encryption algorithm
- Authentications []string
- Authentication algorithm
- Encryptions []string
- Encryption algorithm
- authentications List<String>
- Authentication algorithm
- encryptions List<String>
- Encryption algorithm
- authentications string[]
- Authentication algorithm
- encryptions string[]
- Encryption algorithm
- authentications Sequence[str]
- Authentication algorithm
- encryptions Sequence[str]
- Encryption algorithm
- authentications List<String>
- Authentication algorithm
- encryptions List<String>
- Encryption algorithm
IpsecCryptoProfileLifesize, IpsecCryptoProfileLifesizeArgs
IpsecCryptoProfileLifetime, IpsecCryptoProfileLifetimeArgs
Package Details
- Repository
- scm pulumi/pulumi-scm
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
scmTerraform Provider.
