Detector constructor

Detector(
  1. String name, {
  2. DetectorArgs? args,
  3. CustomResourceOptions? options,
})

Creates a new Detector. name The Pulumi resource name. args Arguments used to configure this Detector. The set of arguments for Detector. options Resource options controlling this resource's behavior.

Implementation

Detector(
  String name, {
  DetectorArgs? args,
  pulumi.CustomResourceOptions? options,
}) : super(
        'aws:guardduty/detector:Detector',
        name,
        pulumi.Input.mapToInputs(args?.toMap() ?? const {}),
        pulumi.CustomResourceOptions(version: '7.44.0').merge(options),
      ) {
  accountId = registerOutput<String>('accountId');
  arn = registerOutput<String>('arn');
  datasources = registerOutput<DetectorDatasources>('datasources', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return DetectorDatasources.fromMap((guardedValue as Map).cast<String, dynamic>()); });
  enable = registerOutput<bool?>('enable');
  findingPublishingFrequency = registerOutput<String>('findingPublishingFrequency');
  region = registerOutput<String>('region');
  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>(); });
}