ConnectionAuthenticationConfiguration.fromMap constructor

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

Implementation

factory ConnectionAuthenticationConfiguration.fromMap(Map<String, dynamic> map) {
  return ConnectionAuthenticationConfiguration(
    authenticationType: pulumi.Input.fromValue(map['authenticationType'] as String),
    basicAuthenticationCredentials: (() { final guardedValue = map['basicAuthenticationCredentials']; if (guardedValue == null) return null; return pulumi.Input.fromValue(ConnectionAuthenticationConfigurationBasicAuthenticationCredentials.fromMap((guardedValue as Map).cast<String, dynamic>())); })(),
    customAuthenticationCredentials: (() { final guardedValue = map['customAuthenticationCredentials']; if (guardedValue == null) return null; return pulumi.Input.fromValue((guardedValue as Map).cast<String, String>()); })(),
    kmsKeyArn: (() { final guardedValue = map['kmsKeyArn']; if (guardedValue == null) return null; return pulumi.Input.fromValue(guardedValue as String); })(),
    oauth2Properties: (() { final guardedValue = map['oauth2Properties']; if (guardedValue == null) return null; return pulumi.Input.fromValue(ConnectionAuthenticationConfigurationOauth2Properties.fromMap((guardedValue as Map).cast<String, dynamic>())); })(),
    secretArn: (() { final guardedValue = map['secretArn']; if (guardedValue == null) return null; return pulumi.Input.fromValue(guardedValue as String); })(),
  );
}