ZonalAutoshiftConfiguration constructor
ZonalAutoshiftConfiguration(
- String name, {
- ZonalAutoshiftConfigurationArgs? args,
- CustomResourceOptions? options,
Creates a new ZonalAutoshiftConfiguration.
name The Pulumi resource name.
args Arguments used to configure this ZonalAutoshiftConfiguration. The set of arguments for ZonalAutoshiftConfiguration.
options Resource options controlling this resource's behavior.
Implementation
ZonalAutoshiftConfiguration(
String name, {
ZonalAutoshiftConfigurationArgs? args,
pulumi.CustomResourceOptions? options,
}) : super(
'aws:arczonalshift/zonalAutoshiftConfiguration:ZonalAutoshiftConfiguration',
name,
pulumi.Input.mapToInputs(args?.toMap() ?? const {}),
pulumi.CustomResourceOptions(version: '7.44.0').merge(options),
) {
allowedWindows = registerOutput<List<String>?>('allowedWindows', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return (guardedValue as List).cast<String>(); });
blockedDates = registerOutput<List<String>?>('blockedDates', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return (guardedValue as List).cast<String>(); });
blockedWindows = registerOutput<List<String>?>('blockedWindows', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return (guardedValue as List).cast<String>(); });
blockingAlarms = registerOutput<List<ZonalAutoshiftConfigurationBlockingAlarm>?>('blockingAlarms', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return pulumi.Input.decodeList<ZonalAutoshiftConfigurationBlockingAlarm>(guardedValue, (value) => ZonalAutoshiftConfigurationBlockingAlarm.fromMap((value as Map).cast<String, dynamic>())); });
outcomeAlarms = registerOutput<List<ZonalAutoshiftConfigurationOutcomeAlarm>?>('outcomeAlarms', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return pulumi.Input.decodeList<ZonalAutoshiftConfigurationOutcomeAlarm>(guardedValue, (value) => ZonalAutoshiftConfigurationOutcomeAlarm.fromMap((value as Map).cast<String, dynamic>())); });
region = registerOutput<String>('region');
resourceArn = registerOutput<String>('resourceArn');
zonalAutoshiftStatus = registerOutput<String>('zonalAutoshiftStatus');
}