SdwanErrorCorrectionProfile resource
Create SdwanErrorCorrectionProfile Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SdwanErrorCorrectionProfile(name: string, args: SdwanErrorCorrectionProfileArgs, opts?: CustomResourceOptions);@overload
def SdwanErrorCorrectionProfile(resource_name: str,
args: SdwanErrorCorrectionProfileArgs,
opts: Optional[ResourceOptions] = None)
@overload
def SdwanErrorCorrectionProfile(resource_name: str,
opts: Optional[ResourceOptions] = None,
activation_threshold: Optional[int] = None,
mode: Optional[SdwanErrorCorrectionProfileModeArgs] = None,
device: Optional[str] = None,
folder: Optional[str] = None,
name: Optional[str] = None,
snippet: Optional[str] = None)func NewSdwanErrorCorrectionProfile(ctx *Context, name string, args SdwanErrorCorrectionProfileArgs, opts ...ResourceOption) (*SdwanErrorCorrectionProfile, error)public SdwanErrorCorrectionProfile(string name, SdwanErrorCorrectionProfileArgs args, CustomResourceOptions? opts = null)
public SdwanErrorCorrectionProfile(String name, SdwanErrorCorrectionProfileArgs args)
public SdwanErrorCorrectionProfile(String name, SdwanErrorCorrectionProfileArgs args, CustomResourceOptions options)
type: scm:SdwanErrorCorrectionProfile
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 SdwanErrorCorrectionProfileArgs
- 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 SdwanErrorCorrectionProfileArgs
- 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 SdwanErrorCorrectionProfileArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SdwanErrorCorrectionProfileArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SdwanErrorCorrectionProfileArgs
- 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 sdwanErrorCorrectionProfileResource = new Scm.SdwanErrorCorrectionProfile("sdwanErrorCorrectionProfileResource", new()
{
ActivationThreshold = 0,
Mode = new Scm.Inputs.SdwanErrorCorrectionProfileModeArgs
{
ForwardErrorCorrection = new Scm.Inputs.SdwanErrorCorrectionProfileModeForwardErrorCorrectionArgs
{
Ratio = "string",
RecoveryDuration = 0,
},
PacketDuplication = new Scm.Inputs.SdwanErrorCorrectionProfileModePacketDuplicationArgs
{
RecoveryDurationPd = 0,
},
},
Device = "string",
Folder = "string",
Name = "string",
Snippet = "string",
});
example, err := scm.NewSdwanErrorCorrectionProfile(ctx, "sdwanErrorCorrectionProfileResource", &scm.SdwanErrorCorrectionProfileArgs{
ActivationThreshold: pulumi.Int(0),
Mode: &scm.SdwanErrorCorrectionProfileModeArgs{
ForwardErrorCorrection: &scm.SdwanErrorCorrectionProfileModeForwardErrorCorrectionArgs{
Ratio: pulumi.String("string"),
RecoveryDuration: pulumi.Int(0),
},
PacketDuplication: &scm.SdwanErrorCorrectionProfileModePacketDuplicationArgs{
RecoveryDurationPd: pulumi.Int(0),
},
},
Device: pulumi.String("string"),
Folder: pulumi.String("string"),
Name: pulumi.String("string"),
Snippet: pulumi.String("string"),
})
var sdwanErrorCorrectionProfileResource = new SdwanErrorCorrectionProfile("sdwanErrorCorrectionProfileResource", SdwanErrorCorrectionProfileArgs.builder()
.activationThreshold(0)
.mode(SdwanErrorCorrectionProfileModeArgs.builder()
.forwardErrorCorrection(SdwanErrorCorrectionProfileModeForwardErrorCorrectionArgs.builder()
.ratio("string")
.recoveryDuration(0)
.build())
.packetDuplication(SdwanErrorCorrectionProfileModePacketDuplicationArgs.builder()
.recoveryDurationPd(0)
.build())
.build())
.device("string")
.folder("string")
.name("string")
.snippet("string")
.build());
sdwan_error_correction_profile_resource = scm.SdwanErrorCorrectionProfile("sdwanErrorCorrectionProfileResource",
activation_threshold=0,
mode={
"forward_error_correction": {
"ratio": "string",
"recovery_duration": 0,
},
"packet_duplication": {
"recovery_duration_pd": 0,
},
},
device="string",
folder="string",
name="string",
snippet="string")
const sdwanErrorCorrectionProfileResource = new scm.SdwanErrorCorrectionProfile("sdwanErrorCorrectionProfileResource", {
activationThreshold: 0,
mode: {
forwardErrorCorrection: {
ratio: "string",
recoveryDuration: 0,
},
packetDuplication: {
recoveryDurationPd: 0,
},
},
device: "string",
folder: "string",
name: "string",
snippet: "string",
});
type: scm:SdwanErrorCorrectionProfile
properties:
activationThreshold: 0
device: string
folder: string
mode:
forwardErrorCorrection:
ratio: string
recoveryDuration: 0
packetDuplication:
recoveryDurationPd: 0
name: string
snippet: string
SdwanErrorCorrectionProfile 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 SdwanErrorCorrectionProfile resource accepts the following input properties:
- Activation
Threshold int - Activation threshold
- Mode
Sdwan
Error Correction Profile Mode - Mode
- Device string
- The device in which the resource is defined
- Folder string
The folder in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.- Name string
- Name
- Snippet string
The snippet in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.
- Activation
Threshold int - Activation threshold
- Mode
Sdwan
Error Correction Profile Mode Args - Mode
- Device string
- The device in which the resource is defined
- Folder string
The folder in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.- Name string
- Name
- Snippet string
The snippet in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.
- activation
Threshold Integer - Activation threshold
- mode
Sdwan
Error Correction Profile Mode - Mode
- device String
- The device in which the resource is defined
- folder String
The folder in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.- name String
- Name
- snippet String
The snippet in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.
- activation
Threshold number - Activation threshold
- mode
Sdwan
Error Correction Profile Mode - Mode
- device string
- The device in which the resource is defined
- folder string
The folder in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.- name string
- Name
- snippet string
The snippet in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.
- activation_
threshold int - Activation threshold
- mode
Sdwan
Error Correction Profile Mode Args - Mode
- device str
- The device in which the resource is defined
- folder str
The folder in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.- name str
- Name
- snippet str
The snippet in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.
- activation
Threshold Number - Activation threshold
- mode Property Map
- Mode
- device String
- The device in which the resource is defined
- folder String
The folder in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.- name String
- Name
- snippet String
The snippet in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.
Outputs
All input properties are implicitly available as output properties. Additionally, the SdwanErrorCorrectionProfile resource produces the following output properties:
Look up Existing SdwanErrorCorrectionProfile Resource
Get an existing SdwanErrorCorrectionProfile 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?: SdwanErrorCorrectionProfileState, opts?: CustomResourceOptions): SdwanErrorCorrectionProfile@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
activation_threshold: Optional[int] = None,
device: Optional[str] = None,
folder: Optional[str] = None,
mode: Optional[SdwanErrorCorrectionProfileModeArgs] = None,
name: Optional[str] = None,
snippet: Optional[str] = None,
tfid: Optional[str] = None) -> SdwanErrorCorrectionProfilefunc GetSdwanErrorCorrectionProfile(ctx *Context, name string, id IDInput, state *SdwanErrorCorrectionProfileState, opts ...ResourceOption) (*SdwanErrorCorrectionProfile, error)public static SdwanErrorCorrectionProfile Get(string name, Input<string> id, SdwanErrorCorrectionProfileState? state, CustomResourceOptions? opts = null)public static SdwanErrorCorrectionProfile get(String name, Output<String> id, SdwanErrorCorrectionProfileState state, CustomResourceOptions options)resources: _: type: scm:SdwanErrorCorrectionProfile 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.
- Activation
Threshold int - Activation threshold
- Device string
- The device in which the resource is defined
- Folder string
The folder in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.- Mode
Sdwan
Error Correction Profile Mode - Mode
- Name string
- Name
- Snippet string
The snippet in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.- Tfid string
- Activation
Threshold int - Activation threshold
- Device string
- The device in which the resource is defined
- Folder string
The folder in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.- Mode
Sdwan
Error Correction Profile Mode Args - Mode
- Name string
- Name
- Snippet string
The snippet in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.- Tfid string
- activation
Threshold Integer - Activation threshold
- device String
- The device in which the resource is defined
- folder String
The folder in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.- mode
Sdwan
Error Correction Profile Mode - Mode
- name String
- Name
- snippet String
The snippet in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.- tfid String
- activation
Threshold number - Activation threshold
- device string
- The device in which the resource is defined
- folder string
The folder in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.- mode
Sdwan
Error Correction Profile Mode - Mode
- name string
- Name
- snippet string
The snippet in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.- tfid string
- activation_
threshold int - Activation threshold
- device str
- The device in which the resource is defined
- folder str
The folder in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.- mode
Sdwan
Error Correction Profile Mode Args - Mode
- name str
- Name
- snippet str
The snippet in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.- tfid str
- activation
Threshold Number - Activation threshold
- device String
- The device in which the resource is defined
- folder String
The folder in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.- mode Property Map
- Mode
- name String
- Name
- snippet String
The snippet in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.- tfid String
Supporting Types
SdwanErrorCorrectionProfileMode, SdwanErrorCorrectionProfileModeArgs
- Forward
Error SdwanCorrection Error Correction Profile Mode Forward Error Correction - Forward error correction
- Packet
Duplication SdwanError Correction Profile Mode Packet Duplication Packet duplication
ℹ️ Note: You must specify exactly one of
forward_error_correctionandpacket_duplication.
- Forward
Error SdwanCorrection Error Correction Profile Mode Forward Error Correction - Forward error correction
- Packet
Duplication SdwanError Correction Profile Mode Packet Duplication Packet duplication
ℹ️ Note: You must specify exactly one of
forward_error_correctionandpacket_duplication.
- forward
Error SdwanCorrection Error Correction Profile Mode Forward Error Correction - Forward error correction
- packet
Duplication SdwanError Correction Profile Mode Packet Duplication Packet duplication
ℹ️ Note: You must specify exactly one of
forward_error_correctionandpacket_duplication.
- forward
Error SdwanCorrection Error Correction Profile Mode Forward Error Correction - Forward error correction
- packet
Duplication SdwanError Correction Profile Mode Packet Duplication Packet duplication
ℹ️ Note: You must specify exactly one of
forward_error_correctionandpacket_duplication.
- forward_
error_ Sdwancorrection Error Correction Profile Mode Forward Error Correction - Forward error correction
- packet_
duplication SdwanError Correction Profile Mode Packet Duplication Packet duplication
ℹ️ Note: You must specify exactly one of
forward_error_correctionandpacket_duplication.
- forward
Error Property MapCorrection - Forward error correction
- packet
Duplication Property Map Packet duplication
ℹ️ Note: You must specify exactly one of
forward_error_correctionandpacket_duplication.
SdwanErrorCorrectionProfileModeForwardErrorCorrection, SdwanErrorCorrectionProfileModeForwardErrorCorrectionArgs
- Ratio string
- Ratio
- Recovery
Duration int - Recovery duration
- Ratio string
- Ratio
- Recovery
Duration int - Recovery duration
- ratio String
- Ratio
- recovery
Duration Integer - Recovery duration
- ratio string
- Ratio
- recovery
Duration number - Recovery duration
- ratio str
- Ratio
- recovery_
duration int - Recovery duration
- ratio String
- Ratio
- recovery
Duration Number - Recovery duration
SdwanErrorCorrectionProfileModePacketDuplication, SdwanErrorCorrectionProfileModePacketDuplicationArgs
- Recovery
Duration intPd - Recovery duration pd
- Recovery
Duration intPd - Recovery duration pd
- recovery
Duration IntegerPd - Recovery duration pd
- recovery
Duration numberPd - Recovery duration pd
- recovery_
duration_ intpd - Recovery duration pd
- recovery
Duration NumberPd - Recovery duration pd
Import
The following command can be used to import a resource not managed by Terraform:
bash
$ pulumi import scm:index/sdwanErrorCorrectionProfile:SdwanErrorCorrectionProfile example folder:::id
or
bash
$ pulumi import scm:index/sdwanErrorCorrectionProfile:SdwanErrorCorrectionProfile example :snippet::id
or
bash
$ pulumi import scm:index/sdwanErrorCorrectionProfile:SdwanErrorCorrectionProfile example ::device:id
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- scm pulumi/pulumi-scm
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
scmTerraform Provider.
