rule-node-config.topic @if (azureIotHubConfigForm.get('topicPattern').hasError('required')) { {{ 'rule-node-config.topic-required' | translate }} } rule-node-config.general-pattern-hint rule-node-config.hostname @if (azureIotHubConfigForm.get('host').hasError('required')) { {{ 'rule-node-config.hostname-required' | translate }} } rule-node-config.device-id @if (azureIotHubConfigForm.get('clientId').hasError('required')) { {{ 'rule-node-config.device-id-required' | translate }} } rule-node-config.credentials {{ azureIotHubCredentialsTypeTranslationsMap.get(azureIotHubConfigForm.get('credentials.type').value) | translate }}
rule-node-config.credentials-type @for (credentialsType of allAzureIotHubCredentialsTypes; track credentialsType) { {{ azureIotHubCredentialsTypeTranslationsMap.get(credentialsType) | translate }} } @if (azureIotHubConfigForm.get('credentials.type').hasError('required')) { {{ 'rule-node-config.credentials-type-required' | translate }} }
@switch (azureIotHubConfigForm.get('credentials.type').value) { @case ('anonymous') {} @case ('sas') { rule-node-config.sas-key @if (azureIotHubConfigForm.get('credentials.sasKey').hasError('required')) { {{ 'rule-node-config.sas-key-required' | translate }} } } @case ('cert.PEM') { rule-node-config.private-key-password } }