public Collection process()

in aws-core-common/src/main/java/jetbrains/buildServer/clouds/amazon/connector/featureDevelopment/ChosenAwsConnPropertiesProcessor.java [19:36]


  public Collection<InvalidProperty> process(Map<String, String> properties) {
    ArrayList<InvalidProperty> invalidProperties = new ArrayList<>();

    String chosenAwsConnectionId = properties.get(CHOSEN_AWS_CONN_ID_PARAM);
    if (chosenAwsConnectionId == null ||
        AwsCloudConnectorConstants.UNSELECTED_AWS_CONNECTION_ID_VALUE.equals(chosenAwsConnectionId)) {
      invalidProperties.add(new InvalidProperty(CHOSEN_AWS_CONN_ID_PARAM, "Linked AWS Connection ID is not specified"));
    }

    if (! ParamUtil.isValidSessionDuration(properties.get(SESSION_DURATION_PARAM))) {
      invalidProperties.add(new InvalidProperty(SESSION_DURATION_PARAM, SESSION_DURATION_ERROR));
    }

    if (! ParamUtil.isValidAwsProfileName(properties.get(AWS_PROFILE_NAME_PARAM))) {
      invalidProperties.add(new InvalidProperty(AWS_PROFILE_NAME_PARAM, AWS_PROFILE_ERROR));
    }
    return invalidProperties;
  }