V2modelsIntentQnaIntentConfigurationBedrockModelConfiguration.fromMap constructor

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

Implementation

factory V2modelsIntentQnaIntentConfigurationBedrockModelConfiguration.fromMap(Map<String, dynamic> map) {
  return V2modelsIntentQnaIntentConfigurationBedrockModelConfiguration(
    customPrompt: (() { final guardedValue = map['customPrompt']; if (guardedValue == null) return null; return pulumi.Input.fromValue(guardedValue as String); })(),
    guardrail: (() { final guardedValue = map['guardrail']; if (guardedValue == null) return null; return pulumi.Input.fromValue(V2modelsIntentQnaIntentConfigurationBedrockModelConfigurationGuardrail.fromMap((guardedValue as Map).cast<String, dynamic>())); })(),
    modelArn: pulumi.Input.fromValue(map['modelArn'] as String),
    traceStatus: (() { final guardedValue = map['traceStatus']; if (guardedValue == null) return null; return pulumi.Input.fromValue(guardedValue as String); })(),
  );
}