-
Notifications
You must be signed in to change notification settings - Fork 17
/
CfnFlow_FailoverConfigProperty.go
48 lines (45 loc) · 2.82 KB
/
CfnFlow_FailoverConfigProperty.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
package awsmediaconnect
// The settings for source failover.
//
// Example:
// // The code below shows an example of how to instantiate this type.
// // The values are placeholders you should change.
// import "github.com/aws/aws-cdk-go/awscdk"
//
// failoverConfigProperty := &FailoverConfigProperty{
// FailoverMode: jsii.String("failoverMode"),
// RecoveryWindow: jsii.Number(123),
// SourcePriority: &SourcePriorityProperty{
// PrimarySource: jsii.String("primarySource"),
// },
// State: jsii.String("state"),
// }
//
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flow-failoverconfig.html
//
type CfnFlow_FailoverConfigProperty struct {
// The type of failover you choose for this flow.
//
// MERGE combines the source streams into a single stream, allowing graceful recovery from any single-source loss. FAILOVER allows switching between different streams. The string for this property must be entered as MERGE or FAILOVER. No other string entry is valid.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flow-failoverconfig.html#cfn-mediaconnect-flow-failoverconfig-failovermode
//
FailoverMode *string `field:"optional" json:"failoverMode" yaml:"failoverMode"`
// The size of the buffer (delay) that the service maintains.
//
// A larger buffer means a longer delay in transmitting the stream, but more room for error correction. A smaller buffer means a shorter delay, but less room for error correction. You can choose a value from 100-500 ms. If you keep this field blank, the service uses the default value of 200 ms. This setting only applies when Failover Mode is set to MERGE.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flow-failoverconfig.html#cfn-mediaconnect-flow-failoverconfig-recoverywindow
//
RecoveryWindow *float64 `field:"optional" json:"recoveryWindow" yaml:"recoveryWindow"`
// The priority you want to assign to a source.
//
// You can have a primary stream and a backup stream or two equally prioritized streams. This setting only applies when Failover Mode is set to FAILOVER.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flow-failoverconfig.html#cfn-mediaconnect-flow-failoverconfig-sourcepriority
//
SourcePriority interface{} `field:"optional" json:"sourcePriority" yaml:"sourcePriority"`
// The state of source failover on the flow.
//
// If the state is inactive, the flow can have only one source. If the state is active, the flow can have one or two sources.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flow-failoverconfig.html#cfn-mediaconnect-flow-failoverconfig-state
//
State *string `field:"optional" json:"state" yaml:"state"`
}