Monitor constructor
Monitor(
- String name, {
- MonitorArgs? args,
- CustomResourceOptions? options,
Creates a new Monitor.
name The Pulumi resource name.
args Arguments used to configure this Monitor. The set of arguments for Monitor.
options Resource options controlling this resource's behavior.
Implementation
Monitor(
String name, {
MonitorArgs? args,
pulumi.CustomResourceOptions? options,
}) : super(
'aws:networkflowmonitor/monitor:Monitor',
name,
pulumi.Input.mapToInputs(args?.toMap() ?? const {}),
pulumi.CustomResourceOptions(version: '7.44.0').merge(options),
) {
localResources = registerOutput<List<MonitorLocalResource>>('localResources', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return pulumi.Input.decodeList<MonitorLocalResource>(guardedValue, (value) => MonitorLocalResource.fromMap((value as Map).cast<String, dynamic>())); });
monitorArn = registerOutput<String>('monitorArn');
monitorName = registerOutput<String>('monitorName');
region = registerOutput<String>('region');
remoteResources = registerOutput<List<MonitorRemoteResource>?>('remoteResources', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return pulumi.Input.decodeList<MonitorRemoteResource>(guardedValue, (value) => MonitorRemoteResource.fromMap((value as Map).cast<String, dynamic>())); });
scopeArn = registerOutput<String>('scopeArn');
tags = registerOutput<Map<String, String>?>('tags', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return (guardedValue as Map).cast<String, String>(); });
tagsAll = registerOutput<Map<String, String>>('tagsAll', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return (guardedValue as Map).cast<String, String>(); });
timeouts = registerOutput<MonitorTimeouts?>('timeouts', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return MonitorTimeouts.fromMap((guardedValue as Map).cast<String, dynamic>()); });
}