GetPlanRule.fromMap constructor
GetPlanRule.fromMap(
- Map<String, dynamic> map
)
Implementation
factory GetPlanRule.fromMap(Map<String, dynamic> map) {
return GetPlanRule(
completionWindow: pulumi.Input.fromValue((map['completionWindow'] as num).toInt()),
copyActions: pulumi.Input.fromValue(pulumi.Input.decodeList<GetPlanRuleCopyAction>(map['copyActions']!, (value) => GetPlanRuleCopyAction.fromMap((value as Map).cast<String, dynamic>()))),
enableContinuousBackup: pulumi.Input.fromValue(map['enableContinuousBackup'] as bool),
lifecycles: pulumi.Input.fromValue(pulumi.Input.decodeList<GetPlanRuleLifecycle>(map['lifecycles']!, (value) => GetPlanRuleLifecycle.fromMap((value as Map).cast<String, dynamic>()))),
recoveryPointTags: (() { final guardedValue = map['recoveryPointTags']; if (guardedValue == null) return null; return pulumi.Input.fromValue((guardedValue as Map).cast<String, String>()); })(),
ruleName: pulumi.Input.fromValue(map['ruleName'] as String),
scanActions: pulumi.Input.fromValue(pulumi.Input.decodeList<GetPlanRuleScanAction>(map['scanActions']!, (value) => GetPlanRuleScanAction.fromMap((value as Map).cast<String, dynamic>()))),
schedule: pulumi.Input.fromValue(map['schedule'] as String),
scheduleExpressionTimezone: pulumi.Input.fromValue(map['scheduleExpressionTimezone'] as String),
startWindow: pulumi.Input.fromValue((map['startWindow'] as num).toInt()),
targetLogicallyAirGappedBackupVaultArn: pulumi.Input.fromValue(map['targetLogicallyAirGappedBackupVaultArn'] as String),
targetVaultName: pulumi.Input.fromValue(map['targetVaultName'] as String),
);
}