ZonalAutoshiftConfigurationArgs.fromMap constructor

ZonalAutoshiftConfigurationArgs.fromMap(
  1. Map<String, dynamic> map
)

Implementation

factory ZonalAutoshiftConfigurationArgs.fromMap(Map<String, dynamic> map) {
  return ZonalAutoshiftConfigurationArgs(
    allowedWindows: (() { final guardedValue = map['allowedWindows']; if (guardedValue == null) return null; return pulumi.Input.fromValue((guardedValue as List).cast<String>()); })(),
    blockedDates: (() { final guardedValue = map['blockedDates']; if (guardedValue == null) return null; return pulumi.Input.fromValue((guardedValue as List).cast<String>()); })(),
    blockedWindows: (() { final guardedValue = map['blockedWindows']; if (guardedValue == null) return null; return pulumi.Input.fromValue((guardedValue as List).cast<String>()); })(),
    blockingAlarms: (() { final guardedValue = map['blockingAlarms']; if (guardedValue == null) return null; return pulumi.Input.fromValue(pulumi.Input.decodeList<ZonalAutoshiftConfigurationBlockingAlarm>(guardedValue, (value) => ZonalAutoshiftConfigurationBlockingAlarm.fromMap((value as Map).cast<String, dynamic>()))); })(),
    outcomeAlarms: (() { final guardedValue = map['outcomeAlarms']; if (guardedValue == null) return null; return pulumi.Input.fromValue(pulumi.Input.decodeList<ZonalAutoshiftConfigurationOutcomeAlarm>(guardedValue, (value) => ZonalAutoshiftConfigurationOutcomeAlarm.fromMap((value as Map).cast<String, dynamic>()))); })(),
    region: (() { final guardedValue = map['region']; if (guardedValue == null) return null; return pulumi.Input.fromValue(guardedValue as String); })(),
    resourceArn: pulumi.Input.fromValue(map['resourceArn'] as String),
    zonalAutoshiftStatus: pulumi.Input.fromValue(map['zonalAutoshiftStatus'] as String),
  );
}