CustomLogSource.reference constructor

CustomLogSource.reference(
  1. String urn
)

Creates a typed reference to an existing CustomLogSource resource.

Implementation

CustomLogSource.reference(String urn)
  : super(
      'aws:securitylake/customLogSource:CustomLogSource',
      pulumi.parseUrn(urn).urnName,
      const <String, pulumi.Input<dynamic>>{},
      pulumi.CustomResourceOptions(urn: pulumi.input(urn)),
      isResourceReference: true,
    ) {
  attributes = registerOutput<List<CustomLogSourceAttribute>>('attributes', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return pulumi.Input.decodeList<CustomLogSourceAttribute>(guardedValue, (value) => CustomLogSourceAttribute.fromMap((value as Map).cast<String, dynamic>())); });
  configuration = registerOutput<CustomLogSourceConfiguration>('configuration', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return CustomLogSourceConfiguration.fromMap((guardedValue as Map).cast<String, dynamic>()); });
  eventClasses = registerOutput<List<String>?>('eventClasses', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return (guardedValue as List).cast<String>(); });
  providerDetails = registerOutput<List<CustomLogSourceProviderDetail>>('providerDetails', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return pulumi.Input.decodeList<CustomLogSourceProviderDetail>(guardedValue, (value) => CustomLogSourceProviderDetail.fromMap((value as Map).cast<String, dynamic>())); });
  region = registerOutput<String>('region');
  sourceName = registerOutput<String>('sourceName');
  sourceVersion = registerOutput<String>('sourceVersion');
}